protobuf-platform 1.0.272 → 1.0.274
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 +11 -2
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +492 -22
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -43,6 +43,7 @@ service Game {
|
|
43
43
|
rpc readListGames(PaginationRequest) returns (GameItemsResponse);
|
44
44
|
rpc searchGamesByCollections(SearchGamesIntoCollectionsRequest) returns (GameItemsResponse);
|
45
45
|
rpc searchGamesByTags(SearchGamesIntoTagsRequest) returns (GameItemsResponse);
|
46
|
+
rpc searchGamesByProviders(SearchGamesIntoProvidersRequest) returns (GameItemsResponse);
|
46
47
|
rpc initGameSession(InitGameSessionRequest) returns (InitGameSessionResponse);
|
47
48
|
rpc initDemoGameSession(InitDemoGameSessionRequest) returns (InitGameSessionResponse);
|
48
49
|
rpc getCollectionsByGeo(GameRelationsRequest) returns (GameRelationsResponse);
|
@@ -394,7 +395,7 @@ message GameStatusResponse {
|
|
394
395
|
string status = 1;
|
395
396
|
}
|
396
397
|
message SearchGamesIntoCollectionsRequest {
|
397
|
-
string collection_slugs = 1;
|
398
|
+
repeated string collection_slugs = 1;
|
398
399
|
optional string geo = 2;
|
399
400
|
optional int32 limit = 3;
|
400
401
|
optional int32 offset = 4;
|
@@ -402,7 +403,15 @@ message SearchGamesIntoCollectionsRequest {
|
|
402
403
|
optional bool admin_side = 6;
|
403
404
|
}
|
404
405
|
message SearchGamesIntoTagsRequest {
|
405
|
-
string tag_slugs = 1;
|
406
|
+
repeated string tag_slugs = 1;
|
407
|
+
optional string geo = 2;
|
408
|
+
optional int32 limit = 3;
|
409
|
+
optional int32 offset = 4;
|
410
|
+
optional bool is_mobile = 5;
|
411
|
+
optional bool admin_side = 6;
|
412
|
+
}
|
413
|
+
message SearchGamesIntoProvidersRequest {
|
414
|
+
repeated string provider_slugs = 1;
|
406
415
|
optional string geo = 2;
|
407
416
|
optional int32 limit = 3;
|
408
417
|
optional int32 offset = 4;
|
package/game/game_grpc_pb.js
CHANGED
@@ -631,6 +631,17 @@ function deserialize_game_SearchGamesIntoCollectionsRequest(buffer_arg) {
|
|
631
631
|
return game_pb.SearchGamesIntoCollectionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
632
632
|
}
|
633
633
|
|
634
|
+
function serialize_game_SearchGamesIntoProvidersRequest(arg) {
|
635
|
+
if (!(arg instanceof game_pb.SearchGamesIntoProvidersRequest)) {
|
636
|
+
throw new Error('Expected argument of type game.SearchGamesIntoProvidersRequest');
|
637
|
+
}
|
638
|
+
return Buffer.from(arg.serializeBinary());
|
639
|
+
}
|
640
|
+
|
641
|
+
function deserialize_game_SearchGamesIntoProvidersRequest(buffer_arg) {
|
642
|
+
return game_pb.SearchGamesIntoProvidersRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
643
|
+
}
|
644
|
+
|
634
645
|
function serialize_game_SearchGamesIntoTagsRequest(arg) {
|
635
646
|
if (!(arg instanceof game_pb.SearchGamesIntoTagsRequest)) {
|
636
647
|
throw new Error('Expected argument of type game.SearchGamesIntoTagsRequest');
|
@@ -1166,6 +1177,17 @@ parseGames: {
|
|
1166
1177
|
responseSerialize: serialize_game_GameItemsResponse,
|
1167
1178
|
responseDeserialize: deserialize_game_GameItemsResponse,
|
1168
1179
|
},
|
1180
|
+
searchGamesByProviders: {
|
1181
|
+
path: '/game.Game/searchGamesByProviders',
|
1182
|
+
requestStream: false,
|
1183
|
+
responseStream: false,
|
1184
|
+
requestType: game_pb.SearchGamesIntoProvidersRequest,
|
1185
|
+
responseType: game_pb.GameItemsResponse,
|
1186
|
+
requestSerialize: serialize_game_SearchGamesIntoProvidersRequest,
|
1187
|
+
requestDeserialize: deserialize_game_SearchGamesIntoProvidersRequest,
|
1188
|
+
responseSerialize: serialize_game_GameItemsResponse,
|
1189
|
+
responseDeserialize: deserialize_game_GameItemsResponse,
|
1190
|
+
},
|
1169
1191
|
initGameSession: {
|
1170
1192
|
path: '/game.Game/initGameSession',
|
1171
1193
|
requestStream: false,
|
package/game/game_pb.js
CHANGED
@@ -94,6 +94,7 @@ goog.exportSymbol('proto.game.SEOInstanceResponse', null, global);
|
|
94
94
|
goog.exportSymbol('proto.game.ScopeRequest', null, global);
|
95
95
|
goog.exportSymbol('proto.game.ScopeResponse', null, global);
|
96
96
|
goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
|
97
|
+
goog.exportSymbol('proto.game.SearchGamesIntoProvidersRequest', null, global);
|
97
98
|
goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
|
98
99
|
goog.exportSymbol('proto.game.TagGamesRequest', null, global);
|
99
100
|
goog.exportSymbol('proto.game.TagItem', null, global);
|
@@ -1278,7 +1279,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
1278
1279
|
* @constructor
|
1279
1280
|
*/
|
1280
1281
|
proto.game.SearchGamesIntoCollectionsRequest = function(opt_data) {
|
1281
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
1282
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SearchGamesIntoCollectionsRequest.repeatedFields_, null);
|
1282
1283
|
};
|
1283
1284
|
goog.inherits(proto.game.SearchGamesIntoCollectionsRequest, jspb.Message);
|
1284
1285
|
if (goog.DEBUG && !COMPILED) {
|
@@ -1299,7 +1300,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
1299
1300
|
* @constructor
|
1300
1301
|
*/
|
1301
1302
|
proto.game.SearchGamesIntoTagsRequest = function(opt_data) {
|
1302
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
1303
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SearchGamesIntoTagsRequest.repeatedFields_, null);
|
1303
1304
|
};
|
1304
1305
|
goog.inherits(proto.game.SearchGamesIntoTagsRequest, jspb.Message);
|
1305
1306
|
if (goog.DEBUG && !COMPILED) {
|
@@ -1309,6 +1310,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
1309
1310
|
*/
|
1310
1311
|
proto.game.SearchGamesIntoTagsRequest.displayName = 'proto.game.SearchGamesIntoTagsRequest';
|
1311
1312
|
}
|
1313
|
+
/**
|
1314
|
+
* Generated by JsPbCodeGenerator.
|
1315
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1316
|
+
* server response, or constructed directly in Javascript. The array is used
|
1317
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1318
|
+
* If no data is provided, the constructed object will be empty, but still
|
1319
|
+
* valid.
|
1320
|
+
* @extends {jspb.Message}
|
1321
|
+
* @constructor
|
1322
|
+
*/
|
1323
|
+
proto.game.SearchGamesIntoProvidersRequest = function(opt_data) {
|
1324
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SearchGamesIntoProvidersRequest.repeatedFields_, null);
|
1325
|
+
};
|
1326
|
+
goog.inherits(proto.game.SearchGamesIntoProvidersRequest, jspb.Message);
|
1327
|
+
if (goog.DEBUG && !COMPILED) {
|
1328
|
+
/**
|
1329
|
+
* @public
|
1330
|
+
* @override
|
1331
|
+
*/
|
1332
|
+
proto.game.SearchGamesIntoProvidersRequest.displayName = 'proto.game.SearchGamesIntoProvidersRequest';
|
1333
|
+
}
|
1312
1334
|
/**
|
1313
1335
|
* Generated by JsPbCodeGenerator.
|
1314
1336
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -16367,6 +16389,13 @@ proto.game.GameStatusResponse.prototype.setStatus = function(value) {
|
|
16367
16389
|
|
16368
16390
|
|
16369
16391
|
|
16392
|
+
/**
|
16393
|
+
* List of repeated fields within this message type.
|
16394
|
+
* @private {!Array<number>}
|
16395
|
+
* @const
|
16396
|
+
*/
|
16397
|
+
proto.game.SearchGamesIntoCollectionsRequest.repeatedFields_ = [1];
|
16398
|
+
|
16370
16399
|
|
16371
16400
|
|
16372
16401
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -16398,7 +16427,7 @@ proto.game.SearchGamesIntoCollectionsRequest.prototype.toObject = function(opt_i
|
|
16398
16427
|
*/
|
16399
16428
|
proto.game.SearchGamesIntoCollectionsRequest.toObject = function(includeInstance, msg) {
|
16400
16429
|
var f, obj = {
|
16401
|
-
|
16430
|
+
collectionSlugsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
16402
16431
|
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
16403
16432
|
limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
16404
16433
|
offset: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
@@ -16442,7 +16471,7 @@ proto.game.SearchGamesIntoCollectionsRequest.deserializeBinaryFromReader = funct
|
|
16442
16471
|
switch (field) {
|
16443
16472
|
case 1:
|
16444
16473
|
var value = /** @type {string} */ (reader.readString());
|
16445
|
-
msg.
|
16474
|
+
msg.addCollectionSlugs(value);
|
16446
16475
|
break;
|
16447
16476
|
case 2:
|
16448
16477
|
var value = /** @type {string} */ (reader.readString());
|
@@ -16493,9 +16522,9 @@ proto.game.SearchGamesIntoCollectionsRequest.prototype.serializeBinary = functio
|
|
16493
16522
|
*/
|
16494
16523
|
proto.game.SearchGamesIntoCollectionsRequest.serializeBinaryToWriter = function(message, writer) {
|
16495
16524
|
var f = undefined;
|
16496
|
-
f = message.
|
16525
|
+
f = message.getCollectionSlugsList();
|
16497
16526
|
if (f.length > 0) {
|
16498
|
-
writer.
|
16527
|
+
writer.writeRepeatedString(
|
16499
16528
|
1,
|
16500
16529
|
f
|
16501
16530
|
);
|
@@ -16539,20 +16568,39 @@ proto.game.SearchGamesIntoCollectionsRequest.serializeBinaryToWriter = function(
|
|
16539
16568
|
|
16540
16569
|
|
16541
16570
|
/**
|
16542
|
-
*
|
16543
|
-
* @return {string}
|
16571
|
+
* repeated string collection_slugs = 1;
|
16572
|
+
* @return {!Array<string>}
|
16544
16573
|
*/
|
16545
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.
|
16546
|
-
return /** @type {string} */ (jspb.Message.
|
16574
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.getCollectionSlugsList = function() {
|
16575
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
16576
|
+
};
|
16577
|
+
|
16578
|
+
|
16579
|
+
/**
|
16580
|
+
* @param {!Array<string>} value
|
16581
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
16582
|
+
*/
|
16583
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.setCollectionSlugsList = function(value) {
|
16584
|
+
return jspb.Message.setField(this, 1, value || []);
|
16547
16585
|
};
|
16548
16586
|
|
16549
16587
|
|
16550
16588
|
/**
|
16551
16589
|
* @param {string} value
|
16590
|
+
* @param {number=} opt_index
|
16552
16591
|
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
16553
16592
|
*/
|
16554
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.
|
16555
|
-
return jspb.Message.
|
16593
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.addCollectionSlugs = function(value, opt_index) {
|
16594
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
16595
|
+
};
|
16596
|
+
|
16597
|
+
|
16598
|
+
/**
|
16599
|
+
* Clears the list making it empty but non-null.
|
16600
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
16601
|
+
*/
|
16602
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.clearCollectionSlugsList = function() {
|
16603
|
+
return this.setCollectionSlugsList([]);
|
16556
16604
|
};
|
16557
16605
|
|
16558
16606
|
|
@@ -16737,6 +16785,13 @@ proto.game.SearchGamesIntoCollectionsRequest.prototype.hasAdminSide = function()
|
|
16737
16785
|
|
16738
16786
|
|
16739
16787
|
|
16788
|
+
/**
|
16789
|
+
* List of repeated fields within this message type.
|
16790
|
+
* @private {!Array<number>}
|
16791
|
+
* @const
|
16792
|
+
*/
|
16793
|
+
proto.game.SearchGamesIntoTagsRequest.repeatedFields_ = [1];
|
16794
|
+
|
16740
16795
|
|
16741
16796
|
|
16742
16797
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -16768,7 +16823,7 @@ proto.game.SearchGamesIntoTagsRequest.prototype.toObject = function(opt_includeI
|
|
16768
16823
|
*/
|
16769
16824
|
proto.game.SearchGamesIntoTagsRequest.toObject = function(includeInstance, msg) {
|
16770
16825
|
var f, obj = {
|
16771
|
-
|
16826
|
+
tagSlugsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
16772
16827
|
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
16773
16828
|
limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
16774
16829
|
offset: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
@@ -16812,7 +16867,7 @@ proto.game.SearchGamesIntoTagsRequest.deserializeBinaryFromReader = function(msg
|
|
16812
16867
|
switch (field) {
|
16813
16868
|
case 1:
|
16814
16869
|
var value = /** @type {string} */ (reader.readString());
|
16815
|
-
msg.
|
16870
|
+
msg.addTagSlugs(value);
|
16816
16871
|
break;
|
16817
16872
|
case 2:
|
16818
16873
|
var value = /** @type {string} */ (reader.readString());
|
@@ -16863,9 +16918,9 @@ proto.game.SearchGamesIntoTagsRequest.prototype.serializeBinary = function() {
|
|
16863
16918
|
*/
|
16864
16919
|
proto.game.SearchGamesIntoTagsRequest.serializeBinaryToWriter = function(message, writer) {
|
16865
16920
|
var f = undefined;
|
16866
|
-
f = message.
|
16921
|
+
f = message.getTagSlugsList();
|
16867
16922
|
if (f.length > 0) {
|
16868
|
-
writer.
|
16923
|
+
writer.writeRepeatedString(
|
16869
16924
|
1,
|
16870
16925
|
f
|
16871
16926
|
);
|
@@ -16909,20 +16964,39 @@ proto.game.SearchGamesIntoTagsRequest.serializeBinaryToWriter = function(message
|
|
16909
16964
|
|
16910
16965
|
|
16911
16966
|
/**
|
16912
|
-
*
|
16913
|
-
* @return {string}
|
16967
|
+
* repeated string tag_slugs = 1;
|
16968
|
+
* @return {!Array<string>}
|
16914
16969
|
*/
|
16915
|
-
proto.game.SearchGamesIntoTagsRequest.prototype.
|
16916
|
-
return /** @type {string} */ (jspb.Message.
|
16970
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.getTagSlugsList = function() {
|
16971
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
16972
|
+
};
|
16973
|
+
|
16974
|
+
|
16975
|
+
/**
|
16976
|
+
* @param {!Array<string>} value
|
16977
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
16978
|
+
*/
|
16979
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.setTagSlugsList = function(value) {
|
16980
|
+
return jspb.Message.setField(this, 1, value || []);
|
16917
16981
|
};
|
16918
16982
|
|
16919
16983
|
|
16920
16984
|
/**
|
16921
16985
|
* @param {string} value
|
16986
|
+
* @param {number=} opt_index
|
16922
16987
|
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
16923
16988
|
*/
|
16924
|
-
proto.game.SearchGamesIntoTagsRequest.prototype.
|
16925
|
-
return jspb.Message.
|
16989
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.addTagSlugs = function(value, opt_index) {
|
16990
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
16991
|
+
};
|
16992
|
+
|
16993
|
+
|
16994
|
+
/**
|
16995
|
+
* Clears the list making it empty but non-null.
|
16996
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
16997
|
+
*/
|
16998
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.clearTagSlugsList = function() {
|
16999
|
+
return this.setTagSlugsList([]);
|
16926
17000
|
};
|
16927
17001
|
|
16928
17002
|
|
@@ -17107,6 +17181,402 @@ proto.game.SearchGamesIntoTagsRequest.prototype.hasAdminSide = function() {
|
|
17107
17181
|
|
17108
17182
|
|
17109
17183
|
|
17184
|
+
/**
|
17185
|
+
* List of repeated fields within this message type.
|
17186
|
+
* @private {!Array<number>}
|
17187
|
+
* @const
|
17188
|
+
*/
|
17189
|
+
proto.game.SearchGamesIntoProvidersRequest.repeatedFields_ = [1];
|
17190
|
+
|
17191
|
+
|
17192
|
+
|
17193
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
17194
|
+
/**
|
17195
|
+
* Creates an object representation of this proto.
|
17196
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
17197
|
+
* Optional fields that are not set will be set to undefined.
|
17198
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
17199
|
+
* For the list of reserved names please see:
|
17200
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
17201
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
17202
|
+
* JSPB instance for transitional soy proto support:
|
17203
|
+
* http://goto/soy-param-migration
|
17204
|
+
* @return {!Object}
|
17205
|
+
*/
|
17206
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.toObject = function(opt_includeInstance) {
|
17207
|
+
return proto.game.SearchGamesIntoProvidersRequest.toObject(opt_includeInstance, this);
|
17208
|
+
};
|
17209
|
+
|
17210
|
+
|
17211
|
+
/**
|
17212
|
+
* Static version of the {@see toObject} method.
|
17213
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
17214
|
+
* the JSPB instance for transitional soy proto support:
|
17215
|
+
* http://goto/soy-param-migration
|
17216
|
+
* @param {!proto.game.SearchGamesIntoProvidersRequest} msg The msg instance to transform.
|
17217
|
+
* @return {!Object}
|
17218
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17219
|
+
*/
|
17220
|
+
proto.game.SearchGamesIntoProvidersRequest.toObject = function(includeInstance, msg) {
|
17221
|
+
var f, obj = {
|
17222
|
+
providerSlugsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
17223
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
17224
|
+
limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
17225
|
+
offset: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
17226
|
+
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
17227
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
17228
|
+
};
|
17229
|
+
|
17230
|
+
if (includeInstance) {
|
17231
|
+
obj.$jspbMessageInstance = msg;
|
17232
|
+
}
|
17233
|
+
return obj;
|
17234
|
+
};
|
17235
|
+
}
|
17236
|
+
|
17237
|
+
|
17238
|
+
/**
|
17239
|
+
* Deserializes binary data (in protobuf wire format).
|
17240
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
17241
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest}
|
17242
|
+
*/
|
17243
|
+
proto.game.SearchGamesIntoProvidersRequest.deserializeBinary = function(bytes) {
|
17244
|
+
var reader = new jspb.BinaryReader(bytes);
|
17245
|
+
var msg = new proto.game.SearchGamesIntoProvidersRequest;
|
17246
|
+
return proto.game.SearchGamesIntoProvidersRequest.deserializeBinaryFromReader(msg, reader);
|
17247
|
+
};
|
17248
|
+
|
17249
|
+
|
17250
|
+
/**
|
17251
|
+
* Deserializes binary data (in protobuf wire format) from the
|
17252
|
+
* given reader into the given message object.
|
17253
|
+
* @param {!proto.game.SearchGamesIntoProvidersRequest} msg The message object to deserialize into.
|
17254
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
17255
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest}
|
17256
|
+
*/
|
17257
|
+
proto.game.SearchGamesIntoProvidersRequest.deserializeBinaryFromReader = function(msg, reader) {
|
17258
|
+
while (reader.nextField()) {
|
17259
|
+
if (reader.isEndGroup()) {
|
17260
|
+
break;
|
17261
|
+
}
|
17262
|
+
var field = reader.getFieldNumber();
|
17263
|
+
switch (field) {
|
17264
|
+
case 1:
|
17265
|
+
var value = /** @type {string} */ (reader.readString());
|
17266
|
+
msg.addProviderSlugs(value);
|
17267
|
+
break;
|
17268
|
+
case 2:
|
17269
|
+
var value = /** @type {string} */ (reader.readString());
|
17270
|
+
msg.setGeo(value);
|
17271
|
+
break;
|
17272
|
+
case 3:
|
17273
|
+
var value = /** @type {number} */ (reader.readInt32());
|
17274
|
+
msg.setLimit(value);
|
17275
|
+
break;
|
17276
|
+
case 4:
|
17277
|
+
var value = /** @type {number} */ (reader.readInt32());
|
17278
|
+
msg.setOffset(value);
|
17279
|
+
break;
|
17280
|
+
case 5:
|
17281
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
17282
|
+
msg.setIsMobile(value);
|
17283
|
+
break;
|
17284
|
+
case 6:
|
17285
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
17286
|
+
msg.setAdminSide(value);
|
17287
|
+
break;
|
17288
|
+
default:
|
17289
|
+
reader.skipField();
|
17290
|
+
break;
|
17291
|
+
}
|
17292
|
+
}
|
17293
|
+
return msg;
|
17294
|
+
};
|
17295
|
+
|
17296
|
+
|
17297
|
+
/**
|
17298
|
+
* Serializes the message to binary data (in protobuf wire format).
|
17299
|
+
* @return {!Uint8Array}
|
17300
|
+
*/
|
17301
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.serializeBinary = function() {
|
17302
|
+
var writer = new jspb.BinaryWriter();
|
17303
|
+
proto.game.SearchGamesIntoProvidersRequest.serializeBinaryToWriter(this, writer);
|
17304
|
+
return writer.getResultBuffer();
|
17305
|
+
};
|
17306
|
+
|
17307
|
+
|
17308
|
+
/**
|
17309
|
+
* Serializes the given message to binary data (in protobuf wire
|
17310
|
+
* format), writing to the given BinaryWriter.
|
17311
|
+
* @param {!proto.game.SearchGamesIntoProvidersRequest} message
|
17312
|
+
* @param {!jspb.BinaryWriter} writer
|
17313
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17314
|
+
*/
|
17315
|
+
proto.game.SearchGamesIntoProvidersRequest.serializeBinaryToWriter = function(message, writer) {
|
17316
|
+
var f = undefined;
|
17317
|
+
f = message.getProviderSlugsList();
|
17318
|
+
if (f.length > 0) {
|
17319
|
+
writer.writeRepeatedString(
|
17320
|
+
1,
|
17321
|
+
f
|
17322
|
+
);
|
17323
|
+
}
|
17324
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
17325
|
+
if (f != null) {
|
17326
|
+
writer.writeString(
|
17327
|
+
2,
|
17328
|
+
f
|
17329
|
+
);
|
17330
|
+
}
|
17331
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
17332
|
+
if (f != null) {
|
17333
|
+
writer.writeInt32(
|
17334
|
+
3,
|
17335
|
+
f
|
17336
|
+
);
|
17337
|
+
}
|
17338
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
17339
|
+
if (f != null) {
|
17340
|
+
writer.writeInt32(
|
17341
|
+
4,
|
17342
|
+
f
|
17343
|
+
);
|
17344
|
+
}
|
17345
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
|
17346
|
+
if (f != null) {
|
17347
|
+
writer.writeBool(
|
17348
|
+
5,
|
17349
|
+
f
|
17350
|
+
);
|
17351
|
+
}
|
17352
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
|
17353
|
+
if (f != null) {
|
17354
|
+
writer.writeBool(
|
17355
|
+
6,
|
17356
|
+
f
|
17357
|
+
);
|
17358
|
+
}
|
17359
|
+
};
|
17360
|
+
|
17361
|
+
|
17362
|
+
/**
|
17363
|
+
* repeated string provider_slugs = 1;
|
17364
|
+
* @return {!Array<string>}
|
17365
|
+
*/
|
17366
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.getProviderSlugsList = function() {
|
17367
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
17368
|
+
};
|
17369
|
+
|
17370
|
+
|
17371
|
+
/**
|
17372
|
+
* @param {!Array<string>} value
|
17373
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17374
|
+
*/
|
17375
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.setProviderSlugsList = function(value) {
|
17376
|
+
return jspb.Message.setField(this, 1, value || []);
|
17377
|
+
};
|
17378
|
+
|
17379
|
+
|
17380
|
+
/**
|
17381
|
+
* @param {string} value
|
17382
|
+
* @param {number=} opt_index
|
17383
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17384
|
+
*/
|
17385
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.addProviderSlugs = function(value, opt_index) {
|
17386
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
17387
|
+
};
|
17388
|
+
|
17389
|
+
|
17390
|
+
/**
|
17391
|
+
* Clears the list making it empty but non-null.
|
17392
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17393
|
+
*/
|
17394
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.clearProviderSlugsList = function() {
|
17395
|
+
return this.setProviderSlugsList([]);
|
17396
|
+
};
|
17397
|
+
|
17398
|
+
|
17399
|
+
/**
|
17400
|
+
* optional string geo = 2;
|
17401
|
+
* @return {string}
|
17402
|
+
*/
|
17403
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.getGeo = function() {
|
17404
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
17405
|
+
};
|
17406
|
+
|
17407
|
+
|
17408
|
+
/**
|
17409
|
+
* @param {string} value
|
17410
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17411
|
+
*/
|
17412
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.setGeo = function(value) {
|
17413
|
+
return jspb.Message.setField(this, 2, value);
|
17414
|
+
};
|
17415
|
+
|
17416
|
+
|
17417
|
+
/**
|
17418
|
+
* Clears the field making it undefined.
|
17419
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17420
|
+
*/
|
17421
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.clearGeo = function() {
|
17422
|
+
return jspb.Message.setField(this, 2, undefined);
|
17423
|
+
};
|
17424
|
+
|
17425
|
+
|
17426
|
+
/**
|
17427
|
+
* Returns whether this field is set.
|
17428
|
+
* @return {boolean}
|
17429
|
+
*/
|
17430
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.hasGeo = function() {
|
17431
|
+
return jspb.Message.getField(this, 2) != null;
|
17432
|
+
};
|
17433
|
+
|
17434
|
+
|
17435
|
+
/**
|
17436
|
+
* optional int32 limit = 3;
|
17437
|
+
* @return {number}
|
17438
|
+
*/
|
17439
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.getLimit = function() {
|
17440
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
17441
|
+
};
|
17442
|
+
|
17443
|
+
|
17444
|
+
/**
|
17445
|
+
* @param {number} value
|
17446
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17447
|
+
*/
|
17448
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.setLimit = function(value) {
|
17449
|
+
return jspb.Message.setField(this, 3, value);
|
17450
|
+
};
|
17451
|
+
|
17452
|
+
|
17453
|
+
/**
|
17454
|
+
* Clears the field making it undefined.
|
17455
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17456
|
+
*/
|
17457
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.clearLimit = function() {
|
17458
|
+
return jspb.Message.setField(this, 3, undefined);
|
17459
|
+
};
|
17460
|
+
|
17461
|
+
|
17462
|
+
/**
|
17463
|
+
* Returns whether this field is set.
|
17464
|
+
* @return {boolean}
|
17465
|
+
*/
|
17466
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.hasLimit = function() {
|
17467
|
+
return jspb.Message.getField(this, 3) != null;
|
17468
|
+
};
|
17469
|
+
|
17470
|
+
|
17471
|
+
/**
|
17472
|
+
* optional int32 offset = 4;
|
17473
|
+
* @return {number}
|
17474
|
+
*/
|
17475
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.getOffset = function() {
|
17476
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
17477
|
+
};
|
17478
|
+
|
17479
|
+
|
17480
|
+
/**
|
17481
|
+
* @param {number} value
|
17482
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17483
|
+
*/
|
17484
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.setOffset = function(value) {
|
17485
|
+
return jspb.Message.setField(this, 4, value);
|
17486
|
+
};
|
17487
|
+
|
17488
|
+
|
17489
|
+
/**
|
17490
|
+
* Clears the field making it undefined.
|
17491
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17492
|
+
*/
|
17493
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.clearOffset = function() {
|
17494
|
+
return jspb.Message.setField(this, 4, undefined);
|
17495
|
+
};
|
17496
|
+
|
17497
|
+
|
17498
|
+
/**
|
17499
|
+
* Returns whether this field is set.
|
17500
|
+
* @return {boolean}
|
17501
|
+
*/
|
17502
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.hasOffset = function() {
|
17503
|
+
return jspb.Message.getField(this, 4) != null;
|
17504
|
+
};
|
17505
|
+
|
17506
|
+
|
17507
|
+
/**
|
17508
|
+
* optional bool is_mobile = 5;
|
17509
|
+
* @return {boolean}
|
17510
|
+
*/
|
17511
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.getIsMobile = function() {
|
17512
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
17513
|
+
};
|
17514
|
+
|
17515
|
+
|
17516
|
+
/**
|
17517
|
+
* @param {boolean} value
|
17518
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17519
|
+
*/
|
17520
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.setIsMobile = function(value) {
|
17521
|
+
return jspb.Message.setField(this, 5, value);
|
17522
|
+
};
|
17523
|
+
|
17524
|
+
|
17525
|
+
/**
|
17526
|
+
* Clears the field making it undefined.
|
17527
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17528
|
+
*/
|
17529
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.clearIsMobile = function() {
|
17530
|
+
return jspb.Message.setField(this, 5, undefined);
|
17531
|
+
};
|
17532
|
+
|
17533
|
+
|
17534
|
+
/**
|
17535
|
+
* Returns whether this field is set.
|
17536
|
+
* @return {boolean}
|
17537
|
+
*/
|
17538
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.hasIsMobile = function() {
|
17539
|
+
return jspb.Message.getField(this, 5) != null;
|
17540
|
+
};
|
17541
|
+
|
17542
|
+
|
17543
|
+
/**
|
17544
|
+
* optional bool admin_side = 6;
|
17545
|
+
* @return {boolean}
|
17546
|
+
*/
|
17547
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.getAdminSide = function() {
|
17548
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
17549
|
+
};
|
17550
|
+
|
17551
|
+
|
17552
|
+
/**
|
17553
|
+
* @param {boolean} value
|
17554
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17555
|
+
*/
|
17556
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.setAdminSide = function(value) {
|
17557
|
+
return jspb.Message.setField(this, 6, value);
|
17558
|
+
};
|
17559
|
+
|
17560
|
+
|
17561
|
+
/**
|
17562
|
+
* Clears the field making it undefined.
|
17563
|
+
* @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
|
17564
|
+
*/
|
17565
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.clearAdminSide = function() {
|
17566
|
+
return jspb.Message.setField(this, 6, undefined);
|
17567
|
+
};
|
17568
|
+
|
17569
|
+
|
17570
|
+
/**
|
17571
|
+
* Returns whether this field is set.
|
17572
|
+
* @return {boolean}
|
17573
|
+
*/
|
17574
|
+
proto.game.SearchGamesIntoProvidersRequest.prototype.hasAdminSide = function() {
|
17575
|
+
return jspb.Message.getField(this, 6) != null;
|
17576
|
+
};
|
17577
|
+
|
17578
|
+
|
17579
|
+
|
17110
17580
|
|
17111
17581
|
|
17112
17582
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|