UNPKG

@kaiachain/kss-bridges-celer

Version:
1,417 lines (1,270 loc) 121 kB
// source: sgn/pegbridge/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 sgn_common_v1_common_pb = require('../../../sgn/common/v1/common_pb.js'); goog.object.extend(proto, sgn_common_v1_common_pb); var sgn_pegbridge_v1_pegbridge_pb = require('../../../sgn/pegbridge/v1/pegbridge_pb.js'); goog.object.extend(proto, sgn_pegbridge_v1_pegbridge_pb); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryBurnInfoRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryBurnInfoResponse', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryConfigRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryDepositInfoRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryDepositInfoResponse', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesResponse', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryFeeClaimInfoRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryFeeClaimInfoResponse', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryMintInfoRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryMintInfoResponse', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryParamsRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryParamsResponse', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryRefundClaimInfoRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryRefundClaimInfoResponse', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QuerySupplyInfoRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QuerySupplyInfoResponse', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryWithdrawInfoRequest', null, global); goog.exportSymbol('proto.sgn.pegbridge.v1.QueryWithdrawInfoResponse', 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.pegbridge.v1.QueryParamsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryParamsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryParamsRequest.displayName = 'proto.sgn.pegbridge.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.pegbridge.v1.QueryParamsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryParamsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryParamsResponse.displayName = 'proto.sgn.pegbridge.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.pegbridge.v1.QueryConfigRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryConfigRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryConfigRequest.displayName = 'proto.sgn.pegbridge.v1.QueryConfigRequest'; } /** * 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.pegbridge.v1.QueryOrigPeggedPairsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.displayName = 'proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest'; } /** * 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.pegbridge.v1.QueryOrigPeggedPairsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.repeatedFields_, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.displayName = 'proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse'; } /** * 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.pegbridge.v1.QueryEstimatedAmountFeesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.displayName = 'proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest'; } /** * 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.pegbridge.v1.QueryEstimatedAmountFeesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesResponse.displayName = 'proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesResponse'; } /** * 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.pegbridge.v1.QueryDepositInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryDepositInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryDepositInfoRequest.displayName = 'proto.sgn.pegbridge.v1.QueryDepositInfoRequest'; } /** * 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.pegbridge.v1.QueryDepositInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryDepositInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryDepositInfoResponse.displayName = 'proto.sgn.pegbridge.v1.QueryDepositInfoResponse'; } /** * 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.pegbridge.v1.QueryWithdrawInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryWithdrawInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryWithdrawInfoRequest.displayName = 'proto.sgn.pegbridge.v1.QueryWithdrawInfoRequest'; } /** * 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.pegbridge.v1.QueryWithdrawInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryWithdrawInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryWithdrawInfoResponse.displayName = 'proto.sgn.pegbridge.v1.QueryWithdrawInfoResponse'; } /** * 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.pegbridge.v1.QueryMintInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryMintInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryMintInfoRequest.displayName = 'proto.sgn.pegbridge.v1.QueryMintInfoRequest'; } /** * 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.pegbridge.v1.QueryMintInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryMintInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryMintInfoResponse.displayName = 'proto.sgn.pegbridge.v1.QueryMintInfoResponse'; } /** * 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.pegbridge.v1.QueryBurnInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryBurnInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryBurnInfoRequest.displayName = 'proto.sgn.pegbridge.v1.QueryBurnInfoRequest'; } /** * 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.pegbridge.v1.QueryBurnInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryBurnInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryBurnInfoResponse.displayName = 'proto.sgn.pegbridge.v1.QueryBurnInfoResponse'; } /** * 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.pegbridge.v1.QueryFeeClaimInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryFeeClaimInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryFeeClaimInfoRequest.displayName = 'proto.sgn.pegbridge.v1.QueryFeeClaimInfoRequest'; } /** * 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.pegbridge.v1.QueryFeeClaimInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryFeeClaimInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryFeeClaimInfoResponse.displayName = 'proto.sgn.pegbridge.v1.QueryFeeClaimInfoResponse'; } /** * 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.pegbridge.v1.QuerySupplyInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QuerySupplyInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QuerySupplyInfoRequest.displayName = 'proto.sgn.pegbridge.v1.QuerySupplyInfoRequest'; } /** * 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.pegbridge.v1.QuerySupplyInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QuerySupplyInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QuerySupplyInfoResponse.displayName = 'proto.sgn.pegbridge.v1.QuerySupplyInfoResponse'; } /** * 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.pegbridge.v1.QueryRefundClaimInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryRefundClaimInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryRefundClaimInfoRequest.displayName = 'proto.sgn.pegbridge.v1.QueryRefundClaimInfoRequest'; } /** * 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.pegbridge.v1.QueryRefundClaimInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.pegbridge.v1.QueryRefundClaimInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.pegbridge.v1.QueryRefundClaimInfoResponse.displayName = 'proto.sgn.pegbridge.v1.QueryRefundClaimInfoResponse'; } 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.pegbridge.v1.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.pegbridge.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.pegbridge.v1.QueryParamsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.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.pegbridge.v1.QueryParamsRequest} */ proto.sgn.pegbridge.v1.QueryParamsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.pegbridge.v1.QueryParamsRequest; return proto.sgn.pegbridge.v1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.pegbridge.v1.QueryParamsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.pegbridge.v1.QueryParamsRequest} */ proto.sgn.pegbridge.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.pegbridge.v1.QueryParamsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.pegbridge.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.pegbridge.v1.QueryParamsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.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.pegbridge.v1.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { return proto.sgn.pegbridge.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.pegbridge.v1.QueryParamsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryParamsResponse.toObject = function(includeInstance, msg) { var f, obj = { params: (f = msg.getParams()) && sgn_pegbridge_v1_pegbridge_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.pegbridge.v1.QueryParamsResponse} */ proto.sgn.pegbridge.v1.QueryParamsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.pegbridge.v1.QueryParamsResponse; return proto.sgn.pegbridge.v1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.pegbridge.v1.QueryParamsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.pegbridge.v1.QueryParamsResponse} */ proto.sgn.pegbridge.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_pegbridge_v1_pegbridge_pb.Params; reader.readMessage(value,sgn_pegbridge_v1_pegbridge_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.pegbridge.v1.QueryParamsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.pegbridge.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.pegbridge.v1.QueryParamsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getParams(); if (f != null) { writer.writeMessage( 1, f, sgn_pegbridge_v1_pegbridge_pb.Params.serializeBinaryToWriter ); } }; /** * optional Params params = 1; * @return {?proto.sgn.pegbridge.v1.Params} */ proto.sgn.pegbridge.v1.QueryParamsResponse.prototype.getParams = function() { return /** @type{?proto.sgn.pegbridge.v1.Params} */ ( jspb.Message.getWrapperField(this, sgn_pegbridge_v1_pegbridge_pb.Params, 1)); }; /** * @param {?proto.sgn.pegbridge.v1.Params|undefined} value * @return {!proto.sgn.pegbridge.v1.QueryParamsResponse} returns this */ proto.sgn.pegbridge.v1.QueryParamsResponse.prototype.setParams = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.sgn.pegbridge.v1.QueryParamsResponse} returns this */ proto.sgn.pegbridge.v1.QueryParamsResponse.prototype.clearParams = function() { return this.setParams(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.sgn.pegbridge.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.pegbridge.v1.QueryConfigRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.pegbridge.v1.QueryConfigRequest.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.pegbridge.v1.QueryConfigRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryConfigRequest.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.pegbridge.v1.QueryConfigRequest} */ proto.sgn.pegbridge.v1.QueryConfigRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.pegbridge.v1.QueryConfigRequest; return proto.sgn.pegbridge.v1.QueryConfigRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.pegbridge.v1.QueryConfigRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.pegbridge.v1.QueryConfigRequest} */ proto.sgn.pegbridge.v1.QueryConfigRequest.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.pegbridge.v1.QueryConfigRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.pegbridge.v1.QueryConfigRequest.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.pegbridge.v1.QueryConfigRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryConfigRequest.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.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.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.pegbridge.v1.QueryOrigPeggedPairsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.toObject = function(includeInstance, msg) { var f, obj = { orig: (f = msg.getOrig()) && sgn_common_v1_common_pb.ContractInfo.toObject(includeInstance, f), pegged: (f = msg.getPegged()) && sgn_common_v1_common_pb.ContractInfo.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.pegbridge.v1.QueryOrigPeggedPairsRequest} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest; return proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new sgn_common_v1_common_pb.ContractInfo; reader.readMessage(value,sgn_common_v1_common_pb.ContractInfo.deserializeBinaryFromReader); msg.setOrig(value); break; case 2: var value = new sgn_common_v1_common_pb.ContractInfo; reader.readMessage(value,sgn_common_v1_common_pb.ContractInfo.deserializeBinaryFromReader); msg.setPegged(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.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.pegbridge.v1.QueryOrigPeggedPairsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getOrig(); if (f != null) { writer.writeMessage( 1, f, sgn_common_v1_common_pb.ContractInfo.serializeBinaryToWriter ); } f = message.getPegged(); if (f != null) { writer.writeMessage( 2, f, sgn_common_v1_common_pb.ContractInfo.serializeBinaryToWriter ); } }; /** * optional sgn.common.v1.ContractInfo orig = 1; * @return {?proto.sgn.common.v1.ContractInfo} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.getOrig = function() { return /** @type{?proto.sgn.common.v1.ContractInfo} */ ( jspb.Message.getWrapperField(this, sgn_common_v1_common_pb.ContractInfo, 1)); }; /** * @param {?proto.sgn.common.v1.ContractInfo|undefined} value * @return {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest} returns this */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.setOrig = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest} returns this */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.clearOrig = function() { return this.setOrig(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.hasOrig = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional sgn.common.v1.ContractInfo pegged = 2; * @return {?proto.sgn.common.v1.ContractInfo} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.getPegged = function() { return /** @type{?proto.sgn.common.v1.ContractInfo} */ ( jspb.Message.getWrapperField(this, sgn_common_v1_common_pb.ContractInfo, 2)); }; /** * @param {?proto.sgn.common.v1.ContractInfo|undefined} value * @return {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest} returns this */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.setPegged = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest} returns this */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.clearPegged = function() { return this.setPegged(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsRequest.prototype.hasPegged = function() { return jspb.Message.getField(this, 2) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.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.pegbridge.v1.QueryOrigPeggedPairsResponse.prototype.toObject = function(opt_includeInstance) { return proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.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.pegbridge.v1.QueryOrigPeggedPairsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.toObject = function(includeInstance, msg) { var f, obj = { pairsList: jspb.Message.toObjectList(msg.getPairsList(), sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair.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.pegbridge.v1.QueryOrigPeggedPairsResponse} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse; return proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair; reader.readMessage(value,sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair.deserializeBinaryFromReader); msg.addPairs(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.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.pegbridge.v1.QueryOrigPeggedPairsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPairsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair.serializeBinaryToWriter ); } }; /** * repeated OrigPeggedPair pairs = 1; * @return {!Array<!proto.sgn.pegbridge.v1.OrigPeggedPair>} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.prototype.getPairsList = function() { return /** @type{!Array<!proto.sgn.pegbridge.v1.OrigPeggedPair>} */ ( jspb.Message.getRepeatedWrapperField(this, sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair, 1)); }; /** * @param {!Array<!proto.sgn.pegbridge.v1.OrigPeggedPair>} value * @return {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse} returns this */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.prototype.setPairsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.sgn.pegbridge.v1.OrigPeggedPair=} opt_value * @param {number=} opt_index * @return {!proto.sgn.pegbridge.v1.OrigPeggedPair} */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.prototype.addPairs = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sgn.pegbridge.v1.OrigPeggedPair, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse} returns this */ proto.sgn.pegbridge.v1.QueryOrigPeggedPairsResponse.prototype.clearPairsList = function() { return this.setPairsList([]); }; 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.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.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.pegbridge.v1.QueryEstimatedAmountFeesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.toObject = function(includeInstance, msg) { var f, obj = { pair: (f = msg.getPair()) && sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair.toObject(includeInstance, f), requestAmount: jspb.Message.getFieldWithDefault(msg, 2, ""), mint: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; 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.pegbridge.v1.QueryEstimatedAmountFeesRequest} */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest; return proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest} */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair; reader.readMessage(value,sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair.deserializeBinaryFromReader); msg.setPair(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setRequestAmount(value); break; case 3: var value = /** @type {boolean} */ (reader.readBool()); msg.setMint(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.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.pegbridge.v1.QueryEstimatedAmountFeesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPair(); if (f != null) { writer.writeMessage( 1, f, sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair.serializeBinaryToWriter ); } f = message.getRequestAmount(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getMint(); if (f) { writer.writeBool( 3, f ); } }; /** * optional OrigPeggedPair pair = 1; * @return {?proto.sgn.pegbridge.v1.OrigPeggedPair} */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.getPair = function() { return /** @type{?proto.sgn.pegbridge.v1.OrigPeggedPair} */ ( jspb.Message.getWrapperField(this, sgn_pegbridge_v1_pegbridge_pb.OrigPeggedPair, 1)); }; /** * @param {?proto.sgn.pegbridge.v1.OrigPeggedPair|undefined} value * @return {!proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest} returns this */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.setPair = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest} returns this */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.clearPair = function() { return this.setPair(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.hasPair = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional string request_amount = 2; * @return {string} */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.getRequestAmount = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest} returns this */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.setRequestAmount = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional bool mint = 3; * @return {boolean} */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.getMint = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** * @param {boolean} value * @return {!proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest} returns this */ proto.sgn.pegbridge.v1.QueryEstimatedAmountFeesRequest.prototype.setMint = function(value) { return jspb.Message.setProto3BooleanField(this, 3, value); }