UNPKG

@paradeum/burrow

Version:

TypeScript library that calls a Hyperledger Burrow server over GRPC.

1,494 lines (1,386 loc) 197 kB
// source: rpcquery.proto /** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var github_com_gogo_protobuf_gogoproto_gogo_pb = require('./github.com/gogo/protobuf/gogoproto/gogo_pb.js'); goog.object.extend(proto, github_com_gogo_protobuf_gogoproto_gogo_pb); var github_com_tendermint_tendermint_abci_types_types_pb = require('./github.com/tendermint/tendermint/abci/types/types_pb.js'); goog.object.extend(proto, github_com_tendermint_tendermint_abci_types_types_pb); var names_pb = require('./names_pb.js'); goog.object.extend(proto, names_pb); var acm_pb = require('./acm_pb.js'); goog.object.extend(proto, acm_pb); var validator_pb = require('./validator_pb.js'); goog.object.extend(proto, validator_pb); var registry_pb = require('./registry_pb.js'); goog.object.extend(proto, registry_pb); var rpc_pb = require('./rpc_pb.js'); goog.object.extend(proto, rpc_pb); var payload_pb = require('./payload_pb.js'); goog.object.extend(proto, payload_pb); var txs_pb = require('./txs_pb.js'); goog.object.extend(proto, txs_pb); var tendermint_pb = require('./tendermint_pb.js'); goog.object.extend(proto, tendermint_pb); var permission_pb = require('./permission_pb.js'); goog.object.extend(proto, permission_pb); goog.exportSymbol('proto.rpcquery.Block', null, global); goog.exportSymbol('proto.rpcquery.BlocksResult', null, global); goog.exportSymbol('proto.rpcquery.ChainID', null, global); goog.exportSymbol('proto.rpcquery.ConsensusState', null, global); goog.exportSymbol('proto.rpcquery.Genesis', null, global); goog.exportSymbol('proto.rpcquery.GetAccountParam', null, global); goog.exportSymbol('proto.rpcquery.GetBlockParam', null, global); goog.exportSymbol('proto.rpcquery.GetChainIDParam', null, global); goog.exportSymbol('proto.rpcquery.GetGenesisParam', null, global); goog.exportSymbol('proto.rpcquery.GetMetadataParam', null, global); goog.exportSymbol('proto.rpcquery.GetNameParam', null, global); goog.exportSymbol('proto.rpcquery.GetNetworkParam', null, global); goog.exportSymbol('proto.rpcquery.GetNetworkRegistryParam', null, global); goog.exportSymbol('proto.rpcquery.GetProposalParam', null, global); goog.exportSymbol('proto.rpcquery.GetStatsParam', null, global); goog.exportSymbol('proto.rpcquery.GetStorageParam', null, global); goog.exportSymbol('proto.rpcquery.GetUnconfirmedTxsParam', null, global); goog.exportSymbol('proto.rpcquery.GetValidatorSetHistoryParam', null, global); goog.exportSymbol('proto.rpcquery.GetValidatorSetParam', null, global); goog.exportSymbol('proto.rpcquery.ListAccountsParam', null, global); goog.exportSymbol('proto.rpcquery.ListBlocksParam', null, global); goog.exportSymbol('proto.rpcquery.ListNamesParam', null, global); goog.exportSymbol('proto.rpcquery.ListProposalsParam', null, global); goog.exportSymbol('proto.rpcquery.MetadataResult', null, global); goog.exportSymbol('proto.rpcquery.Network', null, global); goog.exportSymbol('proto.rpcquery.NetworkRegistry', null, global); goog.exportSymbol('proto.rpcquery.Params', null, global); goog.exportSymbol('proto.rpcquery.ProposalResult', null, global); goog.exportSymbol('proto.rpcquery.RegisteredValidator', null, global); goog.exportSymbol('proto.rpcquery.Stats', null, global); goog.exportSymbol('proto.rpcquery.StatusParam', null, global); goog.exportSymbol('proto.rpcquery.StorageValue', null, global); goog.exportSymbol('proto.rpcquery.UnconfirmedTxs', null, global); goog.exportSymbol('proto.rpcquery.ValidatorSet', null, global); goog.exportSymbol('proto.rpcquery.ValidatorSetHistory', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.StatusParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.StatusParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.StatusParam.displayName = 'proto.rpcquery.StatusParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetAccountParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetAccountParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetAccountParam.displayName = 'proto.rpcquery.GetAccountParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetMetadataParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetMetadataParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetMetadataParam.displayName = 'proto.rpcquery.GetMetadataParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.MetadataResult = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.MetadataResult, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.MetadataResult.displayName = 'proto.rpcquery.MetadataResult'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetStorageParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetStorageParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetStorageParam.displayName = 'proto.rpcquery.GetStorageParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.StorageValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.StorageValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.StorageValue.displayName = 'proto.rpcquery.StorageValue'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.ListAccountsParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.ListAccountsParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.ListAccountsParam.displayName = 'proto.rpcquery.ListAccountsParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetNameParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetNameParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetNameParam.displayName = 'proto.rpcquery.GetNameParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.ListNamesParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.ListNamesParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.ListNamesParam.displayName = 'proto.rpcquery.ListNamesParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetNetworkRegistryParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetNetworkRegistryParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetNetworkRegistryParam.displayName = 'proto.rpcquery.GetNetworkRegistryParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetValidatorSetParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetValidatorSetParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetValidatorSetParam.displayName = 'proto.rpcquery.GetValidatorSetParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetValidatorSetHistoryParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetValidatorSetHistoryParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetValidatorSetHistoryParam.displayName = 'proto.rpcquery.GetValidatorSetHistoryParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.NetworkRegistry = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.NetworkRegistry.repeatedFields_, null); }; goog.inherits(proto.rpcquery.NetworkRegistry, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.NetworkRegistry.displayName = 'proto.rpcquery.NetworkRegistry'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.RegisteredValidator = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.RegisteredValidator, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.RegisteredValidator.displayName = 'proto.rpcquery.RegisteredValidator'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.ValidatorSetHistory = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.ValidatorSetHistory.repeatedFields_, null); }; goog.inherits(proto.rpcquery.ValidatorSetHistory, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.ValidatorSetHistory.displayName = 'proto.rpcquery.ValidatorSetHistory'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.ValidatorSet = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.ValidatorSet.repeatedFields_, null); }; goog.inherits(proto.rpcquery.ValidatorSet, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.ValidatorSet.displayName = 'proto.rpcquery.ValidatorSet'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetProposalParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetProposalParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetProposalParam.displayName = 'proto.rpcquery.GetProposalParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.ListProposalsParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.ListProposalsParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.ListProposalsParam.displayName = 'proto.rpcquery.ListProposalsParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.ProposalResult = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.ProposalResult, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.ProposalResult.displayName = 'proto.rpcquery.ProposalResult'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetStatsParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetStatsParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetStatsParam.displayName = 'proto.rpcquery.GetStatsParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.Stats = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.Stats, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.Stats.displayName = 'proto.rpcquery.Stats'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetBlockParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetBlockParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetBlockParam.displayName = 'proto.rpcquery.GetBlockParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetNetworkParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetNetworkParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetNetworkParam.displayName = 'proto.rpcquery.GetNetworkParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.Network = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.Network.repeatedFields_, null); }; goog.inherits(proto.rpcquery.Network, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.Network.displayName = 'proto.rpcquery.Network'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetGenesisParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetGenesisParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetGenesisParam.displayName = 'proto.rpcquery.GetGenesisParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.Params = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.Params, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.Params.displayName = 'proto.rpcquery.Params'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.Genesis = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.Genesis.repeatedFields_, null); }; goog.inherits(proto.rpcquery.Genesis, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.Genesis.displayName = 'proto.rpcquery.Genesis'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetChainIDParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetChainIDParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetChainIDParam.displayName = 'proto.rpcquery.GetChainIDParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.ChainID = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.ChainID, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.ChainID.displayName = 'proto.rpcquery.ChainID'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.GetUnconfirmedTxsParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.GetUnconfirmedTxsParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.GetUnconfirmedTxsParam.displayName = 'proto.rpcquery.GetUnconfirmedTxsParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.UnconfirmedTxs = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.UnconfirmedTxs.repeatedFields_, null); }; goog.inherits(proto.rpcquery.UnconfirmedTxs, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.UnconfirmedTxs.displayName = 'proto.rpcquery.UnconfirmedTxs'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.ConsensusState = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.ConsensusState, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.ConsensusState.displayName = 'proto.rpcquery.ConsensusState'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.ListBlocksParam = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.rpcquery.ListBlocksParam, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.ListBlocksParam.displayName = 'proto.rpcquery.ListBlocksParam'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.Block = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.Block.repeatedFields_, null); }; goog.inherits(proto.rpcquery.Block, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.Block.displayName = 'proto.rpcquery.Block'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.rpcquery.BlocksResult = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.rpcquery.BlocksResult.repeatedFields_, null); }; goog.inherits(proto.rpcquery.BlocksResult, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.rpcquery.BlocksResult.displayName = 'proto.rpcquery.BlocksResult'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.rpcquery.StatusParam.prototype.toObject = function(opt_includeInstance) { return proto.rpcquery.StatusParam.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.rpcquery.StatusParam} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.rpcquery.StatusParam.toObject = function(includeInstance, msg) { var f, obj = { blocktimewithin: jspb.Message.getFieldWithDefault(msg, 1, ""), blockseentimewithin: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.rpcquery.StatusParam} */ proto.rpcquery.StatusParam.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.rpcquery.StatusParam; return proto.rpcquery.StatusParam.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.rpcquery.StatusParam} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.rpcquery.StatusParam} */ proto.rpcquery.StatusParam.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setBlocktimewithin(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setBlockseentimewithin(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.rpcquery.StatusParam.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.rpcquery.StatusParam.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.rpcquery.StatusParam} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.rpcquery.StatusParam.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBlocktimewithin(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getBlockseentimewithin(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string BlockTimeWithin = 1; * @return {string} */ proto.rpcquery.StatusParam.prototype.getBlocktimewithin = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.rpcquery.StatusParam} returns this */ proto.rpcquery.StatusParam.prototype.setBlocktimewithin = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string BlockSeenTimeWithin = 2; * @return {string} */ proto.rpcquery.StatusParam.prototype.getBlockseentimewithin = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.rpcquery.StatusParam} returns this */ proto.rpcquery.StatusParam.prototype.setBlockseentimewithin = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.rpcquery.GetAccountParam.prototype.toObject = function(opt_includeInstance) { return proto.rpcquery.GetAccountParam.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.rpcquery.GetAccountParam} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.rpcquery.GetAccountParam.toObject = function(includeInstance, msg) { var f, obj = { address: msg.getAddress_asB64() }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.rpcquery.GetAccountParam} */ proto.rpcquery.GetAccountParam.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.rpcquery.GetAccountParam; return proto.rpcquery.GetAccountParam.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.rpcquery.GetAccountParam} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.rpcquery.GetAccountParam} */ proto.rpcquery.GetAccountParam.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setAddress(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.rpcquery.GetAccountParam.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.rpcquery.GetAccountParam.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.rpcquery.GetAccountParam} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.rpcquery.GetAccountParam.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAddress_asU8(); if (f.length > 0) { writer.writeBytes( 1, f ); } }; /** * optional bytes Address = 1; * @return {!(string|Uint8Array)} */ proto.rpcquery.GetAccountParam.prototype.getAddress = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * optional bytes Address = 1; * This is a type-conversion wrapper around `getAddress()` * @return {string} */ proto.rpcquery.GetAccountParam.prototype.getAddress_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getAddress())); }; /** * optional bytes Address = 1; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getAddress()` * @return {!Uint8Array} */ proto.rpcquery.GetAccountParam.prototype.getAddress_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getAddress())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.rpcquery.GetAccountParam} returns this */ proto.rpcquery.GetAccountParam.prototype.setAddress = function(value) { return jspb.Message.setProto3BytesField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.rpcquery.GetMetadataParam.prototype.toObject = function(opt_includeInstance) { return proto.rpcquery.GetMetadataParam.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.rpcquery.GetMetadataParam} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.rpcquery.GetMetadataParam.toObject = function(includeInstance, msg) { var f, obj = { address: msg.getAddress_asB64(), metadatahash: msg.getMetadatahash_asB64() }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.rpcquery.GetMetadataParam} */ proto.rpcquery.GetMetadataParam.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.rpcquery.GetMetadataParam; return proto.rpcquery.GetMetadataParam.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.rpcquery.GetMetadataParam} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.rpcquery.GetMetadataParam} */ proto.rpcquery.GetMetadataParam.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setAddress(value); break; case 2: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setMetadatahash(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.rpcquery.GetMetadataParam.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.rpcquery.GetMetadataParam.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.rpcquery.GetMetadataParam} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.rpcquery.GetMetadataParam.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAddress_asU8(); if (f.length > 0) { writer.writeBytes( 1, f ); } f = message.getMetadatahash_asU8(); if (f.length > 0) { writer.writeBytes( 2, f ); } }; /** * optional bytes Address = 1; * @return {!(string|Uint8Array)} */ proto.rpcquery.GetMetadataParam.prototype.getAddress = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * optional bytes Address = 1; * This is a type-conversion wrapper around `getAddress()` * @return {string} */ proto.rpcquery.GetMetadataParam.prototype.getAddress_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getAddress())); }; /** * optional bytes Address = 1; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getAddress()` * @return {!Uint8Array} */ proto.rpcquery.GetMetadataParam.prototype.getAddress_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getAddress())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.rpcquery.GetMetadataParam} returns this */ proto.rpcquery.GetMetadataParam.prototype.setAddress = function(value) { return jspb.Message.setProto3BytesField(this, 1, value); }; /** * optional bytes MetadataHash = 2; * @return {!(string|Uint8Array)} */ proto.rpcquery.GetMetadataParam.prototype.getMetadatahash = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * optional bytes MetadataHash = 2; * This is a type-conversion wrapper around `getMetadatahash()` * @return {string} */ proto.rpcquery.GetMetadataParam.prototype.getMetadatahash_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getMetadatahash())); }; /** * optional bytes MetadataHash = 2; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getMetadatahash()` * @return {!Uint8Array} */ proto.rpcquery.GetMetadataParam.prototype.getMetadatahash_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getMetadatahash())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.rpcquery.GetMetadataParam} returns this */ proto.rpcquery.GetMetadataParam.prototype.setMetadatahash = function(value) { return jspb.Message.setProto3BytesField(this, 2, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.rpcquery.MetadataResult.prototype.toObject = function(opt_includeInstance) { return proto.rpcquery.MetadataResult.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.rpcquery.MetadataResult} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.rpcquery.MetadataResult.toObject = function(includeInstance, msg) { var f, obj = { metadata: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.rpcquery.MetadataResult} */ proto.rpcquery.MetadataResult.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.rpcquery.MetadataResult; return proto.rpcquery.MetadataResult.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.rpcquery.MetadataResult} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.rpcquery.MetadataResult} */ proto.rpcquery.MetadataResult.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setMetadata(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.rpcquery.MetadataResult.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.rpcquery.MetadataResult.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.rpcquery.MetadataResult} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.rpcquery.MetadataResult.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMetadata(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string Metadata = 1; * @return {string} */ proto.rpcquery.MetadataResult.prototype.getMetadata = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.rpcquery.MetadataResult} returns this */ proto.rpcquery.MetadataResult.prototype.setMetadata = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.rpcquery.GetStorageParam.prototype.toObject = function(opt_includeInstance) { return proto.rpcquery.GetStorageParam.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.rpcquery.GetStorageParam} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.rpcquery.GetStorageParam.toObject = function(includeInstance, msg) { var f, obj = { address: msg.getAddress_asB64(),