protobuf-platform 1.2.191 → 1.2.193
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/cashback/cashback.proto +16 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +723 -3
- package/game/game.proto +19 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +930 -0
- package/package.json +1 -1
package/game/game_pb.js
CHANGED
|
@@ -21,12 +21,16 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
goog.exportSymbol('proto.game.CashBackListGamesItem', null, global);
|
|
24
25
|
goog.exportSymbol('proto.game.CashBackListGamesRequest', null, global);
|
|
25
26
|
goog.exportSymbol('proto.game.CashBackListItem', null, global);
|
|
26
27
|
goog.exportSymbol('proto.game.CashBackListItemsResponse', null, global);
|
|
27
28
|
goog.exportSymbol('proto.game.CashBackListRequest', null, global);
|
|
28
29
|
goog.exportSymbol('proto.game.CashBackListResponse', null, global);
|
|
30
|
+
goog.exportSymbol('proto.game.CashBackListsGamesRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.game.CashBackListsGamesResponse', null, global);
|
|
29
32
|
goog.exportSymbol('proto.game.CashBackSearchRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.game.CashbackGamePreview', null, global);
|
|
30
34
|
goog.exportSymbol('proto.game.CategoryItem', null, global);
|
|
31
35
|
goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
|
|
32
36
|
goog.exportSymbol('proto.game.CategoryItemsResponse', null, global);
|
|
@@ -2258,6 +2262,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2258
2262
|
*/
|
|
2259
2263
|
proto.game.CashBackListItemsResponse.displayName = 'proto.game.CashBackListItemsResponse';
|
|
2260
2264
|
}
|
|
2265
|
+
/**
|
|
2266
|
+
* Generated by JsPbCodeGenerator.
|
|
2267
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2268
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2269
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2270
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2271
|
+
* valid.
|
|
2272
|
+
* @extends {jspb.Message}
|
|
2273
|
+
* @constructor
|
|
2274
|
+
*/
|
|
2275
|
+
proto.game.CashBackListsGamesRequest = function(opt_data) {
|
|
2276
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListsGamesRequest.repeatedFields_, null);
|
|
2277
|
+
};
|
|
2278
|
+
goog.inherits(proto.game.CashBackListsGamesRequest, jspb.Message);
|
|
2279
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2280
|
+
/**
|
|
2281
|
+
* @public
|
|
2282
|
+
* @override
|
|
2283
|
+
*/
|
|
2284
|
+
proto.game.CashBackListsGamesRequest.displayName = 'proto.game.CashBackListsGamesRequest';
|
|
2285
|
+
}
|
|
2286
|
+
/**
|
|
2287
|
+
* Generated by JsPbCodeGenerator.
|
|
2288
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2289
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2290
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2291
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2292
|
+
* valid.
|
|
2293
|
+
* @extends {jspb.Message}
|
|
2294
|
+
* @constructor
|
|
2295
|
+
*/
|
|
2296
|
+
proto.game.CashbackGamePreview = function(opt_data) {
|
|
2297
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2298
|
+
};
|
|
2299
|
+
goog.inherits(proto.game.CashbackGamePreview, jspb.Message);
|
|
2300
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2301
|
+
/**
|
|
2302
|
+
* @public
|
|
2303
|
+
* @override
|
|
2304
|
+
*/
|
|
2305
|
+
proto.game.CashbackGamePreview.displayName = 'proto.game.CashbackGamePreview';
|
|
2306
|
+
}
|
|
2307
|
+
/**
|
|
2308
|
+
* Generated by JsPbCodeGenerator.
|
|
2309
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2310
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2311
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2312
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2313
|
+
* valid.
|
|
2314
|
+
* @extends {jspb.Message}
|
|
2315
|
+
* @constructor
|
|
2316
|
+
*/
|
|
2317
|
+
proto.game.CashBackListGamesItem = function(opt_data) {
|
|
2318
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListGamesItem.repeatedFields_, null);
|
|
2319
|
+
};
|
|
2320
|
+
goog.inherits(proto.game.CashBackListGamesItem, jspb.Message);
|
|
2321
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2322
|
+
/**
|
|
2323
|
+
* @public
|
|
2324
|
+
* @override
|
|
2325
|
+
*/
|
|
2326
|
+
proto.game.CashBackListGamesItem.displayName = 'proto.game.CashBackListGamesItem';
|
|
2327
|
+
}
|
|
2328
|
+
/**
|
|
2329
|
+
* Generated by JsPbCodeGenerator.
|
|
2330
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2331
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2332
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2333
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2334
|
+
* valid.
|
|
2335
|
+
* @extends {jspb.Message}
|
|
2336
|
+
* @constructor
|
|
2337
|
+
*/
|
|
2338
|
+
proto.game.CashBackListsGamesResponse = function(opt_data) {
|
|
2339
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListsGamesResponse.repeatedFields_, null);
|
|
2340
|
+
};
|
|
2341
|
+
goog.inherits(proto.game.CashBackListsGamesResponse, jspb.Message);
|
|
2342
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2343
|
+
/**
|
|
2344
|
+
* @public
|
|
2345
|
+
* @override
|
|
2346
|
+
*/
|
|
2347
|
+
proto.game.CashBackListsGamesResponse.displayName = 'proto.game.CashBackListsGamesResponse';
|
|
2348
|
+
}
|
|
2261
2349
|
/**
|
|
2262
2350
|
* Generated by JsPbCodeGenerator.
|
|
2263
2351
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -29440,6 +29528,848 @@ proto.game.CashBackListItemsResponse.prototype.hasTotalItems = function() {
|
|
|
29440
29528
|
|
|
29441
29529
|
|
|
29442
29530
|
|
|
29531
|
+
/**
|
|
29532
|
+
* List of repeated fields within this message type.
|
|
29533
|
+
* @private {!Array<number>}
|
|
29534
|
+
* @const
|
|
29535
|
+
*/
|
|
29536
|
+
proto.game.CashBackListsGamesRequest.repeatedFields_ = [1];
|
|
29537
|
+
|
|
29538
|
+
|
|
29539
|
+
|
|
29540
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
29541
|
+
/**
|
|
29542
|
+
* Creates an object representation of this proto.
|
|
29543
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
29544
|
+
* Optional fields that are not set will be set to undefined.
|
|
29545
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
29546
|
+
* For the list of reserved names please see:
|
|
29547
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
29548
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
29549
|
+
* JSPB instance for transitional soy proto support:
|
|
29550
|
+
* http://goto/soy-param-migration
|
|
29551
|
+
* @return {!Object}
|
|
29552
|
+
*/
|
|
29553
|
+
proto.game.CashBackListsGamesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
29554
|
+
return proto.game.CashBackListsGamesRequest.toObject(opt_includeInstance, this);
|
|
29555
|
+
};
|
|
29556
|
+
|
|
29557
|
+
|
|
29558
|
+
/**
|
|
29559
|
+
* Static version of the {@see toObject} method.
|
|
29560
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
29561
|
+
* the JSPB instance for transitional soy proto support:
|
|
29562
|
+
* http://goto/soy-param-migration
|
|
29563
|
+
* @param {!proto.game.CashBackListsGamesRequest} msg The msg instance to transform.
|
|
29564
|
+
* @return {!Object}
|
|
29565
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
29566
|
+
*/
|
|
29567
|
+
proto.game.CashBackListsGamesRequest.toObject = function(includeInstance, msg) {
|
|
29568
|
+
var f, obj = {
|
|
29569
|
+
cashbackListIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
29570
|
+
limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
29571
|
+
offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
29572
|
+
};
|
|
29573
|
+
|
|
29574
|
+
if (includeInstance) {
|
|
29575
|
+
obj.$jspbMessageInstance = msg;
|
|
29576
|
+
}
|
|
29577
|
+
return obj;
|
|
29578
|
+
};
|
|
29579
|
+
}
|
|
29580
|
+
|
|
29581
|
+
|
|
29582
|
+
/**
|
|
29583
|
+
* Deserializes binary data (in protobuf wire format).
|
|
29584
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
29585
|
+
* @return {!proto.game.CashBackListsGamesRequest}
|
|
29586
|
+
*/
|
|
29587
|
+
proto.game.CashBackListsGamesRequest.deserializeBinary = function(bytes) {
|
|
29588
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
29589
|
+
var msg = new proto.game.CashBackListsGamesRequest;
|
|
29590
|
+
return proto.game.CashBackListsGamesRequest.deserializeBinaryFromReader(msg, reader);
|
|
29591
|
+
};
|
|
29592
|
+
|
|
29593
|
+
|
|
29594
|
+
/**
|
|
29595
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
29596
|
+
* given reader into the given message object.
|
|
29597
|
+
* @param {!proto.game.CashBackListsGamesRequest} msg The message object to deserialize into.
|
|
29598
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
29599
|
+
* @return {!proto.game.CashBackListsGamesRequest}
|
|
29600
|
+
*/
|
|
29601
|
+
proto.game.CashBackListsGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
29602
|
+
while (reader.nextField()) {
|
|
29603
|
+
if (reader.isEndGroup()) {
|
|
29604
|
+
break;
|
|
29605
|
+
}
|
|
29606
|
+
var field = reader.getFieldNumber();
|
|
29607
|
+
switch (field) {
|
|
29608
|
+
case 1:
|
|
29609
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
29610
|
+
for (var i = 0; i < values.length; i++) {
|
|
29611
|
+
msg.addCashbackListIds(values[i]);
|
|
29612
|
+
}
|
|
29613
|
+
break;
|
|
29614
|
+
case 2:
|
|
29615
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
29616
|
+
msg.setLimit(value);
|
|
29617
|
+
break;
|
|
29618
|
+
case 3:
|
|
29619
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
29620
|
+
msg.setOffset(value);
|
|
29621
|
+
break;
|
|
29622
|
+
default:
|
|
29623
|
+
reader.skipField();
|
|
29624
|
+
break;
|
|
29625
|
+
}
|
|
29626
|
+
}
|
|
29627
|
+
return msg;
|
|
29628
|
+
};
|
|
29629
|
+
|
|
29630
|
+
|
|
29631
|
+
/**
|
|
29632
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
29633
|
+
* @return {!Uint8Array}
|
|
29634
|
+
*/
|
|
29635
|
+
proto.game.CashBackListsGamesRequest.prototype.serializeBinary = function() {
|
|
29636
|
+
var writer = new jspb.BinaryWriter();
|
|
29637
|
+
proto.game.CashBackListsGamesRequest.serializeBinaryToWriter(this, writer);
|
|
29638
|
+
return writer.getResultBuffer();
|
|
29639
|
+
};
|
|
29640
|
+
|
|
29641
|
+
|
|
29642
|
+
/**
|
|
29643
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
29644
|
+
* format), writing to the given BinaryWriter.
|
|
29645
|
+
* @param {!proto.game.CashBackListsGamesRequest} message
|
|
29646
|
+
* @param {!jspb.BinaryWriter} writer
|
|
29647
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
29648
|
+
*/
|
|
29649
|
+
proto.game.CashBackListsGamesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
29650
|
+
var f = undefined;
|
|
29651
|
+
f = message.getCashbackListIdsList();
|
|
29652
|
+
if (f.length > 0) {
|
|
29653
|
+
writer.writePackedInt32(
|
|
29654
|
+
1,
|
|
29655
|
+
f
|
|
29656
|
+
);
|
|
29657
|
+
}
|
|
29658
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
29659
|
+
if (f != null) {
|
|
29660
|
+
writer.writeInt32(
|
|
29661
|
+
2,
|
|
29662
|
+
f
|
|
29663
|
+
);
|
|
29664
|
+
}
|
|
29665
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
29666
|
+
if (f != null) {
|
|
29667
|
+
writer.writeInt32(
|
|
29668
|
+
3,
|
|
29669
|
+
f
|
|
29670
|
+
);
|
|
29671
|
+
}
|
|
29672
|
+
};
|
|
29673
|
+
|
|
29674
|
+
|
|
29675
|
+
/**
|
|
29676
|
+
* repeated int32 cashback_list_ids = 1;
|
|
29677
|
+
* @return {!Array<number>}
|
|
29678
|
+
*/
|
|
29679
|
+
proto.game.CashBackListsGamesRequest.prototype.getCashbackListIdsList = function() {
|
|
29680
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
29681
|
+
};
|
|
29682
|
+
|
|
29683
|
+
|
|
29684
|
+
/**
|
|
29685
|
+
* @param {!Array<number>} value
|
|
29686
|
+
* @return {!proto.game.CashBackListsGamesRequest} returns this
|
|
29687
|
+
*/
|
|
29688
|
+
proto.game.CashBackListsGamesRequest.prototype.setCashbackListIdsList = function(value) {
|
|
29689
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
29690
|
+
};
|
|
29691
|
+
|
|
29692
|
+
|
|
29693
|
+
/**
|
|
29694
|
+
* @param {number} value
|
|
29695
|
+
* @param {number=} opt_index
|
|
29696
|
+
* @return {!proto.game.CashBackListsGamesRequest} returns this
|
|
29697
|
+
*/
|
|
29698
|
+
proto.game.CashBackListsGamesRequest.prototype.addCashbackListIds = function(value, opt_index) {
|
|
29699
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
29700
|
+
};
|
|
29701
|
+
|
|
29702
|
+
|
|
29703
|
+
/**
|
|
29704
|
+
* Clears the list making it empty but non-null.
|
|
29705
|
+
* @return {!proto.game.CashBackListsGamesRequest} returns this
|
|
29706
|
+
*/
|
|
29707
|
+
proto.game.CashBackListsGamesRequest.prototype.clearCashbackListIdsList = function() {
|
|
29708
|
+
return this.setCashbackListIdsList([]);
|
|
29709
|
+
};
|
|
29710
|
+
|
|
29711
|
+
|
|
29712
|
+
/**
|
|
29713
|
+
* optional int32 limit = 2;
|
|
29714
|
+
* @return {number}
|
|
29715
|
+
*/
|
|
29716
|
+
proto.game.CashBackListsGamesRequest.prototype.getLimit = function() {
|
|
29717
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
29718
|
+
};
|
|
29719
|
+
|
|
29720
|
+
|
|
29721
|
+
/**
|
|
29722
|
+
* @param {number} value
|
|
29723
|
+
* @return {!proto.game.CashBackListsGamesRequest} returns this
|
|
29724
|
+
*/
|
|
29725
|
+
proto.game.CashBackListsGamesRequest.prototype.setLimit = function(value) {
|
|
29726
|
+
return jspb.Message.setField(this, 2, value);
|
|
29727
|
+
};
|
|
29728
|
+
|
|
29729
|
+
|
|
29730
|
+
/**
|
|
29731
|
+
* Clears the field making it undefined.
|
|
29732
|
+
* @return {!proto.game.CashBackListsGamesRequest} returns this
|
|
29733
|
+
*/
|
|
29734
|
+
proto.game.CashBackListsGamesRequest.prototype.clearLimit = function() {
|
|
29735
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
29736
|
+
};
|
|
29737
|
+
|
|
29738
|
+
|
|
29739
|
+
/**
|
|
29740
|
+
* Returns whether this field is set.
|
|
29741
|
+
* @return {boolean}
|
|
29742
|
+
*/
|
|
29743
|
+
proto.game.CashBackListsGamesRequest.prototype.hasLimit = function() {
|
|
29744
|
+
return jspb.Message.getField(this, 2) != null;
|
|
29745
|
+
};
|
|
29746
|
+
|
|
29747
|
+
|
|
29748
|
+
/**
|
|
29749
|
+
* optional int32 offset = 3;
|
|
29750
|
+
* @return {number}
|
|
29751
|
+
*/
|
|
29752
|
+
proto.game.CashBackListsGamesRequest.prototype.getOffset = function() {
|
|
29753
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
29754
|
+
};
|
|
29755
|
+
|
|
29756
|
+
|
|
29757
|
+
/**
|
|
29758
|
+
* @param {number} value
|
|
29759
|
+
* @return {!proto.game.CashBackListsGamesRequest} returns this
|
|
29760
|
+
*/
|
|
29761
|
+
proto.game.CashBackListsGamesRequest.prototype.setOffset = function(value) {
|
|
29762
|
+
return jspb.Message.setField(this, 3, value);
|
|
29763
|
+
};
|
|
29764
|
+
|
|
29765
|
+
|
|
29766
|
+
/**
|
|
29767
|
+
* Clears the field making it undefined.
|
|
29768
|
+
* @return {!proto.game.CashBackListsGamesRequest} returns this
|
|
29769
|
+
*/
|
|
29770
|
+
proto.game.CashBackListsGamesRequest.prototype.clearOffset = function() {
|
|
29771
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
29772
|
+
};
|
|
29773
|
+
|
|
29774
|
+
|
|
29775
|
+
/**
|
|
29776
|
+
* Returns whether this field is set.
|
|
29777
|
+
* @return {boolean}
|
|
29778
|
+
*/
|
|
29779
|
+
proto.game.CashBackListsGamesRequest.prototype.hasOffset = function() {
|
|
29780
|
+
return jspb.Message.getField(this, 3) != null;
|
|
29781
|
+
};
|
|
29782
|
+
|
|
29783
|
+
|
|
29784
|
+
|
|
29785
|
+
|
|
29786
|
+
|
|
29787
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
29788
|
+
/**
|
|
29789
|
+
* Creates an object representation of this proto.
|
|
29790
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
29791
|
+
* Optional fields that are not set will be set to undefined.
|
|
29792
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
29793
|
+
* For the list of reserved names please see:
|
|
29794
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
29795
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
29796
|
+
* JSPB instance for transitional soy proto support:
|
|
29797
|
+
* http://goto/soy-param-migration
|
|
29798
|
+
* @return {!Object}
|
|
29799
|
+
*/
|
|
29800
|
+
proto.game.CashbackGamePreview.prototype.toObject = function(opt_includeInstance) {
|
|
29801
|
+
return proto.game.CashbackGamePreview.toObject(opt_includeInstance, this);
|
|
29802
|
+
};
|
|
29803
|
+
|
|
29804
|
+
|
|
29805
|
+
/**
|
|
29806
|
+
* Static version of the {@see toObject} method.
|
|
29807
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
29808
|
+
* the JSPB instance for transitional soy proto support:
|
|
29809
|
+
* http://goto/soy-param-migration
|
|
29810
|
+
* @param {!proto.game.CashbackGamePreview} msg The msg instance to transform.
|
|
29811
|
+
* @return {!Object}
|
|
29812
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
29813
|
+
*/
|
|
29814
|
+
proto.game.CashbackGamePreview.toObject = function(includeInstance, msg) {
|
|
29815
|
+
var f, obj = {
|
|
29816
|
+
gameSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
29817
|
+
providerSlug: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
29818
|
+
image: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
29819
|
+
gameId: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
29820
|
+
};
|
|
29821
|
+
|
|
29822
|
+
if (includeInstance) {
|
|
29823
|
+
obj.$jspbMessageInstance = msg;
|
|
29824
|
+
}
|
|
29825
|
+
return obj;
|
|
29826
|
+
};
|
|
29827
|
+
}
|
|
29828
|
+
|
|
29829
|
+
|
|
29830
|
+
/**
|
|
29831
|
+
* Deserializes binary data (in protobuf wire format).
|
|
29832
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
29833
|
+
* @return {!proto.game.CashbackGamePreview}
|
|
29834
|
+
*/
|
|
29835
|
+
proto.game.CashbackGamePreview.deserializeBinary = function(bytes) {
|
|
29836
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
29837
|
+
var msg = new proto.game.CashbackGamePreview;
|
|
29838
|
+
return proto.game.CashbackGamePreview.deserializeBinaryFromReader(msg, reader);
|
|
29839
|
+
};
|
|
29840
|
+
|
|
29841
|
+
|
|
29842
|
+
/**
|
|
29843
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
29844
|
+
* given reader into the given message object.
|
|
29845
|
+
* @param {!proto.game.CashbackGamePreview} msg The message object to deserialize into.
|
|
29846
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
29847
|
+
* @return {!proto.game.CashbackGamePreview}
|
|
29848
|
+
*/
|
|
29849
|
+
proto.game.CashbackGamePreview.deserializeBinaryFromReader = function(msg, reader) {
|
|
29850
|
+
while (reader.nextField()) {
|
|
29851
|
+
if (reader.isEndGroup()) {
|
|
29852
|
+
break;
|
|
29853
|
+
}
|
|
29854
|
+
var field = reader.getFieldNumber();
|
|
29855
|
+
switch (field) {
|
|
29856
|
+
case 1:
|
|
29857
|
+
var value = /** @type {string} */ (reader.readString());
|
|
29858
|
+
msg.setGameSlug(value);
|
|
29859
|
+
break;
|
|
29860
|
+
case 2:
|
|
29861
|
+
var value = /** @type {string} */ (reader.readString());
|
|
29862
|
+
msg.setProviderSlug(value);
|
|
29863
|
+
break;
|
|
29864
|
+
case 3:
|
|
29865
|
+
var value = /** @type {string} */ (reader.readString());
|
|
29866
|
+
msg.setImage(value);
|
|
29867
|
+
break;
|
|
29868
|
+
case 4:
|
|
29869
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
29870
|
+
msg.setGameId(value);
|
|
29871
|
+
break;
|
|
29872
|
+
default:
|
|
29873
|
+
reader.skipField();
|
|
29874
|
+
break;
|
|
29875
|
+
}
|
|
29876
|
+
}
|
|
29877
|
+
return msg;
|
|
29878
|
+
};
|
|
29879
|
+
|
|
29880
|
+
|
|
29881
|
+
/**
|
|
29882
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
29883
|
+
* @return {!Uint8Array}
|
|
29884
|
+
*/
|
|
29885
|
+
proto.game.CashbackGamePreview.prototype.serializeBinary = function() {
|
|
29886
|
+
var writer = new jspb.BinaryWriter();
|
|
29887
|
+
proto.game.CashbackGamePreview.serializeBinaryToWriter(this, writer);
|
|
29888
|
+
return writer.getResultBuffer();
|
|
29889
|
+
};
|
|
29890
|
+
|
|
29891
|
+
|
|
29892
|
+
/**
|
|
29893
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
29894
|
+
* format), writing to the given BinaryWriter.
|
|
29895
|
+
* @param {!proto.game.CashbackGamePreview} message
|
|
29896
|
+
* @param {!jspb.BinaryWriter} writer
|
|
29897
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
29898
|
+
*/
|
|
29899
|
+
proto.game.CashbackGamePreview.serializeBinaryToWriter = function(message, writer) {
|
|
29900
|
+
var f = undefined;
|
|
29901
|
+
f = message.getGameSlug();
|
|
29902
|
+
if (f.length > 0) {
|
|
29903
|
+
writer.writeString(
|
|
29904
|
+
1,
|
|
29905
|
+
f
|
|
29906
|
+
);
|
|
29907
|
+
}
|
|
29908
|
+
f = message.getProviderSlug();
|
|
29909
|
+
if (f.length > 0) {
|
|
29910
|
+
writer.writeString(
|
|
29911
|
+
2,
|
|
29912
|
+
f
|
|
29913
|
+
);
|
|
29914
|
+
}
|
|
29915
|
+
f = message.getImage();
|
|
29916
|
+
if (f.length > 0) {
|
|
29917
|
+
writer.writeString(
|
|
29918
|
+
3,
|
|
29919
|
+
f
|
|
29920
|
+
);
|
|
29921
|
+
}
|
|
29922
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
29923
|
+
if (f != null) {
|
|
29924
|
+
writer.writeInt32(
|
|
29925
|
+
4,
|
|
29926
|
+
f
|
|
29927
|
+
);
|
|
29928
|
+
}
|
|
29929
|
+
};
|
|
29930
|
+
|
|
29931
|
+
|
|
29932
|
+
/**
|
|
29933
|
+
* optional string game_slug = 1;
|
|
29934
|
+
* @return {string}
|
|
29935
|
+
*/
|
|
29936
|
+
proto.game.CashbackGamePreview.prototype.getGameSlug = function() {
|
|
29937
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
29938
|
+
};
|
|
29939
|
+
|
|
29940
|
+
|
|
29941
|
+
/**
|
|
29942
|
+
* @param {string} value
|
|
29943
|
+
* @return {!proto.game.CashbackGamePreview} returns this
|
|
29944
|
+
*/
|
|
29945
|
+
proto.game.CashbackGamePreview.prototype.setGameSlug = function(value) {
|
|
29946
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
29947
|
+
};
|
|
29948
|
+
|
|
29949
|
+
|
|
29950
|
+
/**
|
|
29951
|
+
* optional string provider_slug = 2;
|
|
29952
|
+
* @return {string}
|
|
29953
|
+
*/
|
|
29954
|
+
proto.game.CashbackGamePreview.prototype.getProviderSlug = function() {
|
|
29955
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
29956
|
+
};
|
|
29957
|
+
|
|
29958
|
+
|
|
29959
|
+
/**
|
|
29960
|
+
* @param {string} value
|
|
29961
|
+
* @return {!proto.game.CashbackGamePreview} returns this
|
|
29962
|
+
*/
|
|
29963
|
+
proto.game.CashbackGamePreview.prototype.setProviderSlug = function(value) {
|
|
29964
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
29965
|
+
};
|
|
29966
|
+
|
|
29967
|
+
|
|
29968
|
+
/**
|
|
29969
|
+
* optional string image = 3;
|
|
29970
|
+
* @return {string}
|
|
29971
|
+
*/
|
|
29972
|
+
proto.game.CashbackGamePreview.prototype.getImage = function() {
|
|
29973
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
29974
|
+
};
|
|
29975
|
+
|
|
29976
|
+
|
|
29977
|
+
/**
|
|
29978
|
+
* @param {string} value
|
|
29979
|
+
* @return {!proto.game.CashbackGamePreview} returns this
|
|
29980
|
+
*/
|
|
29981
|
+
proto.game.CashbackGamePreview.prototype.setImage = function(value) {
|
|
29982
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
29983
|
+
};
|
|
29984
|
+
|
|
29985
|
+
|
|
29986
|
+
/**
|
|
29987
|
+
* optional int32 game_id = 4;
|
|
29988
|
+
* @return {number}
|
|
29989
|
+
*/
|
|
29990
|
+
proto.game.CashbackGamePreview.prototype.getGameId = function() {
|
|
29991
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
29992
|
+
};
|
|
29993
|
+
|
|
29994
|
+
|
|
29995
|
+
/**
|
|
29996
|
+
* @param {number} value
|
|
29997
|
+
* @return {!proto.game.CashbackGamePreview} returns this
|
|
29998
|
+
*/
|
|
29999
|
+
proto.game.CashbackGamePreview.prototype.setGameId = function(value) {
|
|
30000
|
+
return jspb.Message.setField(this, 4, value);
|
|
30001
|
+
};
|
|
30002
|
+
|
|
30003
|
+
|
|
30004
|
+
/**
|
|
30005
|
+
* Clears the field making it undefined.
|
|
30006
|
+
* @return {!proto.game.CashbackGamePreview} returns this
|
|
30007
|
+
*/
|
|
30008
|
+
proto.game.CashbackGamePreview.prototype.clearGameId = function() {
|
|
30009
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
30010
|
+
};
|
|
30011
|
+
|
|
30012
|
+
|
|
30013
|
+
/**
|
|
30014
|
+
* Returns whether this field is set.
|
|
30015
|
+
* @return {boolean}
|
|
30016
|
+
*/
|
|
30017
|
+
proto.game.CashbackGamePreview.prototype.hasGameId = function() {
|
|
30018
|
+
return jspb.Message.getField(this, 4) != null;
|
|
30019
|
+
};
|
|
30020
|
+
|
|
30021
|
+
|
|
30022
|
+
|
|
30023
|
+
/**
|
|
30024
|
+
* List of repeated fields within this message type.
|
|
30025
|
+
* @private {!Array<number>}
|
|
30026
|
+
* @const
|
|
30027
|
+
*/
|
|
30028
|
+
proto.game.CashBackListGamesItem.repeatedFields_ = [2];
|
|
30029
|
+
|
|
30030
|
+
|
|
30031
|
+
|
|
30032
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
30033
|
+
/**
|
|
30034
|
+
* Creates an object representation of this proto.
|
|
30035
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
30036
|
+
* Optional fields that are not set will be set to undefined.
|
|
30037
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
30038
|
+
* For the list of reserved names please see:
|
|
30039
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
30040
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
30041
|
+
* JSPB instance for transitional soy proto support:
|
|
30042
|
+
* http://goto/soy-param-migration
|
|
30043
|
+
* @return {!Object}
|
|
30044
|
+
*/
|
|
30045
|
+
proto.game.CashBackListGamesItem.prototype.toObject = function(opt_includeInstance) {
|
|
30046
|
+
return proto.game.CashBackListGamesItem.toObject(opt_includeInstance, this);
|
|
30047
|
+
};
|
|
30048
|
+
|
|
30049
|
+
|
|
30050
|
+
/**
|
|
30051
|
+
* Static version of the {@see toObject} method.
|
|
30052
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
30053
|
+
* the JSPB instance for transitional soy proto support:
|
|
30054
|
+
* http://goto/soy-param-migration
|
|
30055
|
+
* @param {!proto.game.CashBackListGamesItem} msg The msg instance to transform.
|
|
30056
|
+
* @return {!Object}
|
|
30057
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30058
|
+
*/
|
|
30059
|
+
proto.game.CashBackListGamesItem.toObject = function(includeInstance, msg) {
|
|
30060
|
+
var f, obj = {
|
|
30061
|
+
cashbackListId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
30062
|
+
gamesList: jspb.Message.toObjectList(msg.getGamesList(),
|
|
30063
|
+
proto.game.CashbackGamePreview.toObject, includeInstance)
|
|
30064
|
+
};
|
|
30065
|
+
|
|
30066
|
+
if (includeInstance) {
|
|
30067
|
+
obj.$jspbMessageInstance = msg;
|
|
30068
|
+
}
|
|
30069
|
+
return obj;
|
|
30070
|
+
};
|
|
30071
|
+
}
|
|
30072
|
+
|
|
30073
|
+
|
|
30074
|
+
/**
|
|
30075
|
+
* Deserializes binary data (in protobuf wire format).
|
|
30076
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
30077
|
+
* @return {!proto.game.CashBackListGamesItem}
|
|
30078
|
+
*/
|
|
30079
|
+
proto.game.CashBackListGamesItem.deserializeBinary = function(bytes) {
|
|
30080
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
30081
|
+
var msg = new proto.game.CashBackListGamesItem;
|
|
30082
|
+
return proto.game.CashBackListGamesItem.deserializeBinaryFromReader(msg, reader);
|
|
30083
|
+
};
|
|
30084
|
+
|
|
30085
|
+
|
|
30086
|
+
/**
|
|
30087
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
30088
|
+
* given reader into the given message object.
|
|
30089
|
+
* @param {!proto.game.CashBackListGamesItem} msg The message object to deserialize into.
|
|
30090
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
30091
|
+
* @return {!proto.game.CashBackListGamesItem}
|
|
30092
|
+
*/
|
|
30093
|
+
proto.game.CashBackListGamesItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
30094
|
+
while (reader.nextField()) {
|
|
30095
|
+
if (reader.isEndGroup()) {
|
|
30096
|
+
break;
|
|
30097
|
+
}
|
|
30098
|
+
var field = reader.getFieldNumber();
|
|
30099
|
+
switch (field) {
|
|
30100
|
+
case 1:
|
|
30101
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
30102
|
+
msg.setCashbackListId(value);
|
|
30103
|
+
break;
|
|
30104
|
+
case 2:
|
|
30105
|
+
var value = new proto.game.CashbackGamePreview;
|
|
30106
|
+
reader.readMessage(value,proto.game.CashbackGamePreview.deserializeBinaryFromReader);
|
|
30107
|
+
msg.addGames(value);
|
|
30108
|
+
break;
|
|
30109
|
+
default:
|
|
30110
|
+
reader.skipField();
|
|
30111
|
+
break;
|
|
30112
|
+
}
|
|
30113
|
+
}
|
|
30114
|
+
return msg;
|
|
30115
|
+
};
|
|
30116
|
+
|
|
30117
|
+
|
|
30118
|
+
/**
|
|
30119
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
30120
|
+
* @return {!Uint8Array}
|
|
30121
|
+
*/
|
|
30122
|
+
proto.game.CashBackListGamesItem.prototype.serializeBinary = function() {
|
|
30123
|
+
var writer = new jspb.BinaryWriter();
|
|
30124
|
+
proto.game.CashBackListGamesItem.serializeBinaryToWriter(this, writer);
|
|
30125
|
+
return writer.getResultBuffer();
|
|
30126
|
+
};
|
|
30127
|
+
|
|
30128
|
+
|
|
30129
|
+
/**
|
|
30130
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
30131
|
+
* format), writing to the given BinaryWriter.
|
|
30132
|
+
* @param {!proto.game.CashBackListGamesItem} message
|
|
30133
|
+
* @param {!jspb.BinaryWriter} writer
|
|
30134
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30135
|
+
*/
|
|
30136
|
+
proto.game.CashBackListGamesItem.serializeBinaryToWriter = function(message, writer) {
|
|
30137
|
+
var f = undefined;
|
|
30138
|
+
f = message.getCashbackListId();
|
|
30139
|
+
if (f !== 0) {
|
|
30140
|
+
writer.writeInt32(
|
|
30141
|
+
1,
|
|
30142
|
+
f
|
|
30143
|
+
);
|
|
30144
|
+
}
|
|
30145
|
+
f = message.getGamesList();
|
|
30146
|
+
if (f.length > 0) {
|
|
30147
|
+
writer.writeRepeatedMessage(
|
|
30148
|
+
2,
|
|
30149
|
+
f,
|
|
30150
|
+
proto.game.CashbackGamePreview.serializeBinaryToWriter
|
|
30151
|
+
);
|
|
30152
|
+
}
|
|
30153
|
+
};
|
|
30154
|
+
|
|
30155
|
+
|
|
30156
|
+
/**
|
|
30157
|
+
* optional int32 cashback_list_id = 1;
|
|
30158
|
+
* @return {number}
|
|
30159
|
+
*/
|
|
30160
|
+
proto.game.CashBackListGamesItem.prototype.getCashbackListId = function() {
|
|
30161
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
30162
|
+
};
|
|
30163
|
+
|
|
30164
|
+
|
|
30165
|
+
/**
|
|
30166
|
+
* @param {number} value
|
|
30167
|
+
* @return {!proto.game.CashBackListGamesItem} returns this
|
|
30168
|
+
*/
|
|
30169
|
+
proto.game.CashBackListGamesItem.prototype.setCashbackListId = function(value) {
|
|
30170
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
30171
|
+
};
|
|
30172
|
+
|
|
30173
|
+
|
|
30174
|
+
/**
|
|
30175
|
+
* repeated CashbackGamePreview games = 2;
|
|
30176
|
+
* @return {!Array<!proto.game.CashbackGamePreview>}
|
|
30177
|
+
*/
|
|
30178
|
+
proto.game.CashBackListGamesItem.prototype.getGamesList = function() {
|
|
30179
|
+
return /** @type{!Array<!proto.game.CashbackGamePreview>} */ (
|
|
30180
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.CashbackGamePreview, 2));
|
|
30181
|
+
};
|
|
30182
|
+
|
|
30183
|
+
|
|
30184
|
+
/**
|
|
30185
|
+
* @param {!Array<!proto.game.CashbackGamePreview>} value
|
|
30186
|
+
* @return {!proto.game.CashBackListGamesItem} returns this
|
|
30187
|
+
*/
|
|
30188
|
+
proto.game.CashBackListGamesItem.prototype.setGamesList = function(value) {
|
|
30189
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
30190
|
+
};
|
|
30191
|
+
|
|
30192
|
+
|
|
30193
|
+
/**
|
|
30194
|
+
* @param {!proto.game.CashbackGamePreview=} opt_value
|
|
30195
|
+
* @param {number=} opt_index
|
|
30196
|
+
* @return {!proto.game.CashbackGamePreview}
|
|
30197
|
+
*/
|
|
30198
|
+
proto.game.CashBackListGamesItem.prototype.addGames = function(opt_value, opt_index) {
|
|
30199
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.game.CashbackGamePreview, opt_index);
|
|
30200
|
+
};
|
|
30201
|
+
|
|
30202
|
+
|
|
30203
|
+
/**
|
|
30204
|
+
* Clears the list making it empty but non-null.
|
|
30205
|
+
* @return {!proto.game.CashBackListGamesItem} returns this
|
|
30206
|
+
*/
|
|
30207
|
+
proto.game.CashBackListGamesItem.prototype.clearGamesList = function() {
|
|
30208
|
+
return this.setGamesList([]);
|
|
30209
|
+
};
|
|
30210
|
+
|
|
30211
|
+
|
|
30212
|
+
|
|
30213
|
+
/**
|
|
30214
|
+
* List of repeated fields within this message type.
|
|
30215
|
+
* @private {!Array<number>}
|
|
30216
|
+
* @const
|
|
30217
|
+
*/
|
|
30218
|
+
proto.game.CashBackListsGamesResponse.repeatedFields_ = [1];
|
|
30219
|
+
|
|
30220
|
+
|
|
30221
|
+
|
|
30222
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
30223
|
+
/**
|
|
30224
|
+
* Creates an object representation of this proto.
|
|
30225
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
30226
|
+
* Optional fields that are not set will be set to undefined.
|
|
30227
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
30228
|
+
* For the list of reserved names please see:
|
|
30229
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
30230
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
30231
|
+
* JSPB instance for transitional soy proto support:
|
|
30232
|
+
* http://goto/soy-param-migration
|
|
30233
|
+
* @return {!Object}
|
|
30234
|
+
*/
|
|
30235
|
+
proto.game.CashBackListsGamesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
30236
|
+
return proto.game.CashBackListsGamesResponse.toObject(opt_includeInstance, this);
|
|
30237
|
+
};
|
|
30238
|
+
|
|
30239
|
+
|
|
30240
|
+
/**
|
|
30241
|
+
* Static version of the {@see toObject} method.
|
|
30242
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
30243
|
+
* the JSPB instance for transitional soy proto support:
|
|
30244
|
+
* http://goto/soy-param-migration
|
|
30245
|
+
* @param {!proto.game.CashBackListsGamesResponse} msg The msg instance to transform.
|
|
30246
|
+
* @return {!Object}
|
|
30247
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30248
|
+
*/
|
|
30249
|
+
proto.game.CashBackListsGamesResponse.toObject = function(includeInstance, msg) {
|
|
30250
|
+
var f, obj = {
|
|
30251
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
30252
|
+
proto.game.CashBackListGamesItem.toObject, includeInstance)
|
|
30253
|
+
};
|
|
30254
|
+
|
|
30255
|
+
if (includeInstance) {
|
|
30256
|
+
obj.$jspbMessageInstance = msg;
|
|
30257
|
+
}
|
|
30258
|
+
return obj;
|
|
30259
|
+
};
|
|
30260
|
+
}
|
|
30261
|
+
|
|
30262
|
+
|
|
30263
|
+
/**
|
|
30264
|
+
* Deserializes binary data (in protobuf wire format).
|
|
30265
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
30266
|
+
* @return {!proto.game.CashBackListsGamesResponse}
|
|
30267
|
+
*/
|
|
30268
|
+
proto.game.CashBackListsGamesResponse.deserializeBinary = function(bytes) {
|
|
30269
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
30270
|
+
var msg = new proto.game.CashBackListsGamesResponse;
|
|
30271
|
+
return proto.game.CashBackListsGamesResponse.deserializeBinaryFromReader(msg, reader);
|
|
30272
|
+
};
|
|
30273
|
+
|
|
30274
|
+
|
|
30275
|
+
/**
|
|
30276
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
30277
|
+
* given reader into the given message object.
|
|
30278
|
+
* @param {!proto.game.CashBackListsGamesResponse} msg The message object to deserialize into.
|
|
30279
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
30280
|
+
* @return {!proto.game.CashBackListsGamesResponse}
|
|
30281
|
+
*/
|
|
30282
|
+
proto.game.CashBackListsGamesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
30283
|
+
while (reader.nextField()) {
|
|
30284
|
+
if (reader.isEndGroup()) {
|
|
30285
|
+
break;
|
|
30286
|
+
}
|
|
30287
|
+
var field = reader.getFieldNumber();
|
|
30288
|
+
switch (field) {
|
|
30289
|
+
case 1:
|
|
30290
|
+
var value = new proto.game.CashBackListGamesItem;
|
|
30291
|
+
reader.readMessage(value,proto.game.CashBackListGamesItem.deserializeBinaryFromReader);
|
|
30292
|
+
msg.addItems(value);
|
|
30293
|
+
break;
|
|
30294
|
+
default:
|
|
30295
|
+
reader.skipField();
|
|
30296
|
+
break;
|
|
30297
|
+
}
|
|
30298
|
+
}
|
|
30299
|
+
return msg;
|
|
30300
|
+
};
|
|
30301
|
+
|
|
30302
|
+
|
|
30303
|
+
/**
|
|
30304
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
30305
|
+
* @return {!Uint8Array}
|
|
30306
|
+
*/
|
|
30307
|
+
proto.game.CashBackListsGamesResponse.prototype.serializeBinary = function() {
|
|
30308
|
+
var writer = new jspb.BinaryWriter();
|
|
30309
|
+
proto.game.CashBackListsGamesResponse.serializeBinaryToWriter(this, writer);
|
|
30310
|
+
return writer.getResultBuffer();
|
|
30311
|
+
};
|
|
30312
|
+
|
|
30313
|
+
|
|
30314
|
+
/**
|
|
30315
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
30316
|
+
* format), writing to the given BinaryWriter.
|
|
30317
|
+
* @param {!proto.game.CashBackListsGamesResponse} message
|
|
30318
|
+
* @param {!jspb.BinaryWriter} writer
|
|
30319
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30320
|
+
*/
|
|
30321
|
+
proto.game.CashBackListsGamesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
30322
|
+
var f = undefined;
|
|
30323
|
+
f = message.getItemsList();
|
|
30324
|
+
if (f.length > 0) {
|
|
30325
|
+
writer.writeRepeatedMessage(
|
|
30326
|
+
1,
|
|
30327
|
+
f,
|
|
30328
|
+
proto.game.CashBackListGamesItem.serializeBinaryToWriter
|
|
30329
|
+
);
|
|
30330
|
+
}
|
|
30331
|
+
};
|
|
30332
|
+
|
|
30333
|
+
|
|
30334
|
+
/**
|
|
30335
|
+
* repeated CashBackListGamesItem items = 1;
|
|
30336
|
+
* @return {!Array<!proto.game.CashBackListGamesItem>}
|
|
30337
|
+
*/
|
|
30338
|
+
proto.game.CashBackListsGamesResponse.prototype.getItemsList = function() {
|
|
30339
|
+
return /** @type{!Array<!proto.game.CashBackListGamesItem>} */ (
|
|
30340
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.CashBackListGamesItem, 1));
|
|
30341
|
+
};
|
|
30342
|
+
|
|
30343
|
+
|
|
30344
|
+
/**
|
|
30345
|
+
* @param {!Array<!proto.game.CashBackListGamesItem>} value
|
|
30346
|
+
* @return {!proto.game.CashBackListsGamesResponse} returns this
|
|
30347
|
+
*/
|
|
30348
|
+
proto.game.CashBackListsGamesResponse.prototype.setItemsList = function(value) {
|
|
30349
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
30350
|
+
};
|
|
30351
|
+
|
|
30352
|
+
|
|
30353
|
+
/**
|
|
30354
|
+
* @param {!proto.game.CashBackListGamesItem=} opt_value
|
|
30355
|
+
* @param {number=} opt_index
|
|
30356
|
+
* @return {!proto.game.CashBackListGamesItem}
|
|
30357
|
+
*/
|
|
30358
|
+
proto.game.CashBackListsGamesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
30359
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CashBackListGamesItem, opt_index);
|
|
30360
|
+
};
|
|
30361
|
+
|
|
30362
|
+
|
|
30363
|
+
/**
|
|
30364
|
+
* Clears the list making it empty but non-null.
|
|
30365
|
+
* @return {!proto.game.CashBackListsGamesResponse} returns this
|
|
30366
|
+
*/
|
|
30367
|
+
proto.game.CashBackListsGamesResponse.prototype.clearItemsList = function() {
|
|
30368
|
+
return this.setItemsList([]);
|
|
30369
|
+
};
|
|
30370
|
+
|
|
30371
|
+
|
|
30372
|
+
|
|
29443
30373
|
|
|
29444
30374
|
|
|
29445
30375
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|