protobuf-platform 1.0.55 → 1.0.57

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
@@ -28,8 +28,16 @@ goog.exportSymbol('proto.game.CategoryRequest', null, global);
28
28
  goog.exportSymbol('proto.game.CategoryRequest.RequestCase', null, global);
29
29
  goog.exportSymbol('proto.game.CategoryResponse', null, global);
30
30
  goog.exportSymbol('proto.game.CategoryStatusResponse', null, global);
31
+ goog.exportSymbol('proto.game.CollectionItem', null, global);
32
+ goog.exportSymbol('proto.game.CollectionItemRequest', null, global);
33
+ goog.exportSymbol('proto.game.CollectionItemsResponse', null, global);
34
+ goog.exportSymbol('proto.game.CollectionRequest', null, global);
35
+ goog.exportSymbol('proto.game.CollectionRequest.RequestCase', null, global);
36
+ goog.exportSymbol('proto.game.CollectionResponse', null, global);
37
+ goog.exportSymbol('proto.game.CollectionStatusResponse', null, global);
31
38
  goog.exportSymbol('proto.game.File', null, global);
32
39
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
40
+ goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
33
41
  goog.exportSymbol('proto.game.GetFileRequest', null, global);
34
42
  goog.exportSymbol('proto.game.PaginationRequest', null, global);
35
43
  goog.exportSymbol('proto.game.PingRequest', null, global);
@@ -286,6 +294,153 @@ if (goog.DEBUG && !COMPILED) {
286
294
  */
287
295
  proto.game.CategoryStatusResponse.displayName = 'proto.game.CategoryStatusResponse';
288
296
  }
297
+ /**
298
+ * Generated by JsPbCodeGenerator.
299
+ * @param {Array=} opt_data Optional initial data array, typically from a
300
+ * server response, or constructed directly in Javascript. The array is used
301
+ * in place and becomes part of the constructed object. It is not cloned.
302
+ * If no data is provided, the constructed object will be empty, but still
303
+ * valid.
304
+ * @extends {jspb.Message}
305
+ * @constructor
306
+ */
307
+ proto.game.CollectionItem = function(opt_data) {
308
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
309
+ };
310
+ goog.inherits(proto.game.CollectionItem, jspb.Message);
311
+ if (goog.DEBUG && !COMPILED) {
312
+ /**
313
+ * @public
314
+ * @override
315
+ */
316
+ proto.game.CollectionItem.displayName = 'proto.game.CollectionItem';
317
+ }
318
+ /**
319
+ * Generated by JsPbCodeGenerator.
320
+ * @param {Array=} opt_data Optional initial data array, typically from a
321
+ * server response, or constructed directly in Javascript. The array is used
322
+ * in place and becomes part of the constructed object. It is not cloned.
323
+ * If no data is provided, the constructed object will be empty, but still
324
+ * valid.
325
+ * @extends {jspb.Message}
326
+ * @constructor
327
+ */
328
+ proto.game.CollectionRequest = function(opt_data) {
329
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.game.CollectionRequest.oneofGroups_);
330
+ };
331
+ goog.inherits(proto.game.CollectionRequest, jspb.Message);
332
+ if (goog.DEBUG && !COMPILED) {
333
+ /**
334
+ * @public
335
+ * @override
336
+ */
337
+ proto.game.CollectionRequest.displayName = 'proto.game.CollectionRequest';
338
+ }
339
+ /**
340
+ * Generated by JsPbCodeGenerator.
341
+ * @param {Array=} opt_data Optional initial data array, typically from a
342
+ * server response, or constructed directly in Javascript. The array is used
343
+ * in place and becomes part of the constructed object. It is not cloned.
344
+ * If no data is provided, the constructed object will be empty, but still
345
+ * valid.
346
+ * @extends {jspb.Message}
347
+ * @constructor
348
+ */
349
+ proto.game.CollectionItemRequest = function(opt_data) {
350
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
351
+ };
352
+ goog.inherits(proto.game.CollectionItemRequest, jspb.Message);
353
+ if (goog.DEBUG && !COMPILED) {
354
+ /**
355
+ * @public
356
+ * @override
357
+ */
358
+ proto.game.CollectionItemRequest.displayName = 'proto.game.CollectionItemRequest';
359
+ }
360
+ /**
361
+ * Generated by JsPbCodeGenerator.
362
+ * @param {Array=} opt_data Optional initial data array, typically from a
363
+ * server response, or constructed directly in Javascript. The array is used
364
+ * in place and becomes part of the constructed object. It is not cloned.
365
+ * If no data is provided, the constructed object will be empty, but still
366
+ * valid.
367
+ * @extends {jspb.Message}
368
+ * @constructor
369
+ */
370
+ proto.game.GetCollectionRequest = function(opt_data) {
371
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
372
+ };
373
+ goog.inherits(proto.game.GetCollectionRequest, jspb.Message);
374
+ if (goog.DEBUG && !COMPILED) {
375
+ /**
376
+ * @public
377
+ * @override
378
+ */
379
+ proto.game.GetCollectionRequest.displayName = 'proto.game.GetCollectionRequest';
380
+ }
381
+ /**
382
+ * Generated by JsPbCodeGenerator.
383
+ * @param {Array=} opt_data Optional initial data array, typically from a
384
+ * server response, or constructed directly in Javascript. The array is used
385
+ * in place and becomes part of the constructed object. It is not cloned.
386
+ * If no data is provided, the constructed object will be empty, but still
387
+ * valid.
388
+ * @extends {jspb.Message}
389
+ * @constructor
390
+ */
391
+ proto.game.CollectionResponse = function(opt_data) {
392
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
393
+ };
394
+ goog.inherits(proto.game.CollectionResponse, jspb.Message);
395
+ if (goog.DEBUG && !COMPILED) {
396
+ /**
397
+ * @public
398
+ * @override
399
+ */
400
+ proto.game.CollectionResponse.displayName = 'proto.game.CollectionResponse';
401
+ }
402
+ /**
403
+ * Generated by JsPbCodeGenerator.
404
+ * @param {Array=} opt_data Optional initial data array, typically from a
405
+ * server response, or constructed directly in Javascript. The array is used
406
+ * in place and becomes part of the constructed object. It is not cloned.
407
+ * If no data is provided, the constructed object will be empty, but still
408
+ * valid.
409
+ * @extends {jspb.Message}
410
+ * @constructor
411
+ */
412
+ proto.game.CollectionItemsResponse = function(opt_data) {
413
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CollectionItemsResponse.repeatedFields_, null);
414
+ };
415
+ goog.inherits(proto.game.CollectionItemsResponse, jspb.Message);
416
+ if (goog.DEBUG && !COMPILED) {
417
+ /**
418
+ * @public
419
+ * @override
420
+ */
421
+ proto.game.CollectionItemsResponse.displayName = 'proto.game.CollectionItemsResponse';
422
+ }
423
+ /**
424
+ * Generated by JsPbCodeGenerator.
425
+ * @param {Array=} opt_data Optional initial data array, typically from a
426
+ * server response, or constructed directly in Javascript. The array is used
427
+ * in place and becomes part of the constructed object. It is not cloned.
428
+ * If no data is provided, the constructed object will be empty, but still
429
+ * valid.
430
+ * @extends {jspb.Message}
431
+ * @constructor
432
+ */
433
+ proto.game.CollectionStatusResponse = function(opt_data) {
434
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
435
+ };
436
+ goog.inherits(proto.game.CollectionStatusResponse, jspb.Message);
437
+ if (goog.DEBUG && !COMPILED) {
438
+ /**
439
+ * @public
440
+ * @override
441
+ */
442
+ proto.game.CollectionStatusResponse.displayName = 'proto.game.CollectionStatusResponse';
443
+ }
289
444
 
290
445
 
291
446
 
@@ -2739,4 +2894,1822 @@ proto.game.CategoryStatusResponse.prototype.setStatus = function(value) {
2739
2894
  };
2740
2895
 
2741
2896
 
2897
+
2898
+
2899
+
2900
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2901
+ /**
2902
+ * Creates an object representation of this proto.
2903
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2904
+ * Optional fields that are not set will be set to undefined.
2905
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2906
+ * For the list of reserved names please see:
2907
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2908
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2909
+ * JSPB instance for transitional soy proto support:
2910
+ * http://goto/soy-param-migration
2911
+ * @return {!Object}
2912
+ */
2913
+ proto.game.CollectionItem.prototype.toObject = function(opt_includeInstance) {
2914
+ return proto.game.CollectionItem.toObject(opt_includeInstance, this);
2915
+ };
2916
+
2917
+
2918
+ /**
2919
+ * Static version of the {@see toObject} method.
2920
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2921
+ * the JSPB instance for transitional soy proto support:
2922
+ * http://goto/soy-param-migration
2923
+ * @param {!proto.game.CollectionItem} msg The msg instance to transform.
2924
+ * @return {!Object}
2925
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2926
+ */
2927
+ proto.game.CollectionItem.toObject = function(includeInstance, msg) {
2928
+ var f, obj = {
2929
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2930
+ category: (f = msg.getCategory()) && proto.game.CategoryItem.toObject(includeInstance, f),
2931
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
2932
+ slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
2933
+ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
2934
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
2935
+ image: jspb.Message.getFieldWithDefault(msg, 7, "")
2936
+ };
2937
+
2938
+ if (includeInstance) {
2939
+ obj.$jspbMessageInstance = msg;
2940
+ }
2941
+ return obj;
2942
+ };
2943
+ }
2944
+
2945
+
2946
+ /**
2947
+ * Deserializes binary data (in protobuf wire format).
2948
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2949
+ * @return {!proto.game.CollectionItem}
2950
+ */
2951
+ proto.game.CollectionItem.deserializeBinary = function(bytes) {
2952
+ var reader = new jspb.BinaryReader(bytes);
2953
+ var msg = new proto.game.CollectionItem;
2954
+ return proto.game.CollectionItem.deserializeBinaryFromReader(msg, reader);
2955
+ };
2956
+
2957
+
2958
+ /**
2959
+ * Deserializes binary data (in protobuf wire format) from the
2960
+ * given reader into the given message object.
2961
+ * @param {!proto.game.CollectionItem} msg The message object to deserialize into.
2962
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2963
+ * @return {!proto.game.CollectionItem}
2964
+ */
2965
+ proto.game.CollectionItem.deserializeBinaryFromReader = function(msg, reader) {
2966
+ while (reader.nextField()) {
2967
+ if (reader.isEndGroup()) {
2968
+ break;
2969
+ }
2970
+ var field = reader.getFieldNumber();
2971
+ switch (field) {
2972
+ case 1:
2973
+ var value = /** @type {number} */ (reader.readInt32());
2974
+ msg.setId(value);
2975
+ break;
2976
+ case 2:
2977
+ var value = new proto.game.CategoryItem;
2978
+ reader.readMessage(value,proto.game.CategoryItem.deserializeBinaryFromReader);
2979
+ msg.setCategory(value);
2980
+ break;
2981
+ case 3:
2982
+ var value = /** @type {string} */ (reader.readString());
2983
+ msg.setTitle(value);
2984
+ break;
2985
+ case 4:
2986
+ var value = /** @type {string} */ (reader.readString());
2987
+ msg.setSlug(value);
2988
+ break;
2989
+ case 5:
2990
+ var value = /** @type {string} */ (reader.readString());
2991
+ msg.setDescription(value);
2992
+ break;
2993
+ case 6:
2994
+ var value = /** @type {number} */ (reader.readInt32());
2995
+ msg.setIsActive(value);
2996
+ break;
2997
+ case 7:
2998
+ var value = /** @type {string} */ (reader.readString());
2999
+ msg.setImage(value);
3000
+ break;
3001
+ default:
3002
+ reader.skipField();
3003
+ break;
3004
+ }
3005
+ }
3006
+ return msg;
3007
+ };
3008
+
3009
+
3010
+ /**
3011
+ * Serializes the message to binary data (in protobuf wire format).
3012
+ * @return {!Uint8Array}
3013
+ */
3014
+ proto.game.CollectionItem.prototype.serializeBinary = function() {
3015
+ var writer = new jspb.BinaryWriter();
3016
+ proto.game.CollectionItem.serializeBinaryToWriter(this, writer);
3017
+ return writer.getResultBuffer();
3018
+ };
3019
+
3020
+
3021
+ /**
3022
+ * Serializes the given message to binary data (in protobuf wire
3023
+ * format), writing to the given BinaryWriter.
3024
+ * @param {!proto.game.CollectionItem} message
3025
+ * @param {!jspb.BinaryWriter} writer
3026
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3027
+ */
3028
+ proto.game.CollectionItem.serializeBinaryToWriter = function(message, writer) {
3029
+ var f = undefined;
3030
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
3031
+ if (f != null) {
3032
+ writer.writeInt32(
3033
+ 1,
3034
+ f
3035
+ );
3036
+ }
3037
+ f = message.getCategory();
3038
+ if (f != null) {
3039
+ writer.writeMessage(
3040
+ 2,
3041
+ f,
3042
+ proto.game.CategoryItem.serializeBinaryToWriter
3043
+ );
3044
+ }
3045
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
3046
+ if (f != null) {
3047
+ writer.writeString(
3048
+ 3,
3049
+ f
3050
+ );
3051
+ }
3052
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3053
+ if (f != null) {
3054
+ writer.writeString(
3055
+ 4,
3056
+ f
3057
+ );
3058
+ }
3059
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3060
+ if (f != null) {
3061
+ writer.writeString(
3062
+ 5,
3063
+ f
3064
+ );
3065
+ }
3066
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
3067
+ if (f != null) {
3068
+ writer.writeInt32(
3069
+ 6,
3070
+ f
3071
+ );
3072
+ }
3073
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
3074
+ if (f != null) {
3075
+ writer.writeString(
3076
+ 7,
3077
+ f
3078
+ );
3079
+ }
3080
+ };
3081
+
3082
+
3083
+ /**
3084
+ * optional int32 id = 1;
3085
+ * @return {number}
3086
+ */
3087
+ proto.game.CollectionItem.prototype.getId = function() {
3088
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3089
+ };
3090
+
3091
+
3092
+ /**
3093
+ * @param {number} value
3094
+ * @return {!proto.game.CollectionItem} returns this
3095
+ */
3096
+ proto.game.CollectionItem.prototype.setId = function(value) {
3097
+ return jspb.Message.setField(this, 1, value);
3098
+ };
3099
+
3100
+
3101
+ /**
3102
+ * Clears the field making it undefined.
3103
+ * @return {!proto.game.CollectionItem} returns this
3104
+ */
3105
+ proto.game.CollectionItem.prototype.clearId = function() {
3106
+ return jspb.Message.setField(this, 1, undefined);
3107
+ };
3108
+
3109
+
3110
+ /**
3111
+ * Returns whether this field is set.
3112
+ * @return {boolean}
3113
+ */
3114
+ proto.game.CollectionItem.prototype.hasId = function() {
3115
+ return jspb.Message.getField(this, 1) != null;
3116
+ };
3117
+
3118
+
3119
+ /**
3120
+ * optional CategoryItem category = 2;
3121
+ * @return {?proto.game.CategoryItem}
3122
+ */
3123
+ proto.game.CollectionItem.prototype.getCategory = function() {
3124
+ return /** @type{?proto.game.CategoryItem} */ (
3125
+ jspb.Message.getWrapperField(this, proto.game.CategoryItem, 2));
3126
+ };
3127
+
3128
+
3129
+ /**
3130
+ * @param {?proto.game.CategoryItem|undefined} value
3131
+ * @return {!proto.game.CollectionItem} returns this
3132
+ */
3133
+ proto.game.CollectionItem.prototype.setCategory = function(value) {
3134
+ return jspb.Message.setWrapperField(this, 2, value);
3135
+ };
3136
+
3137
+
3138
+ /**
3139
+ * Clears the message field making it undefined.
3140
+ * @return {!proto.game.CollectionItem} returns this
3141
+ */
3142
+ proto.game.CollectionItem.prototype.clearCategory = function() {
3143
+ return this.setCategory(undefined);
3144
+ };
3145
+
3146
+
3147
+ /**
3148
+ * Returns whether this field is set.
3149
+ * @return {boolean}
3150
+ */
3151
+ proto.game.CollectionItem.prototype.hasCategory = function() {
3152
+ return jspb.Message.getField(this, 2) != null;
3153
+ };
3154
+
3155
+
3156
+ /**
3157
+ * optional string title = 3;
3158
+ * @return {string}
3159
+ */
3160
+ proto.game.CollectionItem.prototype.getTitle = function() {
3161
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3162
+ };
3163
+
3164
+
3165
+ /**
3166
+ * @param {string} value
3167
+ * @return {!proto.game.CollectionItem} returns this
3168
+ */
3169
+ proto.game.CollectionItem.prototype.setTitle = function(value) {
3170
+ return jspb.Message.setField(this, 3, value);
3171
+ };
3172
+
3173
+
3174
+ /**
3175
+ * Clears the field making it undefined.
3176
+ * @return {!proto.game.CollectionItem} returns this
3177
+ */
3178
+ proto.game.CollectionItem.prototype.clearTitle = function() {
3179
+ return jspb.Message.setField(this, 3, undefined);
3180
+ };
3181
+
3182
+
3183
+ /**
3184
+ * Returns whether this field is set.
3185
+ * @return {boolean}
3186
+ */
3187
+ proto.game.CollectionItem.prototype.hasTitle = function() {
3188
+ return jspb.Message.getField(this, 3) != null;
3189
+ };
3190
+
3191
+
3192
+ /**
3193
+ * optional string slug = 4;
3194
+ * @return {string}
3195
+ */
3196
+ proto.game.CollectionItem.prototype.getSlug = function() {
3197
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3198
+ };
3199
+
3200
+
3201
+ /**
3202
+ * @param {string} value
3203
+ * @return {!proto.game.CollectionItem} returns this
3204
+ */
3205
+ proto.game.CollectionItem.prototype.setSlug = function(value) {
3206
+ return jspb.Message.setField(this, 4, value);
3207
+ };
3208
+
3209
+
3210
+ /**
3211
+ * Clears the field making it undefined.
3212
+ * @return {!proto.game.CollectionItem} returns this
3213
+ */
3214
+ proto.game.CollectionItem.prototype.clearSlug = function() {
3215
+ return jspb.Message.setField(this, 4, undefined);
3216
+ };
3217
+
3218
+
3219
+ /**
3220
+ * Returns whether this field is set.
3221
+ * @return {boolean}
3222
+ */
3223
+ proto.game.CollectionItem.prototype.hasSlug = function() {
3224
+ return jspb.Message.getField(this, 4) != null;
3225
+ };
3226
+
3227
+
3228
+ /**
3229
+ * optional string description = 5;
3230
+ * @return {string}
3231
+ */
3232
+ proto.game.CollectionItem.prototype.getDescription = function() {
3233
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3234
+ };
3235
+
3236
+
3237
+ /**
3238
+ * @param {string} value
3239
+ * @return {!proto.game.CollectionItem} returns this
3240
+ */
3241
+ proto.game.CollectionItem.prototype.setDescription = function(value) {
3242
+ return jspb.Message.setField(this, 5, value);
3243
+ };
3244
+
3245
+
3246
+ /**
3247
+ * Clears the field making it undefined.
3248
+ * @return {!proto.game.CollectionItem} returns this
3249
+ */
3250
+ proto.game.CollectionItem.prototype.clearDescription = function() {
3251
+ return jspb.Message.setField(this, 5, undefined);
3252
+ };
3253
+
3254
+
3255
+ /**
3256
+ * Returns whether this field is set.
3257
+ * @return {boolean}
3258
+ */
3259
+ proto.game.CollectionItem.prototype.hasDescription = function() {
3260
+ return jspb.Message.getField(this, 5) != null;
3261
+ };
3262
+
3263
+
3264
+ /**
3265
+ * optional int32 is_active = 6;
3266
+ * @return {number}
3267
+ */
3268
+ proto.game.CollectionItem.prototype.getIsActive = function() {
3269
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3270
+ };
3271
+
3272
+
3273
+ /**
3274
+ * @param {number} value
3275
+ * @return {!proto.game.CollectionItem} returns this
3276
+ */
3277
+ proto.game.CollectionItem.prototype.setIsActive = function(value) {
3278
+ return jspb.Message.setField(this, 6, value);
3279
+ };
3280
+
3281
+
3282
+ /**
3283
+ * Clears the field making it undefined.
3284
+ * @return {!proto.game.CollectionItem} returns this
3285
+ */
3286
+ proto.game.CollectionItem.prototype.clearIsActive = function() {
3287
+ return jspb.Message.setField(this, 6, undefined);
3288
+ };
3289
+
3290
+
3291
+ /**
3292
+ * Returns whether this field is set.
3293
+ * @return {boolean}
3294
+ */
3295
+ proto.game.CollectionItem.prototype.hasIsActive = function() {
3296
+ return jspb.Message.getField(this, 6) != null;
3297
+ };
3298
+
3299
+
3300
+ /**
3301
+ * optional string image = 7;
3302
+ * @return {string}
3303
+ */
3304
+ proto.game.CollectionItem.prototype.getImage = function() {
3305
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3306
+ };
3307
+
3308
+
3309
+ /**
3310
+ * @param {string} value
3311
+ * @return {!proto.game.CollectionItem} returns this
3312
+ */
3313
+ proto.game.CollectionItem.prototype.setImage = function(value) {
3314
+ return jspb.Message.setField(this, 7, value);
3315
+ };
3316
+
3317
+
3318
+ /**
3319
+ * Clears the field making it undefined.
3320
+ * @return {!proto.game.CollectionItem} returns this
3321
+ */
3322
+ proto.game.CollectionItem.prototype.clearImage = function() {
3323
+ return jspb.Message.setField(this, 7, undefined);
3324
+ };
3325
+
3326
+
3327
+ /**
3328
+ * Returns whether this field is set.
3329
+ * @return {boolean}
3330
+ */
3331
+ proto.game.CollectionItem.prototype.hasImage = function() {
3332
+ return jspb.Message.getField(this, 7) != null;
3333
+ };
3334
+
3335
+
3336
+
3337
+ /**
3338
+ * Oneof group definitions for this message. Each group defines the field
3339
+ * numbers belonging to that group. When of these fields' value is set, all
3340
+ * other fields in the group are cleared. During deserialization, if multiple
3341
+ * fields are encountered for a group, only the last value seen will be kept.
3342
+ * @private {!Array<!Array<number>>}
3343
+ * @const
3344
+ */
3345
+ proto.game.CollectionRequest.oneofGroups_ = [[1,2]];
3346
+
3347
+ /**
3348
+ * @enum {number}
3349
+ */
3350
+ proto.game.CollectionRequest.RequestCase = {
3351
+ REQUEST_NOT_SET: 0,
3352
+ COLLECTION_DATA: 1,
3353
+ FILE: 2
3354
+ };
3355
+
3356
+ /**
3357
+ * @return {proto.game.CollectionRequest.RequestCase}
3358
+ */
3359
+ proto.game.CollectionRequest.prototype.getRequestCase = function() {
3360
+ return /** @type {proto.game.CollectionRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.game.CollectionRequest.oneofGroups_[0]));
3361
+ };
3362
+
3363
+
3364
+
3365
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3366
+ /**
3367
+ * Creates an object representation of this proto.
3368
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3369
+ * Optional fields that are not set will be set to undefined.
3370
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3371
+ * For the list of reserved names please see:
3372
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3373
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3374
+ * JSPB instance for transitional soy proto support:
3375
+ * http://goto/soy-param-migration
3376
+ * @return {!Object}
3377
+ */
3378
+ proto.game.CollectionRequest.prototype.toObject = function(opt_includeInstance) {
3379
+ return proto.game.CollectionRequest.toObject(opt_includeInstance, this);
3380
+ };
3381
+
3382
+
3383
+ /**
3384
+ * Static version of the {@see toObject} method.
3385
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3386
+ * the JSPB instance for transitional soy proto support:
3387
+ * http://goto/soy-param-migration
3388
+ * @param {!proto.game.CollectionRequest} msg The msg instance to transform.
3389
+ * @return {!Object}
3390
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3391
+ */
3392
+ proto.game.CollectionRequest.toObject = function(includeInstance, msg) {
3393
+ var f, obj = {
3394
+ collectionData: (f = msg.getCollectionData()) && proto.game.CollectionItemRequest.toObject(includeInstance, f),
3395
+ file: (f = msg.getFile()) && proto.game.File.toObject(includeInstance, f)
3396
+ };
3397
+
3398
+ if (includeInstance) {
3399
+ obj.$jspbMessageInstance = msg;
3400
+ }
3401
+ return obj;
3402
+ };
3403
+ }
3404
+
3405
+
3406
+ /**
3407
+ * Deserializes binary data (in protobuf wire format).
3408
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3409
+ * @return {!proto.game.CollectionRequest}
3410
+ */
3411
+ proto.game.CollectionRequest.deserializeBinary = function(bytes) {
3412
+ var reader = new jspb.BinaryReader(bytes);
3413
+ var msg = new proto.game.CollectionRequest;
3414
+ return proto.game.CollectionRequest.deserializeBinaryFromReader(msg, reader);
3415
+ };
3416
+
3417
+
3418
+ /**
3419
+ * Deserializes binary data (in protobuf wire format) from the
3420
+ * given reader into the given message object.
3421
+ * @param {!proto.game.CollectionRequest} msg The message object to deserialize into.
3422
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3423
+ * @return {!proto.game.CollectionRequest}
3424
+ */
3425
+ proto.game.CollectionRequest.deserializeBinaryFromReader = function(msg, reader) {
3426
+ while (reader.nextField()) {
3427
+ if (reader.isEndGroup()) {
3428
+ break;
3429
+ }
3430
+ var field = reader.getFieldNumber();
3431
+ switch (field) {
3432
+ case 1:
3433
+ var value = new proto.game.CollectionItemRequest;
3434
+ reader.readMessage(value,proto.game.CollectionItemRequest.deserializeBinaryFromReader);
3435
+ msg.setCollectionData(value);
3436
+ break;
3437
+ case 2:
3438
+ var value = new proto.game.File;
3439
+ reader.readMessage(value,proto.game.File.deserializeBinaryFromReader);
3440
+ msg.setFile(value);
3441
+ break;
3442
+ default:
3443
+ reader.skipField();
3444
+ break;
3445
+ }
3446
+ }
3447
+ return msg;
3448
+ };
3449
+
3450
+
3451
+ /**
3452
+ * Serializes the message to binary data (in protobuf wire format).
3453
+ * @return {!Uint8Array}
3454
+ */
3455
+ proto.game.CollectionRequest.prototype.serializeBinary = function() {
3456
+ var writer = new jspb.BinaryWriter();
3457
+ proto.game.CollectionRequest.serializeBinaryToWriter(this, writer);
3458
+ return writer.getResultBuffer();
3459
+ };
3460
+
3461
+
3462
+ /**
3463
+ * Serializes the given message to binary data (in protobuf wire
3464
+ * format), writing to the given BinaryWriter.
3465
+ * @param {!proto.game.CollectionRequest} message
3466
+ * @param {!jspb.BinaryWriter} writer
3467
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3468
+ */
3469
+ proto.game.CollectionRequest.serializeBinaryToWriter = function(message, writer) {
3470
+ var f = undefined;
3471
+ f = message.getCollectionData();
3472
+ if (f != null) {
3473
+ writer.writeMessage(
3474
+ 1,
3475
+ f,
3476
+ proto.game.CollectionItemRequest.serializeBinaryToWriter
3477
+ );
3478
+ }
3479
+ f = message.getFile();
3480
+ if (f != null) {
3481
+ writer.writeMessage(
3482
+ 2,
3483
+ f,
3484
+ proto.game.File.serializeBinaryToWriter
3485
+ );
3486
+ }
3487
+ };
3488
+
3489
+
3490
+ /**
3491
+ * optional CollectionItemRequest collection_data = 1;
3492
+ * @return {?proto.game.CollectionItemRequest}
3493
+ */
3494
+ proto.game.CollectionRequest.prototype.getCollectionData = function() {
3495
+ return /** @type{?proto.game.CollectionItemRequest} */ (
3496
+ jspb.Message.getWrapperField(this, proto.game.CollectionItemRequest, 1));
3497
+ };
3498
+
3499
+
3500
+ /**
3501
+ * @param {?proto.game.CollectionItemRequest|undefined} value
3502
+ * @return {!proto.game.CollectionRequest} returns this
3503
+ */
3504
+ proto.game.CollectionRequest.prototype.setCollectionData = function(value) {
3505
+ return jspb.Message.setOneofWrapperField(this, 1, proto.game.CollectionRequest.oneofGroups_[0], value);
3506
+ };
3507
+
3508
+
3509
+ /**
3510
+ * Clears the message field making it undefined.
3511
+ * @return {!proto.game.CollectionRequest} returns this
3512
+ */
3513
+ proto.game.CollectionRequest.prototype.clearCollectionData = function() {
3514
+ return this.setCollectionData(undefined);
3515
+ };
3516
+
3517
+
3518
+ /**
3519
+ * Returns whether this field is set.
3520
+ * @return {boolean}
3521
+ */
3522
+ proto.game.CollectionRequest.prototype.hasCollectionData = function() {
3523
+ return jspb.Message.getField(this, 1) != null;
3524
+ };
3525
+
3526
+
3527
+ /**
3528
+ * optional File file = 2;
3529
+ * @return {?proto.game.File}
3530
+ */
3531
+ proto.game.CollectionRequest.prototype.getFile = function() {
3532
+ return /** @type{?proto.game.File} */ (
3533
+ jspb.Message.getWrapperField(this, proto.game.File, 2));
3534
+ };
3535
+
3536
+
3537
+ /**
3538
+ * @param {?proto.game.File|undefined} value
3539
+ * @return {!proto.game.CollectionRequest} returns this
3540
+ */
3541
+ proto.game.CollectionRequest.prototype.setFile = function(value) {
3542
+ return jspb.Message.setOneofWrapperField(this, 2, proto.game.CollectionRequest.oneofGroups_[0], value);
3543
+ };
3544
+
3545
+
3546
+ /**
3547
+ * Clears the message field making it undefined.
3548
+ * @return {!proto.game.CollectionRequest} returns this
3549
+ */
3550
+ proto.game.CollectionRequest.prototype.clearFile = function() {
3551
+ return this.setFile(undefined);
3552
+ };
3553
+
3554
+
3555
+ /**
3556
+ * Returns whether this field is set.
3557
+ * @return {boolean}
3558
+ */
3559
+ proto.game.CollectionRequest.prototype.hasFile = function() {
3560
+ return jspb.Message.getField(this, 2) != null;
3561
+ };
3562
+
3563
+
3564
+
3565
+
3566
+
3567
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3568
+ /**
3569
+ * Creates an object representation of this proto.
3570
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3571
+ * Optional fields that are not set will be set to undefined.
3572
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3573
+ * For the list of reserved names please see:
3574
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3575
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3576
+ * JSPB instance for transitional soy proto support:
3577
+ * http://goto/soy-param-migration
3578
+ * @return {!Object}
3579
+ */
3580
+ proto.game.CollectionItemRequest.prototype.toObject = function(opt_includeInstance) {
3581
+ return proto.game.CollectionItemRequest.toObject(opt_includeInstance, this);
3582
+ };
3583
+
3584
+
3585
+ /**
3586
+ * Static version of the {@see toObject} method.
3587
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3588
+ * the JSPB instance for transitional soy proto support:
3589
+ * http://goto/soy-param-migration
3590
+ * @param {!proto.game.CollectionItemRequest} msg The msg instance to transform.
3591
+ * @return {!Object}
3592
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3593
+ */
3594
+ proto.game.CollectionItemRequest.toObject = function(includeInstance, msg) {
3595
+ var f, obj = {
3596
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3597
+ categoryId: jspb.Message.getFieldWithDefault(msg, 2, 0),
3598
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
3599
+ slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
3600
+ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
3601
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
3602
+ fileName: jspb.Message.getFieldWithDefault(msg, 7, ""),
3603
+ fileType: jspb.Message.getFieldWithDefault(msg, 8, "")
3604
+ };
3605
+
3606
+ if (includeInstance) {
3607
+ obj.$jspbMessageInstance = msg;
3608
+ }
3609
+ return obj;
3610
+ };
3611
+ }
3612
+
3613
+
3614
+ /**
3615
+ * Deserializes binary data (in protobuf wire format).
3616
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3617
+ * @return {!proto.game.CollectionItemRequest}
3618
+ */
3619
+ proto.game.CollectionItemRequest.deserializeBinary = function(bytes) {
3620
+ var reader = new jspb.BinaryReader(bytes);
3621
+ var msg = new proto.game.CollectionItemRequest;
3622
+ return proto.game.CollectionItemRequest.deserializeBinaryFromReader(msg, reader);
3623
+ };
3624
+
3625
+
3626
+ /**
3627
+ * Deserializes binary data (in protobuf wire format) from the
3628
+ * given reader into the given message object.
3629
+ * @param {!proto.game.CollectionItemRequest} msg The message object to deserialize into.
3630
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3631
+ * @return {!proto.game.CollectionItemRequest}
3632
+ */
3633
+ proto.game.CollectionItemRequest.deserializeBinaryFromReader = function(msg, reader) {
3634
+ while (reader.nextField()) {
3635
+ if (reader.isEndGroup()) {
3636
+ break;
3637
+ }
3638
+ var field = reader.getFieldNumber();
3639
+ switch (field) {
3640
+ case 1:
3641
+ var value = /** @type {number} */ (reader.readInt32());
3642
+ msg.setId(value);
3643
+ break;
3644
+ case 2:
3645
+ var value = /** @type {number} */ (reader.readInt32());
3646
+ msg.setCategoryId(value);
3647
+ break;
3648
+ case 3:
3649
+ var value = /** @type {string} */ (reader.readString());
3650
+ msg.setTitle(value);
3651
+ break;
3652
+ case 4:
3653
+ var value = /** @type {string} */ (reader.readString());
3654
+ msg.setSlug(value);
3655
+ break;
3656
+ case 5:
3657
+ var value = /** @type {string} */ (reader.readString());
3658
+ msg.setDescription(value);
3659
+ break;
3660
+ case 6:
3661
+ var value = /** @type {number} */ (reader.readInt32());
3662
+ msg.setIsActive(value);
3663
+ break;
3664
+ case 7:
3665
+ var value = /** @type {string} */ (reader.readString());
3666
+ msg.setFileName(value);
3667
+ break;
3668
+ case 8:
3669
+ var value = /** @type {string} */ (reader.readString());
3670
+ msg.setFileType(value);
3671
+ break;
3672
+ default:
3673
+ reader.skipField();
3674
+ break;
3675
+ }
3676
+ }
3677
+ return msg;
3678
+ };
3679
+
3680
+
3681
+ /**
3682
+ * Serializes the message to binary data (in protobuf wire format).
3683
+ * @return {!Uint8Array}
3684
+ */
3685
+ proto.game.CollectionItemRequest.prototype.serializeBinary = function() {
3686
+ var writer = new jspb.BinaryWriter();
3687
+ proto.game.CollectionItemRequest.serializeBinaryToWriter(this, writer);
3688
+ return writer.getResultBuffer();
3689
+ };
3690
+
3691
+
3692
+ /**
3693
+ * Serializes the given message to binary data (in protobuf wire
3694
+ * format), writing to the given BinaryWriter.
3695
+ * @param {!proto.game.CollectionItemRequest} message
3696
+ * @param {!jspb.BinaryWriter} writer
3697
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3698
+ */
3699
+ proto.game.CollectionItemRequest.serializeBinaryToWriter = function(message, writer) {
3700
+ var f = undefined;
3701
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
3702
+ if (f != null) {
3703
+ writer.writeInt32(
3704
+ 1,
3705
+ f
3706
+ );
3707
+ }
3708
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
3709
+ if (f != null) {
3710
+ writer.writeInt32(
3711
+ 2,
3712
+ f
3713
+ );
3714
+ }
3715
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
3716
+ if (f != null) {
3717
+ writer.writeString(
3718
+ 3,
3719
+ f
3720
+ );
3721
+ }
3722
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3723
+ if (f != null) {
3724
+ writer.writeString(
3725
+ 4,
3726
+ f
3727
+ );
3728
+ }
3729
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3730
+ if (f != null) {
3731
+ writer.writeString(
3732
+ 5,
3733
+ f
3734
+ );
3735
+ }
3736
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
3737
+ if (f != null) {
3738
+ writer.writeInt32(
3739
+ 6,
3740
+ f
3741
+ );
3742
+ }
3743
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
3744
+ if (f != null) {
3745
+ writer.writeString(
3746
+ 7,
3747
+ f
3748
+ );
3749
+ }
3750
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
3751
+ if (f != null) {
3752
+ writer.writeString(
3753
+ 8,
3754
+ f
3755
+ );
3756
+ }
3757
+ };
3758
+
3759
+
3760
+ /**
3761
+ * optional int32 id = 1;
3762
+ * @return {number}
3763
+ */
3764
+ proto.game.CollectionItemRequest.prototype.getId = function() {
3765
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3766
+ };
3767
+
3768
+
3769
+ /**
3770
+ * @param {number} value
3771
+ * @return {!proto.game.CollectionItemRequest} returns this
3772
+ */
3773
+ proto.game.CollectionItemRequest.prototype.setId = function(value) {
3774
+ return jspb.Message.setField(this, 1, value);
3775
+ };
3776
+
3777
+
3778
+ /**
3779
+ * Clears the field making it undefined.
3780
+ * @return {!proto.game.CollectionItemRequest} returns this
3781
+ */
3782
+ proto.game.CollectionItemRequest.prototype.clearId = function() {
3783
+ return jspb.Message.setField(this, 1, undefined);
3784
+ };
3785
+
3786
+
3787
+ /**
3788
+ * Returns whether this field is set.
3789
+ * @return {boolean}
3790
+ */
3791
+ proto.game.CollectionItemRequest.prototype.hasId = function() {
3792
+ return jspb.Message.getField(this, 1) != null;
3793
+ };
3794
+
3795
+
3796
+ /**
3797
+ * optional int32 category_id = 2;
3798
+ * @return {number}
3799
+ */
3800
+ proto.game.CollectionItemRequest.prototype.getCategoryId = function() {
3801
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3802
+ };
3803
+
3804
+
3805
+ /**
3806
+ * @param {number} value
3807
+ * @return {!proto.game.CollectionItemRequest} returns this
3808
+ */
3809
+ proto.game.CollectionItemRequest.prototype.setCategoryId = function(value) {
3810
+ return jspb.Message.setField(this, 2, value);
3811
+ };
3812
+
3813
+
3814
+ /**
3815
+ * Clears the field making it undefined.
3816
+ * @return {!proto.game.CollectionItemRequest} returns this
3817
+ */
3818
+ proto.game.CollectionItemRequest.prototype.clearCategoryId = function() {
3819
+ return jspb.Message.setField(this, 2, undefined);
3820
+ };
3821
+
3822
+
3823
+ /**
3824
+ * Returns whether this field is set.
3825
+ * @return {boolean}
3826
+ */
3827
+ proto.game.CollectionItemRequest.prototype.hasCategoryId = function() {
3828
+ return jspb.Message.getField(this, 2) != null;
3829
+ };
3830
+
3831
+
3832
+ /**
3833
+ * optional string title = 3;
3834
+ * @return {string}
3835
+ */
3836
+ proto.game.CollectionItemRequest.prototype.getTitle = function() {
3837
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3838
+ };
3839
+
3840
+
3841
+ /**
3842
+ * @param {string} value
3843
+ * @return {!proto.game.CollectionItemRequest} returns this
3844
+ */
3845
+ proto.game.CollectionItemRequest.prototype.setTitle = function(value) {
3846
+ return jspb.Message.setField(this, 3, value);
3847
+ };
3848
+
3849
+
3850
+ /**
3851
+ * Clears the field making it undefined.
3852
+ * @return {!proto.game.CollectionItemRequest} returns this
3853
+ */
3854
+ proto.game.CollectionItemRequest.prototype.clearTitle = function() {
3855
+ return jspb.Message.setField(this, 3, undefined);
3856
+ };
3857
+
3858
+
3859
+ /**
3860
+ * Returns whether this field is set.
3861
+ * @return {boolean}
3862
+ */
3863
+ proto.game.CollectionItemRequest.prototype.hasTitle = function() {
3864
+ return jspb.Message.getField(this, 3) != null;
3865
+ };
3866
+
3867
+
3868
+ /**
3869
+ * optional string slug = 4;
3870
+ * @return {string}
3871
+ */
3872
+ proto.game.CollectionItemRequest.prototype.getSlug = function() {
3873
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3874
+ };
3875
+
3876
+
3877
+ /**
3878
+ * @param {string} value
3879
+ * @return {!proto.game.CollectionItemRequest} returns this
3880
+ */
3881
+ proto.game.CollectionItemRequest.prototype.setSlug = function(value) {
3882
+ return jspb.Message.setField(this, 4, value);
3883
+ };
3884
+
3885
+
3886
+ /**
3887
+ * Clears the field making it undefined.
3888
+ * @return {!proto.game.CollectionItemRequest} returns this
3889
+ */
3890
+ proto.game.CollectionItemRequest.prototype.clearSlug = function() {
3891
+ return jspb.Message.setField(this, 4, undefined);
3892
+ };
3893
+
3894
+
3895
+ /**
3896
+ * Returns whether this field is set.
3897
+ * @return {boolean}
3898
+ */
3899
+ proto.game.CollectionItemRequest.prototype.hasSlug = function() {
3900
+ return jspb.Message.getField(this, 4) != null;
3901
+ };
3902
+
3903
+
3904
+ /**
3905
+ * optional string description = 5;
3906
+ * @return {string}
3907
+ */
3908
+ proto.game.CollectionItemRequest.prototype.getDescription = function() {
3909
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3910
+ };
3911
+
3912
+
3913
+ /**
3914
+ * @param {string} value
3915
+ * @return {!proto.game.CollectionItemRequest} returns this
3916
+ */
3917
+ proto.game.CollectionItemRequest.prototype.setDescription = function(value) {
3918
+ return jspb.Message.setField(this, 5, value);
3919
+ };
3920
+
3921
+
3922
+ /**
3923
+ * Clears the field making it undefined.
3924
+ * @return {!proto.game.CollectionItemRequest} returns this
3925
+ */
3926
+ proto.game.CollectionItemRequest.prototype.clearDescription = function() {
3927
+ return jspb.Message.setField(this, 5, undefined);
3928
+ };
3929
+
3930
+
3931
+ /**
3932
+ * Returns whether this field is set.
3933
+ * @return {boolean}
3934
+ */
3935
+ proto.game.CollectionItemRequest.prototype.hasDescription = function() {
3936
+ return jspb.Message.getField(this, 5) != null;
3937
+ };
3938
+
3939
+
3940
+ /**
3941
+ * optional int32 is_active = 6;
3942
+ * @return {number}
3943
+ */
3944
+ proto.game.CollectionItemRequest.prototype.getIsActive = function() {
3945
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3946
+ };
3947
+
3948
+
3949
+ /**
3950
+ * @param {number} value
3951
+ * @return {!proto.game.CollectionItemRequest} returns this
3952
+ */
3953
+ proto.game.CollectionItemRequest.prototype.setIsActive = function(value) {
3954
+ return jspb.Message.setField(this, 6, value);
3955
+ };
3956
+
3957
+
3958
+ /**
3959
+ * Clears the field making it undefined.
3960
+ * @return {!proto.game.CollectionItemRequest} returns this
3961
+ */
3962
+ proto.game.CollectionItemRequest.prototype.clearIsActive = function() {
3963
+ return jspb.Message.setField(this, 6, undefined);
3964
+ };
3965
+
3966
+
3967
+ /**
3968
+ * Returns whether this field is set.
3969
+ * @return {boolean}
3970
+ */
3971
+ proto.game.CollectionItemRequest.prototype.hasIsActive = function() {
3972
+ return jspb.Message.getField(this, 6) != null;
3973
+ };
3974
+
3975
+
3976
+ /**
3977
+ * optional string file_name = 7;
3978
+ * @return {string}
3979
+ */
3980
+ proto.game.CollectionItemRequest.prototype.getFileName = function() {
3981
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3982
+ };
3983
+
3984
+
3985
+ /**
3986
+ * @param {string} value
3987
+ * @return {!proto.game.CollectionItemRequest} returns this
3988
+ */
3989
+ proto.game.CollectionItemRequest.prototype.setFileName = function(value) {
3990
+ return jspb.Message.setField(this, 7, value);
3991
+ };
3992
+
3993
+
3994
+ /**
3995
+ * Clears the field making it undefined.
3996
+ * @return {!proto.game.CollectionItemRequest} returns this
3997
+ */
3998
+ proto.game.CollectionItemRequest.prototype.clearFileName = function() {
3999
+ return jspb.Message.setField(this, 7, undefined);
4000
+ };
4001
+
4002
+
4003
+ /**
4004
+ * Returns whether this field is set.
4005
+ * @return {boolean}
4006
+ */
4007
+ proto.game.CollectionItemRequest.prototype.hasFileName = function() {
4008
+ return jspb.Message.getField(this, 7) != null;
4009
+ };
4010
+
4011
+
4012
+ /**
4013
+ * optional string file_type = 8;
4014
+ * @return {string}
4015
+ */
4016
+ proto.game.CollectionItemRequest.prototype.getFileType = function() {
4017
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4018
+ };
4019
+
4020
+
4021
+ /**
4022
+ * @param {string} value
4023
+ * @return {!proto.game.CollectionItemRequest} returns this
4024
+ */
4025
+ proto.game.CollectionItemRequest.prototype.setFileType = function(value) {
4026
+ return jspb.Message.setField(this, 8, value);
4027
+ };
4028
+
4029
+
4030
+ /**
4031
+ * Clears the field making it undefined.
4032
+ * @return {!proto.game.CollectionItemRequest} returns this
4033
+ */
4034
+ proto.game.CollectionItemRequest.prototype.clearFileType = function() {
4035
+ return jspb.Message.setField(this, 8, undefined);
4036
+ };
4037
+
4038
+
4039
+ /**
4040
+ * Returns whether this field is set.
4041
+ * @return {boolean}
4042
+ */
4043
+ proto.game.CollectionItemRequest.prototype.hasFileType = function() {
4044
+ return jspb.Message.getField(this, 8) != null;
4045
+ };
4046
+
4047
+
4048
+
4049
+
4050
+
4051
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4052
+ /**
4053
+ * Creates an object representation of this proto.
4054
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4055
+ * Optional fields that are not set will be set to undefined.
4056
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4057
+ * For the list of reserved names please see:
4058
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4059
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4060
+ * JSPB instance for transitional soy proto support:
4061
+ * http://goto/soy-param-migration
4062
+ * @return {!Object}
4063
+ */
4064
+ proto.game.GetCollectionRequest.prototype.toObject = function(opt_includeInstance) {
4065
+ return proto.game.GetCollectionRequest.toObject(opt_includeInstance, this);
4066
+ };
4067
+
4068
+
4069
+ /**
4070
+ * Static version of the {@see toObject} method.
4071
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4072
+ * the JSPB instance for transitional soy proto support:
4073
+ * http://goto/soy-param-migration
4074
+ * @param {!proto.game.GetCollectionRequest} msg The msg instance to transform.
4075
+ * @return {!Object}
4076
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4077
+ */
4078
+ proto.game.GetCollectionRequest.toObject = function(includeInstance, msg) {
4079
+ var f, obj = {
4080
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
4081
+ };
4082
+
4083
+ if (includeInstance) {
4084
+ obj.$jspbMessageInstance = msg;
4085
+ }
4086
+ return obj;
4087
+ };
4088
+ }
4089
+
4090
+
4091
+ /**
4092
+ * Deserializes binary data (in protobuf wire format).
4093
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4094
+ * @return {!proto.game.GetCollectionRequest}
4095
+ */
4096
+ proto.game.GetCollectionRequest.deserializeBinary = function(bytes) {
4097
+ var reader = new jspb.BinaryReader(bytes);
4098
+ var msg = new proto.game.GetCollectionRequest;
4099
+ return proto.game.GetCollectionRequest.deserializeBinaryFromReader(msg, reader);
4100
+ };
4101
+
4102
+
4103
+ /**
4104
+ * Deserializes binary data (in protobuf wire format) from the
4105
+ * given reader into the given message object.
4106
+ * @param {!proto.game.GetCollectionRequest} msg The message object to deserialize into.
4107
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4108
+ * @return {!proto.game.GetCollectionRequest}
4109
+ */
4110
+ proto.game.GetCollectionRequest.deserializeBinaryFromReader = function(msg, reader) {
4111
+ while (reader.nextField()) {
4112
+ if (reader.isEndGroup()) {
4113
+ break;
4114
+ }
4115
+ var field = reader.getFieldNumber();
4116
+ switch (field) {
4117
+ case 1:
4118
+ var value = /** @type {number} */ (reader.readInt32());
4119
+ msg.setId(value);
4120
+ break;
4121
+ default:
4122
+ reader.skipField();
4123
+ break;
4124
+ }
4125
+ }
4126
+ return msg;
4127
+ };
4128
+
4129
+
4130
+ /**
4131
+ * Serializes the message to binary data (in protobuf wire format).
4132
+ * @return {!Uint8Array}
4133
+ */
4134
+ proto.game.GetCollectionRequest.prototype.serializeBinary = function() {
4135
+ var writer = new jspb.BinaryWriter();
4136
+ proto.game.GetCollectionRequest.serializeBinaryToWriter(this, writer);
4137
+ return writer.getResultBuffer();
4138
+ };
4139
+
4140
+
4141
+ /**
4142
+ * Serializes the given message to binary data (in protobuf wire
4143
+ * format), writing to the given BinaryWriter.
4144
+ * @param {!proto.game.GetCollectionRequest} message
4145
+ * @param {!jspb.BinaryWriter} writer
4146
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4147
+ */
4148
+ proto.game.GetCollectionRequest.serializeBinaryToWriter = function(message, writer) {
4149
+ var f = undefined;
4150
+ f = message.getId();
4151
+ if (f !== 0) {
4152
+ writer.writeInt32(
4153
+ 1,
4154
+ f
4155
+ );
4156
+ }
4157
+ };
4158
+
4159
+
4160
+ /**
4161
+ * optional int32 id = 1;
4162
+ * @return {number}
4163
+ */
4164
+ proto.game.GetCollectionRequest.prototype.getId = function() {
4165
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4166
+ };
4167
+
4168
+
4169
+ /**
4170
+ * @param {number} value
4171
+ * @return {!proto.game.GetCollectionRequest} returns this
4172
+ */
4173
+ proto.game.GetCollectionRequest.prototype.setId = function(value) {
4174
+ return jspb.Message.setProto3IntField(this, 1, value);
4175
+ };
4176
+
4177
+
4178
+
4179
+
4180
+
4181
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4182
+ /**
4183
+ * Creates an object representation of this proto.
4184
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4185
+ * Optional fields that are not set will be set to undefined.
4186
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4187
+ * For the list of reserved names please see:
4188
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4189
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4190
+ * JSPB instance for transitional soy proto support:
4191
+ * http://goto/soy-param-migration
4192
+ * @return {!Object}
4193
+ */
4194
+ proto.game.CollectionResponse.prototype.toObject = function(opt_includeInstance) {
4195
+ return proto.game.CollectionResponse.toObject(opt_includeInstance, this);
4196
+ };
4197
+
4198
+
4199
+ /**
4200
+ * Static version of the {@see toObject} method.
4201
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4202
+ * the JSPB instance for transitional soy proto support:
4203
+ * http://goto/soy-param-migration
4204
+ * @param {!proto.game.CollectionResponse} msg The msg instance to transform.
4205
+ * @return {!Object}
4206
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4207
+ */
4208
+ proto.game.CollectionResponse.toObject = function(includeInstance, msg) {
4209
+ var f, obj = {
4210
+ data: (f = msg.getData()) && proto.game.CollectionItem.toObject(includeInstance, f)
4211
+ };
4212
+
4213
+ if (includeInstance) {
4214
+ obj.$jspbMessageInstance = msg;
4215
+ }
4216
+ return obj;
4217
+ };
4218
+ }
4219
+
4220
+
4221
+ /**
4222
+ * Deserializes binary data (in protobuf wire format).
4223
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4224
+ * @return {!proto.game.CollectionResponse}
4225
+ */
4226
+ proto.game.CollectionResponse.deserializeBinary = function(bytes) {
4227
+ var reader = new jspb.BinaryReader(bytes);
4228
+ var msg = new proto.game.CollectionResponse;
4229
+ return proto.game.CollectionResponse.deserializeBinaryFromReader(msg, reader);
4230
+ };
4231
+
4232
+
4233
+ /**
4234
+ * Deserializes binary data (in protobuf wire format) from the
4235
+ * given reader into the given message object.
4236
+ * @param {!proto.game.CollectionResponse} msg The message object to deserialize into.
4237
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4238
+ * @return {!proto.game.CollectionResponse}
4239
+ */
4240
+ proto.game.CollectionResponse.deserializeBinaryFromReader = function(msg, reader) {
4241
+ while (reader.nextField()) {
4242
+ if (reader.isEndGroup()) {
4243
+ break;
4244
+ }
4245
+ var field = reader.getFieldNumber();
4246
+ switch (field) {
4247
+ case 1:
4248
+ var value = new proto.game.CollectionItem;
4249
+ reader.readMessage(value,proto.game.CollectionItem.deserializeBinaryFromReader);
4250
+ msg.setData(value);
4251
+ break;
4252
+ default:
4253
+ reader.skipField();
4254
+ break;
4255
+ }
4256
+ }
4257
+ return msg;
4258
+ };
4259
+
4260
+
4261
+ /**
4262
+ * Serializes the message to binary data (in protobuf wire format).
4263
+ * @return {!Uint8Array}
4264
+ */
4265
+ proto.game.CollectionResponse.prototype.serializeBinary = function() {
4266
+ var writer = new jspb.BinaryWriter();
4267
+ proto.game.CollectionResponse.serializeBinaryToWriter(this, writer);
4268
+ return writer.getResultBuffer();
4269
+ };
4270
+
4271
+
4272
+ /**
4273
+ * Serializes the given message to binary data (in protobuf wire
4274
+ * format), writing to the given BinaryWriter.
4275
+ * @param {!proto.game.CollectionResponse} message
4276
+ * @param {!jspb.BinaryWriter} writer
4277
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4278
+ */
4279
+ proto.game.CollectionResponse.serializeBinaryToWriter = function(message, writer) {
4280
+ var f = undefined;
4281
+ f = message.getData();
4282
+ if (f != null) {
4283
+ writer.writeMessage(
4284
+ 1,
4285
+ f,
4286
+ proto.game.CollectionItem.serializeBinaryToWriter
4287
+ );
4288
+ }
4289
+ };
4290
+
4291
+
4292
+ /**
4293
+ * optional CollectionItem data = 1;
4294
+ * @return {?proto.game.CollectionItem}
4295
+ */
4296
+ proto.game.CollectionResponse.prototype.getData = function() {
4297
+ return /** @type{?proto.game.CollectionItem} */ (
4298
+ jspb.Message.getWrapperField(this, proto.game.CollectionItem, 1));
4299
+ };
4300
+
4301
+
4302
+ /**
4303
+ * @param {?proto.game.CollectionItem|undefined} value
4304
+ * @return {!proto.game.CollectionResponse} returns this
4305
+ */
4306
+ proto.game.CollectionResponse.prototype.setData = function(value) {
4307
+ return jspb.Message.setWrapperField(this, 1, value);
4308
+ };
4309
+
4310
+
4311
+ /**
4312
+ * Clears the message field making it undefined.
4313
+ * @return {!proto.game.CollectionResponse} returns this
4314
+ */
4315
+ proto.game.CollectionResponse.prototype.clearData = function() {
4316
+ return this.setData(undefined);
4317
+ };
4318
+
4319
+
4320
+ /**
4321
+ * Returns whether this field is set.
4322
+ * @return {boolean}
4323
+ */
4324
+ proto.game.CollectionResponse.prototype.hasData = function() {
4325
+ return jspb.Message.getField(this, 1) != null;
4326
+ };
4327
+
4328
+
4329
+
4330
+ /**
4331
+ * List of repeated fields within this message type.
4332
+ * @private {!Array<number>}
4333
+ * @const
4334
+ */
4335
+ proto.game.CollectionItemsResponse.repeatedFields_ = [1];
4336
+
4337
+
4338
+
4339
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4340
+ /**
4341
+ * Creates an object representation of this proto.
4342
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4343
+ * Optional fields that are not set will be set to undefined.
4344
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4345
+ * For the list of reserved names please see:
4346
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4347
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4348
+ * JSPB instance for transitional soy proto support:
4349
+ * http://goto/soy-param-migration
4350
+ * @return {!Object}
4351
+ */
4352
+ proto.game.CollectionItemsResponse.prototype.toObject = function(opt_includeInstance) {
4353
+ return proto.game.CollectionItemsResponse.toObject(opt_includeInstance, this);
4354
+ };
4355
+
4356
+
4357
+ /**
4358
+ * Static version of the {@see toObject} method.
4359
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4360
+ * the JSPB instance for transitional soy proto support:
4361
+ * http://goto/soy-param-migration
4362
+ * @param {!proto.game.CollectionItemsResponse} msg The msg instance to transform.
4363
+ * @return {!Object}
4364
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4365
+ */
4366
+ proto.game.CollectionItemsResponse.toObject = function(includeInstance, msg) {
4367
+ var f, obj = {
4368
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
4369
+ proto.game.CollectionItem.toObject, includeInstance),
4370
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
4371
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
4372
+ };
4373
+
4374
+ if (includeInstance) {
4375
+ obj.$jspbMessageInstance = msg;
4376
+ }
4377
+ return obj;
4378
+ };
4379
+ }
4380
+
4381
+
4382
+ /**
4383
+ * Deserializes binary data (in protobuf wire format).
4384
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4385
+ * @return {!proto.game.CollectionItemsResponse}
4386
+ */
4387
+ proto.game.CollectionItemsResponse.deserializeBinary = function(bytes) {
4388
+ var reader = new jspb.BinaryReader(bytes);
4389
+ var msg = new proto.game.CollectionItemsResponse;
4390
+ return proto.game.CollectionItemsResponse.deserializeBinaryFromReader(msg, reader);
4391
+ };
4392
+
4393
+
4394
+ /**
4395
+ * Deserializes binary data (in protobuf wire format) from the
4396
+ * given reader into the given message object.
4397
+ * @param {!proto.game.CollectionItemsResponse} msg The message object to deserialize into.
4398
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4399
+ * @return {!proto.game.CollectionItemsResponse}
4400
+ */
4401
+ proto.game.CollectionItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
4402
+ while (reader.nextField()) {
4403
+ if (reader.isEndGroup()) {
4404
+ break;
4405
+ }
4406
+ var field = reader.getFieldNumber();
4407
+ switch (field) {
4408
+ case 1:
4409
+ var value = new proto.game.CollectionItem;
4410
+ reader.readMessage(value,proto.game.CollectionItem.deserializeBinaryFromReader);
4411
+ msg.addItems(value);
4412
+ break;
4413
+ case 2:
4414
+ var value = /** @type {number} */ (reader.readInt32());
4415
+ msg.setTotalPages(value);
4416
+ break;
4417
+ case 3:
4418
+ var value = /** @type {number} */ (reader.readInt32());
4419
+ msg.setTotalItems(value);
4420
+ break;
4421
+ default:
4422
+ reader.skipField();
4423
+ break;
4424
+ }
4425
+ }
4426
+ return msg;
4427
+ };
4428
+
4429
+
4430
+ /**
4431
+ * Serializes the message to binary data (in protobuf wire format).
4432
+ * @return {!Uint8Array}
4433
+ */
4434
+ proto.game.CollectionItemsResponse.prototype.serializeBinary = function() {
4435
+ var writer = new jspb.BinaryWriter();
4436
+ proto.game.CollectionItemsResponse.serializeBinaryToWriter(this, writer);
4437
+ return writer.getResultBuffer();
4438
+ };
4439
+
4440
+
4441
+ /**
4442
+ * Serializes the given message to binary data (in protobuf wire
4443
+ * format), writing to the given BinaryWriter.
4444
+ * @param {!proto.game.CollectionItemsResponse} message
4445
+ * @param {!jspb.BinaryWriter} writer
4446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4447
+ */
4448
+ proto.game.CollectionItemsResponse.serializeBinaryToWriter = function(message, writer) {
4449
+ var f = undefined;
4450
+ f = message.getItemsList();
4451
+ if (f.length > 0) {
4452
+ writer.writeRepeatedMessage(
4453
+ 1,
4454
+ f,
4455
+ proto.game.CollectionItem.serializeBinaryToWriter
4456
+ );
4457
+ }
4458
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
4459
+ if (f != null) {
4460
+ writer.writeInt32(
4461
+ 2,
4462
+ f
4463
+ );
4464
+ }
4465
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
4466
+ if (f != null) {
4467
+ writer.writeInt32(
4468
+ 3,
4469
+ f
4470
+ );
4471
+ }
4472
+ };
4473
+
4474
+
4475
+ /**
4476
+ * repeated CollectionItem items = 1;
4477
+ * @return {!Array<!proto.game.CollectionItem>}
4478
+ */
4479
+ proto.game.CollectionItemsResponse.prototype.getItemsList = function() {
4480
+ return /** @type{!Array<!proto.game.CollectionItem>} */ (
4481
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CollectionItem, 1));
4482
+ };
4483
+
4484
+
4485
+ /**
4486
+ * @param {!Array<!proto.game.CollectionItem>} value
4487
+ * @return {!proto.game.CollectionItemsResponse} returns this
4488
+ */
4489
+ proto.game.CollectionItemsResponse.prototype.setItemsList = function(value) {
4490
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4491
+ };
4492
+
4493
+
4494
+ /**
4495
+ * @param {!proto.game.CollectionItem=} opt_value
4496
+ * @param {number=} opt_index
4497
+ * @return {!proto.game.CollectionItem}
4498
+ */
4499
+ proto.game.CollectionItemsResponse.prototype.addItems = function(opt_value, opt_index) {
4500
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CollectionItem, opt_index);
4501
+ };
4502
+
4503
+
4504
+ /**
4505
+ * Clears the list making it empty but non-null.
4506
+ * @return {!proto.game.CollectionItemsResponse} returns this
4507
+ */
4508
+ proto.game.CollectionItemsResponse.prototype.clearItemsList = function() {
4509
+ return this.setItemsList([]);
4510
+ };
4511
+
4512
+
4513
+ /**
4514
+ * optional int32 total_pages = 2;
4515
+ * @return {number}
4516
+ */
4517
+ proto.game.CollectionItemsResponse.prototype.getTotalPages = function() {
4518
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4519
+ };
4520
+
4521
+
4522
+ /**
4523
+ * @param {number} value
4524
+ * @return {!proto.game.CollectionItemsResponse} returns this
4525
+ */
4526
+ proto.game.CollectionItemsResponse.prototype.setTotalPages = function(value) {
4527
+ return jspb.Message.setField(this, 2, value);
4528
+ };
4529
+
4530
+
4531
+ /**
4532
+ * Clears the field making it undefined.
4533
+ * @return {!proto.game.CollectionItemsResponse} returns this
4534
+ */
4535
+ proto.game.CollectionItemsResponse.prototype.clearTotalPages = function() {
4536
+ return jspb.Message.setField(this, 2, undefined);
4537
+ };
4538
+
4539
+
4540
+ /**
4541
+ * Returns whether this field is set.
4542
+ * @return {boolean}
4543
+ */
4544
+ proto.game.CollectionItemsResponse.prototype.hasTotalPages = function() {
4545
+ return jspb.Message.getField(this, 2) != null;
4546
+ };
4547
+
4548
+
4549
+ /**
4550
+ * optional int32 total_items = 3;
4551
+ * @return {number}
4552
+ */
4553
+ proto.game.CollectionItemsResponse.prototype.getTotalItems = function() {
4554
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4555
+ };
4556
+
4557
+
4558
+ /**
4559
+ * @param {number} value
4560
+ * @return {!proto.game.CollectionItemsResponse} returns this
4561
+ */
4562
+ proto.game.CollectionItemsResponse.prototype.setTotalItems = function(value) {
4563
+ return jspb.Message.setField(this, 3, value);
4564
+ };
4565
+
4566
+
4567
+ /**
4568
+ * Clears the field making it undefined.
4569
+ * @return {!proto.game.CollectionItemsResponse} returns this
4570
+ */
4571
+ proto.game.CollectionItemsResponse.prototype.clearTotalItems = function() {
4572
+ return jspb.Message.setField(this, 3, undefined);
4573
+ };
4574
+
4575
+
4576
+ /**
4577
+ * Returns whether this field is set.
4578
+ * @return {boolean}
4579
+ */
4580
+ proto.game.CollectionItemsResponse.prototype.hasTotalItems = function() {
4581
+ return jspb.Message.getField(this, 3) != null;
4582
+ };
4583
+
4584
+
4585
+
4586
+
4587
+
4588
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4589
+ /**
4590
+ * Creates an object representation of this proto.
4591
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4592
+ * Optional fields that are not set will be set to undefined.
4593
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4594
+ * For the list of reserved names please see:
4595
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4596
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4597
+ * JSPB instance for transitional soy proto support:
4598
+ * http://goto/soy-param-migration
4599
+ * @return {!Object}
4600
+ */
4601
+ proto.game.CollectionStatusResponse.prototype.toObject = function(opt_includeInstance) {
4602
+ return proto.game.CollectionStatusResponse.toObject(opt_includeInstance, this);
4603
+ };
4604
+
4605
+
4606
+ /**
4607
+ * Static version of the {@see toObject} method.
4608
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4609
+ * the JSPB instance for transitional soy proto support:
4610
+ * http://goto/soy-param-migration
4611
+ * @param {!proto.game.CollectionStatusResponse} msg The msg instance to transform.
4612
+ * @return {!Object}
4613
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4614
+ */
4615
+ proto.game.CollectionStatusResponse.toObject = function(includeInstance, msg) {
4616
+ var f, obj = {
4617
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
4618
+ };
4619
+
4620
+ if (includeInstance) {
4621
+ obj.$jspbMessageInstance = msg;
4622
+ }
4623
+ return obj;
4624
+ };
4625
+ }
4626
+
4627
+
4628
+ /**
4629
+ * Deserializes binary data (in protobuf wire format).
4630
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4631
+ * @return {!proto.game.CollectionStatusResponse}
4632
+ */
4633
+ proto.game.CollectionStatusResponse.deserializeBinary = function(bytes) {
4634
+ var reader = new jspb.BinaryReader(bytes);
4635
+ var msg = new proto.game.CollectionStatusResponse;
4636
+ return proto.game.CollectionStatusResponse.deserializeBinaryFromReader(msg, reader);
4637
+ };
4638
+
4639
+
4640
+ /**
4641
+ * Deserializes binary data (in protobuf wire format) from the
4642
+ * given reader into the given message object.
4643
+ * @param {!proto.game.CollectionStatusResponse} msg The message object to deserialize into.
4644
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4645
+ * @return {!proto.game.CollectionStatusResponse}
4646
+ */
4647
+ proto.game.CollectionStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
4648
+ while (reader.nextField()) {
4649
+ if (reader.isEndGroup()) {
4650
+ break;
4651
+ }
4652
+ var field = reader.getFieldNumber();
4653
+ switch (field) {
4654
+ case 1:
4655
+ var value = /** @type {string} */ (reader.readString());
4656
+ msg.setStatus(value);
4657
+ break;
4658
+ default:
4659
+ reader.skipField();
4660
+ break;
4661
+ }
4662
+ }
4663
+ return msg;
4664
+ };
4665
+
4666
+
4667
+ /**
4668
+ * Serializes the message to binary data (in protobuf wire format).
4669
+ * @return {!Uint8Array}
4670
+ */
4671
+ proto.game.CollectionStatusResponse.prototype.serializeBinary = function() {
4672
+ var writer = new jspb.BinaryWriter();
4673
+ proto.game.CollectionStatusResponse.serializeBinaryToWriter(this, writer);
4674
+ return writer.getResultBuffer();
4675
+ };
4676
+
4677
+
4678
+ /**
4679
+ * Serializes the given message to binary data (in protobuf wire
4680
+ * format), writing to the given BinaryWriter.
4681
+ * @param {!proto.game.CollectionStatusResponse} message
4682
+ * @param {!jspb.BinaryWriter} writer
4683
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4684
+ */
4685
+ proto.game.CollectionStatusResponse.serializeBinaryToWriter = function(message, writer) {
4686
+ var f = undefined;
4687
+ f = message.getStatus();
4688
+ if (f.length > 0) {
4689
+ writer.writeString(
4690
+ 1,
4691
+ f
4692
+ );
4693
+ }
4694
+ };
4695
+
4696
+
4697
+ /**
4698
+ * optional string status = 1;
4699
+ * @return {string}
4700
+ */
4701
+ proto.game.CollectionStatusResponse.prototype.getStatus = function() {
4702
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4703
+ };
4704
+
4705
+
4706
+ /**
4707
+ * @param {string} value
4708
+ * @return {!proto.game.CollectionStatusResponse} returns this
4709
+ */
4710
+ proto.game.CollectionStatusResponse.prototype.setStatus = function(value) {
4711
+ return jspb.Message.setProto3StringField(this, 1, value);
4712
+ };
4713
+
4714
+
2742
4715
  goog.object.extend(exports, proto.game);