UNPKG

@bandprotocol/bandchain.js

Version:

Library for interacting with BandChain in browser and Node.js environments

1,583 lines (1,530 loc) 188 kB
// source: cosmos/group/v1/query.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 google_api_annotations_pb = require('../../../google/api/annotations_pb.js') goog.object.extend(proto, google_api_annotations_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_base_query_v1beta1_pagination_pb = require('../../../cosmos/base/query/v1beta1/pagination_pb.js') goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb) var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js') goog.object.extend(proto, cosmos_proto_cosmos_pb) var amino_amino_pb = require('../../../amino/amino_pb.js') goog.object.extend(proto, amino_amino_pb) goog.exportSymbol('proto.cosmos.group.v1.QueryGroupInfoRequest', null, global) goog.exportSymbol('proto.cosmos.group.v1.QueryGroupInfoResponse', null, global) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupMembersRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupMembersResponse', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupPoliciesByAdminRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupPoliciesByAdminResponse', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupPoliciesByGroupRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupPoliciesByGroupResponse', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupPolicyInfoRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupPolicyInfoResponse', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupsByAdminRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupsByAdminResponse', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupsByMemberRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryGroupsByMemberResponse', null, global, ) goog.exportSymbol('proto.cosmos.group.v1.QueryProposalRequest', null, global) goog.exportSymbol('proto.cosmos.group.v1.QueryProposalResponse', null, global) goog.exportSymbol( 'proto.cosmos.group.v1.QueryProposalsByGroupPolicyRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryProposalsByGroupPolicyResponse', null, global, ) goog.exportSymbol('proto.cosmos.group.v1.QueryTallyResultRequest', null, global) goog.exportSymbol( 'proto.cosmos.group.v1.QueryTallyResultResponse', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryVoteByProposalVoterRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryVoteByProposalVoterResponse', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryVotesByProposalRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryVotesByProposalResponse', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryVotesByVoterRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.group.v1.QueryVotesByVoterResponse', 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.QueryGroupInfoRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryGroupInfoRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupInfoRequest.displayName = 'proto.cosmos.group.v1.QueryGroupInfoRequest' } /** * 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.QueryGroupInfoResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryGroupInfoResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupInfoResponse.displayName = 'proto.cosmos.group.v1.QueryGroupInfoResponse' } /** * 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.QueryGroupPolicyInfoRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryGroupPolicyInfoRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.displayName = 'proto.cosmos.group.v1.QueryGroupPolicyInfoRequest' } /** * 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.QueryGroupPolicyInfoResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryGroupPolicyInfoResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.displayName = 'proto.cosmos.group.v1.QueryGroupPolicyInfoResponse' } /** * 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.QueryGroupMembersRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryGroupMembersRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupMembersRequest.displayName = 'proto.cosmos.group.v1.QueryGroupMembersRequest' } /** * 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.QueryGroupMembersResponse = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.group.v1.QueryGroupMembersResponse.repeatedFields_, null, ) } goog.inherits(proto.cosmos.group.v1.QueryGroupMembersResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupMembersResponse.displayName = 'proto.cosmos.group.v1.QueryGroupMembersResponse' } /** * 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.QueryGroupsByAdminRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryGroupsByAdminRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupsByAdminRequest.displayName = 'proto.cosmos.group.v1.QueryGroupsByAdminRequest' } /** * 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.QueryGroupsByAdminResponse = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.group.v1.QueryGroupsByAdminResponse.repeatedFields_, null, ) } goog.inherits(proto.cosmos.group.v1.QueryGroupsByAdminResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupsByAdminResponse.displayName = 'proto.cosmos.group.v1.QueryGroupsByAdminResponse' } /** * 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.QueryGroupPoliciesByGroupRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.cosmos.group.v1.QueryGroupPoliciesByGroupRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupPoliciesByGroupRequest.displayName = 'proto.cosmos.group.v1.QueryGroupPoliciesByGroupRequest' } /** * 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.QueryGroupPoliciesByGroupResponse = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.group.v1.QueryGroupPoliciesByGroupResponse.repeatedFields_, null, ) } goog.inherits( proto.cosmos.group.v1.QueryGroupPoliciesByGroupResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupPoliciesByGroupResponse.displayName = 'proto.cosmos.group.v1.QueryGroupPoliciesByGroupResponse' } /** * 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.QueryGroupPoliciesByAdminRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.cosmos.group.v1.QueryGroupPoliciesByAdminRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupPoliciesByAdminRequest.displayName = 'proto.cosmos.group.v1.QueryGroupPoliciesByAdminRequest' } /** * 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.QueryGroupPoliciesByAdminResponse = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.group.v1.QueryGroupPoliciesByAdminResponse.repeatedFields_, null, ) } goog.inherits( proto.cosmos.group.v1.QueryGroupPoliciesByAdminResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupPoliciesByAdminResponse.displayName = 'proto.cosmos.group.v1.QueryGroupPoliciesByAdminResponse' } /** * 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.QueryProposalRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryProposalRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryProposalRequest.displayName = 'proto.cosmos.group.v1.QueryProposalRequest' } /** * 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.QueryProposalResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryProposalResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryProposalResponse.displayName = 'proto.cosmos.group.v1.QueryProposalResponse' } /** * 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.QueryProposalsByGroupPolicyRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.cosmos.group.v1.QueryProposalsByGroupPolicyRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryProposalsByGroupPolicyRequest.displayName = 'proto.cosmos.group.v1.QueryProposalsByGroupPolicyRequest' } /** * 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.QueryProposalsByGroupPolicyResponse = function ( opt_data, ) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.group.v1.QueryProposalsByGroupPolicyResponse.repeatedFields_, null, ) } goog.inherits( proto.cosmos.group.v1.QueryProposalsByGroupPolicyResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryProposalsByGroupPolicyResponse.displayName = 'proto.cosmos.group.v1.QueryProposalsByGroupPolicyResponse' } /** * 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.QueryVoteByProposalVoterRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.cosmos.group.v1.QueryVoteByProposalVoterRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryVoteByProposalVoterRequest.displayName = 'proto.cosmos.group.v1.QueryVoteByProposalVoterRequest' } /** * 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.QueryVoteByProposalVoterResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.cosmos.group.v1.QueryVoteByProposalVoterResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryVoteByProposalVoterResponse.displayName = 'proto.cosmos.group.v1.QueryVoteByProposalVoterResponse' } /** * 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.QueryVotesByProposalRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryVotesByProposalRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryVotesByProposalRequest.displayName = 'proto.cosmos.group.v1.QueryVotesByProposalRequest' } /** * 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.QueryVotesByProposalResponse = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.group.v1.QueryVotesByProposalResponse.repeatedFields_, null, ) } goog.inherits(proto.cosmos.group.v1.QueryVotesByProposalResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryVotesByProposalResponse.displayName = 'proto.cosmos.group.v1.QueryVotesByProposalResponse' } /** * 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.QueryVotesByVoterRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryVotesByVoterRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryVotesByVoterRequest.displayName = 'proto.cosmos.group.v1.QueryVotesByVoterRequest' } /** * 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.QueryVotesByVoterResponse = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.group.v1.QueryVotesByVoterResponse.repeatedFields_, null, ) } goog.inherits(proto.cosmos.group.v1.QueryVotesByVoterResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryVotesByVoterResponse.displayName = 'proto.cosmos.group.v1.QueryVotesByVoterResponse' } /** * 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.QueryGroupsByMemberRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryGroupsByMemberRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupsByMemberRequest.displayName = 'proto.cosmos.group.v1.QueryGroupsByMemberRequest' } /** * 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.QueryGroupsByMemberResponse = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.group.v1.QueryGroupsByMemberResponse.repeatedFields_, null, ) } goog.inherits(proto.cosmos.group.v1.QueryGroupsByMemberResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryGroupsByMemberResponse.displayName = 'proto.cosmos.group.v1.QueryGroupsByMemberResponse' } /** * 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.QueryTallyResultRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryTallyResultRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryTallyResultRequest.displayName = 'proto.cosmos.group.v1.QueryTallyResultRequest' } /** * 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.QueryTallyResultResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.group.v1.QueryTallyResultResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.group.v1.QueryTallyResultResponse.displayName = 'proto.cosmos.group.v1.QueryTallyResultResponse' } 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.QueryGroupInfoRequest.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.group.v1.QueryGroupInfoRequest.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.QueryGroupInfoRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupInfoRequest.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.QueryGroupInfoRequest} */ proto.cosmos.group.v1.QueryGroupInfoRequest.deserializeBinary = function ( bytes, ) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.group.v1.QueryGroupInfoRequest() return proto.cosmos.group.v1.QueryGroupInfoRequest.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.QueryGroupInfoRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.QueryGroupInfoRequest} */ proto.cosmos.group.v1.QueryGroupInfoRequest.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.QueryGroupInfoRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.group.v1.QueryGroupInfoRequest.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.QueryGroupInfoRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupInfoRequest.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.QueryGroupInfoRequest.prototype.getGroupId = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) } /** * @param {number} value * @return {!proto.cosmos.group.v1.QueryGroupInfoRequest} returns this */ proto.cosmos.group.v1.QueryGroupInfoRequest.prototype.setGroupId = function ( value, ) { return jspb.Message.setProto3IntField(this, 1, 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.QueryGroupInfoResponse.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.group.v1.QueryGroupInfoResponse.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.QueryGroupInfoResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupInfoResponse.toObject = function ( includeInstance, msg, ) { var f, obj = { info: (f = msg.getInfo()) && cosmos_group_v1_types_pb.GroupInfo.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.group.v1.QueryGroupInfoResponse} */ proto.cosmos.group.v1.QueryGroupInfoResponse.deserializeBinary = function ( bytes, ) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.group.v1.QueryGroupInfoResponse() return proto.cosmos.group.v1.QueryGroupInfoResponse.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.QueryGroupInfoResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.QueryGroupInfoResponse} */ proto.cosmos.group.v1.QueryGroupInfoResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break } var field = reader.getFieldNumber() switch (field) { case 1: var value = new cosmos_group_v1_types_pb.GroupInfo() reader.readMessage( value, cosmos_group_v1_types_pb.GroupInfo.deserializeBinaryFromReader, ) msg.setInfo(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.group.v1.QueryGroupInfoResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.group.v1.QueryGroupInfoResponse.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.QueryGroupInfoResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupInfoResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getInfo() if (f != null) { writer.writeMessage( 1, f, cosmos_group_v1_types_pb.GroupInfo.serializeBinaryToWriter, ) } } /** * optional GroupInfo info = 1; * @return {?proto.cosmos.group.v1.GroupInfo} */ proto.cosmos.group.v1.QueryGroupInfoResponse.prototype.getInfo = function () { return /** @type{?proto.cosmos.group.v1.GroupInfo} */ ( jspb.Message.getWrapperField(this, cosmos_group_v1_types_pb.GroupInfo, 1) ) } /** * @param {?proto.cosmos.group.v1.GroupInfo|undefined} value * @return {!proto.cosmos.group.v1.QueryGroupInfoResponse} returns this */ proto.cosmos.group.v1.QueryGroupInfoResponse.prototype.setInfo = function ( value, ) { return jspb.Message.setWrapperField(this, 1, value) } /** * Clears the message field making it undefined. * @return {!proto.cosmos.group.v1.QueryGroupInfoResponse} returns this */ proto.cosmos.group.v1.QueryGroupInfoResponse.prototype.clearInfo = function () { return this.setInfo(undefined) } /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.group.v1.QueryGroupInfoResponse.prototype.hasInfo = function () { return jspb.Message.getField(this, 1) != 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.group.v1.QueryGroupPolicyInfoRequest.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.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.QueryGroupPolicyInfoRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.toObject = function ( includeInstance, msg, ) { var f, obj = { address: jspb.Message.getFieldWithDefault(msg, 1, ''), } 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.QueryGroupPolicyInfoRequest} */ proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.deserializeBinary = function ( bytes, ) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.group.v1.QueryGroupPolicyInfoRequest() return proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.QueryGroupPolicyInfoRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.QueryGroupPolicyInfoRequest} */ proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.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.setAddress(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.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.QueryGroupPolicyInfoRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getAddress() if (f.length > 0) { writer.writeString(1, f) } } /** * optional string address = 1; * @return {string} */ proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.prototype.getAddress = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) } /** * @param {string} value * @return {!proto.cosmos.group.v1.QueryGroupPolicyInfoRequest} returns this */ proto.cosmos.group.v1.QueryGroupPolicyInfoRequest.prototype.setAddress = function (value) { return jspb.Message.setProto3StringField(this, 1, 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.QueryGroupPolicyInfoResponse.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.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.QueryGroupPolicyInfoResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.toObject = function ( includeInstance, msg, ) { var f, obj = { info: (f = msg.getInfo()) && cosmos_group_v1_types_pb.GroupPolicyInfo.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.group.v1.QueryGroupPolicyInfoResponse} */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.group.v1.QueryGroupPolicyInfoResponse() return proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.QueryGroupPolicyInfoResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.QueryGroupPolicyInfoResponse} */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break } var field = reader.getFieldNumber() switch (field) { case 1: var value = new cosmos_group_v1_types_pb.GroupPolicyInfo() reader.readMessage( value, cosmos_group_v1_types_pb.GroupPolicyInfo .deserializeBinaryFromReader, ) msg.setInfo(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.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.QueryGroupPolicyInfoResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getInfo() if (f != null) { writer.writeMessage( 1, f, cosmos_group_v1_types_pb.GroupPolicyInfo.serializeBinaryToWriter, ) } } /** * optional GroupPolicyInfo info = 1; * @return {?proto.cosmos.group.v1.GroupPolicyInfo} */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.prototype.getInfo = function () { return /** @type{?proto.cosmos.group.v1.GroupPolicyInfo} */ ( jspb.Message.getWrapperField( this, cosmos_group_v1_types_pb.GroupPolicyInfo, 1, ) ) } /** * @param {?proto.cosmos.group.v1.GroupPolicyInfo|undefined} value * @return {!proto.cosmos.group.v1.QueryGroupPolicyInfoResponse} returns this */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.prototype.setInfo = function (value) { return jspb.Message.setWrapperField(this, 1, value) } /** * Clears the message field making it undefined. * @return {!proto.cosmos.group.v1.QueryGroupPolicyInfoResponse} returns this */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.prototype.clearInfo = function () { return this.setInfo(undefined) } /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.group.v1.QueryGroupPolicyInfoResponse.prototype.hasInfo = function () { return jspb.Message.getField(this, 1) != 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.group.v1.QueryGroupMembersRequest.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.group.v1.QueryGroupMembersRequest.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.QueryGroupMembersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupMembersRequest.toObject = function ( includeInstance, msg, ) { var f, obj = { groupId: jspb.Message.getFieldWithDefault(msg, 1, 0), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.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.group.v1.QueryGroupMembersRequest} */ proto.cosmos.group.v1.QueryGroupMembersRequest.deserializeBinary = function ( bytes, ) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.group.v1.QueryGroupMembersRequest() return proto.cosmos.group.v1.QueryGroupMembersRequest.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.group.v1.QueryGroupMembersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.group.v1.QueryGroupMembersRequest} */ proto.cosmos.group.v1.QueryGroupMembersRequest.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 case 2: var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest() reader.readMessage( value, cosmos_base_query_v1beta1_pagination_pb.PageRequest .deserializeBinaryFromReader, ) msg.setPagination(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.group.v1.QueryGroupMembersRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.group.v1.QueryGroupMembersRequest.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.QueryGroupMembersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.group.v1.QueryGroupMembersRequest.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getGroupId() if (f !== 0) { writer.writeUint64(1, f) } f = message.getPagination() if (f != null) { writer.writeMessage( 2, f, cosmos_base_query_v1beta1_pagination_pb.PageRequest .serializeBinaryToWriter, ) } } /** * optional uint64 group_id = 1; * @return {number} */ proto.cosmos.group.v1.QueryGroupMembersRequest.prototype.getGroupId = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) } /** * @param {number} value * @return {!proto.cosmos.group.v1.QueryGroupMembersRequest} returns this */ proto.cosmos.group.v1.QueryGroupMembersRequest.prototype.setGroupId = function ( value, ) { return jspb.Message.setProto3IntField(this, 1, value) } /** * optional cosmos.base.query.v1beta1.PageRequest pagination = 2; * @return {?proto.cosmos.base.query.v1beta1.PageRequest} */ proto.cosmos.group.v1.QueryGroupMembersRequest.prototype.getPagination = function () { return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( jspb.Message.getWrapperField( this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2,