UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

1,483 lines (1,226 loc) 128 kB
"use strict"; // source: provenance/marker/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 () { return this || window || global || self || Function('return this')(); }.call(null); var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); var cosmos_base_query_v1beta1_pagination_pb = require('../../../cosmos/base/query/v1beta1/pagination_pb.js'); goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb); var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); var cosmos_bank_v1beta1_bank_pb = require('../../../cosmos/bank/v1beta1/bank_pb.js'); goog.object.extend(proto, cosmos_bank_v1beta1_bank_pb); var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js'); goog.object.extend(proto, cosmos_proto_cosmos_pb); var google_api_annotations_pb = require('../../../google/api/annotations_pb.js'); goog.object.extend(proto, google_api_annotations_pb); var provenance_marker_v1_marker_pb = require('../../../provenance/marker/v1/marker_pb.js'); goog.object.extend(proto, provenance_marker_v1_marker_pb); var provenance_marker_v1_accessgrant_pb = require('../../../provenance/marker/v1/accessgrant_pb.js'); goog.object.extend(proto, provenance_marker_v1_accessgrant_pb); goog.exportSymbol('proto.provenance.marker.v1.Balance', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryAccessRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryAccessResponse', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryAccountDataRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryAccountDataResponse', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryAllMarkersRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryAllMarkersResponse', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryDenomMetadataRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryDenomMetadataResponse', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryEscrowRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryEscrowResponse', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryHoldingRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryHoldingResponse', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryMarkerRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryMarkerResponse', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryNetAssetValuesRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryNetAssetValuesResponse', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryParamsRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QueryParamsResponse', null, global); goog.exportSymbol('proto.provenance.marker.v1.QuerySupplyRequest', null, global); goog.exportSymbol('proto.provenance.marker.v1.QuerySupplyResponse', 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.provenance.marker.v1.QueryParamsRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryParamsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryParamsRequest.displayName = 'proto.provenance.marker.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.provenance.marker.v1.QueryParamsResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryParamsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryParamsResponse.displayName = 'proto.provenance.marker.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.provenance.marker.v1.QueryAllMarkersRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryAllMarkersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryAllMarkersRequest.displayName = 'proto.provenance.marker.v1.QueryAllMarkersRequest'; } /** * 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.provenance.marker.v1.QueryAllMarkersResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.QueryAllMarkersResponse.repeatedFields_, null); }; goog.inherits(proto.provenance.marker.v1.QueryAllMarkersResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryAllMarkersResponse.displayName = 'proto.provenance.marker.v1.QueryAllMarkersResponse'; } /** * 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.provenance.marker.v1.QueryMarkerRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryMarkerRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryMarkerRequest.displayName = 'proto.provenance.marker.v1.QueryMarkerRequest'; } /** * 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.provenance.marker.v1.QueryMarkerResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryMarkerResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryMarkerResponse.displayName = 'proto.provenance.marker.v1.QueryMarkerResponse'; } /** * 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.provenance.marker.v1.QueryHoldingRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryHoldingRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryHoldingRequest.displayName = 'proto.provenance.marker.v1.QueryHoldingRequest'; } /** * 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.provenance.marker.v1.QueryHoldingResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.QueryHoldingResponse.repeatedFields_, null); }; goog.inherits(proto.provenance.marker.v1.QueryHoldingResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryHoldingResponse.displayName = 'proto.provenance.marker.v1.QueryHoldingResponse'; } /** * 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.provenance.marker.v1.QuerySupplyRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QuerySupplyRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QuerySupplyRequest.displayName = 'proto.provenance.marker.v1.QuerySupplyRequest'; } /** * 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.provenance.marker.v1.QuerySupplyResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QuerySupplyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QuerySupplyResponse.displayName = 'proto.provenance.marker.v1.QuerySupplyResponse'; } /** * 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.provenance.marker.v1.QueryEscrowRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryEscrowRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryEscrowRequest.displayName = 'proto.provenance.marker.v1.QueryEscrowRequest'; } /** * 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.provenance.marker.v1.QueryEscrowResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.QueryEscrowResponse.repeatedFields_, null); }; goog.inherits(proto.provenance.marker.v1.QueryEscrowResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryEscrowResponse.displayName = 'proto.provenance.marker.v1.QueryEscrowResponse'; } /** * 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.provenance.marker.v1.QueryAccessRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryAccessRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryAccessRequest.displayName = 'proto.provenance.marker.v1.QueryAccessRequest'; } /** * 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.provenance.marker.v1.QueryAccessResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.QueryAccessResponse.repeatedFields_, null); }; goog.inherits(proto.provenance.marker.v1.QueryAccessResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryAccessResponse.displayName = 'proto.provenance.marker.v1.QueryAccessResponse'; } /** * 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.provenance.marker.v1.QueryDenomMetadataRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryDenomMetadataRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryDenomMetadataRequest.displayName = 'proto.provenance.marker.v1.QueryDenomMetadataRequest'; } /** * 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.provenance.marker.v1.QueryDenomMetadataResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryDenomMetadataResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryDenomMetadataResponse.displayName = 'proto.provenance.marker.v1.QueryDenomMetadataResponse'; } /** * 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.provenance.marker.v1.QueryAccountDataRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryAccountDataRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryAccountDataRequest.displayName = 'proto.provenance.marker.v1.QueryAccountDataRequest'; } /** * 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.provenance.marker.v1.QueryAccountDataResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryAccountDataResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryAccountDataResponse.displayName = 'proto.provenance.marker.v1.QueryAccountDataResponse'; } /** * 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.provenance.marker.v1.Balance = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.Balance.repeatedFields_, null); }; goog.inherits(proto.provenance.marker.v1.Balance, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.Balance.displayName = 'proto.provenance.marker.v1.Balance'; } /** * 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.provenance.marker.v1.QueryNetAssetValuesRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.marker.v1.QueryNetAssetValuesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryNetAssetValuesRequest.displayName = 'proto.provenance.marker.v1.QueryNetAssetValuesRequest'; } /** * 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.provenance.marker.v1.QueryNetAssetValuesResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.QueryNetAssetValuesResponse.repeatedFields_, null); }; goog.inherits(proto.provenance.marker.v1.QueryNetAssetValuesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.marker.v1.QueryNetAssetValuesResponse.displayName = 'proto.provenance.marker.v1.QueryNetAssetValuesResponse'; } 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.provenance.marker.v1.QueryParamsRequest.prototype.toObject = function (opt_includeInstance) { return proto.provenance.marker.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.provenance.marker.v1.QueryParamsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.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.provenance.marker.v1.QueryParamsRequest} */ proto.provenance.marker.v1.QueryParamsRequest.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.marker.v1.QueryParamsRequest(); return proto.provenance.marker.v1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.marker.v1.QueryParamsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.marker.v1.QueryParamsRequest} */ proto.provenance.marker.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.provenance.marker.v1.QueryParamsRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.marker.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.provenance.marker.v1.QueryParamsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.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.provenance.marker.v1.QueryParamsResponse.prototype.toObject = function (opt_includeInstance) { return proto.provenance.marker.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.provenance.marker.v1.QueryParamsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.v1.QueryParamsResponse.toObject = function (includeInstance, msg) { var f, obj = { params: (f = msg.getParams()) && provenance_marker_v1_marker_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.provenance.marker.v1.QueryParamsResponse} */ proto.provenance.marker.v1.QueryParamsResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.marker.v1.QueryParamsResponse(); return proto.provenance.marker.v1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.marker.v1.QueryParamsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.marker.v1.QueryParamsResponse} */ proto.provenance.marker.v1.QueryParamsResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new provenance_marker_v1_marker_pb.Params(); reader.readMessage(value, provenance_marker_v1_marker_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.provenance.marker.v1.QueryParamsResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.marker.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.provenance.marker.v1.QueryParamsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.v1.QueryParamsResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getParams(); if (f != null) { writer.writeMessage(1, f, provenance_marker_v1_marker_pb.Params.serializeBinaryToWriter); } }; /** * optional Params params = 1; * @return {?proto.provenance.marker.v1.Params} */ proto.provenance.marker.v1.QueryParamsResponse.prototype.getParams = function () { return ( /** @type{?proto.provenance.marker.v1.Params} */ jspb.Message.getWrapperField(this, provenance_marker_v1_marker_pb.Params, 1) ); }; /** * @param {?proto.provenance.marker.v1.Params|undefined} value * @return {!proto.provenance.marker.v1.QueryParamsResponse} returns this */ proto.provenance.marker.v1.QueryParamsResponse.prototype.setParams = function (value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.marker.v1.QueryParamsResponse} returns this */ proto.provenance.marker.v1.QueryParamsResponse.prototype.clearParams = function () { return this.setParams(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.marker.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.provenance.marker.v1.QueryAllMarkersRequest.prototype.toObject = function (opt_includeInstance) { return proto.provenance.marker.v1.QueryAllMarkersRequest.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.provenance.marker.v1.QueryAllMarkersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.v1.QueryAllMarkersRequest.toObject = function (includeInstance, msg) { var f, obj = { status: jspb.Message.getFieldWithDefault(msg, 1, 0), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.provenance.marker.v1.QueryAllMarkersRequest} */ proto.provenance.marker.v1.QueryAllMarkersRequest.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.marker.v1.QueryAllMarkersRequest(); return proto.provenance.marker.v1.QueryAllMarkersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.marker.v1.QueryAllMarkersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.marker.v1.QueryAllMarkersRequest} */ proto.provenance.marker.v1.QueryAllMarkersRequest.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!proto.provenance.marker.v1.MarkerStatus} */ reader.readEnum(); msg.setStatus(value); break; case 2: var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest(); reader.readMessage(value, cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); msg.setPagination(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.marker.v1.QueryAllMarkersRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.marker.v1.QueryAllMarkersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.provenance.marker.v1.QueryAllMarkersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.v1.QueryAllMarkersRequest.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getStatus(); if (f !== 0.0) { writer.writeEnum(1, f); } f = message.getPagination(); if (f != null) { writer.writeMessage(2, f, cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter); } }; /** * optional MarkerStatus status = 1; * @return {!proto.provenance.marker.v1.MarkerStatus} */ proto.provenance.marker.v1.QueryAllMarkersRequest.prototype.getStatus = function () { return ( /** @type {!proto.provenance.marker.v1.MarkerStatus} */ jspb.Message.getFieldWithDefault(this, 1, 0) ); }; /** * @param {!proto.provenance.marker.v1.MarkerStatus} value * @return {!proto.provenance.marker.v1.QueryAllMarkersRequest} returns this */ proto.provenance.marker.v1.QueryAllMarkersRequest.prototype.setStatus = function (value) { return jspb.Message.setProto3EnumField(this, 1, value); }; /** * optional cosmos.base.query.v1beta1.PageRequest pagination = 2; * @return {?proto.cosmos.base.query.v1beta1.PageRequest} */ proto.provenance.marker.v1.QueryAllMarkersRequest.prototype.getPagination = function () { return ( /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2) ); }; /** * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value * @return {!proto.provenance.marker.v1.QueryAllMarkersRequest} returns this */ proto.provenance.marker.v1.QueryAllMarkersRequest.prototype.setPagination = function (value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.marker.v1.QueryAllMarkersRequest} returns this */ proto.provenance.marker.v1.QueryAllMarkersRequest.prototype.clearPagination = function () { return this.setPagination(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.marker.v1.QueryAllMarkersRequest.prototype.hasPagination = function () { return jspb.Message.getField(this, 2) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.provenance.marker.v1.QueryAllMarkersResponse.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.provenance.marker.v1.QueryAllMarkersResponse.prototype.toObject = function (opt_includeInstance) { return proto.provenance.marker.v1.QueryAllMarkersResponse.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.provenance.marker.v1.QueryAllMarkersResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.v1.QueryAllMarkersResponse.toObject = function (includeInstance, msg) { var f, obj = { markersList: jspb.Message.toObjectList(msg.getMarkersList(), google_protobuf_any_pb.Any.toObject, includeInstance), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.provenance.marker.v1.QueryAllMarkersResponse} */ proto.provenance.marker.v1.QueryAllMarkersResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.marker.v1.QueryAllMarkersResponse(); return proto.provenance.marker.v1.QueryAllMarkersResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.marker.v1.QueryAllMarkersResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.marker.v1.QueryAllMarkersResponse} */ proto.provenance.marker.v1.QueryAllMarkersResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_any_pb.Any(); reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.addMarkers(value); break; case 2: var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse(); reader.readMessage(value, cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); msg.setPagination(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.marker.v1.QueryAllMarkersResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.marker.v1.QueryAllMarkersResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.provenance.marker.v1.QueryAllMarkersResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.v1.QueryAllMarkersResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getMarkersList(); if (f.length > 0) { writer.writeRepeatedMessage(1, f, google_protobuf_any_pb.Any.serializeBinaryToWriter); } f = message.getPagination(); if (f != null) { writer.writeMessage(2, f, cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter); } }; /** * repeated google.protobuf.Any markers = 1; * @return {!Array<!proto.google.protobuf.Any>} */ proto.provenance.marker.v1.QueryAllMarkersResponse.prototype.getMarkersList = function () { return ( /** @type{!Array<!proto.google.protobuf.Any>} */ jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 1) ); }; /** * @param {!Array<!proto.google.protobuf.Any>} value * @return {!proto.provenance.marker.v1.QueryAllMarkersResponse} returns this */ proto.provenance.marker.v1.QueryAllMarkersResponse.prototype.setMarkersList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.google.protobuf.Any=} opt_value * @param {number=} opt_index * @return {!proto.google.protobuf.Any} */ proto.provenance.marker.v1.QueryAllMarkersResponse.prototype.addMarkers = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.Any, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.provenance.marker.v1.QueryAllMarkersResponse} returns this */ proto.provenance.marker.v1.QueryAllMarkersResponse.prototype.clearMarkersList = function () { return this.setMarkersList([]); }; /** * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; * @return {?proto.cosmos.base.query.v1beta1.PageResponse} */ proto.provenance.marker.v1.QueryAllMarkersResponse.prototype.getPagination = function () { return ( /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2) ); }; /** * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value * @return {!proto.provenance.marker.v1.QueryAllMarkersResponse} returns this */ proto.provenance.marker.v1.QueryAllMarkersResponse.prototype.setPagination = function (value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.marker.v1.QueryAllMarkersResponse} returns this */ proto.provenance.marker.v1.QueryAllMarkersResponse.prototype.clearPagination = function () { return this.setPagination(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.marker.v1.QueryAllMarkersResponse.prototype.hasPagination = function () { return jspb.Message.getField(this, 2) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.provenance.marker.v1.QueryMarkerRequest.prototype.toObject = function (opt_includeInstance) { return proto.provenance.marker.v1.QueryMarkerRequest.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.provenance.marker.v1.QueryMarkerRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.v1.QueryMarkerRequest.toObject = function (includeInstance, msg) { var f, obj = { id: 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.provenance.marker.v1.QueryMarkerRequest} */ proto.provenance.marker.v1.QueryMarkerRequest.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.marker.v1.QueryMarkerRequest(); return proto.provenance.marker.v1.QueryMarkerRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.marker.v1.QueryMarkerRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.marker.v1.QueryMarkerRequest} */ proto.provenance.marker.v1.QueryMarkerRequest.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.setId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.marker.v1.QueryMarkerRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.marker.v1.QueryMarkerRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.provenance.marker.v1.QueryMarkerRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.v1.QueryMarkerRequest.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString(1, f); } }; /** * optional string id = 1; * @return {string} */ proto.provenance.marker.v1.QueryMarkerRequest.prototype.getId = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, "") ); }; /** * @param {string} value * @return {!proto.provenance.marker.v1.QueryMarkerRequest} returns this */ proto.provenance.marker.v1.QueryMarkerRequest.prototype.setId = 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.provenance.marker.v1.QueryMarkerResponse.prototype.toObject = function (opt_includeInstance) { return proto.provenance.marker.v1.QueryMarkerResponse.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.provenance.marker.v1.QueryMarkerResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.marker.v1.QueryMarkerResponse.toObject = function (includeInstance, msg) { var f, obj = { marker: (f = msg.getMarker()) && google_protobuf_any_pb.Any.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.provenance.marker.v1.QueryMarkerResponse} */ proto.provenance.marker.v1.QueryMarkerResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.marker.v1.QueryMarkerResponse(); return proto.provenance.marker.v1.QueryMarkerResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.marker.v1.QueryMarkerResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.marker.v1.QueryMarkerResponse} */ proto.provenance.marker.v1.QueryMarkerResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_any_pb.Any(); reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.setMarker(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.marker.v1.QueryMarkerResponse.prototype.seria