@bandprotocol/bandchain.js
Version:
Library for interacting with BandChain in browser and Node.js environments
1,513 lines (1,455 loc) • 156 kB
JavaScript
// source: cosmos/base/tendermint/v1beta1/query.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf')
var goog = jspb
var global = Function('return this')()
var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js')
goog.object.extend(proto, gogoproto_gogo_pb)
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js')
goog.object.extend(proto, google_protobuf_any_pb)
var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js')
goog.object.extend(proto, google_api_annotations_pb)
var tendermint_p2p_types_pb = require('../../../../tendermint/p2p/types_pb.js')
goog.object.extend(proto, tendermint_p2p_types_pb)
var tendermint_types_types_pb = require('../../../../tendermint/types/types_pb.js')
goog.object.extend(proto, tendermint_types_types_pb)
var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/query/v1beta1/pagination_pb.js')
goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb)
var cosmos_base_tendermint_v1beta1_types_pb = require('../../../../cosmos/base/tendermint/v1beta1/types_pb.js')
goog.object.extend(proto, cosmos_base_tendermint_v1beta1_types_pb)
var cosmos_proto_cosmos_pb = require('../../../../cosmos_proto/cosmos_pb.js')
goog.object.extend(proto, cosmos_proto_cosmos_pb)
var tendermint_types_block_pb = require('../../../../tendermint/types/block_pb.js')
goog.object.extend(proto, tendermint_types_block_pb)
var amino_amino_pb = require('../../../../amino/amino_pb.js')
goog.object.extend(proto, amino_amino_pb)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.ABCIQueryRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.ABCIQueryResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse',
null,
global,
)
goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.Module', null, global)
goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.ProofOp', null, global)
goog.exportSymbol('proto.cosmos.base.tendermint.v1beta1.ProofOps', null, global)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.Validator',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.base.tendermint.v1beta1.VersionInfo',
null,
global,
)
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse =
function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse
.repeatedFields_,
null,
)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse = function (
opt_data,
) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse
.repeatedFields_,
null,
)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.Validator = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.base.tendermint.v1beta1.Validator, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.Validator.displayName =
'proto.cosmos.base.tendermint.v1beta1.Validator'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetLatestBlockRequest'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetLatestBlockResponse'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetSyncingRequest'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetSyncingResponse'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetNodeInfoRequest'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.displayName =
'proto.cosmos.base.tendermint.v1beta1.GetNodeInfoResponse'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.VersionInfo = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.base.tendermint.v1beta1.VersionInfo.repeatedFields_,
null,
)
}
goog.inherits(proto.cosmos.base.tendermint.v1beta1.VersionInfo, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.VersionInfo.displayName =
'proto.cosmos.base.tendermint.v1beta1.VersionInfo'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.Module = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.base.tendermint.v1beta1.Module, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.Module.displayName =
'proto.cosmos.base.tendermint.v1beta1.Module'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.ABCIQueryRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.ABCIQueryRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.ABCIQueryRequest.displayName =
'proto.cosmos.base.tendermint.v1beta1.ABCIQueryRequest'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.ABCIQueryResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.base.tendermint.v1beta1.ABCIQueryResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.ABCIQueryResponse.displayName =
'proto.cosmos.base.tendermint.v1beta1.ABCIQueryResponse'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.ProofOp = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.base.tendermint.v1beta1.ProofOp, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.ProofOp.displayName =
'proto.cosmos.base.tendermint.v1beta1.ProofOp'
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.base.tendermint.v1beta1.ProofOps = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.base.tendermint.v1beta1.ProofOps.repeatedFields_,
null,
)
}
goog.inherits(proto.cosmos.base.tendermint.v1beta1.ProofOps, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.tendermint.v1beta1.ProofOps.displayName =
'proto.cosmos.base.tendermint.v1beta1.ProofOps'
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.toObject(
opt_includeInstance,
this,
)
}
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.toObject =
function (includeInstance, msg) {
var f,
obj = {
height: jspb.Message.getFieldWithDefault(msg, 1, 0),
pagination:
(f = msg.getPagination()) &&
cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(
includeInstance,
f,
),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg =
new proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest()
return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64())
msg.setHeight(value)
break
case 2:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest()
reader.readMessage(
value,
cosmos_base_query_v1beta1_pagination_pb.PageRequest
.deserializeBinaryFromReader,
)
msg.setPagination(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter(
this,
writer,
)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getHeight()
if (f !== 0) {
writer.writeInt64(1, f)
}
f = message.getPagination()
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest
.serializeBinaryToWriter,
)
}
}
/**
* optional int64 height = 1;
* @return {number}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.getHeight =
function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0))
}
/**
* @param {number} value
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.setHeight =
function (value) {
return jspb.Message.setProto3IntField(this, 1, value)
}
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.getPagination =
function () {
return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
jspb.Message.getWrapperField(
this,
cosmos_base_query_v1beta1_pagination_pb.PageRequest,
2,
)
)
}
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.setPagination =
function (value) {
return jspb.Message.setWrapperField(this, 2, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.clearPagination =
function () {
return this.setPagination(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.prototype.hasPagination =
function () {
return jspb.Message.getField(this, 2) != null
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.repeatedFields_ =
[2]
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.toObject(
opt_includeInstance,
this,
)
}
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.toObject =
function (includeInstance, msg) {
var f,
obj = {
blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0),
validatorsList: jspb.Message.toObjectList(
msg.getValidatorsList(),
proto.cosmos.base.tendermint.v1beta1.Validator.toObject,
includeInstance,
),
pagination:
(f = msg.getPagination()) &&
cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(
includeInstance,
f,
),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg =
new proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse()
return proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64())
msg.setBlockHeight(value)
break
case 2:
var value = new proto.cosmos.base.tendermint.v1beta1.Validator()
reader.readMessage(
value,
proto.cosmos.base.tendermint.v1beta1.Validator
.deserializeBinaryFromReader,
)
msg.addValidators(value)
break
case 3:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse()
reader.readMessage(
value,
cosmos_base_query_v1beta1_pagination_pb.PageResponse
.deserializeBinaryFromReader,
)
msg.setPagination(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter(
this,
writer,
)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getBlockHeight()
if (f !== 0) {
writer.writeInt64(1, f)
}
f = message.getValidatorsList()
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter,
)
}
f = message.getPagination()
if (f != null) {
writer.writeMessage(
3,
f,
cosmos_base_query_v1beta1_pagination_pb.PageResponse
.serializeBinaryToWriter,
)
}
}
/**
* optional int64 block_height = 1;
* @return {number}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.getBlockHeight =
function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0))
}
/**
* @param {number} value
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.setBlockHeight =
function (value) {
return jspb.Message.setProto3IntField(this, 1, value)
}
/**
* repeated Validator validators = 2;
* @return {!Array<!proto.cosmos.base.tendermint.v1beta1.Validator>}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.getValidatorsList =
function () {
return /** @type{!Array<!proto.cosmos.base.tendermint.v1beta1.Validator>} */ (
jspb.Message.getRepeatedWrapperField(
this,
proto.cosmos.base.tendermint.v1beta1.Validator,
2,
)
)
}
/**
* @param {!Array<!proto.cosmos.base.tendermint.v1beta1.Validator>} value
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.setValidatorsList =
function (value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value)
}
/**
* @param {!proto.cosmos.base.tendermint.v1beta1.Validator=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.base.tendermint.v1beta1.Validator}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.addValidators =
function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(
this,
2,
opt_value,
proto.cosmos.base.tendermint.v1beta1.Validator,
opt_index,
)
}
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.clearValidatorsList =
function () {
return this.setValidatorsList([])
}
/**
* optional cosmos.base.query.v1beta1.PageResponse pagination = 3;
* @return {?proto.cosmos.base.query.v1beta1.PageResponse}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.getPagination =
function () {
return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ (
jspb.Message.getWrapperField(
this,
cosmos_base_query_v1beta1_pagination_pb.PageResponse,
3,
)
)
}
/**
* @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.setPagination =
function (value) {
return jspb.Message.setWrapperField(this, 3, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.clearPagination =
function () {
return this.setPagination(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse.prototype.hasPagination =
function () {
return jspb.Message.getField(this, 3) != null
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.toObject(
opt_includeInstance,
this,
)
}
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.toObject =
function (includeInstance, msg) {
var f,
obj = {
pagination:
(f = msg.getPagination()) &&
cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(
includeInstance,
f,
),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg =
new proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest()
return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest()
reader.readMessage(
value,
cosmos_base_query_v1beta1_pagination_pb.PageRequest
.deserializeBinaryFromReader,
)
msg.setPagination(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter(
this,
writer,
)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getPagination()
if (f != null) {
writer.writeMessage(
1,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest
.serializeBinaryToWriter,
)
}
}
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.getPagination =
function () {
return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
jspb.Message.getWrapperField(
this,
cosmos_base_query_v1beta1_pagination_pb.PageRequest,
1,
)
)
}
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.setPagination =
function (value) {
return jspb.Message.setWrapperField(this, 1, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.clearPagination =
function () {
return this.setPagination(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest.prototype.hasPagination =
function () {
return jspb.Message.getField(this, 1) != null
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.repeatedFields_ =
[2]
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.toObject(
opt_includeInstance,
this,
)
}
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.toObject =
function (includeInstance, msg) {
var f,
obj = {
blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0),
validatorsList: jspb.Message.toObjectList(
msg.getValidatorsList(),
proto.cosmos.base.tendermint.v1beta1.Validator.toObject,
includeInstance,
),
pagination:
(f = msg.getPagination()) &&
cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(
includeInstance,
f,
),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg =
new proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse()
return proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64())
msg.setBlockHeight(value)
break
case 2:
var value = new proto.cosmos.base.tendermint.v1beta1.Validator()
reader.readMessage(
value,
proto.cosmos.base.tendermint.v1beta1.Validator
.deserializeBinaryFromReader,
)
msg.addValidators(value)
break
case 3:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse()
reader.readMessage(
value,
cosmos_base_query_v1beta1_pagination_pb.PageResponse
.deserializeBinaryFromReader,
)
msg.setPagination(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter(
this,
writer,
)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getBlockHeight()
if (f !== 0) {
writer.writeInt64(1, f)
}
f = message.getValidatorsList()
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.cosmos.base.tendermint.v1beta1.Validator.serializeBinaryToWriter,
)
}
f = message.getPagination()
if (f != null) {
writer.writeMessage(
3,
f,
cosmos_base_query_v1beta1_pagination_pb.PageResponse
.serializeBinaryToWriter,
)
}
}
/**
* optional int64 block_height = 1;
* @return {number}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.getBlockHeight =
function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0))
}
/**
* @param {number} value
* @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.setBlockHeight =
function (value) {
return jspb.Message.setProto3IntField(this, 1, value)
}
/**
* repeated Validator validators = 2;
* @return {!Array<!proto.cosmos.base.tendermint.v1beta1.Validator>}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.getValidatorsList =
function () {
return /** @type{!Array<!proto.cosmos.base.tendermint.v1beta1.Validator>} */ (
jspb.Message.getRepeatedWrapperField(
this,
proto.cosmos.base.tendermint.v1beta1.Validator,
2,
)
)
}
/**
* @param {!Array<!proto.cosmos.base.tendermint.v1beta1.Validator>} value
* @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse} returns this
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.setValidatorsList =
function (value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value)
}
/**
* @param {!proto.cosmos.base.tendermint.v1beta1.Validator=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.base.tendermint.v1beta1.Validator}
*/
proto.cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.prototype.addValidators =
function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(
this,
2,
opt_value,
proto.cosmos.base.tendermint.v1beta1.Validator,
opt_index,
)
}
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.base.tendermint.v1beta1.GetLatestValida