protobuf-platform 1.2.155 → 1.2.158
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/cms/cms.proto +1 -0
- package/cms/cms_pb.js +49 -1
- package/game/game.proto +12 -0
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +583 -1
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
package/cms/cms_pb.js
CHANGED
|
@@ -15324,7 +15324,8 @@ proto.cms.GetPromoRequest.toObject = function(includeInstance, msg) {
|
|
|
15324
15324
|
var f, obj = {
|
|
15325
15325
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
15326
15326
|
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
15327
|
-
slug: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
15327
|
+
slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
15328
|
+
locale: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
15328
15329
|
};
|
|
15329
15330
|
|
|
15330
15331
|
if (includeInstance) {
|
|
@@ -15373,6 +15374,10 @@ proto.cms.GetPromoRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
15373
15374
|
var value = /** @type {string} */ (reader.readString());
|
|
15374
15375
|
msg.setSlug(value);
|
|
15375
15376
|
break;
|
|
15377
|
+
case 4:
|
|
15378
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15379
|
+
msg.setLocale(value);
|
|
15380
|
+
break;
|
|
15376
15381
|
default:
|
|
15377
15382
|
reader.skipField();
|
|
15378
15383
|
break;
|
|
@@ -15423,6 +15428,13 @@ proto.cms.GetPromoRequest.serializeBinaryToWriter = function(message, writer) {
|
|
|
15423
15428
|
f
|
|
15424
15429
|
);
|
|
15425
15430
|
}
|
|
15431
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
15432
|
+
if (f != null) {
|
|
15433
|
+
writer.writeString(
|
|
15434
|
+
4,
|
|
15435
|
+
f
|
|
15436
|
+
);
|
|
15437
|
+
}
|
|
15426
15438
|
};
|
|
15427
15439
|
|
|
15428
15440
|
|
|
@@ -15534,6 +15546,42 @@ proto.cms.GetPromoRequest.prototype.hasSlug = function() {
|
|
|
15534
15546
|
};
|
|
15535
15547
|
|
|
15536
15548
|
|
|
15549
|
+
/**
|
|
15550
|
+
* optional string locale = 4;
|
|
15551
|
+
* @return {string}
|
|
15552
|
+
*/
|
|
15553
|
+
proto.cms.GetPromoRequest.prototype.getLocale = function() {
|
|
15554
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15555
|
+
};
|
|
15556
|
+
|
|
15557
|
+
|
|
15558
|
+
/**
|
|
15559
|
+
* @param {string} value
|
|
15560
|
+
* @return {!proto.cms.GetPromoRequest} returns this
|
|
15561
|
+
*/
|
|
15562
|
+
proto.cms.GetPromoRequest.prototype.setLocale = function(value) {
|
|
15563
|
+
return jspb.Message.setField(this, 4, value);
|
|
15564
|
+
};
|
|
15565
|
+
|
|
15566
|
+
|
|
15567
|
+
/**
|
|
15568
|
+
* Clears the field making it undefined.
|
|
15569
|
+
* @return {!proto.cms.GetPromoRequest} returns this
|
|
15570
|
+
*/
|
|
15571
|
+
proto.cms.GetPromoRequest.prototype.clearLocale = function() {
|
|
15572
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
15573
|
+
};
|
|
15574
|
+
|
|
15575
|
+
|
|
15576
|
+
/**
|
|
15577
|
+
* Returns whether this field is set.
|
|
15578
|
+
* @return {boolean}
|
|
15579
|
+
*/
|
|
15580
|
+
proto.cms.GetPromoRequest.prototype.hasLocale = function() {
|
|
15581
|
+
return jspb.Message.getField(this, 4) != null;
|
|
15582
|
+
};
|
|
15583
|
+
|
|
15584
|
+
|
|
15537
15585
|
|
|
15538
15586
|
|
|
15539
15587
|
|
package/game/game.proto
CHANGED
|
@@ -63,6 +63,7 @@ service Game {
|
|
|
63
63
|
rpc removeGamesFromTournament(TournamentGamesRequest) returns (GameStatusResponse);
|
|
64
64
|
rpc fetchGamesFromTournament(PaginationRequest) returns (GameItemsResponse);
|
|
65
65
|
rpc syncGamesImages(SyncImagesRequest) returns (GameStatusResponse);
|
|
66
|
+
rpc searchGames(PaginationRequest) returns (SearchGamesResponse);
|
|
66
67
|
//Vendor
|
|
67
68
|
rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
|
|
68
69
|
rpc getIntegratorSettings(IntegratorSettingsRequest) returns (IntegratorSettingsResponse);
|
|
@@ -143,6 +144,7 @@ message GameSearchRequest {
|
|
|
143
144
|
optional int32 has_free_spins = 13;
|
|
144
145
|
optional int32 is_hidden = 14;
|
|
145
146
|
repeated int32 game_ids = 15;
|
|
147
|
+
optional string query = 16;
|
|
146
148
|
}
|
|
147
149
|
message WagerSearchRequest {
|
|
148
150
|
optional int32 wager_id = 1;
|
|
@@ -482,6 +484,16 @@ message GameItemsResponse {
|
|
|
482
484
|
message GameStatusResponse {
|
|
483
485
|
string status = 1;
|
|
484
486
|
}
|
|
487
|
+
message SearchGamesResponse {
|
|
488
|
+
repeated GameItem items = 1;
|
|
489
|
+
optional int32 total_pages = 2;
|
|
490
|
+
optional int32 total_items = 3;
|
|
491
|
+
repeated ProviderGamesCount providerGames = 4;
|
|
492
|
+
}
|
|
493
|
+
message ProviderGamesCount {
|
|
494
|
+
ProviderItem provider = 1;
|
|
495
|
+
int32 games_count = 2;
|
|
496
|
+
}
|
|
485
497
|
message SearchGamesIntoCollectionsRequest {
|
|
486
498
|
repeated string collection_slugs = 1;
|
|
487
499
|
optional string geo = 2;
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -785,6 +785,17 @@ function deserialize_game_SearchGamesIntoTagsRequest(buffer_arg) {
|
|
|
785
785
|
return game_pb.SearchGamesIntoTagsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
+
function serialize_game_SearchGamesResponse(arg) {
|
|
789
|
+
if (!(arg instanceof game_pb.SearchGamesResponse)) {
|
|
790
|
+
throw new Error('Expected argument of type game.SearchGamesResponse');
|
|
791
|
+
}
|
|
792
|
+
return Buffer.from(arg.serializeBinary());
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
function deserialize_game_SearchGamesResponse(buffer_arg) {
|
|
796
|
+
return game_pb.SearchGamesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
797
|
+
}
|
|
798
|
+
|
|
788
799
|
function serialize_game_SegmentedUserRequest(arg) {
|
|
789
800
|
if (!(arg instanceof game_pb.SegmentedUserRequest)) {
|
|
790
801
|
throw new Error('Expected argument of type game.SegmentedUserRequest');
|
|
@@ -1553,6 +1564,17 @@ parseGames: {
|
|
|
1553
1564
|
responseSerialize: serialize_game_GameStatusResponse,
|
|
1554
1565
|
responseDeserialize: deserialize_game_GameStatusResponse,
|
|
1555
1566
|
},
|
|
1567
|
+
searchGames: {
|
|
1568
|
+
path: '/game.Game/searchGames',
|
|
1569
|
+
requestStream: false,
|
|
1570
|
+
responseStream: false,
|
|
1571
|
+
requestType: game_pb.PaginationRequest,
|
|
1572
|
+
responseType: game_pb.SearchGamesResponse,
|
|
1573
|
+
requestSerialize: serialize_game_PaginationRequest,
|
|
1574
|
+
requestDeserialize: deserialize_game_PaginationRequest,
|
|
1575
|
+
responseSerialize: serialize_game_SearchGamesResponse,
|
|
1576
|
+
responseDeserialize: deserialize_game_SearchGamesResponse,
|
|
1577
|
+
},
|
|
1556
1578
|
// Vendor
|
|
1557
1579
|
processedVendorActionCallback: {
|
|
1558
1580
|
path: '/game.Game/processedVendorActionCallback',
|
package/game/game_pb.js
CHANGED
|
@@ -94,6 +94,7 @@ goog.exportSymbol('proto.game.ParseGamesRequest', null, global);
|
|
|
94
94
|
goog.exportSymbol('proto.game.ParseGamesResponse', null, global);
|
|
95
95
|
goog.exportSymbol('proto.game.PingRequest', null, global);
|
|
96
96
|
goog.exportSymbol('proto.game.PongResponse', null, global);
|
|
97
|
+
goog.exportSymbol('proto.game.ProviderGamesCount', null, global);
|
|
97
98
|
goog.exportSymbol('proto.game.ProviderItem', null, global);
|
|
98
99
|
goog.exportSymbol('proto.game.ProviderItemRequest', null, global);
|
|
99
100
|
goog.exportSymbol('proto.game.ProviderItemsResponse', null, global);
|
|
@@ -113,6 +114,7 @@ goog.exportSymbol('proto.game.SearchGamesIntoCategoriesRequest', null, global);
|
|
|
113
114
|
goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
|
|
114
115
|
goog.exportSymbol('proto.game.SearchGamesIntoProvidersRequest', null, global);
|
|
115
116
|
goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
|
|
117
|
+
goog.exportSymbol('proto.game.SearchGamesResponse', null, global);
|
|
116
118
|
goog.exportSymbol('proto.game.SegmentedUserRequest', null, global);
|
|
117
119
|
goog.exportSymbol('proto.game.SegmentedUserResponse', null, global);
|
|
118
120
|
goog.exportSymbol('proto.game.SyncImagesRequest', null, global);
|
|
@@ -1459,6 +1461,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1459
1461
|
*/
|
|
1460
1462
|
proto.game.GameStatusResponse.displayName = 'proto.game.GameStatusResponse';
|
|
1461
1463
|
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Generated by JsPbCodeGenerator.
|
|
1466
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1467
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1468
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1469
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1470
|
+
* valid.
|
|
1471
|
+
* @extends {jspb.Message}
|
|
1472
|
+
* @constructor
|
|
1473
|
+
*/
|
|
1474
|
+
proto.game.SearchGamesResponse = function(opt_data) {
|
|
1475
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SearchGamesResponse.repeatedFields_, null);
|
|
1476
|
+
};
|
|
1477
|
+
goog.inherits(proto.game.SearchGamesResponse, jspb.Message);
|
|
1478
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1479
|
+
/**
|
|
1480
|
+
* @public
|
|
1481
|
+
* @override
|
|
1482
|
+
*/
|
|
1483
|
+
proto.game.SearchGamesResponse.displayName = 'proto.game.SearchGamesResponse';
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Generated by JsPbCodeGenerator.
|
|
1487
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1488
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1489
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1490
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1491
|
+
* valid.
|
|
1492
|
+
* @extends {jspb.Message}
|
|
1493
|
+
* @constructor
|
|
1494
|
+
*/
|
|
1495
|
+
proto.game.ProviderGamesCount = function(opt_data) {
|
|
1496
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1497
|
+
};
|
|
1498
|
+
goog.inherits(proto.game.ProviderGamesCount, jspb.Message);
|
|
1499
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1500
|
+
/**
|
|
1501
|
+
* @public
|
|
1502
|
+
* @override
|
|
1503
|
+
*/
|
|
1504
|
+
proto.game.ProviderGamesCount.displayName = 'proto.game.ProviderGamesCount';
|
|
1505
|
+
}
|
|
1462
1506
|
/**
|
|
1463
1507
|
* Generated by JsPbCodeGenerator.
|
|
1464
1508
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3423,7 +3467,8 @@ proto.game.GameSearchRequest.toObject = function(includeInstance, msg) {
|
|
|
3423
3467
|
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
3424
3468
|
hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
3425
3469
|
isHidden: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
3426
|
-
gameIdsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f
|
|
3470
|
+
gameIdsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f,
|
|
3471
|
+
query: jspb.Message.getFieldWithDefault(msg, 16, "")
|
|
3427
3472
|
};
|
|
3428
3473
|
|
|
3429
3474
|
if (includeInstance) {
|
|
@@ -3530,6 +3575,10 @@ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
|
3530
3575
|
msg.addGameIds(values[i]);
|
|
3531
3576
|
}
|
|
3532
3577
|
break;
|
|
3578
|
+
case 16:
|
|
3579
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3580
|
+
msg.setQuery(value);
|
|
3581
|
+
break;
|
|
3533
3582
|
default:
|
|
3534
3583
|
reader.skipField();
|
|
3535
3584
|
break;
|
|
@@ -3664,6 +3713,13 @@ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer)
|
|
|
3664
3713
|
f
|
|
3665
3714
|
);
|
|
3666
3715
|
}
|
|
3716
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 16));
|
|
3717
|
+
if (f != null) {
|
|
3718
|
+
writer.writeString(
|
|
3719
|
+
16,
|
|
3720
|
+
f
|
|
3721
|
+
);
|
|
3722
|
+
}
|
|
3667
3723
|
};
|
|
3668
3724
|
|
|
3669
3725
|
|
|
@@ -4213,6 +4269,42 @@ proto.game.GameSearchRequest.prototype.clearGameIdsList = function() {
|
|
|
4213
4269
|
};
|
|
4214
4270
|
|
|
4215
4271
|
|
|
4272
|
+
/**
|
|
4273
|
+
* optional string query = 16;
|
|
4274
|
+
* @return {string}
|
|
4275
|
+
*/
|
|
4276
|
+
proto.game.GameSearchRequest.prototype.getQuery = function() {
|
|
4277
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
|
|
4278
|
+
};
|
|
4279
|
+
|
|
4280
|
+
|
|
4281
|
+
/**
|
|
4282
|
+
* @param {string} value
|
|
4283
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
|
4284
|
+
*/
|
|
4285
|
+
proto.game.GameSearchRequest.prototype.setQuery = function(value) {
|
|
4286
|
+
return jspb.Message.setField(this, 16, value);
|
|
4287
|
+
};
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
/**
|
|
4291
|
+
* Clears the field making it undefined.
|
|
4292
|
+
* @return {!proto.game.GameSearchRequest} returns this
|
|
4293
|
+
*/
|
|
4294
|
+
proto.game.GameSearchRequest.prototype.clearQuery = function() {
|
|
4295
|
+
return jspb.Message.setField(this, 16, undefined);
|
|
4296
|
+
};
|
|
4297
|
+
|
|
4298
|
+
|
|
4299
|
+
/**
|
|
4300
|
+
* Returns whether this field is set.
|
|
4301
|
+
* @return {boolean}
|
|
4302
|
+
*/
|
|
4303
|
+
proto.game.GameSearchRequest.prototype.hasQuery = function() {
|
|
4304
|
+
return jspb.Message.getField(this, 16) != null;
|
|
4305
|
+
};
|
|
4306
|
+
|
|
4307
|
+
|
|
4216
4308
|
|
|
4217
4309
|
/**
|
|
4218
4310
|
* List of repeated fields within this message type.
|
|
@@ -19843,6 +19935,496 @@ proto.game.GameStatusResponse.prototype.setStatus = function(value) {
|
|
|
19843
19935
|
|
|
19844
19936
|
|
|
19845
19937
|
|
|
19938
|
+
/**
|
|
19939
|
+
* List of repeated fields within this message type.
|
|
19940
|
+
* @private {!Array<number>}
|
|
19941
|
+
* @const
|
|
19942
|
+
*/
|
|
19943
|
+
proto.game.SearchGamesResponse.repeatedFields_ = [1,4];
|
|
19944
|
+
|
|
19945
|
+
|
|
19946
|
+
|
|
19947
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
19948
|
+
/**
|
|
19949
|
+
* Creates an object representation of this proto.
|
|
19950
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
19951
|
+
* Optional fields that are not set will be set to undefined.
|
|
19952
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
19953
|
+
* For the list of reserved names please see:
|
|
19954
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
19955
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
19956
|
+
* JSPB instance for transitional soy proto support:
|
|
19957
|
+
* http://goto/soy-param-migration
|
|
19958
|
+
* @return {!Object}
|
|
19959
|
+
*/
|
|
19960
|
+
proto.game.SearchGamesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
19961
|
+
return proto.game.SearchGamesResponse.toObject(opt_includeInstance, this);
|
|
19962
|
+
};
|
|
19963
|
+
|
|
19964
|
+
|
|
19965
|
+
/**
|
|
19966
|
+
* Static version of the {@see toObject} method.
|
|
19967
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
19968
|
+
* the JSPB instance for transitional soy proto support:
|
|
19969
|
+
* http://goto/soy-param-migration
|
|
19970
|
+
* @param {!proto.game.SearchGamesResponse} msg The msg instance to transform.
|
|
19971
|
+
* @return {!Object}
|
|
19972
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
19973
|
+
*/
|
|
19974
|
+
proto.game.SearchGamesResponse.toObject = function(includeInstance, msg) {
|
|
19975
|
+
var f, obj = {
|
|
19976
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
19977
|
+
proto.game.GameItem.toObject, includeInstance),
|
|
19978
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
19979
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
19980
|
+
providergamesList: jspb.Message.toObjectList(msg.getProvidergamesList(),
|
|
19981
|
+
proto.game.ProviderGamesCount.toObject, includeInstance)
|
|
19982
|
+
};
|
|
19983
|
+
|
|
19984
|
+
if (includeInstance) {
|
|
19985
|
+
obj.$jspbMessageInstance = msg;
|
|
19986
|
+
}
|
|
19987
|
+
return obj;
|
|
19988
|
+
};
|
|
19989
|
+
}
|
|
19990
|
+
|
|
19991
|
+
|
|
19992
|
+
/**
|
|
19993
|
+
* Deserializes binary data (in protobuf wire format).
|
|
19994
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
19995
|
+
* @return {!proto.game.SearchGamesResponse}
|
|
19996
|
+
*/
|
|
19997
|
+
proto.game.SearchGamesResponse.deserializeBinary = function(bytes) {
|
|
19998
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
19999
|
+
var msg = new proto.game.SearchGamesResponse;
|
|
20000
|
+
return proto.game.SearchGamesResponse.deserializeBinaryFromReader(msg, reader);
|
|
20001
|
+
};
|
|
20002
|
+
|
|
20003
|
+
|
|
20004
|
+
/**
|
|
20005
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
20006
|
+
* given reader into the given message object.
|
|
20007
|
+
* @param {!proto.game.SearchGamesResponse} msg The message object to deserialize into.
|
|
20008
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
20009
|
+
* @return {!proto.game.SearchGamesResponse}
|
|
20010
|
+
*/
|
|
20011
|
+
proto.game.SearchGamesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
20012
|
+
while (reader.nextField()) {
|
|
20013
|
+
if (reader.isEndGroup()) {
|
|
20014
|
+
break;
|
|
20015
|
+
}
|
|
20016
|
+
var field = reader.getFieldNumber();
|
|
20017
|
+
switch (field) {
|
|
20018
|
+
case 1:
|
|
20019
|
+
var value = new proto.game.GameItem;
|
|
20020
|
+
reader.readMessage(value,proto.game.GameItem.deserializeBinaryFromReader);
|
|
20021
|
+
msg.addItems(value);
|
|
20022
|
+
break;
|
|
20023
|
+
case 2:
|
|
20024
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
20025
|
+
msg.setTotalPages(value);
|
|
20026
|
+
break;
|
|
20027
|
+
case 3:
|
|
20028
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
20029
|
+
msg.setTotalItems(value);
|
|
20030
|
+
break;
|
|
20031
|
+
case 4:
|
|
20032
|
+
var value = new proto.game.ProviderGamesCount;
|
|
20033
|
+
reader.readMessage(value,proto.game.ProviderGamesCount.deserializeBinaryFromReader);
|
|
20034
|
+
msg.addProvidergames(value);
|
|
20035
|
+
break;
|
|
20036
|
+
default:
|
|
20037
|
+
reader.skipField();
|
|
20038
|
+
break;
|
|
20039
|
+
}
|
|
20040
|
+
}
|
|
20041
|
+
return msg;
|
|
20042
|
+
};
|
|
20043
|
+
|
|
20044
|
+
|
|
20045
|
+
/**
|
|
20046
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
20047
|
+
* @return {!Uint8Array}
|
|
20048
|
+
*/
|
|
20049
|
+
proto.game.SearchGamesResponse.prototype.serializeBinary = function() {
|
|
20050
|
+
var writer = new jspb.BinaryWriter();
|
|
20051
|
+
proto.game.SearchGamesResponse.serializeBinaryToWriter(this, writer);
|
|
20052
|
+
return writer.getResultBuffer();
|
|
20053
|
+
};
|
|
20054
|
+
|
|
20055
|
+
|
|
20056
|
+
/**
|
|
20057
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
20058
|
+
* format), writing to the given BinaryWriter.
|
|
20059
|
+
* @param {!proto.game.SearchGamesResponse} message
|
|
20060
|
+
* @param {!jspb.BinaryWriter} writer
|
|
20061
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20062
|
+
*/
|
|
20063
|
+
proto.game.SearchGamesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
20064
|
+
var f = undefined;
|
|
20065
|
+
f = message.getItemsList();
|
|
20066
|
+
if (f.length > 0) {
|
|
20067
|
+
writer.writeRepeatedMessage(
|
|
20068
|
+
1,
|
|
20069
|
+
f,
|
|
20070
|
+
proto.game.GameItem.serializeBinaryToWriter
|
|
20071
|
+
);
|
|
20072
|
+
}
|
|
20073
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
20074
|
+
if (f != null) {
|
|
20075
|
+
writer.writeInt32(
|
|
20076
|
+
2,
|
|
20077
|
+
f
|
|
20078
|
+
);
|
|
20079
|
+
}
|
|
20080
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
20081
|
+
if (f != null) {
|
|
20082
|
+
writer.writeInt32(
|
|
20083
|
+
3,
|
|
20084
|
+
f
|
|
20085
|
+
);
|
|
20086
|
+
}
|
|
20087
|
+
f = message.getProvidergamesList();
|
|
20088
|
+
if (f.length > 0) {
|
|
20089
|
+
writer.writeRepeatedMessage(
|
|
20090
|
+
4,
|
|
20091
|
+
f,
|
|
20092
|
+
proto.game.ProviderGamesCount.serializeBinaryToWriter
|
|
20093
|
+
);
|
|
20094
|
+
}
|
|
20095
|
+
};
|
|
20096
|
+
|
|
20097
|
+
|
|
20098
|
+
/**
|
|
20099
|
+
* repeated GameItem items = 1;
|
|
20100
|
+
* @return {!Array<!proto.game.GameItem>}
|
|
20101
|
+
*/
|
|
20102
|
+
proto.game.SearchGamesResponse.prototype.getItemsList = function() {
|
|
20103
|
+
return /** @type{!Array<!proto.game.GameItem>} */ (
|
|
20104
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.GameItem, 1));
|
|
20105
|
+
};
|
|
20106
|
+
|
|
20107
|
+
|
|
20108
|
+
/**
|
|
20109
|
+
* @param {!Array<!proto.game.GameItem>} value
|
|
20110
|
+
* @return {!proto.game.SearchGamesResponse} returns this
|
|
20111
|
+
*/
|
|
20112
|
+
proto.game.SearchGamesResponse.prototype.setItemsList = function(value) {
|
|
20113
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
20114
|
+
};
|
|
20115
|
+
|
|
20116
|
+
|
|
20117
|
+
/**
|
|
20118
|
+
* @param {!proto.game.GameItem=} opt_value
|
|
20119
|
+
* @param {number=} opt_index
|
|
20120
|
+
* @return {!proto.game.GameItem}
|
|
20121
|
+
*/
|
|
20122
|
+
proto.game.SearchGamesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
20123
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.GameItem, opt_index);
|
|
20124
|
+
};
|
|
20125
|
+
|
|
20126
|
+
|
|
20127
|
+
/**
|
|
20128
|
+
* Clears the list making it empty but non-null.
|
|
20129
|
+
* @return {!proto.game.SearchGamesResponse} returns this
|
|
20130
|
+
*/
|
|
20131
|
+
proto.game.SearchGamesResponse.prototype.clearItemsList = function() {
|
|
20132
|
+
return this.setItemsList([]);
|
|
20133
|
+
};
|
|
20134
|
+
|
|
20135
|
+
|
|
20136
|
+
/**
|
|
20137
|
+
* optional int32 total_pages = 2;
|
|
20138
|
+
* @return {number}
|
|
20139
|
+
*/
|
|
20140
|
+
proto.game.SearchGamesResponse.prototype.getTotalPages = function() {
|
|
20141
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
20142
|
+
};
|
|
20143
|
+
|
|
20144
|
+
|
|
20145
|
+
/**
|
|
20146
|
+
* @param {number} value
|
|
20147
|
+
* @return {!proto.game.SearchGamesResponse} returns this
|
|
20148
|
+
*/
|
|
20149
|
+
proto.game.SearchGamesResponse.prototype.setTotalPages = function(value) {
|
|
20150
|
+
return jspb.Message.setField(this, 2, value);
|
|
20151
|
+
};
|
|
20152
|
+
|
|
20153
|
+
|
|
20154
|
+
/**
|
|
20155
|
+
* Clears the field making it undefined.
|
|
20156
|
+
* @return {!proto.game.SearchGamesResponse} returns this
|
|
20157
|
+
*/
|
|
20158
|
+
proto.game.SearchGamesResponse.prototype.clearTotalPages = function() {
|
|
20159
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
20160
|
+
};
|
|
20161
|
+
|
|
20162
|
+
|
|
20163
|
+
/**
|
|
20164
|
+
* Returns whether this field is set.
|
|
20165
|
+
* @return {boolean}
|
|
20166
|
+
*/
|
|
20167
|
+
proto.game.SearchGamesResponse.prototype.hasTotalPages = function() {
|
|
20168
|
+
return jspb.Message.getField(this, 2) != null;
|
|
20169
|
+
};
|
|
20170
|
+
|
|
20171
|
+
|
|
20172
|
+
/**
|
|
20173
|
+
* optional int32 total_items = 3;
|
|
20174
|
+
* @return {number}
|
|
20175
|
+
*/
|
|
20176
|
+
proto.game.SearchGamesResponse.prototype.getTotalItems = function() {
|
|
20177
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
20178
|
+
};
|
|
20179
|
+
|
|
20180
|
+
|
|
20181
|
+
/**
|
|
20182
|
+
* @param {number} value
|
|
20183
|
+
* @return {!proto.game.SearchGamesResponse} returns this
|
|
20184
|
+
*/
|
|
20185
|
+
proto.game.SearchGamesResponse.prototype.setTotalItems = function(value) {
|
|
20186
|
+
return jspb.Message.setField(this, 3, value);
|
|
20187
|
+
};
|
|
20188
|
+
|
|
20189
|
+
|
|
20190
|
+
/**
|
|
20191
|
+
* Clears the field making it undefined.
|
|
20192
|
+
* @return {!proto.game.SearchGamesResponse} returns this
|
|
20193
|
+
*/
|
|
20194
|
+
proto.game.SearchGamesResponse.prototype.clearTotalItems = function() {
|
|
20195
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
20196
|
+
};
|
|
20197
|
+
|
|
20198
|
+
|
|
20199
|
+
/**
|
|
20200
|
+
* Returns whether this field is set.
|
|
20201
|
+
* @return {boolean}
|
|
20202
|
+
*/
|
|
20203
|
+
proto.game.SearchGamesResponse.prototype.hasTotalItems = function() {
|
|
20204
|
+
return jspb.Message.getField(this, 3) != null;
|
|
20205
|
+
};
|
|
20206
|
+
|
|
20207
|
+
|
|
20208
|
+
/**
|
|
20209
|
+
* repeated ProviderGamesCount providerGames = 4;
|
|
20210
|
+
* @return {!Array<!proto.game.ProviderGamesCount>}
|
|
20211
|
+
*/
|
|
20212
|
+
proto.game.SearchGamesResponse.prototype.getProvidergamesList = function() {
|
|
20213
|
+
return /** @type{!Array<!proto.game.ProviderGamesCount>} */ (
|
|
20214
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.ProviderGamesCount, 4));
|
|
20215
|
+
};
|
|
20216
|
+
|
|
20217
|
+
|
|
20218
|
+
/**
|
|
20219
|
+
* @param {!Array<!proto.game.ProviderGamesCount>} value
|
|
20220
|
+
* @return {!proto.game.SearchGamesResponse} returns this
|
|
20221
|
+
*/
|
|
20222
|
+
proto.game.SearchGamesResponse.prototype.setProvidergamesList = function(value) {
|
|
20223
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
20224
|
+
};
|
|
20225
|
+
|
|
20226
|
+
|
|
20227
|
+
/**
|
|
20228
|
+
* @param {!proto.game.ProviderGamesCount=} opt_value
|
|
20229
|
+
* @param {number=} opt_index
|
|
20230
|
+
* @return {!proto.game.ProviderGamesCount}
|
|
20231
|
+
*/
|
|
20232
|
+
proto.game.SearchGamesResponse.prototype.addProvidergames = function(opt_value, opt_index) {
|
|
20233
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.game.ProviderGamesCount, opt_index);
|
|
20234
|
+
};
|
|
20235
|
+
|
|
20236
|
+
|
|
20237
|
+
/**
|
|
20238
|
+
* Clears the list making it empty but non-null.
|
|
20239
|
+
* @return {!proto.game.SearchGamesResponse} returns this
|
|
20240
|
+
*/
|
|
20241
|
+
proto.game.SearchGamesResponse.prototype.clearProvidergamesList = function() {
|
|
20242
|
+
return this.setProvidergamesList([]);
|
|
20243
|
+
};
|
|
20244
|
+
|
|
20245
|
+
|
|
20246
|
+
|
|
20247
|
+
|
|
20248
|
+
|
|
20249
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
20250
|
+
/**
|
|
20251
|
+
* Creates an object representation of this proto.
|
|
20252
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
20253
|
+
* Optional fields that are not set will be set to undefined.
|
|
20254
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
20255
|
+
* For the list of reserved names please see:
|
|
20256
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
20257
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
20258
|
+
* JSPB instance for transitional soy proto support:
|
|
20259
|
+
* http://goto/soy-param-migration
|
|
20260
|
+
* @return {!Object}
|
|
20261
|
+
*/
|
|
20262
|
+
proto.game.ProviderGamesCount.prototype.toObject = function(opt_includeInstance) {
|
|
20263
|
+
return proto.game.ProviderGamesCount.toObject(opt_includeInstance, this);
|
|
20264
|
+
};
|
|
20265
|
+
|
|
20266
|
+
|
|
20267
|
+
/**
|
|
20268
|
+
* Static version of the {@see toObject} method.
|
|
20269
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
20270
|
+
* the JSPB instance for transitional soy proto support:
|
|
20271
|
+
* http://goto/soy-param-migration
|
|
20272
|
+
* @param {!proto.game.ProviderGamesCount} msg The msg instance to transform.
|
|
20273
|
+
* @return {!Object}
|
|
20274
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20275
|
+
*/
|
|
20276
|
+
proto.game.ProviderGamesCount.toObject = function(includeInstance, msg) {
|
|
20277
|
+
var f, obj = {
|
|
20278
|
+
provider: (f = msg.getProvider()) && proto.game.ProviderItem.toObject(includeInstance, f),
|
|
20279
|
+
gamesCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
20280
|
+
};
|
|
20281
|
+
|
|
20282
|
+
if (includeInstance) {
|
|
20283
|
+
obj.$jspbMessageInstance = msg;
|
|
20284
|
+
}
|
|
20285
|
+
return obj;
|
|
20286
|
+
};
|
|
20287
|
+
}
|
|
20288
|
+
|
|
20289
|
+
|
|
20290
|
+
/**
|
|
20291
|
+
* Deserializes binary data (in protobuf wire format).
|
|
20292
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
20293
|
+
* @return {!proto.game.ProviderGamesCount}
|
|
20294
|
+
*/
|
|
20295
|
+
proto.game.ProviderGamesCount.deserializeBinary = function(bytes) {
|
|
20296
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
20297
|
+
var msg = new proto.game.ProviderGamesCount;
|
|
20298
|
+
return proto.game.ProviderGamesCount.deserializeBinaryFromReader(msg, reader);
|
|
20299
|
+
};
|
|
20300
|
+
|
|
20301
|
+
|
|
20302
|
+
/**
|
|
20303
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
20304
|
+
* given reader into the given message object.
|
|
20305
|
+
* @param {!proto.game.ProviderGamesCount} msg The message object to deserialize into.
|
|
20306
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
20307
|
+
* @return {!proto.game.ProviderGamesCount}
|
|
20308
|
+
*/
|
|
20309
|
+
proto.game.ProviderGamesCount.deserializeBinaryFromReader = function(msg, reader) {
|
|
20310
|
+
while (reader.nextField()) {
|
|
20311
|
+
if (reader.isEndGroup()) {
|
|
20312
|
+
break;
|
|
20313
|
+
}
|
|
20314
|
+
var field = reader.getFieldNumber();
|
|
20315
|
+
switch (field) {
|
|
20316
|
+
case 1:
|
|
20317
|
+
var value = new proto.game.ProviderItem;
|
|
20318
|
+
reader.readMessage(value,proto.game.ProviderItem.deserializeBinaryFromReader);
|
|
20319
|
+
msg.setProvider(value);
|
|
20320
|
+
break;
|
|
20321
|
+
case 2:
|
|
20322
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
20323
|
+
msg.setGamesCount(value);
|
|
20324
|
+
break;
|
|
20325
|
+
default:
|
|
20326
|
+
reader.skipField();
|
|
20327
|
+
break;
|
|
20328
|
+
}
|
|
20329
|
+
}
|
|
20330
|
+
return msg;
|
|
20331
|
+
};
|
|
20332
|
+
|
|
20333
|
+
|
|
20334
|
+
/**
|
|
20335
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
20336
|
+
* @return {!Uint8Array}
|
|
20337
|
+
*/
|
|
20338
|
+
proto.game.ProviderGamesCount.prototype.serializeBinary = function() {
|
|
20339
|
+
var writer = new jspb.BinaryWriter();
|
|
20340
|
+
proto.game.ProviderGamesCount.serializeBinaryToWriter(this, writer);
|
|
20341
|
+
return writer.getResultBuffer();
|
|
20342
|
+
};
|
|
20343
|
+
|
|
20344
|
+
|
|
20345
|
+
/**
|
|
20346
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
20347
|
+
* format), writing to the given BinaryWriter.
|
|
20348
|
+
* @param {!proto.game.ProviderGamesCount} message
|
|
20349
|
+
* @param {!jspb.BinaryWriter} writer
|
|
20350
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20351
|
+
*/
|
|
20352
|
+
proto.game.ProviderGamesCount.serializeBinaryToWriter = function(message, writer) {
|
|
20353
|
+
var f = undefined;
|
|
20354
|
+
f = message.getProvider();
|
|
20355
|
+
if (f != null) {
|
|
20356
|
+
writer.writeMessage(
|
|
20357
|
+
1,
|
|
20358
|
+
f,
|
|
20359
|
+
proto.game.ProviderItem.serializeBinaryToWriter
|
|
20360
|
+
);
|
|
20361
|
+
}
|
|
20362
|
+
f = message.getGamesCount();
|
|
20363
|
+
if (f !== 0) {
|
|
20364
|
+
writer.writeInt32(
|
|
20365
|
+
2,
|
|
20366
|
+
f
|
|
20367
|
+
);
|
|
20368
|
+
}
|
|
20369
|
+
};
|
|
20370
|
+
|
|
20371
|
+
|
|
20372
|
+
/**
|
|
20373
|
+
* optional ProviderItem provider = 1;
|
|
20374
|
+
* @return {?proto.game.ProviderItem}
|
|
20375
|
+
*/
|
|
20376
|
+
proto.game.ProviderGamesCount.prototype.getProvider = function() {
|
|
20377
|
+
return /** @type{?proto.game.ProviderItem} */ (
|
|
20378
|
+
jspb.Message.getWrapperField(this, proto.game.ProviderItem, 1));
|
|
20379
|
+
};
|
|
20380
|
+
|
|
20381
|
+
|
|
20382
|
+
/**
|
|
20383
|
+
* @param {?proto.game.ProviderItem|undefined} value
|
|
20384
|
+
* @return {!proto.game.ProviderGamesCount} returns this
|
|
20385
|
+
*/
|
|
20386
|
+
proto.game.ProviderGamesCount.prototype.setProvider = function(value) {
|
|
20387
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
20388
|
+
};
|
|
20389
|
+
|
|
20390
|
+
|
|
20391
|
+
/**
|
|
20392
|
+
* Clears the message field making it undefined.
|
|
20393
|
+
* @return {!proto.game.ProviderGamesCount} returns this
|
|
20394
|
+
*/
|
|
20395
|
+
proto.game.ProviderGamesCount.prototype.clearProvider = function() {
|
|
20396
|
+
return this.setProvider(undefined);
|
|
20397
|
+
};
|
|
20398
|
+
|
|
20399
|
+
|
|
20400
|
+
/**
|
|
20401
|
+
* Returns whether this field is set.
|
|
20402
|
+
* @return {boolean}
|
|
20403
|
+
*/
|
|
20404
|
+
proto.game.ProviderGamesCount.prototype.hasProvider = function() {
|
|
20405
|
+
return jspb.Message.getField(this, 1) != null;
|
|
20406
|
+
};
|
|
20407
|
+
|
|
20408
|
+
|
|
20409
|
+
/**
|
|
20410
|
+
* optional int32 games_count = 2;
|
|
20411
|
+
* @return {number}
|
|
20412
|
+
*/
|
|
20413
|
+
proto.game.ProviderGamesCount.prototype.getGamesCount = function() {
|
|
20414
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
20415
|
+
};
|
|
20416
|
+
|
|
20417
|
+
|
|
20418
|
+
/**
|
|
20419
|
+
* @param {number} value
|
|
20420
|
+
* @return {!proto.game.ProviderGamesCount} returns this
|
|
20421
|
+
*/
|
|
20422
|
+
proto.game.ProviderGamesCount.prototype.setGamesCount = function(value) {
|
|
20423
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
20424
|
+
};
|
|
20425
|
+
|
|
20426
|
+
|
|
20427
|
+
|
|
19846
20428
|
/**
|
|
19847
20429
|
* List of repeated fields within this message type.
|
|
19848
20430
|
* @private {!Array<number>}
|