protobuf-platform 1.2.393 → 1.2.394

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/bonus/bonus_pb.js CHANGED
@@ -35,6 +35,8 @@ goog.exportSymbol('proto.bonus.BonusRequest.RequestCase', null, global);
35
35
  goog.exportSymbol('proto.bonus.BonusResponse', null, global);
36
36
  goog.exportSymbol('proto.bonus.BonusReward', null, global);
37
37
  goog.exportSymbol('proto.bonus.BonusRewardsRequest', null, global);
38
+ goog.exportSymbol('proto.bonus.BonusSnapshotItem', null, global);
39
+ goog.exportSymbol('proto.bonus.BonusSnapshotItemsResponse', null, global);
38
40
  goog.exportSymbol('proto.bonus.BonusStatus', null, global);
39
41
  goog.exportSymbol('proto.bonus.BonusStatusResponse', null, global);
40
42
  goog.exportSymbol('proto.bonus.BonusStatusesResponse', null, global);
@@ -55,6 +57,7 @@ goog.exportSymbol('proto.bonus.GameItem', null, global);
55
57
  goog.exportSymbol('proto.bonus.GetActiveWageringUserBonusesRequest', null, global);
56
58
  goog.exportSymbol('proto.bonus.GetBonusBySlugRequest', null, global);
57
59
  goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
60
+ goog.exportSymbol('proto.bonus.GetBonusSnapshotsByIdsRequest', null, global);
58
61
  goog.exportSymbol('proto.bonus.GetBonusTranslationRequest', null, global);
59
62
  goog.exportSymbol('proto.bonus.GetCommonUserBonusItemsRequest', null, global);
60
63
  goog.exportSymbol('proto.bonus.GetCommonUserBonusItemsResponse', null, global);
@@ -513,6 +516,69 @@ if (goog.DEBUG && !COMPILED) {
513
516
  */
514
517
  proto.bonus.BonusItemsResponse.displayName = 'proto.bonus.BonusItemsResponse';
515
518
  }
519
+ /**
520
+ * Generated by JsPbCodeGenerator.
521
+ * @param {Array=} opt_data Optional initial data array, typically from a
522
+ * server response, or constructed directly in Javascript. The array is used
523
+ * in place and becomes part of the constructed object. It is not cloned.
524
+ * If no data is provided, the constructed object will be empty, but still
525
+ * valid.
526
+ * @extends {jspb.Message}
527
+ * @constructor
528
+ */
529
+ proto.bonus.GetBonusSnapshotsByIdsRequest = function(opt_data) {
530
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.GetBonusSnapshotsByIdsRequest.repeatedFields_, null);
531
+ };
532
+ goog.inherits(proto.bonus.GetBonusSnapshotsByIdsRequest, jspb.Message);
533
+ if (goog.DEBUG && !COMPILED) {
534
+ /**
535
+ * @public
536
+ * @override
537
+ */
538
+ proto.bonus.GetBonusSnapshotsByIdsRequest.displayName = 'proto.bonus.GetBonusSnapshotsByIdsRequest';
539
+ }
540
+ /**
541
+ * Generated by JsPbCodeGenerator.
542
+ * @param {Array=} opt_data Optional initial data array, typically from a
543
+ * server response, or constructed directly in Javascript. The array is used
544
+ * in place and becomes part of the constructed object. It is not cloned.
545
+ * If no data is provided, the constructed object will be empty, but still
546
+ * valid.
547
+ * @extends {jspb.Message}
548
+ * @constructor
549
+ */
550
+ proto.bonus.BonusSnapshotItem = function(opt_data) {
551
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
552
+ };
553
+ goog.inherits(proto.bonus.BonusSnapshotItem, jspb.Message);
554
+ if (goog.DEBUG && !COMPILED) {
555
+ /**
556
+ * @public
557
+ * @override
558
+ */
559
+ proto.bonus.BonusSnapshotItem.displayName = 'proto.bonus.BonusSnapshotItem';
560
+ }
561
+ /**
562
+ * Generated by JsPbCodeGenerator.
563
+ * @param {Array=} opt_data Optional initial data array, typically from a
564
+ * server response, or constructed directly in Javascript. The array is used
565
+ * in place and becomes part of the constructed object. It is not cloned.
566
+ * If no data is provided, the constructed object will be empty, but still
567
+ * valid.
568
+ * @extends {jspb.Message}
569
+ * @constructor
570
+ */
571
+ proto.bonus.BonusSnapshotItemsResponse = function(opt_data) {
572
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.BonusSnapshotItemsResponse.repeatedFields_, null);
573
+ };
574
+ goog.inherits(proto.bonus.BonusSnapshotItemsResponse, jspb.Message);
575
+ if (goog.DEBUG && !COMPILED) {
576
+ /**
577
+ * @public
578
+ * @override
579
+ */
580
+ proto.bonus.BonusSnapshotItemsResponse.displayName = 'proto.bonus.BonusSnapshotItemsResponse';
581
+ }
516
582
  /**
517
583
  * Generated by JsPbCodeGenerator.
518
584
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -8977,6 +9043,886 @@ proto.bonus.BonusItemsResponse.prototype.hasTotalItems = function() {
8977
9043
 
8978
9044
 
8979
9045
 
9046
+ /**
9047
+ * List of repeated fields within this message type.
9048
+ * @private {!Array<number>}
9049
+ * @const
9050
+ */
9051
+ proto.bonus.GetBonusSnapshotsByIdsRequest.repeatedFields_ = [1];
9052
+
9053
+
9054
+
9055
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9056
+ /**
9057
+ * Creates an object representation of this proto.
9058
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9059
+ * Optional fields that are not set will be set to undefined.
9060
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9061
+ * For the list of reserved names please see:
9062
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9063
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9064
+ * JSPB instance for transitional soy proto support:
9065
+ * http://goto/soy-param-migration
9066
+ * @return {!Object}
9067
+ */
9068
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.toObject = function(opt_includeInstance) {
9069
+ return proto.bonus.GetBonusSnapshotsByIdsRequest.toObject(opt_includeInstance, this);
9070
+ };
9071
+
9072
+
9073
+ /**
9074
+ * Static version of the {@see toObject} method.
9075
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9076
+ * the JSPB instance for transitional soy proto support:
9077
+ * http://goto/soy-param-migration
9078
+ * @param {!proto.bonus.GetBonusSnapshotsByIdsRequest} msg The msg instance to transform.
9079
+ * @return {!Object}
9080
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9081
+ */
9082
+ proto.bonus.GetBonusSnapshotsByIdsRequest.toObject = function(includeInstance, msg) {
9083
+ var f, obj = {
9084
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
9085
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
9086
+ };
9087
+
9088
+ if (includeInstance) {
9089
+ obj.$jspbMessageInstance = msg;
9090
+ }
9091
+ return obj;
9092
+ };
9093
+ }
9094
+
9095
+
9096
+ /**
9097
+ * Deserializes binary data (in protobuf wire format).
9098
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9099
+ * @return {!proto.bonus.GetBonusSnapshotsByIdsRequest}
9100
+ */
9101
+ proto.bonus.GetBonusSnapshotsByIdsRequest.deserializeBinary = function(bytes) {
9102
+ var reader = new jspb.BinaryReader(bytes);
9103
+ var msg = new proto.bonus.GetBonusSnapshotsByIdsRequest;
9104
+ return proto.bonus.GetBonusSnapshotsByIdsRequest.deserializeBinaryFromReader(msg, reader);
9105
+ };
9106
+
9107
+
9108
+ /**
9109
+ * Deserializes binary data (in protobuf wire format) from the
9110
+ * given reader into the given message object.
9111
+ * @param {!proto.bonus.GetBonusSnapshotsByIdsRequest} msg The message object to deserialize into.
9112
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9113
+ * @return {!proto.bonus.GetBonusSnapshotsByIdsRequest}
9114
+ */
9115
+ proto.bonus.GetBonusSnapshotsByIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
9116
+ while (reader.nextField()) {
9117
+ if (reader.isEndGroup()) {
9118
+ break;
9119
+ }
9120
+ var field = reader.getFieldNumber();
9121
+ switch (field) {
9122
+ case 1:
9123
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
9124
+ for (var i = 0; i < values.length; i++) {
9125
+ msg.addIds(values[i]);
9126
+ }
9127
+ break;
9128
+ case 2:
9129
+ var value = /** @type {string} */ (reader.readString());
9130
+ msg.setLocale(value);
9131
+ break;
9132
+ default:
9133
+ reader.skipField();
9134
+ break;
9135
+ }
9136
+ }
9137
+ return msg;
9138
+ };
9139
+
9140
+
9141
+ /**
9142
+ * Serializes the message to binary data (in protobuf wire format).
9143
+ * @return {!Uint8Array}
9144
+ */
9145
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.serializeBinary = function() {
9146
+ var writer = new jspb.BinaryWriter();
9147
+ proto.bonus.GetBonusSnapshotsByIdsRequest.serializeBinaryToWriter(this, writer);
9148
+ return writer.getResultBuffer();
9149
+ };
9150
+
9151
+
9152
+ /**
9153
+ * Serializes the given message to binary data (in protobuf wire
9154
+ * format), writing to the given BinaryWriter.
9155
+ * @param {!proto.bonus.GetBonusSnapshotsByIdsRequest} message
9156
+ * @param {!jspb.BinaryWriter} writer
9157
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9158
+ */
9159
+ proto.bonus.GetBonusSnapshotsByIdsRequest.serializeBinaryToWriter = function(message, writer) {
9160
+ var f = undefined;
9161
+ f = message.getIdsList();
9162
+ if (f.length > 0) {
9163
+ writer.writePackedInt32(
9164
+ 1,
9165
+ f
9166
+ );
9167
+ }
9168
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
9169
+ if (f != null) {
9170
+ writer.writeString(
9171
+ 2,
9172
+ f
9173
+ );
9174
+ }
9175
+ };
9176
+
9177
+
9178
+ /**
9179
+ * repeated int32 ids = 1;
9180
+ * @return {!Array<number>}
9181
+ */
9182
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.getIdsList = function() {
9183
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
9184
+ };
9185
+
9186
+
9187
+ /**
9188
+ * @param {!Array<number>} value
9189
+ * @return {!proto.bonus.GetBonusSnapshotsByIdsRequest} returns this
9190
+ */
9191
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.setIdsList = function(value) {
9192
+ return jspb.Message.setField(this, 1, value || []);
9193
+ };
9194
+
9195
+
9196
+ /**
9197
+ * @param {number} value
9198
+ * @param {number=} opt_index
9199
+ * @return {!proto.bonus.GetBonusSnapshotsByIdsRequest} returns this
9200
+ */
9201
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.addIds = function(value, opt_index) {
9202
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
9203
+ };
9204
+
9205
+
9206
+ /**
9207
+ * Clears the list making it empty but non-null.
9208
+ * @return {!proto.bonus.GetBonusSnapshotsByIdsRequest} returns this
9209
+ */
9210
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.clearIdsList = function() {
9211
+ return this.setIdsList([]);
9212
+ };
9213
+
9214
+
9215
+ /**
9216
+ * optional string locale = 2;
9217
+ * @return {string}
9218
+ */
9219
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.getLocale = function() {
9220
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9221
+ };
9222
+
9223
+
9224
+ /**
9225
+ * @param {string} value
9226
+ * @return {!proto.bonus.GetBonusSnapshotsByIdsRequest} returns this
9227
+ */
9228
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.setLocale = function(value) {
9229
+ return jspb.Message.setField(this, 2, value);
9230
+ };
9231
+
9232
+
9233
+ /**
9234
+ * Clears the field making it undefined.
9235
+ * @return {!proto.bonus.GetBonusSnapshotsByIdsRequest} returns this
9236
+ */
9237
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.clearLocale = function() {
9238
+ return jspb.Message.setField(this, 2, undefined);
9239
+ };
9240
+
9241
+
9242
+ /**
9243
+ * Returns whether this field is set.
9244
+ * @return {boolean}
9245
+ */
9246
+ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.hasLocale = function() {
9247
+ return jspb.Message.getField(this, 2) != null;
9248
+ };
9249
+
9250
+
9251
+
9252
+
9253
+
9254
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9255
+ /**
9256
+ * Creates an object representation of this proto.
9257
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9258
+ * Optional fields that are not set will be set to undefined.
9259
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9260
+ * For the list of reserved names please see:
9261
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9262
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9263
+ * JSPB instance for transitional soy proto support:
9264
+ * http://goto/soy-param-migration
9265
+ * @return {!Object}
9266
+ */
9267
+ proto.bonus.BonusSnapshotItem.prototype.toObject = function(opt_includeInstance) {
9268
+ return proto.bonus.BonusSnapshotItem.toObject(opt_includeInstance, this);
9269
+ };
9270
+
9271
+
9272
+ /**
9273
+ * Static version of the {@see toObject} method.
9274
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9275
+ * the JSPB instance for transitional soy proto support:
9276
+ * http://goto/soy-param-migration
9277
+ * @param {!proto.bonus.BonusSnapshotItem} msg The msg instance to transform.
9278
+ * @return {!Object}
9279
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9280
+ */
9281
+ proto.bonus.BonusSnapshotItem.toObject = function(includeInstance, msg) {
9282
+ var f, obj = {
9283
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
9284
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
9285
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
9286
+ image: jspb.Message.getFieldWithDefault(msg, 4, ""),
9287
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 5, ""),
9288
+ mobileImage: jspb.Message.getFieldWithDefault(msg, 6, ""),
9289
+ mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
9290
+ status: jspb.Message.getFieldWithDefault(msg, 8, ""),
9291
+ statusId: jspb.Message.getFieldWithDefault(msg, 9, 0)
9292
+ };
9293
+
9294
+ if (includeInstance) {
9295
+ obj.$jspbMessageInstance = msg;
9296
+ }
9297
+ return obj;
9298
+ };
9299
+ }
9300
+
9301
+
9302
+ /**
9303
+ * Deserializes binary data (in protobuf wire format).
9304
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9305
+ * @return {!proto.bonus.BonusSnapshotItem}
9306
+ */
9307
+ proto.bonus.BonusSnapshotItem.deserializeBinary = function(bytes) {
9308
+ var reader = new jspb.BinaryReader(bytes);
9309
+ var msg = new proto.bonus.BonusSnapshotItem;
9310
+ return proto.bonus.BonusSnapshotItem.deserializeBinaryFromReader(msg, reader);
9311
+ };
9312
+
9313
+
9314
+ /**
9315
+ * Deserializes binary data (in protobuf wire format) from the
9316
+ * given reader into the given message object.
9317
+ * @param {!proto.bonus.BonusSnapshotItem} msg The message object to deserialize into.
9318
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9319
+ * @return {!proto.bonus.BonusSnapshotItem}
9320
+ */
9321
+ proto.bonus.BonusSnapshotItem.deserializeBinaryFromReader = function(msg, reader) {
9322
+ while (reader.nextField()) {
9323
+ if (reader.isEndGroup()) {
9324
+ break;
9325
+ }
9326
+ var field = reader.getFieldNumber();
9327
+ switch (field) {
9328
+ case 1:
9329
+ var value = /** @type {number} */ (reader.readInt32());
9330
+ msg.setId(value);
9331
+ break;
9332
+ case 2:
9333
+ var value = /** @type {string} */ (reader.readString());
9334
+ msg.setTitle(value);
9335
+ break;
9336
+ case 3:
9337
+ var value = /** @type {string} */ (reader.readString());
9338
+ msg.setSlug(value);
9339
+ break;
9340
+ case 4:
9341
+ var value = /** @type {string} */ (reader.readString());
9342
+ msg.setImage(value);
9343
+ break;
9344
+ case 5:
9345
+ var value = /** @type {string} */ (reader.readString());
9346
+ msg.setImageCdn(value);
9347
+ break;
9348
+ case 6:
9349
+ var value = /** @type {string} */ (reader.readString());
9350
+ msg.setMobileImage(value);
9351
+ break;
9352
+ case 7:
9353
+ var value = /** @type {string} */ (reader.readString());
9354
+ msg.setMobileImageCdn(value);
9355
+ break;
9356
+ case 8:
9357
+ var value = /** @type {string} */ (reader.readString());
9358
+ msg.setStatus(value);
9359
+ break;
9360
+ case 9:
9361
+ var value = /** @type {number} */ (reader.readInt32());
9362
+ msg.setStatusId(value);
9363
+ break;
9364
+ default:
9365
+ reader.skipField();
9366
+ break;
9367
+ }
9368
+ }
9369
+ return msg;
9370
+ };
9371
+
9372
+
9373
+ /**
9374
+ * Serializes the message to binary data (in protobuf wire format).
9375
+ * @return {!Uint8Array}
9376
+ */
9377
+ proto.bonus.BonusSnapshotItem.prototype.serializeBinary = function() {
9378
+ var writer = new jspb.BinaryWriter();
9379
+ proto.bonus.BonusSnapshotItem.serializeBinaryToWriter(this, writer);
9380
+ return writer.getResultBuffer();
9381
+ };
9382
+
9383
+
9384
+ /**
9385
+ * Serializes the given message to binary data (in protobuf wire
9386
+ * format), writing to the given BinaryWriter.
9387
+ * @param {!proto.bonus.BonusSnapshotItem} message
9388
+ * @param {!jspb.BinaryWriter} writer
9389
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9390
+ */
9391
+ proto.bonus.BonusSnapshotItem.serializeBinaryToWriter = function(message, writer) {
9392
+ var f = undefined;
9393
+ f = message.getId();
9394
+ if (f !== 0) {
9395
+ writer.writeInt32(
9396
+ 1,
9397
+ f
9398
+ );
9399
+ }
9400
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
9401
+ if (f != null) {
9402
+ writer.writeString(
9403
+ 2,
9404
+ f
9405
+ );
9406
+ }
9407
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
9408
+ if (f != null) {
9409
+ writer.writeString(
9410
+ 3,
9411
+ f
9412
+ );
9413
+ }
9414
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9415
+ if (f != null) {
9416
+ writer.writeString(
9417
+ 4,
9418
+ f
9419
+ );
9420
+ }
9421
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
9422
+ if (f != null) {
9423
+ writer.writeString(
9424
+ 5,
9425
+ f
9426
+ );
9427
+ }
9428
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
9429
+ if (f != null) {
9430
+ writer.writeString(
9431
+ 6,
9432
+ f
9433
+ );
9434
+ }
9435
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
9436
+ if (f != null) {
9437
+ writer.writeString(
9438
+ 7,
9439
+ f
9440
+ );
9441
+ }
9442
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
9443
+ if (f != null) {
9444
+ writer.writeString(
9445
+ 8,
9446
+ f
9447
+ );
9448
+ }
9449
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
9450
+ if (f != null) {
9451
+ writer.writeInt32(
9452
+ 9,
9453
+ f
9454
+ );
9455
+ }
9456
+ };
9457
+
9458
+
9459
+ /**
9460
+ * optional int32 id = 1;
9461
+ * @return {number}
9462
+ */
9463
+ proto.bonus.BonusSnapshotItem.prototype.getId = function() {
9464
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9465
+ };
9466
+
9467
+
9468
+ /**
9469
+ * @param {number} value
9470
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9471
+ */
9472
+ proto.bonus.BonusSnapshotItem.prototype.setId = function(value) {
9473
+ return jspb.Message.setProto3IntField(this, 1, value);
9474
+ };
9475
+
9476
+
9477
+ /**
9478
+ * optional string title = 2;
9479
+ * @return {string}
9480
+ */
9481
+ proto.bonus.BonusSnapshotItem.prototype.getTitle = function() {
9482
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9483
+ };
9484
+
9485
+
9486
+ /**
9487
+ * @param {string} value
9488
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9489
+ */
9490
+ proto.bonus.BonusSnapshotItem.prototype.setTitle = function(value) {
9491
+ return jspb.Message.setField(this, 2, value);
9492
+ };
9493
+
9494
+
9495
+ /**
9496
+ * Clears the field making it undefined.
9497
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9498
+ */
9499
+ proto.bonus.BonusSnapshotItem.prototype.clearTitle = function() {
9500
+ return jspb.Message.setField(this, 2, undefined);
9501
+ };
9502
+
9503
+
9504
+ /**
9505
+ * Returns whether this field is set.
9506
+ * @return {boolean}
9507
+ */
9508
+ proto.bonus.BonusSnapshotItem.prototype.hasTitle = function() {
9509
+ return jspb.Message.getField(this, 2) != null;
9510
+ };
9511
+
9512
+
9513
+ /**
9514
+ * optional string slug = 3;
9515
+ * @return {string}
9516
+ */
9517
+ proto.bonus.BonusSnapshotItem.prototype.getSlug = function() {
9518
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9519
+ };
9520
+
9521
+
9522
+ /**
9523
+ * @param {string} value
9524
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9525
+ */
9526
+ proto.bonus.BonusSnapshotItem.prototype.setSlug = function(value) {
9527
+ return jspb.Message.setField(this, 3, value);
9528
+ };
9529
+
9530
+
9531
+ /**
9532
+ * Clears the field making it undefined.
9533
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9534
+ */
9535
+ proto.bonus.BonusSnapshotItem.prototype.clearSlug = function() {
9536
+ return jspb.Message.setField(this, 3, undefined);
9537
+ };
9538
+
9539
+
9540
+ /**
9541
+ * Returns whether this field is set.
9542
+ * @return {boolean}
9543
+ */
9544
+ proto.bonus.BonusSnapshotItem.prototype.hasSlug = function() {
9545
+ return jspb.Message.getField(this, 3) != null;
9546
+ };
9547
+
9548
+
9549
+ /**
9550
+ * optional string image = 4;
9551
+ * @return {string}
9552
+ */
9553
+ proto.bonus.BonusSnapshotItem.prototype.getImage = function() {
9554
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9555
+ };
9556
+
9557
+
9558
+ /**
9559
+ * @param {string} value
9560
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9561
+ */
9562
+ proto.bonus.BonusSnapshotItem.prototype.setImage = function(value) {
9563
+ return jspb.Message.setField(this, 4, value);
9564
+ };
9565
+
9566
+
9567
+ /**
9568
+ * Clears the field making it undefined.
9569
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9570
+ */
9571
+ proto.bonus.BonusSnapshotItem.prototype.clearImage = function() {
9572
+ return jspb.Message.setField(this, 4, undefined);
9573
+ };
9574
+
9575
+
9576
+ /**
9577
+ * Returns whether this field is set.
9578
+ * @return {boolean}
9579
+ */
9580
+ proto.bonus.BonusSnapshotItem.prototype.hasImage = function() {
9581
+ return jspb.Message.getField(this, 4) != null;
9582
+ };
9583
+
9584
+
9585
+ /**
9586
+ * optional string image_cdn = 5;
9587
+ * @return {string}
9588
+ */
9589
+ proto.bonus.BonusSnapshotItem.prototype.getImageCdn = function() {
9590
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
9591
+ };
9592
+
9593
+
9594
+ /**
9595
+ * @param {string} value
9596
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9597
+ */
9598
+ proto.bonus.BonusSnapshotItem.prototype.setImageCdn = function(value) {
9599
+ return jspb.Message.setField(this, 5, value);
9600
+ };
9601
+
9602
+
9603
+ /**
9604
+ * Clears the field making it undefined.
9605
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9606
+ */
9607
+ proto.bonus.BonusSnapshotItem.prototype.clearImageCdn = function() {
9608
+ return jspb.Message.setField(this, 5, undefined);
9609
+ };
9610
+
9611
+
9612
+ /**
9613
+ * Returns whether this field is set.
9614
+ * @return {boolean}
9615
+ */
9616
+ proto.bonus.BonusSnapshotItem.prototype.hasImageCdn = function() {
9617
+ return jspb.Message.getField(this, 5) != null;
9618
+ };
9619
+
9620
+
9621
+ /**
9622
+ * optional string mobile_image = 6;
9623
+ * @return {string}
9624
+ */
9625
+ proto.bonus.BonusSnapshotItem.prototype.getMobileImage = function() {
9626
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
9627
+ };
9628
+
9629
+
9630
+ /**
9631
+ * @param {string} value
9632
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9633
+ */
9634
+ proto.bonus.BonusSnapshotItem.prototype.setMobileImage = function(value) {
9635
+ return jspb.Message.setField(this, 6, value);
9636
+ };
9637
+
9638
+
9639
+ /**
9640
+ * Clears the field making it undefined.
9641
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9642
+ */
9643
+ proto.bonus.BonusSnapshotItem.prototype.clearMobileImage = function() {
9644
+ return jspb.Message.setField(this, 6, undefined);
9645
+ };
9646
+
9647
+
9648
+ /**
9649
+ * Returns whether this field is set.
9650
+ * @return {boolean}
9651
+ */
9652
+ proto.bonus.BonusSnapshotItem.prototype.hasMobileImage = function() {
9653
+ return jspb.Message.getField(this, 6) != null;
9654
+ };
9655
+
9656
+
9657
+ /**
9658
+ * optional string mobile_image_cdn = 7;
9659
+ * @return {string}
9660
+ */
9661
+ proto.bonus.BonusSnapshotItem.prototype.getMobileImageCdn = function() {
9662
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
9663
+ };
9664
+
9665
+
9666
+ /**
9667
+ * @param {string} value
9668
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9669
+ */
9670
+ proto.bonus.BonusSnapshotItem.prototype.setMobileImageCdn = function(value) {
9671
+ return jspb.Message.setField(this, 7, value);
9672
+ };
9673
+
9674
+
9675
+ /**
9676
+ * Clears the field making it undefined.
9677
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9678
+ */
9679
+ proto.bonus.BonusSnapshotItem.prototype.clearMobileImageCdn = function() {
9680
+ return jspb.Message.setField(this, 7, undefined);
9681
+ };
9682
+
9683
+
9684
+ /**
9685
+ * Returns whether this field is set.
9686
+ * @return {boolean}
9687
+ */
9688
+ proto.bonus.BonusSnapshotItem.prototype.hasMobileImageCdn = function() {
9689
+ return jspb.Message.getField(this, 7) != null;
9690
+ };
9691
+
9692
+
9693
+ /**
9694
+ * optional string status = 8;
9695
+ * @return {string}
9696
+ */
9697
+ proto.bonus.BonusSnapshotItem.prototype.getStatus = function() {
9698
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
9699
+ };
9700
+
9701
+
9702
+ /**
9703
+ * @param {string} value
9704
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9705
+ */
9706
+ proto.bonus.BonusSnapshotItem.prototype.setStatus = function(value) {
9707
+ return jspb.Message.setField(this, 8, value);
9708
+ };
9709
+
9710
+
9711
+ /**
9712
+ * Clears the field making it undefined.
9713
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9714
+ */
9715
+ proto.bonus.BonusSnapshotItem.prototype.clearStatus = function() {
9716
+ return jspb.Message.setField(this, 8, undefined);
9717
+ };
9718
+
9719
+
9720
+ /**
9721
+ * Returns whether this field is set.
9722
+ * @return {boolean}
9723
+ */
9724
+ proto.bonus.BonusSnapshotItem.prototype.hasStatus = function() {
9725
+ return jspb.Message.getField(this, 8) != null;
9726
+ };
9727
+
9728
+
9729
+ /**
9730
+ * optional int32 status_id = 9;
9731
+ * @return {number}
9732
+ */
9733
+ proto.bonus.BonusSnapshotItem.prototype.getStatusId = function() {
9734
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
9735
+ };
9736
+
9737
+
9738
+ /**
9739
+ * @param {number} value
9740
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9741
+ */
9742
+ proto.bonus.BonusSnapshotItem.prototype.setStatusId = function(value) {
9743
+ return jspb.Message.setField(this, 9, value);
9744
+ };
9745
+
9746
+
9747
+ /**
9748
+ * Clears the field making it undefined.
9749
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
9750
+ */
9751
+ proto.bonus.BonusSnapshotItem.prototype.clearStatusId = function() {
9752
+ return jspb.Message.setField(this, 9, undefined);
9753
+ };
9754
+
9755
+
9756
+ /**
9757
+ * Returns whether this field is set.
9758
+ * @return {boolean}
9759
+ */
9760
+ proto.bonus.BonusSnapshotItem.prototype.hasStatusId = function() {
9761
+ return jspb.Message.getField(this, 9) != null;
9762
+ };
9763
+
9764
+
9765
+
9766
+ /**
9767
+ * List of repeated fields within this message type.
9768
+ * @private {!Array<number>}
9769
+ * @const
9770
+ */
9771
+ proto.bonus.BonusSnapshotItemsResponse.repeatedFields_ = [1];
9772
+
9773
+
9774
+
9775
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9776
+ /**
9777
+ * Creates an object representation of this proto.
9778
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9779
+ * Optional fields that are not set will be set to undefined.
9780
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9781
+ * For the list of reserved names please see:
9782
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9783
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9784
+ * JSPB instance for transitional soy proto support:
9785
+ * http://goto/soy-param-migration
9786
+ * @return {!Object}
9787
+ */
9788
+ proto.bonus.BonusSnapshotItemsResponse.prototype.toObject = function(opt_includeInstance) {
9789
+ return proto.bonus.BonusSnapshotItemsResponse.toObject(opt_includeInstance, this);
9790
+ };
9791
+
9792
+
9793
+ /**
9794
+ * Static version of the {@see toObject} method.
9795
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9796
+ * the JSPB instance for transitional soy proto support:
9797
+ * http://goto/soy-param-migration
9798
+ * @param {!proto.bonus.BonusSnapshotItemsResponse} msg The msg instance to transform.
9799
+ * @return {!Object}
9800
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9801
+ */
9802
+ proto.bonus.BonusSnapshotItemsResponse.toObject = function(includeInstance, msg) {
9803
+ var f, obj = {
9804
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
9805
+ proto.bonus.BonusSnapshotItem.toObject, includeInstance)
9806
+ };
9807
+
9808
+ if (includeInstance) {
9809
+ obj.$jspbMessageInstance = msg;
9810
+ }
9811
+ return obj;
9812
+ };
9813
+ }
9814
+
9815
+
9816
+ /**
9817
+ * Deserializes binary data (in protobuf wire format).
9818
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9819
+ * @return {!proto.bonus.BonusSnapshotItemsResponse}
9820
+ */
9821
+ proto.bonus.BonusSnapshotItemsResponse.deserializeBinary = function(bytes) {
9822
+ var reader = new jspb.BinaryReader(bytes);
9823
+ var msg = new proto.bonus.BonusSnapshotItemsResponse;
9824
+ return proto.bonus.BonusSnapshotItemsResponse.deserializeBinaryFromReader(msg, reader);
9825
+ };
9826
+
9827
+
9828
+ /**
9829
+ * Deserializes binary data (in protobuf wire format) from the
9830
+ * given reader into the given message object.
9831
+ * @param {!proto.bonus.BonusSnapshotItemsResponse} msg The message object to deserialize into.
9832
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9833
+ * @return {!proto.bonus.BonusSnapshotItemsResponse}
9834
+ */
9835
+ proto.bonus.BonusSnapshotItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
9836
+ while (reader.nextField()) {
9837
+ if (reader.isEndGroup()) {
9838
+ break;
9839
+ }
9840
+ var field = reader.getFieldNumber();
9841
+ switch (field) {
9842
+ case 1:
9843
+ var value = new proto.bonus.BonusSnapshotItem;
9844
+ reader.readMessage(value,proto.bonus.BonusSnapshotItem.deserializeBinaryFromReader);
9845
+ msg.addItems(value);
9846
+ break;
9847
+ default:
9848
+ reader.skipField();
9849
+ break;
9850
+ }
9851
+ }
9852
+ return msg;
9853
+ };
9854
+
9855
+
9856
+ /**
9857
+ * Serializes the message to binary data (in protobuf wire format).
9858
+ * @return {!Uint8Array}
9859
+ */
9860
+ proto.bonus.BonusSnapshotItemsResponse.prototype.serializeBinary = function() {
9861
+ var writer = new jspb.BinaryWriter();
9862
+ proto.bonus.BonusSnapshotItemsResponse.serializeBinaryToWriter(this, writer);
9863
+ return writer.getResultBuffer();
9864
+ };
9865
+
9866
+
9867
+ /**
9868
+ * Serializes the given message to binary data (in protobuf wire
9869
+ * format), writing to the given BinaryWriter.
9870
+ * @param {!proto.bonus.BonusSnapshotItemsResponse} message
9871
+ * @param {!jspb.BinaryWriter} writer
9872
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9873
+ */
9874
+ proto.bonus.BonusSnapshotItemsResponse.serializeBinaryToWriter = function(message, writer) {
9875
+ var f = undefined;
9876
+ f = message.getItemsList();
9877
+ if (f.length > 0) {
9878
+ writer.writeRepeatedMessage(
9879
+ 1,
9880
+ f,
9881
+ proto.bonus.BonusSnapshotItem.serializeBinaryToWriter
9882
+ );
9883
+ }
9884
+ };
9885
+
9886
+
9887
+ /**
9888
+ * repeated BonusSnapshotItem items = 1;
9889
+ * @return {!Array<!proto.bonus.BonusSnapshotItem>}
9890
+ */
9891
+ proto.bonus.BonusSnapshotItemsResponse.prototype.getItemsList = function() {
9892
+ return /** @type{!Array<!proto.bonus.BonusSnapshotItem>} */ (
9893
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.BonusSnapshotItem, 1));
9894
+ };
9895
+
9896
+
9897
+ /**
9898
+ * @param {!Array<!proto.bonus.BonusSnapshotItem>} value
9899
+ * @return {!proto.bonus.BonusSnapshotItemsResponse} returns this
9900
+ */
9901
+ proto.bonus.BonusSnapshotItemsResponse.prototype.setItemsList = function(value) {
9902
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
9903
+ };
9904
+
9905
+
9906
+ /**
9907
+ * @param {!proto.bonus.BonusSnapshotItem=} opt_value
9908
+ * @param {number=} opt_index
9909
+ * @return {!proto.bonus.BonusSnapshotItem}
9910
+ */
9911
+ proto.bonus.BonusSnapshotItemsResponse.prototype.addItems = function(opt_value, opt_index) {
9912
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bonus.BonusSnapshotItem, opt_index);
9913
+ };
9914
+
9915
+
9916
+ /**
9917
+ * Clears the list making it empty but non-null.
9918
+ * @return {!proto.bonus.BonusSnapshotItemsResponse} returns this
9919
+ */
9920
+ proto.bonus.BonusSnapshotItemsResponse.prototype.clearItemsList = function() {
9921
+ return this.setItemsList([]);
9922
+ };
9923
+
9924
+
9925
+
8980
9926
 
8981
9927
 
8982
9928
  if (jspb.Message.GENERATE_TO_OBJECT) {