UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,474 lines (1,296 loc) 95.2 kB
// source: cosmos/staking/v1beta1/tx.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @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! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js'); goog.object.extend(proto, cosmos_proto_cosmos_pb); var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); var cosmos_staking_v1beta1_staking_pb = require('../../../cosmos/staking/v1beta1/staking_pb.js'); goog.object.extend(proto, cosmos_staking_v1beta1_staking_pb); var cosmos_msg_v1_msg_pb = require('../../../cosmos/msg/v1/msg_pb.js'); goog.object.extend(proto, cosmos_msg_v1_msg_pb); var amino_amino_pb = require('../../../amino/amino_pb.js'); goog.object.extend(proto, amino_amino_pb); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgBeginRedelegate', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgBeginRedelegateResponse', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgCancelUnbondingDelegation', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgCreateValidator', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgDelegate', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgDelegateResponse', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgEditValidator', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgEditValidatorResponse', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgUndelegate', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgUndelegateResponse', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgUpdateParams', null, global); goog.exportSymbol('proto.cosmos.staking.v1beta1.MsgUpdateParamsResponse', 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.cosmos.staking.v1beta1.MsgCreateValidator = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgCreateValidator, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgCreateValidator.displayName = 'proto.cosmos.staking.v1beta1.MsgCreateValidator'; } /** * 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.cosmos.staking.v1beta1.MsgCreateValidatorResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse.displayName = 'proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse'; } /** * 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.cosmos.staking.v1beta1.MsgEditValidator = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgEditValidator, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgEditValidator.displayName = 'proto.cosmos.staking.v1beta1.MsgEditValidator'; } /** * 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.cosmos.staking.v1beta1.MsgEditValidatorResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgEditValidatorResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgEditValidatorResponse.displayName = 'proto.cosmos.staking.v1beta1.MsgEditValidatorResponse'; } /** * 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.cosmos.staking.v1beta1.MsgDelegate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgDelegate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgDelegate.displayName = 'proto.cosmos.staking.v1beta1.MsgDelegate'; } /** * 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.cosmos.staking.v1beta1.MsgDelegateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgDelegateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgDelegateResponse.displayName = 'proto.cosmos.staking.v1beta1.MsgDelegateResponse'; } /** * 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.cosmos.staking.v1beta1.MsgBeginRedelegate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgBeginRedelegate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgBeginRedelegate.displayName = 'proto.cosmos.staking.v1beta1.MsgBeginRedelegate'; } /** * 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.cosmos.staking.v1beta1.MsgBeginRedelegateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgBeginRedelegateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgBeginRedelegateResponse.displayName = 'proto.cosmos.staking.v1beta1.MsgBeginRedelegateResponse'; } /** * 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.cosmos.staking.v1beta1.MsgUndelegate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgUndelegate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgUndelegate.displayName = 'proto.cosmos.staking.v1beta1.MsgUndelegate'; } /** * 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.cosmos.staking.v1beta1.MsgUndelegateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgUndelegateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgUndelegateResponse.displayName = 'proto.cosmos.staking.v1beta1.MsgUndelegateResponse'; } /** * 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.cosmos.staking.v1beta1.MsgCancelUnbondingDelegation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgCancelUnbondingDelegation, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgCancelUnbondingDelegation.displayName = 'proto.cosmos.staking.v1beta1.MsgCancelUnbondingDelegation'; } /** * 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.cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse.displayName = 'proto.cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse'; } /** * 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.cosmos.staking.v1beta1.MsgUpdateParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgUpdateParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgUpdateParams.displayName = 'proto.cosmos.staking.v1beta1.MsgUpdateParams'; } /** * 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.cosmos.staking.v1beta1.MsgUpdateParamsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.staking.v1beta1.MsgUpdateParamsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.staking.v1beta1.MsgUpdateParamsResponse.displayName = 'proto.cosmos.staking.v1beta1.MsgUpdateParamsResponse'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.staking.v1beta1.MsgCreateValidator.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.staking.v1beta1.MsgCreateValidator} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgCreateValidator.toObject = function(includeInstance, msg) { var f, obj = { description: (f = msg.getDescription()) && cosmos_staking_v1beta1_staking_pb.Description.toObject(includeInstance, f), commission: (f = msg.getCommission()) && cosmos_staking_v1beta1_staking_pb.CommissionRates.toObject(includeInstance, f), minSelfDelegation: jspb.Message.getFieldWithDefault(msg, 3, ""), delegatorAddress: jspb.Message.getFieldWithDefault(msg, 4, ""), validatorAddress: jspb.Message.getFieldWithDefault(msg, 5, ""), pubkey: (f = msg.getPubkey()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), value: (f = msg.getValue()) && cosmos_base_v1beta1_coin_pb.Coin.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.cosmos.staking.v1beta1.MsgCreateValidator} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.staking.v1beta1.MsgCreateValidator; return proto.cosmos.staking.v1beta1.MsgCreateValidator.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.staking.v1beta1.MsgCreateValidator} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new cosmos_staking_v1beta1_staking_pb.Description; reader.readMessage(value,cosmos_staking_v1beta1_staking_pb.Description.deserializeBinaryFromReader); msg.setDescription(value); break; case 2: var value = new cosmos_staking_v1beta1_staking_pb.CommissionRates; reader.readMessage(value,cosmos_staking_v1beta1_staking_pb.CommissionRates.deserializeBinaryFromReader); msg.setCommission(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setMinSelfDelegation(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setDelegatorAddress(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setValidatorAddress(value); break; case 6: var value = new google_protobuf_any_pb.Any; reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.setPubkey(value); break; case 7: var value = new cosmos_base_v1beta1_coin_pb.Coin; reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setValue(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.staking.v1beta1.MsgCreateValidator.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.staking.v1beta1.MsgCreateValidator} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgCreateValidator.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDescription(); if (f != null) { writer.writeMessage( 1, f, cosmos_staking_v1beta1_staking_pb.Description.serializeBinaryToWriter ); } f = message.getCommission(); if (f != null) { writer.writeMessage( 2, f, cosmos_staking_v1beta1_staking_pb.CommissionRates.serializeBinaryToWriter ); } f = message.getMinSelfDelegation(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getDelegatorAddress(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getValidatorAddress(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getPubkey(); if (f != null) { writer.writeMessage( 6, f, google_protobuf_any_pb.Any.serializeBinaryToWriter ); } f = message.getValue(); if (f != null) { writer.writeMessage( 7, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter ); } }; /** * optional Description description = 1; * @return {?proto.cosmos.staking.v1beta1.Description} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.getDescription = function() { return /** @type{?proto.cosmos.staking.v1beta1.Description} */ ( jspb.Message.getWrapperField(this, cosmos_staking_v1beta1_staking_pb.Description, 1)); }; /** * @param {?proto.cosmos.staking.v1beta1.Description|undefined} value * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.setDescription = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.clearDescription = function() { return this.setDescription(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.hasDescription = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional CommissionRates commission = 2; * @return {?proto.cosmos.staking.v1beta1.CommissionRates} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.getCommission = function() { return /** @type{?proto.cosmos.staking.v1beta1.CommissionRates} */ ( jspb.Message.getWrapperField(this, cosmos_staking_v1beta1_staking_pb.CommissionRates, 2)); }; /** * @param {?proto.cosmos.staking.v1beta1.CommissionRates|undefined} value * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.setCommission = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.clearCommission = function() { return this.setCommission(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.hasCommission = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional string min_self_delegation = 3; * @return {string} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.getMinSelfDelegation = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.setMinSelfDelegation = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string delegator_address = 4; * @return {string} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.getDelegatorAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.setDelegatorAddress = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional string validator_address = 5; * @return {string} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.getValidatorAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.setValidatorAddress = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional google.protobuf.Any pubkey = 6; * @return {?proto.google.protobuf.Any} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.getPubkey = function() { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 6)); }; /** * @param {?proto.google.protobuf.Any|undefined} value * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.setPubkey = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.clearPubkey = function() { return this.setPubkey(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.hasPubkey = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional cosmos.base.v1beta1.Coin value = 7; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.getValue = function() { return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 7)); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.setValue = function(value) { return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidator} returns this */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.clearValue = function() { return this.setValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.staking.v1beta1.MsgCreateValidator.prototype.hasValue = function() { return jspb.Message.getField(this, 7) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse.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.cosmos.staking.v1beta1.MsgCreateValidatorResponse} */ proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse; return proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse} */ proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse.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.cosmos.staking.v1beta1.MsgCreateValidatorResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgCreateValidatorResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.staking.v1beta1.MsgEditValidator.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.staking.v1beta1.MsgEditValidator} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgEditValidator.toObject = function(includeInstance, msg) { var f, obj = { description: (f = msg.getDescription()) && cosmos_staking_v1beta1_staking_pb.Description.toObject(includeInstance, f), validatorAddress: jspb.Message.getFieldWithDefault(msg, 2, ""), commissionRate: jspb.Message.getFieldWithDefault(msg, 3, ""), minSelfDelegation: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmos.staking.v1beta1.MsgEditValidator} */ proto.cosmos.staking.v1beta1.MsgEditValidator.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.staking.v1beta1.MsgEditValidator; return proto.cosmos.staking.v1beta1.MsgEditValidator.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.staking.v1beta1.MsgEditValidator} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.staking.v1beta1.MsgEditValidator} */ proto.cosmos.staking.v1beta1.MsgEditValidator.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new cosmos_staking_v1beta1_staking_pb.Description; reader.readMessage(value,cosmos_staking_v1beta1_staking_pb.Description.deserializeBinaryFromReader); msg.setDescription(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setValidatorAddress(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setCommissionRate(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setMinSelfDelegation(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.staking.v1beta1.MsgEditValidator.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.staking.v1beta1.MsgEditValidator} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgEditValidator.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDescription(); if (f != null) { writer.writeMessage( 1, f, cosmos_staking_v1beta1_staking_pb.Description.serializeBinaryToWriter ); } f = message.getValidatorAddress(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getCommissionRate(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getMinSelfDelegation(); if (f.length > 0) { writer.writeString( 4, f ); } }; /** * optional Description description = 1; * @return {?proto.cosmos.staking.v1beta1.Description} */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.getDescription = function() { return /** @type{?proto.cosmos.staking.v1beta1.Description} */ ( jspb.Message.getWrapperField(this, cosmos_staking_v1beta1_staking_pb.Description, 1)); }; /** * @param {?proto.cosmos.staking.v1beta1.Description|undefined} value * @return {!proto.cosmos.staking.v1beta1.MsgEditValidator} returns this */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.setDescription = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.staking.v1beta1.MsgEditValidator} returns this */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.clearDescription = function() { return this.setDescription(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.hasDescription = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional string validator_address = 2; * @return {string} */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.getValidatorAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.cosmos.staking.v1beta1.MsgEditValidator} returns this */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.setValidatorAddress = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string commission_rate = 3; * @return {string} */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.getCommissionRate = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.cosmos.staking.v1beta1.MsgEditValidator} returns this */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.setCommissionRate = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string min_self_delegation = 4; * @return {string} */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.getMinSelfDelegation = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.cosmos.staking.v1beta1.MsgEditValidator} returns this */ proto.cosmos.staking.v1beta1.MsgEditValidator.prototype.setMinSelfDelegation = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.staking.v1beta1.MsgEditValidatorResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.staking.v1beta1.MsgEditValidatorResponse.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.staking.v1beta1.MsgEditValidatorResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgEditValidatorResponse.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.cosmos.staking.v1beta1.MsgEditValidatorResponse} */ proto.cosmos.staking.v1beta1.MsgEditValidatorResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.staking.v1beta1.MsgEditValidatorResponse; return proto.cosmos.staking.v1beta1.MsgEditValidatorResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.staking.v1beta1.MsgEditValidatorResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.staking.v1beta1.MsgEditValidatorResponse} */ proto.cosmos.staking.v1beta1.MsgEditValidatorResponse.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.cosmos.staking.v1beta1.MsgEditValidatorResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.staking.v1beta1.MsgEditValidatorResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.staking.v1beta1.MsgEditValidatorResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgEditValidatorResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.staking.v1beta1.MsgDelegate.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.staking.v1beta1.MsgDelegate} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgDelegate.toObject = function(includeInstance, msg) { var f, obj = { delegatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ""), validatorAddress: jspb.Message.getFieldWithDefault(msg, 2, ""), amount: (f = msg.getAmount()) && cosmos_base_v1beta1_coin_pb.Coin.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.cosmos.staking.v1beta1.MsgDelegate} */ proto.cosmos.staking.v1beta1.MsgDelegate.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.staking.v1beta1.MsgDelegate; return proto.cosmos.staking.v1beta1.MsgDelegate.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.staking.v1beta1.MsgDelegate} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.staking.v1beta1.MsgDelegate} */ proto.cosmos.staking.v1beta1.MsgDelegate.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.setDelegatorAddress(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setValidatorAddress(value); break; case 3: var value = new cosmos_base_v1beta1_coin_pb.Coin; reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setAmount(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.staking.v1beta1.MsgDelegate.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.staking.v1beta1.MsgDelegate} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgDelegate.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDelegatorAddress(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getValidatorAddress(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getAmount(); if (f != null) { writer.writeMessage( 3, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter ); } }; /** * optional string delegator_address = 1; * @return {string} */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.getDelegatorAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmos.staking.v1beta1.MsgDelegate} returns this */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.setDelegatorAddress = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string validator_address = 2; * @return {string} */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.getValidatorAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.cosmos.staking.v1beta1.MsgDelegate} returns this */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.setValidatorAddress = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional cosmos.base.v1beta1.Coin amount = 3; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.getAmount = function() { return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3)); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.cosmos.staking.v1beta1.MsgDelegate} returns this */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.setAmount = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.staking.v1beta1.MsgDelegate} returns this */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.clearAmount = function() { return this.setAmount(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.staking.v1beta1.MsgDelegate.prototype.hasAmount = function() { return jspb.Message.getField(this, 3) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.staking.v1beta1.MsgDelegateResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.staking.v1beta1.MsgDelegateResponse.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.staking.v1beta1.MsgDelegateResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.staking.v1beta1.MsgDelegateResponse.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.cosmos.staking.v1beta1.MsgDelegateResponse} */ proto.cosmos.staking.v1beta1.MsgDelegateResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.staking.v1beta1.MsgDelegateResponse; return proto.cosmos.staking.v1beta1.MsgDelegateResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.staking.v1beta1.MsgDelegateResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.staking.v1beta1.MsgDelegateResponse} */ proto.cosmos.staking.v1beta1.MsgDelegateResponse.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.cosmos.staking.v1beta1.MsgDelegateResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter();