|
@@ -1,19 +1,43 @@
|
|
|
+// source: proto/Channel.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')();
|
|
|
|
|
|
-goog.exportSymbol('proto.muthu.other.ChannelCategoryMetadata', null, global);
|
|
|
-goog.exportSymbol('proto.muthu.other.ChannelMetadata', null, global);
|
|
|
-
|
|
|
+goog.exportSymbol('proto.ChannelCategoryMetadata', null, global);
|
|
|
+goog.exportSymbol('proto.ChannelMetadata', 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.ChannelMetadata = function(opt_data) {
|
|
|
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
+};
|
|
|
+goog.inherits(proto.ChannelMetadata, jspb.Message);
|
|
|
+if (goog.DEBUG && !COMPILED) {
|
|
|
+ /**
|
|
|
+ * @public
|
|
|
+ * @override
|
|
|
+ */
|
|
|
+ proto.ChannelMetadata.displayName = 'proto.ChannelMetadata';
|
|
|
+}
|
|
|
/**
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -24,49 +48,56 @@ goog.exportSymbol('proto.muthu.other.ChannelMetadata', null, global);
|
|
|
* @extends {jspb.Message}
|
|
|
* @constructor
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata = function(opt_data) {
|
|
|
+proto.ChannelCategoryMetadata = function(opt_data) {
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
};
|
|
|
-goog.inherits(proto.muthu.other.ChannelMetadata, jspb.Message);
|
|
|
+goog.inherits(proto.ChannelCategoryMetadata, jspb.Message);
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
- proto.muthu.other.ChannelMetadata.displayName = 'proto.muthu.other.ChannelMetadata';
|
|
|
+ /**
|
|
|
+ * @public
|
|
|
+ * @override
|
|
|
+ */
|
|
|
+ proto.ChannelCategoryMetadata.displayName = 'proto.ChannelCategoryMetadata';
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
/**
|
|
|
- * Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
+ * 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:
|
|
|
- * 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
|
|
|
+ * 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.muthu.other.ChannelMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
|
- return proto.muthu.other.ChannelMetadata.toObject(opt_includeInstance, this);
|
|
|
+proto.ChannelMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
|
+ return proto.ChannelMetadata.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:
|
|
|
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
+ * the JSPB instance for transitional soy proto support:
|
|
|
* http://goto/soy-param-migration
|
|
|
- * @param {!proto.muthu.other.ChannelMetadata} msg The msg instance to transform.
|
|
|
+ * @param {!proto.ChannelMetadata} msg The msg instance to transform.
|
|
|
* @return {!Object}
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.toObject = function(includeInstance, msg) {
|
|
|
+proto.ChannelMetadata.toObject = function(includeInstance, msg) {
|
|
|
var f, obj = {
|
|
|
- title: jspb.Message.getField(msg, 1),
|
|
|
- description: jspb.Message.getField(msg, 2),
|
|
|
- isPublic: jspb.Message.getField(msg, 3),
|
|
|
- language: jspb.Message.getField(msg, 4),
|
|
|
- coverPhoto: jspb.Message.getField(msg, 5),
|
|
|
- avatarPhoto: jspb.Message.getField(msg, 6),
|
|
|
- category: jspb.Message.getField(msg, 7)
|
|
|
+ title: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
|
|
+ description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
|
|
+ isPublic: (f = jspb.Message.getBooleanField(msg, 3)) == null ? undefined : f,
|
|
|
+ language: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
|
|
|
+ coverPhoto: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
|
|
|
+ avatarPhoto: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
|
|
|
+ category: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f
|
|
|
};
|
|
|
|
|
|
if (includeInstance) {
|
|
@@ -80,23 +111,23 @@ proto.muthu.other.ChannelMetadata.toObject = function(includeInstance, msg) {
|
|
|
/**
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
- * @return {!proto.muthu.other.ChannelMetadata}
|
|
|
+ * @return {!proto.ChannelMetadata}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.deserializeBinary = function(bytes) {
|
|
|
+proto.ChannelMetadata.deserializeBinary = function(bytes) {
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
- var msg = new proto.muthu.other.ChannelMetadata;
|
|
|
- return proto.muthu.other.ChannelMetadata.deserializeBinaryFromReader(msg, reader);
|
|
|
+ var msg = new proto.ChannelMetadata;
|
|
|
+ return proto.ChannelMetadata.deserializeBinaryFromReader(msg, reader);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
* given reader into the given message object.
|
|
|
- * @param {!proto.muthu.other.ChannelMetadata} msg The message object to deserialize into.
|
|
|
+ * @param {!proto.ChannelMetadata} msg The message object to deserialize into.
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
- * @return {!proto.muthu.other.ChannelMetadata}
|
|
|
+ * @return {!proto.ChannelMetadata}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
+proto.ChannelMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
while (reader.nextField()) {
|
|
|
if (reader.isEndGroup()) {
|
|
|
break;
|
|
@@ -144,9 +175,9 @@ proto.muthu.other.ChannelMetadata.deserializeBinaryFromReader = function(msg, re
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
* @return {!Uint8Array}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.serializeBinary = function() {
|
|
|
+proto.ChannelMetadata.prototype.serializeBinary = function() {
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
- proto.muthu.other.ChannelMetadata.serializeBinaryToWriter(this, writer);
|
|
|
+ proto.ChannelMetadata.serializeBinaryToWriter(this, writer);
|
|
|
return writer.getResultBuffer();
|
|
|
};
|
|
|
|
|
@@ -154,11 +185,11 @@ proto.muthu.other.ChannelMetadata.prototype.serializeBinary = function() {
|
|
|
/**
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
- * @param {!proto.muthu.other.ChannelMetadata} message
|
|
|
+ * @param {!proto.ChannelMetadata} message
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
|
+proto.ChannelMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
|
var f = undefined;
|
|
|
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
|
if (f != null) {
|
|
@@ -216,27 +247,34 @@ proto.muthu.other.ChannelMetadata.serializeBinaryToWriter = function(message, wr
|
|
|
* optional string title = 1;
|
|
|
* @return {string}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.getTitle = function() {
|
|
|
+proto.ChannelMetadata.prototype.getTitle = function() {
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
};
|
|
|
|
|
|
|
|
|
-/** @param {string} value */
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.setTitle = function(value) {
|
|
|
- jspb.Message.setField(this, 1, value);
|
|
|
+/**
|
|
|
+ * @param {string} value
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.setTitle = function(value) {
|
|
|
+ return jspb.Message.setField(this, 1, value);
|
|
|
};
|
|
|
|
|
|
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.clearTitle = function() {
|
|
|
- jspb.Message.setField(this, 1, undefined);
|
|
|
+/**
|
|
|
+ * Clears the field making it undefined.
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.clearTitle = function() {
|
|
|
+ return jspb.Message.setField(this, 1, undefined);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Returns whether this field is set.
|
|
|
- * @return {!boolean}
|
|
|
+ * @return {boolean}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.hasTitle = function() {
|
|
|
+proto.ChannelMetadata.prototype.hasTitle = function() {
|
|
|
return jspb.Message.getField(this, 1) != null;
|
|
|
};
|
|
|
|
|
@@ -245,58 +283,70 @@ proto.muthu.other.ChannelMetadata.prototype.hasTitle = function() {
|
|
|
* optional string description = 2;
|
|
|
* @return {string}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.getDescription = function() {
|
|
|
+proto.ChannelMetadata.prototype.getDescription = function() {
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
};
|
|
|
|
|
|
|
|
|
-/** @param {string} value */
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.setDescription = function(value) {
|
|
|
- jspb.Message.setField(this, 2, value);
|
|
|
+/**
|
|
|
+ * @param {string} value
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.setDescription = function(value) {
|
|
|
+ return jspb.Message.setField(this, 2, value);
|
|
|
};
|
|
|
|
|
|
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.clearDescription = function() {
|
|
|
- jspb.Message.setField(this, 2, undefined);
|
|
|
+/**
|
|
|
+ * Clears the field making it undefined.
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.clearDescription = function() {
|
|
|
+ return jspb.Message.setField(this, 2, undefined);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Returns whether this field is set.
|
|
|
- * @return {!boolean}
|
|
|
+ * @return {boolean}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.hasDescription = function() {
|
|
|
+proto.ChannelMetadata.prototype.hasDescription = function() {
|
|
|
return jspb.Message.getField(this, 2) != null;
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* optional bool is_public = 3;
|
|
|
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
|
- * You should avoid comparisons like {@code val === true/false} in those cases.
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.getIsPublic = function() {
|
|
|
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false));
|
|
|
+proto.ChannelMetadata.prototype.getIsPublic = function() {
|
|
|
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
|
};
|
|
|
|
|
|
|
|
|
-/** @param {boolean} value */
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.setIsPublic = function(value) {
|
|
|
- jspb.Message.setField(this, 3, value);
|
|
|
+/**
|
|
|
+ * @param {boolean} value
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.setIsPublic = function(value) {
|
|
|
+ return jspb.Message.setField(this, 3, value);
|
|
|
};
|
|
|
|
|
|
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.clearIsPublic = function() {
|
|
|
- jspb.Message.setField(this, 3, undefined);
|
|
|
+/**
|
|
|
+ * Clears the field making it undefined.
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.clearIsPublic = function() {
|
|
|
+ return jspb.Message.setField(this, 3, undefined);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Returns whether this field is set.
|
|
|
- * @return {!boolean}
|
|
|
+ * @return {boolean}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.hasIsPublic = function() {
|
|
|
+proto.ChannelMetadata.prototype.hasIsPublic = function() {
|
|
|
return jspb.Message.getField(this, 3) != null;
|
|
|
};
|
|
|
|
|
@@ -305,27 +355,34 @@ proto.muthu.other.ChannelMetadata.prototype.hasIsPublic = function() {
|
|
|
* optional string language = 4;
|
|
|
* @return {string}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.getLanguage = function() {
|
|
|
+proto.ChannelMetadata.prototype.getLanguage = function() {
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
};
|
|
|
|
|
|
|
|
|
-/** @param {string} value */
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.setLanguage = function(value) {
|
|
|
- jspb.Message.setField(this, 4, value);
|
|
|
+/**
|
|
|
+ * @param {string} value
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.setLanguage = function(value) {
|
|
|
+ return jspb.Message.setField(this, 4, value);
|
|
|
};
|
|
|
|
|
|
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.clearLanguage = function() {
|
|
|
- jspb.Message.setField(this, 4, undefined);
|
|
|
+/**
|
|
|
+ * Clears the field making it undefined.
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.clearLanguage = function() {
|
|
|
+ return jspb.Message.setField(this, 4, undefined);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Returns whether this field is set.
|
|
|
- * @return {!boolean}
|
|
|
+ * @return {boolean}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.hasLanguage = function() {
|
|
|
+proto.ChannelMetadata.prototype.hasLanguage = function() {
|
|
|
return jspb.Message.getField(this, 4) != null;
|
|
|
};
|
|
|
|
|
@@ -334,27 +391,34 @@ proto.muthu.other.ChannelMetadata.prototype.hasLanguage = function() {
|
|
|
* optional uint32 cover_photo = 5;
|
|
|
* @return {number}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.getCoverPhoto = function() {
|
|
|
+proto.ChannelMetadata.prototype.getCoverPhoto = function() {
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
|
};
|
|
|
|
|
|
|
|
|
-/** @param {number} value */
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.setCoverPhoto = function(value) {
|
|
|
- jspb.Message.setField(this, 5, value);
|
|
|
+/**
|
|
|
+ * @param {number} value
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.setCoverPhoto = function(value) {
|
|
|
+ return jspb.Message.setField(this, 5, value);
|
|
|
};
|
|
|
|
|
|
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.clearCoverPhoto = function() {
|
|
|
- jspb.Message.setField(this, 5, undefined);
|
|
|
+/**
|
|
|
+ * Clears the field making it undefined.
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.clearCoverPhoto = function() {
|
|
|
+ return jspb.Message.setField(this, 5, undefined);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Returns whether this field is set.
|
|
|
- * @return {!boolean}
|
|
|
+ * @return {boolean}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.hasCoverPhoto = function() {
|
|
|
+proto.ChannelMetadata.prototype.hasCoverPhoto = function() {
|
|
|
return jspb.Message.getField(this, 5) != null;
|
|
|
};
|
|
|
|
|
@@ -363,27 +427,34 @@ proto.muthu.other.ChannelMetadata.prototype.hasCoverPhoto = function() {
|
|
|
* optional uint32 avatar_photo = 6;
|
|
|
* @return {number}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.getAvatarPhoto = function() {
|
|
|
+proto.ChannelMetadata.prototype.getAvatarPhoto = function() {
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
|
};
|
|
|
|
|
|
|
|
|
-/** @param {number} value */
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.setAvatarPhoto = function(value) {
|
|
|
- jspb.Message.setField(this, 6, value);
|
|
|
+/**
|
|
|
+ * @param {number} value
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.setAvatarPhoto = function(value) {
|
|
|
+ return jspb.Message.setField(this, 6, value);
|
|
|
};
|
|
|
|
|
|
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.clearAvatarPhoto = function() {
|
|
|
- jspb.Message.setField(this, 6, undefined);
|
|
|
+/**
|
|
|
+ * Clears the field making it undefined.
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.clearAvatarPhoto = function() {
|
|
|
+ return jspb.Message.setField(this, 6, undefined);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Returns whether this field is set.
|
|
|
- * @return {!boolean}
|
|
|
+ * @return {boolean}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.hasAvatarPhoto = function() {
|
|
|
+proto.ChannelMetadata.prototype.hasAvatarPhoto = function() {
|
|
|
return jspb.Message.getField(this, 6) != null;
|
|
|
};
|
|
|
|
|
@@ -392,79 +463,71 @@ proto.muthu.other.ChannelMetadata.prototype.hasAvatarPhoto = function() {
|
|
|
* optional uint64 category = 7;
|
|
|
* @return {number}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.getCategory = function() {
|
|
|
+proto.ChannelMetadata.prototype.getCategory = function() {
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
|
};
|
|
|
|
|
|
|
|
|
-/** @param {number} value */
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.setCategory = function(value) {
|
|
|
- jspb.Message.setField(this, 7, value);
|
|
|
+/**
|
|
|
+ * @param {number} value
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.setCategory = function(value) {
|
|
|
+ return jspb.Message.setField(this, 7, value);
|
|
|
};
|
|
|
|
|
|
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.clearCategory = function() {
|
|
|
- jspb.Message.setField(this, 7, undefined);
|
|
|
+/**
|
|
|
+ * Clears the field making it undefined.
|
|
|
+ * @return {!proto.ChannelMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelMetadata.prototype.clearCategory = function() {
|
|
|
+ return jspb.Message.setField(this, 7, undefined);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Returns whether this field is set.
|
|
|
- * @return {!boolean}
|
|
|
+ * @return {boolean}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelMetadata.prototype.hasCategory = function() {
|
|
|
+proto.ChannelMetadata.prototype.hasCategory = function() {
|
|
|
return jspb.Message.getField(this, 7) != 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.muthu.other.ChannelCategoryMetadata = function(opt_data) {
|
|
|
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
-};
|
|
|
-goog.inherits(proto.muthu.other.ChannelCategoryMetadata, jspb.Message);
|
|
|
-if (goog.DEBUG && !COMPILED) {
|
|
|
- proto.muthu.other.ChannelCategoryMetadata.displayName = 'proto.muthu.other.ChannelCategoryMetadata';
|
|
|
-}
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
/**
|
|
|
- * Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
+ * 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:
|
|
|
- * 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
|
|
|
+ * 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.muthu.other.ChannelCategoryMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
|
- return proto.muthu.other.ChannelCategoryMetadata.toObject(opt_includeInstance, this);
|
|
|
+proto.ChannelCategoryMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
|
+ return proto.ChannelCategoryMetadata.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:
|
|
|
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
+ * the JSPB instance for transitional soy proto support:
|
|
|
* http://goto/soy-param-migration
|
|
|
- * @param {!proto.muthu.other.ChannelCategoryMetadata} msg The msg instance to transform.
|
|
|
+ * @param {!proto.ChannelCategoryMetadata} msg The msg instance to transform.
|
|
|
* @return {!Object}
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelCategoryMetadata.toObject = function(includeInstance, msg) {
|
|
|
+proto.ChannelCategoryMetadata.toObject = function(includeInstance, msg) {
|
|
|
var f, obj = {
|
|
|
- name: jspb.Message.getField(msg, 1)
|
|
|
+ name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
|
|
|
};
|
|
|
|
|
|
if (includeInstance) {
|
|
@@ -478,23 +541,23 @@ proto.muthu.other.ChannelCategoryMetadata.toObject = function(includeInstance, m
|
|
|
/**
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
- * @return {!proto.muthu.other.ChannelCategoryMetadata}
|
|
|
+ * @return {!proto.ChannelCategoryMetadata}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelCategoryMetadata.deserializeBinary = function(bytes) {
|
|
|
+proto.ChannelCategoryMetadata.deserializeBinary = function(bytes) {
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
- var msg = new proto.muthu.other.ChannelCategoryMetadata;
|
|
|
- return proto.muthu.other.ChannelCategoryMetadata.deserializeBinaryFromReader(msg, reader);
|
|
|
+ var msg = new proto.ChannelCategoryMetadata;
|
|
|
+ return proto.ChannelCategoryMetadata.deserializeBinaryFromReader(msg, reader);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
* given reader into the given message object.
|
|
|
- * @param {!proto.muthu.other.ChannelCategoryMetadata} msg The message object to deserialize into.
|
|
|
+ * @param {!proto.ChannelCategoryMetadata} msg The message object to deserialize into.
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
- * @return {!proto.muthu.other.ChannelCategoryMetadata}
|
|
|
+ * @return {!proto.ChannelCategoryMetadata}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelCategoryMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
+proto.ChannelCategoryMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
while (reader.nextField()) {
|
|
|
if (reader.isEndGroup()) {
|
|
|
break;
|
|
@@ -518,9 +581,9 @@ proto.muthu.other.ChannelCategoryMetadata.deserializeBinaryFromReader = function
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
* @return {!Uint8Array}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelCategoryMetadata.prototype.serializeBinary = function() {
|
|
|
+proto.ChannelCategoryMetadata.prototype.serializeBinary = function() {
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
- proto.muthu.other.ChannelCategoryMetadata.serializeBinaryToWriter(this, writer);
|
|
|
+ proto.ChannelCategoryMetadata.serializeBinaryToWriter(this, writer);
|
|
|
return writer.getResultBuffer();
|
|
|
};
|
|
|
|
|
@@ -528,11 +591,11 @@ proto.muthu.other.ChannelCategoryMetadata.prototype.serializeBinary = function()
|
|
|
/**
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
- * @param {!proto.muthu.other.ChannelCategoryMetadata} message
|
|
|
+ * @param {!proto.ChannelCategoryMetadata} message
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelCategoryMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
|
+proto.ChannelCategoryMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
|
var f = undefined;
|
|
|
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
|
if (f != null) {
|
|
@@ -548,29 +611,36 @@ proto.muthu.other.ChannelCategoryMetadata.serializeBinaryToWriter = function(mes
|
|
|
* optional string name = 1;
|
|
|
* @return {string}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelCategoryMetadata.prototype.getName = function() {
|
|
|
+proto.ChannelCategoryMetadata.prototype.getName = function() {
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
};
|
|
|
|
|
|
|
|
|
-/** @param {string} value */
|
|
|
-proto.muthu.other.ChannelCategoryMetadata.prototype.setName = function(value) {
|
|
|
- jspb.Message.setField(this, 1, value);
|
|
|
+/**
|
|
|
+ * @param {string} value
|
|
|
+ * @return {!proto.ChannelCategoryMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelCategoryMetadata.prototype.setName = function(value) {
|
|
|
+ return jspb.Message.setField(this, 1, value);
|
|
|
};
|
|
|
|
|
|
|
|
|
-proto.muthu.other.ChannelCategoryMetadata.prototype.clearName = function() {
|
|
|
- jspb.Message.setField(this, 1, undefined);
|
|
|
+/**
|
|
|
+ * Clears the field making it undefined.
|
|
|
+ * @return {!proto.ChannelCategoryMetadata} returns this
|
|
|
+ */
|
|
|
+proto.ChannelCategoryMetadata.prototype.clearName = function() {
|
|
|
+ return jspb.Message.setField(this, 1, undefined);
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Returns whether this field is set.
|
|
|
- * @return {!boolean}
|
|
|
+ * @return {boolean}
|
|
|
*/
|
|
|
-proto.muthu.other.ChannelCategoryMetadata.prototype.hasName = function() {
|
|
|
+proto.ChannelCategoryMetadata.prototype.hasName = function() {
|
|
|
return jspb.Message.getField(this, 1) != null;
|
|
|
};
|
|
|
|
|
|
|
|
|
-goog.object.extend(exports, proto.muthu.other);
|
|
|
+goog.object.extend(exports, proto);
|