xud
Version:
Exchange Union Daemon
1,594 lines (1,354 loc) • 49.2 kB
JavaScript
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var lndrpc_pb = require('./lndrpc_pb.js');
goog.object.extend(proto, lndrpc_pb);
goog.exportSymbol('proto.lnrpc.ChangePasswordRequest', null, global);
goog.exportSymbol('proto.lnrpc.ChangePasswordResponse', null, global);
goog.exportSymbol('proto.lnrpc.GenSeedRequest', null, global);
goog.exportSymbol('proto.lnrpc.GenSeedResponse', null, global);
goog.exportSymbol('proto.lnrpc.InitWalletRequest', null, global);
goog.exportSymbol('proto.lnrpc.InitWalletResponse', null, global);
goog.exportSymbol('proto.lnrpc.UnlockWalletRequest', null, global);
goog.exportSymbol('proto.lnrpc.UnlockWalletResponse', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.GenSeedRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.lnrpc.GenSeedRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.lnrpc.GenSeedRequest.displayName = 'proto.lnrpc.GenSeedRequest';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.lnrpc.GenSeedRequest.prototype.toObject = function(opt_includeInstance) {
return proto.lnrpc.GenSeedRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.lnrpc.GenSeedRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.GenSeedRequest.toObject = function(includeInstance, msg) {
var f, obj = {
aezeedPassphrase: msg.getAezeedPassphrase_asB64(),
seedEntropy: msg.getSeedEntropy_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.lnrpc.GenSeedRequest}
*/
proto.lnrpc.GenSeedRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.lnrpc.GenSeedRequest;
return proto.lnrpc.GenSeedRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.lnrpc.GenSeedRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.lnrpc.GenSeedRequest}
*/
proto.lnrpc.GenSeedRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setAezeedPassphrase(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setSeedEntropy(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.lnrpc.GenSeedRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.lnrpc.GenSeedRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.lnrpc.GenSeedRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.GenSeedRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAezeedPassphrase_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getSeedEntropy_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* optional bytes aezeed_passphrase = 1;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.GenSeedRequest.prototype.getAezeedPassphrase = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes aezeed_passphrase = 1;
* This is a type-conversion wrapper around `getAezeedPassphrase()`
* @return {string}
*/
proto.lnrpc.GenSeedRequest.prototype.getAezeedPassphrase_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getAezeedPassphrase()));
};
/**
* optional bytes aezeed_passphrase = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getAezeedPassphrase()`
* @return {!Uint8Array}
*/
proto.lnrpc.GenSeedRequest.prototype.getAezeedPassphrase_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getAezeedPassphrase()));
};
/** @param {!(string|Uint8Array)} value */
proto.lnrpc.GenSeedRequest.prototype.setAezeedPassphrase = function(value) {
jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional bytes seed_entropy = 2;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.GenSeedRequest.prototype.getSeedEntropy = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes seed_entropy = 2;
* This is a type-conversion wrapper around `getSeedEntropy()`
* @return {string}
*/
proto.lnrpc.GenSeedRequest.prototype.getSeedEntropy_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getSeedEntropy()));
};
/**
* optional bytes seed_entropy = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getSeedEntropy()`
* @return {!Uint8Array}
*/
proto.lnrpc.GenSeedRequest.prototype.getSeedEntropy_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getSeedEntropy()));
};
/** @param {!(string|Uint8Array)} value */
proto.lnrpc.GenSeedRequest.prototype.setSeedEntropy = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.GenSeedResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.GenSeedResponse.repeatedFields_, null);
};
goog.inherits(proto.lnrpc.GenSeedResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.lnrpc.GenSeedResponse.displayName = 'proto.lnrpc.GenSeedResponse';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.lnrpc.GenSeedResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.lnrpc.GenSeedResponse.prototype.toObject = function(opt_includeInstance) {
return proto.lnrpc.GenSeedResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.lnrpc.GenSeedResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.GenSeedResponse.toObject = function(includeInstance, msg) {
var f, obj = {
cipherSeedMnemonicList: jspb.Message.getRepeatedField(msg, 1),
encipheredSeed: msg.getEncipheredSeed_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.lnrpc.GenSeedResponse}
*/
proto.lnrpc.GenSeedResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.lnrpc.GenSeedResponse;
return proto.lnrpc.GenSeedResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.lnrpc.GenSeedResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.lnrpc.GenSeedResponse}
*/
proto.lnrpc.GenSeedResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.addCipherSeedMnemonic(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setEncipheredSeed(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.lnrpc.GenSeedResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.lnrpc.GenSeedResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.lnrpc.GenSeedResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.GenSeedResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCipherSeedMnemonicList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
f = message.getEncipheredSeed_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* repeated string cipher_seed_mnemonic = 1;
* @return {!Array<string>}
*/
proto.lnrpc.GenSeedResponse.prototype.getCipherSeedMnemonicList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/** @param {!Array<string>} value */
proto.lnrpc.GenSeedResponse.prototype.setCipherSeedMnemonicList = function(value) {
jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
*/
proto.lnrpc.GenSeedResponse.prototype.addCipherSeedMnemonic = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
proto.lnrpc.GenSeedResponse.prototype.clearCipherSeedMnemonicList = function() {
this.setCipherSeedMnemonicList([]);
};
/**
* optional bytes enciphered_seed = 2;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.GenSeedResponse.prototype.getEncipheredSeed = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes enciphered_seed = 2;
* This is a type-conversion wrapper around `getEncipheredSeed()`
* @return {string}
*/
proto.lnrpc.GenSeedResponse.prototype.getEncipheredSeed_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getEncipheredSeed()));
};
/**
* optional bytes enciphered_seed = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getEncipheredSeed()`
* @return {!Uint8Array}
*/
proto.lnrpc.GenSeedResponse.prototype.getEncipheredSeed_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getEncipheredSeed()));
};
/** @param {!(string|Uint8Array)} value */
proto.lnrpc.GenSeedResponse.prototype.setEncipheredSeed = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.InitWalletRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.InitWalletRequest.repeatedFields_, null);
};
goog.inherits(proto.lnrpc.InitWalletRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.lnrpc.InitWalletRequest.displayName = 'proto.lnrpc.InitWalletRequest';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.lnrpc.InitWalletRequest.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.lnrpc.InitWalletRequest.prototype.toObject = function(opt_includeInstance) {
return proto.lnrpc.InitWalletRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.lnrpc.InitWalletRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.InitWalletRequest.toObject = function(includeInstance, msg) {
var f, obj = {
walletPassword: msg.getWalletPassword_asB64(),
cipherSeedMnemonicList: jspb.Message.getRepeatedField(msg, 2),
aezeedPassphrase: msg.getAezeedPassphrase_asB64(),
recoveryWindow: jspb.Message.getFieldWithDefault(msg, 4, 0),
channelBackups: (f = msg.getChannelBackups()) && lndrpc_pb.ChanBackupSnapshot.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.lnrpc.InitWalletRequest}
*/
proto.lnrpc.InitWalletRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.lnrpc.InitWalletRequest;
return proto.lnrpc.InitWalletRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.lnrpc.InitWalletRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.lnrpc.InitWalletRequest}
*/
proto.lnrpc.InitWalletRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setWalletPassword(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.addCipherSeedMnemonic(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setAezeedPassphrase(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt32());
msg.setRecoveryWindow(value);
break;
case 5:
var value = new lndrpc_pb.ChanBackupSnapshot;
reader.readMessage(value,lndrpc_pb.ChanBackupSnapshot.deserializeBinaryFromReader);
msg.setChannelBackups(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.lnrpc.InitWalletRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.lnrpc.InitWalletRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.lnrpc.InitWalletRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.InitWalletRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getWalletPassword_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getCipherSeedMnemonicList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
f
);
}
f = message.getAezeedPassphrase_asU8();
if (f.length > 0) {
writer.writeBytes(
3,
f
);
}
f = message.getRecoveryWindow();
if (f !== 0) {
writer.writeInt32(
4,
f
);
}
f = message.getChannelBackups();
if (f != null) {
writer.writeMessage(
5,
f,
lndrpc_pb.ChanBackupSnapshot.serializeBinaryToWriter
);
}
};
/**
* optional bytes wallet_password = 1;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.InitWalletRequest.prototype.getWalletPassword = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes wallet_password = 1;
* This is a type-conversion wrapper around `getWalletPassword()`
* @return {string}
*/
proto.lnrpc.InitWalletRequest.prototype.getWalletPassword_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getWalletPassword()));
};
/**
* optional bytes wallet_password = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getWalletPassword()`
* @return {!Uint8Array}
*/
proto.lnrpc.InitWalletRequest.prototype.getWalletPassword_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getWalletPassword()));
};
/** @param {!(string|Uint8Array)} value */
proto.lnrpc.InitWalletRequest.prototype.setWalletPassword = function(value) {
jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* repeated string cipher_seed_mnemonic = 2;
* @return {!Array<string>}
*/
proto.lnrpc.InitWalletRequest.prototype.getCipherSeedMnemonicList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};
/** @param {!Array<string>} value */
proto.lnrpc.InitWalletRequest.prototype.setCipherSeedMnemonicList = function(value) {
jspb.Message.setField(this, 2, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
*/
proto.lnrpc.InitWalletRequest.prototype.addCipherSeedMnemonic = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};
proto.lnrpc.InitWalletRequest.prototype.clearCipherSeedMnemonicList = function() {
this.setCipherSeedMnemonicList([]);
};
/**
* optional bytes aezeed_passphrase = 3;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.InitWalletRequest.prototype.getAezeedPassphrase = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* optional bytes aezeed_passphrase = 3;
* This is a type-conversion wrapper around `getAezeedPassphrase()`
* @return {string}
*/
proto.lnrpc.InitWalletRequest.prototype.getAezeedPassphrase_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getAezeedPassphrase()));
};
/**
* optional bytes aezeed_passphrase = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getAezeedPassphrase()`
* @return {!Uint8Array}
*/
proto.lnrpc.InitWalletRequest.prototype.getAezeedPassphrase_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getAezeedPassphrase()));
};
/** @param {!(string|Uint8Array)} value */
proto.lnrpc.InitWalletRequest.prototype.setAezeedPassphrase = function(value) {
jspb.Message.setProto3BytesField(this, 3, value);
};
/**
* optional int32 recovery_window = 4;
* @return {number}
*/
proto.lnrpc.InitWalletRequest.prototype.getRecoveryWindow = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/** @param {number} value */
proto.lnrpc.InitWalletRequest.prototype.setRecoveryWindow = function(value) {
jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional ChanBackupSnapshot channel_backups = 5;
* @return {?proto.lnrpc.ChanBackupSnapshot}
*/
proto.lnrpc.InitWalletRequest.prototype.getChannelBackups = function() {
return /** @type{?proto.lnrpc.ChanBackupSnapshot} */ (
jspb.Message.getWrapperField(this, lndrpc_pb.ChanBackupSnapshot, 5));
};
/** @param {?proto.lnrpc.ChanBackupSnapshot|undefined} value */
proto.lnrpc.InitWalletRequest.prototype.setChannelBackups = function(value) {
jspb.Message.setWrapperField(this, 5, value);
};
proto.lnrpc.InitWalletRequest.prototype.clearChannelBackups = function() {
this.setChannelBackups(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.lnrpc.InitWalletRequest.prototype.hasChannelBackups = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.InitWalletResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.lnrpc.InitWalletResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.lnrpc.InitWalletResponse.displayName = 'proto.lnrpc.InitWalletResponse';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.lnrpc.InitWalletResponse.prototype.toObject = function(opt_includeInstance) {
return proto.lnrpc.InitWalletResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.lnrpc.InitWalletResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.InitWalletResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.lnrpc.InitWalletResponse}
*/
proto.lnrpc.InitWalletResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.lnrpc.InitWalletResponse;
return proto.lnrpc.InitWalletResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.lnrpc.InitWalletResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.lnrpc.InitWalletResponse}
*/
proto.lnrpc.InitWalletResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.lnrpc.InitWalletResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.lnrpc.InitWalletResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.lnrpc.InitWalletResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.InitWalletResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.UnlockWalletRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.lnrpc.UnlockWalletRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.lnrpc.UnlockWalletRequest.displayName = 'proto.lnrpc.UnlockWalletRequest';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.lnrpc.UnlockWalletRequest.prototype.toObject = function(opt_includeInstance) {
return proto.lnrpc.UnlockWalletRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.lnrpc.UnlockWalletRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.UnlockWalletRequest.toObject = function(includeInstance, msg) {
var f, obj = {
walletPassword: msg.getWalletPassword_asB64(),
recoveryWindow: jspb.Message.getFieldWithDefault(msg, 2, 0),
channelBackups: (f = msg.getChannelBackups()) && lndrpc_pb.ChanBackupSnapshot.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.lnrpc.UnlockWalletRequest}
*/
proto.lnrpc.UnlockWalletRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.lnrpc.UnlockWalletRequest;
return proto.lnrpc.UnlockWalletRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.lnrpc.UnlockWalletRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.lnrpc.UnlockWalletRequest}
*/
proto.lnrpc.UnlockWalletRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setWalletPassword(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setRecoveryWindow(value);
break;
case 3:
var value = new lndrpc_pb.ChanBackupSnapshot;
reader.readMessage(value,lndrpc_pb.ChanBackupSnapshot.deserializeBinaryFromReader);
msg.setChannelBackups(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.lnrpc.UnlockWalletRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.lnrpc.UnlockWalletRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.lnrpc.UnlockWalletRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.UnlockWalletRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getWalletPassword_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getRecoveryWindow();
if (f !== 0) {
writer.writeInt32(
2,
f
);
}
f = message.getChannelBackups();
if (f != null) {
writer.writeMessage(
3,
f,
lndrpc_pb.ChanBackupSnapshot.serializeBinaryToWriter
);
}
};
/**
* optional bytes wallet_password = 1;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.UnlockWalletRequest.prototype.getWalletPassword = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes wallet_password = 1;
* This is a type-conversion wrapper around `getWalletPassword()`
* @return {string}
*/
proto.lnrpc.UnlockWalletRequest.prototype.getWalletPassword_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getWalletPassword()));
};
/**
* optional bytes wallet_password = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getWalletPassword()`
* @return {!Uint8Array}
*/
proto.lnrpc.UnlockWalletRequest.prototype.getWalletPassword_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getWalletPassword()));
};
/** @param {!(string|Uint8Array)} value */
proto.lnrpc.UnlockWalletRequest.prototype.setWalletPassword = function(value) {
jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional int32 recovery_window = 2;
* @return {number}
*/
proto.lnrpc.UnlockWalletRequest.prototype.getRecoveryWindow = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.lnrpc.UnlockWalletRequest.prototype.setRecoveryWindow = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional ChanBackupSnapshot channel_backups = 3;
* @return {?proto.lnrpc.ChanBackupSnapshot}
*/
proto.lnrpc.UnlockWalletRequest.prototype.getChannelBackups = function() {
return /** @type{?proto.lnrpc.ChanBackupSnapshot} */ (
jspb.Message.getWrapperField(this, lndrpc_pb.ChanBackupSnapshot, 3));
};
/** @param {?proto.lnrpc.ChanBackupSnapshot|undefined} value */
proto.lnrpc.UnlockWalletRequest.prototype.setChannelBackups = function(value) {
jspb.Message.setWrapperField(this, 3, value);
};
proto.lnrpc.UnlockWalletRequest.prototype.clearChannelBackups = function() {
this.setChannelBackups(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.lnrpc.UnlockWalletRequest.prototype.hasChannelBackups = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.UnlockWalletResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.lnrpc.UnlockWalletResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.lnrpc.UnlockWalletResponse.displayName = 'proto.lnrpc.UnlockWalletResponse';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.lnrpc.UnlockWalletResponse.prototype.toObject = function(opt_includeInstance) {
return proto.lnrpc.UnlockWalletResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.lnrpc.UnlockWalletResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.UnlockWalletResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.lnrpc.UnlockWalletResponse}
*/
proto.lnrpc.UnlockWalletResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.lnrpc.UnlockWalletResponse;
return proto.lnrpc.UnlockWalletResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.lnrpc.UnlockWalletResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.lnrpc.UnlockWalletResponse}
*/
proto.lnrpc.UnlockWalletResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.lnrpc.UnlockWalletResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.lnrpc.UnlockWalletResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.lnrpc.UnlockWalletResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.UnlockWalletResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.ChangePasswordRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.lnrpc.ChangePasswordRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.lnrpc.ChangePasswordRequest.displayName = 'proto.lnrpc.ChangePasswordRequest';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.lnrpc.ChangePasswordRequest.prototype.toObject = function(opt_includeInstance) {
return proto.lnrpc.ChangePasswordRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.lnrpc.ChangePasswordRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.ChangePasswordRequest.toObject = function(includeInstance, msg) {
var f, obj = {
currentPassword: msg.getCurrentPassword_asB64(),
newPassword: msg.getNewPassword_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.lnrpc.ChangePasswordRequest}
*/
proto.lnrpc.ChangePasswordRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.lnrpc.ChangePasswordRequest;
return proto.lnrpc.ChangePasswordRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.lnrpc.ChangePasswordRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.lnrpc.ChangePasswordRequest}
*/
proto.lnrpc.ChangePasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setCurrentPassword(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setNewPassword(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.lnrpc.ChangePasswordRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.lnrpc.ChangePasswordRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.lnrpc.ChangePasswordRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.ChangePasswordRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCurrentPassword_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getNewPassword_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* optional bytes current_password = 1;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.ChangePasswordRequest.prototype.getCurrentPassword = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes current_password = 1;
* This is a type-conversion wrapper around `getCurrentPassword()`
* @return {string}
*/
proto.lnrpc.ChangePasswordRequest.prototype.getCurrentPassword_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getCurrentPassword()));
};
/**
* optional bytes current_password = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getCurrentPassword()`
* @return {!Uint8Array}
*/
proto.lnrpc.ChangePasswordRequest.prototype.getCurrentPassword_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getCurrentPassword()));
};
/** @param {!(string|Uint8Array)} value */
proto.lnrpc.ChangePasswordRequest.prototype.setCurrentPassword = function(value) {
jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional bytes new_password = 2;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.ChangePasswordRequest.prototype.getNewPassword = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes new_password = 2;
* This is a type-conversion wrapper around `getNewPassword()`
* @return {string}
*/
proto.lnrpc.ChangePasswordRequest.prototype.getNewPassword_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getNewPassword()));
};
/**
* optional bytes new_password = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getNewPassword()`
* @return {!Uint8Array}
*/
proto.lnrpc.ChangePasswordRequest.prototype.getNewPassword_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getNewPassword()));
};
/** @param {!(string|Uint8Array)} value */
proto.lnrpc.ChangePasswordRequest.prototype.setNewPassword = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.ChangePasswordResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.lnrpc.ChangePasswordResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.lnrpc.ChangePasswordResponse.displayName = 'proto.lnrpc.ChangePasswordResponse';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.lnrpc.ChangePasswordResponse.prototype.toObject = function(opt_includeInstance) {
return proto.lnrpc.ChangePasswordResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.lnrpc.ChangePasswordResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.ChangePasswordResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.lnrpc.ChangePasswordResponse}
*/
proto.lnrpc.ChangePasswordResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.lnrpc.ChangePasswordResponse;
return proto.lnrpc.ChangePasswordResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.lnrpc.ChangePasswordResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.lnrpc.ChangePasswordResponse}
*/
proto.lnrpc.ChangePasswordResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.lnrpc.ChangePasswordResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.lnrpc.ChangePasswordResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.lnrpc.ChangePasswordResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.ChangePasswordResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
goog.object.extend(exports, proto.lnrpc);