UNPKG

@kaiachain/kss-bridges-celer

Version:
1,435 lines (1,274 loc) 96.7 kB
// source: sgn/message/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_message_v1_message_pb = require('../../../sgn/message/v1/message_pb.js'); goog.object.extend(proto, sgn_message_v1_message_pb); goog.exportSymbol('proto.sgn.message.v1.IsMessageActiveRequest', null, global); goog.exportSymbol('proto.sgn.message.v1.IsMessageActiveResponse', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryExecutionContextsRequest', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryExecutionContextsResponse', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryFeeClaimInfoRequest', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryFeeClaimInfoResponse', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryMessageBusRequest', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryMessageBusResponse', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryMessageExistsRequest', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryMessageExistsResponse', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryMessageRequest', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryMessageResponse', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryParamsRequest', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryParamsResponse', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryRefundExistsRequest', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryRefundExistsResponse', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryTransferRequest', null, global); goog.exportSymbol('proto.sgn.message.v1.QueryTransferResponse', 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.message.v1.QueryParamsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryParamsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryParamsRequest.displayName = 'proto.sgn.message.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.message.v1.QueryParamsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryParamsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryParamsResponse.displayName = 'proto.sgn.message.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.message.v1.QueryExecutionContextsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.sgn.message.v1.QueryExecutionContextsRequest.repeatedFields_, null); }; goog.inherits(proto.sgn.message.v1.QueryExecutionContextsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryExecutionContextsRequest.displayName = 'proto.sgn.message.v1.QueryExecutionContextsRequest'; } /** * 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.message.v1.QueryExecutionContextsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.sgn.message.v1.QueryExecutionContextsResponse.repeatedFields_, null); }; goog.inherits(proto.sgn.message.v1.QueryExecutionContextsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryExecutionContextsResponse.displayName = 'proto.sgn.message.v1.QueryExecutionContextsResponse'; } /** * 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.message.v1.IsMessageActiveRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.IsMessageActiveRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.IsMessageActiveRequest.displayName = 'proto.sgn.message.v1.IsMessageActiveRequest'; } /** * 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.message.v1.IsMessageActiveResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.IsMessageActiveResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.IsMessageActiveResponse.displayName = 'proto.sgn.message.v1.IsMessageActiveResponse'; } /** * 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.message.v1.QueryMessageExistsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryMessageExistsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryMessageExistsRequest.displayName = 'proto.sgn.message.v1.QueryMessageExistsRequest'; } /** * 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.message.v1.QueryMessageExistsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryMessageExistsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryMessageExistsResponse.displayName = 'proto.sgn.message.v1.QueryMessageExistsResponse'; } /** * 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.message.v1.QueryRefundExistsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryRefundExistsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryRefundExistsRequest.displayName = 'proto.sgn.message.v1.QueryRefundExistsRequest'; } /** * 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.message.v1.QueryRefundExistsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryRefundExistsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryRefundExistsResponse.displayName = 'proto.sgn.message.v1.QueryRefundExistsResponse'; } /** * 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.message.v1.QueryMessageRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryMessageRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryMessageRequest.displayName = 'proto.sgn.message.v1.QueryMessageRequest'; } /** * 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.message.v1.QueryMessageResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryMessageResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryMessageResponse.displayName = 'proto.sgn.message.v1.QueryMessageResponse'; } /** * 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.message.v1.QueryTransferRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryTransferRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryTransferRequest.displayName = 'proto.sgn.message.v1.QueryTransferRequest'; } /** * 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.message.v1.QueryTransferResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryTransferResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryTransferResponse.displayName = 'proto.sgn.message.v1.QueryTransferResponse'; } /** * 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.message.v1.QueryMessageBusRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryMessageBusRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryMessageBusRequest.displayName = 'proto.sgn.message.v1.QueryMessageBusRequest'; } /** * 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.message.v1.QueryMessageBusResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryMessageBusResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryMessageBusResponse.displayName = 'proto.sgn.message.v1.QueryMessageBusResponse'; } /** * 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.message.v1.QueryFeeClaimInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryFeeClaimInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryFeeClaimInfoRequest.displayName = 'proto.sgn.message.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.message.v1.QueryFeeClaimInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.sgn.message.v1.QueryFeeClaimInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.sgn.message.v1.QueryFeeClaimInfoResponse.displayName = 'proto.sgn.message.v1.QueryFeeClaimInfoResponse'; } 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.message.v1.QueryParamsRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.message.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.message.v1.QueryParamsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.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.message.v1.QueryParamsRequest} */ proto.sgn.message.v1.QueryParamsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.message.v1.QueryParamsRequest; return proto.sgn.message.v1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.message.v1.QueryParamsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.message.v1.QueryParamsRequest} */ proto.sgn.message.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.message.v1.QueryParamsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.message.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.message.v1.QueryParamsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.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.message.v1.QueryParamsResponse.prototype.toObject = function(opt_includeInstance) { return proto.sgn.message.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.message.v1.QueryParamsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.QueryParamsResponse.toObject = function(includeInstance, msg) { var f, obj = { params: (f = msg.getParams()) && sgn_message_v1_message_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.message.v1.QueryParamsResponse} */ proto.sgn.message.v1.QueryParamsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.message.v1.QueryParamsResponse; return proto.sgn.message.v1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.message.v1.QueryParamsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.message.v1.QueryParamsResponse} */ proto.sgn.message.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_message_v1_message_pb.Params; reader.readMessage(value,sgn_message_v1_message_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.message.v1.QueryParamsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.message.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.message.v1.QueryParamsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.QueryParamsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getParams(); if (f != null) { writer.writeMessage( 1, f, sgn_message_v1_message_pb.Params.serializeBinaryToWriter ); } }; /** * optional Params params = 1; * @return {?proto.sgn.message.v1.Params} */ proto.sgn.message.v1.QueryParamsResponse.prototype.getParams = function() { return /** @type{?proto.sgn.message.v1.Params} */ ( jspb.Message.getWrapperField(this, sgn_message_v1_message_pb.Params, 1)); }; /** * @param {?proto.sgn.message.v1.Params|undefined} value * @return {!proto.sgn.message.v1.QueryParamsResponse} returns this */ proto.sgn.message.v1.QueryParamsResponse.prototype.setParams = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.sgn.message.v1.QueryParamsResponse} returns this */ proto.sgn.message.v1.QueryParamsResponse.prototype.clearParams = function() { return this.setParams(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.sgn.message.v1.QueryParamsResponse.prototype.hasParams = function() { return jspb.Message.getField(this, 1) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.sgn.message.v1.QueryExecutionContextsRequest.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.message.v1.QueryExecutionContextsRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.message.v1.QueryExecutionContextsRequest.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.message.v1.QueryExecutionContextsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.QueryExecutionContextsRequest.toObject = function(includeInstance, msg) { var f, obj = { contractInfosList: jspb.Message.toObjectList(msg.getContractInfosList(), sgn_common_v1_common_pb.ContractInfo.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.message.v1.QueryExecutionContextsRequest} */ proto.sgn.message.v1.QueryExecutionContextsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.message.v1.QueryExecutionContextsRequest; return proto.sgn.message.v1.QueryExecutionContextsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.message.v1.QueryExecutionContextsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.message.v1.QueryExecutionContextsRequest} */ proto.sgn.message.v1.QueryExecutionContextsRequest.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.addContractInfos(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.message.v1.QueryExecutionContextsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.message.v1.QueryExecutionContextsRequest.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.message.v1.QueryExecutionContextsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.QueryExecutionContextsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getContractInfosList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, sgn_common_v1_common_pb.ContractInfo.serializeBinaryToWriter ); } }; /** * repeated sgn.common.v1.ContractInfo contract_infos = 1; * @return {!Array<!proto.sgn.common.v1.ContractInfo>} */ proto.sgn.message.v1.QueryExecutionContextsRequest.prototype.getContractInfosList = function() { return /** @type{!Array<!proto.sgn.common.v1.ContractInfo>} */ ( jspb.Message.getRepeatedWrapperField(this, sgn_common_v1_common_pb.ContractInfo, 1)); }; /** * @param {!Array<!proto.sgn.common.v1.ContractInfo>} value * @return {!proto.sgn.message.v1.QueryExecutionContextsRequest} returns this */ proto.sgn.message.v1.QueryExecutionContextsRequest.prototype.setContractInfosList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.sgn.common.v1.ContractInfo=} opt_value * @param {number=} opt_index * @return {!proto.sgn.common.v1.ContractInfo} */ proto.sgn.message.v1.QueryExecutionContextsRequest.prototype.addContractInfos = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sgn.common.v1.ContractInfo, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.sgn.message.v1.QueryExecutionContextsRequest} returns this */ proto.sgn.message.v1.QueryExecutionContextsRequest.prototype.clearContractInfosList = function() { return this.setContractInfosList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.sgn.message.v1.QueryExecutionContextsResponse.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.message.v1.QueryExecutionContextsResponse.prototype.toObject = function(opt_includeInstance) { return proto.sgn.message.v1.QueryExecutionContextsResponse.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.message.v1.QueryExecutionContextsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.QueryExecutionContextsResponse.toObject = function(includeInstance, msg) { var f, obj = { executionContextsList: jspb.Message.toObjectList(msg.getExecutionContextsList(), sgn_message_v1_message_pb.ExecutionContext.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.message.v1.QueryExecutionContextsResponse} */ proto.sgn.message.v1.QueryExecutionContextsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.message.v1.QueryExecutionContextsResponse; return proto.sgn.message.v1.QueryExecutionContextsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.message.v1.QueryExecutionContextsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.message.v1.QueryExecutionContextsResponse} */ proto.sgn.message.v1.QueryExecutionContextsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new sgn_message_v1_message_pb.ExecutionContext; reader.readMessage(value,sgn_message_v1_message_pb.ExecutionContext.deserializeBinaryFromReader); msg.addExecutionContexts(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.message.v1.QueryExecutionContextsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.message.v1.QueryExecutionContextsResponse.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.message.v1.QueryExecutionContextsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.QueryExecutionContextsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getExecutionContextsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, sgn_message_v1_message_pb.ExecutionContext.serializeBinaryToWriter ); } }; /** * repeated ExecutionContext execution_contexts = 1; * @return {!Array<!proto.sgn.message.v1.ExecutionContext>} */ proto.sgn.message.v1.QueryExecutionContextsResponse.prototype.getExecutionContextsList = function() { return /** @type{!Array<!proto.sgn.message.v1.ExecutionContext>} */ ( jspb.Message.getRepeatedWrapperField(this, sgn_message_v1_message_pb.ExecutionContext, 1)); }; /** * @param {!Array<!proto.sgn.message.v1.ExecutionContext>} value * @return {!proto.sgn.message.v1.QueryExecutionContextsResponse} returns this */ proto.sgn.message.v1.QueryExecutionContextsResponse.prototype.setExecutionContextsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.sgn.message.v1.ExecutionContext=} opt_value * @param {number=} opt_index * @return {!proto.sgn.message.v1.ExecutionContext} */ proto.sgn.message.v1.QueryExecutionContextsResponse.prototype.addExecutionContexts = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sgn.message.v1.ExecutionContext, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.sgn.message.v1.QueryExecutionContextsResponse} returns this */ proto.sgn.message.v1.QueryExecutionContextsResponse.prototype.clearExecutionContextsList = function() { return this.setExecutionContextsList([]); }; 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.message.v1.IsMessageActiveRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.message.v1.IsMessageActiveRequest.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.message.v1.IsMessageActiveRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.IsMessageActiveRequest.toObject = function(includeInstance, msg) { var f, obj = { messageId: 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.message.v1.IsMessageActiveRequest} */ proto.sgn.message.v1.IsMessageActiveRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.message.v1.IsMessageActiveRequest; return proto.sgn.message.v1.IsMessageActiveRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.message.v1.IsMessageActiveRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.message.v1.IsMessageActiveRequest} */ proto.sgn.message.v1.IsMessageActiveRequest.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.setMessageId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.message.v1.IsMessageActiveRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.message.v1.IsMessageActiveRequest.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.message.v1.IsMessageActiveRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.IsMessageActiveRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMessageId(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string message_id = 1; * @return {string} */ proto.sgn.message.v1.IsMessageActiveRequest.prototype.getMessageId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.sgn.message.v1.IsMessageActiveRequest} returns this */ proto.sgn.message.v1.IsMessageActiveRequest.prototype.setMessageId = 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.message.v1.IsMessageActiveResponse.prototype.toObject = function(opt_includeInstance) { return proto.sgn.message.v1.IsMessageActiveResponse.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.message.v1.IsMessageActiveResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.IsMessageActiveResponse.toObject = function(includeInstance, msg) { var f, obj = { exists: jspb.Message.getBooleanFieldWithDefault(msg, 1, 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.message.v1.IsMessageActiveResponse} */ proto.sgn.message.v1.IsMessageActiveResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.message.v1.IsMessageActiveResponse; return proto.sgn.message.v1.IsMessageActiveResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.message.v1.IsMessageActiveResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.message.v1.IsMessageActiveResponse} */ proto.sgn.message.v1.IsMessageActiveResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {boolean} */ (reader.readBool()); msg.setExists(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.message.v1.IsMessageActiveResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.message.v1.IsMessageActiveResponse.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.message.v1.IsMessageActiveResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.IsMessageActiveResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getExists(); if (f) { writer.writeBool( 1, f ); } }; /** * optional bool exists = 1; * @return {boolean} */ proto.sgn.message.v1.IsMessageActiveResponse.prototype.getExists = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value * @return {!proto.sgn.message.v1.IsMessageActiveResponse} returns this */ proto.sgn.message.v1.IsMessageActiveResponse.prototype.setExists = function(value) { return jspb.Message.setProto3BooleanField(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.message.v1.QueryMessageExistsRequest.prototype.toObject = function(opt_includeInstance) { return proto.sgn.message.v1.QueryMessageExistsRequest.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.message.v1.QueryMessageExistsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.QueryMessageExistsRequest.toObject = function(includeInstance, msg) { var f, obj = { messageId: 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.message.v1.QueryMessageExistsRequest} */ proto.sgn.message.v1.QueryMessageExistsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.sgn.message.v1.QueryMessageExistsRequest; return proto.sgn.message.v1.QueryMessageExistsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.sgn.message.v1.QueryMessageExistsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.sgn.message.v1.QueryMessageExistsRequest} */ proto.sgn.message.v1.QueryMessageExistsRequest.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.setMessageId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.sgn.message.v1.QueryMessageExistsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.sgn.message.v1.QueryMessageExistsRequest.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.message.v1.QueryMessageExistsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.QueryMessageExistsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMessageId(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string message_id = 1; * @return {string} */ proto.sgn.message.v1.QueryMessageExistsRequest.prototype.getMessageId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.sgn.message.v1.QueryMessageExistsRequest} returns this */ proto.sgn.message.v1.QueryMessageExistsRequest.prototype.setMessageId = 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.message.v1.QueryMessageExistsResponse.prototype.toObject = function(opt_includeInstance) { return proto.sgn.message.v1.QueryMessageExistsResponse.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.message.v1.QueryMessageExistsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.sgn.message.v1.QueryMessageExistsResponse.toObject = function(includeInstance, msg) { var f, obj = { exists: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes