@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
1,296 lines (1,195 loc) • 195 kB
JavaScript
// source: cosmos/staking/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 cosmos_base_query_v1beta1_pagination_pb = require('../../../cosmos/base/query/v1beta1/pagination_pb.js');
goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb);
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
var google_api_annotations_pb = require('../../../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_pb);
var cosmos_staking_v1beta1_staking_pb = require('../../../cosmos/staking/v1beta1/staking_pb.js');
goog.object.extend(proto, cosmos_staking_v1beta1_staking_pb);
var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js');
goog.object.extend(proto, cosmos_proto_cosmos_pb);
var cosmos_query_v1_query_pb = require('../../../cosmos/query/v1/query_pb.js');
goog.object.extend(proto, cosmos_query_v1_query_pb);
var amino_amino_pb = require('../../../amino/amino_pb.js');
goog.object.extend(proto, amino_amino_pb);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegationRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegationResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryHistoricalInfoRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryParamsRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryParamsResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryPoolRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryPoolResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryRedelegationsRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryRedelegationsResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryValidatorRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryValidatorResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryValidatorsRequest', null, global);
goog.exportSymbol('proto.cosmos.staking.v1beta1.QueryValidatorsResponse', 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.staking.v1beta1.QueryValidatorsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryValidatorsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryValidatorsRequest';
}
/**
* 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.staking.v1beta1.QueryValidatorsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.staking.v1beta1.QueryValidatorsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryValidatorsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryValidatorsResponse';
}
/**
* 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.staking.v1beta1.QueryValidatorRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryValidatorRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryValidatorRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryValidatorRequest';
}
/**
* 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.staking.v1beta1.QueryValidatorResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryValidatorResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryValidatorResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryValidatorResponse';
}
/**
* 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.staking.v1beta1.QueryValidatorDelegationsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest';
}
/**
* 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.staking.v1beta1.QueryValidatorDelegationsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse';
}
/**
* 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.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest';
}
/**
* 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.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse';
}
/**
* 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.staking.v1beta1.QueryDelegationRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegationRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegationRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegationRequest';
}
/**
* 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.staking.v1beta1.QueryDelegationResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegationResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegationResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegationResponse';
}
/**
* 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.staking.v1beta1.QueryUnbondingDelegationRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest';
}
/**
* 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.staking.v1beta1.QueryUnbondingDelegationResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse';
}
/**
* 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.staking.v1beta1.QueryDelegatorDelegationsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest';
}
/**
* 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.staking.v1beta1.QueryDelegatorDelegationsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse';
}
/**
* 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.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest';
}
/**
* 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.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse';
}
/**
* 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.staking.v1beta1.QueryRedelegationsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryRedelegationsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryRedelegationsRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryRedelegationsRequest';
}
/**
* 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.staking.v1beta1.QueryRedelegationsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.staking.v1beta1.QueryRedelegationsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryRedelegationsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryRedelegationsResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryRedelegationsResponse';
}
/**
* 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.staking.v1beta1.QueryDelegatorValidatorsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest';
}
/**
* 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.staking.v1beta1.QueryDelegatorValidatorsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse';
}
/**
* 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.staking.v1beta1.QueryDelegatorValidatorRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest';
}
/**
* 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.staking.v1beta1.QueryDelegatorValidatorResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse';
}
/**
* 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.staking.v1beta1.QueryHistoricalInfoRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryHistoricalInfoRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryHistoricalInfoRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryHistoricalInfoRequest';
}
/**
* 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.staking.v1beta1.QueryHistoricalInfoResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse';
}
/**
* 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.staking.v1beta1.QueryPoolRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryPoolRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryPoolRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryPoolRequest';
}
/**
* 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.staking.v1beta1.QueryPoolResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryPoolResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryPoolResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryPoolResponse';
}
/**
* 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.staking.v1beta1.QueryParamsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryParamsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryParamsRequest.displayName = 'proto.cosmos.staking.v1beta1.QueryParamsRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.staking.v1beta1.QueryParamsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.staking.v1beta1.QueryParamsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.staking.v1beta1.QueryParamsResponse.displayName = 'proto.cosmos.staking.v1beta1.QueryParamsResponse';
}
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.staking.v1beta1.QueryValidatorsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.staking.v1beta1.QueryValidatorsRequest.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.staking.v1beta1.QueryValidatorsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
status: jspb.Message.getFieldWithDefault(msg, 1, ""),
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.staking.v1beta1.QueryValidatorsRequest}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.staking.v1beta1.QueryValidatorsRequest;
return proto.cosmos.staking.v1beta1.QueryValidatorsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorsRequest}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.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.setStatus(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.staking.v1beta1.QueryValidatorsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.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.staking.v1beta1.QueryValidatorsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getStatus();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter
);
}
};
/**
* optional string status = 1;
* @return {string}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.prototype.getStatus = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorsRequest} returns this
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.prototype.setStatus = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.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.staking.v1beta1.QueryValidatorsRequest} returns this
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.prototype.setPagination = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorsRequest} returns this
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.prototype.clearPagination = function() {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsRequest.prototype.hasPagination = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.staking.v1beta1.QueryValidatorsResponse.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.staking.v1beta1.QueryValidatorsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
validatorsList: jspb.Message.toObjectList(msg.getValidatorsList(),
cosmos_staking_v1beta1_staking_pb.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.staking.v1beta1.QueryValidatorsResponse}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.staking.v1beta1.QueryValidatorsResponse;
return proto.cosmos.staking.v1beta1.QueryValidatorsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorsResponse}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_staking_v1beta1_staking_pb.Validator;
reader.readMessage(value,cosmos_staking_v1beta1_staking_pb.Validator.deserializeBinaryFromReader);
msg.addValidators(value);
break;
case 2:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse;
reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader);
msg.setPagination(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.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.staking.v1beta1.QueryValidatorsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValidatorsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
cosmos_staking_v1beta1_staking_pb.Validator.serializeBinaryToWriter
);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter
);
}
};
/**
* repeated Validator validators = 1;
* @return {!Array<!proto.cosmos.staking.v1beta1.Validator>}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.getValidatorsList = function() {
return /** @type{!Array<!proto.cosmos.staking.v1beta1.Validator>} */ (
jspb.Message.getRepeatedWrapperField(this, cosmos_staking_v1beta1_staking_pb.Validator, 1));
};
/**
* @param {!Array<!proto.cosmos.staking.v1beta1.Validator>} value
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorsResponse} returns this
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.setValidatorsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.cosmos.staking.v1beta1.Validator=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.staking.v1beta1.Validator}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.addValidators = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.staking.v1beta1.Validator, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorsResponse} returns this
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.clearValidatorsList = function() {
return this.setValidatorsList([]);
};
/**
* optional cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return {?proto.cosmos.base.query.v1beta1.PageResponse}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.getPagination = function() {
return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ (
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2));
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorsResponse} returns this
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.setPagination = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorsResponse} returns this
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.clearPagination = function() {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.staking.v1beta1.QueryValidatorsResponse.prototype.hasPagination = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.staking.v1beta1.QueryValidatorRequest.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.staking.v1beta1.QueryValidatorRequest.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.staking.v1beta1.QueryValidatorRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.staking.v1beta1.QueryValidatorRequest.toObject = function(includeInstance, msg) {
var f, obj = {
validatorAddr: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorRequest}
*/
proto.cosmos.staking.v1beta1.QueryValidatorRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.staking.v1beta1.QueryValidatorRequest;
return proto.cosmos.staking.v1beta1.QueryValidatorRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorRequest}
*/
proto.cosmos.staking.v1beta1.QueryValidatorRequest.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.setValidatorAddr(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.staking.v1beta1.QueryValidatorRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.staking.v1beta1.QueryValidatorRequest.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.staking.v1beta1.QueryValidatorRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.staking.v1beta1.QueryValidatorRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValidatorAddr();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string validator_addr = 1;
* @return {string}
*/
proto.cosmos.staking.v1beta1.QueryValidatorRequest.prototype.getValidatorAddr = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorRequest} returns this
*/
proto.cosmos.staking.v1beta1.QueryValidatorRequest.prototype.setValidatorAddr = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.staking.v1beta1.QueryValidatorResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.staking.v1beta1.QueryValidatorResponse.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.staking.v1beta1.QueryValidatorResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.staking.v1beta1.QueryValidatorResponse.toObject = function(includeInstance, msg) {
var f, obj = {
validator: (f = msg.getValidator()) && cosmos_staking_v1beta1_staking_pb.Validator.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.staking.v1beta1.QueryValidatorResponse}
*/
proto.cosmos.staking.v1beta1.QueryValidatorResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.staking.v1beta1.QueryValidatorResponse;
return proto.cosmos.staking.v1beta1.QueryValidatorResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.staking.v1beta1.QueryValidatorResponse}
*/
proto.cosmos.staking.v1beta1.QueryValidatorResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_staking_v1beta1_staking_pb.Validator;
reader.readMessage(value,cosmos_staking_v1beta1_staking_pb.Validator.deserializeBinaryFromReader);
msg.setValidator(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.staking.v1beta1.QueryValidatorResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.staking.v1beta1.QueryValidatorResponse.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.staking.v1beta1.QueryValidatorResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.staking.v1beta1.QueryValidatorResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValidator();
if (f != null) {
writer.writeMessage(
1,
f,
cosmos_staking_v1beta1_staking_pb.Validator.serializeBinaryToWriter
);
}
};
/**
* optional Validator validator = 1;
* @return {?proto.cosmos.staking.v1beta1.Validator}
*/
proto.cosmos.staking.v1beta1.QueryValidatorResponse.prototype.getValidator = function() {
return /** @type{?proto.cosmos.staking.v1beta1.Validator} */ (
jspb.Message.getWrapperField(this, cosmos_staking_v1beta1_staking_pb.Validator, 1));
};
/**
* @param {?proto.cosmos.staking.v1beta1.Validator|undefined} value
*