text: // source: cosmos/gov/v1beta1/query.proto
  /**
   * @fileoverview
   * @enhanceable
   * @suppress {messageConventions} JS Compiler reports an error if a variable or
   *     field starts with 'MSG_' and isn't a translatable message.
   * @public
   */
  // GENERATED CODE -- DO NOT EDIT!
  
  var jspb = require('google-protobuf');
  var goog = jspb;
  var global = Function('return this')();
  
  var 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 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_gov_v1beta1_gov_pb = require('../../../cosmos/gov/v1beta1/gov_pb.js');
  goog.object.extend(proto, cosmos_gov_v1beta1_gov_pb);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryDepositRequest', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryDepositResponse', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryDepositsRequest', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryDepositsResponse', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryParamsRequest', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryParamsResponse', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryProposalRequest', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryProposalResponse', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryProposalsRequest', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryProposalsResponse', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryTallyResultRequest', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryTallyResultResponse', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryVoteRequest', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryVoteResponse', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryVotesRequest', null, global);
  goog.exportSymbol('proto.cosmos.gov.v1beta1.QueryVotesResponse', 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.gov.v1beta1.QueryProposalRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryProposalRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryProposalRequest.displayName = 'proto.cosmos.gov.v1beta1.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.gov.v1beta1.QueryProposalResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryProposalResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryProposalResponse.displayName = 'proto.cosmos.gov.v1beta1.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.gov.v1beta1.QueryProposalsRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryProposalsRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryProposalsRequest.displayName = 'proto.cosmos.gov.v1beta1.QueryProposalsRequest';
  }
  /**
   * 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.gov.v1beta1.QueryProposalsResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.gov.v1beta1.QueryProposalsResponse.repeatedFields_, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryProposalsResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryProposalsResponse.displayName = 'proto.cosmos.gov.v1beta1.QueryProposalsResponse';
  }
  /**
   * 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.gov.v1beta1.QueryVoteRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryVoteRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryVoteRequest.displayName = 'proto.cosmos.gov.v1beta1.QueryVoteRequest';
  }
  /**
   * 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.gov.v1beta1.QueryVoteResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryVoteResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryVoteResponse.displayName = 'proto.cosmos.gov.v1beta1.QueryVoteResponse';
  }
  /**
   * 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.gov.v1beta1.QueryVotesRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryVotesRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryVotesRequest.displayName = 'proto.cosmos.gov.v1beta1.QueryVotesRequest';
  }
  /**
   * 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.gov.v1beta1.QueryVotesResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.gov.v1beta1.QueryVotesResponse.repeatedFields_, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryVotesResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryVotesResponse.displayName = 'proto.cosmos.gov.v1beta1.QueryVotesResponse';
  }
  /**
   * 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.gov.v1beta1.QueryParamsRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryParamsRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryParamsRequest.displayName = 'proto.cosmos.gov.v1beta1.QueryParamsRequest';
  }
  /**
   * 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.gov.v1beta1.QueryParamsResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryParamsResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryParamsResponse.displayName = 'proto.cosmos.gov.v1beta1.QueryParamsResponse';
  }
  /**
   * 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.gov.v1beta1.QueryDepositRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryDepositRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryDepositRequest.displayName = 'proto.cosmos.gov.v1beta1.QueryDepositRequest';
  }
  /**
   * 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.gov.v1beta1.QueryDepositResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryDepositResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryDepositResponse.displayName = 'proto.cosmos.gov.v1beta1.QueryDepositResponse';
  }
  /**
   * 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.gov.v1beta1.QueryDepositsRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryDepositsRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryDepositsRequest.displayName = 'proto.cosmos.gov.v1beta1.QueryDepositsRequest';
  }
  /**
   * 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.gov.v1beta1.QueryDepositsResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.gov.v1beta1.QueryDepositsResponse.repeatedFields_, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryDepositsResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryDepositsResponse.displayName = 'proto.cosmos.gov.v1beta1.QueryDepositsResponse';
  }
  /**
   * 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.gov.v1beta1.QueryTallyResultRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryTallyResultRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryTallyResultRequest.displayName = 'proto.cosmos.gov.v1beta1.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.gov.v1beta1.QueryTallyResultResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cosmos.gov.v1beta1.QueryTallyResultResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cosmos.gov.v1beta1.QueryTallyResultResponse.displayName = 'proto.cosmos.gov.v1beta1.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.gov.v1beta1.QueryProposalRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryProposalRequest.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.gov.v1beta1.QueryProposalRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryProposalRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      proposalId: 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.gov.v1beta1.QueryProposalRequest}
   */
  proto.cosmos.gov.v1beta1.QueryProposalRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryProposalRequest;
    return proto.cosmos.gov.v1beta1.QueryProposalRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryProposalRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalRequest}
   */
  proto.cosmos.gov.v1beta1.QueryProposalRequest.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.setProposalId(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryProposalRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryProposalRequest.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.gov.v1beta1.QueryProposalRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryProposalRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProposalId();
    if (f !== 0) {
      writer.writeUint64(
        1,
        f
      );
    }
  };
  
  
  /**
   * optional uint64 proposal_id = 1;
   * @return {number}
   */
  proto.cosmos.gov.v1beta1.QueryProposalRequest.prototype.getProposalId = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryProposalRequest.prototype.setProposalId = 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.gov.v1beta1.QueryProposalResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryProposalResponse.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.gov.v1beta1.QueryProposalResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryProposalResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      proposal: (f = msg.getProposal()) && cosmos_gov_v1beta1_gov_pb.Proposal.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.gov.v1beta1.QueryProposalResponse}
   */
  proto.cosmos.gov.v1beta1.QueryProposalResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryProposalResponse;
    return proto.cosmos.gov.v1beta1.QueryProposalResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryProposalResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalResponse}
   */
  proto.cosmos.gov.v1beta1.QueryProposalResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cosmos_gov_v1beta1_gov_pb.Proposal;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.Proposal.deserializeBinaryFromReader);
        msg.setProposal(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryProposalResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryProposalResponse.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.gov.v1beta1.QueryProposalResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryProposalResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProposal();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cosmos_gov_v1beta1_gov_pb.Proposal.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional Proposal proposal = 1;
   * @return {?proto.cosmos.gov.v1beta1.Proposal}
   */
  proto.cosmos.gov.v1beta1.QueryProposalResponse.prototype.getProposal = function() {
    return /** @type{?proto.cosmos.gov.v1beta1.Proposal} */ (
      jspb.Message.getWrapperField(this, cosmos_gov_v1beta1_gov_pb.Proposal, 1));
  };
  
  
  /**
   * @param {?proto.cosmos.gov.v1beta1.Proposal|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryProposalResponse.prototype.setProposal = function(value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryProposalResponse.prototype.clearProposal = function() {
    return this.setProposal(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryProposalResponse.prototype.hasProposal = 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.gov.v1beta1.QueryProposalsRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryProposalsRequest.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.gov.v1beta1.QueryProposalsRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      proposalStatus: jspb.Message.getFieldWithDefault(msg, 1, 0),
      voter: jspb.Message.getFieldWithDefault(msg, 2, ""),
      depositor: jspb.Message.getFieldWithDefault(msg, 3, ""),
      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.gov.v1beta1.QueryProposalsRequest}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryProposalsRequest;
    return proto.cosmos.gov.v1beta1.QueryProposalsRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryProposalsRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsRequest}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = /** @type {!proto.cosmos.gov.v1beta1.ProposalStatus} */ (reader.readEnum());
        msg.setProposalStatus(value);
        break;
      case 2:
        var value = /** @type {string} */ (reader.readString());
        msg.setVoter(value);
        break;
      case 3:
        var value = /** @type {string} */ (reader.readString());
        msg.setDepositor(value);
        break;
      case 4:
        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.gov.v1beta1.QueryProposalsRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryProposalsRequest.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.gov.v1beta1.QueryProposalsRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProposalStatus();
    if (f !== 0.0) {
      writer.writeEnum(
        1,
        f
      );
    }
    f = message.getVoter();
    if (f.length > 0) {
      writer.writeString(
        2,
        f
      );
    }
    f = message.getDepositor();
    if (f.length > 0) {
      writer.writeString(
        3,
        f
      );
    }
    f = message.getPagination();
    if (f != null) {
      writer.writeMessage(
        4,
        f,
        cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional ProposalStatus proposal_status = 1;
   * @return {!proto.cosmos.gov.v1beta1.ProposalStatus}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.getProposalStatus = function() {
    return /** @type {!proto.cosmos.gov.v1beta1.ProposalStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /**
   * @param {!proto.cosmos.gov.v1beta1.ProposalStatus} value
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.setProposalStatus = function(value) {
    return jspb.Message.setProto3EnumField(this, 1, value);
  };
  
  
  /**
   * optional string voter = 2;
   * @return {string}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.getVoter = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.setVoter = function(value) {
    return jspb.Message.setProto3StringField(this, 2, value);
  };
  
  
  /**
   * optional string depositor = 3;
   * @return {string}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.getDepositor = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.setDepositor = function(value) {
    return jspb.Message.setProto3StringField(this, 3, value);
  };
  
  
  /**
   * optional cosmos.base.query.v1beta1.PageRequest pagination = 4;
   * @return {?proto.cosmos.base.query.v1beta1.PageRequest}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.getPagination = function() {
    return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
      jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 4));
  };
  
  
  /**
   * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsRequest} returns this
  */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.setPagination = function(value) {
    return jspb.Message.setWrapperField(this, 4, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.clearPagination = function() {
    return this.setPagination(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsRequest.prototype.hasPagination = function() {
    return jspb.Message.getField(this, 4) != null;
  };
  
  
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.repeatedFields_ = [1];
  
  
  
  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.gov.v1beta1.QueryProposalsResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryProposalsResponse.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.gov.v1beta1.QueryProposalsResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      proposalsList: jspb.Message.toObjectList(msg.getProposalsList(),
      cosmos_gov_v1beta1_gov_pb.Proposal.toObject, includeInstance),
      pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.gov.v1beta1.QueryProposalsResponse}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryProposalsResponse;
    return proto.cosmos.gov.v1beta1.QueryProposalsResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryProposalsResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsResponse}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cosmos_gov_v1beta1_gov_pb.Proposal;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.Proposal.deserializeBinaryFromReader);
        msg.addProposals(value);
        break;
      case 2:
        var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse;
        reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.gov.v1beta1.QueryProposalsResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryProposalsResponse.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.gov.v1beta1.QueryProposalsResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProposalsList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        1,
        f,
        cosmos_gov_v1beta1_gov_pb.Proposal.serializeBinaryToWriter
      );
    }
    f = message.getPagination();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * repeated Proposal proposals = 1;
   * @return {!Array<!proto.cosmos.gov.v1beta1.Proposal>}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.prototype.getProposalsList = function() {
    return /** @type{!Array<!proto.cosmos.gov.v1beta1.Proposal>} */ (
      jspb.Message.getRepeatedWrapperField(this, cosmos_gov_v1beta1_gov_pb.Proposal, 1));
  };
  
  
  /**
   * @param {!Array<!proto.cosmos.gov.v1beta1.Proposal>} value
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.prototype.setProposalsList = function(value) {
    return jspb.Message.setRepeatedWrapperField(this, 1, value);
  };
  
  
  /**
   * @param {!proto.cosmos.gov.v1beta1.Proposal=} opt_value
   * @param {number=} opt_index
   * @return {!proto.cosmos.gov.v1beta1.Proposal}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.prototype.addProposals = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.gov.v1beta1.Proposal, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.prototype.clearProposalsList = function() {
    return this.setProposalsList([]);
  };
  
  
  /**
   * optional cosmos.base.query.v1beta1.PageResponse pagination = 2;
   * @return {?proto.cosmos.base.query.v1beta1.PageResponse}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.prototype.getPagination = function() {
    return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ (
      jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2));
  };
  
  
  /**
   * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.prototype.setPagination = function(value) {
    return jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryProposalsResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.prototype.clearPagination = function() {
    return this.setPagination(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryProposalsResponse.prototype.hasPagination = function() {
    return jspb.Message.getField(this, 2) != 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.gov.v1beta1.QueryVoteRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryVoteRequest.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.gov.v1beta1.QueryVoteRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryVoteRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      proposalId: jspb.Message.getFieldWithDefault(msg, 1, 0),
      voter: jspb.Message.getFieldWithDefault(msg, 2, "")
    };
  
    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.gov.v1beta1.QueryVoteRequest}
   */
  proto.cosmos.gov.v1beta1.QueryVoteRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryVoteRequest;
    return proto.cosmos.gov.v1beta1.QueryVoteRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryVoteRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryVoteRequest}
   */
  proto.cosmos.gov.v1beta1.QueryVoteRequest.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.setProposalId(value);
        break;
      case 2:
        var value = /** @type {string} */ (reader.readString());
        msg.setVoter(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryVoteRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryVoteRequest.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.gov.v1beta1.QueryVoteRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryVoteRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProposalId();
    if (f !== 0) {
      writer.writeUint64(
        1,
        f
      );
    }
    f = message.getVoter();
    if (f.length > 0) {
      writer.writeString(
        2,
        f
      );
    }
  };
  
  
  /**
   * optional uint64 proposal_id = 1;
   * @return {number}
   */
  proto.cosmos.gov.v1beta1.QueryVoteRequest.prototype.getProposalId = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.cosmos.gov.v1beta1.QueryVoteRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryVoteRequest.prototype.setProposalId = function(value) {
    return jspb.Message.setProto3IntField(this, 1, value);
  };
  
  
  /**
   * optional string voter = 2;
   * @return {string}
   */
  proto.cosmos.gov.v1beta1.QueryVoteRequest.prototype.getVoter = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.cosmos.gov.v1beta1.QueryVoteRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryVoteRequest.prototype.setVoter = function(value) {
    return jspb.Message.setProto3StringField(this, 2, 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.gov.v1beta1.QueryVoteResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryVoteResponse.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.gov.v1beta1.QueryVoteResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryVoteResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      vote: (f = msg.getVote()) && cosmos_gov_v1beta1_gov_pb.Vote.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.gov.v1beta1.QueryVoteResponse}
   */
  proto.cosmos.gov.v1beta1.QueryVoteResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryVoteResponse;
    return proto.cosmos.gov.v1beta1.QueryVoteResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryVoteResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryVoteResponse}
   */
  proto.cosmos.gov.v1beta1.QueryVoteResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cosmos_gov_v1beta1_gov_pb.Vote;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.Vote.deserializeBinaryFromReader);
        msg.setVote(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryVoteResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryVoteResponse.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.gov.v1beta1.QueryVoteResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryVoteResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getVote();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cosmos_gov_v1beta1_gov_pb.Vote.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional Vote vote = 1;
   * @return {?proto.cosmos.gov.v1beta1.Vote}
   */
  proto.cosmos.gov.v1beta1.QueryVoteResponse.prototype.getVote = function() {
    return /** @type{?proto.cosmos.gov.v1beta1.Vote} */ (
      jspb.Message.getWrapperField(this, cosmos_gov_v1beta1_gov_pb.Vote, 1));
  };
  
  
  /**
   * @param {?proto.cosmos.gov.v1beta1.Vote|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryVoteResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryVoteResponse.prototype.setVote = function(value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryVoteResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryVoteResponse.prototype.clearVote = function() {
    return this.setVote(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryVoteResponse.prototype.hasVote = 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.gov.v1beta1.QueryVotesRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryVotesRequest.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.gov.v1beta1.QueryVotesRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryVotesRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      proposalId: 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.gov.v1beta1.QueryVotesRequest}
   */
  proto.cosmos.gov.v1beta1.QueryVotesRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryVotesRequest;
    return proto.cosmos.gov.v1beta1.QueryVotesRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryVotesRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryVotesRequest}
   */
  proto.cosmos.gov.v1beta1.QueryVotesRequest.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.setProposalId(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.gov.v1beta1.QueryVotesRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryVotesRequest.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.gov.v1beta1.QueryVotesRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryVotesRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProposalId();
    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 proposal_id = 1;
   * @return {number}
   */
  proto.cosmos.gov.v1beta1.QueryVotesRequest.prototype.getProposalId = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.cosmos.gov.v1beta1.QueryVotesRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryVotesRequest.prototype.setProposalId = 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.gov.v1beta1.QueryVotesRequest.prototype.getPagination = function() {
    return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
      jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2));
  };
  
  
  /**
   * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryVotesRequest} returns this
  */
  proto.cosmos.gov.v1beta1.QueryVotesRequest.prototype.setPagination = function(value) {
    return jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryVotesRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryVotesRequest.prototype.clearPagination = function() {
    return this.setPagination(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryVotesRequest.prototype.hasPagination = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.repeatedFields_ = [1];
  
  
  
  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.gov.v1beta1.QueryVotesResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryVotesResponse.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.gov.v1beta1.QueryVotesResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      votesList: jspb.Message.toObjectList(msg.getVotesList(),
      cosmos_gov_v1beta1_gov_pb.Vote.toObject, includeInstance),
      pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.gov.v1beta1.QueryVotesResponse}
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryVotesResponse;
    return proto.cosmos.gov.v1beta1.QueryVotesResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryVotesResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryVotesResponse}
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cosmos_gov_v1beta1_gov_pb.Vote;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.Vote.deserializeBinaryFromReader);
        msg.addVotes(value);
        break;
      case 2:
        var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse;
        reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.gov.v1beta1.QueryVotesResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryVotesResponse.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.gov.v1beta1.QueryVotesResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getVotesList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        1,
        f,
        cosmos_gov_v1beta1_gov_pb.Vote.serializeBinaryToWriter
      );
    }
    f = message.getPagination();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * repeated Vote votes = 1;
   * @return {!Array<!proto.cosmos.gov.v1beta1.Vote>}
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.prototype.getVotesList = function() {
    return /** @type{!Array<!proto.cosmos.gov.v1beta1.Vote>} */ (
      jspb.Message.getRepeatedWrapperField(this, cosmos_gov_v1beta1_gov_pb.Vote, 1));
  };
  
  
  /**
   * @param {!Array<!proto.cosmos.gov.v1beta1.Vote>} value
   * @return {!proto.cosmos.gov.v1beta1.QueryVotesResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.prototype.setVotesList = function(value) {
    return jspb.Message.setRepeatedWrapperField(this, 1, value);
  };
  
  
  /**
   * @param {!proto.cosmos.gov.v1beta1.Vote=} opt_value
   * @param {number=} opt_index
   * @return {!proto.cosmos.gov.v1beta1.Vote}
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.prototype.addVotes = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.gov.v1beta1.Vote, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   * @return {!proto.cosmos.gov.v1beta1.QueryVotesResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.prototype.clearVotesList = function() {
    return this.setVotesList([]);
  };
  
  
  /**
   * optional cosmos.base.query.v1beta1.PageResponse pagination = 2;
   * @return {?proto.cosmos.base.query.v1beta1.PageResponse}
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.prototype.getPagination = function() {
    return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ (
      jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2));
  };
  
  
  /**
   * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryVotesResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.prototype.setPagination = function(value) {
    return jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryVotesResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.prototype.clearPagination = function() {
    return this.setPagination(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryVotesResponse.prototype.hasPagination = function() {
    return jspb.Message.getField(this, 2) != 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.gov.v1beta1.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryParamsRequest.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.gov.v1beta1.QueryParamsRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryParamsRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      paramsType: 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.gov.v1beta1.QueryParamsRequest}
   */
  proto.cosmos.gov.v1beta1.QueryParamsRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryParamsRequest;
    return proto.cosmos.gov.v1beta1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryParamsRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryParamsRequest}
   */
  proto.cosmos.gov.v1beta1.QueryParamsRequest.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.setParamsType(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryParamsRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryParamsRequest.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.gov.v1beta1.QueryParamsRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryParamsRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getParamsType();
    if (f.length > 0) {
      writer.writeString(
        1,
        f
      );
    }
  };
  
  
  /**
   * optional string params_type = 1;
   * @return {string}
   */
  proto.cosmos.gov.v1beta1.QueryParamsRequest.prototype.getParamsType = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.cosmos.gov.v1beta1.QueryParamsRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryParamsRequest.prototype.setParamsType = 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.gov.v1beta1.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryParamsResponse.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.gov.v1beta1.QueryParamsResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      votingParams: (f = msg.getVotingParams()) && cosmos_gov_v1beta1_gov_pb.VotingParams.toObject(includeInstance, f),
      depositParams: (f = msg.getDepositParams()) && cosmos_gov_v1beta1_gov_pb.DepositParams.toObject(includeInstance, f),
      tallyParams: (f = msg.getTallyParams()) && cosmos_gov_v1beta1_gov_pb.TallyParams.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.gov.v1beta1.QueryParamsResponse}
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryParamsResponse;
    return proto.cosmos.gov.v1beta1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryParamsResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryParamsResponse}
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cosmos_gov_v1beta1_gov_pb.VotingParams;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.VotingParams.deserializeBinaryFromReader);
        msg.setVotingParams(value);
        break;
      case 2:
        var value = new cosmos_gov_v1beta1_gov_pb.DepositParams;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.DepositParams.deserializeBinaryFromReader);
        msg.setDepositParams(value);
        break;
      case 3:
        var value = new cosmos_gov_v1beta1_gov_pb.TallyParams;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.TallyParams.deserializeBinaryFromReader);
        msg.setTallyParams(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryParamsResponse.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.gov.v1beta1.QueryParamsResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getVotingParams();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cosmos_gov_v1beta1_gov_pb.VotingParams.serializeBinaryToWriter
      );
    }
    f = message.getDepositParams();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cosmos_gov_v1beta1_gov_pb.DepositParams.serializeBinaryToWriter
      );
    }
    f = message.getTallyParams();
    if (f != null) {
      writer.writeMessage(
        3,
        f,
        cosmos_gov_v1beta1_gov_pb.TallyParams.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional VotingParams voting_params = 1;
   * @return {?proto.cosmos.gov.v1beta1.VotingParams}
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.getVotingParams = function() {
    return /** @type{?proto.cosmos.gov.v1beta1.VotingParams} */ (
      jspb.Message.getWrapperField(this, cosmos_gov_v1beta1_gov_pb.VotingParams, 1));
  };
  
  
  /**
   * @param {?proto.cosmos.gov.v1beta1.VotingParams|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryParamsResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.setVotingParams = function(value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryParamsResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.clearVotingParams = function() {
    return this.setVotingParams(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.hasVotingParams = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional DepositParams deposit_params = 2;
   * @return {?proto.cosmos.gov.v1beta1.DepositParams}
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.getDepositParams = function() {
    return /** @type{?proto.cosmos.gov.v1beta1.DepositParams} */ (
      jspb.Message.getWrapperField(this, cosmos_gov_v1beta1_gov_pb.DepositParams, 2));
  };
  
  
  /**
   * @param {?proto.cosmos.gov.v1beta1.DepositParams|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryParamsResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.setDepositParams = function(value) {
    return jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryParamsResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.clearDepositParams = function() {
    return this.setDepositParams(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.hasDepositParams = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional TallyParams tally_params = 3;
   * @return {?proto.cosmos.gov.v1beta1.TallyParams}
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.getTallyParams = function() {
    return /** @type{?proto.cosmos.gov.v1beta1.TallyParams} */ (
      jspb.Message.getWrapperField(this, cosmos_gov_v1beta1_gov_pb.TallyParams, 3));
  };
  
  
  /**
   * @param {?proto.cosmos.gov.v1beta1.TallyParams|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryParamsResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.setTallyParams = function(value) {
    return jspb.Message.setWrapperField(this, 3, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryParamsResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.clearTallyParams = function() {
    return this.setTallyParams(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryParamsResponse.prototype.hasTallyParams = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryDepositRequest.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.gov.v1beta1.QueryDepositRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      proposalId: jspb.Message.getFieldWithDefault(msg, 1, 0),
      depositor: jspb.Message.getFieldWithDefault(msg, 2, "")
    };
  
    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.gov.v1beta1.QueryDepositRequest}
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryDepositRequest;
    return proto.cosmos.gov.v1beta1.QueryDepositRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryDepositRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositRequest}
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.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.setProposalId(value);
        break;
      case 2:
        var value = /** @type {string} */ (reader.readString());
        msg.setDepositor(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryDepositRequest.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.gov.v1beta1.QueryDepositRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProposalId();
    if (f !== 0) {
      writer.writeUint64(
        1,
        f
      );
    }
    f = message.getDepositor();
    if (f.length > 0) {
      writer.writeString(
        2,
        f
      );
    }
  };
  
  
  /**
   * optional uint64 proposal_id = 1;
   * @return {number}
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.prototype.getProposalId = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.prototype.setProposalId = function(value) {
    return jspb.Message.setProto3IntField(this, 1, value);
  };
  
  
  /**
   * optional string depositor = 2;
   * @return {string}
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.prototype.getDepositor = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  
  /**
   * @param {string} value
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryDepositRequest.prototype.setDepositor = function(value) {
    return jspb.Message.setProto3StringField(this, 2, 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.gov.v1beta1.QueryDepositResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryDepositResponse.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.gov.v1beta1.QueryDepositResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryDepositResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      deposit: (f = msg.getDeposit()) && cosmos_gov_v1beta1_gov_pb.Deposit.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.gov.v1beta1.QueryDepositResponse}
   */
  proto.cosmos.gov.v1beta1.QueryDepositResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryDepositResponse;
    return proto.cosmos.gov.v1beta1.QueryDepositResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryDepositResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositResponse}
   */
  proto.cosmos.gov.v1beta1.QueryDepositResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cosmos_gov_v1beta1_gov_pb.Deposit;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.Deposit.deserializeBinaryFromReader);
        msg.setDeposit(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryDepositResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryDepositResponse.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.gov.v1beta1.QueryDepositResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryDepositResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getDeposit();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cosmos_gov_v1beta1_gov_pb.Deposit.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional Deposit deposit = 1;
   * @return {?proto.cosmos.gov.v1beta1.Deposit}
   */
  proto.cosmos.gov.v1beta1.QueryDepositResponse.prototype.getDeposit = function() {
    return /** @type{?proto.cosmos.gov.v1beta1.Deposit} */ (
      jspb.Message.getWrapperField(this, cosmos_gov_v1beta1_gov_pb.Deposit, 1));
  };
  
  
  /**
   * @param {?proto.cosmos.gov.v1beta1.Deposit|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryDepositResponse.prototype.setDeposit = function(value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryDepositResponse.prototype.clearDeposit = function() {
    return this.setDeposit(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryDepositResponse.prototype.hasDeposit = 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.gov.v1beta1.QueryDepositsRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryDepositsRequest.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.gov.v1beta1.QueryDepositsRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryDepositsRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      proposalId: 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.gov.v1beta1.QueryDepositsRequest}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryDepositsRequest;
    return proto.cosmos.gov.v1beta1.QueryDepositsRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryDepositsRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositsRequest}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsRequest.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.setProposalId(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.gov.v1beta1.QueryDepositsRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryDepositsRequest.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.gov.v1beta1.QueryDepositsRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryDepositsRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProposalId();
    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 proposal_id = 1;
   * @return {number}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsRequest.prototype.getProposalId = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositsRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryDepositsRequest.prototype.setProposalId = 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.gov.v1beta1.QueryDepositsRequest.prototype.getPagination = function() {
    return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
      jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2));
  };
  
  
  /**
   * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositsRequest} returns this
  */
  proto.cosmos.gov.v1beta1.QueryDepositsRequest.prototype.setPagination = function(value) {
    return jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositsRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryDepositsRequest.prototype.clearPagination = function() {
    return this.setPagination(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsRequest.prototype.hasPagination = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.repeatedFields_ = [1];
  
  
  
  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.gov.v1beta1.QueryDepositsResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryDepositsResponse.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.gov.v1beta1.QueryDepositsResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      depositsList: jspb.Message.toObjectList(msg.getDepositsList(),
      cosmos_gov_v1beta1_gov_pb.Deposit.toObject, includeInstance),
      pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.gov.v1beta1.QueryDepositsResponse}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryDepositsResponse;
    return proto.cosmos.gov.v1beta1.QueryDepositsResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryDepositsResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositsResponse}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cosmos_gov_v1beta1_gov_pb.Deposit;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.Deposit.deserializeBinaryFromReader);
        msg.addDeposits(value);
        break;
      case 2:
        var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse;
        reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.gov.v1beta1.QueryDepositsResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryDepositsResponse.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.gov.v1beta1.QueryDepositsResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getDepositsList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        1,
        f,
        cosmos_gov_v1beta1_gov_pb.Deposit.serializeBinaryToWriter
      );
    }
    f = message.getPagination();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * repeated Deposit deposits = 1;
   * @return {!Array<!proto.cosmos.gov.v1beta1.Deposit>}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.prototype.getDepositsList = function() {
    return /** @type{!Array<!proto.cosmos.gov.v1beta1.Deposit>} */ (
      jspb.Message.getRepeatedWrapperField(this, cosmos_gov_v1beta1_gov_pb.Deposit, 1));
  };
  
  
  /**
   * @param {!Array<!proto.cosmos.gov.v1beta1.Deposit>} value
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositsResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.prototype.setDepositsList = function(value) {
    return jspb.Message.setRepeatedWrapperField(this, 1, value);
  };
  
  
  /**
   * @param {!proto.cosmos.gov.v1beta1.Deposit=} opt_value
   * @param {number=} opt_index
   * @return {!proto.cosmos.gov.v1beta1.Deposit}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.prototype.addDeposits = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.gov.v1beta1.Deposit, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositsResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.prototype.clearDepositsList = function() {
    return this.setDepositsList([]);
  };
  
  
  /**
   * optional cosmos.base.query.v1beta1.PageResponse pagination = 2;
   * @return {?proto.cosmos.base.query.v1beta1.PageResponse}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.prototype.getPagination = function() {
    return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ (
      jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2));
  };
  
  
  /**
   * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositsResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.prototype.setPagination = function(value) {
    return jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryDepositsResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.prototype.clearPagination = function() {
    return this.setPagination(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryDepositsResponse.prototype.hasPagination = function() {
    return jspb.Message.getField(this, 2) != 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.gov.v1beta1.QueryTallyResultRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryTallyResultRequest.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.gov.v1beta1.QueryTallyResultRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      proposalId: 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.gov.v1beta1.QueryTallyResultRequest}
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryTallyResultRequest;
    return proto.cosmos.gov.v1beta1.QueryTallyResultRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryTallyResultRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryTallyResultRequest}
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultRequest.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.setProposalId(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryTallyResultRequest.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.gov.v1beta1.QueryTallyResultRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getProposalId();
    if (f !== 0) {
      writer.writeUint64(
        1,
        f
      );
    }
  };
  
  
  /**
   * optional uint64 proposal_id = 1;
   * @return {number}
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultRequest.prototype.getProposalId = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /**
   * @param {number} value
   * @return {!proto.cosmos.gov.v1beta1.QueryTallyResultRequest} returns this
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultRequest.prototype.setProposalId = 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.gov.v1beta1.QueryTallyResultResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cosmos.gov.v1beta1.QueryTallyResultResponse.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.gov.v1beta1.QueryTallyResultResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      tally: (f = msg.getTally()) && cosmos_gov_v1beta1_gov_pb.TallyResult.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.gov.v1beta1.QueryTallyResultResponse}
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cosmos.gov.v1beta1.QueryTallyResultResponse;
    return proto.cosmos.gov.v1beta1.QueryTallyResultResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cosmos.gov.v1beta1.QueryTallyResultResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cosmos.gov.v1beta1.QueryTallyResultResponse}
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cosmos_gov_v1beta1_gov_pb.TallyResult;
        reader.readMessage(value,cosmos_gov_v1beta1_gov_pb.TallyResult.deserializeBinaryFromReader);
        msg.setTally(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cosmos.gov.v1beta1.QueryTallyResultResponse.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.gov.v1beta1.QueryTallyResultResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getTally();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cosmos_gov_v1beta1_gov_pb.TallyResult.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional TallyResult tally = 1;
   * @return {?proto.cosmos.gov.v1beta1.TallyResult}
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultResponse.prototype.getTally = function() {
    return /** @type{?proto.cosmos.gov.v1beta1.TallyResult} */ (
      jspb.Message.getWrapperField(this, cosmos_gov_v1beta1_gov_pb.TallyResult, 1));
  };
  
  
  /**
   * @param {?proto.cosmos.gov.v1beta1.TallyResult|undefined} value
   * @return {!proto.cosmos.gov.v1beta1.QueryTallyResultResponse} returns this
  */
  proto.cosmos.gov.v1beta1.QueryTallyResultResponse.prototype.setTally = function(value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   * @return {!proto.cosmos.gov.v1beta1.QueryTallyResultResponse} returns this
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultResponse.prototype.clearTally = function() {
    return this.setTally(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cosmos.gov.v1beta1.QueryTallyResultResponse.prototype.hasTally = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  goog.object.extend(exports, proto.cosmos.gov.v1beta1);
  