UNPKG

@kaiachain/kss-bridges-celer

Version:
1,419 lines (1,287 loc) 140 kB
// source: sgn/farming/v1/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() { if (this) { return this; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } if (typeof self !== 'undefined') { return self; } return Function('return this')(); }.call(null)); 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_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_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); var sgn_common_v1_common_pb = require('../../../sgn/common/v1/common_pb.js'); goog.object.extend(proto, sgn_common_v1_common_pb); var sgn_farming_v1_farming_pb = require('../../../sgn/farming/v1/farming_pb.js'); goog.object.extend(proto, sgn_farming_v1_farming_pb); goog.exportSymbol('proto.sgn.farming.v1.QueryAccountInfoRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryAccountInfoResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryAccountsStakedInRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryAccountsStakedInResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryEarningsRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryEarningsResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryNumPoolsRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryNumPoolsResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryParamsRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryParamsResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryPoolRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryPoolResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryPoolsRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryPoolsResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryRewardClaimInfoRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryRewardClaimInfoResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryRewardContractRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryRewardContractResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryRewardContractsRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryRewardContractsResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryStakeInfoRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryStakeInfoResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryTokenRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryTokenResponse', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryTokensRequest', null, global); goog.exportSymbol('proto.sgn.farming.v1.QueryTokensResponse', 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.sgn.farming.v1.QueryParamsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryParamsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryParamsRequest.displayName = 'proto.sgn.farming.v1.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.sgn.farming.v1.QueryParamsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryParamsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryParamsResponse.displayName = 'proto.sgn.farming.v1.QueryParamsResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.sgn.farming.v1.QueryPoolsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryPoolsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryPoolsRequest.displayName = 'proto.sgn.farming.v1.QueryPoolsRequest'; } /** * 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.sgn.farming.v1.QueryPoolsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.sgn.farming.v1.QueryPoolsResponse.repeatedFields_, null); }; goog.inherits(proto.sgn.farming.v1.QueryPoolsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryPoolsResponse.displayName = 'proto.sgn.farming.v1.QueryPoolsResponse'; } /** * 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.sgn.farming.v1.QueryPoolRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryPoolRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryPoolRequest.displayName = 'proto.sgn.farming.v1.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.sgn.farming.v1.QueryPoolResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryPoolResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryPoolResponse.displayName = 'proto.sgn.farming.v1.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.sgn.farming.v1.QueryTokensRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryTokensRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryTokensRequest.displayName = 'proto.sgn.farming.v1.QueryTokensRequest'; } /** * 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.sgn.farming.v1.QueryTokensResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.sgn.farming.v1.QueryTokensResponse.repeatedFields_, null); }; goog.inherits(proto.sgn.farming.v1.QueryTokensResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryTokensResponse.displayName = 'proto.sgn.farming.v1.QueryTokensResponse'; } /** * 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.sgn.farming.v1.QueryTokenRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryTokenRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryTokenRequest.displayName = 'proto.sgn.farming.v1.QueryTokenRequest'; } /** * 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.sgn.farming.v1.QueryTokenResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryTokenResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryTokenResponse.displayName = 'proto.sgn.farming.v1.QueryTokenResponse'; } /** * 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.sgn.farming.v1.QueryRewardContractsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryRewardContractsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryRewardContractsRequest.displayName = 'proto.sgn.farming.v1.QueryRewardContractsRequest'; } /** * 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.sgn.farming.v1.QueryRewardContractsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.sgn.farming.v1.QueryRewardContractsResponse.repeatedFields_, null); }; goog.inherits(proto.sgn.farming.v1.QueryRewardContractsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryRewardContractsResponse.displayName = 'proto.sgn.farming.v1.QueryRewardContractsResponse'; } /** * 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.sgn.farming.v1.QueryRewardContractRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryRewardContractRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryRewardContractRequest.displayName = 'proto.sgn.farming.v1.QueryRewardContractRequest'; } /** * 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.sgn.farming.v1.QueryRewardContractResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryRewardContractResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryRewardContractResponse.displayName = 'proto.sgn.farming.v1.QueryRewardContractResponse'; } /** * 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.sgn.farming.v1.QueryEarningsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryEarningsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryEarningsRequest.displayName = 'proto.sgn.farming.v1.QueryEarningsRequest'; } /** * 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.sgn.farming.v1.QueryEarningsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryEarningsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryEarningsResponse.displayName = 'proto.sgn.farming.v1.QueryEarningsResponse'; } /** * 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.sgn.farming.v1.QueryStakeInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryStakeInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryStakeInfoRequest.displayName = 'proto.sgn.farming.v1.QueryStakeInfoRequest'; } /** * 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.sgn.farming.v1.QueryStakeInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryStakeInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryStakeInfoResponse.displayName = 'proto.sgn.farming.v1.QueryStakeInfoResponse'; } /** * 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.sgn.farming.v1.QueryAccountInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryAccountInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryAccountInfoRequest.displayName = 'proto.sgn.farming.v1.QueryAccountInfoRequest'; } /** * 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.sgn.farming.v1.QueryAccountInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryAccountInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryAccountInfoResponse.displayName = 'proto.sgn.farming.v1.QueryAccountInfoResponse'; } /** * 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.sgn.farming.v1.QueryAccountsStakedInRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryAccountsStakedInRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryAccountsStakedInRequest.displayName = 'proto.sgn.farming.v1.QueryAccountsStakedInRequest'; } /** * 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.sgn.farming.v1.QueryAccountsStakedInResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.sgn.farming.v1.QueryAccountsStakedInResponse.repeatedFields_, null); }; goog.inherits(proto.sgn.farming.v1.QueryAccountsStakedInResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryAccountsStakedInResponse.displayName = 'proto.sgn.farming.v1.QueryAccountsStakedInResponse'; } /** * 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.sgn.farming.v1.QueryNumPoolsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryNumPoolsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryNumPoolsRequest.displayName = 'proto.sgn.farming.v1.QueryNumPoolsRequest'; } /** * 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.sgn.farming.v1.QueryNumPoolsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryNumPoolsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryNumPoolsResponse.displayName = 'proto.sgn.farming.v1.QueryNumPoolsResponse'; } /** * 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.sgn.farming.v1.QueryRewardClaimInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryRewardClaimInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryRewardClaimInfoRequest.displayName = 'proto.sgn.farming.v1.QueryRewardClaimInfoRequest'; } /** * 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.sgn.farming.v1.QueryRewardClaimInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.farming.v1.QueryRewardClaimInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.farming.v1.QueryRewardClaimInfoResponse.displayName = 'proto.sgn.farming.v1.QueryRewardClaimInfoResponse'; } 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.sgn.farming.v1.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.farming.v1.QueryParamsRequest.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.sgn.farming.v1.QueryParamsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryParamsRequest.toObject = function(includeInstance, msg) { var f, obj = { }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.sgn.farming.v1.QueryParamsRequest} */ proto.sgn.farming.v1.QueryParamsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.farming.v1.QueryParamsRequest; return proto.sgn.farming.v1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.farming.v1.QueryParamsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.farming.v1.QueryParamsRequest} */ proto.sgn.farming.v1.QueryParamsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.farming.v1.QueryParamsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.farming.v1.QueryParamsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.sgn.farming.v1.QueryParamsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryParamsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; 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.sgn.farming.v1.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { return proto.sgn.farming.v1.QueryParamsResponse.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.sgn.farming.v1.QueryParamsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryParamsResponse.toObject = function(includeInstance, msg) { var f, obj = { params: (f = msg.getParams()) && sgn_farming_v1_farming_pb.Params.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.sgn.farming.v1.QueryParamsResponse} */ proto.sgn.farming.v1.QueryParamsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.farming.v1.QueryParamsResponse; return proto.sgn.farming.v1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.farming.v1.QueryParamsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.farming.v1.QueryParamsResponse} */ proto.sgn.farming.v1.QueryParamsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new sgn_farming_v1_farming_pb.Params; reader.readMessage(value,sgn_farming_v1_farming_pb.Params.deserializeBinaryFromReader); msg.setParams(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.farming.v1.QueryParamsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.farming.v1.QueryParamsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.sgn.farming.v1.QueryParamsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getParams(); if (f != null) { writer.writeMessage( 1, f, sgn_farming_v1_farming_pb.Params.serializeBinaryToWriter ); } }; /** * optional Params params = 1; * @return {?proto.sgn.farming.v1.Params} */ proto.sgn.farming.v1.QueryParamsResponse.prototype.getParams = function() { return /** @type{?proto.sgn.farming.v1.Params} */ ( jspb.Message.getWrapperField(this, sgn_farming_v1_farming_pb.Params, 1)); }; /** * @param {?proto.sgn.farming.v1.Params|undefined} value * @return {!proto.sgn.farming.v1.QueryParamsResponse} returns this */ proto.sgn.farming.v1.QueryParamsResponse.prototype.setParams = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.sgn.farming.v1.QueryParamsResponse} returns this */ proto.sgn.farming.v1.QueryParamsResponse.prototype.clearParams = function() { return this.setParams(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.sgn.farming.v1.QueryParamsResponse.prototype.hasParams = function() { return jspb.Message.getField(this, 1) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.sgn.farming.v1.QueryPoolsRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.farming.v1.QueryPoolsRequest.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.sgn.farming.v1.QueryPoolsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryPoolsRequest.toObject = function(includeInstance, msg) { var f, obj = { }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.sgn.farming.v1.QueryPoolsRequest} */ proto.sgn.farming.v1.QueryPoolsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.farming.v1.QueryPoolsRequest; return proto.sgn.farming.v1.QueryPoolsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.farming.v1.QueryPoolsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.farming.v1.QueryPoolsRequest} */ proto.sgn.farming.v1.QueryPoolsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.farming.v1.QueryPoolsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.farming.v1.QueryPoolsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.sgn.farming.v1.QueryPoolsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryPoolsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.sgn.farming.v1.QueryPoolsResponse.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.sgn.farming.v1.QueryPoolsResponse.prototype.toObject = function(opt_includeInstance) { return proto.sgn.farming.v1.QueryPoolsResponse.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.sgn.farming.v1.QueryPoolsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryPoolsResponse.toObject = function(includeInstance, msg) { var f, obj = { poolsList: jspb.Message.toObjectList(msg.getPoolsList(), sgn_farming_v1_farming_pb.FarmingPool.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.sgn.farming.v1.QueryPoolsResponse} */ proto.sgn.farming.v1.QueryPoolsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.farming.v1.QueryPoolsResponse; return proto.sgn.farming.v1.QueryPoolsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.farming.v1.QueryPoolsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.farming.v1.QueryPoolsResponse} */ proto.sgn.farming.v1.QueryPoolsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new sgn_farming_v1_farming_pb.FarmingPool; reader.readMessage(value,sgn_farming_v1_farming_pb.FarmingPool.deserializeBinaryFromReader); msg.addPools(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.farming.v1.QueryPoolsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.farming.v1.QueryPoolsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.sgn.farming.v1.QueryPoolsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryPoolsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPoolsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, sgn_farming_v1_farming_pb.FarmingPool.serializeBinaryToWriter ); } }; /** * repeated FarmingPool pools = 1; * @return {!Array<!proto.sgn.farming.v1.FarmingPool>} */ proto.sgn.farming.v1.QueryPoolsResponse.prototype.getPoolsList = function() { return /** @type{!Array<!proto.sgn.farming.v1.FarmingPool>} */ ( jspb.Message.getRepeatedWrapperField(this, sgn_farming_v1_farming_pb.FarmingPool, 1)); }; /** * @param {!Array<!proto.sgn.farming.v1.FarmingPool>} value * @return {!proto.sgn.farming.v1.QueryPoolsResponse} returns this */ proto.sgn.farming.v1.QueryPoolsResponse.prototype.setPoolsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.sgn.farming.v1.FarmingPool=} opt_value * @param {number=} opt_index * @return {!proto.sgn.farming.v1.FarmingPool} */ proto.sgn.farming.v1.QueryPoolsResponse.prototype.addPools = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sgn.farming.v1.FarmingPool, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.sgn.farming.v1.QueryPoolsResponse} returns this */ proto.sgn.farming.v1.QueryPoolsResponse.prototype.clearPoolsList = function() { return this.setPoolsList([]); }; 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.sgn.farming.v1.QueryPoolRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.farming.v1.QueryPoolRequest.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.sgn.farming.v1.QueryPoolRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryPoolRequest.toObject = function(includeInstance, msg) { var f, obj = { poolName: 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.sgn.farming.v1.QueryPoolRequest} */ proto.sgn.farming.v1.QueryPoolRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.farming.v1.QueryPoolRequest; return proto.sgn.farming.v1.QueryPoolRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.farming.v1.QueryPoolRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.farming.v1.QueryPoolRequest} */ proto.sgn.farming.v1.QueryPoolRequest.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.setPoolName(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.farming.v1.QueryPoolRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.farming.v1.QueryPoolRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.sgn.farming.v1.QueryPoolRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryPoolRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPoolName(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string pool_name = 1; * @return {string} */ proto.sgn.farming.v1.QueryPoolRequest.prototype.getPoolName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.sgn.farming.v1.QueryPoolRequest} returns this */ proto.sgn.farming.v1.QueryPoolRequest.prototype.setPoolName = 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.sgn.farming.v1.QueryPoolResponse.prototype.toObject = function(opt_includeInstance) { return proto.sgn.farming.v1.QueryPoolResponse.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.sgn.farming.v1.QueryPoolResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryPoolResponse.toObject = function(includeInstance, msg) { var f, obj = { pool: (f = msg.getPool()) && sgn_farming_v1_farming_pb.FarmingPool.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.sgn.farming.v1.QueryPoolResponse} */ proto.sgn.farming.v1.QueryPoolResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.farming.v1.QueryPoolResponse; return proto.sgn.farming.v1.QueryPoolResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.farming.v1.QueryPoolResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.farming.v1.QueryPoolResponse} */ proto.sgn.farming.v1.QueryPoolResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new sgn_farming_v1_farming_pb.FarmingPool; reader.readMessage(value,sgn_farming_v1_farming_pb.FarmingPool.deserializeBinaryFromReader); msg.setPool(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.farming.v1.QueryPoolResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.farming.v1.QueryPoolResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.sgn.farming.v1.QueryPoolResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.farming.v1.QueryPoolResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPool(); if (f != null) { writer.writeMessage( 1, f, sgn_farming_v1_farming_pb.FarmingPool.serializeBinaryToWriter ); } }; /** * optional FarmingPool pool = 1; * @return {?proto.sgn.farming.v1.FarmingPool} */ proto.sgn.farming.v1.QueryPoolResponse.prototype.getPool = function() { return /** @type{?proto.sgn.farming.v1.FarmingPool} */ ( jspb.Message.getWrapperField(this, sgn_farming_v1_farming_pb.FarmingPool, 1)); }; /** * @param {?proto.sgn.farming.v1.FarmingPool|undefined} value * @return {!proto.sgn.farming.v1.QueryPoolResponse} returns this */ proto.sgn.farming.v1.QueryPoolResponse.prototype.setPool = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.sgn.farming.v1.QueryPoolResponse} returns this */ proto.sgn.farming.v1.QueryPoolResponse.prototype.clearPool = function() { return this.setPool(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.sgn.farming.v1.QueryPoolResponse.prototype.hasPool = function() { return jspb.Message.getField(this, 1) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.sgn.farming.v1.QueryTokensRequest.prototype.toObject = function(opt_includeInstance) { re