UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,411 lines (1,294 loc) 170 kB
// source: cosmos/group/v1/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 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 google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); var cosmos_group_v1_types_pb = require('../../../cosmos/group/v1/types_pb.js'); goog.object.extend(proto, cosmos_group_v1_types_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.group.v1.Exec', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgCreateGroup', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgCreateGroupPolicy', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgCreateGroupPolicyResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgCreateGroupResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgCreateGroupWithPolicy', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgCreateGroupWithPolicyResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgExec', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgExecResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgLeaveGroup', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgLeaveGroupResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgSubmitProposal', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgSubmitProposalResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupAdmin', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupAdminResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupMembers', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupMembersResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupMetadata', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupMetadataResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupPolicyAdmin', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupPolicyMetadata', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgVote', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgVoteResponse', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgWithdrawProposal', null, global); goog.exportSymbol('proto.cosmos.group.v1.MsgWithdrawProposalResponse', 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.group.v1.MsgCreateGroup = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.group.v1.MsgCreateGroup.repeatedFields_, null); }; goog.inherits(proto.cosmos.group.v1.MsgCreateGroup, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgCreateGroup.displayName = 'proto.cosmos.group.v1.MsgCreateGroup'; } /** * 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.group.v1.MsgCreateGroupResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgCreateGroupResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgCreateGroupResponse.displayName = 'proto.cosmos.group.v1.MsgCreateGroupResponse'; } /** * 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.group.v1.MsgUpdateGroupMembers = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.group.v1.MsgUpdateGroupMembers.repeatedFields_, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupMembers, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupMembers.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupMembers'; } /** * 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.group.v1.MsgUpdateGroupMembersResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupMembersResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupMembersResponse.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupMembersResponse'; } /** * 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.group.v1.MsgUpdateGroupAdmin = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupAdmin, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupAdmin.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupAdmin'; } /** * 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.group.v1.MsgUpdateGroupAdminResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupAdminResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupAdminResponse.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupAdminResponse'; } /** * 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.group.v1.MsgUpdateGroupMetadata = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupMetadata, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupMetadata.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupMetadata'; } /** * 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.group.v1.MsgUpdateGroupMetadataResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupMetadataResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupMetadataResponse.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupMetadataResponse'; } /** * 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.group.v1.MsgCreateGroupPolicy = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgCreateGroupPolicy, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgCreateGroupPolicy.displayName = 'proto.cosmos.group.v1.MsgCreateGroupPolicy'; } /** * 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.group.v1.MsgCreateGroupPolicyResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgCreateGroupPolicyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgCreateGroupPolicyResponse.displayName = 'proto.cosmos.group.v1.MsgCreateGroupPolicyResponse'; } /** * 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.group.v1.MsgUpdateGroupPolicyAdmin = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupPolicyAdmin, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupPolicyAdmin.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupPolicyAdmin'; } /** * 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.group.v1.MsgUpdateGroupPolicyAdminResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse'; } /** * 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.group.v1.MsgCreateGroupWithPolicy = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.group.v1.MsgCreateGroupWithPolicy.repeatedFields_, null); }; goog.inherits(proto.cosmos.group.v1.MsgCreateGroupWithPolicy, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgCreateGroupWithPolicy.displayName = 'proto.cosmos.group.v1.MsgCreateGroupWithPolicy'; } /** * 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.group.v1.MsgCreateGroupWithPolicyResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgCreateGroupWithPolicyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgCreateGroupWithPolicyResponse.displayName = 'proto.cosmos.group.v1.MsgCreateGroupWithPolicyResponse'; } /** * 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.group.v1.MsgUpdateGroupPolicyDecisionPolicy = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy'; } /** * 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.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse'; } /** * 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.group.v1.MsgUpdateGroupPolicyMetadata = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupPolicyMetadata, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupPolicyMetadata.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupPolicyMetadata'; } /** * 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.group.v1.MsgUpdateGroupPolicyMetadataResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse.displayName = 'proto.cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse'; } /** * 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.group.v1.MsgSubmitProposal = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.group.v1.MsgSubmitProposal.repeatedFields_, null); }; goog.inherits(proto.cosmos.group.v1.MsgSubmitProposal, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgSubmitProposal.displayName = 'proto.cosmos.group.v1.MsgSubmitProposal'; } /** * 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.group.v1.MsgSubmitProposalResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgSubmitProposalResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgSubmitProposalResponse.displayName = 'proto.cosmos.group.v1.MsgSubmitProposalResponse'; } /** * 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.group.v1.MsgWithdrawProposal = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgWithdrawProposal, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgWithdrawProposal.displayName = 'proto.cosmos.group.v1.MsgWithdrawProposal'; } /** * 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.group.v1.MsgWithdrawProposalResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgWithdrawProposalResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgWithdrawProposalResponse.displayName = 'proto.cosmos.group.v1.MsgWithdrawProposalResponse'; } /** * 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.group.v1.MsgVote = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgVote, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgVote.displayName = 'proto.cosmos.group.v1.MsgVote'; } /** * 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.group.v1.MsgVoteResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgVoteResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgVoteResponse.displayName = 'proto.cosmos.group.v1.MsgVoteResponse'; } /** * 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.group.v1.MsgExec = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgExec, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgExec.displayName = 'proto.cosmos.group.v1.MsgExec'; } /** * 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.group.v1.MsgExecResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgExecResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgExecResponse.displayName = 'proto.cosmos.group.v1.MsgExecResponse'; } /** * 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.group.v1.MsgLeaveGroup = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgLeaveGroup, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgLeaveGroup.displayName = 'proto.cosmos.group.v1.MsgLeaveGroup'; } /** * 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.group.v1.MsgLeaveGroupResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.group.v1.MsgLeaveGroupResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.MsgLeaveGroupResponse.displayName = 'proto.cosmos.group.v1.MsgLeaveGroupResponse'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.group.v1.MsgCreateGroup.repeatedFields_ = [2]; 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.group.v1.MsgCreateGroup.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.group.v1.MsgCreateGroup.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.group.v1.MsgCreateGroup} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.MsgCreateGroup.toObject = function(includeInstance, msg) { var f, obj = { admin: jspb.Message.getFieldWithDefault(msg, 1, ""), membersList: jspb.Message.toObjectList(msg.getMembersList(), cosmos_group_v1_types_pb.MemberRequest.toObject, includeInstance), metadata: jspb.Message.getFieldWithDefault(msg, 3, "") }; 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.group.v1.MsgCreateGroup} */ proto.cosmos.group.v1.MsgCreateGroup.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.group.v1.MsgCreateGroup; return proto.cosmos.group.v1.MsgCreateGroup.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.MsgCreateGroup} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.MsgCreateGroup} */ proto.cosmos.group.v1.MsgCreateGroup.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.setAdmin(value); break; case 2: var value = new cosmos_group_v1_types_pb.MemberRequest; reader.readMessage(value,cosmos_group_v1_types_pb.MemberRequest.deserializeBinaryFromReader); msg.addMembers(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setMetadata(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.group.v1.MsgCreateGroup.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.group.v1.MsgCreateGroup.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.group.v1.MsgCreateGroup} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.MsgCreateGroup.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAdmin(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getMembersList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, cosmos_group_v1_types_pb.MemberRequest.serializeBinaryToWriter ); } f = message.getMetadata(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional string admin = 1; * @return {string} */ proto.cosmos.group.v1.MsgCreateGroup.prototype.getAdmin = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmos.group.v1.MsgCreateGroup} returns this */ proto.cosmos.group.v1.MsgCreateGroup.prototype.setAdmin = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * repeated MemberRequest members = 2; * @return {!Array<!proto.cosmos.group.v1.MemberRequest>} */ proto.cosmos.group.v1.MsgCreateGroup.prototype.getMembersList = function() { return /** @type{!Array<!proto.cosmos.group.v1.MemberRequest>} */ ( jspb.Message.getRepeatedWrapperField(this, cosmos_group_v1_types_pb.MemberRequest, 2)); }; /** * @param {!Array<!proto.cosmos.group.v1.MemberRequest>} value * @return {!proto.cosmos.group.v1.MsgCreateGroup} returns this */ proto.cosmos.group.v1.MsgCreateGroup.prototype.setMembersList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.cosmos.group.v1.MemberRequest=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.group.v1.MemberRequest} */ proto.cosmos.group.v1.MsgCreateGroup.prototype.addMembers = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.group.v1.MemberRequest, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.group.v1.MsgCreateGroup} returns this */ proto.cosmos.group.v1.MsgCreateGroup.prototype.clearMembersList = function() { return this.setMembersList([]); }; /** * optional string metadata = 3; * @return {string} */ proto.cosmos.group.v1.MsgCreateGroup.prototype.getMetadata = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.cosmos.group.v1.MsgCreateGroup} returns this */ proto.cosmos.group.v1.MsgCreateGroup.prototype.setMetadata = function(value) { return jspb.Message.setProto3StringField(this, 3, 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.group.v1.MsgCreateGroupResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.group.v1.MsgCreateGroupResponse.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.group.v1.MsgCreateGroupResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.MsgCreateGroupResponse.toObject = function(includeInstance, msg) { var f, obj = { groupId: jspb.Message.getFieldWithDefault(msg, 1, 0) }; 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.group.v1.MsgCreateGroupResponse} */ proto.cosmos.group.v1.MsgCreateGroupResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.group.v1.MsgCreateGroupResponse; return proto.cosmos.group.v1.MsgCreateGroupResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.MsgCreateGroupResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.MsgCreateGroupResponse} */ proto.cosmos.group.v1.MsgCreateGroupResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint64()); msg.setGroupId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.group.v1.MsgCreateGroupResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.group.v1.MsgCreateGroupResponse.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.group.v1.MsgCreateGroupResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.MsgCreateGroupResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGroupId(); if (f !== 0) { writer.writeUint64( 1, f ); } }; /** * optional uint64 group_id = 1; * @return {number} */ proto.cosmos.group.v1.MsgCreateGroupResponse.prototype.getGroupId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.cosmos.group.v1.MsgCreateGroupResponse} returns this */ proto.cosmos.group.v1.MsgCreateGroupResponse.prototype.setGroupId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.group.v1.MsgUpdateGroupMembers.repeatedFields_ = [3]; 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.group.v1.MsgUpdateGroupMembers.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.group.v1.MsgUpdateGroupMembers.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.group.v1.MsgUpdateGroupMembers} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.MsgUpdateGroupMembers.toObject = function(includeInstance, msg) { var f, obj = { admin: jspb.Message.getFieldWithDefault(msg, 1, ""), groupId: jspb.Message.getFieldWithDefault(msg, 2, 0), memberUpdatesList: jspb.Message.toObjectList(msg.getMemberUpdatesList(), cosmos_group_v1_types_pb.MemberRequest.toObject, includeInstance) }; 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.group.v1.MsgUpdateGroupMembers} */ proto.cosmos.group.v1.MsgUpdateGroupMembers.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.group.v1.MsgUpdateGroupMembers; return proto.cosmos.group.v1.MsgUpdateGroupMembers.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.MsgUpdateGroupMembers} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.MsgUpdateGroupMembers} */ proto.cosmos.group.v1.MsgUpdateGroupMembers.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.setAdmin(value); break; case 2: var value = /** @type {number} */ (reader.readUint64()); msg.setGroupId(value); break; case 3: var value = new cosmos_group_v1_types_pb.MemberRequest; reader.readMessage(value,cosmos_group_v1_types_pb.MemberRequest.deserializeBinaryFromReader); msg.addMemberUpdates(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.group.v1.MsgUpdateGroupMembers.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.group.v1.MsgUpdateGroupMembers.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.group.v1.MsgUpdateGroupMembers} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.MsgUpdateGroupMembers.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAdmin(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getGroupId(); if (f !== 0) { writer.writeUint64( 2, f ); } f = message.getMemberUpdatesList(); if (f.length > 0) { writer.writeRepeatedMessage( 3, f, cosmos_group_v1_types_pb.MemberRequest.serializeBinaryToWriter ); } }; /** * optional string admin = 1; * @return {string} */ proto.cosmos.group.v1.MsgUpdateGroupMembers.prototype.getAdmin = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmos.group.v1.MsgUpdateGroupMembers} returns this */ proto.cosmos.group.v1.MsgUpdateGroupMembers.prototype.setAdmin = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional uint64 group_id = 2; * @return {number} */ proto.cosmos.group.v1.MsgUpdateGroupMembers.prototype.getGroupId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.cosmos.group.v1.MsgUpdateGroupMembers} returns this */ proto.cosmos.group.v1.MsgUpdateGroupMembers.prototype.setGroupId = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * repeated MemberRequest member_updates = 3; * @return {!Array<!proto.cosmos.group.v1.MemberRequest>} */ proto.cosmos.group.v1.MsgUpdateGroupMembers.prototype.getMemberUpdatesList = function() { return /** @type{!Array<!proto.cosmos.group.v1.MemberRequest>} */ ( jspb.Message.getRepeatedWrapperField(this, cosmos_group_v1_types_pb.MemberRequest, 3)); }; /** * @param {!Array<!proto.cosmos.group.v1.MemberRequest>} value * @return {!proto.cosmos.group.v1.MsgUpdateGroupMembers} returns this */ proto.cosmos.group.v1.MsgUpdateGroupMembers.prototype.setMemberUpdatesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** * @param {!proto.cosmos.group.v1.MemberRequest=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.group.v1.MemberRequest} */ proto.cosmos.group.v1.MsgUpdateGroupMembers.prototype.addMemberUpdates = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cosmos.group.v1.MemberRequest, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.group.v1.MsgUpdateGroupMembers} returns this */ proto.cosmos.group.v1.MsgUpdateGroupMembers.prototype.clearMemberUpdatesList = function() { return this.setMemberUpdatesList([]); }; 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.group.v1.MsgUpdateGroupMembersResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.group.v1.MsgUpdateGroupMembersResponse.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.group.v1.MsgUpdateGroupMembersResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.MsgUpdateGroupMembersResponse.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.group.v1.MsgUpdateGroupMembersResponse} */ proto.cosmos.group.v1.MsgUpdateGroupMembersResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.group.v1.MsgUpdateGroupMembersResponse; return proto.cosmos.group.v1.MsgUpdateGroupMembersResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.MsgUpdateGroupMembersResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.MsgUpdateGroupMembersResponse} */ proto.cosmos.group.v1.MsgUpdateGroupMembersResponse.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.group.v1.MsgUpdateGroupMembersResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.group.v1.MsgUpdateGroupMembersResponse.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.group.v1.MsgUpdateGroupMembersResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.MsgUpdateGroupMembersResponse.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.group.v1.MsgUpdateGroupAdmin.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.group.v1.MsgUpdateGroupAdmin.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.group.v1.MsgUpdateGroupAdmin} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.MsgUpdateGroupAdmin.toObject = function(includeInstance, msg) { var f, obj = { admin: jspb.Message.getFieldWithDefault(msg, 1, ""), groupId: jspb.Message.getFieldWithDefault(msg, 2, 0), newAdmin: jspb.Message.getFieldWithDefault(msg, 3, "") }; 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.group.v1.MsgUpdateGroupAdmin} */ proto.cosmos.group.v1.MsgUpdateGroupAdmin.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.group.v1.MsgUpdateGroupAdmin; return proto.cosmos.group.v1.MsgUpdateGroupAdmin.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.MsgUpdateGroupAdmin} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.MsgUpdateGroupAdmin} */ proto.cosmos.group.v1.MsgUpdateGroupAdmin.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.setAdmin(value); break; case 2: var value = /** @type {number} */ (reader.readUint64()); msg.setGroupId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setNewAdmin(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the