github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/js/proto/rpcquery_pb.js (about)

     1  // source: rpcquery.proto
     2  /**
     3   * @fileoverview
     4   * @enhanceable
     5   * @suppress {missingRequire} reports error on implicit type usages.
     6   * @suppress {messageConventions} JS Compiler reports an error if a variable or
     7   *     field starts with 'MSG_' and isn't a translatable message.
     8   * @public
     9   */
    10  // GENERATED CODE -- DO NOT EDIT!
    11  /* eslint-disable */
    12  // @ts-nocheck
    13  
    14  var jspb = require('google-protobuf');
    15  var goog = jspb;
    16  var global = Function('return this')();
    17  
    18  var gogoproto_gogo_pb = require('./gogoproto/gogo_pb.js');
    19  goog.object.extend(proto, gogoproto_gogo_pb);
    20  var tendermint_types_types_pb = require('./tendermint/types/types_pb.js');
    21  goog.object.extend(proto, tendermint_types_types_pb);
    22  var names_pb = require('./names_pb.js');
    23  goog.object.extend(proto, names_pb);
    24  var acm_pb = require('./acm_pb.js');
    25  goog.object.extend(proto, acm_pb);
    26  var validator_pb = require('./validator_pb.js');
    27  goog.object.extend(proto, validator_pb);
    28  var registry_pb = require('./registry_pb.js');
    29  goog.object.extend(proto, registry_pb);
    30  var rpc_pb = require('./rpc_pb.js');
    31  goog.object.extend(proto, rpc_pb);
    32  var payload_pb = require('./payload_pb.js');
    33  goog.object.extend(proto, payload_pb);
    34  goog.exportSymbol('proto.rpcquery.GetAccountParam', null, global);
    35  goog.exportSymbol('proto.rpcquery.GetBlockParam', null, global);
    36  goog.exportSymbol('proto.rpcquery.GetMetadataParam', null, global);
    37  goog.exportSymbol('proto.rpcquery.GetNameParam', null, global);
    38  goog.exportSymbol('proto.rpcquery.GetNetworkRegistryParam', null, global);
    39  goog.exportSymbol('proto.rpcquery.GetProposalParam', null, global);
    40  goog.exportSymbol('proto.rpcquery.GetStatsParam', null, global);
    41  goog.exportSymbol('proto.rpcquery.GetStorageParam', null, global);
    42  goog.exportSymbol('proto.rpcquery.GetValidatorSetHistoryParam', null, global);
    43  goog.exportSymbol('proto.rpcquery.GetValidatorSetParam', null, global);
    44  goog.exportSymbol('proto.rpcquery.ListAccountsParam', null, global);
    45  goog.exportSymbol('proto.rpcquery.ListNamesParam', null, global);
    46  goog.exportSymbol('proto.rpcquery.ListProposalsParam', null, global);
    47  goog.exportSymbol('proto.rpcquery.MetadataResult', null, global);
    48  goog.exportSymbol('proto.rpcquery.NetworkRegistry', null, global);
    49  goog.exportSymbol('proto.rpcquery.ProposalResult', null, global);
    50  goog.exportSymbol('proto.rpcquery.RegisteredValidator', null, global);
    51  goog.exportSymbol('proto.rpcquery.Stats', null, global);
    52  goog.exportSymbol('proto.rpcquery.StatusParam', null, global);
    53  goog.exportSymbol('proto.rpcquery.StorageValue', null, global);
    54  goog.exportSymbol('proto.rpcquery.ValidatorSet', null, global);
    55  goog.exportSymbol('proto.rpcquery.ValidatorSetHistory', null, global);
    56  /**
    57   * Generated by JsPbCodeGenerator.
    58   * @param {Array=} opt_data Optional initial data array, typically from a
    59   * server response, or constructed directly in Javascript. The array is used
    60   * in place and becomes part of the constructed object. It is not cloned.
    61   * If no data is provided, the constructed object will be empty, but still
    62   * valid.
    63   * @extends {jspb.Message}
    64   * @constructor
    65   */
    66  proto.rpcquery.StatusParam = function(opt_data) {
    67    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    68  };
    69  goog.inherits(proto.rpcquery.StatusParam, jspb.Message);
    70  if (goog.DEBUG && !COMPILED) {
    71    /**
    72     * @public
    73     * @override
    74     */
    75    proto.rpcquery.StatusParam.displayName = 'proto.rpcquery.StatusParam';
    76  }
    77  /**
    78   * Generated by JsPbCodeGenerator.
    79   * @param {Array=} opt_data Optional initial data array, typically from a
    80   * server response, or constructed directly in Javascript. The array is used
    81   * in place and becomes part of the constructed object. It is not cloned.
    82   * If no data is provided, the constructed object will be empty, but still
    83   * valid.
    84   * @extends {jspb.Message}
    85   * @constructor
    86   */
    87  proto.rpcquery.GetAccountParam = function(opt_data) {
    88    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    89  };
    90  goog.inherits(proto.rpcquery.GetAccountParam, jspb.Message);
    91  if (goog.DEBUG && !COMPILED) {
    92    /**
    93     * @public
    94     * @override
    95     */
    96    proto.rpcquery.GetAccountParam.displayName = 'proto.rpcquery.GetAccountParam';
    97  }
    98  /**
    99   * Generated by JsPbCodeGenerator.
   100   * @param {Array=} opt_data Optional initial data array, typically from a
   101   * server response, or constructed directly in Javascript. The array is used
   102   * in place and becomes part of the constructed object. It is not cloned.
   103   * If no data is provided, the constructed object will be empty, but still
   104   * valid.
   105   * @extends {jspb.Message}
   106   * @constructor
   107   */
   108  proto.rpcquery.GetMetadataParam = function(opt_data) {
   109    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   110  };
   111  goog.inherits(proto.rpcquery.GetMetadataParam, jspb.Message);
   112  if (goog.DEBUG && !COMPILED) {
   113    /**
   114     * @public
   115     * @override
   116     */
   117    proto.rpcquery.GetMetadataParam.displayName = 'proto.rpcquery.GetMetadataParam';
   118  }
   119  /**
   120   * Generated by JsPbCodeGenerator.
   121   * @param {Array=} opt_data Optional initial data array, typically from a
   122   * server response, or constructed directly in Javascript. The array is used
   123   * in place and becomes part of the constructed object. It is not cloned.
   124   * If no data is provided, the constructed object will be empty, but still
   125   * valid.
   126   * @extends {jspb.Message}
   127   * @constructor
   128   */
   129  proto.rpcquery.MetadataResult = function(opt_data) {
   130    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   131  };
   132  goog.inherits(proto.rpcquery.MetadataResult, jspb.Message);
   133  if (goog.DEBUG && !COMPILED) {
   134    /**
   135     * @public
   136     * @override
   137     */
   138    proto.rpcquery.MetadataResult.displayName = 'proto.rpcquery.MetadataResult';
   139  }
   140  /**
   141   * Generated by JsPbCodeGenerator.
   142   * @param {Array=} opt_data Optional initial data array, typically from a
   143   * server response, or constructed directly in Javascript. The array is used
   144   * in place and becomes part of the constructed object. It is not cloned.
   145   * If no data is provided, the constructed object will be empty, but still
   146   * valid.
   147   * @extends {jspb.Message}
   148   * @constructor
   149   */
   150  proto.rpcquery.GetStorageParam = function(opt_data) {
   151    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   152  };
   153  goog.inherits(proto.rpcquery.GetStorageParam, jspb.Message);
   154  if (goog.DEBUG && !COMPILED) {
   155    /**
   156     * @public
   157     * @override
   158     */
   159    proto.rpcquery.GetStorageParam.displayName = 'proto.rpcquery.GetStorageParam';
   160  }
   161  /**
   162   * Generated by JsPbCodeGenerator.
   163   * @param {Array=} opt_data Optional initial data array, typically from a
   164   * server response, or constructed directly in Javascript. The array is used
   165   * in place and becomes part of the constructed object. It is not cloned.
   166   * If no data is provided, the constructed object will be empty, but still
   167   * valid.
   168   * @extends {jspb.Message}
   169   * @constructor
   170   */
   171  proto.rpcquery.StorageValue = function(opt_data) {
   172    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   173  };
   174  goog.inherits(proto.rpcquery.StorageValue, jspb.Message);
   175  if (goog.DEBUG && !COMPILED) {
   176    /**
   177     * @public
   178     * @override
   179     */
   180    proto.rpcquery.StorageValue.displayName = 'proto.rpcquery.StorageValue';
   181  }
   182  /**
   183   * Generated by JsPbCodeGenerator.
   184   * @param {Array=} opt_data Optional initial data array, typically from a
   185   * server response, or constructed directly in Javascript. The array is used
   186   * in place and becomes part of the constructed object. It is not cloned.
   187   * If no data is provided, the constructed object will be empty, but still
   188   * valid.
   189   * @extends {jspb.Message}
   190   * @constructor
   191   */
   192  proto.rpcquery.ListAccountsParam = function(opt_data) {
   193    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   194  };
   195  goog.inherits(proto.rpcquery.ListAccountsParam, jspb.Message);
   196  if (goog.DEBUG && !COMPILED) {
   197    /**
   198     * @public
   199     * @override
   200     */
   201    proto.rpcquery.ListAccountsParam.displayName = 'proto.rpcquery.ListAccountsParam';
   202  }
   203  /**
   204   * Generated by JsPbCodeGenerator.
   205   * @param {Array=} opt_data Optional initial data array, typically from a
   206   * server response, or constructed directly in Javascript. The array is used
   207   * in place and becomes part of the constructed object. It is not cloned.
   208   * If no data is provided, the constructed object will be empty, but still
   209   * valid.
   210   * @extends {jspb.Message}
   211   * @constructor
   212   */
   213  proto.rpcquery.GetNameParam = function(opt_data) {
   214    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   215  };
   216  goog.inherits(proto.rpcquery.GetNameParam, jspb.Message);
   217  if (goog.DEBUG && !COMPILED) {
   218    /**
   219     * @public
   220     * @override
   221     */
   222    proto.rpcquery.GetNameParam.displayName = 'proto.rpcquery.GetNameParam';
   223  }
   224  /**
   225   * Generated by JsPbCodeGenerator.
   226   * @param {Array=} opt_data Optional initial data array, typically from a
   227   * server response, or constructed directly in Javascript. The array is used
   228   * in place and becomes part of the constructed object. It is not cloned.
   229   * If no data is provided, the constructed object will be empty, but still
   230   * valid.
   231   * @extends {jspb.Message}
   232   * @constructor
   233   */
   234  proto.rpcquery.ListNamesParam = function(opt_data) {
   235    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   236  };
   237  goog.inherits(proto.rpcquery.ListNamesParam, jspb.Message);
   238  if (goog.DEBUG && !COMPILED) {
   239    /**
   240     * @public
   241     * @override
   242     */
   243    proto.rpcquery.ListNamesParam.displayName = 'proto.rpcquery.ListNamesParam';
   244  }
   245  /**
   246   * Generated by JsPbCodeGenerator.
   247   * @param {Array=} opt_data Optional initial data array, typically from a
   248   * server response, or constructed directly in Javascript. The array is used
   249   * in place and becomes part of the constructed object. It is not cloned.
   250   * If no data is provided, the constructed object will be empty, but still
   251   * valid.
   252   * @extends {jspb.Message}
   253   * @constructor
   254   */
   255  proto.rpcquery.GetNetworkRegistryParam = function(opt_data) {
   256    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   257  };
   258  goog.inherits(proto.rpcquery.GetNetworkRegistryParam, jspb.Message);
   259  if (goog.DEBUG && !COMPILED) {
   260    /**
   261     * @public
   262     * @override
   263     */
   264    proto.rpcquery.GetNetworkRegistryParam.displayName = 'proto.rpcquery.GetNetworkRegistryParam';
   265  }
   266  /**
   267   * Generated by JsPbCodeGenerator.
   268   * @param {Array=} opt_data Optional initial data array, typically from a
   269   * server response, or constructed directly in Javascript. The array is used
   270   * in place and becomes part of the constructed object. It is not cloned.
   271   * If no data is provided, the constructed object will be empty, but still
   272   * valid.
   273   * @extends {jspb.Message}
   274   * @constructor
   275   */
   276  proto.rpcquery.GetValidatorSetParam = function(opt_data) {
   277    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   278  };
   279  goog.inherits(proto.rpcquery.GetValidatorSetParam, jspb.Message);
   280  if (goog.DEBUG && !COMPILED) {
   281    /**
   282     * @public
   283     * @override
   284     */
   285    proto.rpcquery.GetValidatorSetParam.displayName = 'proto.rpcquery.GetValidatorSetParam';
   286  }
   287  /**
   288   * Generated by JsPbCodeGenerator.
   289   * @param {Array=} opt_data Optional initial data array, typically from a
   290   * server response, or constructed directly in Javascript. The array is used
   291   * in place and becomes part of the constructed object. It is not cloned.
   292   * If no data is provided, the constructed object will be empty, but still
   293   * valid.
   294   * @extends {jspb.Message}
   295   * @constructor
   296   */
   297  proto.rpcquery.GetValidatorSetHistoryParam = function(opt_data) {
   298    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   299  };
   300  goog.inherits(proto.rpcquery.GetValidatorSetHistoryParam, jspb.Message);
   301  if (goog.DEBUG && !COMPILED) {
   302    /**
   303     * @public
   304     * @override
   305     */
   306    proto.rpcquery.GetValidatorSetHistoryParam.displayName = 'proto.rpcquery.GetValidatorSetHistoryParam';
   307  }
   308  /**
   309   * Generated by JsPbCodeGenerator.
   310   * @param {Array=} opt_data Optional initial data array, typically from a
   311   * server response, or constructed directly in Javascript. The array is used
   312   * in place and becomes part of the constructed object. It is not cloned.
   313   * If no data is provided, the constructed object will be empty, but still
   314   * valid.
   315   * @extends {jspb.Message}
   316   * @constructor
   317   */
   318  proto.rpcquery.NetworkRegistry = function(opt_data) {
   319    jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.NetworkRegistry.repeatedFields_, null);
   320  };
   321  goog.inherits(proto.rpcquery.NetworkRegistry, jspb.Message);
   322  if (goog.DEBUG && !COMPILED) {
   323    /**
   324     * @public
   325     * @override
   326     */
   327    proto.rpcquery.NetworkRegistry.displayName = 'proto.rpcquery.NetworkRegistry';
   328  }
   329  /**
   330   * Generated by JsPbCodeGenerator.
   331   * @param {Array=} opt_data Optional initial data array, typically from a
   332   * server response, or constructed directly in Javascript. The array is used
   333   * in place and becomes part of the constructed object. It is not cloned.
   334   * If no data is provided, the constructed object will be empty, but still
   335   * valid.
   336   * @extends {jspb.Message}
   337   * @constructor
   338   */
   339  proto.rpcquery.RegisteredValidator = function(opt_data) {
   340    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   341  };
   342  goog.inherits(proto.rpcquery.RegisteredValidator, jspb.Message);
   343  if (goog.DEBUG && !COMPILED) {
   344    /**
   345     * @public
   346     * @override
   347     */
   348    proto.rpcquery.RegisteredValidator.displayName = 'proto.rpcquery.RegisteredValidator';
   349  }
   350  /**
   351   * Generated by JsPbCodeGenerator.
   352   * @param {Array=} opt_data Optional initial data array, typically from a
   353   * server response, or constructed directly in Javascript. The array is used
   354   * in place and becomes part of the constructed object. It is not cloned.
   355   * If no data is provided, the constructed object will be empty, but still
   356   * valid.
   357   * @extends {jspb.Message}
   358   * @constructor
   359   */
   360  proto.rpcquery.ValidatorSetHistory = function(opt_data) {
   361    jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.ValidatorSetHistory.repeatedFields_, null);
   362  };
   363  goog.inherits(proto.rpcquery.ValidatorSetHistory, jspb.Message);
   364  if (goog.DEBUG && !COMPILED) {
   365    /**
   366     * @public
   367     * @override
   368     */
   369    proto.rpcquery.ValidatorSetHistory.displayName = 'proto.rpcquery.ValidatorSetHistory';
   370  }
   371  /**
   372   * Generated by JsPbCodeGenerator.
   373   * @param {Array=} opt_data Optional initial data array, typically from a
   374   * server response, or constructed directly in Javascript. The array is used
   375   * in place and becomes part of the constructed object. It is not cloned.
   376   * If no data is provided, the constructed object will be empty, but still
   377   * valid.
   378   * @extends {jspb.Message}
   379   * @constructor
   380   */
   381  proto.rpcquery.ValidatorSet = function(opt_data) {
   382    jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.ValidatorSet.repeatedFields_, null);
   383  };
   384  goog.inherits(proto.rpcquery.ValidatorSet, jspb.Message);
   385  if (goog.DEBUG && !COMPILED) {
   386    /**
   387     * @public
   388     * @override
   389     */
   390    proto.rpcquery.ValidatorSet.displayName = 'proto.rpcquery.ValidatorSet';
   391  }
   392  /**
   393   * Generated by JsPbCodeGenerator.
   394   * @param {Array=} opt_data Optional initial data array, typically from a
   395   * server response, or constructed directly in Javascript. The array is used
   396   * in place and becomes part of the constructed object. It is not cloned.
   397   * If no data is provided, the constructed object will be empty, but still
   398   * valid.
   399   * @extends {jspb.Message}
   400   * @constructor
   401   */
   402  proto.rpcquery.GetProposalParam = function(opt_data) {
   403    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   404  };
   405  goog.inherits(proto.rpcquery.GetProposalParam, jspb.Message);
   406  if (goog.DEBUG && !COMPILED) {
   407    /**
   408     * @public
   409     * @override
   410     */
   411    proto.rpcquery.GetProposalParam.displayName = 'proto.rpcquery.GetProposalParam';
   412  }
   413  /**
   414   * Generated by JsPbCodeGenerator.
   415   * @param {Array=} opt_data Optional initial data array, typically from a
   416   * server response, or constructed directly in Javascript. The array is used
   417   * in place and becomes part of the constructed object. It is not cloned.
   418   * If no data is provided, the constructed object will be empty, but still
   419   * valid.
   420   * @extends {jspb.Message}
   421   * @constructor
   422   */
   423  proto.rpcquery.ListProposalsParam = function(opt_data) {
   424    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   425  };
   426  goog.inherits(proto.rpcquery.ListProposalsParam, jspb.Message);
   427  if (goog.DEBUG && !COMPILED) {
   428    /**
   429     * @public
   430     * @override
   431     */
   432    proto.rpcquery.ListProposalsParam.displayName = 'proto.rpcquery.ListProposalsParam';
   433  }
   434  /**
   435   * Generated by JsPbCodeGenerator.
   436   * @param {Array=} opt_data Optional initial data array, typically from a
   437   * server response, or constructed directly in Javascript. The array is used
   438   * in place and becomes part of the constructed object. It is not cloned.
   439   * If no data is provided, the constructed object will be empty, but still
   440   * valid.
   441   * @extends {jspb.Message}
   442   * @constructor
   443   */
   444  proto.rpcquery.ProposalResult = function(opt_data) {
   445    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   446  };
   447  goog.inherits(proto.rpcquery.ProposalResult, jspb.Message);
   448  if (goog.DEBUG && !COMPILED) {
   449    /**
   450     * @public
   451     * @override
   452     */
   453    proto.rpcquery.ProposalResult.displayName = 'proto.rpcquery.ProposalResult';
   454  }
   455  /**
   456   * Generated by JsPbCodeGenerator.
   457   * @param {Array=} opt_data Optional initial data array, typically from a
   458   * server response, or constructed directly in Javascript. The array is used
   459   * in place and becomes part of the constructed object. It is not cloned.
   460   * If no data is provided, the constructed object will be empty, but still
   461   * valid.
   462   * @extends {jspb.Message}
   463   * @constructor
   464   */
   465  proto.rpcquery.GetStatsParam = function(opt_data) {
   466    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   467  };
   468  goog.inherits(proto.rpcquery.GetStatsParam, jspb.Message);
   469  if (goog.DEBUG && !COMPILED) {
   470    /**
   471     * @public
   472     * @override
   473     */
   474    proto.rpcquery.GetStatsParam.displayName = 'proto.rpcquery.GetStatsParam';
   475  }
   476  /**
   477   * Generated by JsPbCodeGenerator.
   478   * @param {Array=} opt_data Optional initial data array, typically from a
   479   * server response, or constructed directly in Javascript. The array is used
   480   * in place and becomes part of the constructed object. It is not cloned.
   481   * If no data is provided, the constructed object will be empty, but still
   482   * valid.
   483   * @extends {jspb.Message}
   484   * @constructor
   485   */
   486  proto.rpcquery.Stats = function(opt_data) {
   487    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   488  };
   489  goog.inherits(proto.rpcquery.Stats, jspb.Message);
   490  if (goog.DEBUG && !COMPILED) {
   491    /**
   492     * @public
   493     * @override
   494     */
   495    proto.rpcquery.Stats.displayName = 'proto.rpcquery.Stats';
   496  }
   497  /**
   498   * Generated by JsPbCodeGenerator.
   499   * @param {Array=} opt_data Optional initial data array, typically from a
   500   * server response, or constructed directly in Javascript. The array is used
   501   * in place and becomes part of the constructed object. It is not cloned.
   502   * If no data is provided, the constructed object will be empty, but still
   503   * valid.
   504   * @extends {jspb.Message}
   505   * @constructor
   506   */
   507  proto.rpcquery.GetBlockParam = function(opt_data) {
   508    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   509  };
   510  goog.inherits(proto.rpcquery.GetBlockParam, jspb.Message);
   511  if (goog.DEBUG && !COMPILED) {
   512    /**
   513     * @public
   514     * @override
   515     */
   516    proto.rpcquery.GetBlockParam.displayName = 'proto.rpcquery.GetBlockParam';
   517  }
   518  
   519  
   520  
   521  if (jspb.Message.GENERATE_TO_OBJECT) {
   522  /**
   523   * Creates an object representation of this proto.
   524   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   525   * Optional fields that are not set will be set to undefined.
   526   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   527   * For the list of reserved names please see:
   528   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   529   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   530   *     JSPB instance for transitional soy proto support:
   531   *     http://goto/soy-param-migration
   532   * @return {!Object}
   533   */
   534  proto.rpcquery.StatusParam.prototype.toObject = function(opt_includeInstance) {
   535    return proto.rpcquery.StatusParam.toObject(opt_includeInstance, this);
   536  };
   537  
   538  
   539  /**
   540   * Static version of the {@see toObject} method.
   541   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   542   *     the JSPB instance for transitional soy proto support:
   543   *     http://goto/soy-param-migration
   544   * @param {!proto.rpcquery.StatusParam} msg The msg instance to transform.
   545   * @return {!Object}
   546   * @suppress {unusedLocalVariables} f is only used for nested messages
   547   */
   548  proto.rpcquery.StatusParam.toObject = function(includeInstance, msg) {
   549    var f, obj = {
   550      blocktimewithin: jspb.Message.getFieldWithDefault(msg, 1, ""),
   551      blockseentimewithin: jspb.Message.getFieldWithDefault(msg, 2, "")
   552    };
   553  
   554    if (includeInstance) {
   555      obj.$jspbMessageInstance = msg;
   556    }
   557    return obj;
   558  };
   559  }
   560  
   561  
   562  /**
   563   * Deserializes binary data (in protobuf wire format).
   564   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   565   * @return {!proto.rpcquery.StatusParam}
   566   */
   567  proto.rpcquery.StatusParam.deserializeBinary = function(bytes) {
   568    var reader = new jspb.BinaryReader(bytes);
   569    var msg = new proto.rpcquery.StatusParam;
   570    return proto.rpcquery.StatusParam.deserializeBinaryFromReader(msg, reader);
   571  };
   572  
   573  
   574  /**
   575   * Deserializes binary data (in protobuf wire format) from the
   576   * given reader into the given message object.
   577   * @param {!proto.rpcquery.StatusParam} msg The message object to deserialize into.
   578   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   579   * @return {!proto.rpcquery.StatusParam}
   580   */
   581  proto.rpcquery.StatusParam.deserializeBinaryFromReader = function(msg, reader) {
   582    while (reader.nextField()) {
   583      if (reader.isEndGroup()) {
   584        break;
   585      }
   586      var field = reader.getFieldNumber();
   587      switch (field) {
   588      case 1:
   589        var value = /** @type {string} */ (reader.readString());
   590        msg.setBlocktimewithin(value);
   591        break;
   592      case 2:
   593        var value = /** @type {string} */ (reader.readString());
   594        msg.setBlockseentimewithin(value);
   595        break;
   596      default:
   597        reader.skipField();
   598        break;
   599      }
   600    }
   601    return msg;
   602  };
   603  
   604  
   605  /**
   606   * Serializes the message to binary data (in protobuf wire format).
   607   * @return {!Uint8Array}
   608   */
   609  proto.rpcquery.StatusParam.prototype.serializeBinary = function() {
   610    var writer = new jspb.BinaryWriter();
   611    proto.rpcquery.StatusParam.serializeBinaryToWriter(this, writer);
   612    return writer.getResultBuffer();
   613  };
   614  
   615  
   616  /**
   617   * Serializes the given message to binary data (in protobuf wire
   618   * format), writing to the given BinaryWriter.
   619   * @param {!proto.rpcquery.StatusParam} message
   620   * @param {!jspb.BinaryWriter} writer
   621   * @suppress {unusedLocalVariables} f is only used for nested messages
   622   */
   623  proto.rpcquery.StatusParam.serializeBinaryToWriter = function(message, writer) {
   624    var f = undefined;
   625    f = message.getBlocktimewithin();
   626    if (f.length > 0) {
   627      writer.writeString(
   628        1,
   629        f
   630      );
   631    }
   632    f = message.getBlockseentimewithin();
   633    if (f.length > 0) {
   634      writer.writeString(
   635        2,
   636        f
   637      );
   638    }
   639  };
   640  
   641  
   642  /**
   643   * optional string BlockTimeWithin = 1;
   644   * @return {string}
   645   */
   646  proto.rpcquery.StatusParam.prototype.getBlocktimewithin = function() {
   647    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   648  };
   649  
   650  
   651  /**
   652   * @param {string} value
   653   * @return {!proto.rpcquery.StatusParam} returns this
   654   */
   655  proto.rpcquery.StatusParam.prototype.setBlocktimewithin = function(value) {
   656    return jspb.Message.setProto3StringField(this, 1, value);
   657  };
   658  
   659  
   660  /**
   661   * optional string BlockSeenTimeWithin = 2;
   662   * @return {string}
   663   */
   664  proto.rpcquery.StatusParam.prototype.getBlockseentimewithin = function() {
   665    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
   666  };
   667  
   668  
   669  /**
   670   * @param {string} value
   671   * @return {!proto.rpcquery.StatusParam} returns this
   672   */
   673  proto.rpcquery.StatusParam.prototype.setBlockseentimewithin = function(value) {
   674    return jspb.Message.setProto3StringField(this, 2, value);
   675  };
   676  
   677  
   678  
   679  
   680  
   681  if (jspb.Message.GENERATE_TO_OBJECT) {
   682  /**
   683   * Creates an object representation of this proto.
   684   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   685   * Optional fields that are not set will be set to undefined.
   686   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   687   * For the list of reserved names please see:
   688   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   689   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   690   *     JSPB instance for transitional soy proto support:
   691   *     http://goto/soy-param-migration
   692   * @return {!Object}
   693   */
   694  proto.rpcquery.GetAccountParam.prototype.toObject = function(opt_includeInstance) {
   695    return proto.rpcquery.GetAccountParam.toObject(opt_includeInstance, this);
   696  };
   697  
   698  
   699  /**
   700   * Static version of the {@see toObject} method.
   701   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   702   *     the JSPB instance for transitional soy proto support:
   703   *     http://goto/soy-param-migration
   704   * @param {!proto.rpcquery.GetAccountParam} msg The msg instance to transform.
   705   * @return {!Object}
   706   * @suppress {unusedLocalVariables} f is only used for nested messages
   707   */
   708  proto.rpcquery.GetAccountParam.toObject = function(includeInstance, msg) {
   709    var f, obj = {
   710      address: msg.getAddress_asB64()
   711    };
   712  
   713    if (includeInstance) {
   714      obj.$jspbMessageInstance = msg;
   715    }
   716    return obj;
   717  };
   718  }
   719  
   720  
   721  /**
   722   * Deserializes binary data (in protobuf wire format).
   723   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   724   * @return {!proto.rpcquery.GetAccountParam}
   725   */
   726  proto.rpcquery.GetAccountParam.deserializeBinary = function(bytes) {
   727    var reader = new jspb.BinaryReader(bytes);
   728    var msg = new proto.rpcquery.GetAccountParam;
   729    return proto.rpcquery.GetAccountParam.deserializeBinaryFromReader(msg, reader);
   730  };
   731  
   732  
   733  /**
   734   * Deserializes binary data (in protobuf wire format) from the
   735   * given reader into the given message object.
   736   * @param {!proto.rpcquery.GetAccountParam} msg The message object to deserialize into.
   737   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   738   * @return {!proto.rpcquery.GetAccountParam}
   739   */
   740  proto.rpcquery.GetAccountParam.deserializeBinaryFromReader = function(msg, reader) {
   741    while (reader.nextField()) {
   742      if (reader.isEndGroup()) {
   743        break;
   744      }
   745      var field = reader.getFieldNumber();
   746      switch (field) {
   747      case 1:
   748        var value = /** @type {!Uint8Array} */ (reader.readBytes());
   749        msg.setAddress(value);
   750        break;
   751      default:
   752        reader.skipField();
   753        break;
   754      }
   755    }
   756    return msg;
   757  };
   758  
   759  
   760  /**
   761   * Serializes the message to binary data (in protobuf wire format).
   762   * @return {!Uint8Array}
   763   */
   764  proto.rpcquery.GetAccountParam.prototype.serializeBinary = function() {
   765    var writer = new jspb.BinaryWriter();
   766    proto.rpcquery.GetAccountParam.serializeBinaryToWriter(this, writer);
   767    return writer.getResultBuffer();
   768  };
   769  
   770  
   771  /**
   772   * Serializes the given message to binary data (in protobuf wire
   773   * format), writing to the given BinaryWriter.
   774   * @param {!proto.rpcquery.GetAccountParam} message
   775   * @param {!jspb.BinaryWriter} writer
   776   * @suppress {unusedLocalVariables} f is only used for nested messages
   777   */
   778  proto.rpcquery.GetAccountParam.serializeBinaryToWriter = function(message, writer) {
   779    var f = undefined;
   780    f = message.getAddress_asU8();
   781    if (f.length > 0) {
   782      writer.writeBytes(
   783        1,
   784        f
   785      );
   786    }
   787  };
   788  
   789  
   790  /**
   791   * optional bytes Address = 1;
   792   * @return {!(string|Uint8Array)}
   793   */
   794  proto.rpcquery.GetAccountParam.prototype.getAddress = function() {
   795    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   796  };
   797  
   798  
   799  /**
   800   * optional bytes Address = 1;
   801   * This is a type-conversion wrapper around `getAddress()`
   802   * @return {string}
   803   */
   804  proto.rpcquery.GetAccountParam.prototype.getAddress_asB64 = function() {
   805    return /** @type {string} */ (jspb.Message.bytesAsB64(
   806        this.getAddress()));
   807  };
   808  
   809  
   810  /**
   811   * optional bytes Address = 1;
   812   * Note that Uint8Array is not supported on all browsers.
   813   * @see http://caniuse.com/Uint8Array
   814   * This is a type-conversion wrapper around `getAddress()`
   815   * @return {!Uint8Array}
   816   */
   817  proto.rpcquery.GetAccountParam.prototype.getAddress_asU8 = function() {
   818    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
   819        this.getAddress()));
   820  };
   821  
   822  
   823  /**
   824   * @param {!(string|Uint8Array)} value
   825   * @return {!proto.rpcquery.GetAccountParam} returns this
   826   */
   827  proto.rpcquery.GetAccountParam.prototype.setAddress = function(value) {
   828    return jspb.Message.setProto3BytesField(this, 1, value);
   829  };
   830  
   831  
   832  
   833  
   834  
   835  if (jspb.Message.GENERATE_TO_OBJECT) {
   836  /**
   837   * Creates an object representation of this proto.
   838   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   839   * Optional fields that are not set will be set to undefined.
   840   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   841   * For the list of reserved names please see:
   842   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   843   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   844   *     JSPB instance for transitional soy proto support:
   845   *     http://goto/soy-param-migration
   846   * @return {!Object}
   847   */
   848  proto.rpcquery.GetMetadataParam.prototype.toObject = function(opt_includeInstance) {
   849    return proto.rpcquery.GetMetadataParam.toObject(opt_includeInstance, this);
   850  };
   851  
   852  
   853  /**
   854   * Static version of the {@see toObject} method.
   855   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   856   *     the JSPB instance for transitional soy proto support:
   857   *     http://goto/soy-param-migration
   858   * @param {!proto.rpcquery.GetMetadataParam} msg The msg instance to transform.
   859   * @return {!Object}
   860   * @suppress {unusedLocalVariables} f is only used for nested messages
   861   */
   862  proto.rpcquery.GetMetadataParam.toObject = function(includeInstance, msg) {
   863    var f, obj = {
   864      address: msg.getAddress_asB64(),
   865      metadatahash: msg.getMetadatahash_asB64()
   866    };
   867  
   868    if (includeInstance) {
   869      obj.$jspbMessageInstance = msg;
   870    }
   871    return obj;
   872  };
   873  }
   874  
   875  
   876  /**
   877   * Deserializes binary data (in protobuf wire format).
   878   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   879   * @return {!proto.rpcquery.GetMetadataParam}
   880   */
   881  proto.rpcquery.GetMetadataParam.deserializeBinary = function(bytes) {
   882    var reader = new jspb.BinaryReader(bytes);
   883    var msg = new proto.rpcquery.GetMetadataParam;
   884    return proto.rpcquery.GetMetadataParam.deserializeBinaryFromReader(msg, reader);
   885  };
   886  
   887  
   888  /**
   889   * Deserializes binary data (in protobuf wire format) from the
   890   * given reader into the given message object.
   891   * @param {!proto.rpcquery.GetMetadataParam} msg The message object to deserialize into.
   892   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   893   * @return {!proto.rpcquery.GetMetadataParam}
   894   */
   895  proto.rpcquery.GetMetadataParam.deserializeBinaryFromReader = function(msg, reader) {
   896    while (reader.nextField()) {
   897      if (reader.isEndGroup()) {
   898        break;
   899      }
   900      var field = reader.getFieldNumber();
   901      switch (field) {
   902      case 1:
   903        var value = /** @type {!Uint8Array} */ (reader.readBytes());
   904        msg.setAddress(value);
   905        break;
   906      case 2:
   907        var value = /** @type {!Uint8Array} */ (reader.readBytes());
   908        msg.setMetadatahash(value);
   909        break;
   910      default:
   911        reader.skipField();
   912        break;
   913      }
   914    }
   915    return msg;
   916  };
   917  
   918  
   919  /**
   920   * Serializes the message to binary data (in protobuf wire format).
   921   * @return {!Uint8Array}
   922   */
   923  proto.rpcquery.GetMetadataParam.prototype.serializeBinary = function() {
   924    var writer = new jspb.BinaryWriter();
   925    proto.rpcquery.GetMetadataParam.serializeBinaryToWriter(this, writer);
   926    return writer.getResultBuffer();
   927  };
   928  
   929  
   930  /**
   931   * Serializes the given message to binary data (in protobuf wire
   932   * format), writing to the given BinaryWriter.
   933   * @param {!proto.rpcquery.GetMetadataParam} message
   934   * @param {!jspb.BinaryWriter} writer
   935   * @suppress {unusedLocalVariables} f is only used for nested messages
   936   */
   937  proto.rpcquery.GetMetadataParam.serializeBinaryToWriter = function(message, writer) {
   938    var f = undefined;
   939    f = message.getAddress_asU8();
   940    if (f.length > 0) {
   941      writer.writeBytes(
   942        1,
   943        f
   944      );
   945    }
   946    f = message.getMetadatahash_asU8();
   947    if (f.length > 0) {
   948      writer.writeBytes(
   949        2,
   950        f
   951      );
   952    }
   953  };
   954  
   955  
   956  /**
   957   * optional bytes Address = 1;
   958   * @return {!(string|Uint8Array)}
   959   */
   960  proto.rpcquery.GetMetadataParam.prototype.getAddress = function() {
   961    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   962  };
   963  
   964  
   965  /**
   966   * optional bytes Address = 1;
   967   * This is a type-conversion wrapper around `getAddress()`
   968   * @return {string}
   969   */
   970  proto.rpcquery.GetMetadataParam.prototype.getAddress_asB64 = function() {
   971    return /** @type {string} */ (jspb.Message.bytesAsB64(
   972        this.getAddress()));
   973  };
   974  
   975  
   976  /**
   977   * optional bytes Address = 1;
   978   * Note that Uint8Array is not supported on all browsers.
   979   * @see http://caniuse.com/Uint8Array
   980   * This is a type-conversion wrapper around `getAddress()`
   981   * @return {!Uint8Array}
   982   */
   983  proto.rpcquery.GetMetadataParam.prototype.getAddress_asU8 = function() {
   984    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
   985        this.getAddress()));
   986  };
   987  
   988  
   989  /**
   990   * @param {!(string|Uint8Array)} value
   991   * @return {!proto.rpcquery.GetMetadataParam} returns this
   992   */
   993  proto.rpcquery.GetMetadataParam.prototype.setAddress = function(value) {
   994    return jspb.Message.setProto3BytesField(this, 1, value);
   995  };
   996  
   997  
   998  /**
   999   * optional bytes MetadataHash = 2;
  1000   * @return {!(string|Uint8Array)}
  1001   */
  1002  proto.rpcquery.GetMetadataParam.prototype.getMetadatahash = function() {
  1003    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1004  };
  1005  
  1006  
  1007  /**
  1008   * optional bytes MetadataHash = 2;
  1009   * This is a type-conversion wrapper around `getMetadatahash()`
  1010   * @return {string}
  1011   */
  1012  proto.rpcquery.GetMetadataParam.prototype.getMetadatahash_asB64 = function() {
  1013    return /** @type {string} */ (jspb.Message.bytesAsB64(
  1014        this.getMetadatahash()));
  1015  };
  1016  
  1017  
  1018  /**
  1019   * optional bytes MetadataHash = 2;
  1020   * Note that Uint8Array is not supported on all browsers.
  1021   * @see http://caniuse.com/Uint8Array
  1022   * This is a type-conversion wrapper around `getMetadatahash()`
  1023   * @return {!Uint8Array}
  1024   */
  1025  proto.rpcquery.GetMetadataParam.prototype.getMetadatahash_asU8 = function() {
  1026    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  1027        this.getMetadatahash()));
  1028  };
  1029  
  1030  
  1031  /**
  1032   * @param {!(string|Uint8Array)} value
  1033   * @return {!proto.rpcquery.GetMetadataParam} returns this
  1034   */
  1035  proto.rpcquery.GetMetadataParam.prototype.setMetadatahash = function(value) {
  1036    return jspb.Message.setProto3BytesField(this, 2, value);
  1037  };
  1038  
  1039  
  1040  
  1041  
  1042  
  1043  if (jspb.Message.GENERATE_TO_OBJECT) {
  1044  /**
  1045   * Creates an object representation of this proto.
  1046   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1047   * Optional fields that are not set will be set to undefined.
  1048   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1049   * For the list of reserved names please see:
  1050   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1051   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1052   *     JSPB instance for transitional soy proto support:
  1053   *     http://goto/soy-param-migration
  1054   * @return {!Object}
  1055   */
  1056  proto.rpcquery.MetadataResult.prototype.toObject = function(opt_includeInstance) {
  1057    return proto.rpcquery.MetadataResult.toObject(opt_includeInstance, this);
  1058  };
  1059  
  1060  
  1061  /**
  1062   * Static version of the {@see toObject} method.
  1063   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1064   *     the JSPB instance for transitional soy proto support:
  1065   *     http://goto/soy-param-migration
  1066   * @param {!proto.rpcquery.MetadataResult} msg The msg instance to transform.
  1067   * @return {!Object}
  1068   * @suppress {unusedLocalVariables} f is only used for nested messages
  1069   */
  1070  proto.rpcquery.MetadataResult.toObject = function(includeInstance, msg) {
  1071    var f, obj = {
  1072      metadata: jspb.Message.getFieldWithDefault(msg, 1, "")
  1073    };
  1074  
  1075    if (includeInstance) {
  1076      obj.$jspbMessageInstance = msg;
  1077    }
  1078    return obj;
  1079  };
  1080  }
  1081  
  1082  
  1083  /**
  1084   * Deserializes binary data (in protobuf wire format).
  1085   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1086   * @return {!proto.rpcquery.MetadataResult}
  1087   */
  1088  proto.rpcquery.MetadataResult.deserializeBinary = function(bytes) {
  1089    var reader = new jspb.BinaryReader(bytes);
  1090    var msg = new proto.rpcquery.MetadataResult;
  1091    return proto.rpcquery.MetadataResult.deserializeBinaryFromReader(msg, reader);
  1092  };
  1093  
  1094  
  1095  /**
  1096   * Deserializes binary data (in protobuf wire format) from the
  1097   * given reader into the given message object.
  1098   * @param {!proto.rpcquery.MetadataResult} msg The message object to deserialize into.
  1099   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1100   * @return {!proto.rpcquery.MetadataResult}
  1101   */
  1102  proto.rpcquery.MetadataResult.deserializeBinaryFromReader = function(msg, reader) {
  1103    while (reader.nextField()) {
  1104      if (reader.isEndGroup()) {
  1105        break;
  1106      }
  1107      var field = reader.getFieldNumber();
  1108      switch (field) {
  1109      case 1:
  1110        var value = /** @type {string} */ (reader.readString());
  1111        msg.setMetadata(value);
  1112        break;
  1113      default:
  1114        reader.skipField();
  1115        break;
  1116      }
  1117    }
  1118    return msg;
  1119  };
  1120  
  1121  
  1122  /**
  1123   * Serializes the message to binary data (in protobuf wire format).
  1124   * @return {!Uint8Array}
  1125   */
  1126  proto.rpcquery.MetadataResult.prototype.serializeBinary = function() {
  1127    var writer = new jspb.BinaryWriter();
  1128    proto.rpcquery.MetadataResult.serializeBinaryToWriter(this, writer);
  1129    return writer.getResultBuffer();
  1130  };
  1131  
  1132  
  1133  /**
  1134   * Serializes the given message to binary data (in protobuf wire
  1135   * format), writing to the given BinaryWriter.
  1136   * @param {!proto.rpcquery.MetadataResult} message
  1137   * @param {!jspb.BinaryWriter} writer
  1138   * @suppress {unusedLocalVariables} f is only used for nested messages
  1139   */
  1140  proto.rpcquery.MetadataResult.serializeBinaryToWriter = function(message, writer) {
  1141    var f = undefined;
  1142    f = message.getMetadata();
  1143    if (f.length > 0) {
  1144      writer.writeString(
  1145        1,
  1146        f
  1147      );
  1148    }
  1149  };
  1150  
  1151  
  1152  /**
  1153   * optional string Metadata = 1;
  1154   * @return {string}
  1155   */
  1156  proto.rpcquery.MetadataResult.prototype.getMetadata = function() {
  1157    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1158  };
  1159  
  1160  
  1161  /**
  1162   * @param {string} value
  1163   * @return {!proto.rpcquery.MetadataResult} returns this
  1164   */
  1165  proto.rpcquery.MetadataResult.prototype.setMetadata = function(value) {
  1166    return jspb.Message.setProto3StringField(this, 1, value);
  1167  };
  1168  
  1169  
  1170  
  1171  
  1172  
  1173  if (jspb.Message.GENERATE_TO_OBJECT) {
  1174  /**
  1175   * Creates an object representation of this proto.
  1176   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1177   * Optional fields that are not set will be set to undefined.
  1178   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1179   * For the list of reserved names please see:
  1180   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1181   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1182   *     JSPB instance for transitional soy proto support:
  1183   *     http://goto/soy-param-migration
  1184   * @return {!Object}
  1185   */
  1186  proto.rpcquery.GetStorageParam.prototype.toObject = function(opt_includeInstance) {
  1187    return proto.rpcquery.GetStorageParam.toObject(opt_includeInstance, this);
  1188  };
  1189  
  1190  
  1191  /**
  1192   * Static version of the {@see toObject} method.
  1193   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1194   *     the JSPB instance for transitional soy proto support:
  1195   *     http://goto/soy-param-migration
  1196   * @param {!proto.rpcquery.GetStorageParam} msg The msg instance to transform.
  1197   * @return {!Object}
  1198   * @suppress {unusedLocalVariables} f is only used for nested messages
  1199   */
  1200  proto.rpcquery.GetStorageParam.toObject = function(includeInstance, msg) {
  1201    var f, obj = {
  1202      address: msg.getAddress_asB64(),
  1203      key: msg.getKey_asB64()
  1204    };
  1205  
  1206    if (includeInstance) {
  1207      obj.$jspbMessageInstance = msg;
  1208    }
  1209    return obj;
  1210  };
  1211  }
  1212  
  1213  
  1214  /**
  1215   * Deserializes binary data (in protobuf wire format).
  1216   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1217   * @return {!proto.rpcquery.GetStorageParam}
  1218   */
  1219  proto.rpcquery.GetStorageParam.deserializeBinary = function(bytes) {
  1220    var reader = new jspb.BinaryReader(bytes);
  1221    var msg = new proto.rpcquery.GetStorageParam;
  1222    return proto.rpcquery.GetStorageParam.deserializeBinaryFromReader(msg, reader);
  1223  };
  1224  
  1225  
  1226  /**
  1227   * Deserializes binary data (in protobuf wire format) from the
  1228   * given reader into the given message object.
  1229   * @param {!proto.rpcquery.GetStorageParam} msg The message object to deserialize into.
  1230   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1231   * @return {!proto.rpcquery.GetStorageParam}
  1232   */
  1233  proto.rpcquery.GetStorageParam.deserializeBinaryFromReader = function(msg, reader) {
  1234    while (reader.nextField()) {
  1235      if (reader.isEndGroup()) {
  1236        break;
  1237      }
  1238      var field = reader.getFieldNumber();
  1239      switch (field) {
  1240      case 1:
  1241        var value = /** @type {!Uint8Array} */ (reader.readBytes());
  1242        msg.setAddress(value);
  1243        break;
  1244      case 2:
  1245        var value = /** @type {!Uint8Array} */ (reader.readBytes());
  1246        msg.setKey(value);
  1247        break;
  1248      default:
  1249        reader.skipField();
  1250        break;
  1251      }
  1252    }
  1253    return msg;
  1254  };
  1255  
  1256  
  1257  /**
  1258   * Serializes the message to binary data (in protobuf wire format).
  1259   * @return {!Uint8Array}
  1260   */
  1261  proto.rpcquery.GetStorageParam.prototype.serializeBinary = function() {
  1262    var writer = new jspb.BinaryWriter();
  1263    proto.rpcquery.GetStorageParam.serializeBinaryToWriter(this, writer);
  1264    return writer.getResultBuffer();
  1265  };
  1266  
  1267  
  1268  /**
  1269   * Serializes the given message to binary data (in protobuf wire
  1270   * format), writing to the given BinaryWriter.
  1271   * @param {!proto.rpcquery.GetStorageParam} message
  1272   * @param {!jspb.BinaryWriter} writer
  1273   * @suppress {unusedLocalVariables} f is only used for nested messages
  1274   */
  1275  proto.rpcquery.GetStorageParam.serializeBinaryToWriter = function(message, writer) {
  1276    var f = undefined;
  1277    f = message.getAddress_asU8();
  1278    if (f.length > 0) {
  1279      writer.writeBytes(
  1280        1,
  1281        f
  1282      );
  1283    }
  1284    f = message.getKey_asU8();
  1285    if (f.length > 0) {
  1286      writer.writeBytes(
  1287        2,
  1288        f
  1289      );
  1290    }
  1291  };
  1292  
  1293  
  1294  /**
  1295   * optional bytes Address = 1;
  1296   * @return {!(string|Uint8Array)}
  1297   */
  1298  proto.rpcquery.GetStorageParam.prototype.getAddress = function() {
  1299    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1300  };
  1301  
  1302  
  1303  /**
  1304   * optional bytes Address = 1;
  1305   * This is a type-conversion wrapper around `getAddress()`
  1306   * @return {string}
  1307   */
  1308  proto.rpcquery.GetStorageParam.prototype.getAddress_asB64 = function() {
  1309    return /** @type {string} */ (jspb.Message.bytesAsB64(
  1310        this.getAddress()));
  1311  };
  1312  
  1313  
  1314  /**
  1315   * optional bytes Address = 1;
  1316   * Note that Uint8Array is not supported on all browsers.
  1317   * @see http://caniuse.com/Uint8Array
  1318   * This is a type-conversion wrapper around `getAddress()`
  1319   * @return {!Uint8Array}
  1320   */
  1321  proto.rpcquery.GetStorageParam.prototype.getAddress_asU8 = function() {
  1322    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  1323        this.getAddress()));
  1324  };
  1325  
  1326  
  1327  /**
  1328   * @param {!(string|Uint8Array)} value
  1329   * @return {!proto.rpcquery.GetStorageParam} returns this
  1330   */
  1331  proto.rpcquery.GetStorageParam.prototype.setAddress = function(value) {
  1332    return jspb.Message.setProto3BytesField(this, 1, value);
  1333  };
  1334  
  1335  
  1336  /**
  1337   * optional bytes Key = 2;
  1338   * @return {!(string|Uint8Array)}
  1339   */
  1340  proto.rpcquery.GetStorageParam.prototype.getKey = function() {
  1341    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1342  };
  1343  
  1344  
  1345  /**
  1346   * optional bytes Key = 2;
  1347   * This is a type-conversion wrapper around `getKey()`
  1348   * @return {string}
  1349   */
  1350  proto.rpcquery.GetStorageParam.prototype.getKey_asB64 = function() {
  1351    return /** @type {string} */ (jspb.Message.bytesAsB64(
  1352        this.getKey()));
  1353  };
  1354  
  1355  
  1356  /**
  1357   * optional bytes Key = 2;
  1358   * Note that Uint8Array is not supported on all browsers.
  1359   * @see http://caniuse.com/Uint8Array
  1360   * This is a type-conversion wrapper around `getKey()`
  1361   * @return {!Uint8Array}
  1362   */
  1363  proto.rpcquery.GetStorageParam.prototype.getKey_asU8 = function() {
  1364    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  1365        this.getKey()));
  1366  };
  1367  
  1368  
  1369  /**
  1370   * @param {!(string|Uint8Array)} value
  1371   * @return {!proto.rpcquery.GetStorageParam} returns this
  1372   */
  1373  proto.rpcquery.GetStorageParam.prototype.setKey = function(value) {
  1374    return jspb.Message.setProto3BytesField(this, 2, value);
  1375  };
  1376  
  1377  
  1378  
  1379  
  1380  
  1381  if (jspb.Message.GENERATE_TO_OBJECT) {
  1382  /**
  1383   * Creates an object representation of this proto.
  1384   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1385   * Optional fields that are not set will be set to undefined.
  1386   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1387   * For the list of reserved names please see:
  1388   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1389   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1390   *     JSPB instance for transitional soy proto support:
  1391   *     http://goto/soy-param-migration
  1392   * @return {!Object}
  1393   */
  1394  proto.rpcquery.StorageValue.prototype.toObject = function(opt_includeInstance) {
  1395    return proto.rpcquery.StorageValue.toObject(opt_includeInstance, this);
  1396  };
  1397  
  1398  
  1399  /**
  1400   * Static version of the {@see toObject} method.
  1401   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1402   *     the JSPB instance for transitional soy proto support:
  1403   *     http://goto/soy-param-migration
  1404   * @param {!proto.rpcquery.StorageValue} msg The msg instance to transform.
  1405   * @return {!Object}
  1406   * @suppress {unusedLocalVariables} f is only used for nested messages
  1407   */
  1408  proto.rpcquery.StorageValue.toObject = function(includeInstance, msg) {
  1409    var f, obj = {
  1410      value: msg.getValue_asB64()
  1411    };
  1412  
  1413    if (includeInstance) {
  1414      obj.$jspbMessageInstance = msg;
  1415    }
  1416    return obj;
  1417  };
  1418  }
  1419  
  1420  
  1421  /**
  1422   * Deserializes binary data (in protobuf wire format).
  1423   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1424   * @return {!proto.rpcquery.StorageValue}
  1425   */
  1426  proto.rpcquery.StorageValue.deserializeBinary = function(bytes) {
  1427    var reader = new jspb.BinaryReader(bytes);
  1428    var msg = new proto.rpcquery.StorageValue;
  1429    return proto.rpcquery.StorageValue.deserializeBinaryFromReader(msg, reader);
  1430  };
  1431  
  1432  
  1433  /**
  1434   * Deserializes binary data (in protobuf wire format) from the
  1435   * given reader into the given message object.
  1436   * @param {!proto.rpcquery.StorageValue} msg The message object to deserialize into.
  1437   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1438   * @return {!proto.rpcquery.StorageValue}
  1439   */
  1440  proto.rpcquery.StorageValue.deserializeBinaryFromReader = function(msg, reader) {
  1441    while (reader.nextField()) {
  1442      if (reader.isEndGroup()) {
  1443        break;
  1444      }
  1445      var field = reader.getFieldNumber();
  1446      switch (field) {
  1447      case 1:
  1448        var value = /** @type {!Uint8Array} */ (reader.readBytes());
  1449        msg.setValue(value);
  1450        break;
  1451      default:
  1452        reader.skipField();
  1453        break;
  1454      }
  1455    }
  1456    return msg;
  1457  };
  1458  
  1459  
  1460  /**
  1461   * Serializes the message to binary data (in protobuf wire format).
  1462   * @return {!Uint8Array}
  1463   */
  1464  proto.rpcquery.StorageValue.prototype.serializeBinary = function() {
  1465    var writer = new jspb.BinaryWriter();
  1466    proto.rpcquery.StorageValue.serializeBinaryToWriter(this, writer);
  1467    return writer.getResultBuffer();
  1468  };
  1469  
  1470  
  1471  /**
  1472   * Serializes the given message to binary data (in protobuf wire
  1473   * format), writing to the given BinaryWriter.
  1474   * @param {!proto.rpcquery.StorageValue} message
  1475   * @param {!jspb.BinaryWriter} writer
  1476   * @suppress {unusedLocalVariables} f is only used for nested messages
  1477   */
  1478  proto.rpcquery.StorageValue.serializeBinaryToWriter = function(message, writer) {
  1479    var f = undefined;
  1480    f = message.getValue_asU8();
  1481    if (f.length > 0) {
  1482      writer.writeBytes(
  1483        1,
  1484        f
  1485      );
  1486    }
  1487  };
  1488  
  1489  
  1490  /**
  1491   * optional bytes Value = 1;
  1492   * @return {!(string|Uint8Array)}
  1493   */
  1494  proto.rpcquery.StorageValue.prototype.getValue = function() {
  1495    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1496  };
  1497  
  1498  
  1499  /**
  1500   * optional bytes Value = 1;
  1501   * This is a type-conversion wrapper around `getValue()`
  1502   * @return {string}
  1503   */
  1504  proto.rpcquery.StorageValue.prototype.getValue_asB64 = function() {
  1505    return /** @type {string} */ (jspb.Message.bytesAsB64(
  1506        this.getValue()));
  1507  };
  1508  
  1509  
  1510  /**
  1511   * optional bytes Value = 1;
  1512   * Note that Uint8Array is not supported on all browsers.
  1513   * @see http://caniuse.com/Uint8Array
  1514   * This is a type-conversion wrapper around `getValue()`
  1515   * @return {!Uint8Array}
  1516   */
  1517  proto.rpcquery.StorageValue.prototype.getValue_asU8 = function() {
  1518    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  1519        this.getValue()));
  1520  };
  1521  
  1522  
  1523  /**
  1524   * @param {!(string|Uint8Array)} value
  1525   * @return {!proto.rpcquery.StorageValue} returns this
  1526   */
  1527  proto.rpcquery.StorageValue.prototype.setValue = function(value) {
  1528    return jspb.Message.setProto3BytesField(this, 1, value);
  1529  };
  1530  
  1531  
  1532  
  1533  
  1534  
  1535  if (jspb.Message.GENERATE_TO_OBJECT) {
  1536  /**
  1537   * Creates an object representation of this proto.
  1538   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1539   * Optional fields that are not set will be set to undefined.
  1540   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1541   * For the list of reserved names please see:
  1542   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1543   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1544   *     JSPB instance for transitional soy proto support:
  1545   *     http://goto/soy-param-migration
  1546   * @return {!Object}
  1547   */
  1548  proto.rpcquery.ListAccountsParam.prototype.toObject = function(opt_includeInstance) {
  1549    return proto.rpcquery.ListAccountsParam.toObject(opt_includeInstance, this);
  1550  };
  1551  
  1552  
  1553  /**
  1554   * Static version of the {@see toObject} method.
  1555   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1556   *     the JSPB instance for transitional soy proto support:
  1557   *     http://goto/soy-param-migration
  1558   * @param {!proto.rpcquery.ListAccountsParam} msg The msg instance to transform.
  1559   * @return {!Object}
  1560   * @suppress {unusedLocalVariables} f is only used for nested messages
  1561   */
  1562  proto.rpcquery.ListAccountsParam.toObject = function(includeInstance, msg) {
  1563    var f, obj = {
  1564      query: jspb.Message.getFieldWithDefault(msg, 1, "")
  1565    };
  1566  
  1567    if (includeInstance) {
  1568      obj.$jspbMessageInstance = msg;
  1569    }
  1570    return obj;
  1571  };
  1572  }
  1573  
  1574  
  1575  /**
  1576   * Deserializes binary data (in protobuf wire format).
  1577   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1578   * @return {!proto.rpcquery.ListAccountsParam}
  1579   */
  1580  proto.rpcquery.ListAccountsParam.deserializeBinary = function(bytes) {
  1581    var reader = new jspb.BinaryReader(bytes);
  1582    var msg = new proto.rpcquery.ListAccountsParam;
  1583    return proto.rpcquery.ListAccountsParam.deserializeBinaryFromReader(msg, reader);
  1584  };
  1585  
  1586  
  1587  /**
  1588   * Deserializes binary data (in protobuf wire format) from the
  1589   * given reader into the given message object.
  1590   * @param {!proto.rpcquery.ListAccountsParam} msg The message object to deserialize into.
  1591   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1592   * @return {!proto.rpcquery.ListAccountsParam}
  1593   */
  1594  proto.rpcquery.ListAccountsParam.deserializeBinaryFromReader = function(msg, reader) {
  1595    while (reader.nextField()) {
  1596      if (reader.isEndGroup()) {
  1597        break;
  1598      }
  1599      var field = reader.getFieldNumber();
  1600      switch (field) {
  1601      case 1:
  1602        var value = /** @type {string} */ (reader.readString());
  1603        msg.setQuery(value);
  1604        break;
  1605      default:
  1606        reader.skipField();
  1607        break;
  1608      }
  1609    }
  1610    return msg;
  1611  };
  1612  
  1613  
  1614  /**
  1615   * Serializes the message to binary data (in protobuf wire format).
  1616   * @return {!Uint8Array}
  1617   */
  1618  proto.rpcquery.ListAccountsParam.prototype.serializeBinary = function() {
  1619    var writer = new jspb.BinaryWriter();
  1620    proto.rpcquery.ListAccountsParam.serializeBinaryToWriter(this, writer);
  1621    return writer.getResultBuffer();
  1622  };
  1623  
  1624  
  1625  /**
  1626   * Serializes the given message to binary data (in protobuf wire
  1627   * format), writing to the given BinaryWriter.
  1628   * @param {!proto.rpcquery.ListAccountsParam} message
  1629   * @param {!jspb.BinaryWriter} writer
  1630   * @suppress {unusedLocalVariables} f is only used for nested messages
  1631   */
  1632  proto.rpcquery.ListAccountsParam.serializeBinaryToWriter = function(message, writer) {
  1633    var f = undefined;
  1634    f = message.getQuery();
  1635    if (f.length > 0) {
  1636      writer.writeString(
  1637        1,
  1638        f
  1639      );
  1640    }
  1641  };
  1642  
  1643  
  1644  /**
  1645   * optional string Query = 1;
  1646   * @return {string}
  1647   */
  1648  proto.rpcquery.ListAccountsParam.prototype.getQuery = function() {
  1649    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1650  };
  1651  
  1652  
  1653  /**
  1654   * @param {string} value
  1655   * @return {!proto.rpcquery.ListAccountsParam} returns this
  1656   */
  1657  proto.rpcquery.ListAccountsParam.prototype.setQuery = function(value) {
  1658    return jspb.Message.setProto3StringField(this, 1, value);
  1659  };
  1660  
  1661  
  1662  
  1663  
  1664  
  1665  if (jspb.Message.GENERATE_TO_OBJECT) {
  1666  /**
  1667   * Creates an object representation of this proto.
  1668   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1669   * Optional fields that are not set will be set to undefined.
  1670   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1671   * For the list of reserved names please see:
  1672   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1673   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1674   *     JSPB instance for transitional soy proto support:
  1675   *     http://goto/soy-param-migration
  1676   * @return {!Object}
  1677   */
  1678  proto.rpcquery.GetNameParam.prototype.toObject = function(opt_includeInstance) {
  1679    return proto.rpcquery.GetNameParam.toObject(opt_includeInstance, this);
  1680  };
  1681  
  1682  
  1683  /**
  1684   * Static version of the {@see toObject} method.
  1685   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1686   *     the JSPB instance for transitional soy proto support:
  1687   *     http://goto/soy-param-migration
  1688   * @param {!proto.rpcquery.GetNameParam} msg The msg instance to transform.
  1689   * @return {!Object}
  1690   * @suppress {unusedLocalVariables} f is only used for nested messages
  1691   */
  1692  proto.rpcquery.GetNameParam.toObject = function(includeInstance, msg) {
  1693    var f, obj = {
  1694      name: jspb.Message.getFieldWithDefault(msg, 1, "")
  1695    };
  1696  
  1697    if (includeInstance) {
  1698      obj.$jspbMessageInstance = msg;
  1699    }
  1700    return obj;
  1701  };
  1702  }
  1703  
  1704  
  1705  /**
  1706   * Deserializes binary data (in protobuf wire format).
  1707   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1708   * @return {!proto.rpcquery.GetNameParam}
  1709   */
  1710  proto.rpcquery.GetNameParam.deserializeBinary = function(bytes) {
  1711    var reader = new jspb.BinaryReader(bytes);
  1712    var msg = new proto.rpcquery.GetNameParam;
  1713    return proto.rpcquery.GetNameParam.deserializeBinaryFromReader(msg, reader);
  1714  };
  1715  
  1716  
  1717  /**
  1718   * Deserializes binary data (in protobuf wire format) from the
  1719   * given reader into the given message object.
  1720   * @param {!proto.rpcquery.GetNameParam} msg The message object to deserialize into.
  1721   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1722   * @return {!proto.rpcquery.GetNameParam}
  1723   */
  1724  proto.rpcquery.GetNameParam.deserializeBinaryFromReader = function(msg, reader) {
  1725    while (reader.nextField()) {
  1726      if (reader.isEndGroup()) {
  1727        break;
  1728      }
  1729      var field = reader.getFieldNumber();
  1730      switch (field) {
  1731      case 1:
  1732        var value = /** @type {string} */ (reader.readString());
  1733        msg.setName(value);
  1734        break;
  1735      default:
  1736        reader.skipField();
  1737        break;
  1738      }
  1739    }
  1740    return msg;
  1741  };
  1742  
  1743  
  1744  /**
  1745   * Serializes the message to binary data (in protobuf wire format).
  1746   * @return {!Uint8Array}
  1747   */
  1748  proto.rpcquery.GetNameParam.prototype.serializeBinary = function() {
  1749    var writer = new jspb.BinaryWriter();
  1750    proto.rpcquery.GetNameParam.serializeBinaryToWriter(this, writer);
  1751    return writer.getResultBuffer();
  1752  };
  1753  
  1754  
  1755  /**
  1756   * Serializes the given message to binary data (in protobuf wire
  1757   * format), writing to the given BinaryWriter.
  1758   * @param {!proto.rpcquery.GetNameParam} message
  1759   * @param {!jspb.BinaryWriter} writer
  1760   * @suppress {unusedLocalVariables} f is only used for nested messages
  1761   */
  1762  proto.rpcquery.GetNameParam.serializeBinaryToWriter = function(message, writer) {
  1763    var f = undefined;
  1764    f = message.getName();
  1765    if (f.length > 0) {
  1766      writer.writeString(
  1767        1,
  1768        f
  1769      );
  1770    }
  1771  };
  1772  
  1773  
  1774  /**
  1775   * optional string Name = 1;
  1776   * @return {string}
  1777   */
  1778  proto.rpcquery.GetNameParam.prototype.getName = function() {
  1779    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1780  };
  1781  
  1782  
  1783  /**
  1784   * @param {string} value
  1785   * @return {!proto.rpcquery.GetNameParam} returns this
  1786   */
  1787  proto.rpcquery.GetNameParam.prototype.setName = function(value) {
  1788    return jspb.Message.setProto3StringField(this, 1, value);
  1789  };
  1790  
  1791  
  1792  
  1793  
  1794  
  1795  if (jspb.Message.GENERATE_TO_OBJECT) {
  1796  /**
  1797   * Creates an object representation of this proto.
  1798   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1799   * Optional fields that are not set will be set to undefined.
  1800   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1801   * For the list of reserved names please see:
  1802   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1803   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1804   *     JSPB instance for transitional soy proto support:
  1805   *     http://goto/soy-param-migration
  1806   * @return {!Object}
  1807   */
  1808  proto.rpcquery.ListNamesParam.prototype.toObject = function(opt_includeInstance) {
  1809    return proto.rpcquery.ListNamesParam.toObject(opt_includeInstance, this);
  1810  };
  1811  
  1812  
  1813  /**
  1814   * Static version of the {@see toObject} method.
  1815   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1816   *     the JSPB instance for transitional soy proto support:
  1817   *     http://goto/soy-param-migration
  1818   * @param {!proto.rpcquery.ListNamesParam} msg The msg instance to transform.
  1819   * @return {!Object}
  1820   * @suppress {unusedLocalVariables} f is only used for nested messages
  1821   */
  1822  proto.rpcquery.ListNamesParam.toObject = function(includeInstance, msg) {
  1823    var f, obj = {
  1824      query: jspb.Message.getFieldWithDefault(msg, 1, "")
  1825    };
  1826  
  1827    if (includeInstance) {
  1828      obj.$jspbMessageInstance = msg;
  1829    }
  1830    return obj;
  1831  };
  1832  }
  1833  
  1834  
  1835  /**
  1836   * Deserializes binary data (in protobuf wire format).
  1837   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1838   * @return {!proto.rpcquery.ListNamesParam}
  1839   */
  1840  proto.rpcquery.ListNamesParam.deserializeBinary = function(bytes) {
  1841    var reader = new jspb.BinaryReader(bytes);
  1842    var msg = new proto.rpcquery.ListNamesParam;
  1843    return proto.rpcquery.ListNamesParam.deserializeBinaryFromReader(msg, reader);
  1844  };
  1845  
  1846  
  1847  /**
  1848   * Deserializes binary data (in protobuf wire format) from the
  1849   * given reader into the given message object.
  1850   * @param {!proto.rpcquery.ListNamesParam} msg The message object to deserialize into.
  1851   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1852   * @return {!proto.rpcquery.ListNamesParam}
  1853   */
  1854  proto.rpcquery.ListNamesParam.deserializeBinaryFromReader = function(msg, reader) {
  1855    while (reader.nextField()) {
  1856      if (reader.isEndGroup()) {
  1857        break;
  1858      }
  1859      var field = reader.getFieldNumber();
  1860      switch (field) {
  1861      case 1:
  1862        var value = /** @type {string} */ (reader.readString());
  1863        msg.setQuery(value);
  1864        break;
  1865      default:
  1866        reader.skipField();
  1867        break;
  1868      }
  1869    }
  1870    return msg;
  1871  };
  1872  
  1873  
  1874  /**
  1875   * Serializes the message to binary data (in protobuf wire format).
  1876   * @return {!Uint8Array}
  1877   */
  1878  proto.rpcquery.ListNamesParam.prototype.serializeBinary = function() {
  1879    var writer = new jspb.BinaryWriter();
  1880    proto.rpcquery.ListNamesParam.serializeBinaryToWriter(this, writer);
  1881    return writer.getResultBuffer();
  1882  };
  1883  
  1884  
  1885  /**
  1886   * Serializes the given message to binary data (in protobuf wire
  1887   * format), writing to the given BinaryWriter.
  1888   * @param {!proto.rpcquery.ListNamesParam} message
  1889   * @param {!jspb.BinaryWriter} writer
  1890   * @suppress {unusedLocalVariables} f is only used for nested messages
  1891   */
  1892  proto.rpcquery.ListNamesParam.serializeBinaryToWriter = function(message, writer) {
  1893    var f = undefined;
  1894    f = message.getQuery();
  1895    if (f.length > 0) {
  1896      writer.writeString(
  1897        1,
  1898        f
  1899      );
  1900    }
  1901  };
  1902  
  1903  
  1904  /**
  1905   * optional string Query = 1;
  1906   * @return {string}
  1907   */
  1908  proto.rpcquery.ListNamesParam.prototype.getQuery = function() {
  1909    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1910  };
  1911  
  1912  
  1913  /**
  1914   * @param {string} value
  1915   * @return {!proto.rpcquery.ListNamesParam} returns this
  1916   */
  1917  proto.rpcquery.ListNamesParam.prototype.setQuery = function(value) {
  1918    return jspb.Message.setProto3StringField(this, 1, value);
  1919  };
  1920  
  1921  
  1922  
  1923  
  1924  
  1925  if (jspb.Message.GENERATE_TO_OBJECT) {
  1926  /**
  1927   * Creates an object representation of this proto.
  1928   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1929   * Optional fields that are not set will be set to undefined.
  1930   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1931   * For the list of reserved names please see:
  1932   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1933   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1934   *     JSPB instance for transitional soy proto support:
  1935   *     http://goto/soy-param-migration
  1936   * @return {!Object}
  1937   */
  1938  proto.rpcquery.GetNetworkRegistryParam.prototype.toObject = function(opt_includeInstance) {
  1939    return proto.rpcquery.GetNetworkRegistryParam.toObject(opt_includeInstance, this);
  1940  };
  1941  
  1942  
  1943  /**
  1944   * Static version of the {@see toObject} method.
  1945   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1946   *     the JSPB instance for transitional soy proto support:
  1947   *     http://goto/soy-param-migration
  1948   * @param {!proto.rpcquery.GetNetworkRegistryParam} msg The msg instance to transform.
  1949   * @return {!Object}
  1950   * @suppress {unusedLocalVariables} f is only used for nested messages
  1951   */
  1952  proto.rpcquery.GetNetworkRegistryParam.toObject = function(includeInstance, msg) {
  1953    var f, obj = {
  1954  
  1955    };
  1956  
  1957    if (includeInstance) {
  1958      obj.$jspbMessageInstance = msg;
  1959    }
  1960    return obj;
  1961  };
  1962  }
  1963  
  1964  
  1965  /**
  1966   * Deserializes binary data (in protobuf wire format).
  1967   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1968   * @return {!proto.rpcquery.GetNetworkRegistryParam}
  1969   */
  1970  proto.rpcquery.GetNetworkRegistryParam.deserializeBinary = function(bytes) {
  1971    var reader = new jspb.BinaryReader(bytes);
  1972    var msg = new proto.rpcquery.GetNetworkRegistryParam;
  1973    return proto.rpcquery.GetNetworkRegistryParam.deserializeBinaryFromReader(msg, reader);
  1974  };
  1975  
  1976  
  1977  /**
  1978   * Deserializes binary data (in protobuf wire format) from the
  1979   * given reader into the given message object.
  1980   * @param {!proto.rpcquery.GetNetworkRegistryParam} msg The message object to deserialize into.
  1981   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1982   * @return {!proto.rpcquery.GetNetworkRegistryParam}
  1983   */
  1984  proto.rpcquery.GetNetworkRegistryParam.deserializeBinaryFromReader = function(msg, reader) {
  1985    while (reader.nextField()) {
  1986      if (reader.isEndGroup()) {
  1987        break;
  1988      }
  1989      var field = reader.getFieldNumber();
  1990      switch (field) {
  1991      default:
  1992        reader.skipField();
  1993        break;
  1994      }
  1995    }
  1996    return msg;
  1997  };
  1998  
  1999  
  2000  /**
  2001   * Serializes the message to binary data (in protobuf wire format).
  2002   * @return {!Uint8Array}
  2003   */
  2004  proto.rpcquery.GetNetworkRegistryParam.prototype.serializeBinary = function() {
  2005    var writer = new jspb.BinaryWriter();
  2006    proto.rpcquery.GetNetworkRegistryParam.serializeBinaryToWriter(this, writer);
  2007    return writer.getResultBuffer();
  2008  };
  2009  
  2010  
  2011  /**
  2012   * Serializes the given message to binary data (in protobuf wire
  2013   * format), writing to the given BinaryWriter.
  2014   * @param {!proto.rpcquery.GetNetworkRegistryParam} message
  2015   * @param {!jspb.BinaryWriter} writer
  2016   * @suppress {unusedLocalVariables} f is only used for nested messages
  2017   */
  2018  proto.rpcquery.GetNetworkRegistryParam.serializeBinaryToWriter = function(message, writer) {
  2019    var f = undefined;
  2020  };
  2021  
  2022  
  2023  
  2024  
  2025  
  2026  if (jspb.Message.GENERATE_TO_OBJECT) {
  2027  /**
  2028   * Creates an object representation of this proto.
  2029   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2030   * Optional fields that are not set will be set to undefined.
  2031   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2032   * For the list of reserved names please see:
  2033   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2034   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2035   *     JSPB instance for transitional soy proto support:
  2036   *     http://goto/soy-param-migration
  2037   * @return {!Object}
  2038   */
  2039  proto.rpcquery.GetValidatorSetParam.prototype.toObject = function(opt_includeInstance) {
  2040    return proto.rpcquery.GetValidatorSetParam.toObject(opt_includeInstance, this);
  2041  };
  2042  
  2043  
  2044  /**
  2045   * Static version of the {@see toObject} method.
  2046   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2047   *     the JSPB instance for transitional soy proto support:
  2048   *     http://goto/soy-param-migration
  2049   * @param {!proto.rpcquery.GetValidatorSetParam} msg The msg instance to transform.
  2050   * @return {!Object}
  2051   * @suppress {unusedLocalVariables} f is only used for nested messages
  2052   */
  2053  proto.rpcquery.GetValidatorSetParam.toObject = function(includeInstance, msg) {
  2054    var f, obj = {
  2055  
  2056    };
  2057  
  2058    if (includeInstance) {
  2059      obj.$jspbMessageInstance = msg;
  2060    }
  2061    return obj;
  2062  };
  2063  }
  2064  
  2065  
  2066  /**
  2067   * Deserializes binary data (in protobuf wire format).
  2068   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2069   * @return {!proto.rpcquery.GetValidatorSetParam}
  2070   */
  2071  proto.rpcquery.GetValidatorSetParam.deserializeBinary = function(bytes) {
  2072    var reader = new jspb.BinaryReader(bytes);
  2073    var msg = new proto.rpcquery.GetValidatorSetParam;
  2074    return proto.rpcquery.GetValidatorSetParam.deserializeBinaryFromReader(msg, reader);
  2075  };
  2076  
  2077  
  2078  /**
  2079   * Deserializes binary data (in protobuf wire format) from the
  2080   * given reader into the given message object.
  2081   * @param {!proto.rpcquery.GetValidatorSetParam} msg The message object to deserialize into.
  2082   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2083   * @return {!proto.rpcquery.GetValidatorSetParam}
  2084   */
  2085  proto.rpcquery.GetValidatorSetParam.deserializeBinaryFromReader = function(msg, reader) {
  2086    while (reader.nextField()) {
  2087      if (reader.isEndGroup()) {
  2088        break;
  2089      }
  2090      var field = reader.getFieldNumber();
  2091      switch (field) {
  2092      default:
  2093        reader.skipField();
  2094        break;
  2095      }
  2096    }
  2097    return msg;
  2098  };
  2099  
  2100  
  2101  /**
  2102   * Serializes the message to binary data (in protobuf wire format).
  2103   * @return {!Uint8Array}
  2104   */
  2105  proto.rpcquery.GetValidatorSetParam.prototype.serializeBinary = function() {
  2106    var writer = new jspb.BinaryWriter();
  2107    proto.rpcquery.GetValidatorSetParam.serializeBinaryToWriter(this, writer);
  2108    return writer.getResultBuffer();
  2109  };
  2110  
  2111  
  2112  /**
  2113   * Serializes the given message to binary data (in protobuf wire
  2114   * format), writing to the given BinaryWriter.
  2115   * @param {!proto.rpcquery.GetValidatorSetParam} message
  2116   * @param {!jspb.BinaryWriter} writer
  2117   * @suppress {unusedLocalVariables} f is only used for nested messages
  2118   */
  2119  proto.rpcquery.GetValidatorSetParam.serializeBinaryToWriter = function(message, writer) {
  2120    var f = undefined;
  2121  };
  2122  
  2123  
  2124  
  2125  
  2126  
  2127  if (jspb.Message.GENERATE_TO_OBJECT) {
  2128  /**
  2129   * Creates an object representation of this proto.
  2130   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2131   * Optional fields that are not set will be set to undefined.
  2132   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2133   * For the list of reserved names please see:
  2134   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2135   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2136   *     JSPB instance for transitional soy proto support:
  2137   *     http://goto/soy-param-migration
  2138   * @return {!Object}
  2139   */
  2140  proto.rpcquery.GetValidatorSetHistoryParam.prototype.toObject = function(opt_includeInstance) {
  2141    return proto.rpcquery.GetValidatorSetHistoryParam.toObject(opt_includeInstance, this);
  2142  };
  2143  
  2144  
  2145  /**
  2146   * Static version of the {@see toObject} method.
  2147   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2148   *     the JSPB instance for transitional soy proto support:
  2149   *     http://goto/soy-param-migration
  2150   * @param {!proto.rpcquery.GetValidatorSetHistoryParam} msg The msg instance to transform.
  2151   * @return {!Object}
  2152   * @suppress {unusedLocalVariables} f is only used for nested messages
  2153   */
  2154  proto.rpcquery.GetValidatorSetHistoryParam.toObject = function(includeInstance, msg) {
  2155    var f, obj = {
  2156      includeprevious: jspb.Message.getFieldWithDefault(msg, 1, 0)
  2157    };
  2158  
  2159    if (includeInstance) {
  2160      obj.$jspbMessageInstance = msg;
  2161    }
  2162    return obj;
  2163  };
  2164  }
  2165  
  2166  
  2167  /**
  2168   * Deserializes binary data (in protobuf wire format).
  2169   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2170   * @return {!proto.rpcquery.GetValidatorSetHistoryParam}
  2171   */
  2172  proto.rpcquery.GetValidatorSetHistoryParam.deserializeBinary = function(bytes) {
  2173    var reader = new jspb.BinaryReader(bytes);
  2174    var msg = new proto.rpcquery.GetValidatorSetHistoryParam;
  2175    return proto.rpcquery.GetValidatorSetHistoryParam.deserializeBinaryFromReader(msg, reader);
  2176  };
  2177  
  2178  
  2179  /**
  2180   * Deserializes binary data (in protobuf wire format) from the
  2181   * given reader into the given message object.
  2182   * @param {!proto.rpcquery.GetValidatorSetHistoryParam} msg The message object to deserialize into.
  2183   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2184   * @return {!proto.rpcquery.GetValidatorSetHistoryParam}
  2185   */
  2186  proto.rpcquery.GetValidatorSetHistoryParam.deserializeBinaryFromReader = function(msg, reader) {
  2187    while (reader.nextField()) {
  2188      if (reader.isEndGroup()) {
  2189        break;
  2190      }
  2191      var field = reader.getFieldNumber();
  2192      switch (field) {
  2193      case 1:
  2194        var value = /** @type {number} */ (reader.readInt64());
  2195        msg.setIncludeprevious(value);
  2196        break;
  2197      default:
  2198        reader.skipField();
  2199        break;
  2200      }
  2201    }
  2202    return msg;
  2203  };
  2204  
  2205  
  2206  /**
  2207   * Serializes the message to binary data (in protobuf wire format).
  2208   * @return {!Uint8Array}
  2209   */
  2210  proto.rpcquery.GetValidatorSetHistoryParam.prototype.serializeBinary = function() {
  2211    var writer = new jspb.BinaryWriter();
  2212    proto.rpcquery.GetValidatorSetHistoryParam.serializeBinaryToWriter(this, writer);
  2213    return writer.getResultBuffer();
  2214  };
  2215  
  2216  
  2217  /**
  2218   * Serializes the given message to binary data (in protobuf wire
  2219   * format), writing to the given BinaryWriter.
  2220   * @param {!proto.rpcquery.GetValidatorSetHistoryParam} message
  2221   * @param {!jspb.BinaryWriter} writer
  2222   * @suppress {unusedLocalVariables} f is only used for nested messages
  2223   */
  2224  proto.rpcquery.GetValidatorSetHistoryParam.serializeBinaryToWriter = function(message, writer) {
  2225    var f = undefined;
  2226    f = message.getIncludeprevious();
  2227    if (f !== 0) {
  2228      writer.writeInt64(
  2229        1,
  2230        f
  2231      );
  2232    }
  2233  };
  2234  
  2235  
  2236  /**
  2237   * optional int64 IncludePrevious = 1;
  2238   * @return {number}
  2239   */
  2240  proto.rpcquery.GetValidatorSetHistoryParam.prototype.getIncludeprevious = function() {
  2241    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2242  };
  2243  
  2244  
  2245  /**
  2246   * @param {number} value
  2247   * @return {!proto.rpcquery.GetValidatorSetHistoryParam} returns this
  2248   */
  2249  proto.rpcquery.GetValidatorSetHistoryParam.prototype.setIncludeprevious = function(value) {
  2250    return jspb.Message.setProto3IntField(this, 1, value);
  2251  };
  2252  
  2253  
  2254  
  2255  /**
  2256   * List of repeated fields within this message type.
  2257   * @private {!Array<number>}
  2258   * @const
  2259   */
  2260  proto.rpcquery.NetworkRegistry.repeatedFields_ = [1];
  2261  
  2262  
  2263  
  2264  if (jspb.Message.GENERATE_TO_OBJECT) {
  2265  /**
  2266   * Creates an object representation of this proto.
  2267   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2268   * Optional fields that are not set will be set to undefined.
  2269   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2270   * For the list of reserved names please see:
  2271   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2272   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2273   *     JSPB instance for transitional soy proto support:
  2274   *     http://goto/soy-param-migration
  2275   * @return {!Object}
  2276   */
  2277  proto.rpcquery.NetworkRegistry.prototype.toObject = function(opt_includeInstance) {
  2278    return proto.rpcquery.NetworkRegistry.toObject(opt_includeInstance, this);
  2279  };
  2280  
  2281  
  2282  /**
  2283   * Static version of the {@see toObject} method.
  2284   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2285   *     the JSPB instance for transitional soy proto support:
  2286   *     http://goto/soy-param-migration
  2287   * @param {!proto.rpcquery.NetworkRegistry} msg The msg instance to transform.
  2288   * @return {!Object}
  2289   * @suppress {unusedLocalVariables} f is only used for nested messages
  2290   */
  2291  proto.rpcquery.NetworkRegistry.toObject = function(includeInstance, msg) {
  2292    var f, obj = {
  2293      setList: jspb.Message.toObjectList(msg.getSetList(),
  2294      proto.rpcquery.RegisteredValidator.toObject, includeInstance)
  2295    };
  2296  
  2297    if (includeInstance) {
  2298      obj.$jspbMessageInstance = msg;
  2299    }
  2300    return obj;
  2301  };
  2302  }
  2303  
  2304  
  2305  /**
  2306   * Deserializes binary data (in protobuf wire format).
  2307   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2308   * @return {!proto.rpcquery.NetworkRegistry}
  2309   */
  2310  proto.rpcquery.NetworkRegistry.deserializeBinary = function(bytes) {
  2311    var reader = new jspb.BinaryReader(bytes);
  2312    var msg = new proto.rpcquery.NetworkRegistry;
  2313    return proto.rpcquery.NetworkRegistry.deserializeBinaryFromReader(msg, reader);
  2314  };
  2315  
  2316  
  2317  /**
  2318   * Deserializes binary data (in protobuf wire format) from the
  2319   * given reader into the given message object.
  2320   * @param {!proto.rpcquery.NetworkRegistry} msg The message object to deserialize into.
  2321   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2322   * @return {!proto.rpcquery.NetworkRegistry}
  2323   */
  2324  proto.rpcquery.NetworkRegistry.deserializeBinaryFromReader = function(msg, reader) {
  2325    while (reader.nextField()) {
  2326      if (reader.isEndGroup()) {
  2327        break;
  2328      }
  2329      var field = reader.getFieldNumber();
  2330      switch (field) {
  2331      case 1:
  2332        var value = new proto.rpcquery.RegisteredValidator;
  2333        reader.readMessage(value,proto.rpcquery.RegisteredValidator.deserializeBinaryFromReader);
  2334        msg.addSet(value);
  2335        break;
  2336      default:
  2337        reader.skipField();
  2338        break;
  2339      }
  2340    }
  2341    return msg;
  2342  };
  2343  
  2344  
  2345  /**
  2346   * Serializes the message to binary data (in protobuf wire format).
  2347   * @return {!Uint8Array}
  2348   */
  2349  proto.rpcquery.NetworkRegistry.prototype.serializeBinary = function() {
  2350    var writer = new jspb.BinaryWriter();
  2351    proto.rpcquery.NetworkRegistry.serializeBinaryToWriter(this, writer);
  2352    return writer.getResultBuffer();
  2353  };
  2354  
  2355  
  2356  /**
  2357   * Serializes the given message to binary data (in protobuf wire
  2358   * format), writing to the given BinaryWriter.
  2359   * @param {!proto.rpcquery.NetworkRegistry} message
  2360   * @param {!jspb.BinaryWriter} writer
  2361   * @suppress {unusedLocalVariables} f is only used for nested messages
  2362   */
  2363  proto.rpcquery.NetworkRegistry.serializeBinaryToWriter = function(message, writer) {
  2364    var f = undefined;
  2365    f = message.getSetList();
  2366    if (f.length > 0) {
  2367      writer.writeRepeatedMessage(
  2368        1,
  2369        f,
  2370        proto.rpcquery.RegisteredValidator.serializeBinaryToWriter
  2371      );
  2372    }
  2373  };
  2374  
  2375  
  2376  /**
  2377   * repeated RegisteredValidator Set = 1;
  2378   * @return {!Array<!proto.rpcquery.RegisteredValidator>}
  2379   */
  2380  proto.rpcquery.NetworkRegistry.prototype.getSetList = function() {
  2381    return /** @type{!Array<!proto.rpcquery.RegisteredValidator>} */ (
  2382      jspb.Message.getRepeatedWrapperField(this, proto.rpcquery.RegisteredValidator, 1));
  2383  };
  2384  
  2385  
  2386  /**
  2387   * @param {!Array<!proto.rpcquery.RegisteredValidator>} value
  2388   * @return {!proto.rpcquery.NetworkRegistry} returns this
  2389  */
  2390  proto.rpcquery.NetworkRegistry.prototype.setSetList = function(value) {
  2391    return jspb.Message.setRepeatedWrapperField(this, 1, value);
  2392  };
  2393  
  2394  
  2395  /**
  2396   * @param {!proto.rpcquery.RegisteredValidator=} opt_value
  2397   * @param {number=} opt_index
  2398   * @return {!proto.rpcquery.RegisteredValidator}
  2399   */
  2400  proto.rpcquery.NetworkRegistry.prototype.addSet = function(opt_value, opt_index) {
  2401    return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.rpcquery.RegisteredValidator, opt_index);
  2402  };
  2403  
  2404  
  2405  /**
  2406   * Clears the list making it empty but non-null.
  2407   * @return {!proto.rpcquery.NetworkRegistry} returns this
  2408   */
  2409  proto.rpcquery.NetworkRegistry.prototype.clearSetList = function() {
  2410    return this.setSetList([]);
  2411  };
  2412  
  2413  
  2414  
  2415  
  2416  
  2417  if (jspb.Message.GENERATE_TO_OBJECT) {
  2418  /**
  2419   * Creates an object representation of this proto.
  2420   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2421   * Optional fields that are not set will be set to undefined.
  2422   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2423   * For the list of reserved names please see:
  2424   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2425   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2426   *     JSPB instance for transitional soy proto support:
  2427   *     http://goto/soy-param-migration
  2428   * @return {!Object}
  2429   */
  2430  proto.rpcquery.RegisteredValidator.prototype.toObject = function(opt_includeInstance) {
  2431    return proto.rpcquery.RegisteredValidator.toObject(opt_includeInstance, this);
  2432  };
  2433  
  2434  
  2435  /**
  2436   * Static version of the {@see toObject} method.
  2437   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2438   *     the JSPB instance for transitional soy proto support:
  2439   *     http://goto/soy-param-migration
  2440   * @param {!proto.rpcquery.RegisteredValidator} msg The msg instance to transform.
  2441   * @return {!Object}
  2442   * @suppress {unusedLocalVariables} f is only used for nested messages
  2443   */
  2444  proto.rpcquery.RegisteredValidator.toObject = function(includeInstance, msg) {
  2445    var f, obj = {
  2446      address: msg.getAddress_asB64(),
  2447      node: (f = msg.getNode()) && registry_pb.NodeIdentity.toObject(includeInstance, f)
  2448    };
  2449  
  2450    if (includeInstance) {
  2451      obj.$jspbMessageInstance = msg;
  2452    }
  2453    return obj;
  2454  };
  2455  }
  2456  
  2457  
  2458  /**
  2459   * Deserializes binary data (in protobuf wire format).
  2460   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2461   * @return {!proto.rpcquery.RegisteredValidator}
  2462   */
  2463  proto.rpcquery.RegisteredValidator.deserializeBinary = function(bytes) {
  2464    var reader = new jspb.BinaryReader(bytes);
  2465    var msg = new proto.rpcquery.RegisteredValidator;
  2466    return proto.rpcquery.RegisteredValidator.deserializeBinaryFromReader(msg, reader);
  2467  };
  2468  
  2469  
  2470  /**
  2471   * Deserializes binary data (in protobuf wire format) from the
  2472   * given reader into the given message object.
  2473   * @param {!proto.rpcquery.RegisteredValidator} msg The message object to deserialize into.
  2474   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2475   * @return {!proto.rpcquery.RegisteredValidator}
  2476   */
  2477  proto.rpcquery.RegisteredValidator.deserializeBinaryFromReader = function(msg, reader) {
  2478    while (reader.nextField()) {
  2479      if (reader.isEndGroup()) {
  2480        break;
  2481      }
  2482      var field = reader.getFieldNumber();
  2483      switch (field) {
  2484      case 1:
  2485        var value = /** @type {!Uint8Array} */ (reader.readBytes());
  2486        msg.setAddress(value);
  2487        break;
  2488      case 2:
  2489        var value = new registry_pb.NodeIdentity;
  2490        reader.readMessage(value,registry_pb.NodeIdentity.deserializeBinaryFromReader);
  2491        msg.setNode(value);
  2492        break;
  2493      default:
  2494        reader.skipField();
  2495        break;
  2496      }
  2497    }
  2498    return msg;
  2499  };
  2500  
  2501  
  2502  /**
  2503   * Serializes the message to binary data (in protobuf wire format).
  2504   * @return {!Uint8Array}
  2505   */
  2506  proto.rpcquery.RegisteredValidator.prototype.serializeBinary = function() {
  2507    var writer = new jspb.BinaryWriter();
  2508    proto.rpcquery.RegisteredValidator.serializeBinaryToWriter(this, writer);
  2509    return writer.getResultBuffer();
  2510  };
  2511  
  2512  
  2513  /**
  2514   * Serializes the given message to binary data (in protobuf wire
  2515   * format), writing to the given BinaryWriter.
  2516   * @param {!proto.rpcquery.RegisteredValidator} message
  2517   * @param {!jspb.BinaryWriter} writer
  2518   * @suppress {unusedLocalVariables} f is only used for nested messages
  2519   */
  2520  proto.rpcquery.RegisteredValidator.serializeBinaryToWriter = function(message, writer) {
  2521    var f = undefined;
  2522    f = message.getAddress_asU8();
  2523    if (f.length > 0) {
  2524      writer.writeBytes(
  2525        1,
  2526        f
  2527      );
  2528    }
  2529    f = message.getNode();
  2530    if (f != null) {
  2531      writer.writeMessage(
  2532        2,
  2533        f,
  2534        registry_pb.NodeIdentity.serializeBinaryToWriter
  2535      );
  2536    }
  2537  };
  2538  
  2539  
  2540  /**
  2541   * optional bytes Address = 1;
  2542   * @return {!(string|Uint8Array)}
  2543   */
  2544  proto.rpcquery.RegisteredValidator.prototype.getAddress = function() {
  2545    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2546  };
  2547  
  2548  
  2549  /**
  2550   * optional bytes Address = 1;
  2551   * This is a type-conversion wrapper around `getAddress()`
  2552   * @return {string}
  2553   */
  2554  proto.rpcquery.RegisteredValidator.prototype.getAddress_asB64 = function() {
  2555    return /** @type {string} */ (jspb.Message.bytesAsB64(
  2556        this.getAddress()));
  2557  };
  2558  
  2559  
  2560  /**
  2561   * optional bytes Address = 1;
  2562   * Note that Uint8Array is not supported on all browsers.
  2563   * @see http://caniuse.com/Uint8Array
  2564   * This is a type-conversion wrapper around `getAddress()`
  2565   * @return {!Uint8Array}
  2566   */
  2567  proto.rpcquery.RegisteredValidator.prototype.getAddress_asU8 = function() {
  2568    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  2569        this.getAddress()));
  2570  };
  2571  
  2572  
  2573  /**
  2574   * @param {!(string|Uint8Array)} value
  2575   * @return {!proto.rpcquery.RegisteredValidator} returns this
  2576   */
  2577  proto.rpcquery.RegisteredValidator.prototype.setAddress = function(value) {
  2578    return jspb.Message.setProto3BytesField(this, 1, value);
  2579  };
  2580  
  2581  
  2582  /**
  2583   * optional registry.NodeIdentity Node = 2;
  2584   * @return {?proto.registry.NodeIdentity}
  2585   */
  2586  proto.rpcquery.RegisteredValidator.prototype.getNode = function() {
  2587    return /** @type{?proto.registry.NodeIdentity} */ (
  2588      jspb.Message.getWrapperField(this, registry_pb.NodeIdentity, 2));
  2589  };
  2590  
  2591  
  2592  /**
  2593   * @param {?proto.registry.NodeIdentity|undefined} value
  2594   * @return {!proto.rpcquery.RegisteredValidator} returns this
  2595  */
  2596  proto.rpcquery.RegisteredValidator.prototype.setNode = function(value) {
  2597    return jspb.Message.setWrapperField(this, 2, value);
  2598  };
  2599  
  2600  
  2601  /**
  2602   * Clears the message field making it undefined.
  2603   * @return {!proto.rpcquery.RegisteredValidator} returns this
  2604   */
  2605  proto.rpcquery.RegisteredValidator.prototype.clearNode = function() {
  2606    return this.setNode(undefined);
  2607  };
  2608  
  2609  
  2610  /**
  2611   * Returns whether this field is set.
  2612   * @return {boolean}
  2613   */
  2614  proto.rpcquery.RegisteredValidator.prototype.hasNode = function() {
  2615    return jspb.Message.getField(this, 2) != null;
  2616  };
  2617  
  2618  
  2619  
  2620  /**
  2621   * List of repeated fields within this message type.
  2622   * @private {!Array<number>}
  2623   * @const
  2624   */
  2625  proto.rpcquery.ValidatorSetHistory.repeatedFields_ = [1];
  2626  
  2627  
  2628  
  2629  if (jspb.Message.GENERATE_TO_OBJECT) {
  2630  /**
  2631   * Creates an object representation of this proto.
  2632   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2633   * Optional fields that are not set will be set to undefined.
  2634   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2635   * For the list of reserved names please see:
  2636   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2637   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2638   *     JSPB instance for transitional soy proto support:
  2639   *     http://goto/soy-param-migration
  2640   * @return {!Object}
  2641   */
  2642  proto.rpcquery.ValidatorSetHistory.prototype.toObject = function(opt_includeInstance) {
  2643    return proto.rpcquery.ValidatorSetHistory.toObject(opt_includeInstance, this);
  2644  };
  2645  
  2646  
  2647  /**
  2648   * Static version of the {@see toObject} method.
  2649   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2650   *     the JSPB instance for transitional soy proto support:
  2651   *     http://goto/soy-param-migration
  2652   * @param {!proto.rpcquery.ValidatorSetHistory} msg The msg instance to transform.
  2653   * @return {!Object}
  2654   * @suppress {unusedLocalVariables} f is only used for nested messages
  2655   */
  2656  proto.rpcquery.ValidatorSetHistory.toObject = function(includeInstance, msg) {
  2657    var f, obj = {
  2658      historyList: jspb.Message.toObjectList(msg.getHistoryList(),
  2659      proto.rpcquery.ValidatorSet.toObject, includeInstance)
  2660    };
  2661  
  2662    if (includeInstance) {
  2663      obj.$jspbMessageInstance = msg;
  2664    }
  2665    return obj;
  2666  };
  2667  }
  2668  
  2669  
  2670  /**
  2671   * Deserializes binary data (in protobuf wire format).
  2672   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2673   * @return {!proto.rpcquery.ValidatorSetHistory}
  2674   */
  2675  proto.rpcquery.ValidatorSetHistory.deserializeBinary = function(bytes) {
  2676    var reader = new jspb.BinaryReader(bytes);
  2677    var msg = new proto.rpcquery.ValidatorSetHistory;
  2678    return proto.rpcquery.ValidatorSetHistory.deserializeBinaryFromReader(msg, reader);
  2679  };
  2680  
  2681  
  2682  /**
  2683   * Deserializes binary data (in protobuf wire format) from the
  2684   * given reader into the given message object.
  2685   * @param {!proto.rpcquery.ValidatorSetHistory} msg The message object to deserialize into.
  2686   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2687   * @return {!proto.rpcquery.ValidatorSetHistory}
  2688   */
  2689  proto.rpcquery.ValidatorSetHistory.deserializeBinaryFromReader = function(msg, reader) {
  2690    while (reader.nextField()) {
  2691      if (reader.isEndGroup()) {
  2692        break;
  2693      }
  2694      var field = reader.getFieldNumber();
  2695      switch (field) {
  2696      case 1:
  2697        var value = new proto.rpcquery.ValidatorSet;
  2698        reader.readMessage(value,proto.rpcquery.ValidatorSet.deserializeBinaryFromReader);
  2699        msg.addHistory(value);
  2700        break;
  2701      default:
  2702        reader.skipField();
  2703        break;
  2704      }
  2705    }
  2706    return msg;
  2707  };
  2708  
  2709  
  2710  /**
  2711   * Serializes the message to binary data (in protobuf wire format).
  2712   * @return {!Uint8Array}
  2713   */
  2714  proto.rpcquery.ValidatorSetHistory.prototype.serializeBinary = function() {
  2715    var writer = new jspb.BinaryWriter();
  2716    proto.rpcquery.ValidatorSetHistory.serializeBinaryToWriter(this, writer);
  2717    return writer.getResultBuffer();
  2718  };
  2719  
  2720  
  2721  /**
  2722   * Serializes the given message to binary data (in protobuf wire
  2723   * format), writing to the given BinaryWriter.
  2724   * @param {!proto.rpcquery.ValidatorSetHistory} message
  2725   * @param {!jspb.BinaryWriter} writer
  2726   * @suppress {unusedLocalVariables} f is only used for nested messages
  2727   */
  2728  proto.rpcquery.ValidatorSetHistory.serializeBinaryToWriter = function(message, writer) {
  2729    var f = undefined;
  2730    f = message.getHistoryList();
  2731    if (f.length > 0) {
  2732      writer.writeRepeatedMessage(
  2733        1,
  2734        f,
  2735        proto.rpcquery.ValidatorSet.serializeBinaryToWriter
  2736      );
  2737    }
  2738  };
  2739  
  2740  
  2741  /**
  2742   * repeated ValidatorSet History = 1;
  2743   * @return {!Array<!proto.rpcquery.ValidatorSet>}
  2744   */
  2745  proto.rpcquery.ValidatorSetHistory.prototype.getHistoryList = function() {
  2746    return /** @type{!Array<!proto.rpcquery.ValidatorSet>} */ (
  2747      jspb.Message.getRepeatedWrapperField(this, proto.rpcquery.ValidatorSet, 1));
  2748  };
  2749  
  2750  
  2751  /**
  2752   * @param {!Array<!proto.rpcquery.ValidatorSet>} value
  2753   * @return {!proto.rpcquery.ValidatorSetHistory} returns this
  2754  */
  2755  proto.rpcquery.ValidatorSetHistory.prototype.setHistoryList = function(value) {
  2756    return jspb.Message.setRepeatedWrapperField(this, 1, value);
  2757  };
  2758  
  2759  
  2760  /**
  2761   * @param {!proto.rpcquery.ValidatorSet=} opt_value
  2762   * @param {number=} opt_index
  2763   * @return {!proto.rpcquery.ValidatorSet}
  2764   */
  2765  proto.rpcquery.ValidatorSetHistory.prototype.addHistory = function(opt_value, opt_index) {
  2766    return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.rpcquery.ValidatorSet, opt_index);
  2767  };
  2768  
  2769  
  2770  /**
  2771   * Clears the list making it empty but non-null.
  2772   * @return {!proto.rpcquery.ValidatorSetHistory} returns this
  2773   */
  2774  proto.rpcquery.ValidatorSetHistory.prototype.clearHistoryList = function() {
  2775    return this.setHistoryList([]);
  2776  };
  2777  
  2778  
  2779  
  2780  /**
  2781   * List of repeated fields within this message type.
  2782   * @private {!Array<number>}
  2783   * @const
  2784   */
  2785  proto.rpcquery.ValidatorSet.repeatedFields_ = [2];
  2786  
  2787  
  2788  
  2789  if (jspb.Message.GENERATE_TO_OBJECT) {
  2790  /**
  2791   * Creates an object representation of this proto.
  2792   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2793   * Optional fields that are not set will be set to undefined.
  2794   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2795   * For the list of reserved names please see:
  2796   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2797   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2798   *     JSPB instance for transitional soy proto support:
  2799   *     http://goto/soy-param-migration
  2800   * @return {!Object}
  2801   */
  2802  proto.rpcquery.ValidatorSet.prototype.toObject = function(opt_includeInstance) {
  2803    return proto.rpcquery.ValidatorSet.toObject(opt_includeInstance, this);
  2804  };
  2805  
  2806  
  2807  /**
  2808   * Static version of the {@see toObject} method.
  2809   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2810   *     the JSPB instance for transitional soy proto support:
  2811   *     http://goto/soy-param-migration
  2812   * @param {!proto.rpcquery.ValidatorSet} msg The msg instance to transform.
  2813   * @return {!Object}
  2814   * @suppress {unusedLocalVariables} f is only used for nested messages
  2815   */
  2816  proto.rpcquery.ValidatorSet.toObject = function(includeInstance, msg) {
  2817    var f, obj = {
  2818      height: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2819      setList: jspb.Message.toObjectList(msg.getSetList(),
  2820      validator_pb.Validator.toObject, includeInstance)
  2821    };
  2822  
  2823    if (includeInstance) {
  2824      obj.$jspbMessageInstance = msg;
  2825    }
  2826    return obj;
  2827  };
  2828  }
  2829  
  2830  
  2831  /**
  2832   * Deserializes binary data (in protobuf wire format).
  2833   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2834   * @return {!proto.rpcquery.ValidatorSet}
  2835   */
  2836  proto.rpcquery.ValidatorSet.deserializeBinary = function(bytes) {
  2837    var reader = new jspb.BinaryReader(bytes);
  2838    var msg = new proto.rpcquery.ValidatorSet;
  2839    return proto.rpcquery.ValidatorSet.deserializeBinaryFromReader(msg, reader);
  2840  };
  2841  
  2842  
  2843  /**
  2844   * Deserializes binary data (in protobuf wire format) from the
  2845   * given reader into the given message object.
  2846   * @param {!proto.rpcquery.ValidatorSet} msg The message object to deserialize into.
  2847   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2848   * @return {!proto.rpcquery.ValidatorSet}
  2849   */
  2850  proto.rpcquery.ValidatorSet.deserializeBinaryFromReader = function(msg, reader) {
  2851    while (reader.nextField()) {
  2852      if (reader.isEndGroup()) {
  2853        break;
  2854      }
  2855      var field = reader.getFieldNumber();
  2856      switch (field) {
  2857      case 1:
  2858        var value = /** @type {number} */ (reader.readUint64());
  2859        msg.setHeight(value);
  2860        break;
  2861      case 2:
  2862        var value = new validator_pb.Validator;
  2863        reader.readMessage(value,validator_pb.Validator.deserializeBinaryFromReader);
  2864        msg.addSet(value);
  2865        break;
  2866      default:
  2867        reader.skipField();
  2868        break;
  2869      }
  2870    }
  2871    return msg;
  2872  };
  2873  
  2874  
  2875  /**
  2876   * Serializes the message to binary data (in protobuf wire format).
  2877   * @return {!Uint8Array}
  2878   */
  2879  proto.rpcquery.ValidatorSet.prototype.serializeBinary = function() {
  2880    var writer = new jspb.BinaryWriter();
  2881    proto.rpcquery.ValidatorSet.serializeBinaryToWriter(this, writer);
  2882    return writer.getResultBuffer();
  2883  };
  2884  
  2885  
  2886  /**
  2887   * Serializes the given message to binary data (in protobuf wire
  2888   * format), writing to the given BinaryWriter.
  2889   * @param {!proto.rpcquery.ValidatorSet} message
  2890   * @param {!jspb.BinaryWriter} writer
  2891   * @suppress {unusedLocalVariables} f is only used for nested messages
  2892   */
  2893  proto.rpcquery.ValidatorSet.serializeBinaryToWriter = function(message, writer) {
  2894    var f = undefined;
  2895    f = message.getHeight();
  2896    if (f !== 0) {
  2897      writer.writeUint64(
  2898        1,
  2899        f
  2900      );
  2901    }
  2902    f = message.getSetList();
  2903    if (f.length > 0) {
  2904      writer.writeRepeatedMessage(
  2905        2,
  2906        f,
  2907        validator_pb.Validator.serializeBinaryToWriter
  2908      );
  2909    }
  2910  };
  2911  
  2912  
  2913  /**
  2914   * optional uint64 height = 1;
  2915   * @return {number}
  2916   */
  2917  proto.rpcquery.ValidatorSet.prototype.getHeight = function() {
  2918    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2919  };
  2920  
  2921  
  2922  /**
  2923   * @param {number} value
  2924   * @return {!proto.rpcquery.ValidatorSet} returns this
  2925   */
  2926  proto.rpcquery.ValidatorSet.prototype.setHeight = function(value) {
  2927    return jspb.Message.setProto3IntField(this, 1, value);
  2928  };
  2929  
  2930  
  2931  /**
  2932   * repeated validator.Validator Set = 2;
  2933   * @return {!Array<!proto.validator.Validator>}
  2934   */
  2935  proto.rpcquery.ValidatorSet.prototype.getSetList = function() {
  2936    return /** @type{!Array<!proto.validator.Validator>} */ (
  2937      jspb.Message.getRepeatedWrapperField(this, validator_pb.Validator, 2));
  2938  };
  2939  
  2940  
  2941  /**
  2942   * @param {!Array<!proto.validator.Validator>} value
  2943   * @return {!proto.rpcquery.ValidatorSet} returns this
  2944  */
  2945  proto.rpcquery.ValidatorSet.prototype.setSetList = function(value) {
  2946    return jspb.Message.setRepeatedWrapperField(this, 2, value);
  2947  };
  2948  
  2949  
  2950  /**
  2951   * @param {!proto.validator.Validator=} opt_value
  2952   * @param {number=} opt_index
  2953   * @return {!proto.validator.Validator}
  2954   */
  2955  proto.rpcquery.ValidatorSet.prototype.addSet = function(opt_value, opt_index) {
  2956    return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.validator.Validator, opt_index);
  2957  };
  2958  
  2959  
  2960  /**
  2961   * Clears the list making it empty but non-null.
  2962   * @return {!proto.rpcquery.ValidatorSet} returns this
  2963   */
  2964  proto.rpcquery.ValidatorSet.prototype.clearSetList = function() {
  2965    return this.setSetList([]);
  2966  };
  2967  
  2968  
  2969  
  2970  
  2971  
  2972  if (jspb.Message.GENERATE_TO_OBJECT) {
  2973  /**
  2974   * Creates an object representation of this proto.
  2975   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2976   * Optional fields that are not set will be set to undefined.
  2977   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2978   * For the list of reserved names please see:
  2979   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2980   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2981   *     JSPB instance for transitional soy proto support:
  2982   *     http://goto/soy-param-migration
  2983   * @return {!Object}
  2984   */
  2985  proto.rpcquery.GetProposalParam.prototype.toObject = function(opt_includeInstance) {
  2986    return proto.rpcquery.GetProposalParam.toObject(opt_includeInstance, this);
  2987  };
  2988  
  2989  
  2990  /**
  2991   * Static version of the {@see toObject} method.
  2992   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2993   *     the JSPB instance for transitional soy proto support:
  2994   *     http://goto/soy-param-migration
  2995   * @param {!proto.rpcquery.GetProposalParam} msg The msg instance to transform.
  2996   * @return {!Object}
  2997   * @suppress {unusedLocalVariables} f is only used for nested messages
  2998   */
  2999  proto.rpcquery.GetProposalParam.toObject = function(includeInstance, msg) {
  3000    var f, obj = {
  3001      hash: msg.getHash_asB64()
  3002    };
  3003  
  3004    if (includeInstance) {
  3005      obj.$jspbMessageInstance = msg;
  3006    }
  3007    return obj;
  3008  };
  3009  }
  3010  
  3011  
  3012  /**
  3013   * Deserializes binary data (in protobuf wire format).
  3014   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3015   * @return {!proto.rpcquery.GetProposalParam}
  3016   */
  3017  proto.rpcquery.GetProposalParam.deserializeBinary = function(bytes) {
  3018    var reader = new jspb.BinaryReader(bytes);
  3019    var msg = new proto.rpcquery.GetProposalParam;
  3020    return proto.rpcquery.GetProposalParam.deserializeBinaryFromReader(msg, reader);
  3021  };
  3022  
  3023  
  3024  /**
  3025   * Deserializes binary data (in protobuf wire format) from the
  3026   * given reader into the given message object.
  3027   * @param {!proto.rpcquery.GetProposalParam} msg The message object to deserialize into.
  3028   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3029   * @return {!proto.rpcquery.GetProposalParam}
  3030   */
  3031  proto.rpcquery.GetProposalParam.deserializeBinaryFromReader = function(msg, reader) {
  3032    while (reader.nextField()) {
  3033      if (reader.isEndGroup()) {
  3034        break;
  3035      }
  3036      var field = reader.getFieldNumber();
  3037      switch (field) {
  3038      case 1:
  3039        var value = /** @type {!Uint8Array} */ (reader.readBytes());
  3040        msg.setHash(value);
  3041        break;
  3042      default:
  3043        reader.skipField();
  3044        break;
  3045      }
  3046    }
  3047    return msg;
  3048  };
  3049  
  3050  
  3051  /**
  3052   * Serializes the message to binary data (in protobuf wire format).
  3053   * @return {!Uint8Array}
  3054   */
  3055  proto.rpcquery.GetProposalParam.prototype.serializeBinary = function() {
  3056    var writer = new jspb.BinaryWriter();
  3057    proto.rpcquery.GetProposalParam.serializeBinaryToWriter(this, writer);
  3058    return writer.getResultBuffer();
  3059  };
  3060  
  3061  
  3062  /**
  3063   * Serializes the given message to binary data (in protobuf wire
  3064   * format), writing to the given BinaryWriter.
  3065   * @param {!proto.rpcquery.GetProposalParam} message
  3066   * @param {!jspb.BinaryWriter} writer
  3067   * @suppress {unusedLocalVariables} f is only used for nested messages
  3068   */
  3069  proto.rpcquery.GetProposalParam.serializeBinaryToWriter = function(message, writer) {
  3070    var f = undefined;
  3071    f = message.getHash_asU8();
  3072    if (f.length > 0) {
  3073      writer.writeBytes(
  3074        1,
  3075        f
  3076      );
  3077    }
  3078  };
  3079  
  3080  
  3081  /**
  3082   * optional bytes Hash = 1;
  3083   * @return {!(string|Uint8Array)}
  3084   */
  3085  proto.rpcquery.GetProposalParam.prototype.getHash = function() {
  3086    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  3087  };
  3088  
  3089  
  3090  /**
  3091   * optional bytes Hash = 1;
  3092   * This is a type-conversion wrapper around `getHash()`
  3093   * @return {string}
  3094   */
  3095  proto.rpcquery.GetProposalParam.prototype.getHash_asB64 = function() {
  3096    return /** @type {string} */ (jspb.Message.bytesAsB64(
  3097        this.getHash()));
  3098  };
  3099  
  3100  
  3101  /**
  3102   * optional bytes Hash = 1;
  3103   * Note that Uint8Array is not supported on all browsers.
  3104   * @see http://caniuse.com/Uint8Array
  3105   * This is a type-conversion wrapper around `getHash()`
  3106   * @return {!Uint8Array}
  3107   */
  3108  proto.rpcquery.GetProposalParam.prototype.getHash_asU8 = function() {
  3109    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  3110        this.getHash()));
  3111  };
  3112  
  3113  
  3114  /**
  3115   * @param {!(string|Uint8Array)} value
  3116   * @return {!proto.rpcquery.GetProposalParam} returns this
  3117   */
  3118  proto.rpcquery.GetProposalParam.prototype.setHash = function(value) {
  3119    return jspb.Message.setProto3BytesField(this, 1, value);
  3120  };
  3121  
  3122  
  3123  
  3124  
  3125  
  3126  if (jspb.Message.GENERATE_TO_OBJECT) {
  3127  /**
  3128   * Creates an object representation of this proto.
  3129   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3130   * Optional fields that are not set will be set to undefined.
  3131   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3132   * For the list of reserved names please see:
  3133   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3134   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3135   *     JSPB instance for transitional soy proto support:
  3136   *     http://goto/soy-param-migration
  3137   * @return {!Object}
  3138   */
  3139  proto.rpcquery.ListProposalsParam.prototype.toObject = function(opt_includeInstance) {
  3140    return proto.rpcquery.ListProposalsParam.toObject(opt_includeInstance, this);
  3141  };
  3142  
  3143  
  3144  /**
  3145   * Static version of the {@see toObject} method.
  3146   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3147   *     the JSPB instance for transitional soy proto support:
  3148   *     http://goto/soy-param-migration
  3149   * @param {!proto.rpcquery.ListProposalsParam} msg The msg instance to transform.
  3150   * @return {!Object}
  3151   * @suppress {unusedLocalVariables} f is only used for nested messages
  3152   */
  3153  proto.rpcquery.ListProposalsParam.toObject = function(includeInstance, msg) {
  3154    var f, obj = {
  3155      proposed: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
  3156    };
  3157  
  3158    if (includeInstance) {
  3159      obj.$jspbMessageInstance = msg;
  3160    }
  3161    return obj;
  3162  };
  3163  }
  3164  
  3165  
  3166  /**
  3167   * Deserializes binary data (in protobuf wire format).
  3168   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3169   * @return {!proto.rpcquery.ListProposalsParam}
  3170   */
  3171  proto.rpcquery.ListProposalsParam.deserializeBinary = function(bytes) {
  3172    var reader = new jspb.BinaryReader(bytes);
  3173    var msg = new proto.rpcquery.ListProposalsParam;
  3174    return proto.rpcquery.ListProposalsParam.deserializeBinaryFromReader(msg, reader);
  3175  };
  3176  
  3177  
  3178  /**
  3179   * Deserializes binary data (in protobuf wire format) from the
  3180   * given reader into the given message object.
  3181   * @param {!proto.rpcquery.ListProposalsParam} msg The message object to deserialize into.
  3182   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3183   * @return {!proto.rpcquery.ListProposalsParam}
  3184   */
  3185  proto.rpcquery.ListProposalsParam.deserializeBinaryFromReader = function(msg, reader) {
  3186    while (reader.nextField()) {
  3187      if (reader.isEndGroup()) {
  3188        break;
  3189      }
  3190      var field = reader.getFieldNumber();
  3191      switch (field) {
  3192      case 1:
  3193        var value = /** @type {boolean} */ (reader.readBool());
  3194        msg.setProposed(value);
  3195        break;
  3196      default:
  3197        reader.skipField();
  3198        break;
  3199      }
  3200    }
  3201    return msg;
  3202  };
  3203  
  3204  
  3205  /**
  3206   * Serializes the message to binary data (in protobuf wire format).
  3207   * @return {!Uint8Array}
  3208   */
  3209  proto.rpcquery.ListProposalsParam.prototype.serializeBinary = function() {
  3210    var writer = new jspb.BinaryWriter();
  3211    proto.rpcquery.ListProposalsParam.serializeBinaryToWriter(this, writer);
  3212    return writer.getResultBuffer();
  3213  };
  3214  
  3215  
  3216  /**
  3217   * Serializes the given message to binary data (in protobuf wire
  3218   * format), writing to the given BinaryWriter.
  3219   * @param {!proto.rpcquery.ListProposalsParam} message
  3220   * @param {!jspb.BinaryWriter} writer
  3221   * @suppress {unusedLocalVariables} f is only used for nested messages
  3222   */
  3223  proto.rpcquery.ListProposalsParam.serializeBinaryToWriter = function(message, writer) {
  3224    var f = undefined;
  3225    f = message.getProposed();
  3226    if (f) {
  3227      writer.writeBool(
  3228        1,
  3229        f
  3230      );
  3231    }
  3232  };
  3233  
  3234  
  3235  /**
  3236   * optional bool Proposed = 1;
  3237   * @return {boolean}
  3238   */
  3239  proto.rpcquery.ListProposalsParam.prototype.getProposed = function() {
  3240    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  3241  };
  3242  
  3243  
  3244  /**
  3245   * @param {boolean} value
  3246   * @return {!proto.rpcquery.ListProposalsParam} returns this
  3247   */
  3248  proto.rpcquery.ListProposalsParam.prototype.setProposed = function(value) {
  3249    return jspb.Message.setProto3BooleanField(this, 1, value);
  3250  };
  3251  
  3252  
  3253  
  3254  
  3255  
  3256  if (jspb.Message.GENERATE_TO_OBJECT) {
  3257  /**
  3258   * Creates an object representation of this proto.
  3259   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3260   * Optional fields that are not set will be set to undefined.
  3261   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3262   * For the list of reserved names please see:
  3263   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3264   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3265   *     JSPB instance for transitional soy proto support:
  3266   *     http://goto/soy-param-migration
  3267   * @return {!Object}
  3268   */
  3269  proto.rpcquery.ProposalResult.prototype.toObject = function(opt_includeInstance) {
  3270    return proto.rpcquery.ProposalResult.toObject(opt_includeInstance, this);
  3271  };
  3272  
  3273  
  3274  /**
  3275   * Static version of the {@see toObject} method.
  3276   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3277   *     the JSPB instance for transitional soy proto support:
  3278   *     http://goto/soy-param-migration
  3279   * @param {!proto.rpcquery.ProposalResult} msg The msg instance to transform.
  3280   * @return {!Object}
  3281   * @suppress {unusedLocalVariables} f is only used for nested messages
  3282   */
  3283  proto.rpcquery.ProposalResult.toObject = function(includeInstance, msg) {
  3284    var f, obj = {
  3285      hash: msg.getHash_asB64(),
  3286      ballot: (f = msg.getBallot()) && payload_pb.Ballot.toObject(includeInstance, f)
  3287    };
  3288  
  3289    if (includeInstance) {
  3290      obj.$jspbMessageInstance = msg;
  3291    }
  3292    return obj;
  3293  };
  3294  }
  3295  
  3296  
  3297  /**
  3298   * Deserializes binary data (in protobuf wire format).
  3299   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3300   * @return {!proto.rpcquery.ProposalResult}
  3301   */
  3302  proto.rpcquery.ProposalResult.deserializeBinary = function(bytes) {
  3303    var reader = new jspb.BinaryReader(bytes);
  3304    var msg = new proto.rpcquery.ProposalResult;
  3305    return proto.rpcquery.ProposalResult.deserializeBinaryFromReader(msg, reader);
  3306  };
  3307  
  3308  
  3309  /**
  3310   * Deserializes binary data (in protobuf wire format) from the
  3311   * given reader into the given message object.
  3312   * @param {!proto.rpcquery.ProposalResult} msg The message object to deserialize into.
  3313   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3314   * @return {!proto.rpcquery.ProposalResult}
  3315   */
  3316  proto.rpcquery.ProposalResult.deserializeBinaryFromReader = function(msg, reader) {
  3317    while (reader.nextField()) {
  3318      if (reader.isEndGroup()) {
  3319        break;
  3320      }
  3321      var field = reader.getFieldNumber();
  3322      switch (field) {
  3323      case 1:
  3324        var value = /** @type {!Uint8Array} */ (reader.readBytes());
  3325        msg.setHash(value);
  3326        break;
  3327      case 2:
  3328        var value = new payload_pb.Ballot;
  3329        reader.readMessage(value,payload_pb.Ballot.deserializeBinaryFromReader);
  3330        msg.setBallot(value);
  3331        break;
  3332      default:
  3333        reader.skipField();
  3334        break;
  3335      }
  3336    }
  3337    return msg;
  3338  };
  3339  
  3340  
  3341  /**
  3342   * Serializes the message to binary data (in protobuf wire format).
  3343   * @return {!Uint8Array}
  3344   */
  3345  proto.rpcquery.ProposalResult.prototype.serializeBinary = function() {
  3346    var writer = new jspb.BinaryWriter();
  3347    proto.rpcquery.ProposalResult.serializeBinaryToWriter(this, writer);
  3348    return writer.getResultBuffer();
  3349  };
  3350  
  3351  
  3352  /**
  3353   * Serializes the given message to binary data (in protobuf wire
  3354   * format), writing to the given BinaryWriter.
  3355   * @param {!proto.rpcquery.ProposalResult} message
  3356   * @param {!jspb.BinaryWriter} writer
  3357   * @suppress {unusedLocalVariables} f is only used for nested messages
  3358   */
  3359  proto.rpcquery.ProposalResult.serializeBinaryToWriter = function(message, writer) {
  3360    var f = undefined;
  3361    f = message.getHash_asU8();
  3362    if (f.length > 0) {
  3363      writer.writeBytes(
  3364        1,
  3365        f
  3366      );
  3367    }
  3368    f = message.getBallot();
  3369    if (f != null) {
  3370      writer.writeMessage(
  3371        2,
  3372        f,
  3373        payload_pb.Ballot.serializeBinaryToWriter
  3374      );
  3375    }
  3376  };
  3377  
  3378  
  3379  /**
  3380   * optional bytes Hash = 1;
  3381   * @return {!(string|Uint8Array)}
  3382   */
  3383  proto.rpcquery.ProposalResult.prototype.getHash = function() {
  3384    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  3385  };
  3386  
  3387  
  3388  /**
  3389   * optional bytes Hash = 1;
  3390   * This is a type-conversion wrapper around `getHash()`
  3391   * @return {string}
  3392   */
  3393  proto.rpcquery.ProposalResult.prototype.getHash_asB64 = function() {
  3394    return /** @type {string} */ (jspb.Message.bytesAsB64(
  3395        this.getHash()));
  3396  };
  3397  
  3398  
  3399  /**
  3400   * optional bytes Hash = 1;
  3401   * Note that Uint8Array is not supported on all browsers.
  3402   * @see http://caniuse.com/Uint8Array
  3403   * This is a type-conversion wrapper around `getHash()`
  3404   * @return {!Uint8Array}
  3405   */
  3406  proto.rpcquery.ProposalResult.prototype.getHash_asU8 = function() {
  3407    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  3408        this.getHash()));
  3409  };
  3410  
  3411  
  3412  /**
  3413   * @param {!(string|Uint8Array)} value
  3414   * @return {!proto.rpcquery.ProposalResult} returns this
  3415   */
  3416  proto.rpcquery.ProposalResult.prototype.setHash = function(value) {
  3417    return jspb.Message.setProto3BytesField(this, 1, value);
  3418  };
  3419  
  3420  
  3421  /**
  3422   * optional payload.Ballot Ballot = 2;
  3423   * @return {?proto.payload.Ballot}
  3424   */
  3425  proto.rpcquery.ProposalResult.prototype.getBallot = function() {
  3426    return /** @type{?proto.payload.Ballot} */ (
  3427      jspb.Message.getWrapperField(this, payload_pb.Ballot, 2));
  3428  };
  3429  
  3430  
  3431  /**
  3432   * @param {?proto.payload.Ballot|undefined} value
  3433   * @return {!proto.rpcquery.ProposalResult} returns this
  3434  */
  3435  proto.rpcquery.ProposalResult.prototype.setBallot = function(value) {
  3436    return jspb.Message.setWrapperField(this, 2, value);
  3437  };
  3438  
  3439  
  3440  /**
  3441   * Clears the message field making it undefined.
  3442   * @return {!proto.rpcquery.ProposalResult} returns this
  3443   */
  3444  proto.rpcquery.ProposalResult.prototype.clearBallot = function() {
  3445    return this.setBallot(undefined);
  3446  };
  3447  
  3448  
  3449  /**
  3450   * Returns whether this field is set.
  3451   * @return {boolean}
  3452   */
  3453  proto.rpcquery.ProposalResult.prototype.hasBallot = function() {
  3454    return jspb.Message.getField(this, 2) != null;
  3455  };
  3456  
  3457  
  3458  
  3459  
  3460  
  3461  if (jspb.Message.GENERATE_TO_OBJECT) {
  3462  /**
  3463   * Creates an object representation of this proto.
  3464   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3465   * Optional fields that are not set will be set to undefined.
  3466   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3467   * For the list of reserved names please see:
  3468   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3469   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3470   *     JSPB instance for transitional soy proto support:
  3471   *     http://goto/soy-param-migration
  3472   * @return {!Object}
  3473   */
  3474  proto.rpcquery.GetStatsParam.prototype.toObject = function(opt_includeInstance) {
  3475    return proto.rpcquery.GetStatsParam.toObject(opt_includeInstance, this);
  3476  };
  3477  
  3478  
  3479  /**
  3480   * Static version of the {@see toObject} method.
  3481   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3482   *     the JSPB instance for transitional soy proto support:
  3483   *     http://goto/soy-param-migration
  3484   * @param {!proto.rpcquery.GetStatsParam} msg The msg instance to transform.
  3485   * @return {!Object}
  3486   * @suppress {unusedLocalVariables} f is only used for nested messages
  3487   */
  3488  proto.rpcquery.GetStatsParam.toObject = function(includeInstance, msg) {
  3489    var f, obj = {
  3490  
  3491    };
  3492  
  3493    if (includeInstance) {
  3494      obj.$jspbMessageInstance = msg;
  3495    }
  3496    return obj;
  3497  };
  3498  }
  3499  
  3500  
  3501  /**
  3502   * Deserializes binary data (in protobuf wire format).
  3503   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3504   * @return {!proto.rpcquery.GetStatsParam}
  3505   */
  3506  proto.rpcquery.GetStatsParam.deserializeBinary = function(bytes) {
  3507    var reader = new jspb.BinaryReader(bytes);
  3508    var msg = new proto.rpcquery.GetStatsParam;
  3509    return proto.rpcquery.GetStatsParam.deserializeBinaryFromReader(msg, reader);
  3510  };
  3511  
  3512  
  3513  /**
  3514   * Deserializes binary data (in protobuf wire format) from the
  3515   * given reader into the given message object.
  3516   * @param {!proto.rpcquery.GetStatsParam} msg The message object to deserialize into.
  3517   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3518   * @return {!proto.rpcquery.GetStatsParam}
  3519   */
  3520  proto.rpcquery.GetStatsParam.deserializeBinaryFromReader = function(msg, reader) {
  3521    while (reader.nextField()) {
  3522      if (reader.isEndGroup()) {
  3523        break;
  3524      }
  3525      var field = reader.getFieldNumber();
  3526      switch (field) {
  3527      default:
  3528        reader.skipField();
  3529        break;
  3530      }
  3531    }
  3532    return msg;
  3533  };
  3534  
  3535  
  3536  /**
  3537   * Serializes the message to binary data (in protobuf wire format).
  3538   * @return {!Uint8Array}
  3539   */
  3540  proto.rpcquery.GetStatsParam.prototype.serializeBinary = function() {
  3541    var writer = new jspb.BinaryWriter();
  3542    proto.rpcquery.GetStatsParam.serializeBinaryToWriter(this, writer);
  3543    return writer.getResultBuffer();
  3544  };
  3545  
  3546  
  3547  /**
  3548   * Serializes the given message to binary data (in protobuf wire
  3549   * format), writing to the given BinaryWriter.
  3550   * @param {!proto.rpcquery.GetStatsParam} message
  3551   * @param {!jspb.BinaryWriter} writer
  3552   * @suppress {unusedLocalVariables} f is only used for nested messages
  3553   */
  3554  proto.rpcquery.GetStatsParam.serializeBinaryToWriter = function(message, writer) {
  3555    var f = undefined;
  3556  };
  3557  
  3558  
  3559  
  3560  
  3561  
  3562  if (jspb.Message.GENERATE_TO_OBJECT) {
  3563  /**
  3564   * Creates an object representation of this proto.
  3565   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3566   * Optional fields that are not set will be set to undefined.
  3567   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3568   * For the list of reserved names please see:
  3569   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3570   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3571   *     JSPB instance for transitional soy proto support:
  3572   *     http://goto/soy-param-migration
  3573   * @return {!Object}
  3574   */
  3575  proto.rpcquery.Stats.prototype.toObject = function(opt_includeInstance) {
  3576    return proto.rpcquery.Stats.toObject(opt_includeInstance, this);
  3577  };
  3578  
  3579  
  3580  /**
  3581   * Static version of the {@see toObject} method.
  3582   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3583   *     the JSPB instance for transitional soy proto support:
  3584   *     http://goto/soy-param-migration
  3585   * @param {!proto.rpcquery.Stats} msg The msg instance to transform.
  3586   * @return {!Object}
  3587   * @suppress {unusedLocalVariables} f is only used for nested messages
  3588   */
  3589  proto.rpcquery.Stats.toObject = function(includeInstance, msg) {
  3590    var f, obj = {
  3591      accountswithcode: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3592      accountswithoutcode: jspb.Message.getFieldWithDefault(msg, 2, 0)
  3593    };
  3594  
  3595    if (includeInstance) {
  3596      obj.$jspbMessageInstance = msg;
  3597    }
  3598    return obj;
  3599  };
  3600  }
  3601  
  3602  
  3603  /**
  3604   * Deserializes binary data (in protobuf wire format).
  3605   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3606   * @return {!proto.rpcquery.Stats}
  3607   */
  3608  proto.rpcquery.Stats.deserializeBinary = function(bytes) {
  3609    var reader = new jspb.BinaryReader(bytes);
  3610    var msg = new proto.rpcquery.Stats;
  3611    return proto.rpcquery.Stats.deserializeBinaryFromReader(msg, reader);
  3612  };
  3613  
  3614  
  3615  /**
  3616   * Deserializes binary data (in protobuf wire format) from the
  3617   * given reader into the given message object.
  3618   * @param {!proto.rpcquery.Stats} msg The message object to deserialize into.
  3619   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3620   * @return {!proto.rpcquery.Stats}
  3621   */
  3622  proto.rpcquery.Stats.deserializeBinaryFromReader = function(msg, reader) {
  3623    while (reader.nextField()) {
  3624      if (reader.isEndGroup()) {
  3625        break;
  3626      }
  3627      var field = reader.getFieldNumber();
  3628      switch (field) {
  3629      case 1:
  3630        var value = /** @type {number} */ (reader.readUint64());
  3631        msg.setAccountswithcode(value);
  3632        break;
  3633      case 2:
  3634        var value = /** @type {number} */ (reader.readUint64());
  3635        msg.setAccountswithoutcode(value);
  3636        break;
  3637      default:
  3638        reader.skipField();
  3639        break;
  3640      }
  3641    }
  3642    return msg;
  3643  };
  3644  
  3645  
  3646  /**
  3647   * Serializes the message to binary data (in protobuf wire format).
  3648   * @return {!Uint8Array}
  3649   */
  3650  proto.rpcquery.Stats.prototype.serializeBinary = function() {
  3651    var writer = new jspb.BinaryWriter();
  3652    proto.rpcquery.Stats.serializeBinaryToWriter(this, writer);
  3653    return writer.getResultBuffer();
  3654  };
  3655  
  3656  
  3657  /**
  3658   * Serializes the given message to binary data (in protobuf wire
  3659   * format), writing to the given BinaryWriter.
  3660   * @param {!proto.rpcquery.Stats} message
  3661   * @param {!jspb.BinaryWriter} writer
  3662   * @suppress {unusedLocalVariables} f is only used for nested messages
  3663   */
  3664  proto.rpcquery.Stats.serializeBinaryToWriter = function(message, writer) {
  3665    var f = undefined;
  3666    f = message.getAccountswithcode();
  3667    if (f !== 0) {
  3668      writer.writeUint64(
  3669        1,
  3670        f
  3671      );
  3672    }
  3673    f = message.getAccountswithoutcode();
  3674    if (f !== 0) {
  3675      writer.writeUint64(
  3676        2,
  3677        f
  3678      );
  3679    }
  3680  };
  3681  
  3682  
  3683  /**
  3684   * optional uint64 AccountsWithCode = 1;
  3685   * @return {number}
  3686   */
  3687  proto.rpcquery.Stats.prototype.getAccountswithcode = function() {
  3688    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3689  };
  3690  
  3691  
  3692  /**
  3693   * @param {number} value
  3694   * @return {!proto.rpcquery.Stats} returns this
  3695   */
  3696  proto.rpcquery.Stats.prototype.setAccountswithcode = function(value) {
  3697    return jspb.Message.setProto3IntField(this, 1, value);
  3698  };
  3699  
  3700  
  3701  /**
  3702   * optional uint64 AccountsWithoutCode = 2;
  3703   * @return {number}
  3704   */
  3705  proto.rpcquery.Stats.prototype.getAccountswithoutcode = function() {
  3706    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  3707  };
  3708  
  3709  
  3710  /**
  3711   * @param {number} value
  3712   * @return {!proto.rpcquery.Stats} returns this
  3713   */
  3714  proto.rpcquery.Stats.prototype.setAccountswithoutcode = function(value) {
  3715    return jspb.Message.setProto3IntField(this, 2, value);
  3716  };
  3717  
  3718  
  3719  
  3720  
  3721  
  3722  if (jspb.Message.GENERATE_TO_OBJECT) {
  3723  /**
  3724   * Creates an object representation of this proto.
  3725   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3726   * Optional fields that are not set will be set to undefined.
  3727   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3728   * For the list of reserved names please see:
  3729   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3730   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3731   *     JSPB instance for transitional soy proto support:
  3732   *     http://goto/soy-param-migration
  3733   * @return {!Object}
  3734   */
  3735  proto.rpcquery.GetBlockParam.prototype.toObject = function(opt_includeInstance) {
  3736    return proto.rpcquery.GetBlockParam.toObject(opt_includeInstance, this);
  3737  };
  3738  
  3739  
  3740  /**
  3741   * Static version of the {@see toObject} method.
  3742   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3743   *     the JSPB instance for transitional soy proto support:
  3744   *     http://goto/soy-param-migration
  3745   * @param {!proto.rpcquery.GetBlockParam} msg The msg instance to transform.
  3746   * @return {!Object}
  3747   * @suppress {unusedLocalVariables} f is only used for nested messages
  3748   */
  3749  proto.rpcquery.GetBlockParam.toObject = function(includeInstance, msg) {
  3750    var f, obj = {
  3751      height: jspb.Message.getFieldWithDefault(msg, 1, 0)
  3752    };
  3753  
  3754    if (includeInstance) {
  3755      obj.$jspbMessageInstance = msg;
  3756    }
  3757    return obj;
  3758  };
  3759  }
  3760  
  3761  
  3762  /**
  3763   * Deserializes binary data (in protobuf wire format).
  3764   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3765   * @return {!proto.rpcquery.GetBlockParam}
  3766   */
  3767  proto.rpcquery.GetBlockParam.deserializeBinary = function(bytes) {
  3768    var reader = new jspb.BinaryReader(bytes);
  3769    var msg = new proto.rpcquery.GetBlockParam;
  3770    return proto.rpcquery.GetBlockParam.deserializeBinaryFromReader(msg, reader);
  3771  };
  3772  
  3773  
  3774  /**
  3775   * Deserializes binary data (in protobuf wire format) from the
  3776   * given reader into the given message object.
  3777   * @param {!proto.rpcquery.GetBlockParam} msg The message object to deserialize into.
  3778   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3779   * @return {!proto.rpcquery.GetBlockParam}
  3780   */
  3781  proto.rpcquery.GetBlockParam.deserializeBinaryFromReader = function(msg, reader) {
  3782    while (reader.nextField()) {
  3783      if (reader.isEndGroup()) {
  3784        break;
  3785      }
  3786      var field = reader.getFieldNumber();
  3787      switch (field) {
  3788      case 1:
  3789        var value = /** @type {number} */ (reader.readUint64());
  3790        msg.setHeight(value);
  3791        break;
  3792      default:
  3793        reader.skipField();
  3794        break;
  3795      }
  3796    }
  3797    return msg;
  3798  };
  3799  
  3800  
  3801  /**
  3802   * Serializes the message to binary data (in protobuf wire format).
  3803   * @return {!Uint8Array}
  3804   */
  3805  proto.rpcquery.GetBlockParam.prototype.serializeBinary = function() {
  3806    var writer = new jspb.BinaryWriter();
  3807    proto.rpcquery.GetBlockParam.serializeBinaryToWriter(this, writer);
  3808    return writer.getResultBuffer();
  3809  };
  3810  
  3811  
  3812  /**
  3813   * Serializes the given message to binary data (in protobuf wire
  3814   * format), writing to the given BinaryWriter.
  3815   * @param {!proto.rpcquery.GetBlockParam} message
  3816   * @param {!jspb.BinaryWriter} writer
  3817   * @suppress {unusedLocalVariables} f is only used for nested messages
  3818   */
  3819  proto.rpcquery.GetBlockParam.serializeBinaryToWriter = function(message, writer) {
  3820    var f = undefined;
  3821    f = message.getHeight();
  3822    if (f !== 0) {
  3823      writer.writeUint64(
  3824        1,
  3825        f
  3826      );
  3827    }
  3828  };
  3829  
  3830  
  3831  /**
  3832   * optional uint64 Height = 1;
  3833   * @return {number}
  3834   */
  3835  proto.rpcquery.GetBlockParam.prototype.getHeight = function() {
  3836    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3837  };
  3838  
  3839  
  3840  /**
  3841   * @param {number} value
  3842   * @return {!proto.rpcquery.GetBlockParam} returns this
  3843   */
  3844  proto.rpcquery.GetBlockParam.prototype.setHeight = function(value) {
  3845    return jspb.Message.setProto3IntField(this, 1, value);
  3846  };
  3847  
  3848  
  3849  goog.object.extend(exports, proto.rpcquery);