|
@@ -0,0 +1,1195 @@
|
|
|
|
+/**
|
|
|
|
+ * @fileoverview
|
|
|
|
+ * @enhanceable
|
|
|
|
+ * @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!
|
|
|
|
+
|
|
|
|
+var jspb = require('google-protobuf');
|
|
|
|
+var goog = jspb;
|
|
|
|
+var global = Function('return this')();
|
|
|
|
+
|
|
|
|
+goog.exportSymbol('proto.AssetsMetadata', null, global);
|
|
|
|
+goog.exportSymbol('proto.ChannelCreationParametersMetadata', null, global);
|
|
|
|
+goog.exportSymbol('proto.NewAssetMetadata', null, global);
|
|
|
|
+goog.exportSymbol('proto.Upload', null, global);
|
|
|
|
+goog.exportSymbol('proto.Urls', 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.Upload = function(opt_data) {
|
|
|
|
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
+};
|
|
|
|
+goog.inherits(proto.Upload, jspb.Message);
|
|
|
|
+if (goog.DEBUG && !COMPILED) {
|
|
|
|
+ proto.Upload.displayName = 'proto.Upload';
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
+/**
|
|
|
|
+ * Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
+ * For the list of reserved names please see:
|
|
|
|
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
+ * for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
+ return proto.Upload.toObject(opt_includeInstance, this);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Static version of the {@see toObject} method.
|
|
|
|
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
+ * instance for transitional soy proto support:
|
|
|
|
+ * http://goto/soy-param-migration
|
|
|
|
+ * @param {!proto.Upload} msg The msg instance to transform.
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.Upload.toObject = function(includeInstance, msg) {
|
|
|
|
+ var f, obj = {
|
|
|
|
+ contentId: jspb.Message.getField(msg, 1),
|
|
|
|
+ typeId: jspb.Message.getField(msg, 2),
|
|
|
|
+ size: jspb.Message.getField(msg, 3),
|
|
|
|
+ ipfsContentId: msg.getIpfsContentId_asB64()
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ if (includeInstance) {
|
|
|
|
+ obj.$jspbMessageInstance = msg;
|
|
|
|
+ }
|
|
|
|
+ return obj;
|
|
|
|
+};
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Deserializes binary data (in protobuf wire format).
|
|
|
|
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
+ * @return {!proto.Upload}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.deserializeBinary = function(bytes) {
|
|
|
|
+ var reader = new jspb.BinaryReader(bytes);
|
|
|
|
+ var msg = new proto.Upload;
|
|
|
|
+ return proto.Upload.deserializeBinaryFromReader(msg, reader);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Deserializes binary data (in protobuf wire format) from the
|
|
|
|
+ * given reader into the given message object.
|
|
|
|
+ * @param {!proto.Upload} msg The message object to deserialize into.
|
|
|
|
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
+ * @return {!proto.Upload}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
+ while (reader.nextField()) {
|
|
|
|
+ if (reader.isEndGroup()) {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ var field = reader.getFieldNumber();
|
|
|
|
+ switch (field) {
|
|
|
|
+ case 1:
|
|
|
|
+ var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
+ msg.setContentId(value);
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
+ msg.setTypeId(value);
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
|
|
+ var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
+ msg.setSize(value);
|
|
|
|
+ break;
|
|
|
|
+ case 4:
|
|
|
|
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
|
|
+ msg.setIpfsContentId(value);
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ reader.skipField();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return msg;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the message to binary data (in protobuf wire format).
|
|
|
|
+ * @return {!Uint8Array}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.serializeBinary = function() {
|
|
|
|
+ var writer = new jspb.BinaryWriter();
|
|
|
|
+ proto.Upload.serializeBinaryToWriter(this, writer);
|
|
|
|
+ return writer.getResultBuffer();
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the given message to binary data (in protobuf wire
|
|
|
|
+ * format), writing to the given BinaryWriter.
|
|
|
|
+ * @param {!proto.Upload} message
|
|
|
|
+ * @param {!jspb.BinaryWriter} writer
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.Upload.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
+ var f = undefined;
|
|
|
|
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
|
|
+ if (f != null) {
|
|
|
|
+ writer.writeUint64(
|
|
|
|
+ 1,
|
|
|
|
+ f
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
|
|
+ if (f != null) {
|
|
|
|
+ writer.writeUint64(
|
|
|
|
+ 2,
|
|
|
|
+ f
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
|
|
+ if (f != null) {
|
|
|
|
+ writer.writeUint64(
|
|
|
|
+ 3,
|
|
|
|
+ f
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 4));
|
|
|
|
+ if (f != null) {
|
|
|
|
+ writer.writeBytes(
|
|
|
|
+ 4,
|
|
|
|
+ f
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional uint64 content_id = 1;
|
|
|
|
+ * @return {number}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.getContentId = function() {
|
|
|
|
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {number} value */
|
|
|
|
+proto.Upload.prototype.setContentId = function(value) {
|
|
|
|
+ jspb.Message.setField(this, 1, value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.Upload.prototype.clearContentId = function() {
|
|
|
|
+ jspb.Message.setField(this, 1, undefined);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Returns whether this field is set.
|
|
|
|
+ * @return {!boolean}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.hasContentId = function() {
|
|
|
|
+ return jspb.Message.getField(this, 1) != null;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional uint64 type_id = 2;
|
|
|
|
+ * @return {number}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.getTypeId = function() {
|
|
|
|
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {number} value */
|
|
|
|
+proto.Upload.prototype.setTypeId = function(value) {
|
|
|
|
+ jspb.Message.setField(this, 2, value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.Upload.prototype.clearTypeId = function() {
|
|
|
|
+ jspb.Message.setField(this, 2, undefined);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Returns whether this field is set.
|
|
|
|
+ * @return {!boolean}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.hasTypeId = function() {
|
|
|
|
+ return jspb.Message.getField(this, 2) != null;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional uint64 size = 3;
|
|
|
|
+ * @return {number}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.getSize = function() {
|
|
|
|
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {number} value */
|
|
|
|
+proto.Upload.prototype.setSize = function(value) {
|
|
|
|
+ jspb.Message.setField(this, 3, value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.Upload.prototype.clearSize = function() {
|
|
|
|
+ jspb.Message.setField(this, 3, undefined);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Returns whether this field is set.
|
|
|
|
+ * @return {!boolean}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.hasSize = function() {
|
|
|
|
+ return jspb.Message.getField(this, 3) != null;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional bytes ipfs_content_id = 4;
|
|
|
|
+ * @return {!(string|Uint8Array)}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.getIpfsContentId = function() {
|
|
|
|
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional bytes ipfs_content_id = 4;
|
|
|
|
+ * This is a type-conversion wrapper around `getIpfsContentId()`
|
|
|
|
+ * @return {string}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.getIpfsContentId_asB64 = function() {
|
|
|
|
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
|
|
+ this.getIpfsContentId()));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional bytes ipfs_content_id = 4;
|
|
|
|
+ * Note that Uint8Array is not supported on all browsers.
|
|
|
|
+ * @see http://caniuse.com/Uint8Array
|
|
|
|
+ * This is a type-conversion wrapper around `getIpfsContentId()`
|
|
|
|
+ * @return {!Uint8Array}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.getIpfsContentId_asU8 = function() {
|
|
|
|
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
|
|
+ this.getIpfsContentId()));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {!(string|Uint8Array)} value */
|
|
|
|
+proto.Upload.prototype.setIpfsContentId = function(value) {
|
|
|
|
+ jspb.Message.setField(this, 4, value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.Upload.prototype.clearIpfsContentId = function() {
|
|
|
|
+ jspb.Message.setField(this, 4, undefined);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Returns whether this field is set.
|
|
|
|
+ * @return {!boolean}
|
|
|
|
+ */
|
|
|
|
+proto.Upload.prototype.hasIpfsContentId = function() {
|
|
|
|
+ return jspb.Message.getField(this, 4) != null;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 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.Urls = function(opt_data) {
|
|
|
|
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Urls.repeatedFields_, null);
|
|
|
|
+};
|
|
|
|
+goog.inherits(proto.Urls, jspb.Message);
|
|
|
|
+if (goog.DEBUG && !COMPILED) {
|
|
|
|
+ proto.Urls.displayName = 'proto.Urls';
|
|
|
|
+}
|
|
|
|
+/**
|
|
|
|
+ * List of repeated fields within this message type.
|
|
|
|
+ * @private {!Array<number>}
|
|
|
|
+ * @const
|
|
|
|
+ */
|
|
|
|
+proto.Urls.repeatedFields_ = [1];
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
+/**
|
|
|
|
+ * Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
+ * For the list of reserved names please see:
|
|
|
|
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
+ * for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ */
|
|
|
|
+proto.Urls.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
+ return proto.Urls.toObject(opt_includeInstance, this);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Static version of the {@see toObject} method.
|
|
|
|
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
+ * instance for transitional soy proto support:
|
|
|
|
+ * http://goto/soy-param-migration
|
|
|
|
+ * @param {!proto.Urls} msg The msg instance to transform.
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.Urls.toObject = function(includeInstance, msg) {
|
|
|
|
+ var f, obj = {
|
|
|
|
+ urlsList: msg.getUrlsList_asB64()
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ if (includeInstance) {
|
|
|
|
+ obj.$jspbMessageInstance = msg;
|
|
|
|
+ }
|
|
|
|
+ return obj;
|
|
|
|
+};
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Deserializes binary data (in protobuf wire format).
|
|
|
|
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
+ * @return {!proto.Urls}
|
|
|
|
+ */
|
|
|
|
+proto.Urls.deserializeBinary = function(bytes) {
|
|
|
|
+ var reader = new jspb.BinaryReader(bytes);
|
|
|
|
+ var msg = new proto.Urls;
|
|
|
|
+ return proto.Urls.deserializeBinaryFromReader(msg, reader);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Deserializes binary data (in protobuf wire format) from the
|
|
|
|
+ * given reader into the given message object.
|
|
|
|
+ * @param {!proto.Urls} msg The message object to deserialize into.
|
|
|
|
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
+ * @return {!proto.Urls}
|
|
|
|
+ */
|
|
|
|
+proto.Urls.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
+ while (reader.nextField()) {
|
|
|
|
+ if (reader.isEndGroup()) {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ var field = reader.getFieldNumber();
|
|
|
|
+ switch (field) {
|
|
|
|
+ case 1:
|
|
|
|
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
|
|
+ msg.addUrls(value);
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ reader.skipField();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return msg;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the message to binary data (in protobuf wire format).
|
|
|
|
+ * @return {!Uint8Array}
|
|
|
|
+ */
|
|
|
|
+proto.Urls.prototype.serializeBinary = function() {
|
|
|
|
+ var writer = new jspb.BinaryWriter();
|
|
|
|
+ proto.Urls.serializeBinaryToWriter(this, writer);
|
|
|
|
+ return writer.getResultBuffer();
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the given message to binary data (in protobuf wire
|
|
|
|
+ * format), writing to the given BinaryWriter.
|
|
|
|
+ * @param {!proto.Urls} message
|
|
|
|
+ * @param {!jspb.BinaryWriter} writer
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.Urls.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
+ var f = undefined;
|
|
|
|
+ f = message.getUrlsList_asU8();
|
|
|
|
+ if (f.length > 0) {
|
|
|
|
+ writer.writeRepeatedBytes(
|
|
|
|
+ 1,
|
|
|
|
+ f
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * repeated bytes urls = 1;
|
|
|
|
+ * @return {!(Array<!Uint8Array>|Array<string>)}
|
|
|
|
+ */
|
|
|
|
+proto.Urls.prototype.getUrlsList = function() {
|
|
|
|
+ return /** @type {!(Array<!Uint8Array>|Array<string>)} */ (jspb.Message.getRepeatedField(this, 1));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * repeated bytes urls = 1;
|
|
|
|
+ * This is a type-conversion wrapper around `getUrlsList()`
|
|
|
|
+ * @return {!Array<string>}
|
|
|
|
+ */
|
|
|
|
+proto.Urls.prototype.getUrlsList_asB64 = function() {
|
|
|
|
+ return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
|
|
|
|
+ this.getUrlsList()));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * repeated bytes urls = 1;
|
|
|
|
+ * Note that Uint8Array is not supported on all browsers.
|
|
|
|
+ * @see http://caniuse.com/Uint8Array
|
|
|
|
+ * This is a type-conversion wrapper around `getUrlsList()`
|
|
|
|
+ * @return {!Array<!Uint8Array>}
|
|
|
|
+ */
|
|
|
|
+proto.Urls.prototype.getUrlsList_asU8 = function() {
|
|
|
|
+ return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
|
|
|
|
+ this.getUrlsList()));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {!(Array<!Uint8Array>|Array<string>)} value */
|
|
|
|
+proto.Urls.prototype.setUrlsList = function(value) {
|
|
|
|
+ jspb.Message.setField(this, 1, value || []);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @param {!(string|Uint8Array)} value
|
|
|
|
+ * @param {number=} opt_index
|
|
|
|
+ */
|
|
|
|
+proto.Urls.prototype.addUrls = function(value, opt_index) {
|
|
|
|
+ jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.Urls.prototype.clearUrlsList = function() {
|
|
|
|
+ this.setUrlsList([]);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 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.NewAssetMetadata = function(opt_data) {
|
|
|
|
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.NewAssetMetadata.oneofGroups_);
|
|
|
|
+};
|
|
|
|
+goog.inherits(proto.NewAssetMetadata, jspb.Message);
|
|
|
|
+if (goog.DEBUG && !COMPILED) {
|
|
|
|
+ proto.NewAssetMetadata.displayName = 'proto.NewAssetMetadata';
|
|
|
|
+}
|
|
|
|
+/**
|
|
|
|
+ * Oneof group definitions for this message. Each group defines the field
|
|
|
|
+ * numbers belonging to that group. When of these fields' value is set, all
|
|
|
|
+ * other fields in the group are cleared. During deserialization, if multiple
|
|
|
|
+ * fields are encountered for a group, only the last value seen will be kept.
|
|
|
|
+ * @private {!Array<!Array<number>>}
|
|
|
|
+ * @const
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.oneofGroups_ = [[1,2]];
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @enum {number}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.NewAssetCase = {
|
|
|
|
+ NEW_ASSET_NOT_SET: 0,
|
|
|
|
+ UPLOAD: 1,
|
|
|
|
+ URLS: 2
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @return {proto.NewAssetMetadata.NewAssetCase}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.prototype.getNewAssetCase = function() {
|
|
|
|
+ return /** @type {proto.NewAssetMetadata.NewAssetCase} */(jspb.Message.computeOneofCase(this, proto.NewAssetMetadata.oneofGroups_[0]));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
+/**
|
|
|
|
+ * Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
+ * For the list of reserved names please see:
|
|
|
|
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
+ * for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
+ return proto.NewAssetMetadata.toObject(opt_includeInstance, this);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Static version of the {@see toObject} method.
|
|
|
|
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
+ * instance for transitional soy proto support:
|
|
|
|
+ * http://goto/soy-param-migration
|
|
|
|
+ * @param {!proto.NewAssetMetadata} msg The msg instance to transform.
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.toObject = function(includeInstance, msg) {
|
|
|
|
+ var f, obj = {
|
|
|
|
+ upload: (f = msg.getUpload()) && proto.Upload.toObject(includeInstance, f),
|
|
|
|
+ urls: (f = msg.getUrls()) && proto.Urls.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.NewAssetMetadata}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.deserializeBinary = function(bytes) {
|
|
|
|
+ var reader = new jspb.BinaryReader(bytes);
|
|
|
|
+ var msg = new proto.NewAssetMetadata;
|
|
|
|
+ return proto.NewAssetMetadata.deserializeBinaryFromReader(msg, reader);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Deserializes binary data (in protobuf wire format) from the
|
|
|
|
+ * given reader into the given message object.
|
|
|
|
+ * @param {!proto.NewAssetMetadata} msg The message object to deserialize into.
|
|
|
|
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
+ * @return {!proto.NewAssetMetadata}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
+ while (reader.nextField()) {
|
|
|
|
+ if (reader.isEndGroup()) {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ var field = reader.getFieldNumber();
|
|
|
|
+ switch (field) {
|
|
|
|
+ case 1:
|
|
|
|
+ var value = new proto.Upload;
|
|
|
|
+ reader.readMessage(value,proto.Upload.deserializeBinaryFromReader);
|
|
|
|
+ msg.setUpload(value);
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ var value = new proto.Urls;
|
|
|
|
+ reader.readMessage(value,proto.Urls.deserializeBinaryFromReader);
|
|
|
|
+ msg.setUrls(value);
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ reader.skipField();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return msg;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the message to binary data (in protobuf wire format).
|
|
|
|
+ * @return {!Uint8Array}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.prototype.serializeBinary = function() {
|
|
|
|
+ var writer = new jspb.BinaryWriter();
|
|
|
|
+ proto.NewAssetMetadata.serializeBinaryToWriter(this, writer);
|
|
|
|
+ return writer.getResultBuffer();
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the given message to binary data (in protobuf wire
|
|
|
|
+ * format), writing to the given BinaryWriter.
|
|
|
|
+ * @param {!proto.NewAssetMetadata} message
|
|
|
|
+ * @param {!jspb.BinaryWriter} writer
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
+ var f = undefined;
|
|
|
|
+ f = message.getUpload();
|
|
|
|
+ if (f != null) {
|
|
|
|
+ writer.writeMessage(
|
|
|
|
+ 1,
|
|
|
|
+ f,
|
|
|
|
+ proto.Upload.serializeBinaryToWriter
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ f = message.getUrls();
|
|
|
|
+ if (f != null) {
|
|
|
|
+ writer.writeMessage(
|
|
|
|
+ 2,
|
|
|
|
+ f,
|
|
|
|
+ proto.Urls.serializeBinaryToWriter
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional Upload upload = 1;
|
|
|
|
+ * @return {?proto.Upload}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.prototype.getUpload = function() {
|
|
|
|
+ return /** @type{?proto.Upload} */ (
|
|
|
|
+ jspb.Message.getWrapperField(this, proto.Upload, 1));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {?proto.Upload|undefined} value */
|
|
|
|
+proto.NewAssetMetadata.prototype.setUpload = function(value) {
|
|
|
|
+ jspb.Message.setOneofWrapperField(this, 1, proto.NewAssetMetadata.oneofGroups_[0], value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.NewAssetMetadata.prototype.clearUpload = function() {
|
|
|
|
+ this.setUpload(undefined);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Returns whether this field is set.
|
|
|
|
+ * @return {!boolean}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.prototype.hasUpload = function() {
|
|
|
|
+ return jspb.Message.getField(this, 1) != null;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional Urls urls = 2;
|
|
|
|
+ * @return {?proto.Urls}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.prototype.getUrls = function() {
|
|
|
|
+ return /** @type{?proto.Urls} */ (
|
|
|
|
+ jspb.Message.getWrapperField(this, proto.Urls, 2));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {?proto.Urls|undefined} value */
|
|
|
|
+proto.NewAssetMetadata.prototype.setUrls = function(value) {
|
|
|
|
+ jspb.Message.setOneofWrapperField(this, 2, proto.NewAssetMetadata.oneofGroups_[0], value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.NewAssetMetadata.prototype.clearUrls = function() {
|
|
|
|
+ this.setUrls(undefined);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Returns whether this field is set.
|
|
|
|
+ * @return {!boolean}
|
|
|
|
+ */
|
|
|
|
+proto.NewAssetMetadata.prototype.hasUrls = function() {
|
|
|
|
+ return jspb.Message.getField(this, 2) != null;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 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.AssetsMetadata = function(opt_data) {
|
|
|
|
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.AssetsMetadata.repeatedFields_, null);
|
|
|
|
+};
|
|
|
|
+goog.inherits(proto.AssetsMetadata, jspb.Message);
|
|
|
|
+if (goog.DEBUG && !COMPILED) {
|
|
|
|
+ proto.AssetsMetadata.displayName = 'proto.AssetsMetadata';
|
|
|
|
+}
|
|
|
|
+/**
|
|
|
|
+ * List of repeated fields within this message type.
|
|
|
|
+ * @private {!Array<number>}
|
|
|
|
+ * @const
|
|
|
|
+ */
|
|
|
|
+proto.AssetsMetadata.repeatedFields_ = [1];
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
+/**
|
|
|
|
+ * Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
+ * For the list of reserved names please see:
|
|
|
|
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
+ * for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ */
|
|
|
|
+proto.AssetsMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
+ return proto.AssetsMetadata.toObject(opt_includeInstance, this);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Static version of the {@see toObject} method.
|
|
|
|
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
+ * instance for transitional soy proto support:
|
|
|
|
+ * http://goto/soy-param-migration
|
|
|
|
+ * @param {!proto.AssetsMetadata} msg The msg instance to transform.
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.AssetsMetadata.toObject = function(includeInstance, msg) {
|
|
|
|
+ var f, obj = {
|
|
|
|
+ newAssetList: jspb.Message.toObjectList(msg.getNewAssetList(),
|
|
|
|
+ proto.NewAssetMetadata.toObject, includeInstance)
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ if (includeInstance) {
|
|
|
|
+ obj.$jspbMessageInstance = msg;
|
|
|
|
+ }
|
|
|
|
+ return obj;
|
|
|
|
+};
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Deserializes binary data (in protobuf wire format).
|
|
|
|
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
+ * @return {!proto.AssetsMetadata}
|
|
|
|
+ */
|
|
|
|
+proto.AssetsMetadata.deserializeBinary = function(bytes) {
|
|
|
|
+ var reader = new jspb.BinaryReader(bytes);
|
|
|
|
+ var msg = new proto.AssetsMetadata;
|
|
|
|
+ return proto.AssetsMetadata.deserializeBinaryFromReader(msg, reader);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Deserializes binary data (in protobuf wire format) from the
|
|
|
|
+ * given reader into the given message object.
|
|
|
|
+ * @param {!proto.AssetsMetadata} msg The message object to deserialize into.
|
|
|
|
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
+ * @return {!proto.AssetsMetadata}
|
|
|
|
+ */
|
|
|
|
+proto.AssetsMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
+ while (reader.nextField()) {
|
|
|
|
+ if (reader.isEndGroup()) {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ var field = reader.getFieldNumber();
|
|
|
|
+ switch (field) {
|
|
|
|
+ case 1:
|
|
|
|
+ var value = new proto.NewAssetMetadata;
|
|
|
|
+ reader.readMessage(value,proto.NewAssetMetadata.deserializeBinaryFromReader);
|
|
|
|
+ msg.addNewAsset(value);
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ reader.skipField();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return msg;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the message to binary data (in protobuf wire format).
|
|
|
|
+ * @return {!Uint8Array}
|
|
|
|
+ */
|
|
|
|
+proto.AssetsMetadata.prototype.serializeBinary = function() {
|
|
|
|
+ var writer = new jspb.BinaryWriter();
|
|
|
|
+ proto.AssetsMetadata.serializeBinaryToWriter(this, writer);
|
|
|
|
+ return writer.getResultBuffer();
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the given message to binary data (in protobuf wire
|
|
|
|
+ * format), writing to the given BinaryWriter.
|
|
|
|
+ * @param {!proto.AssetsMetadata} message
|
|
|
|
+ * @param {!jspb.BinaryWriter} writer
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.AssetsMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
+ var f = undefined;
|
|
|
|
+ f = message.getNewAssetList();
|
|
|
|
+ if (f.length > 0) {
|
|
|
|
+ writer.writeRepeatedMessage(
|
|
|
|
+ 1,
|
|
|
|
+ f,
|
|
|
|
+ proto.NewAssetMetadata.serializeBinaryToWriter
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * repeated NewAssetMetadata new_asset = 1;
|
|
|
|
+ * @return {!Array<!proto.NewAssetMetadata>}
|
|
|
|
+ */
|
|
|
|
+proto.AssetsMetadata.prototype.getNewAssetList = function() {
|
|
|
|
+ return /** @type{!Array<!proto.NewAssetMetadata>} */ (
|
|
|
|
+ jspb.Message.getRepeatedWrapperField(this, proto.NewAssetMetadata, 1));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {!Array<!proto.NewAssetMetadata>} value */
|
|
|
|
+proto.AssetsMetadata.prototype.setNewAssetList = function(value) {
|
|
|
|
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @param {!proto.NewAssetMetadata=} opt_value
|
|
|
|
+ * @param {number=} opt_index
|
|
|
|
+ * @return {!proto.NewAssetMetadata}
|
|
|
|
+ */
|
|
|
|
+proto.AssetsMetadata.prototype.addNewAsset = function(opt_value, opt_index) {
|
|
|
|
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.NewAssetMetadata, opt_index);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.AssetsMetadata.prototype.clearNewAssetList = function() {
|
|
|
|
+ this.setNewAssetList([]);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 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.ChannelCreationParametersMetadata = function(opt_data) {
|
|
|
|
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
+};
|
|
|
|
+goog.inherits(proto.ChannelCreationParametersMetadata, jspb.Message);
|
|
|
|
+if (goog.DEBUG && !COMPILED) {
|
|
|
|
+ proto.ChannelCreationParametersMetadata.displayName = 'proto.ChannelCreationParametersMetadata';
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
+/**
|
|
|
|
+ * Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
+ * For the list of reserved names please see:
|
|
|
|
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
+ * for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
+ return proto.ChannelCreationParametersMetadata.toObject(opt_includeInstance, this);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Static version of the {@see toObject} method.
|
|
|
|
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
+ * instance for transitional soy proto support:
|
|
|
|
+ * http://goto/soy-param-migration
|
|
|
|
+ * @param {!proto.ChannelCreationParametersMetadata} msg The msg instance to transform.
|
|
|
|
+ * @return {!Object}
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.toObject = function(includeInstance, msg) {
|
|
|
|
+ var f, obj = {
|
|
|
|
+ assets: (f = msg.getAssets()) && proto.AssetsMetadata.toObject(includeInstance, f),
|
|
|
|
+ meta: msg.getMeta_asB64(),
|
|
|
|
+ rewardAccount: msg.getRewardAccount_asB64()
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ if (includeInstance) {
|
|
|
|
+ obj.$jspbMessageInstance = msg;
|
|
|
|
+ }
|
|
|
|
+ return obj;
|
|
|
|
+};
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Deserializes binary data (in protobuf wire format).
|
|
|
|
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
+ * @return {!proto.ChannelCreationParametersMetadata}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.deserializeBinary = function(bytes) {
|
|
|
|
+ var reader = new jspb.BinaryReader(bytes);
|
|
|
|
+ var msg = new proto.ChannelCreationParametersMetadata;
|
|
|
|
+ return proto.ChannelCreationParametersMetadata.deserializeBinaryFromReader(msg, reader);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Deserializes binary data (in protobuf wire format) from the
|
|
|
|
+ * given reader into the given message object.
|
|
|
|
+ * @param {!proto.ChannelCreationParametersMetadata} msg The message object to deserialize into.
|
|
|
|
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
+ * @return {!proto.ChannelCreationParametersMetadata}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
+ while (reader.nextField()) {
|
|
|
|
+ if (reader.isEndGroup()) {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ var field = reader.getFieldNumber();
|
|
|
|
+ switch (field) {
|
|
|
|
+ case 1:
|
|
|
|
+ var value = new proto.AssetsMetadata;
|
|
|
|
+ reader.readMessage(value,proto.AssetsMetadata.deserializeBinaryFromReader);
|
|
|
|
+ msg.setAssets(value);
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
|
|
+ msg.setMeta(value);
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
|
|
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
|
|
+ msg.setRewardAccount(value);
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ reader.skipField();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return msg;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the message to binary data (in protobuf wire format).
|
|
|
|
+ * @return {!Uint8Array}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.serializeBinary = function() {
|
|
|
|
+ var writer = new jspb.BinaryWriter();
|
|
|
|
+ proto.ChannelCreationParametersMetadata.serializeBinaryToWriter(this, writer);
|
|
|
|
+ return writer.getResultBuffer();
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Serializes the given message to binary data (in protobuf wire
|
|
|
|
+ * format), writing to the given BinaryWriter.
|
|
|
|
+ * @param {!proto.ChannelCreationParametersMetadata} message
|
|
|
|
+ * @param {!jspb.BinaryWriter} writer
|
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
+ var f = undefined;
|
|
|
|
+ f = message.getAssets();
|
|
|
|
+ if (f != null) {
|
|
|
|
+ writer.writeMessage(
|
|
|
|
+ 1,
|
|
|
|
+ f,
|
|
|
|
+ proto.AssetsMetadata.serializeBinaryToWriter
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
|
|
|
+ if (f != null) {
|
|
|
|
+ writer.writeBytes(
|
|
|
|
+ 2,
|
|
|
|
+ f
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
|
|
|
|
+ if (f != null) {
|
|
|
|
+ writer.writeBytes(
|
|
|
|
+ 3,
|
|
|
|
+ f
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional AssetsMetadata assets = 1;
|
|
|
|
+ * @return {?proto.AssetsMetadata}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.getAssets = function() {
|
|
|
|
+ return /** @type{?proto.AssetsMetadata} */ (
|
|
|
|
+ jspb.Message.getWrapperField(this, proto.AssetsMetadata, 1));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {?proto.AssetsMetadata|undefined} value */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.setAssets = function(value) {
|
|
|
|
+ jspb.Message.setWrapperField(this, 1, value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.clearAssets = function() {
|
|
|
|
+ this.setAssets(undefined);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Returns whether this field is set.
|
|
|
|
+ * @return {!boolean}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.hasAssets = function() {
|
|
|
|
+ return jspb.Message.getField(this, 1) != null;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional bytes meta = 2;
|
|
|
|
+ * @return {!(string|Uint8Array)}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.getMeta = function() {
|
|
|
|
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional bytes meta = 2;
|
|
|
|
+ * This is a type-conversion wrapper around `getMeta()`
|
|
|
|
+ * @return {string}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.getMeta_asB64 = function() {
|
|
|
|
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
|
|
+ this.getMeta()));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional bytes meta = 2;
|
|
|
|
+ * Note that Uint8Array is not supported on all browsers.
|
|
|
|
+ * @see http://caniuse.com/Uint8Array
|
|
|
|
+ * This is a type-conversion wrapper around `getMeta()`
|
|
|
|
+ * @return {!Uint8Array}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.getMeta_asU8 = function() {
|
|
|
|
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
|
|
+ this.getMeta()));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {!(string|Uint8Array)} value */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.setMeta = function(value) {
|
|
|
|
+ jspb.Message.setField(this, 2, value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.clearMeta = function() {
|
|
|
|
+ jspb.Message.setField(this, 2, undefined);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Returns whether this field is set.
|
|
|
|
+ * @return {!boolean}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.hasMeta = function() {
|
|
|
|
+ return jspb.Message.getField(this, 2) != null;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional bytes reward_account = 3;
|
|
|
|
+ * @return {!(string|Uint8Array)}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.getRewardAccount = function() {
|
|
|
|
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional bytes reward_account = 3;
|
|
|
|
+ * This is a type-conversion wrapper around `getRewardAccount()`
|
|
|
|
+ * @return {string}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.getRewardAccount_asB64 = function() {
|
|
|
|
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
|
|
+ this.getRewardAccount()));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * optional bytes reward_account = 3;
|
|
|
|
+ * Note that Uint8Array is not supported on all browsers.
|
|
|
|
+ * @see http://caniuse.com/Uint8Array
|
|
|
|
+ * This is a type-conversion wrapper around `getRewardAccount()`
|
|
|
|
+ * @return {!Uint8Array}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.getRewardAccount_asU8 = function() {
|
|
|
|
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
|
|
+ this.getRewardAccount()));
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** @param {!(string|Uint8Array)} value */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.setRewardAccount = function(value) {
|
|
|
|
+ jspb.Message.setField(this, 3, value);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.clearRewardAccount = function() {
|
|
|
|
+ jspb.Message.setField(this, 3, undefined);
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Returns whether this field is set.
|
|
|
|
+ * @return {!boolean}
|
|
|
|
+ */
|
|
|
|
+proto.ChannelCreationParametersMetadata.prototype.hasRewardAccount = function() {
|
|
|
|
+ return jspb.Message.getField(this, 3) != null;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+goog.object.extend(exports, proto);
|