protobuf-platform 1.0.56 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/game/game_pb.js CHANGED
@@ -39,9 +39,17 @@ goog.exportSymbol('proto.game.File', null, global);
39
39
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
40
40
  goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
41
41
  goog.exportSymbol('proto.game.GetFileRequest', null, global);
42
+ goog.exportSymbol('proto.game.GetTagRequest', null, global);
42
43
  goog.exportSymbol('proto.game.PaginationRequest', null, global);
43
44
  goog.exportSymbol('proto.game.PingRequest', null, global);
44
45
  goog.exportSymbol('proto.game.PongResponse', null, global);
46
+ goog.exportSymbol('proto.game.TagItem', null, global);
47
+ goog.exportSymbol('proto.game.TagItemRequest', null, global);
48
+ goog.exportSymbol('proto.game.TagItemsResponse', null, global);
49
+ goog.exportSymbol('proto.game.TagRequest', null, global);
50
+ goog.exportSymbol('proto.game.TagRequest.RequestCase', null, global);
51
+ goog.exportSymbol('proto.game.TagResponse', null, global);
52
+ goog.exportSymbol('proto.game.TagStatusResponse', null, global);
45
53
  /**
46
54
  * Generated by JsPbCodeGenerator.
47
55
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -441,6 +449,153 @@ if (goog.DEBUG && !COMPILED) {
441
449
  */
442
450
  proto.game.CollectionStatusResponse.displayName = 'proto.game.CollectionStatusResponse';
443
451
  }
452
+ /**
453
+ * Generated by JsPbCodeGenerator.
454
+ * @param {Array=} opt_data Optional initial data array, typically from a
455
+ * server response, or constructed directly in Javascript. The array is used
456
+ * in place and becomes part of the constructed object. It is not cloned.
457
+ * If no data is provided, the constructed object will be empty, but still
458
+ * valid.
459
+ * @extends {jspb.Message}
460
+ * @constructor
461
+ */
462
+ proto.game.TagItem = function(opt_data) {
463
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
464
+ };
465
+ goog.inherits(proto.game.TagItem, jspb.Message);
466
+ if (goog.DEBUG && !COMPILED) {
467
+ /**
468
+ * @public
469
+ * @override
470
+ */
471
+ proto.game.TagItem.displayName = 'proto.game.TagItem';
472
+ }
473
+ /**
474
+ * Generated by JsPbCodeGenerator.
475
+ * @param {Array=} opt_data Optional initial data array, typically from a
476
+ * server response, or constructed directly in Javascript. The array is used
477
+ * in place and becomes part of the constructed object. It is not cloned.
478
+ * If no data is provided, the constructed object will be empty, but still
479
+ * valid.
480
+ * @extends {jspb.Message}
481
+ * @constructor
482
+ */
483
+ proto.game.TagRequest = function(opt_data) {
484
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.game.TagRequest.oneofGroups_);
485
+ };
486
+ goog.inherits(proto.game.TagRequest, jspb.Message);
487
+ if (goog.DEBUG && !COMPILED) {
488
+ /**
489
+ * @public
490
+ * @override
491
+ */
492
+ proto.game.TagRequest.displayName = 'proto.game.TagRequest';
493
+ }
494
+ /**
495
+ * Generated by JsPbCodeGenerator.
496
+ * @param {Array=} opt_data Optional initial data array, typically from a
497
+ * server response, or constructed directly in Javascript. The array is used
498
+ * in place and becomes part of the constructed object. It is not cloned.
499
+ * If no data is provided, the constructed object will be empty, but still
500
+ * valid.
501
+ * @extends {jspb.Message}
502
+ * @constructor
503
+ */
504
+ proto.game.TagItemRequest = function(opt_data) {
505
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
506
+ };
507
+ goog.inherits(proto.game.TagItemRequest, jspb.Message);
508
+ if (goog.DEBUG && !COMPILED) {
509
+ /**
510
+ * @public
511
+ * @override
512
+ */
513
+ proto.game.TagItemRequest.displayName = 'proto.game.TagItemRequest';
514
+ }
515
+ /**
516
+ * Generated by JsPbCodeGenerator.
517
+ * @param {Array=} opt_data Optional initial data array, typically from a
518
+ * server response, or constructed directly in Javascript. The array is used
519
+ * in place and becomes part of the constructed object. It is not cloned.
520
+ * If no data is provided, the constructed object will be empty, but still
521
+ * valid.
522
+ * @extends {jspb.Message}
523
+ * @constructor
524
+ */
525
+ proto.game.GetTagRequest = function(opt_data) {
526
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
527
+ };
528
+ goog.inherits(proto.game.GetTagRequest, jspb.Message);
529
+ if (goog.DEBUG && !COMPILED) {
530
+ /**
531
+ * @public
532
+ * @override
533
+ */
534
+ proto.game.GetTagRequest.displayName = 'proto.game.GetTagRequest';
535
+ }
536
+ /**
537
+ * Generated by JsPbCodeGenerator.
538
+ * @param {Array=} opt_data Optional initial data array, typically from a
539
+ * server response, or constructed directly in Javascript. The array is used
540
+ * in place and becomes part of the constructed object. It is not cloned.
541
+ * If no data is provided, the constructed object will be empty, but still
542
+ * valid.
543
+ * @extends {jspb.Message}
544
+ * @constructor
545
+ */
546
+ proto.game.TagResponse = function(opt_data) {
547
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
548
+ };
549
+ goog.inherits(proto.game.TagResponse, jspb.Message);
550
+ if (goog.DEBUG && !COMPILED) {
551
+ /**
552
+ * @public
553
+ * @override
554
+ */
555
+ proto.game.TagResponse.displayName = 'proto.game.TagResponse';
556
+ }
557
+ /**
558
+ * Generated by JsPbCodeGenerator.
559
+ * @param {Array=} opt_data Optional initial data array, typically from a
560
+ * server response, or constructed directly in Javascript. The array is used
561
+ * in place and becomes part of the constructed object. It is not cloned.
562
+ * If no data is provided, the constructed object will be empty, but still
563
+ * valid.
564
+ * @extends {jspb.Message}
565
+ * @constructor
566
+ */
567
+ proto.game.TagItemsResponse = function(opt_data) {
568
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.TagItemsResponse.repeatedFields_, null);
569
+ };
570
+ goog.inherits(proto.game.TagItemsResponse, jspb.Message);
571
+ if (goog.DEBUG && !COMPILED) {
572
+ /**
573
+ * @public
574
+ * @override
575
+ */
576
+ proto.game.TagItemsResponse.displayName = 'proto.game.TagItemsResponse';
577
+ }
578
+ /**
579
+ * Generated by JsPbCodeGenerator.
580
+ * @param {Array=} opt_data Optional initial data array, typically from a
581
+ * server response, or constructed directly in Javascript. The array is used
582
+ * in place and becomes part of the constructed object. It is not cloned.
583
+ * If no data is provided, the constructed object will be empty, but still
584
+ * valid.
585
+ * @extends {jspb.Message}
586
+ * @constructor
587
+ */
588
+ proto.game.TagStatusResponse = function(opt_data) {
589
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
590
+ };
591
+ goog.inherits(proto.game.TagStatusResponse, jspb.Message);
592
+ if (goog.DEBUG && !COMPILED) {
593
+ /**
594
+ * @public
595
+ * @override
596
+ */
597
+ proto.game.TagStatusResponse.displayName = 'proto.game.TagStatusResponse';
598
+ }
444
599
 
445
600
 
446
601
 
@@ -2927,7 +3082,7 @@ proto.game.CollectionItem.prototype.toObject = function(opt_includeInstance) {
2927
3082
  proto.game.CollectionItem.toObject = function(includeInstance, msg) {
2928
3083
  var f, obj = {
2929
3084
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2930
- categoryId: jspb.Message.getFieldWithDefault(msg, 2, 0),
3085
+ category: (f = msg.getCategory()) && proto.game.CategoryItem.toObject(includeInstance, f),
2931
3086
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
2932
3087
  slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
2933
3088
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
@@ -2974,8 +3129,9 @@ proto.game.CollectionItem.deserializeBinaryFromReader = function(msg, reader) {
2974
3129
  msg.setId(value);
2975
3130
  break;
2976
3131
  case 2:
2977
- var value = /** @type {number} */ (reader.readInt32());
2978
- msg.setCategoryId(value);
3132
+ var value = new proto.game.CategoryItem;
3133
+ reader.readMessage(value,proto.game.CategoryItem.deserializeBinaryFromReader);
3134
+ msg.setCategory(value);
2979
3135
  break;
2980
3136
  case 3:
2981
3137
  var value = /** @type {string} */ (reader.readString());
@@ -3033,11 +3189,12 @@ proto.game.CollectionItem.serializeBinaryToWriter = function(message, writer) {
3033
3189
  f
3034
3190
  );
3035
3191
  }
3036
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
3192
+ f = message.getCategory();
3037
3193
  if (f != null) {
3038
- writer.writeInt32(
3194
+ writer.writeMessage(
3039
3195
  2,
3040
- f
3196
+ f,
3197
+ proto.game.CategoryItem.serializeBinaryToWriter
3041
3198
  );
3042
3199
  }
3043
3200
  f = /** @type {string} */ (jspb.Message.getField(message, 3));
@@ -3115,29 +3272,30 @@ proto.game.CollectionItem.prototype.hasId = function() {
3115
3272
 
3116
3273
 
3117
3274
  /**
3118
- * optional int32 category_id = 2;
3119
- * @return {number}
3275
+ * optional CategoryItem category = 2;
3276
+ * @return {?proto.game.CategoryItem}
3120
3277
  */
3121
- proto.game.CollectionItem.prototype.getCategoryId = function() {
3122
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3278
+ proto.game.CollectionItem.prototype.getCategory = function() {
3279
+ return /** @type{?proto.game.CategoryItem} */ (
3280
+ jspb.Message.getWrapperField(this, proto.game.CategoryItem, 2));
3123
3281
  };
3124
3282
 
3125
3283
 
3126
3284
  /**
3127
- * @param {number} value
3285
+ * @param {?proto.game.CategoryItem|undefined} value
3128
3286
  * @return {!proto.game.CollectionItem} returns this
3129
- */
3130
- proto.game.CollectionItem.prototype.setCategoryId = function(value) {
3131
- return jspb.Message.setField(this, 2, value);
3287
+ */
3288
+ proto.game.CollectionItem.prototype.setCategory = function(value) {
3289
+ return jspb.Message.setWrapperField(this, 2, value);
3132
3290
  };
3133
3291
 
3134
3292
 
3135
3293
  /**
3136
- * Clears the field making it undefined.
3294
+ * Clears the message field making it undefined.
3137
3295
  * @return {!proto.game.CollectionItem} returns this
3138
3296
  */
3139
- proto.game.CollectionItem.prototype.clearCategoryId = function() {
3140
- return jspb.Message.setField(this, 2, undefined);
3297
+ proto.game.CollectionItem.prototype.clearCategory = function() {
3298
+ return this.setCategory(undefined);
3141
3299
  };
3142
3300
 
3143
3301
 
@@ -3145,7 +3303,7 @@ proto.game.CollectionItem.prototype.clearCategoryId = function() {
3145
3303
  * Returns whether this field is set.
3146
3304
  * @return {boolean}
3147
3305
  */
3148
- proto.game.CollectionItem.prototype.hasCategoryId = function() {
3306
+ proto.game.CollectionItem.prototype.hasCategory = function() {
3149
3307
  return jspb.Message.getField(this, 2) != null;
3150
3308
  };
3151
3309
 
@@ -4709,4 +4867,1723 @@ proto.game.CollectionStatusResponse.prototype.setStatus = function(value) {
4709
4867
  };
4710
4868
 
4711
4869
 
4870
+
4871
+
4872
+
4873
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4874
+ /**
4875
+ * Creates an object representation of this proto.
4876
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4877
+ * Optional fields that are not set will be set to undefined.
4878
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4879
+ * For the list of reserved names please see:
4880
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4881
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4882
+ * JSPB instance for transitional soy proto support:
4883
+ * http://goto/soy-param-migration
4884
+ * @return {!Object}
4885
+ */
4886
+ proto.game.TagItem.prototype.toObject = function(opt_includeInstance) {
4887
+ return proto.game.TagItem.toObject(opt_includeInstance, this);
4888
+ };
4889
+
4890
+
4891
+ /**
4892
+ * Static version of the {@see toObject} method.
4893
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4894
+ * the JSPB instance for transitional soy proto support:
4895
+ * http://goto/soy-param-migration
4896
+ * @param {!proto.game.TagItem} msg The msg instance to transform.
4897
+ * @return {!Object}
4898
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4899
+ */
4900
+ proto.game.TagItem.toObject = function(includeInstance, msg) {
4901
+ var f, obj = {
4902
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
4903
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
4904
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
4905
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
4906
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
4907
+ image: jspb.Message.getFieldWithDefault(msg, 6, "")
4908
+ };
4909
+
4910
+ if (includeInstance) {
4911
+ obj.$jspbMessageInstance = msg;
4912
+ }
4913
+ return obj;
4914
+ };
4915
+ }
4916
+
4917
+
4918
+ /**
4919
+ * Deserializes binary data (in protobuf wire format).
4920
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4921
+ * @return {!proto.game.TagItem}
4922
+ */
4923
+ proto.game.TagItem.deserializeBinary = function(bytes) {
4924
+ var reader = new jspb.BinaryReader(bytes);
4925
+ var msg = new proto.game.TagItem;
4926
+ return proto.game.TagItem.deserializeBinaryFromReader(msg, reader);
4927
+ };
4928
+
4929
+
4930
+ /**
4931
+ * Deserializes binary data (in protobuf wire format) from the
4932
+ * given reader into the given message object.
4933
+ * @param {!proto.game.TagItem} msg The message object to deserialize into.
4934
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4935
+ * @return {!proto.game.TagItem}
4936
+ */
4937
+ proto.game.TagItem.deserializeBinaryFromReader = function(msg, reader) {
4938
+ while (reader.nextField()) {
4939
+ if (reader.isEndGroup()) {
4940
+ break;
4941
+ }
4942
+ var field = reader.getFieldNumber();
4943
+ switch (field) {
4944
+ case 1:
4945
+ var value = /** @type {number} */ (reader.readInt32());
4946
+ msg.setId(value);
4947
+ break;
4948
+ case 2:
4949
+ var value = /** @type {string} */ (reader.readString());
4950
+ msg.setTitle(value);
4951
+ break;
4952
+ case 3:
4953
+ var value = /** @type {string} */ (reader.readString());
4954
+ msg.setSlug(value);
4955
+ break;
4956
+ case 4:
4957
+ var value = /** @type {string} */ (reader.readString());
4958
+ msg.setDescription(value);
4959
+ break;
4960
+ case 5:
4961
+ var value = /** @type {number} */ (reader.readInt32());
4962
+ msg.setIsActive(value);
4963
+ break;
4964
+ case 6:
4965
+ var value = /** @type {string} */ (reader.readString());
4966
+ msg.setImage(value);
4967
+ break;
4968
+ default:
4969
+ reader.skipField();
4970
+ break;
4971
+ }
4972
+ }
4973
+ return msg;
4974
+ };
4975
+
4976
+
4977
+ /**
4978
+ * Serializes the message to binary data (in protobuf wire format).
4979
+ * @return {!Uint8Array}
4980
+ */
4981
+ proto.game.TagItem.prototype.serializeBinary = function() {
4982
+ var writer = new jspb.BinaryWriter();
4983
+ proto.game.TagItem.serializeBinaryToWriter(this, writer);
4984
+ return writer.getResultBuffer();
4985
+ };
4986
+
4987
+
4988
+ /**
4989
+ * Serializes the given message to binary data (in protobuf wire
4990
+ * format), writing to the given BinaryWriter.
4991
+ * @param {!proto.game.TagItem} message
4992
+ * @param {!jspb.BinaryWriter} writer
4993
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4994
+ */
4995
+ proto.game.TagItem.serializeBinaryToWriter = function(message, writer) {
4996
+ var f = undefined;
4997
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
4998
+ if (f != null) {
4999
+ writer.writeInt32(
5000
+ 1,
5001
+ f
5002
+ );
5003
+ }
5004
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
5005
+ if (f != null) {
5006
+ writer.writeString(
5007
+ 2,
5008
+ f
5009
+ );
5010
+ }
5011
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
5012
+ if (f != null) {
5013
+ writer.writeString(
5014
+ 3,
5015
+ f
5016
+ );
5017
+ }
5018
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
5019
+ if (f != null) {
5020
+ writer.writeString(
5021
+ 4,
5022
+ f
5023
+ );
5024
+ }
5025
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
5026
+ if (f != null) {
5027
+ writer.writeInt32(
5028
+ 5,
5029
+ f
5030
+ );
5031
+ }
5032
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5033
+ if (f != null) {
5034
+ writer.writeString(
5035
+ 6,
5036
+ f
5037
+ );
5038
+ }
5039
+ };
5040
+
5041
+
5042
+ /**
5043
+ * optional int32 id = 1;
5044
+ * @return {number}
5045
+ */
5046
+ proto.game.TagItem.prototype.getId = function() {
5047
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5048
+ };
5049
+
5050
+
5051
+ /**
5052
+ * @param {number} value
5053
+ * @return {!proto.game.TagItem} returns this
5054
+ */
5055
+ proto.game.TagItem.prototype.setId = function(value) {
5056
+ return jspb.Message.setField(this, 1, value);
5057
+ };
5058
+
5059
+
5060
+ /**
5061
+ * Clears the field making it undefined.
5062
+ * @return {!proto.game.TagItem} returns this
5063
+ */
5064
+ proto.game.TagItem.prototype.clearId = function() {
5065
+ return jspb.Message.setField(this, 1, undefined);
5066
+ };
5067
+
5068
+
5069
+ /**
5070
+ * Returns whether this field is set.
5071
+ * @return {boolean}
5072
+ */
5073
+ proto.game.TagItem.prototype.hasId = function() {
5074
+ return jspb.Message.getField(this, 1) != null;
5075
+ };
5076
+
5077
+
5078
+ /**
5079
+ * optional string title = 2;
5080
+ * @return {string}
5081
+ */
5082
+ proto.game.TagItem.prototype.getTitle = function() {
5083
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5084
+ };
5085
+
5086
+
5087
+ /**
5088
+ * @param {string} value
5089
+ * @return {!proto.game.TagItem} returns this
5090
+ */
5091
+ proto.game.TagItem.prototype.setTitle = function(value) {
5092
+ return jspb.Message.setField(this, 2, value);
5093
+ };
5094
+
5095
+
5096
+ /**
5097
+ * Clears the field making it undefined.
5098
+ * @return {!proto.game.TagItem} returns this
5099
+ */
5100
+ proto.game.TagItem.prototype.clearTitle = function() {
5101
+ return jspb.Message.setField(this, 2, undefined);
5102
+ };
5103
+
5104
+
5105
+ /**
5106
+ * Returns whether this field is set.
5107
+ * @return {boolean}
5108
+ */
5109
+ proto.game.TagItem.prototype.hasTitle = function() {
5110
+ return jspb.Message.getField(this, 2) != null;
5111
+ };
5112
+
5113
+
5114
+ /**
5115
+ * optional string slug = 3;
5116
+ * @return {string}
5117
+ */
5118
+ proto.game.TagItem.prototype.getSlug = function() {
5119
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5120
+ };
5121
+
5122
+
5123
+ /**
5124
+ * @param {string} value
5125
+ * @return {!proto.game.TagItem} returns this
5126
+ */
5127
+ proto.game.TagItem.prototype.setSlug = function(value) {
5128
+ return jspb.Message.setField(this, 3, value);
5129
+ };
5130
+
5131
+
5132
+ /**
5133
+ * Clears the field making it undefined.
5134
+ * @return {!proto.game.TagItem} returns this
5135
+ */
5136
+ proto.game.TagItem.prototype.clearSlug = function() {
5137
+ return jspb.Message.setField(this, 3, undefined);
5138
+ };
5139
+
5140
+
5141
+ /**
5142
+ * Returns whether this field is set.
5143
+ * @return {boolean}
5144
+ */
5145
+ proto.game.TagItem.prototype.hasSlug = function() {
5146
+ return jspb.Message.getField(this, 3) != null;
5147
+ };
5148
+
5149
+
5150
+ /**
5151
+ * optional string description = 4;
5152
+ * @return {string}
5153
+ */
5154
+ proto.game.TagItem.prototype.getDescription = function() {
5155
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5156
+ };
5157
+
5158
+
5159
+ /**
5160
+ * @param {string} value
5161
+ * @return {!proto.game.TagItem} returns this
5162
+ */
5163
+ proto.game.TagItem.prototype.setDescription = function(value) {
5164
+ return jspb.Message.setField(this, 4, value);
5165
+ };
5166
+
5167
+
5168
+ /**
5169
+ * Clears the field making it undefined.
5170
+ * @return {!proto.game.TagItem} returns this
5171
+ */
5172
+ proto.game.TagItem.prototype.clearDescription = function() {
5173
+ return jspb.Message.setField(this, 4, undefined);
5174
+ };
5175
+
5176
+
5177
+ /**
5178
+ * Returns whether this field is set.
5179
+ * @return {boolean}
5180
+ */
5181
+ proto.game.TagItem.prototype.hasDescription = function() {
5182
+ return jspb.Message.getField(this, 4) != null;
5183
+ };
5184
+
5185
+
5186
+ /**
5187
+ * optional int32 is_active = 5;
5188
+ * @return {number}
5189
+ */
5190
+ proto.game.TagItem.prototype.getIsActive = function() {
5191
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
5192
+ };
5193
+
5194
+
5195
+ /**
5196
+ * @param {number} value
5197
+ * @return {!proto.game.TagItem} returns this
5198
+ */
5199
+ proto.game.TagItem.prototype.setIsActive = function(value) {
5200
+ return jspb.Message.setField(this, 5, value);
5201
+ };
5202
+
5203
+
5204
+ /**
5205
+ * Clears the field making it undefined.
5206
+ * @return {!proto.game.TagItem} returns this
5207
+ */
5208
+ proto.game.TagItem.prototype.clearIsActive = function() {
5209
+ return jspb.Message.setField(this, 5, undefined);
5210
+ };
5211
+
5212
+
5213
+ /**
5214
+ * Returns whether this field is set.
5215
+ * @return {boolean}
5216
+ */
5217
+ proto.game.TagItem.prototype.hasIsActive = function() {
5218
+ return jspb.Message.getField(this, 5) != null;
5219
+ };
5220
+
5221
+
5222
+ /**
5223
+ * optional string image = 6;
5224
+ * @return {string}
5225
+ */
5226
+ proto.game.TagItem.prototype.getImage = function() {
5227
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
5228
+ };
5229
+
5230
+
5231
+ /**
5232
+ * @param {string} value
5233
+ * @return {!proto.game.TagItem} returns this
5234
+ */
5235
+ proto.game.TagItem.prototype.setImage = function(value) {
5236
+ return jspb.Message.setField(this, 6, value);
5237
+ };
5238
+
5239
+
5240
+ /**
5241
+ * Clears the field making it undefined.
5242
+ * @return {!proto.game.TagItem} returns this
5243
+ */
5244
+ proto.game.TagItem.prototype.clearImage = function() {
5245
+ return jspb.Message.setField(this, 6, undefined);
5246
+ };
5247
+
5248
+
5249
+ /**
5250
+ * Returns whether this field is set.
5251
+ * @return {boolean}
5252
+ */
5253
+ proto.game.TagItem.prototype.hasImage = function() {
5254
+ return jspb.Message.getField(this, 6) != null;
5255
+ };
5256
+
5257
+
5258
+
5259
+ /**
5260
+ * Oneof group definitions for this message. Each group defines the field
5261
+ * numbers belonging to that group. When of these fields' value is set, all
5262
+ * other fields in the group are cleared. During deserialization, if multiple
5263
+ * fields are encountered for a group, only the last value seen will be kept.
5264
+ * @private {!Array<!Array<number>>}
5265
+ * @const
5266
+ */
5267
+ proto.game.TagRequest.oneofGroups_ = [[1,2]];
5268
+
5269
+ /**
5270
+ * @enum {number}
5271
+ */
5272
+ proto.game.TagRequest.RequestCase = {
5273
+ REQUEST_NOT_SET: 0,
5274
+ TAG_DATA: 1,
5275
+ FILE: 2
5276
+ };
5277
+
5278
+ /**
5279
+ * @return {proto.game.TagRequest.RequestCase}
5280
+ */
5281
+ proto.game.TagRequest.prototype.getRequestCase = function() {
5282
+ return /** @type {proto.game.TagRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.game.TagRequest.oneofGroups_[0]));
5283
+ };
5284
+
5285
+
5286
+
5287
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5288
+ /**
5289
+ * Creates an object representation of this proto.
5290
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5291
+ * Optional fields that are not set will be set to undefined.
5292
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5293
+ * For the list of reserved names please see:
5294
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5295
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5296
+ * JSPB instance for transitional soy proto support:
5297
+ * http://goto/soy-param-migration
5298
+ * @return {!Object}
5299
+ */
5300
+ proto.game.TagRequest.prototype.toObject = function(opt_includeInstance) {
5301
+ return proto.game.TagRequest.toObject(opt_includeInstance, this);
5302
+ };
5303
+
5304
+
5305
+ /**
5306
+ * Static version of the {@see toObject} method.
5307
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5308
+ * the JSPB instance for transitional soy proto support:
5309
+ * http://goto/soy-param-migration
5310
+ * @param {!proto.game.TagRequest} msg The msg instance to transform.
5311
+ * @return {!Object}
5312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5313
+ */
5314
+ proto.game.TagRequest.toObject = function(includeInstance, msg) {
5315
+ var f, obj = {
5316
+ tagData: (f = msg.getTagData()) && proto.game.TagItemRequest.toObject(includeInstance, f),
5317
+ file: (f = msg.getFile()) && proto.game.File.toObject(includeInstance, f)
5318
+ };
5319
+
5320
+ if (includeInstance) {
5321
+ obj.$jspbMessageInstance = msg;
5322
+ }
5323
+ return obj;
5324
+ };
5325
+ }
5326
+
5327
+
5328
+ /**
5329
+ * Deserializes binary data (in protobuf wire format).
5330
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5331
+ * @return {!proto.game.TagRequest}
5332
+ */
5333
+ proto.game.TagRequest.deserializeBinary = function(bytes) {
5334
+ var reader = new jspb.BinaryReader(bytes);
5335
+ var msg = new proto.game.TagRequest;
5336
+ return proto.game.TagRequest.deserializeBinaryFromReader(msg, reader);
5337
+ };
5338
+
5339
+
5340
+ /**
5341
+ * Deserializes binary data (in protobuf wire format) from the
5342
+ * given reader into the given message object.
5343
+ * @param {!proto.game.TagRequest} msg The message object to deserialize into.
5344
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5345
+ * @return {!proto.game.TagRequest}
5346
+ */
5347
+ proto.game.TagRequest.deserializeBinaryFromReader = function(msg, reader) {
5348
+ while (reader.nextField()) {
5349
+ if (reader.isEndGroup()) {
5350
+ break;
5351
+ }
5352
+ var field = reader.getFieldNumber();
5353
+ switch (field) {
5354
+ case 1:
5355
+ var value = new proto.game.TagItemRequest;
5356
+ reader.readMessage(value,proto.game.TagItemRequest.deserializeBinaryFromReader);
5357
+ msg.setTagData(value);
5358
+ break;
5359
+ case 2:
5360
+ var value = new proto.game.File;
5361
+ reader.readMessage(value,proto.game.File.deserializeBinaryFromReader);
5362
+ msg.setFile(value);
5363
+ break;
5364
+ default:
5365
+ reader.skipField();
5366
+ break;
5367
+ }
5368
+ }
5369
+ return msg;
5370
+ };
5371
+
5372
+
5373
+ /**
5374
+ * Serializes the message to binary data (in protobuf wire format).
5375
+ * @return {!Uint8Array}
5376
+ */
5377
+ proto.game.TagRequest.prototype.serializeBinary = function() {
5378
+ var writer = new jspb.BinaryWriter();
5379
+ proto.game.TagRequest.serializeBinaryToWriter(this, writer);
5380
+ return writer.getResultBuffer();
5381
+ };
5382
+
5383
+
5384
+ /**
5385
+ * Serializes the given message to binary data (in protobuf wire
5386
+ * format), writing to the given BinaryWriter.
5387
+ * @param {!proto.game.TagRequest} message
5388
+ * @param {!jspb.BinaryWriter} writer
5389
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5390
+ */
5391
+ proto.game.TagRequest.serializeBinaryToWriter = function(message, writer) {
5392
+ var f = undefined;
5393
+ f = message.getTagData();
5394
+ if (f != null) {
5395
+ writer.writeMessage(
5396
+ 1,
5397
+ f,
5398
+ proto.game.TagItemRequest.serializeBinaryToWriter
5399
+ );
5400
+ }
5401
+ f = message.getFile();
5402
+ if (f != null) {
5403
+ writer.writeMessage(
5404
+ 2,
5405
+ f,
5406
+ proto.game.File.serializeBinaryToWriter
5407
+ );
5408
+ }
5409
+ };
5410
+
5411
+
5412
+ /**
5413
+ * optional TagItemRequest tag_data = 1;
5414
+ * @return {?proto.game.TagItemRequest}
5415
+ */
5416
+ proto.game.TagRequest.prototype.getTagData = function() {
5417
+ return /** @type{?proto.game.TagItemRequest} */ (
5418
+ jspb.Message.getWrapperField(this, proto.game.TagItemRequest, 1));
5419
+ };
5420
+
5421
+
5422
+ /**
5423
+ * @param {?proto.game.TagItemRequest|undefined} value
5424
+ * @return {!proto.game.TagRequest} returns this
5425
+ */
5426
+ proto.game.TagRequest.prototype.setTagData = function(value) {
5427
+ return jspb.Message.setOneofWrapperField(this, 1, proto.game.TagRequest.oneofGroups_[0], value);
5428
+ };
5429
+
5430
+
5431
+ /**
5432
+ * Clears the message field making it undefined.
5433
+ * @return {!proto.game.TagRequest} returns this
5434
+ */
5435
+ proto.game.TagRequest.prototype.clearTagData = function() {
5436
+ return this.setTagData(undefined);
5437
+ };
5438
+
5439
+
5440
+ /**
5441
+ * Returns whether this field is set.
5442
+ * @return {boolean}
5443
+ */
5444
+ proto.game.TagRequest.prototype.hasTagData = function() {
5445
+ return jspb.Message.getField(this, 1) != null;
5446
+ };
5447
+
5448
+
5449
+ /**
5450
+ * optional File file = 2;
5451
+ * @return {?proto.game.File}
5452
+ */
5453
+ proto.game.TagRequest.prototype.getFile = function() {
5454
+ return /** @type{?proto.game.File} */ (
5455
+ jspb.Message.getWrapperField(this, proto.game.File, 2));
5456
+ };
5457
+
5458
+
5459
+ /**
5460
+ * @param {?proto.game.File|undefined} value
5461
+ * @return {!proto.game.TagRequest} returns this
5462
+ */
5463
+ proto.game.TagRequest.prototype.setFile = function(value) {
5464
+ return jspb.Message.setOneofWrapperField(this, 2, proto.game.TagRequest.oneofGroups_[0], value);
5465
+ };
5466
+
5467
+
5468
+ /**
5469
+ * Clears the message field making it undefined.
5470
+ * @return {!proto.game.TagRequest} returns this
5471
+ */
5472
+ proto.game.TagRequest.prototype.clearFile = function() {
5473
+ return this.setFile(undefined);
5474
+ };
5475
+
5476
+
5477
+ /**
5478
+ * Returns whether this field is set.
5479
+ * @return {boolean}
5480
+ */
5481
+ proto.game.TagRequest.prototype.hasFile = function() {
5482
+ return jspb.Message.getField(this, 2) != null;
5483
+ };
5484
+
5485
+
5486
+
5487
+
5488
+
5489
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5490
+ /**
5491
+ * Creates an object representation of this proto.
5492
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5493
+ * Optional fields that are not set will be set to undefined.
5494
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5495
+ * For the list of reserved names please see:
5496
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5497
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5498
+ * JSPB instance for transitional soy proto support:
5499
+ * http://goto/soy-param-migration
5500
+ * @return {!Object}
5501
+ */
5502
+ proto.game.TagItemRequest.prototype.toObject = function(opt_includeInstance) {
5503
+ return proto.game.TagItemRequest.toObject(opt_includeInstance, this);
5504
+ };
5505
+
5506
+
5507
+ /**
5508
+ * Static version of the {@see toObject} method.
5509
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5510
+ * the JSPB instance for transitional soy proto support:
5511
+ * http://goto/soy-param-migration
5512
+ * @param {!proto.game.TagItemRequest} msg The msg instance to transform.
5513
+ * @return {!Object}
5514
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5515
+ */
5516
+ proto.game.TagItemRequest.toObject = function(includeInstance, msg) {
5517
+ var f, obj = {
5518
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
5519
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
5520
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
5521
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
5522
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
5523
+ fileName: jspb.Message.getFieldWithDefault(msg, 6, ""),
5524
+ fileType: jspb.Message.getFieldWithDefault(msg, 7, "")
5525
+ };
5526
+
5527
+ if (includeInstance) {
5528
+ obj.$jspbMessageInstance = msg;
5529
+ }
5530
+ return obj;
5531
+ };
5532
+ }
5533
+
5534
+
5535
+ /**
5536
+ * Deserializes binary data (in protobuf wire format).
5537
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5538
+ * @return {!proto.game.TagItemRequest}
5539
+ */
5540
+ proto.game.TagItemRequest.deserializeBinary = function(bytes) {
5541
+ var reader = new jspb.BinaryReader(bytes);
5542
+ var msg = new proto.game.TagItemRequest;
5543
+ return proto.game.TagItemRequest.deserializeBinaryFromReader(msg, reader);
5544
+ };
5545
+
5546
+
5547
+ /**
5548
+ * Deserializes binary data (in protobuf wire format) from the
5549
+ * given reader into the given message object.
5550
+ * @param {!proto.game.TagItemRequest} msg The message object to deserialize into.
5551
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5552
+ * @return {!proto.game.TagItemRequest}
5553
+ */
5554
+ proto.game.TagItemRequest.deserializeBinaryFromReader = function(msg, reader) {
5555
+ while (reader.nextField()) {
5556
+ if (reader.isEndGroup()) {
5557
+ break;
5558
+ }
5559
+ var field = reader.getFieldNumber();
5560
+ switch (field) {
5561
+ case 1:
5562
+ var value = /** @type {number} */ (reader.readInt32());
5563
+ msg.setId(value);
5564
+ break;
5565
+ case 2:
5566
+ var value = /** @type {string} */ (reader.readString());
5567
+ msg.setTitle(value);
5568
+ break;
5569
+ case 3:
5570
+ var value = /** @type {string} */ (reader.readString());
5571
+ msg.setSlug(value);
5572
+ break;
5573
+ case 4:
5574
+ var value = /** @type {string} */ (reader.readString());
5575
+ msg.setDescription(value);
5576
+ break;
5577
+ case 5:
5578
+ var value = /** @type {number} */ (reader.readInt32());
5579
+ msg.setIsActive(value);
5580
+ break;
5581
+ case 6:
5582
+ var value = /** @type {string} */ (reader.readString());
5583
+ msg.setFileName(value);
5584
+ break;
5585
+ case 7:
5586
+ var value = /** @type {string} */ (reader.readString());
5587
+ msg.setFileType(value);
5588
+ break;
5589
+ default:
5590
+ reader.skipField();
5591
+ break;
5592
+ }
5593
+ }
5594
+ return msg;
5595
+ };
5596
+
5597
+
5598
+ /**
5599
+ * Serializes the message to binary data (in protobuf wire format).
5600
+ * @return {!Uint8Array}
5601
+ */
5602
+ proto.game.TagItemRequest.prototype.serializeBinary = function() {
5603
+ var writer = new jspb.BinaryWriter();
5604
+ proto.game.TagItemRequest.serializeBinaryToWriter(this, writer);
5605
+ return writer.getResultBuffer();
5606
+ };
5607
+
5608
+
5609
+ /**
5610
+ * Serializes the given message to binary data (in protobuf wire
5611
+ * format), writing to the given BinaryWriter.
5612
+ * @param {!proto.game.TagItemRequest} message
5613
+ * @param {!jspb.BinaryWriter} writer
5614
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5615
+ */
5616
+ proto.game.TagItemRequest.serializeBinaryToWriter = function(message, writer) {
5617
+ var f = undefined;
5618
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
5619
+ if (f != null) {
5620
+ writer.writeInt32(
5621
+ 1,
5622
+ f
5623
+ );
5624
+ }
5625
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
5626
+ if (f != null) {
5627
+ writer.writeString(
5628
+ 2,
5629
+ f
5630
+ );
5631
+ }
5632
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
5633
+ if (f != null) {
5634
+ writer.writeString(
5635
+ 3,
5636
+ f
5637
+ );
5638
+ }
5639
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
5640
+ if (f != null) {
5641
+ writer.writeString(
5642
+ 4,
5643
+ f
5644
+ );
5645
+ }
5646
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
5647
+ if (f != null) {
5648
+ writer.writeInt32(
5649
+ 5,
5650
+ f
5651
+ );
5652
+ }
5653
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5654
+ if (f != null) {
5655
+ writer.writeString(
5656
+ 6,
5657
+ f
5658
+ );
5659
+ }
5660
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
5661
+ if (f != null) {
5662
+ writer.writeString(
5663
+ 7,
5664
+ f
5665
+ );
5666
+ }
5667
+ };
5668
+
5669
+
5670
+ /**
5671
+ * optional int32 id = 1;
5672
+ * @return {number}
5673
+ */
5674
+ proto.game.TagItemRequest.prototype.getId = function() {
5675
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5676
+ };
5677
+
5678
+
5679
+ /**
5680
+ * @param {number} value
5681
+ * @return {!proto.game.TagItemRequest} returns this
5682
+ */
5683
+ proto.game.TagItemRequest.prototype.setId = function(value) {
5684
+ return jspb.Message.setField(this, 1, value);
5685
+ };
5686
+
5687
+
5688
+ /**
5689
+ * Clears the field making it undefined.
5690
+ * @return {!proto.game.TagItemRequest} returns this
5691
+ */
5692
+ proto.game.TagItemRequest.prototype.clearId = function() {
5693
+ return jspb.Message.setField(this, 1, undefined);
5694
+ };
5695
+
5696
+
5697
+ /**
5698
+ * Returns whether this field is set.
5699
+ * @return {boolean}
5700
+ */
5701
+ proto.game.TagItemRequest.prototype.hasId = function() {
5702
+ return jspb.Message.getField(this, 1) != null;
5703
+ };
5704
+
5705
+
5706
+ /**
5707
+ * optional string title = 2;
5708
+ * @return {string}
5709
+ */
5710
+ proto.game.TagItemRequest.prototype.getTitle = function() {
5711
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5712
+ };
5713
+
5714
+
5715
+ /**
5716
+ * @param {string} value
5717
+ * @return {!proto.game.TagItemRequest} returns this
5718
+ */
5719
+ proto.game.TagItemRequest.prototype.setTitle = function(value) {
5720
+ return jspb.Message.setField(this, 2, value);
5721
+ };
5722
+
5723
+
5724
+ /**
5725
+ * Clears the field making it undefined.
5726
+ * @return {!proto.game.TagItemRequest} returns this
5727
+ */
5728
+ proto.game.TagItemRequest.prototype.clearTitle = function() {
5729
+ return jspb.Message.setField(this, 2, undefined);
5730
+ };
5731
+
5732
+
5733
+ /**
5734
+ * Returns whether this field is set.
5735
+ * @return {boolean}
5736
+ */
5737
+ proto.game.TagItemRequest.prototype.hasTitle = function() {
5738
+ return jspb.Message.getField(this, 2) != null;
5739
+ };
5740
+
5741
+
5742
+ /**
5743
+ * optional string slug = 3;
5744
+ * @return {string}
5745
+ */
5746
+ proto.game.TagItemRequest.prototype.getSlug = function() {
5747
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5748
+ };
5749
+
5750
+
5751
+ /**
5752
+ * @param {string} value
5753
+ * @return {!proto.game.TagItemRequest} returns this
5754
+ */
5755
+ proto.game.TagItemRequest.prototype.setSlug = function(value) {
5756
+ return jspb.Message.setField(this, 3, value);
5757
+ };
5758
+
5759
+
5760
+ /**
5761
+ * Clears the field making it undefined.
5762
+ * @return {!proto.game.TagItemRequest} returns this
5763
+ */
5764
+ proto.game.TagItemRequest.prototype.clearSlug = function() {
5765
+ return jspb.Message.setField(this, 3, undefined);
5766
+ };
5767
+
5768
+
5769
+ /**
5770
+ * Returns whether this field is set.
5771
+ * @return {boolean}
5772
+ */
5773
+ proto.game.TagItemRequest.prototype.hasSlug = function() {
5774
+ return jspb.Message.getField(this, 3) != null;
5775
+ };
5776
+
5777
+
5778
+ /**
5779
+ * optional string description = 4;
5780
+ * @return {string}
5781
+ */
5782
+ proto.game.TagItemRequest.prototype.getDescription = function() {
5783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5784
+ };
5785
+
5786
+
5787
+ /**
5788
+ * @param {string} value
5789
+ * @return {!proto.game.TagItemRequest} returns this
5790
+ */
5791
+ proto.game.TagItemRequest.prototype.setDescription = function(value) {
5792
+ return jspb.Message.setField(this, 4, value);
5793
+ };
5794
+
5795
+
5796
+ /**
5797
+ * Clears the field making it undefined.
5798
+ * @return {!proto.game.TagItemRequest} returns this
5799
+ */
5800
+ proto.game.TagItemRequest.prototype.clearDescription = function() {
5801
+ return jspb.Message.setField(this, 4, undefined);
5802
+ };
5803
+
5804
+
5805
+ /**
5806
+ * Returns whether this field is set.
5807
+ * @return {boolean}
5808
+ */
5809
+ proto.game.TagItemRequest.prototype.hasDescription = function() {
5810
+ return jspb.Message.getField(this, 4) != null;
5811
+ };
5812
+
5813
+
5814
+ /**
5815
+ * optional int32 is_active = 5;
5816
+ * @return {number}
5817
+ */
5818
+ proto.game.TagItemRequest.prototype.getIsActive = function() {
5819
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
5820
+ };
5821
+
5822
+
5823
+ /**
5824
+ * @param {number} value
5825
+ * @return {!proto.game.TagItemRequest} returns this
5826
+ */
5827
+ proto.game.TagItemRequest.prototype.setIsActive = function(value) {
5828
+ return jspb.Message.setField(this, 5, value);
5829
+ };
5830
+
5831
+
5832
+ /**
5833
+ * Clears the field making it undefined.
5834
+ * @return {!proto.game.TagItemRequest} returns this
5835
+ */
5836
+ proto.game.TagItemRequest.prototype.clearIsActive = function() {
5837
+ return jspb.Message.setField(this, 5, undefined);
5838
+ };
5839
+
5840
+
5841
+ /**
5842
+ * Returns whether this field is set.
5843
+ * @return {boolean}
5844
+ */
5845
+ proto.game.TagItemRequest.prototype.hasIsActive = function() {
5846
+ return jspb.Message.getField(this, 5) != null;
5847
+ };
5848
+
5849
+
5850
+ /**
5851
+ * optional string file_name = 6;
5852
+ * @return {string}
5853
+ */
5854
+ proto.game.TagItemRequest.prototype.getFileName = function() {
5855
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
5856
+ };
5857
+
5858
+
5859
+ /**
5860
+ * @param {string} value
5861
+ * @return {!proto.game.TagItemRequest} returns this
5862
+ */
5863
+ proto.game.TagItemRequest.prototype.setFileName = function(value) {
5864
+ return jspb.Message.setField(this, 6, value);
5865
+ };
5866
+
5867
+
5868
+ /**
5869
+ * Clears the field making it undefined.
5870
+ * @return {!proto.game.TagItemRequest} returns this
5871
+ */
5872
+ proto.game.TagItemRequest.prototype.clearFileName = function() {
5873
+ return jspb.Message.setField(this, 6, undefined);
5874
+ };
5875
+
5876
+
5877
+ /**
5878
+ * Returns whether this field is set.
5879
+ * @return {boolean}
5880
+ */
5881
+ proto.game.TagItemRequest.prototype.hasFileName = function() {
5882
+ return jspb.Message.getField(this, 6) != null;
5883
+ };
5884
+
5885
+
5886
+ /**
5887
+ * optional string file_type = 7;
5888
+ * @return {string}
5889
+ */
5890
+ proto.game.TagItemRequest.prototype.getFileType = function() {
5891
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
5892
+ };
5893
+
5894
+
5895
+ /**
5896
+ * @param {string} value
5897
+ * @return {!proto.game.TagItemRequest} returns this
5898
+ */
5899
+ proto.game.TagItemRequest.prototype.setFileType = function(value) {
5900
+ return jspb.Message.setField(this, 7, value);
5901
+ };
5902
+
5903
+
5904
+ /**
5905
+ * Clears the field making it undefined.
5906
+ * @return {!proto.game.TagItemRequest} returns this
5907
+ */
5908
+ proto.game.TagItemRequest.prototype.clearFileType = function() {
5909
+ return jspb.Message.setField(this, 7, undefined);
5910
+ };
5911
+
5912
+
5913
+ /**
5914
+ * Returns whether this field is set.
5915
+ * @return {boolean}
5916
+ */
5917
+ proto.game.TagItemRequest.prototype.hasFileType = function() {
5918
+ return jspb.Message.getField(this, 7) != null;
5919
+ };
5920
+
5921
+
5922
+
5923
+
5924
+
5925
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5926
+ /**
5927
+ * Creates an object representation of this proto.
5928
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5929
+ * Optional fields that are not set will be set to undefined.
5930
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5931
+ * For the list of reserved names please see:
5932
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5933
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5934
+ * JSPB instance for transitional soy proto support:
5935
+ * http://goto/soy-param-migration
5936
+ * @return {!Object}
5937
+ */
5938
+ proto.game.GetTagRequest.prototype.toObject = function(opt_includeInstance) {
5939
+ return proto.game.GetTagRequest.toObject(opt_includeInstance, this);
5940
+ };
5941
+
5942
+
5943
+ /**
5944
+ * Static version of the {@see toObject} method.
5945
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5946
+ * the JSPB instance for transitional soy proto support:
5947
+ * http://goto/soy-param-migration
5948
+ * @param {!proto.game.GetTagRequest} msg The msg instance to transform.
5949
+ * @return {!Object}
5950
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5951
+ */
5952
+ proto.game.GetTagRequest.toObject = function(includeInstance, msg) {
5953
+ var f, obj = {
5954
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
5955
+ };
5956
+
5957
+ if (includeInstance) {
5958
+ obj.$jspbMessageInstance = msg;
5959
+ }
5960
+ return obj;
5961
+ };
5962
+ }
5963
+
5964
+
5965
+ /**
5966
+ * Deserializes binary data (in protobuf wire format).
5967
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5968
+ * @return {!proto.game.GetTagRequest}
5969
+ */
5970
+ proto.game.GetTagRequest.deserializeBinary = function(bytes) {
5971
+ var reader = new jspb.BinaryReader(bytes);
5972
+ var msg = new proto.game.GetTagRequest;
5973
+ return proto.game.GetTagRequest.deserializeBinaryFromReader(msg, reader);
5974
+ };
5975
+
5976
+
5977
+ /**
5978
+ * Deserializes binary data (in protobuf wire format) from the
5979
+ * given reader into the given message object.
5980
+ * @param {!proto.game.GetTagRequest} msg The message object to deserialize into.
5981
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5982
+ * @return {!proto.game.GetTagRequest}
5983
+ */
5984
+ proto.game.GetTagRequest.deserializeBinaryFromReader = function(msg, reader) {
5985
+ while (reader.nextField()) {
5986
+ if (reader.isEndGroup()) {
5987
+ break;
5988
+ }
5989
+ var field = reader.getFieldNumber();
5990
+ switch (field) {
5991
+ case 1:
5992
+ var value = /** @type {number} */ (reader.readInt32());
5993
+ msg.setId(value);
5994
+ break;
5995
+ default:
5996
+ reader.skipField();
5997
+ break;
5998
+ }
5999
+ }
6000
+ return msg;
6001
+ };
6002
+
6003
+
6004
+ /**
6005
+ * Serializes the message to binary data (in protobuf wire format).
6006
+ * @return {!Uint8Array}
6007
+ */
6008
+ proto.game.GetTagRequest.prototype.serializeBinary = function() {
6009
+ var writer = new jspb.BinaryWriter();
6010
+ proto.game.GetTagRequest.serializeBinaryToWriter(this, writer);
6011
+ return writer.getResultBuffer();
6012
+ };
6013
+
6014
+
6015
+ /**
6016
+ * Serializes the given message to binary data (in protobuf wire
6017
+ * format), writing to the given BinaryWriter.
6018
+ * @param {!proto.game.GetTagRequest} message
6019
+ * @param {!jspb.BinaryWriter} writer
6020
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6021
+ */
6022
+ proto.game.GetTagRequest.serializeBinaryToWriter = function(message, writer) {
6023
+ var f = undefined;
6024
+ f = message.getId();
6025
+ if (f !== 0) {
6026
+ writer.writeInt32(
6027
+ 1,
6028
+ f
6029
+ );
6030
+ }
6031
+ };
6032
+
6033
+
6034
+ /**
6035
+ * optional int32 id = 1;
6036
+ * @return {number}
6037
+ */
6038
+ proto.game.GetTagRequest.prototype.getId = function() {
6039
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6040
+ };
6041
+
6042
+
6043
+ /**
6044
+ * @param {number} value
6045
+ * @return {!proto.game.GetTagRequest} returns this
6046
+ */
6047
+ proto.game.GetTagRequest.prototype.setId = function(value) {
6048
+ return jspb.Message.setProto3IntField(this, 1, value);
6049
+ };
6050
+
6051
+
6052
+
6053
+
6054
+
6055
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6056
+ /**
6057
+ * Creates an object representation of this proto.
6058
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6059
+ * Optional fields that are not set will be set to undefined.
6060
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6061
+ * For the list of reserved names please see:
6062
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6063
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6064
+ * JSPB instance for transitional soy proto support:
6065
+ * http://goto/soy-param-migration
6066
+ * @return {!Object}
6067
+ */
6068
+ proto.game.TagResponse.prototype.toObject = function(opt_includeInstance) {
6069
+ return proto.game.TagResponse.toObject(opt_includeInstance, this);
6070
+ };
6071
+
6072
+
6073
+ /**
6074
+ * Static version of the {@see toObject} method.
6075
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6076
+ * the JSPB instance for transitional soy proto support:
6077
+ * http://goto/soy-param-migration
6078
+ * @param {!proto.game.TagResponse} msg The msg instance to transform.
6079
+ * @return {!Object}
6080
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6081
+ */
6082
+ proto.game.TagResponse.toObject = function(includeInstance, msg) {
6083
+ var f, obj = {
6084
+ data: (f = msg.getData()) && proto.game.TagItem.toObject(includeInstance, f)
6085
+ };
6086
+
6087
+ if (includeInstance) {
6088
+ obj.$jspbMessageInstance = msg;
6089
+ }
6090
+ return obj;
6091
+ };
6092
+ }
6093
+
6094
+
6095
+ /**
6096
+ * Deserializes binary data (in protobuf wire format).
6097
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6098
+ * @return {!proto.game.TagResponse}
6099
+ */
6100
+ proto.game.TagResponse.deserializeBinary = function(bytes) {
6101
+ var reader = new jspb.BinaryReader(bytes);
6102
+ var msg = new proto.game.TagResponse;
6103
+ return proto.game.TagResponse.deserializeBinaryFromReader(msg, reader);
6104
+ };
6105
+
6106
+
6107
+ /**
6108
+ * Deserializes binary data (in protobuf wire format) from the
6109
+ * given reader into the given message object.
6110
+ * @param {!proto.game.TagResponse} msg The message object to deserialize into.
6111
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6112
+ * @return {!proto.game.TagResponse}
6113
+ */
6114
+ proto.game.TagResponse.deserializeBinaryFromReader = function(msg, reader) {
6115
+ while (reader.nextField()) {
6116
+ if (reader.isEndGroup()) {
6117
+ break;
6118
+ }
6119
+ var field = reader.getFieldNumber();
6120
+ switch (field) {
6121
+ case 1:
6122
+ var value = new proto.game.TagItem;
6123
+ reader.readMessage(value,proto.game.TagItem.deserializeBinaryFromReader);
6124
+ msg.setData(value);
6125
+ break;
6126
+ default:
6127
+ reader.skipField();
6128
+ break;
6129
+ }
6130
+ }
6131
+ return msg;
6132
+ };
6133
+
6134
+
6135
+ /**
6136
+ * Serializes the message to binary data (in protobuf wire format).
6137
+ * @return {!Uint8Array}
6138
+ */
6139
+ proto.game.TagResponse.prototype.serializeBinary = function() {
6140
+ var writer = new jspb.BinaryWriter();
6141
+ proto.game.TagResponse.serializeBinaryToWriter(this, writer);
6142
+ return writer.getResultBuffer();
6143
+ };
6144
+
6145
+
6146
+ /**
6147
+ * Serializes the given message to binary data (in protobuf wire
6148
+ * format), writing to the given BinaryWriter.
6149
+ * @param {!proto.game.TagResponse} message
6150
+ * @param {!jspb.BinaryWriter} writer
6151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6152
+ */
6153
+ proto.game.TagResponse.serializeBinaryToWriter = function(message, writer) {
6154
+ var f = undefined;
6155
+ f = message.getData();
6156
+ if (f != null) {
6157
+ writer.writeMessage(
6158
+ 1,
6159
+ f,
6160
+ proto.game.TagItem.serializeBinaryToWriter
6161
+ );
6162
+ }
6163
+ };
6164
+
6165
+
6166
+ /**
6167
+ * optional TagItem data = 1;
6168
+ * @return {?proto.game.TagItem}
6169
+ */
6170
+ proto.game.TagResponse.prototype.getData = function() {
6171
+ return /** @type{?proto.game.TagItem} */ (
6172
+ jspb.Message.getWrapperField(this, proto.game.TagItem, 1));
6173
+ };
6174
+
6175
+
6176
+ /**
6177
+ * @param {?proto.game.TagItem|undefined} value
6178
+ * @return {!proto.game.TagResponse} returns this
6179
+ */
6180
+ proto.game.TagResponse.prototype.setData = function(value) {
6181
+ return jspb.Message.setWrapperField(this, 1, value);
6182
+ };
6183
+
6184
+
6185
+ /**
6186
+ * Clears the message field making it undefined.
6187
+ * @return {!proto.game.TagResponse} returns this
6188
+ */
6189
+ proto.game.TagResponse.prototype.clearData = function() {
6190
+ return this.setData(undefined);
6191
+ };
6192
+
6193
+
6194
+ /**
6195
+ * Returns whether this field is set.
6196
+ * @return {boolean}
6197
+ */
6198
+ proto.game.TagResponse.prototype.hasData = function() {
6199
+ return jspb.Message.getField(this, 1) != null;
6200
+ };
6201
+
6202
+
6203
+
6204
+ /**
6205
+ * List of repeated fields within this message type.
6206
+ * @private {!Array<number>}
6207
+ * @const
6208
+ */
6209
+ proto.game.TagItemsResponse.repeatedFields_ = [1];
6210
+
6211
+
6212
+
6213
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6214
+ /**
6215
+ * Creates an object representation of this proto.
6216
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6217
+ * Optional fields that are not set will be set to undefined.
6218
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6219
+ * For the list of reserved names please see:
6220
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6221
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6222
+ * JSPB instance for transitional soy proto support:
6223
+ * http://goto/soy-param-migration
6224
+ * @return {!Object}
6225
+ */
6226
+ proto.game.TagItemsResponse.prototype.toObject = function(opt_includeInstance) {
6227
+ return proto.game.TagItemsResponse.toObject(opt_includeInstance, this);
6228
+ };
6229
+
6230
+
6231
+ /**
6232
+ * Static version of the {@see toObject} method.
6233
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6234
+ * the JSPB instance for transitional soy proto support:
6235
+ * http://goto/soy-param-migration
6236
+ * @param {!proto.game.TagItemsResponse} msg The msg instance to transform.
6237
+ * @return {!Object}
6238
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6239
+ */
6240
+ proto.game.TagItemsResponse.toObject = function(includeInstance, msg) {
6241
+ var f, obj = {
6242
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
6243
+ proto.game.TagItem.toObject, includeInstance),
6244
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
6245
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
6246
+ };
6247
+
6248
+ if (includeInstance) {
6249
+ obj.$jspbMessageInstance = msg;
6250
+ }
6251
+ return obj;
6252
+ };
6253
+ }
6254
+
6255
+
6256
+ /**
6257
+ * Deserializes binary data (in protobuf wire format).
6258
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6259
+ * @return {!proto.game.TagItemsResponse}
6260
+ */
6261
+ proto.game.TagItemsResponse.deserializeBinary = function(bytes) {
6262
+ var reader = new jspb.BinaryReader(bytes);
6263
+ var msg = new proto.game.TagItemsResponse;
6264
+ return proto.game.TagItemsResponse.deserializeBinaryFromReader(msg, reader);
6265
+ };
6266
+
6267
+
6268
+ /**
6269
+ * Deserializes binary data (in protobuf wire format) from the
6270
+ * given reader into the given message object.
6271
+ * @param {!proto.game.TagItemsResponse} msg The message object to deserialize into.
6272
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6273
+ * @return {!proto.game.TagItemsResponse}
6274
+ */
6275
+ proto.game.TagItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
6276
+ while (reader.nextField()) {
6277
+ if (reader.isEndGroup()) {
6278
+ break;
6279
+ }
6280
+ var field = reader.getFieldNumber();
6281
+ switch (field) {
6282
+ case 1:
6283
+ var value = new proto.game.TagItem;
6284
+ reader.readMessage(value,proto.game.TagItem.deserializeBinaryFromReader);
6285
+ msg.addItems(value);
6286
+ break;
6287
+ case 2:
6288
+ var value = /** @type {number} */ (reader.readInt32());
6289
+ msg.setTotalPages(value);
6290
+ break;
6291
+ case 3:
6292
+ var value = /** @type {number} */ (reader.readInt32());
6293
+ msg.setTotalItems(value);
6294
+ break;
6295
+ default:
6296
+ reader.skipField();
6297
+ break;
6298
+ }
6299
+ }
6300
+ return msg;
6301
+ };
6302
+
6303
+
6304
+ /**
6305
+ * Serializes the message to binary data (in protobuf wire format).
6306
+ * @return {!Uint8Array}
6307
+ */
6308
+ proto.game.TagItemsResponse.prototype.serializeBinary = function() {
6309
+ var writer = new jspb.BinaryWriter();
6310
+ proto.game.TagItemsResponse.serializeBinaryToWriter(this, writer);
6311
+ return writer.getResultBuffer();
6312
+ };
6313
+
6314
+
6315
+ /**
6316
+ * Serializes the given message to binary data (in protobuf wire
6317
+ * format), writing to the given BinaryWriter.
6318
+ * @param {!proto.game.TagItemsResponse} message
6319
+ * @param {!jspb.BinaryWriter} writer
6320
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6321
+ */
6322
+ proto.game.TagItemsResponse.serializeBinaryToWriter = function(message, writer) {
6323
+ var f = undefined;
6324
+ f = message.getItemsList();
6325
+ if (f.length > 0) {
6326
+ writer.writeRepeatedMessage(
6327
+ 1,
6328
+ f,
6329
+ proto.game.TagItem.serializeBinaryToWriter
6330
+ );
6331
+ }
6332
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
6333
+ if (f != null) {
6334
+ writer.writeInt32(
6335
+ 2,
6336
+ f
6337
+ );
6338
+ }
6339
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
6340
+ if (f != null) {
6341
+ writer.writeInt32(
6342
+ 3,
6343
+ f
6344
+ );
6345
+ }
6346
+ };
6347
+
6348
+
6349
+ /**
6350
+ * repeated TagItem items = 1;
6351
+ * @return {!Array<!proto.game.TagItem>}
6352
+ */
6353
+ proto.game.TagItemsResponse.prototype.getItemsList = function() {
6354
+ return /** @type{!Array<!proto.game.TagItem>} */ (
6355
+ jspb.Message.getRepeatedWrapperField(this, proto.game.TagItem, 1));
6356
+ };
6357
+
6358
+
6359
+ /**
6360
+ * @param {!Array<!proto.game.TagItem>} value
6361
+ * @return {!proto.game.TagItemsResponse} returns this
6362
+ */
6363
+ proto.game.TagItemsResponse.prototype.setItemsList = function(value) {
6364
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
6365
+ };
6366
+
6367
+
6368
+ /**
6369
+ * @param {!proto.game.TagItem=} opt_value
6370
+ * @param {number=} opt_index
6371
+ * @return {!proto.game.TagItem}
6372
+ */
6373
+ proto.game.TagItemsResponse.prototype.addItems = function(opt_value, opt_index) {
6374
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.TagItem, opt_index);
6375
+ };
6376
+
6377
+
6378
+ /**
6379
+ * Clears the list making it empty but non-null.
6380
+ * @return {!proto.game.TagItemsResponse} returns this
6381
+ */
6382
+ proto.game.TagItemsResponse.prototype.clearItemsList = function() {
6383
+ return this.setItemsList([]);
6384
+ };
6385
+
6386
+
6387
+ /**
6388
+ * optional int32 total_pages = 2;
6389
+ * @return {number}
6390
+ */
6391
+ proto.game.TagItemsResponse.prototype.getTotalPages = function() {
6392
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6393
+ };
6394
+
6395
+
6396
+ /**
6397
+ * @param {number} value
6398
+ * @return {!proto.game.TagItemsResponse} returns this
6399
+ */
6400
+ proto.game.TagItemsResponse.prototype.setTotalPages = function(value) {
6401
+ return jspb.Message.setField(this, 2, value);
6402
+ };
6403
+
6404
+
6405
+ /**
6406
+ * Clears the field making it undefined.
6407
+ * @return {!proto.game.TagItemsResponse} returns this
6408
+ */
6409
+ proto.game.TagItemsResponse.prototype.clearTotalPages = function() {
6410
+ return jspb.Message.setField(this, 2, undefined);
6411
+ };
6412
+
6413
+
6414
+ /**
6415
+ * Returns whether this field is set.
6416
+ * @return {boolean}
6417
+ */
6418
+ proto.game.TagItemsResponse.prototype.hasTotalPages = function() {
6419
+ return jspb.Message.getField(this, 2) != null;
6420
+ };
6421
+
6422
+
6423
+ /**
6424
+ * optional int32 total_items = 3;
6425
+ * @return {number}
6426
+ */
6427
+ proto.game.TagItemsResponse.prototype.getTotalItems = function() {
6428
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6429
+ };
6430
+
6431
+
6432
+ /**
6433
+ * @param {number} value
6434
+ * @return {!proto.game.TagItemsResponse} returns this
6435
+ */
6436
+ proto.game.TagItemsResponse.prototype.setTotalItems = function(value) {
6437
+ return jspb.Message.setField(this, 3, value);
6438
+ };
6439
+
6440
+
6441
+ /**
6442
+ * Clears the field making it undefined.
6443
+ * @return {!proto.game.TagItemsResponse} returns this
6444
+ */
6445
+ proto.game.TagItemsResponse.prototype.clearTotalItems = function() {
6446
+ return jspb.Message.setField(this, 3, undefined);
6447
+ };
6448
+
6449
+
6450
+ /**
6451
+ * Returns whether this field is set.
6452
+ * @return {boolean}
6453
+ */
6454
+ proto.game.TagItemsResponse.prototype.hasTotalItems = function() {
6455
+ return jspb.Message.getField(this, 3) != null;
6456
+ };
6457
+
6458
+
6459
+
6460
+
6461
+
6462
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6463
+ /**
6464
+ * Creates an object representation of this proto.
6465
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6466
+ * Optional fields that are not set will be set to undefined.
6467
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6468
+ * For the list of reserved names please see:
6469
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6470
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6471
+ * JSPB instance for transitional soy proto support:
6472
+ * http://goto/soy-param-migration
6473
+ * @return {!Object}
6474
+ */
6475
+ proto.game.TagStatusResponse.prototype.toObject = function(opt_includeInstance) {
6476
+ return proto.game.TagStatusResponse.toObject(opt_includeInstance, this);
6477
+ };
6478
+
6479
+
6480
+ /**
6481
+ * Static version of the {@see toObject} method.
6482
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6483
+ * the JSPB instance for transitional soy proto support:
6484
+ * http://goto/soy-param-migration
6485
+ * @param {!proto.game.TagStatusResponse} msg The msg instance to transform.
6486
+ * @return {!Object}
6487
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6488
+ */
6489
+ proto.game.TagStatusResponse.toObject = function(includeInstance, msg) {
6490
+ var f, obj = {
6491
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
6492
+ };
6493
+
6494
+ if (includeInstance) {
6495
+ obj.$jspbMessageInstance = msg;
6496
+ }
6497
+ return obj;
6498
+ };
6499
+ }
6500
+
6501
+
6502
+ /**
6503
+ * Deserializes binary data (in protobuf wire format).
6504
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6505
+ * @return {!proto.game.TagStatusResponse}
6506
+ */
6507
+ proto.game.TagStatusResponse.deserializeBinary = function(bytes) {
6508
+ var reader = new jspb.BinaryReader(bytes);
6509
+ var msg = new proto.game.TagStatusResponse;
6510
+ return proto.game.TagStatusResponse.deserializeBinaryFromReader(msg, reader);
6511
+ };
6512
+
6513
+
6514
+ /**
6515
+ * Deserializes binary data (in protobuf wire format) from the
6516
+ * given reader into the given message object.
6517
+ * @param {!proto.game.TagStatusResponse} msg The message object to deserialize into.
6518
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6519
+ * @return {!proto.game.TagStatusResponse}
6520
+ */
6521
+ proto.game.TagStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
6522
+ while (reader.nextField()) {
6523
+ if (reader.isEndGroup()) {
6524
+ break;
6525
+ }
6526
+ var field = reader.getFieldNumber();
6527
+ switch (field) {
6528
+ case 1:
6529
+ var value = /** @type {string} */ (reader.readString());
6530
+ msg.setStatus(value);
6531
+ break;
6532
+ default:
6533
+ reader.skipField();
6534
+ break;
6535
+ }
6536
+ }
6537
+ return msg;
6538
+ };
6539
+
6540
+
6541
+ /**
6542
+ * Serializes the message to binary data (in protobuf wire format).
6543
+ * @return {!Uint8Array}
6544
+ */
6545
+ proto.game.TagStatusResponse.prototype.serializeBinary = function() {
6546
+ var writer = new jspb.BinaryWriter();
6547
+ proto.game.TagStatusResponse.serializeBinaryToWriter(this, writer);
6548
+ return writer.getResultBuffer();
6549
+ };
6550
+
6551
+
6552
+ /**
6553
+ * Serializes the given message to binary data (in protobuf wire
6554
+ * format), writing to the given BinaryWriter.
6555
+ * @param {!proto.game.TagStatusResponse} message
6556
+ * @param {!jspb.BinaryWriter} writer
6557
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6558
+ */
6559
+ proto.game.TagStatusResponse.serializeBinaryToWriter = function(message, writer) {
6560
+ var f = undefined;
6561
+ f = message.getStatus();
6562
+ if (f.length > 0) {
6563
+ writer.writeString(
6564
+ 1,
6565
+ f
6566
+ );
6567
+ }
6568
+ };
6569
+
6570
+
6571
+ /**
6572
+ * optional string status = 1;
6573
+ * @return {string}
6574
+ */
6575
+ proto.game.TagStatusResponse.prototype.getStatus = function() {
6576
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6577
+ };
6578
+
6579
+
6580
+ /**
6581
+ * @param {string} value
6582
+ * @return {!proto.game.TagStatusResponse} returns this
6583
+ */
6584
+ proto.game.TagStatusResponse.prototype.setStatus = function(value) {
6585
+ return jspb.Message.setProto3StringField(this, 1, value);
6586
+ };
6587
+
6588
+
4712
6589
  goog.object.extend(exports, proto.game);