UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

1,622 lines (1,314 loc) 68.9 kB
"use strict"; // source: provenance/exchange/v1/market.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 cosmos_auth_v1beta1_auth_pb = require('../../../cosmos/auth/v1beta1/auth_pb.js'); goog.object.extend(proto, cosmos_auth_v1beta1_auth_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_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js'); goog.object.extend(proto, cosmos_proto_cosmos_pb); var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); goog.exportSymbol('proto.provenance.exchange.v1.AccessGrant', null, global); goog.exportSymbol('proto.provenance.exchange.v1.FeeRatio', null, global); goog.exportSymbol('proto.provenance.exchange.v1.Market', null, global); goog.exportSymbol('proto.provenance.exchange.v1.MarketAccount', null, global); goog.exportSymbol('proto.provenance.exchange.v1.MarketBrief', null, global); goog.exportSymbol('proto.provenance.exchange.v1.MarketDetails', null, global); goog.exportSymbol('proto.provenance.exchange.v1.Permission', 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.exchange.v1.MarketAccount = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.MarketAccount, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.MarketAccount.displayName = 'proto.provenance.exchange.v1.MarketAccount'; } /** * 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.exchange.v1.MarketDetails = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.MarketDetails, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.MarketDetails.displayName = 'proto.provenance.exchange.v1.MarketDetails'; } /** * 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.exchange.v1.MarketBrief = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.MarketBrief, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.MarketBrief.displayName = 'proto.provenance.exchange.v1.MarketBrief'; } /** * 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.exchange.v1.Market = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.exchange.v1.Market.repeatedFields_, null); }; goog.inherits(proto.provenance.exchange.v1.Market, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.Market.displayName = 'proto.provenance.exchange.v1.Market'; } /** * 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.exchange.v1.FeeRatio = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.exchange.v1.FeeRatio, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.FeeRatio.displayName = 'proto.provenance.exchange.v1.FeeRatio'; } /** * 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.exchange.v1.AccessGrant = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.exchange.v1.AccessGrant.repeatedFields_, null); }; goog.inherits(proto.provenance.exchange.v1.AccessGrant, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.exchange.v1.AccessGrant.displayName = 'proto.provenance.exchange.v1.AccessGrant'; } 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.exchange.v1.MarketAccount.prototype.toObject = function (opt_includeInstance) { return proto.provenance.exchange.v1.MarketAccount.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.exchange.v1.MarketAccount} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.MarketAccount.toObject = function (includeInstance, msg) { var f, obj = { baseAccount: (f = msg.getBaseAccount()) && cosmos_auth_v1beta1_auth_pb.BaseAccount.toObject(includeInstance, f), marketId: jspb.Message.getFieldWithDefault(msg, 2, 0), marketDetails: (f = msg.getMarketDetails()) && proto.provenance.exchange.v1.MarketDetails.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.exchange.v1.MarketAccount} */ proto.provenance.exchange.v1.MarketAccount.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.exchange.v1.MarketAccount(); return proto.provenance.exchange.v1.MarketAccount.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.exchange.v1.MarketAccount} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.exchange.v1.MarketAccount} */ proto.provenance.exchange.v1.MarketAccount.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new cosmos_auth_v1beta1_auth_pb.BaseAccount(); reader.readMessage(value, cosmos_auth_v1beta1_auth_pb.BaseAccount.deserializeBinaryFromReader); msg.setBaseAccount(value); break; case 2: var value = /** @type {number} */ reader.readUint32(); msg.setMarketId(value); break; case 3: var value = new proto.provenance.exchange.v1.MarketDetails(); reader.readMessage(value, proto.provenance.exchange.v1.MarketDetails.deserializeBinaryFromReader); msg.setMarketDetails(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.exchange.v1.MarketAccount.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.exchange.v1.MarketAccount.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.exchange.v1.MarketAccount} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.MarketAccount.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getBaseAccount(); if (f != null) { writer.writeMessage(1, f, cosmos_auth_v1beta1_auth_pb.BaseAccount.serializeBinaryToWriter); } f = message.getMarketId(); if (f !== 0) { writer.writeUint32(2, f); } f = message.getMarketDetails(); if (f != null) { writer.writeMessage(3, f, proto.provenance.exchange.v1.MarketDetails.serializeBinaryToWriter); } }; /** * optional cosmos.auth.v1beta1.BaseAccount base_account = 1; * @return {?proto.cosmos.auth.v1beta1.BaseAccount} */ proto.provenance.exchange.v1.MarketAccount.prototype.getBaseAccount = function () { return ( /** @type{?proto.cosmos.auth.v1beta1.BaseAccount} */ jspb.Message.getWrapperField(this, cosmos_auth_v1beta1_auth_pb.BaseAccount, 1) ); }; /** * @param {?proto.cosmos.auth.v1beta1.BaseAccount|undefined} value * @return {!proto.provenance.exchange.v1.MarketAccount} returns this */ proto.provenance.exchange.v1.MarketAccount.prototype.setBaseAccount = function (value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.exchange.v1.MarketAccount} returns this */ proto.provenance.exchange.v1.MarketAccount.prototype.clearBaseAccount = function () { return this.setBaseAccount(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.exchange.v1.MarketAccount.prototype.hasBaseAccount = function () { return jspb.Message.getField(this, 1) != null; }; /** * optional uint32 market_id = 2; * @return {number} */ proto.provenance.exchange.v1.MarketAccount.prototype.getMarketId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 2, 0) ); }; /** * @param {number} value * @return {!proto.provenance.exchange.v1.MarketAccount} returns this */ proto.provenance.exchange.v1.MarketAccount.prototype.setMarketId = function (value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional MarketDetails market_details = 3; * @return {?proto.provenance.exchange.v1.MarketDetails} */ proto.provenance.exchange.v1.MarketAccount.prototype.getMarketDetails = function () { return ( /** @type{?proto.provenance.exchange.v1.MarketDetails} */ jspb.Message.getWrapperField(this, proto.provenance.exchange.v1.MarketDetails, 3) ); }; /** * @param {?proto.provenance.exchange.v1.MarketDetails|undefined} value * @return {!proto.provenance.exchange.v1.MarketAccount} returns this */ proto.provenance.exchange.v1.MarketAccount.prototype.setMarketDetails = function (value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.exchange.v1.MarketAccount} returns this */ proto.provenance.exchange.v1.MarketAccount.prototype.clearMarketDetails = function () { return this.setMarketDetails(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.exchange.v1.MarketAccount.prototype.hasMarketDetails = function () { return jspb.Message.getField(this, 3) != 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.exchange.v1.MarketDetails.prototype.toObject = function (opt_includeInstance) { return proto.provenance.exchange.v1.MarketDetails.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.exchange.v1.MarketDetails} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.MarketDetails.toObject = function (includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), description: jspb.Message.getFieldWithDefault(msg, 2, ""), websiteUrl: jspb.Message.getFieldWithDefault(msg, 3, ""), iconUri: jspb.Message.getFieldWithDefault(msg, 4, "") }; 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.exchange.v1.MarketDetails} */ proto.provenance.exchange.v1.MarketDetails.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.exchange.v1.MarketDetails(); return proto.provenance.exchange.v1.MarketDetails.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.exchange.v1.MarketDetails} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.exchange.v1.MarketDetails} */ proto.provenance.exchange.v1.MarketDetails.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.setName(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setDescription(value); break; case 3: var value = /** @type {string} */ reader.readString(); msg.setWebsiteUrl(value); break; case 4: var value = /** @type {string} */ reader.readString(); msg.setIconUri(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.exchange.v1.MarketDetails.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.exchange.v1.MarketDetails.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.exchange.v1.MarketDetails} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.MarketDetails.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString(1, f); } f = message.getDescription(); if (f.length > 0) { writer.writeString(2, f); } f = message.getWebsiteUrl(); if (f.length > 0) { writer.writeString(3, f); } f = message.getIconUri(); if (f.length > 0) { writer.writeString(4, f); } }; /** * optional string name = 1; * @return {string} */ proto.provenance.exchange.v1.MarketDetails.prototype.getName = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.MarketDetails} returns this */ proto.provenance.exchange.v1.MarketDetails.prototype.setName = function (value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string description = 2; * @return {string} */ proto.provenance.exchange.v1.MarketDetails.prototype.getDescription = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.MarketDetails} returns this */ proto.provenance.exchange.v1.MarketDetails.prototype.setDescription = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string website_url = 3; * @return {string} */ proto.provenance.exchange.v1.MarketDetails.prototype.getWebsiteUrl = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 3, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.MarketDetails} returns this */ proto.provenance.exchange.v1.MarketDetails.prototype.setWebsiteUrl = function (value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string icon_uri = 4; * @return {string} */ proto.provenance.exchange.v1.MarketDetails.prototype.getIconUri = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 4, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.MarketDetails} returns this */ proto.provenance.exchange.v1.MarketDetails.prototype.setIconUri = function (value) { return jspb.Message.setProto3StringField(this, 4, 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.exchange.v1.MarketBrief.prototype.toObject = function (opt_includeInstance) { return proto.provenance.exchange.v1.MarketBrief.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.exchange.v1.MarketBrief} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.MarketBrief.toObject = function (includeInstance, msg) { var f, obj = { marketId: jspb.Message.getFieldWithDefault(msg, 1, 0), marketAddress: jspb.Message.getFieldWithDefault(msg, 2, ""), marketDetails: (f = msg.getMarketDetails()) && proto.provenance.exchange.v1.MarketDetails.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.exchange.v1.MarketBrief} */ proto.provenance.exchange.v1.MarketBrief.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.exchange.v1.MarketBrief(); return proto.provenance.exchange.v1.MarketBrief.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.exchange.v1.MarketBrief} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.exchange.v1.MarketBrief} */ proto.provenance.exchange.v1.MarketBrief.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ reader.readUint32(); msg.setMarketId(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setMarketAddress(value); break; case 3: var value = new proto.provenance.exchange.v1.MarketDetails(); reader.readMessage(value, proto.provenance.exchange.v1.MarketDetails.deserializeBinaryFromReader); msg.setMarketDetails(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.exchange.v1.MarketBrief.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.exchange.v1.MarketBrief.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.exchange.v1.MarketBrief} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.MarketBrief.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getMarketId(); if (f !== 0) { writer.writeUint32(1, f); } f = message.getMarketAddress(); if (f.length > 0) { writer.writeString(2, f); } f = message.getMarketDetails(); if (f != null) { writer.writeMessage(3, f, proto.provenance.exchange.v1.MarketDetails.serializeBinaryToWriter); } }; /** * optional uint32 market_id = 1; * @return {number} */ proto.provenance.exchange.v1.MarketBrief.prototype.getMarketId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 1, 0) ); }; /** * @param {number} value * @return {!proto.provenance.exchange.v1.MarketBrief} returns this */ proto.provenance.exchange.v1.MarketBrief.prototype.setMarketId = function (value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string market_address = 2; * @return {string} */ proto.provenance.exchange.v1.MarketBrief.prototype.getMarketAddress = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.provenance.exchange.v1.MarketBrief} returns this */ proto.provenance.exchange.v1.MarketBrief.prototype.setMarketAddress = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional MarketDetails market_details = 3; * @return {?proto.provenance.exchange.v1.MarketDetails} */ proto.provenance.exchange.v1.MarketBrief.prototype.getMarketDetails = function () { return ( /** @type{?proto.provenance.exchange.v1.MarketDetails} */ jspb.Message.getWrapperField(this, proto.provenance.exchange.v1.MarketDetails, 3) ); }; /** * @param {?proto.provenance.exchange.v1.MarketDetails|undefined} value * @return {!proto.provenance.exchange.v1.MarketBrief} returns this */ proto.provenance.exchange.v1.MarketBrief.prototype.setMarketDetails = function (value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.exchange.v1.MarketBrief} returns this */ proto.provenance.exchange.v1.MarketBrief.prototype.clearMarketDetails = function () { return this.setMarketDetails(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.exchange.v1.MarketBrief.prototype.hasMarketDetails = function () { return jspb.Message.getField(this, 3) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.provenance.exchange.v1.Market.repeatedFields_ = [3, 4, 5, 6, 7, 8, 11, 12, 13, 15, 18]; 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.exchange.v1.Market.prototype.toObject = function (opt_includeInstance) { return proto.provenance.exchange.v1.Market.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.exchange.v1.Market} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.Market.toObject = function (includeInstance, msg) { var f, obj = { marketId: jspb.Message.getFieldWithDefault(msg, 1, 0), marketDetails: (f = msg.getMarketDetails()) && proto.provenance.exchange.v1.MarketDetails.toObject(includeInstance, f), feeCreateAskFlatList: jspb.Message.toObjectList(msg.getFeeCreateAskFlatList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), feeCreateBidFlatList: jspb.Message.toObjectList(msg.getFeeCreateBidFlatList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), feeSellerSettlementFlatList: jspb.Message.toObjectList(msg.getFeeSellerSettlementFlatList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), feeSellerSettlementRatiosList: jspb.Message.toObjectList(msg.getFeeSellerSettlementRatiosList(), proto.provenance.exchange.v1.FeeRatio.toObject, includeInstance), feeBuyerSettlementFlatList: jspb.Message.toObjectList(msg.getFeeBuyerSettlementFlatList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), feeBuyerSettlementRatiosList: jspb.Message.toObjectList(msg.getFeeBuyerSettlementRatiosList(), proto.provenance.exchange.v1.FeeRatio.toObject, includeInstance), acceptingOrders: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), allowUserSettlement: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), accessGrantsList: jspb.Message.toObjectList(msg.getAccessGrantsList(), proto.provenance.exchange.v1.AccessGrant.toObject, includeInstance), reqAttrCreateAskList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f, reqAttrCreateBidList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f, acceptingCommitments: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), feeCreateCommitmentFlatList: jspb.Message.toObjectList(msg.getFeeCreateCommitmentFlatList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), commitmentSettlementBips: jspb.Message.getFieldWithDefault(msg, 16, 0), intermediaryDenom: jspb.Message.getFieldWithDefault(msg, 17, ""), reqAttrCreateCommitmentList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : 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.exchange.v1.Market} */ proto.provenance.exchange.v1.Market.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.exchange.v1.Market(); return proto.provenance.exchange.v1.Market.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.exchange.v1.Market} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.exchange.v1.Market} */ proto.provenance.exchange.v1.Market.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ reader.readUint32(); msg.setMarketId(value); break; case 2: var value = new proto.provenance.exchange.v1.MarketDetails(); reader.readMessage(value, proto.provenance.exchange.v1.MarketDetails.deserializeBinaryFromReader); msg.setMarketDetails(value); break; case 3: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addFeeCreateAskFlat(value); break; case 4: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addFeeCreateBidFlat(value); break; case 5: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addFeeSellerSettlementFlat(value); break; case 6: var value = new proto.provenance.exchange.v1.FeeRatio(); reader.readMessage(value, proto.provenance.exchange.v1.FeeRatio.deserializeBinaryFromReader); msg.addFeeSellerSettlementRatios(value); break; case 7: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addFeeBuyerSettlementFlat(value); break; case 8: var value = new proto.provenance.exchange.v1.FeeRatio(); reader.readMessage(value, proto.provenance.exchange.v1.FeeRatio.deserializeBinaryFromReader); msg.addFeeBuyerSettlementRatios(value); break; case 9: var value = /** @type {boolean} */ reader.readBool(); msg.setAcceptingOrders(value); break; case 10: var value = /** @type {boolean} */ reader.readBool(); msg.setAllowUserSettlement(value); break; case 11: var value = new proto.provenance.exchange.v1.AccessGrant(); reader.readMessage(value, proto.provenance.exchange.v1.AccessGrant.deserializeBinaryFromReader); msg.addAccessGrants(value); break; case 12: var value = /** @type {string} */ reader.readString(); msg.addReqAttrCreateAsk(value); break; case 13: var value = /** @type {string} */ reader.readString(); msg.addReqAttrCreateBid(value); break; case 14: var value = /** @type {boolean} */ reader.readBool(); msg.setAcceptingCommitments(value); break; case 15: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addFeeCreateCommitmentFlat(value); break; case 16: var value = /** @type {number} */ reader.readUint32(); msg.setCommitmentSettlementBips(value); break; case 17: var value = /** @type {string} */ reader.readString(); msg.setIntermediaryDenom(value); break; case 18: var value = /** @type {string} */ reader.readString(); msg.addReqAttrCreateCommitment(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.exchange.v1.Market.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.exchange.v1.Market.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.exchange.v1.Market} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.exchange.v1.Market.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getMarketId(); if (f !== 0) { writer.writeUint32(1, f); } f = message.getMarketDetails(); if (f != null) { writer.writeMessage(2, f, proto.provenance.exchange.v1.MarketDetails.serializeBinaryToWriter); } f = message.getFeeCreateAskFlatList(); if (f.length > 0) { writer.writeRepeatedMessage(3, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getFeeCreateBidFlatList(); if (f.length > 0) { writer.writeRepeatedMessage(4, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getFeeSellerSettlementFlatList(); if (f.length > 0) { writer.writeRepeatedMessage(5, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getFeeSellerSettlementRatiosList(); if (f.length > 0) { writer.writeRepeatedMessage(6, f, proto.provenance.exchange.v1.FeeRatio.serializeBinaryToWriter); } f = message.getFeeBuyerSettlementFlatList(); if (f.length > 0) { writer.writeRepeatedMessage(7, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getFeeBuyerSettlementRatiosList(); if (f.length > 0) { writer.writeRepeatedMessage(8, f, proto.provenance.exchange.v1.FeeRatio.serializeBinaryToWriter); } f = message.getAcceptingOrders(); if (f) { writer.writeBool(9, f); } f = message.getAllowUserSettlement(); if (f) { writer.writeBool(10, f); } f = message.getAccessGrantsList(); if (f.length > 0) { writer.writeRepeatedMessage(11, f, proto.provenance.exchange.v1.AccessGrant.serializeBinaryToWriter); } f = message.getReqAttrCreateAskList(); if (f.length > 0) { writer.writeRepeatedString(12, f); } f = message.getReqAttrCreateBidList(); if (f.length > 0) { writer.writeRepeatedString(13, f); } f = message.getAcceptingCommitments(); if (f) { writer.writeBool(14, f); } f = message.getFeeCreateCommitmentFlatList(); if (f.length > 0) { writer.writeRepeatedMessage(15, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getCommitmentSettlementBips(); if (f !== 0) { writer.writeUint32(16, f); } f = message.getIntermediaryDenom(); if (f.length > 0) { writer.writeString(17, f); } f = message.getReqAttrCreateCommitmentList(); if (f.length > 0) { writer.writeRepeatedString(18, f); } }; /** * optional uint32 market_id = 1; * @return {number} */ proto.provenance.exchange.v1.Market.prototype.getMarketId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 1, 0) ); }; /** * @param {number} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setMarketId = function (value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional MarketDetails market_details = 2; * @return {?proto.provenance.exchange.v1.MarketDetails} */ proto.provenance.exchange.v1.Market.prototype.getMarketDetails = function () { return ( /** @type{?proto.provenance.exchange.v1.MarketDetails} */ jspb.Message.getWrapperField(this, proto.provenance.exchange.v1.MarketDetails, 2) ); }; /** * @param {?proto.provenance.exchange.v1.MarketDetails|undefined} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setMarketDetails = function (value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.clearMarketDetails = function () { return this.setMarketDetails(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.exchange.v1.Market.prototype.hasMarketDetails = function () { return jspb.Message.getField(this, 2) != null; }; /** * repeated cosmos.base.v1beta1.Coin fee_create_ask_flat = 3; * @return {!Array<!proto.cosmos.base.v1beta1.Coin>} */ proto.provenance.exchange.v1.Market.prototype.getFeeCreateAskFlatList = function () { return ( /** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */ jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3) ); }; /** * @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setFeeCreateAskFlatList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ proto.provenance.exchange.v1.Market.prototype.addFeeCreateAskFlat = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.clearFeeCreateAskFlatList = function () { return this.setFeeCreateAskFlatList([]); }; /** * repeated cosmos.base.v1beta1.Coin fee_create_bid_flat = 4; * @return {!Array<!proto.cosmos.base.v1beta1.Coin>} */ proto.provenance.exchange.v1.Market.prototype.getFeeCreateBidFlatList = function () { return ( /** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */ jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4) ); }; /** * @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setFeeCreateBidFlatList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ proto.provenance.exchange.v1.Market.prototype.addFeeCreateBidFlat = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.clearFeeCreateBidFlatList = function () { return this.setFeeCreateBidFlatList([]); }; /** * repeated cosmos.base.v1beta1.Coin fee_seller_settlement_flat = 5; * @return {!Array<!proto.cosmos.base.v1beta1.Coin>} */ proto.provenance.exchange.v1.Market.prototype.getFeeSellerSettlementFlatList = function () { return ( /** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */ jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 5) ); }; /** * @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setFeeSellerSettlementFlatList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 5, value); }; /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ proto.provenance.exchange.v1.Market.prototype.addFeeSellerSettlementFlat = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.clearFeeSellerSettlementFlatList = function () { return this.setFeeSellerSettlementFlatList([]); }; /** * repeated FeeRatio fee_seller_settlement_ratios = 6; * @return {!Array<!proto.provenance.exchange.v1.FeeRatio>} */ proto.provenance.exchange.v1.Market.prototype.getFeeSellerSettlementRatiosList = function () { return ( /** @type{!Array<!proto.provenance.exchange.v1.FeeRatio>} */ jspb.Message.getRepeatedWrapperField(this, proto.provenance.exchange.v1.FeeRatio, 6) ); }; /** * @param {!Array<!proto.provenance.exchange.v1.FeeRatio>} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setFeeSellerSettlementRatiosList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** * @param {!proto.provenance.exchange.v1.FeeRatio=} opt_value * @param {number=} opt_index * @return {!proto.provenance.exchange.v1.FeeRatio} */ proto.provenance.exchange.v1.Market.prototype.addFeeSellerSettlementRatios = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.provenance.exchange.v1.FeeRatio, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.clearFeeSellerSettlementRatiosList = function () { return this.setFeeSellerSettlementRatiosList([]); }; /** * repeated cosmos.base.v1beta1.Coin fee_buyer_settlement_flat = 7; * @return {!Array<!proto.cosmos.base.v1beta1.Coin>} */ proto.provenance.exchange.v1.Market.prototype.getFeeBuyerSettlementFlatList = function () { return ( /** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */ jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 7) ); }; /** * @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setFeeBuyerSettlementFlatList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 7, value); }; /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ proto.provenance.exchange.v1.Market.prototype.addFeeBuyerSettlementFlat = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.clearFeeBuyerSettlementFlatList = function () { return this.setFeeBuyerSettlementFlatList([]); }; /** * repeated FeeRatio fee_buyer_settlement_ratios = 8; * @return {!Array<!proto.provenance.exchange.v1.FeeRatio>} */ proto.provenance.exchange.v1.Market.prototype.getFeeBuyerSettlementRatiosList = function () { return ( /** @type{!Array<!proto.provenance.exchange.v1.FeeRatio>} */ jspb.Message.getRepeatedWrapperField(this, proto.provenance.exchange.v1.FeeRatio, 8) ); }; /** * @param {!Array<!proto.provenance.exchange.v1.FeeRatio>} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setFeeBuyerSettlementRatiosList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 8, value); }; /** * @param {!proto.provenance.exchange.v1.FeeRatio=} opt_value * @param {number=} opt_index * @return {!proto.provenance.exchange.v1.FeeRatio} */ proto.provenance.exchange.v1.Market.prototype.addFeeBuyerSettlementRatios = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.provenance.exchange.v1.FeeRatio, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.clearFeeBuyerSettlementRatiosList = function () { return this.setFeeBuyerSettlementRatiosList([]); }; /** * optional bool accepting_orders = 9; * @return {boolean} */ proto.provenance.exchange.v1.Market.prototype.getAcceptingOrders = function () { return ( /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault(this, 9, false) ); }; /** * @param {boolean} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setAcceptingOrders = function (value) { return jspb.Message.setProto3BooleanField(this, 9, value); }; /** * optional bool allow_user_settlement = 10; * @return {boolean} */ proto.provenance.exchange.v1.Market.prototype.getAllowUserSettlement = function () { return ( /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault(this, 10, false) ); }; /** * @param {boolean} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setAllowUserSettlement = function (value) { return jspb.Message.setProto3BooleanField(this, 10, value); }; /** * repeated AccessGrant access_grants = 11; * @return {!Array<!proto.provenance.exchange.v1.AccessGrant>} */ proto.provenance.exchange.v1.Market.prototype.getAccessGrantsList = function () { return ( /** @type{!Array<!proto.provenance.exchange.v1.AccessGrant>} */ jspb.Message.getRepeatedWrapperField(this, proto.provenance.exchange.v1.AccessGrant, 11) ); }; /** * @param {!Array<!proto.provenance.exchange.v1.AccessGrant>} value * @return {!proto.provenance.exchange.v1.Market} returns this */ proto.provenance.exchange.v1.Market.prototype.setAccessGrantsList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 11, value); }; /** * @param {!proto.provenance.exchange.v1.AccessGrant=} opt_value * @param {number=} opt_index * @return {!proto.provenance.exchange.v1.AccessGrant} */ proto.provenance.exchange.v1.Market.prototype.addAccessGrants = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.provenance.exchange.v1.AccessGrant, opt_index); }; /** * Clears the list making