protobuf-platform 1.2.193 → 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.proto +13 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +668 -0
- package/package.json +1 -1
package/game/game.proto
CHANGED
|
@@ -102,6 +102,7 @@ service Game {
|
|
|
102
102
|
rpc removeGamesFromCashBackList(CashBackListGamesRequest) returns (GameStatusResponse);
|
|
103
103
|
rpc fetchGamesFromCashBackList(PaginationRequest) returns (GameItemsResponse);
|
|
104
104
|
rpc fetchGamesFromCashBackLists(CashBackListsGamesRequest) returns (CashBackListsGamesResponse);
|
|
105
|
+
rpc fetchGamesFromCashBackTypes(CashBackTypesGamesRequest) returns (CashBackTypesGamesResponse);
|
|
105
106
|
rpc notProcessedGamesInCashBackList(PaginationRequest) returns (GameItemsResponse);
|
|
106
107
|
rpc updateCashBackListInBunch(ItemsBunchRequest) returns (GameStatusResponse);
|
|
107
108
|
//Dashboard
|
|
@@ -720,6 +721,18 @@ message CashBackListGamesItem {
|
|
|
720
721
|
message CashBackListsGamesResponse {
|
|
721
722
|
repeated CashBackListGamesItem items = 1;
|
|
722
723
|
}
|
|
724
|
+
message CashBackTypesGamesRequest {
|
|
725
|
+
repeated string cashback_types = 1;
|
|
726
|
+
optional int32 limit = 2;
|
|
727
|
+
optional int32 offset = 3;
|
|
728
|
+
}
|
|
729
|
+
message CashBackTypeGamesItem {
|
|
730
|
+
string cashback_type = 1;
|
|
731
|
+
repeated CashbackGamePreview games = 2;
|
|
732
|
+
}
|
|
733
|
+
message CashBackTypesGamesResponse {
|
|
734
|
+
repeated CashBackTypeGamesItem items = 1;
|
|
735
|
+
}
|
|
723
736
|
//Dashboard
|
|
724
737
|
message DashboardRequest {
|
|
725
738
|
string start_date = 1;
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -70,6 +70,28 @@ function deserialize_game_CashBackListsGamesResponse(buffer_arg) {
|
|
|
70
70
|
return game_pb.CashBackListsGamesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
function serialize_game_CashBackTypesGamesRequest(arg) {
|
|
74
|
+
if (!(arg instanceof game_pb.CashBackTypesGamesRequest)) {
|
|
75
|
+
throw new Error('Expected argument of type game.CashBackTypesGamesRequest');
|
|
76
|
+
}
|
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserialize_game_CashBackTypesGamesRequest(buffer_arg) {
|
|
81
|
+
return game_pb.CashBackTypesGamesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function serialize_game_CashBackTypesGamesResponse(arg) {
|
|
85
|
+
if (!(arg instanceof game_pb.CashBackTypesGamesResponse)) {
|
|
86
|
+
throw new Error('Expected argument of type game.CashBackTypesGamesResponse');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_game_CashBackTypesGamesResponse(buffer_arg) {
|
|
92
|
+
return game_pb.CashBackTypesGamesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
function serialize_game_CategoryItemsResponse(arg) {
|
|
74
96
|
if (!(arg instanceof game_pb.CategoryItemsResponse)) {
|
|
75
97
|
throw new Error('Expected argument of type game.CategoryItemsResponse');
|
|
@@ -1965,6 +1987,17 @@ readSingleCashBackList: {
|
|
|
1965
1987
|
responseSerialize: serialize_game_CashBackListsGamesResponse,
|
|
1966
1988
|
responseDeserialize: deserialize_game_CashBackListsGamesResponse,
|
|
1967
1989
|
},
|
|
1990
|
+
fetchGamesFromCashBackTypes: {
|
|
1991
|
+
path: '/game.Game/fetchGamesFromCashBackTypes',
|
|
1992
|
+
requestStream: false,
|
|
1993
|
+
responseStream: false,
|
|
1994
|
+
requestType: game_pb.CashBackTypesGamesRequest,
|
|
1995
|
+
responseType: game_pb.CashBackTypesGamesResponse,
|
|
1996
|
+
requestSerialize: serialize_game_CashBackTypesGamesRequest,
|
|
1997
|
+
requestDeserialize: deserialize_game_CashBackTypesGamesRequest,
|
|
1998
|
+
responseSerialize: serialize_game_CashBackTypesGamesResponse,
|
|
1999
|
+
responseDeserialize: deserialize_game_CashBackTypesGamesResponse,
|
|
2000
|
+
},
|
|
1968
2001
|
notProcessedGamesInCashBackList: {
|
|
1969
2002
|
path: '/game.Game/notProcessedGamesInCashBackList',
|
|
1970
2003
|
requestStream: false,
|
package/game/game_pb.js
CHANGED
|
@@ -30,6 +30,9 @@ goog.exportSymbol('proto.game.CashBackListResponse', null, global);
|
|
|
30
30
|
goog.exportSymbol('proto.game.CashBackListsGamesRequest', null, global);
|
|
31
31
|
goog.exportSymbol('proto.game.CashBackListsGamesResponse', null, global);
|
|
32
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);
|
|
33
36
|
goog.exportSymbol('proto.game.CashbackGamePreview', null, global);
|
|
34
37
|
goog.exportSymbol('proto.game.CategoryItem', null, global);
|
|
35
38
|
goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
|
|
@@ -2346,6 +2349,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2346
2349
|
*/
|
|
2347
2350
|
proto.game.CashBackListsGamesResponse.displayName = 'proto.game.CashBackListsGamesResponse';
|
|
2348
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
|
+
}
|
|
2349
2415
|
/**
|
|
2350
2416
|
* Generated by JsPbCodeGenerator.
|
|
2351
2417
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -30370,6 +30436,608 @@ proto.game.CashBackListsGamesResponse.prototype.clearItemsList = function() {
|
|
|
30370
30436
|
|
|
30371
30437
|
|
|
30372
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
|
+
|
|
30373
31041
|
|
|
30374
31042
|
|
|
30375
31043
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|