protobuf-platform 1.2.192 → 1.2.194

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
@@ -21,12 +21,19 @@ 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.CashBackTypeGamesItem', null, global);
34
+ goog.exportSymbol('proto.game.CashBackTypesGamesRequest', null, global);
35
+ goog.exportSymbol('proto.game.CashBackTypesGamesResponse', null, global);
36
+ goog.exportSymbol('proto.game.CashbackGamePreview', null, global);
30
37
  goog.exportSymbol('proto.game.CategoryItem', null, global);
31
38
  goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
32
39
  goog.exportSymbol('proto.game.CategoryItemsResponse', null, global);
@@ -2258,6 +2265,153 @@ if (goog.DEBUG && !COMPILED) {
2258
2265
  */
2259
2266
  proto.game.CashBackListItemsResponse.displayName = 'proto.game.CashBackListItemsResponse';
2260
2267
  }
2268
+ /**
2269
+ * Generated by JsPbCodeGenerator.
2270
+ * @param {Array=} opt_data Optional initial data array, typically from a
2271
+ * server response, or constructed directly in Javascript. The array is used
2272
+ * in place and becomes part of the constructed object. It is not cloned.
2273
+ * If no data is provided, the constructed object will be empty, but still
2274
+ * valid.
2275
+ * @extends {jspb.Message}
2276
+ * @constructor
2277
+ */
2278
+ proto.game.CashBackListsGamesRequest = function(opt_data) {
2279
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListsGamesRequest.repeatedFields_, null);
2280
+ };
2281
+ goog.inherits(proto.game.CashBackListsGamesRequest, jspb.Message);
2282
+ if (goog.DEBUG && !COMPILED) {
2283
+ /**
2284
+ * @public
2285
+ * @override
2286
+ */
2287
+ proto.game.CashBackListsGamesRequest.displayName = 'proto.game.CashBackListsGamesRequest';
2288
+ }
2289
+ /**
2290
+ * Generated by JsPbCodeGenerator.
2291
+ * @param {Array=} opt_data Optional initial data array, typically from a
2292
+ * server response, or constructed directly in Javascript. The array is used
2293
+ * in place and becomes part of the constructed object. It is not cloned.
2294
+ * If no data is provided, the constructed object will be empty, but still
2295
+ * valid.
2296
+ * @extends {jspb.Message}
2297
+ * @constructor
2298
+ */
2299
+ proto.game.CashbackGamePreview = function(opt_data) {
2300
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2301
+ };
2302
+ goog.inherits(proto.game.CashbackGamePreview, jspb.Message);
2303
+ if (goog.DEBUG && !COMPILED) {
2304
+ /**
2305
+ * @public
2306
+ * @override
2307
+ */
2308
+ proto.game.CashbackGamePreview.displayName = 'proto.game.CashbackGamePreview';
2309
+ }
2310
+ /**
2311
+ * Generated by JsPbCodeGenerator.
2312
+ * @param {Array=} opt_data Optional initial data array, typically from a
2313
+ * server response, or constructed directly in Javascript. The array is used
2314
+ * in place and becomes part of the constructed object. It is not cloned.
2315
+ * If no data is provided, the constructed object will be empty, but still
2316
+ * valid.
2317
+ * @extends {jspb.Message}
2318
+ * @constructor
2319
+ */
2320
+ proto.game.CashBackListGamesItem = function(opt_data) {
2321
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListGamesItem.repeatedFields_, null);
2322
+ };
2323
+ goog.inherits(proto.game.CashBackListGamesItem, jspb.Message);
2324
+ if (goog.DEBUG && !COMPILED) {
2325
+ /**
2326
+ * @public
2327
+ * @override
2328
+ */
2329
+ proto.game.CashBackListGamesItem.displayName = 'proto.game.CashBackListGamesItem';
2330
+ }
2331
+ /**
2332
+ * Generated by JsPbCodeGenerator.
2333
+ * @param {Array=} opt_data Optional initial data array, typically from a
2334
+ * server response, or constructed directly in Javascript. The array is used
2335
+ * in place and becomes part of the constructed object. It is not cloned.
2336
+ * If no data is provided, the constructed object will be empty, but still
2337
+ * valid.
2338
+ * @extends {jspb.Message}
2339
+ * @constructor
2340
+ */
2341
+ proto.game.CashBackListsGamesResponse = function(opt_data) {
2342
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackListsGamesResponse.repeatedFields_, null);
2343
+ };
2344
+ goog.inherits(proto.game.CashBackListsGamesResponse, jspb.Message);
2345
+ if (goog.DEBUG && !COMPILED) {
2346
+ /**
2347
+ * @public
2348
+ * @override
2349
+ */
2350
+ proto.game.CashBackListsGamesResponse.displayName = 'proto.game.CashBackListsGamesResponse';
2351
+ }
2352
+ /**
2353
+ * Generated by JsPbCodeGenerator.
2354
+ * @param {Array=} opt_data Optional initial data array, typically from a
2355
+ * server response, or constructed directly in Javascript. The array is used
2356
+ * in place and becomes part of the constructed object. It is not cloned.
2357
+ * If no data is provided, the constructed object will be empty, but still
2358
+ * valid.
2359
+ * @extends {jspb.Message}
2360
+ * @constructor
2361
+ */
2362
+ proto.game.CashBackTypesGamesRequest = function(opt_data) {
2363
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackTypesGamesRequest.repeatedFields_, null);
2364
+ };
2365
+ goog.inherits(proto.game.CashBackTypesGamesRequest, jspb.Message);
2366
+ if (goog.DEBUG && !COMPILED) {
2367
+ /**
2368
+ * @public
2369
+ * @override
2370
+ */
2371
+ proto.game.CashBackTypesGamesRequest.displayName = 'proto.game.CashBackTypesGamesRequest';
2372
+ }
2373
+ /**
2374
+ * Generated by JsPbCodeGenerator.
2375
+ * @param {Array=} opt_data Optional initial data array, typically from a
2376
+ * server response, or constructed directly in Javascript. The array is used
2377
+ * in place and becomes part of the constructed object. It is not cloned.
2378
+ * If no data is provided, the constructed object will be empty, but still
2379
+ * valid.
2380
+ * @extends {jspb.Message}
2381
+ * @constructor
2382
+ */
2383
+ proto.game.CashBackTypeGamesItem = function(opt_data) {
2384
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackTypeGamesItem.repeatedFields_, null);
2385
+ };
2386
+ goog.inherits(proto.game.CashBackTypeGamesItem, jspb.Message);
2387
+ if (goog.DEBUG && !COMPILED) {
2388
+ /**
2389
+ * @public
2390
+ * @override
2391
+ */
2392
+ proto.game.CashBackTypeGamesItem.displayName = 'proto.game.CashBackTypeGamesItem';
2393
+ }
2394
+ /**
2395
+ * Generated by JsPbCodeGenerator.
2396
+ * @param {Array=} opt_data Optional initial data array, typically from a
2397
+ * server response, or constructed directly in Javascript. The array is used
2398
+ * in place and becomes part of the constructed object. It is not cloned.
2399
+ * If no data is provided, the constructed object will be empty, but still
2400
+ * valid.
2401
+ * @extends {jspb.Message}
2402
+ * @constructor
2403
+ */
2404
+ proto.game.CashBackTypesGamesResponse = function(opt_data) {
2405
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackTypesGamesResponse.repeatedFields_, null);
2406
+ };
2407
+ goog.inherits(proto.game.CashBackTypesGamesResponse, jspb.Message);
2408
+ if (goog.DEBUG && !COMPILED) {
2409
+ /**
2410
+ * @public
2411
+ * @override
2412
+ */
2413
+ proto.game.CashBackTypesGamesResponse.displayName = 'proto.game.CashBackTypesGamesResponse';
2414
+ }
2261
2415
  /**
2262
2416
  * Generated by JsPbCodeGenerator.
2263
2417
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -29440,6 +29594,1450 @@ proto.game.CashBackListItemsResponse.prototype.hasTotalItems = function() {
29440
29594
 
29441
29595
 
29442
29596
 
29597
+ /**
29598
+ * List of repeated fields within this message type.
29599
+ * @private {!Array<number>}
29600
+ * @const
29601
+ */
29602
+ proto.game.CashBackListsGamesRequest.repeatedFields_ = [1];
29603
+
29604
+
29605
+
29606
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29607
+ /**
29608
+ * Creates an object representation of this proto.
29609
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29610
+ * Optional fields that are not set will be set to undefined.
29611
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29612
+ * For the list of reserved names please see:
29613
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29614
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29615
+ * JSPB instance for transitional soy proto support:
29616
+ * http://goto/soy-param-migration
29617
+ * @return {!Object}
29618
+ */
29619
+ proto.game.CashBackListsGamesRequest.prototype.toObject = function(opt_includeInstance) {
29620
+ return proto.game.CashBackListsGamesRequest.toObject(opt_includeInstance, this);
29621
+ };
29622
+
29623
+
29624
+ /**
29625
+ * Static version of the {@see toObject} method.
29626
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29627
+ * the JSPB instance for transitional soy proto support:
29628
+ * http://goto/soy-param-migration
29629
+ * @param {!proto.game.CashBackListsGamesRequest} msg The msg instance to transform.
29630
+ * @return {!Object}
29631
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29632
+ */
29633
+ proto.game.CashBackListsGamesRequest.toObject = function(includeInstance, msg) {
29634
+ var f, obj = {
29635
+ cashbackListIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
29636
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
29637
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
29638
+ };
29639
+
29640
+ if (includeInstance) {
29641
+ obj.$jspbMessageInstance = msg;
29642
+ }
29643
+ return obj;
29644
+ };
29645
+ }
29646
+
29647
+
29648
+ /**
29649
+ * Deserializes binary data (in protobuf wire format).
29650
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29651
+ * @return {!proto.game.CashBackListsGamesRequest}
29652
+ */
29653
+ proto.game.CashBackListsGamesRequest.deserializeBinary = function(bytes) {
29654
+ var reader = new jspb.BinaryReader(bytes);
29655
+ var msg = new proto.game.CashBackListsGamesRequest;
29656
+ return proto.game.CashBackListsGamesRequest.deserializeBinaryFromReader(msg, reader);
29657
+ };
29658
+
29659
+
29660
+ /**
29661
+ * Deserializes binary data (in protobuf wire format) from the
29662
+ * given reader into the given message object.
29663
+ * @param {!proto.game.CashBackListsGamesRequest} msg The message object to deserialize into.
29664
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29665
+ * @return {!proto.game.CashBackListsGamesRequest}
29666
+ */
29667
+ proto.game.CashBackListsGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
29668
+ while (reader.nextField()) {
29669
+ if (reader.isEndGroup()) {
29670
+ break;
29671
+ }
29672
+ var field = reader.getFieldNumber();
29673
+ switch (field) {
29674
+ case 1:
29675
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
29676
+ for (var i = 0; i < values.length; i++) {
29677
+ msg.addCashbackListIds(values[i]);
29678
+ }
29679
+ break;
29680
+ case 2:
29681
+ var value = /** @type {number} */ (reader.readInt32());
29682
+ msg.setLimit(value);
29683
+ break;
29684
+ case 3:
29685
+ var value = /** @type {number} */ (reader.readInt32());
29686
+ msg.setOffset(value);
29687
+ break;
29688
+ default:
29689
+ reader.skipField();
29690
+ break;
29691
+ }
29692
+ }
29693
+ return msg;
29694
+ };
29695
+
29696
+
29697
+ /**
29698
+ * Serializes the message to binary data (in protobuf wire format).
29699
+ * @return {!Uint8Array}
29700
+ */
29701
+ proto.game.CashBackListsGamesRequest.prototype.serializeBinary = function() {
29702
+ var writer = new jspb.BinaryWriter();
29703
+ proto.game.CashBackListsGamesRequest.serializeBinaryToWriter(this, writer);
29704
+ return writer.getResultBuffer();
29705
+ };
29706
+
29707
+
29708
+ /**
29709
+ * Serializes the given message to binary data (in protobuf wire
29710
+ * format), writing to the given BinaryWriter.
29711
+ * @param {!proto.game.CashBackListsGamesRequest} message
29712
+ * @param {!jspb.BinaryWriter} writer
29713
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29714
+ */
29715
+ proto.game.CashBackListsGamesRequest.serializeBinaryToWriter = function(message, writer) {
29716
+ var f = undefined;
29717
+ f = message.getCashbackListIdsList();
29718
+ if (f.length > 0) {
29719
+ writer.writePackedInt32(
29720
+ 1,
29721
+ f
29722
+ );
29723
+ }
29724
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
29725
+ if (f != null) {
29726
+ writer.writeInt32(
29727
+ 2,
29728
+ f
29729
+ );
29730
+ }
29731
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
29732
+ if (f != null) {
29733
+ writer.writeInt32(
29734
+ 3,
29735
+ f
29736
+ );
29737
+ }
29738
+ };
29739
+
29740
+
29741
+ /**
29742
+ * repeated int32 cashback_list_ids = 1;
29743
+ * @return {!Array<number>}
29744
+ */
29745
+ proto.game.CashBackListsGamesRequest.prototype.getCashbackListIdsList = function() {
29746
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
29747
+ };
29748
+
29749
+
29750
+ /**
29751
+ * @param {!Array<number>} value
29752
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29753
+ */
29754
+ proto.game.CashBackListsGamesRequest.prototype.setCashbackListIdsList = function(value) {
29755
+ return jspb.Message.setField(this, 1, value || []);
29756
+ };
29757
+
29758
+
29759
+ /**
29760
+ * @param {number} value
29761
+ * @param {number=} opt_index
29762
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29763
+ */
29764
+ proto.game.CashBackListsGamesRequest.prototype.addCashbackListIds = function(value, opt_index) {
29765
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
29766
+ };
29767
+
29768
+
29769
+ /**
29770
+ * Clears the list making it empty but non-null.
29771
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29772
+ */
29773
+ proto.game.CashBackListsGamesRequest.prototype.clearCashbackListIdsList = function() {
29774
+ return this.setCashbackListIdsList([]);
29775
+ };
29776
+
29777
+
29778
+ /**
29779
+ * optional int32 limit = 2;
29780
+ * @return {number}
29781
+ */
29782
+ proto.game.CashBackListsGamesRequest.prototype.getLimit = function() {
29783
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
29784
+ };
29785
+
29786
+
29787
+ /**
29788
+ * @param {number} value
29789
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29790
+ */
29791
+ proto.game.CashBackListsGamesRequest.prototype.setLimit = function(value) {
29792
+ return jspb.Message.setField(this, 2, value);
29793
+ };
29794
+
29795
+
29796
+ /**
29797
+ * Clears the field making it undefined.
29798
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29799
+ */
29800
+ proto.game.CashBackListsGamesRequest.prototype.clearLimit = function() {
29801
+ return jspb.Message.setField(this, 2, undefined);
29802
+ };
29803
+
29804
+
29805
+ /**
29806
+ * Returns whether this field is set.
29807
+ * @return {boolean}
29808
+ */
29809
+ proto.game.CashBackListsGamesRequest.prototype.hasLimit = function() {
29810
+ return jspb.Message.getField(this, 2) != null;
29811
+ };
29812
+
29813
+
29814
+ /**
29815
+ * optional int32 offset = 3;
29816
+ * @return {number}
29817
+ */
29818
+ proto.game.CashBackListsGamesRequest.prototype.getOffset = function() {
29819
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
29820
+ };
29821
+
29822
+
29823
+ /**
29824
+ * @param {number} value
29825
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29826
+ */
29827
+ proto.game.CashBackListsGamesRequest.prototype.setOffset = function(value) {
29828
+ return jspb.Message.setField(this, 3, value);
29829
+ };
29830
+
29831
+
29832
+ /**
29833
+ * Clears the field making it undefined.
29834
+ * @return {!proto.game.CashBackListsGamesRequest} returns this
29835
+ */
29836
+ proto.game.CashBackListsGamesRequest.prototype.clearOffset = function() {
29837
+ return jspb.Message.setField(this, 3, undefined);
29838
+ };
29839
+
29840
+
29841
+ /**
29842
+ * Returns whether this field is set.
29843
+ * @return {boolean}
29844
+ */
29845
+ proto.game.CashBackListsGamesRequest.prototype.hasOffset = function() {
29846
+ return jspb.Message.getField(this, 3) != null;
29847
+ };
29848
+
29849
+
29850
+
29851
+
29852
+
29853
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29854
+ /**
29855
+ * Creates an object representation of this proto.
29856
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29857
+ * Optional fields that are not set will be set to undefined.
29858
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29859
+ * For the list of reserved names please see:
29860
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29861
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29862
+ * JSPB instance for transitional soy proto support:
29863
+ * http://goto/soy-param-migration
29864
+ * @return {!Object}
29865
+ */
29866
+ proto.game.CashbackGamePreview.prototype.toObject = function(opt_includeInstance) {
29867
+ return proto.game.CashbackGamePreview.toObject(opt_includeInstance, this);
29868
+ };
29869
+
29870
+
29871
+ /**
29872
+ * Static version of the {@see toObject} method.
29873
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29874
+ * the JSPB instance for transitional soy proto support:
29875
+ * http://goto/soy-param-migration
29876
+ * @param {!proto.game.CashbackGamePreview} msg The msg instance to transform.
29877
+ * @return {!Object}
29878
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29879
+ */
29880
+ proto.game.CashbackGamePreview.toObject = function(includeInstance, msg) {
29881
+ var f, obj = {
29882
+ gameSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
29883
+ providerSlug: jspb.Message.getFieldWithDefault(msg, 2, ""),
29884
+ image: jspb.Message.getFieldWithDefault(msg, 3, ""),
29885
+ gameId: jspb.Message.getFieldWithDefault(msg, 4, 0)
29886
+ };
29887
+
29888
+ if (includeInstance) {
29889
+ obj.$jspbMessageInstance = msg;
29890
+ }
29891
+ return obj;
29892
+ };
29893
+ }
29894
+
29895
+
29896
+ /**
29897
+ * Deserializes binary data (in protobuf wire format).
29898
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29899
+ * @return {!proto.game.CashbackGamePreview}
29900
+ */
29901
+ proto.game.CashbackGamePreview.deserializeBinary = function(bytes) {
29902
+ var reader = new jspb.BinaryReader(bytes);
29903
+ var msg = new proto.game.CashbackGamePreview;
29904
+ return proto.game.CashbackGamePreview.deserializeBinaryFromReader(msg, reader);
29905
+ };
29906
+
29907
+
29908
+ /**
29909
+ * Deserializes binary data (in protobuf wire format) from the
29910
+ * given reader into the given message object.
29911
+ * @param {!proto.game.CashbackGamePreview} msg The message object to deserialize into.
29912
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29913
+ * @return {!proto.game.CashbackGamePreview}
29914
+ */
29915
+ proto.game.CashbackGamePreview.deserializeBinaryFromReader = function(msg, reader) {
29916
+ while (reader.nextField()) {
29917
+ if (reader.isEndGroup()) {
29918
+ break;
29919
+ }
29920
+ var field = reader.getFieldNumber();
29921
+ switch (field) {
29922
+ case 1:
29923
+ var value = /** @type {string} */ (reader.readString());
29924
+ msg.setGameSlug(value);
29925
+ break;
29926
+ case 2:
29927
+ var value = /** @type {string} */ (reader.readString());
29928
+ msg.setProviderSlug(value);
29929
+ break;
29930
+ case 3:
29931
+ var value = /** @type {string} */ (reader.readString());
29932
+ msg.setImage(value);
29933
+ break;
29934
+ case 4:
29935
+ var value = /** @type {number} */ (reader.readInt32());
29936
+ msg.setGameId(value);
29937
+ break;
29938
+ default:
29939
+ reader.skipField();
29940
+ break;
29941
+ }
29942
+ }
29943
+ return msg;
29944
+ };
29945
+
29946
+
29947
+ /**
29948
+ * Serializes the message to binary data (in protobuf wire format).
29949
+ * @return {!Uint8Array}
29950
+ */
29951
+ proto.game.CashbackGamePreview.prototype.serializeBinary = function() {
29952
+ var writer = new jspb.BinaryWriter();
29953
+ proto.game.CashbackGamePreview.serializeBinaryToWriter(this, writer);
29954
+ return writer.getResultBuffer();
29955
+ };
29956
+
29957
+
29958
+ /**
29959
+ * Serializes the given message to binary data (in protobuf wire
29960
+ * format), writing to the given BinaryWriter.
29961
+ * @param {!proto.game.CashbackGamePreview} message
29962
+ * @param {!jspb.BinaryWriter} writer
29963
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29964
+ */
29965
+ proto.game.CashbackGamePreview.serializeBinaryToWriter = function(message, writer) {
29966
+ var f = undefined;
29967
+ f = message.getGameSlug();
29968
+ if (f.length > 0) {
29969
+ writer.writeString(
29970
+ 1,
29971
+ f
29972
+ );
29973
+ }
29974
+ f = message.getProviderSlug();
29975
+ if (f.length > 0) {
29976
+ writer.writeString(
29977
+ 2,
29978
+ f
29979
+ );
29980
+ }
29981
+ f = message.getImage();
29982
+ if (f.length > 0) {
29983
+ writer.writeString(
29984
+ 3,
29985
+ f
29986
+ );
29987
+ }
29988
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
29989
+ if (f != null) {
29990
+ writer.writeInt32(
29991
+ 4,
29992
+ f
29993
+ );
29994
+ }
29995
+ };
29996
+
29997
+
29998
+ /**
29999
+ * optional string game_slug = 1;
30000
+ * @return {string}
30001
+ */
30002
+ proto.game.CashbackGamePreview.prototype.getGameSlug = function() {
30003
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
30004
+ };
30005
+
30006
+
30007
+ /**
30008
+ * @param {string} value
30009
+ * @return {!proto.game.CashbackGamePreview} returns this
30010
+ */
30011
+ proto.game.CashbackGamePreview.prototype.setGameSlug = function(value) {
30012
+ return jspb.Message.setProto3StringField(this, 1, value);
30013
+ };
30014
+
30015
+
30016
+ /**
30017
+ * optional string provider_slug = 2;
30018
+ * @return {string}
30019
+ */
30020
+ proto.game.CashbackGamePreview.prototype.getProviderSlug = function() {
30021
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
30022
+ };
30023
+
30024
+
30025
+ /**
30026
+ * @param {string} value
30027
+ * @return {!proto.game.CashbackGamePreview} returns this
30028
+ */
30029
+ proto.game.CashbackGamePreview.prototype.setProviderSlug = function(value) {
30030
+ return jspb.Message.setProto3StringField(this, 2, value);
30031
+ };
30032
+
30033
+
30034
+ /**
30035
+ * optional string image = 3;
30036
+ * @return {string}
30037
+ */
30038
+ proto.game.CashbackGamePreview.prototype.getImage = function() {
30039
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
30040
+ };
30041
+
30042
+
30043
+ /**
30044
+ * @param {string} value
30045
+ * @return {!proto.game.CashbackGamePreview} returns this
30046
+ */
30047
+ proto.game.CashbackGamePreview.prototype.setImage = function(value) {
30048
+ return jspb.Message.setProto3StringField(this, 3, value);
30049
+ };
30050
+
30051
+
30052
+ /**
30053
+ * optional int32 game_id = 4;
30054
+ * @return {number}
30055
+ */
30056
+ proto.game.CashbackGamePreview.prototype.getGameId = function() {
30057
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
30058
+ };
30059
+
30060
+
30061
+ /**
30062
+ * @param {number} value
30063
+ * @return {!proto.game.CashbackGamePreview} returns this
30064
+ */
30065
+ proto.game.CashbackGamePreview.prototype.setGameId = function(value) {
30066
+ return jspb.Message.setField(this, 4, value);
30067
+ };
30068
+
30069
+
30070
+ /**
30071
+ * Clears the field making it undefined.
30072
+ * @return {!proto.game.CashbackGamePreview} returns this
30073
+ */
30074
+ proto.game.CashbackGamePreview.prototype.clearGameId = function() {
30075
+ return jspb.Message.setField(this, 4, undefined);
30076
+ };
30077
+
30078
+
30079
+ /**
30080
+ * Returns whether this field is set.
30081
+ * @return {boolean}
30082
+ */
30083
+ proto.game.CashbackGamePreview.prototype.hasGameId = function() {
30084
+ return jspb.Message.getField(this, 4) != null;
30085
+ };
30086
+
30087
+
30088
+
30089
+ /**
30090
+ * List of repeated fields within this message type.
30091
+ * @private {!Array<number>}
30092
+ * @const
30093
+ */
30094
+ proto.game.CashBackListGamesItem.repeatedFields_ = [2];
30095
+
30096
+
30097
+
30098
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30099
+ /**
30100
+ * Creates an object representation of this proto.
30101
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30102
+ * Optional fields that are not set will be set to undefined.
30103
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30104
+ * For the list of reserved names please see:
30105
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30106
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30107
+ * JSPB instance for transitional soy proto support:
30108
+ * http://goto/soy-param-migration
30109
+ * @return {!Object}
30110
+ */
30111
+ proto.game.CashBackListGamesItem.prototype.toObject = function(opt_includeInstance) {
30112
+ return proto.game.CashBackListGamesItem.toObject(opt_includeInstance, this);
30113
+ };
30114
+
30115
+
30116
+ /**
30117
+ * Static version of the {@see toObject} method.
30118
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30119
+ * the JSPB instance for transitional soy proto support:
30120
+ * http://goto/soy-param-migration
30121
+ * @param {!proto.game.CashBackListGamesItem} msg The msg instance to transform.
30122
+ * @return {!Object}
30123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30124
+ */
30125
+ proto.game.CashBackListGamesItem.toObject = function(includeInstance, msg) {
30126
+ var f, obj = {
30127
+ cashbackListId: jspb.Message.getFieldWithDefault(msg, 1, 0),
30128
+ gamesList: jspb.Message.toObjectList(msg.getGamesList(),
30129
+ proto.game.CashbackGamePreview.toObject, includeInstance)
30130
+ };
30131
+
30132
+ if (includeInstance) {
30133
+ obj.$jspbMessageInstance = msg;
30134
+ }
30135
+ return obj;
30136
+ };
30137
+ }
30138
+
30139
+
30140
+ /**
30141
+ * Deserializes binary data (in protobuf wire format).
30142
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30143
+ * @return {!proto.game.CashBackListGamesItem}
30144
+ */
30145
+ proto.game.CashBackListGamesItem.deserializeBinary = function(bytes) {
30146
+ var reader = new jspb.BinaryReader(bytes);
30147
+ var msg = new proto.game.CashBackListGamesItem;
30148
+ return proto.game.CashBackListGamesItem.deserializeBinaryFromReader(msg, reader);
30149
+ };
30150
+
30151
+
30152
+ /**
30153
+ * Deserializes binary data (in protobuf wire format) from the
30154
+ * given reader into the given message object.
30155
+ * @param {!proto.game.CashBackListGamesItem} msg The message object to deserialize into.
30156
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30157
+ * @return {!proto.game.CashBackListGamesItem}
30158
+ */
30159
+ proto.game.CashBackListGamesItem.deserializeBinaryFromReader = function(msg, reader) {
30160
+ while (reader.nextField()) {
30161
+ if (reader.isEndGroup()) {
30162
+ break;
30163
+ }
30164
+ var field = reader.getFieldNumber();
30165
+ switch (field) {
30166
+ case 1:
30167
+ var value = /** @type {number} */ (reader.readInt32());
30168
+ msg.setCashbackListId(value);
30169
+ break;
30170
+ case 2:
30171
+ var value = new proto.game.CashbackGamePreview;
30172
+ reader.readMessage(value,proto.game.CashbackGamePreview.deserializeBinaryFromReader);
30173
+ msg.addGames(value);
30174
+ break;
30175
+ default:
30176
+ reader.skipField();
30177
+ break;
30178
+ }
30179
+ }
30180
+ return msg;
30181
+ };
30182
+
30183
+
30184
+ /**
30185
+ * Serializes the message to binary data (in protobuf wire format).
30186
+ * @return {!Uint8Array}
30187
+ */
30188
+ proto.game.CashBackListGamesItem.prototype.serializeBinary = function() {
30189
+ var writer = new jspb.BinaryWriter();
30190
+ proto.game.CashBackListGamesItem.serializeBinaryToWriter(this, writer);
30191
+ return writer.getResultBuffer();
30192
+ };
30193
+
30194
+
30195
+ /**
30196
+ * Serializes the given message to binary data (in protobuf wire
30197
+ * format), writing to the given BinaryWriter.
30198
+ * @param {!proto.game.CashBackListGamesItem} message
30199
+ * @param {!jspb.BinaryWriter} writer
30200
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30201
+ */
30202
+ proto.game.CashBackListGamesItem.serializeBinaryToWriter = function(message, writer) {
30203
+ var f = undefined;
30204
+ f = message.getCashbackListId();
30205
+ if (f !== 0) {
30206
+ writer.writeInt32(
30207
+ 1,
30208
+ f
30209
+ );
30210
+ }
30211
+ f = message.getGamesList();
30212
+ if (f.length > 0) {
30213
+ writer.writeRepeatedMessage(
30214
+ 2,
30215
+ f,
30216
+ proto.game.CashbackGamePreview.serializeBinaryToWriter
30217
+ );
30218
+ }
30219
+ };
30220
+
30221
+
30222
+ /**
30223
+ * optional int32 cashback_list_id = 1;
30224
+ * @return {number}
30225
+ */
30226
+ proto.game.CashBackListGamesItem.prototype.getCashbackListId = function() {
30227
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
30228
+ };
30229
+
30230
+
30231
+ /**
30232
+ * @param {number} value
30233
+ * @return {!proto.game.CashBackListGamesItem} returns this
30234
+ */
30235
+ proto.game.CashBackListGamesItem.prototype.setCashbackListId = function(value) {
30236
+ return jspb.Message.setProto3IntField(this, 1, value);
30237
+ };
30238
+
30239
+
30240
+ /**
30241
+ * repeated CashbackGamePreview games = 2;
30242
+ * @return {!Array<!proto.game.CashbackGamePreview>}
30243
+ */
30244
+ proto.game.CashBackListGamesItem.prototype.getGamesList = function() {
30245
+ return /** @type{!Array<!proto.game.CashbackGamePreview>} */ (
30246
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CashbackGamePreview, 2));
30247
+ };
30248
+
30249
+
30250
+ /**
30251
+ * @param {!Array<!proto.game.CashbackGamePreview>} value
30252
+ * @return {!proto.game.CashBackListGamesItem} returns this
30253
+ */
30254
+ proto.game.CashBackListGamesItem.prototype.setGamesList = function(value) {
30255
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
30256
+ };
30257
+
30258
+
30259
+ /**
30260
+ * @param {!proto.game.CashbackGamePreview=} opt_value
30261
+ * @param {number=} opt_index
30262
+ * @return {!proto.game.CashbackGamePreview}
30263
+ */
30264
+ proto.game.CashBackListGamesItem.prototype.addGames = function(opt_value, opt_index) {
30265
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.game.CashbackGamePreview, opt_index);
30266
+ };
30267
+
30268
+
30269
+ /**
30270
+ * Clears the list making it empty but non-null.
30271
+ * @return {!proto.game.CashBackListGamesItem} returns this
30272
+ */
30273
+ proto.game.CashBackListGamesItem.prototype.clearGamesList = function() {
30274
+ return this.setGamesList([]);
30275
+ };
30276
+
30277
+
30278
+
30279
+ /**
30280
+ * List of repeated fields within this message type.
30281
+ * @private {!Array<number>}
30282
+ * @const
30283
+ */
30284
+ proto.game.CashBackListsGamesResponse.repeatedFields_ = [1];
30285
+
30286
+
30287
+
30288
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30289
+ /**
30290
+ * Creates an object representation of this proto.
30291
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30292
+ * Optional fields that are not set will be set to undefined.
30293
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30294
+ * For the list of reserved names please see:
30295
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30296
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30297
+ * JSPB instance for transitional soy proto support:
30298
+ * http://goto/soy-param-migration
30299
+ * @return {!Object}
30300
+ */
30301
+ proto.game.CashBackListsGamesResponse.prototype.toObject = function(opt_includeInstance) {
30302
+ return proto.game.CashBackListsGamesResponse.toObject(opt_includeInstance, this);
30303
+ };
30304
+
30305
+
30306
+ /**
30307
+ * Static version of the {@see toObject} method.
30308
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30309
+ * the JSPB instance for transitional soy proto support:
30310
+ * http://goto/soy-param-migration
30311
+ * @param {!proto.game.CashBackListsGamesResponse} msg The msg instance to transform.
30312
+ * @return {!Object}
30313
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30314
+ */
30315
+ proto.game.CashBackListsGamesResponse.toObject = function(includeInstance, msg) {
30316
+ var f, obj = {
30317
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
30318
+ proto.game.CashBackListGamesItem.toObject, includeInstance)
30319
+ };
30320
+
30321
+ if (includeInstance) {
30322
+ obj.$jspbMessageInstance = msg;
30323
+ }
30324
+ return obj;
30325
+ };
30326
+ }
30327
+
30328
+
30329
+ /**
30330
+ * Deserializes binary data (in protobuf wire format).
30331
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30332
+ * @return {!proto.game.CashBackListsGamesResponse}
30333
+ */
30334
+ proto.game.CashBackListsGamesResponse.deserializeBinary = function(bytes) {
30335
+ var reader = new jspb.BinaryReader(bytes);
30336
+ var msg = new proto.game.CashBackListsGamesResponse;
30337
+ return proto.game.CashBackListsGamesResponse.deserializeBinaryFromReader(msg, reader);
30338
+ };
30339
+
30340
+
30341
+ /**
30342
+ * Deserializes binary data (in protobuf wire format) from the
30343
+ * given reader into the given message object.
30344
+ * @param {!proto.game.CashBackListsGamesResponse} msg The message object to deserialize into.
30345
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30346
+ * @return {!proto.game.CashBackListsGamesResponse}
30347
+ */
30348
+ proto.game.CashBackListsGamesResponse.deserializeBinaryFromReader = function(msg, reader) {
30349
+ while (reader.nextField()) {
30350
+ if (reader.isEndGroup()) {
30351
+ break;
30352
+ }
30353
+ var field = reader.getFieldNumber();
30354
+ switch (field) {
30355
+ case 1:
30356
+ var value = new proto.game.CashBackListGamesItem;
30357
+ reader.readMessage(value,proto.game.CashBackListGamesItem.deserializeBinaryFromReader);
30358
+ msg.addItems(value);
30359
+ break;
30360
+ default:
30361
+ reader.skipField();
30362
+ break;
30363
+ }
30364
+ }
30365
+ return msg;
30366
+ };
30367
+
30368
+
30369
+ /**
30370
+ * Serializes the message to binary data (in protobuf wire format).
30371
+ * @return {!Uint8Array}
30372
+ */
30373
+ proto.game.CashBackListsGamesResponse.prototype.serializeBinary = function() {
30374
+ var writer = new jspb.BinaryWriter();
30375
+ proto.game.CashBackListsGamesResponse.serializeBinaryToWriter(this, writer);
30376
+ return writer.getResultBuffer();
30377
+ };
30378
+
30379
+
30380
+ /**
30381
+ * Serializes the given message to binary data (in protobuf wire
30382
+ * format), writing to the given BinaryWriter.
30383
+ * @param {!proto.game.CashBackListsGamesResponse} message
30384
+ * @param {!jspb.BinaryWriter} writer
30385
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30386
+ */
30387
+ proto.game.CashBackListsGamesResponse.serializeBinaryToWriter = function(message, writer) {
30388
+ var f = undefined;
30389
+ f = message.getItemsList();
30390
+ if (f.length > 0) {
30391
+ writer.writeRepeatedMessage(
30392
+ 1,
30393
+ f,
30394
+ proto.game.CashBackListGamesItem.serializeBinaryToWriter
30395
+ );
30396
+ }
30397
+ };
30398
+
30399
+
30400
+ /**
30401
+ * repeated CashBackListGamesItem items = 1;
30402
+ * @return {!Array<!proto.game.CashBackListGamesItem>}
30403
+ */
30404
+ proto.game.CashBackListsGamesResponse.prototype.getItemsList = function() {
30405
+ return /** @type{!Array<!proto.game.CashBackListGamesItem>} */ (
30406
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CashBackListGamesItem, 1));
30407
+ };
30408
+
30409
+
30410
+ /**
30411
+ * @param {!Array<!proto.game.CashBackListGamesItem>} value
30412
+ * @return {!proto.game.CashBackListsGamesResponse} returns this
30413
+ */
30414
+ proto.game.CashBackListsGamesResponse.prototype.setItemsList = function(value) {
30415
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
30416
+ };
30417
+
30418
+
30419
+ /**
30420
+ * @param {!proto.game.CashBackListGamesItem=} opt_value
30421
+ * @param {number=} opt_index
30422
+ * @return {!proto.game.CashBackListGamesItem}
30423
+ */
30424
+ proto.game.CashBackListsGamesResponse.prototype.addItems = function(opt_value, opt_index) {
30425
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CashBackListGamesItem, opt_index);
30426
+ };
30427
+
30428
+
30429
+ /**
30430
+ * Clears the list making it empty but non-null.
30431
+ * @return {!proto.game.CashBackListsGamesResponse} returns this
30432
+ */
30433
+ proto.game.CashBackListsGamesResponse.prototype.clearItemsList = function() {
30434
+ return this.setItemsList([]);
30435
+ };
30436
+
30437
+
30438
+
30439
+ /**
30440
+ * List of repeated fields within this message type.
30441
+ * @private {!Array<number>}
30442
+ * @const
30443
+ */
30444
+ proto.game.CashBackTypesGamesRequest.repeatedFields_ = [1];
30445
+
30446
+
30447
+
30448
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30449
+ /**
30450
+ * Creates an object representation of this proto.
30451
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30452
+ * Optional fields that are not set will be set to undefined.
30453
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30454
+ * For the list of reserved names please see:
30455
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30456
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30457
+ * JSPB instance for transitional soy proto support:
30458
+ * http://goto/soy-param-migration
30459
+ * @return {!Object}
30460
+ */
30461
+ proto.game.CashBackTypesGamesRequest.prototype.toObject = function(opt_includeInstance) {
30462
+ return proto.game.CashBackTypesGamesRequest.toObject(opt_includeInstance, this);
30463
+ };
30464
+
30465
+
30466
+ /**
30467
+ * Static version of the {@see toObject} method.
30468
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30469
+ * the JSPB instance for transitional soy proto support:
30470
+ * http://goto/soy-param-migration
30471
+ * @param {!proto.game.CashBackTypesGamesRequest} msg The msg instance to transform.
30472
+ * @return {!Object}
30473
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30474
+ */
30475
+ proto.game.CashBackTypesGamesRequest.toObject = function(includeInstance, msg) {
30476
+ var f, obj = {
30477
+ cashbackTypesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
30478
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
30479
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
30480
+ };
30481
+
30482
+ if (includeInstance) {
30483
+ obj.$jspbMessageInstance = msg;
30484
+ }
30485
+ return obj;
30486
+ };
30487
+ }
30488
+
30489
+
30490
+ /**
30491
+ * Deserializes binary data (in protobuf wire format).
30492
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30493
+ * @return {!proto.game.CashBackTypesGamesRequest}
30494
+ */
30495
+ proto.game.CashBackTypesGamesRequest.deserializeBinary = function(bytes) {
30496
+ var reader = new jspb.BinaryReader(bytes);
30497
+ var msg = new proto.game.CashBackTypesGamesRequest;
30498
+ return proto.game.CashBackTypesGamesRequest.deserializeBinaryFromReader(msg, reader);
30499
+ };
30500
+
30501
+
30502
+ /**
30503
+ * Deserializes binary data (in protobuf wire format) from the
30504
+ * given reader into the given message object.
30505
+ * @param {!proto.game.CashBackTypesGamesRequest} msg The message object to deserialize into.
30506
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30507
+ * @return {!proto.game.CashBackTypesGamesRequest}
30508
+ */
30509
+ proto.game.CashBackTypesGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
30510
+ while (reader.nextField()) {
30511
+ if (reader.isEndGroup()) {
30512
+ break;
30513
+ }
30514
+ var field = reader.getFieldNumber();
30515
+ switch (field) {
30516
+ case 1:
30517
+ var value = /** @type {string} */ (reader.readString());
30518
+ msg.addCashbackTypes(value);
30519
+ break;
30520
+ case 2:
30521
+ var value = /** @type {number} */ (reader.readInt32());
30522
+ msg.setLimit(value);
30523
+ break;
30524
+ case 3:
30525
+ var value = /** @type {number} */ (reader.readInt32());
30526
+ msg.setOffset(value);
30527
+ break;
30528
+ default:
30529
+ reader.skipField();
30530
+ break;
30531
+ }
30532
+ }
30533
+ return msg;
30534
+ };
30535
+
30536
+
30537
+ /**
30538
+ * Serializes the message to binary data (in protobuf wire format).
30539
+ * @return {!Uint8Array}
30540
+ */
30541
+ proto.game.CashBackTypesGamesRequest.prototype.serializeBinary = function() {
30542
+ var writer = new jspb.BinaryWriter();
30543
+ proto.game.CashBackTypesGamesRequest.serializeBinaryToWriter(this, writer);
30544
+ return writer.getResultBuffer();
30545
+ };
30546
+
30547
+
30548
+ /**
30549
+ * Serializes the given message to binary data (in protobuf wire
30550
+ * format), writing to the given BinaryWriter.
30551
+ * @param {!proto.game.CashBackTypesGamesRequest} message
30552
+ * @param {!jspb.BinaryWriter} writer
30553
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30554
+ */
30555
+ proto.game.CashBackTypesGamesRequest.serializeBinaryToWriter = function(message, writer) {
30556
+ var f = undefined;
30557
+ f = message.getCashbackTypesList();
30558
+ if (f.length > 0) {
30559
+ writer.writeRepeatedString(
30560
+ 1,
30561
+ f
30562
+ );
30563
+ }
30564
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
30565
+ if (f != null) {
30566
+ writer.writeInt32(
30567
+ 2,
30568
+ f
30569
+ );
30570
+ }
30571
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
30572
+ if (f != null) {
30573
+ writer.writeInt32(
30574
+ 3,
30575
+ f
30576
+ );
30577
+ }
30578
+ };
30579
+
30580
+
30581
+ /**
30582
+ * repeated string cashback_types = 1;
30583
+ * @return {!Array<string>}
30584
+ */
30585
+ proto.game.CashBackTypesGamesRequest.prototype.getCashbackTypesList = function() {
30586
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
30587
+ };
30588
+
30589
+
30590
+ /**
30591
+ * @param {!Array<string>} value
30592
+ * @return {!proto.game.CashBackTypesGamesRequest} returns this
30593
+ */
30594
+ proto.game.CashBackTypesGamesRequest.prototype.setCashbackTypesList = function(value) {
30595
+ return jspb.Message.setField(this, 1, value || []);
30596
+ };
30597
+
30598
+
30599
+ /**
30600
+ * @param {string} value
30601
+ * @param {number=} opt_index
30602
+ * @return {!proto.game.CashBackTypesGamesRequest} returns this
30603
+ */
30604
+ proto.game.CashBackTypesGamesRequest.prototype.addCashbackTypes = function(value, opt_index) {
30605
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
30606
+ };
30607
+
30608
+
30609
+ /**
30610
+ * Clears the list making it empty but non-null.
30611
+ * @return {!proto.game.CashBackTypesGamesRequest} returns this
30612
+ */
30613
+ proto.game.CashBackTypesGamesRequest.prototype.clearCashbackTypesList = function() {
30614
+ return this.setCashbackTypesList([]);
30615
+ };
30616
+
30617
+
30618
+ /**
30619
+ * optional int32 limit = 2;
30620
+ * @return {number}
30621
+ */
30622
+ proto.game.CashBackTypesGamesRequest.prototype.getLimit = function() {
30623
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
30624
+ };
30625
+
30626
+
30627
+ /**
30628
+ * @param {number} value
30629
+ * @return {!proto.game.CashBackTypesGamesRequest} returns this
30630
+ */
30631
+ proto.game.CashBackTypesGamesRequest.prototype.setLimit = function(value) {
30632
+ return jspb.Message.setField(this, 2, value);
30633
+ };
30634
+
30635
+
30636
+ /**
30637
+ * Clears the field making it undefined.
30638
+ * @return {!proto.game.CashBackTypesGamesRequest} returns this
30639
+ */
30640
+ proto.game.CashBackTypesGamesRequest.prototype.clearLimit = function() {
30641
+ return jspb.Message.setField(this, 2, undefined);
30642
+ };
30643
+
30644
+
30645
+ /**
30646
+ * Returns whether this field is set.
30647
+ * @return {boolean}
30648
+ */
30649
+ proto.game.CashBackTypesGamesRequest.prototype.hasLimit = function() {
30650
+ return jspb.Message.getField(this, 2) != null;
30651
+ };
30652
+
30653
+
30654
+ /**
30655
+ * optional int32 offset = 3;
30656
+ * @return {number}
30657
+ */
30658
+ proto.game.CashBackTypesGamesRequest.prototype.getOffset = function() {
30659
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
30660
+ };
30661
+
30662
+
30663
+ /**
30664
+ * @param {number} value
30665
+ * @return {!proto.game.CashBackTypesGamesRequest} returns this
30666
+ */
30667
+ proto.game.CashBackTypesGamesRequest.prototype.setOffset = function(value) {
30668
+ return jspb.Message.setField(this, 3, value);
30669
+ };
30670
+
30671
+
30672
+ /**
30673
+ * Clears the field making it undefined.
30674
+ * @return {!proto.game.CashBackTypesGamesRequest} returns this
30675
+ */
30676
+ proto.game.CashBackTypesGamesRequest.prototype.clearOffset = function() {
30677
+ return jspb.Message.setField(this, 3, undefined);
30678
+ };
30679
+
30680
+
30681
+ /**
30682
+ * Returns whether this field is set.
30683
+ * @return {boolean}
30684
+ */
30685
+ proto.game.CashBackTypesGamesRequest.prototype.hasOffset = function() {
30686
+ return jspb.Message.getField(this, 3) != null;
30687
+ };
30688
+
30689
+
30690
+
30691
+ /**
30692
+ * List of repeated fields within this message type.
30693
+ * @private {!Array<number>}
30694
+ * @const
30695
+ */
30696
+ proto.game.CashBackTypeGamesItem.repeatedFields_ = [2];
30697
+
30698
+
30699
+
30700
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30701
+ /**
30702
+ * Creates an object representation of this proto.
30703
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30704
+ * Optional fields that are not set will be set to undefined.
30705
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30706
+ * For the list of reserved names please see:
30707
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30708
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30709
+ * JSPB instance for transitional soy proto support:
30710
+ * http://goto/soy-param-migration
30711
+ * @return {!Object}
30712
+ */
30713
+ proto.game.CashBackTypeGamesItem.prototype.toObject = function(opt_includeInstance) {
30714
+ return proto.game.CashBackTypeGamesItem.toObject(opt_includeInstance, this);
30715
+ };
30716
+
30717
+
30718
+ /**
30719
+ * Static version of the {@see toObject} method.
30720
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30721
+ * the JSPB instance for transitional soy proto support:
30722
+ * http://goto/soy-param-migration
30723
+ * @param {!proto.game.CashBackTypeGamesItem} msg The msg instance to transform.
30724
+ * @return {!Object}
30725
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30726
+ */
30727
+ proto.game.CashBackTypeGamesItem.toObject = function(includeInstance, msg) {
30728
+ var f, obj = {
30729
+ cashbackType: jspb.Message.getFieldWithDefault(msg, 1, ""),
30730
+ gamesList: jspb.Message.toObjectList(msg.getGamesList(),
30731
+ proto.game.CashbackGamePreview.toObject, includeInstance)
30732
+ };
30733
+
30734
+ if (includeInstance) {
30735
+ obj.$jspbMessageInstance = msg;
30736
+ }
30737
+ return obj;
30738
+ };
30739
+ }
30740
+
30741
+
30742
+ /**
30743
+ * Deserializes binary data (in protobuf wire format).
30744
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30745
+ * @return {!proto.game.CashBackTypeGamesItem}
30746
+ */
30747
+ proto.game.CashBackTypeGamesItem.deserializeBinary = function(bytes) {
30748
+ var reader = new jspb.BinaryReader(bytes);
30749
+ var msg = new proto.game.CashBackTypeGamesItem;
30750
+ return proto.game.CashBackTypeGamesItem.deserializeBinaryFromReader(msg, reader);
30751
+ };
30752
+
30753
+
30754
+ /**
30755
+ * Deserializes binary data (in protobuf wire format) from the
30756
+ * given reader into the given message object.
30757
+ * @param {!proto.game.CashBackTypeGamesItem} msg The message object to deserialize into.
30758
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30759
+ * @return {!proto.game.CashBackTypeGamesItem}
30760
+ */
30761
+ proto.game.CashBackTypeGamesItem.deserializeBinaryFromReader = function(msg, reader) {
30762
+ while (reader.nextField()) {
30763
+ if (reader.isEndGroup()) {
30764
+ break;
30765
+ }
30766
+ var field = reader.getFieldNumber();
30767
+ switch (field) {
30768
+ case 1:
30769
+ var value = /** @type {string} */ (reader.readString());
30770
+ msg.setCashbackType(value);
30771
+ break;
30772
+ case 2:
30773
+ var value = new proto.game.CashbackGamePreview;
30774
+ reader.readMessage(value,proto.game.CashbackGamePreview.deserializeBinaryFromReader);
30775
+ msg.addGames(value);
30776
+ break;
30777
+ default:
30778
+ reader.skipField();
30779
+ break;
30780
+ }
30781
+ }
30782
+ return msg;
30783
+ };
30784
+
30785
+
30786
+ /**
30787
+ * Serializes the message to binary data (in protobuf wire format).
30788
+ * @return {!Uint8Array}
30789
+ */
30790
+ proto.game.CashBackTypeGamesItem.prototype.serializeBinary = function() {
30791
+ var writer = new jspb.BinaryWriter();
30792
+ proto.game.CashBackTypeGamesItem.serializeBinaryToWriter(this, writer);
30793
+ return writer.getResultBuffer();
30794
+ };
30795
+
30796
+
30797
+ /**
30798
+ * Serializes the given message to binary data (in protobuf wire
30799
+ * format), writing to the given BinaryWriter.
30800
+ * @param {!proto.game.CashBackTypeGamesItem} message
30801
+ * @param {!jspb.BinaryWriter} writer
30802
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30803
+ */
30804
+ proto.game.CashBackTypeGamesItem.serializeBinaryToWriter = function(message, writer) {
30805
+ var f = undefined;
30806
+ f = message.getCashbackType();
30807
+ if (f.length > 0) {
30808
+ writer.writeString(
30809
+ 1,
30810
+ f
30811
+ );
30812
+ }
30813
+ f = message.getGamesList();
30814
+ if (f.length > 0) {
30815
+ writer.writeRepeatedMessage(
30816
+ 2,
30817
+ f,
30818
+ proto.game.CashbackGamePreview.serializeBinaryToWriter
30819
+ );
30820
+ }
30821
+ };
30822
+
30823
+
30824
+ /**
30825
+ * optional string cashback_type = 1;
30826
+ * @return {string}
30827
+ */
30828
+ proto.game.CashBackTypeGamesItem.prototype.getCashbackType = function() {
30829
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
30830
+ };
30831
+
30832
+
30833
+ /**
30834
+ * @param {string} value
30835
+ * @return {!proto.game.CashBackTypeGamesItem} returns this
30836
+ */
30837
+ proto.game.CashBackTypeGamesItem.prototype.setCashbackType = function(value) {
30838
+ return jspb.Message.setProto3StringField(this, 1, value);
30839
+ };
30840
+
30841
+
30842
+ /**
30843
+ * repeated CashbackGamePreview games = 2;
30844
+ * @return {!Array<!proto.game.CashbackGamePreview>}
30845
+ */
30846
+ proto.game.CashBackTypeGamesItem.prototype.getGamesList = function() {
30847
+ return /** @type{!Array<!proto.game.CashbackGamePreview>} */ (
30848
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CashbackGamePreview, 2));
30849
+ };
30850
+
30851
+
30852
+ /**
30853
+ * @param {!Array<!proto.game.CashbackGamePreview>} value
30854
+ * @return {!proto.game.CashBackTypeGamesItem} returns this
30855
+ */
30856
+ proto.game.CashBackTypeGamesItem.prototype.setGamesList = function(value) {
30857
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
30858
+ };
30859
+
30860
+
30861
+ /**
30862
+ * @param {!proto.game.CashbackGamePreview=} opt_value
30863
+ * @param {number=} opt_index
30864
+ * @return {!proto.game.CashbackGamePreview}
30865
+ */
30866
+ proto.game.CashBackTypeGamesItem.prototype.addGames = function(opt_value, opt_index) {
30867
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.game.CashbackGamePreview, opt_index);
30868
+ };
30869
+
30870
+
30871
+ /**
30872
+ * Clears the list making it empty but non-null.
30873
+ * @return {!proto.game.CashBackTypeGamesItem} returns this
30874
+ */
30875
+ proto.game.CashBackTypeGamesItem.prototype.clearGamesList = function() {
30876
+ return this.setGamesList([]);
30877
+ };
30878
+
30879
+
30880
+
30881
+ /**
30882
+ * List of repeated fields within this message type.
30883
+ * @private {!Array<number>}
30884
+ * @const
30885
+ */
30886
+ proto.game.CashBackTypesGamesResponse.repeatedFields_ = [1];
30887
+
30888
+
30889
+
30890
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30891
+ /**
30892
+ * Creates an object representation of this proto.
30893
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30894
+ * Optional fields that are not set will be set to undefined.
30895
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30896
+ * For the list of reserved names please see:
30897
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30898
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30899
+ * JSPB instance for transitional soy proto support:
30900
+ * http://goto/soy-param-migration
30901
+ * @return {!Object}
30902
+ */
30903
+ proto.game.CashBackTypesGamesResponse.prototype.toObject = function(opt_includeInstance) {
30904
+ return proto.game.CashBackTypesGamesResponse.toObject(opt_includeInstance, this);
30905
+ };
30906
+
30907
+
30908
+ /**
30909
+ * Static version of the {@see toObject} method.
30910
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30911
+ * the JSPB instance for transitional soy proto support:
30912
+ * http://goto/soy-param-migration
30913
+ * @param {!proto.game.CashBackTypesGamesResponse} msg The msg instance to transform.
30914
+ * @return {!Object}
30915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30916
+ */
30917
+ proto.game.CashBackTypesGamesResponse.toObject = function(includeInstance, msg) {
30918
+ var f, obj = {
30919
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
30920
+ proto.game.CashBackTypeGamesItem.toObject, includeInstance)
30921
+ };
30922
+
30923
+ if (includeInstance) {
30924
+ obj.$jspbMessageInstance = msg;
30925
+ }
30926
+ return obj;
30927
+ };
30928
+ }
30929
+
30930
+
30931
+ /**
30932
+ * Deserializes binary data (in protobuf wire format).
30933
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30934
+ * @return {!proto.game.CashBackTypesGamesResponse}
30935
+ */
30936
+ proto.game.CashBackTypesGamesResponse.deserializeBinary = function(bytes) {
30937
+ var reader = new jspb.BinaryReader(bytes);
30938
+ var msg = new proto.game.CashBackTypesGamesResponse;
30939
+ return proto.game.CashBackTypesGamesResponse.deserializeBinaryFromReader(msg, reader);
30940
+ };
30941
+
30942
+
30943
+ /**
30944
+ * Deserializes binary data (in protobuf wire format) from the
30945
+ * given reader into the given message object.
30946
+ * @param {!proto.game.CashBackTypesGamesResponse} msg The message object to deserialize into.
30947
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30948
+ * @return {!proto.game.CashBackTypesGamesResponse}
30949
+ */
30950
+ proto.game.CashBackTypesGamesResponse.deserializeBinaryFromReader = function(msg, reader) {
30951
+ while (reader.nextField()) {
30952
+ if (reader.isEndGroup()) {
30953
+ break;
30954
+ }
30955
+ var field = reader.getFieldNumber();
30956
+ switch (field) {
30957
+ case 1:
30958
+ var value = new proto.game.CashBackTypeGamesItem;
30959
+ reader.readMessage(value,proto.game.CashBackTypeGamesItem.deserializeBinaryFromReader);
30960
+ msg.addItems(value);
30961
+ break;
30962
+ default:
30963
+ reader.skipField();
30964
+ break;
30965
+ }
30966
+ }
30967
+ return msg;
30968
+ };
30969
+
30970
+
30971
+ /**
30972
+ * Serializes the message to binary data (in protobuf wire format).
30973
+ * @return {!Uint8Array}
30974
+ */
30975
+ proto.game.CashBackTypesGamesResponse.prototype.serializeBinary = function() {
30976
+ var writer = new jspb.BinaryWriter();
30977
+ proto.game.CashBackTypesGamesResponse.serializeBinaryToWriter(this, writer);
30978
+ return writer.getResultBuffer();
30979
+ };
30980
+
30981
+
30982
+ /**
30983
+ * Serializes the given message to binary data (in protobuf wire
30984
+ * format), writing to the given BinaryWriter.
30985
+ * @param {!proto.game.CashBackTypesGamesResponse} message
30986
+ * @param {!jspb.BinaryWriter} writer
30987
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30988
+ */
30989
+ proto.game.CashBackTypesGamesResponse.serializeBinaryToWriter = function(message, writer) {
30990
+ var f = undefined;
30991
+ f = message.getItemsList();
30992
+ if (f.length > 0) {
30993
+ writer.writeRepeatedMessage(
30994
+ 1,
30995
+ f,
30996
+ proto.game.CashBackTypeGamesItem.serializeBinaryToWriter
30997
+ );
30998
+ }
30999
+ };
31000
+
31001
+
31002
+ /**
31003
+ * repeated CashBackTypeGamesItem items = 1;
31004
+ * @return {!Array<!proto.game.CashBackTypeGamesItem>}
31005
+ */
31006
+ proto.game.CashBackTypesGamesResponse.prototype.getItemsList = function() {
31007
+ return /** @type{!Array<!proto.game.CashBackTypeGamesItem>} */ (
31008
+ jspb.Message.getRepeatedWrapperField(this, proto.game.CashBackTypeGamesItem, 1));
31009
+ };
31010
+
31011
+
31012
+ /**
31013
+ * @param {!Array<!proto.game.CashBackTypeGamesItem>} value
31014
+ * @return {!proto.game.CashBackTypesGamesResponse} returns this
31015
+ */
31016
+ proto.game.CashBackTypesGamesResponse.prototype.setItemsList = function(value) {
31017
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
31018
+ };
31019
+
31020
+
31021
+ /**
31022
+ * @param {!proto.game.CashBackTypeGamesItem=} opt_value
31023
+ * @param {number=} opt_index
31024
+ * @return {!proto.game.CashBackTypeGamesItem}
31025
+ */
31026
+ proto.game.CashBackTypesGamesResponse.prototype.addItems = function(opt_value, opt_index) {
31027
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CashBackTypeGamesItem, opt_index);
31028
+ };
31029
+
31030
+
31031
+ /**
31032
+ * Clears the list making it empty but non-null.
31033
+ * @return {!proto.game.CashBackTypesGamesResponse} returns this
31034
+ */
31035
+ proto.game.CashBackTypesGamesResponse.prototype.clearItemsList = function() {
31036
+ return this.setItemsList([]);
31037
+ };
31038
+
31039
+
31040
+
29443
31041
 
29444
31042
 
29445
31043
  if (jspb.Message.GENERATE_TO_OBJECT) {