protobuf-platform 1.0.140 → 1.0.142
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 +8 -0
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +374 -2
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -56,6 +56,7 @@ service Game {
|
|
56
56
|
rpc cancelFreeSpins(FreeSpinStatusRequest) returns (FreeSpinCampaignResponse);
|
57
57
|
//Cross Services
|
58
58
|
rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
|
59
|
+
rpc getGamesByIds(GamesIds) returns (GamePoorItemsResponse);
|
59
60
|
rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
|
60
61
|
rpc getCounterScopes(ScopeRequest) returns (ScopeResponse);
|
61
62
|
//Wager lists
|
@@ -297,6 +298,8 @@ message GameItem {
|
|
297
298
|
optional int32 lines_count = 18;
|
298
299
|
optional string collections = 19;
|
299
300
|
optional string tags = 20;
|
301
|
+
optional bool is_top = 21;
|
302
|
+
optional bool is_vip = 22;
|
300
303
|
}
|
301
304
|
//Game CRUD | Requests
|
302
305
|
message GameRequest {
|
@@ -319,6 +322,8 @@ message GameItemRequest {
|
|
319
322
|
optional string type = 11;
|
320
323
|
optional string file_name = 12;
|
321
324
|
optional string file_type = 13;
|
325
|
+
optional bool is_top = 14;
|
326
|
+
optional bool is_vip = 15;
|
322
327
|
|
323
328
|
}
|
324
329
|
message GetGameRequest {
|
@@ -400,6 +405,9 @@ message UserBalanceGameSessionRequest {
|
|
400
405
|
message GamesUuids {
|
401
406
|
string game_uuids = 1;
|
402
407
|
}
|
408
|
+
message GamesIds {
|
409
|
+
repeated int32 game_ids = 1;
|
410
|
+
}
|
403
411
|
message GamePoorItemsResponse {
|
404
412
|
repeated GameItem items = 1;
|
405
413
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -224,6 +224,17 @@ function deserialize_game_GameStatusResponse(buffer_arg) {
|
|
224
224
|
return game_pb.GameStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
225
225
|
}
|
226
226
|
|
227
|
+
function serialize_game_GamesIds(arg) {
|
228
|
+
if (!(arg instanceof game_pb.GamesIds)) {
|
229
|
+
throw new Error('Expected argument of type game.GamesIds');
|
230
|
+
}
|
231
|
+
return Buffer.from(arg.serializeBinary());
|
232
|
+
}
|
233
|
+
|
234
|
+
function deserialize_game_GamesIds(buffer_arg) {
|
235
|
+
return game_pb.GamesIds.deserializeBinary(new Uint8Array(buffer_arg));
|
236
|
+
}
|
237
|
+
|
227
238
|
function serialize_game_GamesPriorityRequest(arg) {
|
228
239
|
if (!(arg instanceof game_pb.GamesPriorityRequest)) {
|
229
240
|
throw new Error('Expected argument of type game.GamesPriorityRequest');
|
@@ -1169,6 +1180,17 @@ getGamesByUuids: {
|
|
1169
1180
|
responseSerialize: serialize_game_GamePoorItemsResponse,
|
1170
1181
|
responseDeserialize: deserialize_game_GamePoorItemsResponse,
|
1171
1182
|
},
|
1183
|
+
getGamesByIds: {
|
1184
|
+
path: '/game.Game/getGamesByIds',
|
1185
|
+
requestStream: false,
|
1186
|
+
responseStream: false,
|
1187
|
+
requestType: game_pb.GamesIds,
|
1188
|
+
responseType: game_pb.GamePoorItemsResponse,
|
1189
|
+
requestSerialize: serialize_game_GamesIds,
|
1190
|
+
requestDeserialize: deserialize_game_GamesIds,
|
1191
|
+
responseSerialize: serialize_game_GamePoorItemsResponse,
|
1192
|
+
responseDeserialize: deserialize_game_GamePoorItemsResponse,
|
1193
|
+
},
|
1172
1194
|
getGameScopesByIds: {
|
1173
1195
|
path: '/game.Game/getGameScopesByIds',
|
1174
1196
|
requestStream: false,
|
package/game/game_pb.js
CHANGED
@@ -51,6 +51,7 @@ goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
|
|
51
51
|
goog.exportSymbol('proto.game.GameResponse', null, global);
|
52
52
|
goog.exportSymbol('proto.game.GameSearchRequest', null, global);
|
53
53
|
goog.exportSymbol('proto.game.GameStatusResponse', null, global);
|
54
|
+
goog.exportSymbol('proto.game.GamesIds', null, global);
|
54
55
|
goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
|
55
56
|
goog.exportSymbol('proto.game.GamesUuids', null, global);
|
56
57
|
goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
|
@@ -1338,6 +1339,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
1338
1339
|
*/
|
1339
1340
|
proto.game.GamesUuids.displayName = 'proto.game.GamesUuids';
|
1340
1341
|
}
|
1342
|
+
/**
|
1343
|
+
* Generated by JsPbCodeGenerator.
|
1344
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1345
|
+
* server response, or constructed directly in Javascript. The array is used
|
1346
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1347
|
+
* If no data is provided, the constructed object will be empty, but still
|
1348
|
+
* valid.
|
1349
|
+
* @extends {jspb.Message}
|
1350
|
+
* @constructor
|
1351
|
+
*/
|
1352
|
+
proto.game.GamesIds = function(opt_data) {
|
1353
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GamesIds.repeatedFields_, null);
|
1354
|
+
};
|
1355
|
+
goog.inherits(proto.game.GamesIds, jspb.Message);
|
1356
|
+
if (goog.DEBUG && !COMPILED) {
|
1357
|
+
/**
|
1358
|
+
* @public
|
1359
|
+
* @override
|
1360
|
+
*/
|
1361
|
+
proto.game.GamesIds.displayName = 'proto.game.GamesIds';
|
1362
|
+
}
|
1341
1363
|
/**
|
1342
1364
|
* Generated by JsPbCodeGenerator.
|
1343
1365
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -11527,7 +11549,9 @@ proto.game.GameItem.toObject = function(includeInstance, msg) {
|
|
11527
11549
|
reelsCount: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
11528
11550
|
linesCount: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
11529
11551
|
collections: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
11530
|
-
tags: jspb.Message.getFieldWithDefault(msg, 20, "")
|
11552
|
+
tags: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
11553
|
+
isTop: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
|
11554
|
+
isVip: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
|
11531
11555
|
};
|
11532
11556
|
|
11533
11557
|
if (includeInstance) {
|
@@ -11645,6 +11669,14 @@ proto.game.GameItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
11645
11669
|
var value = /** @type {string} */ (reader.readString());
|
11646
11670
|
msg.setTags(value);
|
11647
11671
|
break;
|
11672
|
+
case 21:
|
11673
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
11674
|
+
msg.setIsTop(value);
|
11675
|
+
break;
|
11676
|
+
case 22:
|
11677
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
11678
|
+
msg.setIsVip(value);
|
11679
|
+
break;
|
11648
11680
|
default:
|
11649
11681
|
reader.skipField();
|
11650
11682
|
break;
|
@@ -11815,6 +11847,20 @@ proto.game.GameItem.serializeBinaryToWriter = function(message, writer) {
|
|
11815
11847
|
f
|
11816
11848
|
);
|
11817
11849
|
}
|
11850
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 21));
|
11851
|
+
if (f != null) {
|
11852
|
+
writer.writeBool(
|
11853
|
+
21,
|
11854
|
+
f
|
11855
|
+
);
|
11856
|
+
}
|
11857
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 22));
|
11858
|
+
if (f != null) {
|
11859
|
+
writer.writeBool(
|
11860
|
+
22,
|
11861
|
+
f
|
11862
|
+
);
|
11863
|
+
}
|
11818
11864
|
};
|
11819
11865
|
|
11820
11866
|
|
@@ -12539,6 +12585,78 @@ proto.game.GameItem.prototype.hasTags = function() {
|
|
12539
12585
|
};
|
12540
12586
|
|
12541
12587
|
|
12588
|
+
/**
|
12589
|
+
* optional bool is_top = 21;
|
12590
|
+
* @return {boolean}
|
12591
|
+
*/
|
12592
|
+
proto.game.GameItem.prototype.getIsTop = function() {
|
12593
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false));
|
12594
|
+
};
|
12595
|
+
|
12596
|
+
|
12597
|
+
/**
|
12598
|
+
* @param {boolean} value
|
12599
|
+
* @return {!proto.game.GameItem} returns this
|
12600
|
+
*/
|
12601
|
+
proto.game.GameItem.prototype.setIsTop = function(value) {
|
12602
|
+
return jspb.Message.setField(this, 21, value);
|
12603
|
+
};
|
12604
|
+
|
12605
|
+
|
12606
|
+
/**
|
12607
|
+
* Clears the field making it undefined.
|
12608
|
+
* @return {!proto.game.GameItem} returns this
|
12609
|
+
*/
|
12610
|
+
proto.game.GameItem.prototype.clearIsTop = function() {
|
12611
|
+
return jspb.Message.setField(this, 21, undefined);
|
12612
|
+
};
|
12613
|
+
|
12614
|
+
|
12615
|
+
/**
|
12616
|
+
* Returns whether this field is set.
|
12617
|
+
* @return {boolean}
|
12618
|
+
*/
|
12619
|
+
proto.game.GameItem.prototype.hasIsTop = function() {
|
12620
|
+
return jspb.Message.getField(this, 21) != null;
|
12621
|
+
};
|
12622
|
+
|
12623
|
+
|
12624
|
+
/**
|
12625
|
+
* optional bool is_vip = 22;
|
12626
|
+
* @return {boolean}
|
12627
|
+
*/
|
12628
|
+
proto.game.GameItem.prototype.getIsVip = function() {
|
12629
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false));
|
12630
|
+
};
|
12631
|
+
|
12632
|
+
|
12633
|
+
/**
|
12634
|
+
* @param {boolean} value
|
12635
|
+
* @return {!proto.game.GameItem} returns this
|
12636
|
+
*/
|
12637
|
+
proto.game.GameItem.prototype.setIsVip = function(value) {
|
12638
|
+
return jspb.Message.setField(this, 22, value);
|
12639
|
+
};
|
12640
|
+
|
12641
|
+
|
12642
|
+
/**
|
12643
|
+
* Clears the field making it undefined.
|
12644
|
+
* @return {!proto.game.GameItem} returns this
|
12645
|
+
*/
|
12646
|
+
proto.game.GameItem.prototype.clearIsVip = function() {
|
12647
|
+
return jspb.Message.setField(this, 22, undefined);
|
12648
|
+
};
|
12649
|
+
|
12650
|
+
|
12651
|
+
/**
|
12652
|
+
* Returns whether this field is set.
|
12653
|
+
* @return {boolean}
|
12654
|
+
*/
|
12655
|
+
proto.game.GameItem.prototype.hasIsVip = function() {
|
12656
|
+
return jspb.Message.getField(this, 22) != null;
|
12657
|
+
};
|
12658
|
+
|
12659
|
+
|
12542
12660
|
|
12543
12661
|
/**
|
12544
12662
|
* Oneof group definitions for this message. Each group defines the field
|
@@ -12811,7 +12929,9 @@ proto.game.GameItemRequest.toObject = function(includeInstance, msg) {
|
|
12811
12929
|
hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
12812
12930
|
type: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
12813
12931
|
fileName: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
12814
|
-
fileType: jspb.Message.getFieldWithDefault(msg, 13, "")
|
12932
|
+
fileType: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
12933
|
+
isTop: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
|
12934
|
+
isVip: jspb.Message.getBooleanFieldWithDefault(msg, 15, false)
|
12815
12935
|
};
|
12816
12936
|
|
12817
12937
|
if (includeInstance) {
|
@@ -12901,6 +13021,14 @@ proto.game.GameItemRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
12901
13021
|
var value = /** @type {string} */ (reader.readString());
|
12902
13022
|
msg.setFileType(value);
|
12903
13023
|
break;
|
13024
|
+
case 14:
|
13025
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
13026
|
+
msg.setIsTop(value);
|
13027
|
+
break;
|
13028
|
+
case 15:
|
13029
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
13030
|
+
msg.setIsVip(value);
|
13031
|
+
break;
|
12904
13032
|
default:
|
12905
13033
|
reader.skipField();
|
12906
13034
|
break;
|
@@ -13022,6 +13150,20 @@ proto.game.GameItemRequest.serializeBinaryToWriter = function(message, writer) {
|
|
13022
13150
|
f
|
13023
13151
|
);
|
13024
13152
|
}
|
13153
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 14));
|
13154
|
+
if (f != null) {
|
13155
|
+
writer.writeBool(
|
13156
|
+
14,
|
13157
|
+
f
|
13158
|
+
);
|
13159
|
+
}
|
13160
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 15));
|
13161
|
+
if (f != null) {
|
13162
|
+
writer.writeBool(
|
13163
|
+
15,
|
13164
|
+
f
|
13165
|
+
);
|
13166
|
+
}
|
13025
13167
|
};
|
13026
13168
|
|
13027
13169
|
|
@@ -13494,6 +13636,78 @@ proto.game.GameItemRequest.prototype.hasFileType = function() {
|
|
13494
13636
|
};
|
13495
13637
|
|
13496
13638
|
|
13639
|
+
/**
|
13640
|
+
* optional bool is_top = 14;
|
13641
|
+
* @return {boolean}
|
13642
|
+
*/
|
13643
|
+
proto.game.GameItemRequest.prototype.getIsTop = function() {
|
13644
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false));
|
13645
|
+
};
|
13646
|
+
|
13647
|
+
|
13648
|
+
/**
|
13649
|
+
* @param {boolean} value
|
13650
|
+
* @return {!proto.game.GameItemRequest} returns this
|
13651
|
+
*/
|
13652
|
+
proto.game.GameItemRequest.prototype.setIsTop = function(value) {
|
13653
|
+
return jspb.Message.setField(this, 14, value);
|
13654
|
+
};
|
13655
|
+
|
13656
|
+
|
13657
|
+
/**
|
13658
|
+
* Clears the field making it undefined.
|
13659
|
+
* @return {!proto.game.GameItemRequest} returns this
|
13660
|
+
*/
|
13661
|
+
proto.game.GameItemRequest.prototype.clearIsTop = function() {
|
13662
|
+
return jspb.Message.setField(this, 14, undefined);
|
13663
|
+
};
|
13664
|
+
|
13665
|
+
|
13666
|
+
/**
|
13667
|
+
* Returns whether this field is set.
|
13668
|
+
* @return {boolean}
|
13669
|
+
*/
|
13670
|
+
proto.game.GameItemRequest.prototype.hasIsTop = function() {
|
13671
|
+
return jspb.Message.getField(this, 14) != null;
|
13672
|
+
};
|
13673
|
+
|
13674
|
+
|
13675
|
+
/**
|
13676
|
+
* optional bool is_vip = 15;
|
13677
|
+
* @return {boolean}
|
13678
|
+
*/
|
13679
|
+
proto.game.GameItemRequest.prototype.getIsVip = function() {
|
13680
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false));
|
13681
|
+
};
|
13682
|
+
|
13683
|
+
|
13684
|
+
/**
|
13685
|
+
* @param {boolean} value
|
13686
|
+
* @return {!proto.game.GameItemRequest} returns this
|
13687
|
+
*/
|
13688
|
+
proto.game.GameItemRequest.prototype.setIsVip = function(value) {
|
13689
|
+
return jspb.Message.setField(this, 15, value);
|
13690
|
+
};
|
13691
|
+
|
13692
|
+
|
13693
|
+
/**
|
13694
|
+
* Clears the field making it undefined.
|
13695
|
+
* @return {!proto.game.GameItemRequest} returns this
|
13696
|
+
*/
|
13697
|
+
proto.game.GameItemRequest.prototype.clearIsVip = function() {
|
13698
|
+
return jspb.Message.setField(this, 15, undefined);
|
13699
|
+
};
|
13700
|
+
|
13701
|
+
|
13702
|
+
/**
|
13703
|
+
* Returns whether this field is set.
|
13704
|
+
* @return {boolean}
|
13705
|
+
*/
|
13706
|
+
proto.game.GameItemRequest.prototype.hasIsVip = function() {
|
13707
|
+
return jspb.Message.getField(this, 15) != null;
|
13708
|
+
};
|
13709
|
+
|
13710
|
+
|
13497
13711
|
|
13498
13712
|
|
13499
13713
|
|
@@ -16776,6 +16990,164 @@ proto.game.GamesUuids.prototype.setGameUuids = function(value) {
|
|
16776
16990
|
|
16777
16991
|
|
16778
16992
|
|
16993
|
+
/**
|
16994
|
+
* List of repeated fields within this message type.
|
16995
|
+
* @private {!Array<number>}
|
16996
|
+
* @const
|
16997
|
+
*/
|
16998
|
+
proto.game.GamesIds.repeatedFields_ = [1];
|
16999
|
+
|
17000
|
+
|
17001
|
+
|
17002
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
17003
|
+
/**
|
17004
|
+
* Creates an object representation of this proto.
|
17005
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
17006
|
+
* Optional fields that are not set will be set to undefined.
|
17007
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
17008
|
+
* For the list of reserved names please see:
|
17009
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
17010
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
17011
|
+
* JSPB instance for transitional soy proto support:
|
17012
|
+
* http://goto/soy-param-migration
|
17013
|
+
* @return {!Object}
|
17014
|
+
*/
|
17015
|
+
proto.game.GamesIds.prototype.toObject = function(opt_includeInstance) {
|
17016
|
+
return proto.game.GamesIds.toObject(opt_includeInstance, this);
|
17017
|
+
};
|
17018
|
+
|
17019
|
+
|
17020
|
+
/**
|
17021
|
+
* Static version of the {@see toObject} method.
|
17022
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
17023
|
+
* the JSPB instance for transitional soy proto support:
|
17024
|
+
* http://goto/soy-param-migration
|
17025
|
+
* @param {!proto.game.GamesIds} msg The msg instance to transform.
|
17026
|
+
* @return {!Object}
|
17027
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17028
|
+
*/
|
17029
|
+
proto.game.GamesIds.toObject = function(includeInstance, msg) {
|
17030
|
+
var f, obj = {
|
17031
|
+
gameIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
17032
|
+
};
|
17033
|
+
|
17034
|
+
if (includeInstance) {
|
17035
|
+
obj.$jspbMessageInstance = msg;
|
17036
|
+
}
|
17037
|
+
return obj;
|
17038
|
+
};
|
17039
|
+
}
|
17040
|
+
|
17041
|
+
|
17042
|
+
/**
|
17043
|
+
* Deserializes binary data (in protobuf wire format).
|
17044
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
17045
|
+
* @return {!proto.game.GamesIds}
|
17046
|
+
*/
|
17047
|
+
proto.game.GamesIds.deserializeBinary = function(bytes) {
|
17048
|
+
var reader = new jspb.BinaryReader(bytes);
|
17049
|
+
var msg = new proto.game.GamesIds;
|
17050
|
+
return proto.game.GamesIds.deserializeBinaryFromReader(msg, reader);
|
17051
|
+
};
|
17052
|
+
|
17053
|
+
|
17054
|
+
/**
|
17055
|
+
* Deserializes binary data (in protobuf wire format) from the
|
17056
|
+
* given reader into the given message object.
|
17057
|
+
* @param {!proto.game.GamesIds} msg The message object to deserialize into.
|
17058
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
17059
|
+
* @return {!proto.game.GamesIds}
|
17060
|
+
*/
|
17061
|
+
proto.game.GamesIds.deserializeBinaryFromReader = function(msg, reader) {
|
17062
|
+
while (reader.nextField()) {
|
17063
|
+
if (reader.isEndGroup()) {
|
17064
|
+
break;
|
17065
|
+
}
|
17066
|
+
var field = reader.getFieldNumber();
|
17067
|
+
switch (field) {
|
17068
|
+
case 1:
|
17069
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
17070
|
+
for (var i = 0; i < values.length; i++) {
|
17071
|
+
msg.addGameIds(values[i]);
|
17072
|
+
}
|
17073
|
+
break;
|
17074
|
+
default:
|
17075
|
+
reader.skipField();
|
17076
|
+
break;
|
17077
|
+
}
|
17078
|
+
}
|
17079
|
+
return msg;
|
17080
|
+
};
|
17081
|
+
|
17082
|
+
|
17083
|
+
/**
|
17084
|
+
* Serializes the message to binary data (in protobuf wire format).
|
17085
|
+
* @return {!Uint8Array}
|
17086
|
+
*/
|
17087
|
+
proto.game.GamesIds.prototype.serializeBinary = function() {
|
17088
|
+
var writer = new jspb.BinaryWriter();
|
17089
|
+
proto.game.GamesIds.serializeBinaryToWriter(this, writer);
|
17090
|
+
return writer.getResultBuffer();
|
17091
|
+
};
|
17092
|
+
|
17093
|
+
|
17094
|
+
/**
|
17095
|
+
* Serializes the given message to binary data (in protobuf wire
|
17096
|
+
* format), writing to the given BinaryWriter.
|
17097
|
+
* @param {!proto.game.GamesIds} message
|
17098
|
+
* @param {!jspb.BinaryWriter} writer
|
17099
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17100
|
+
*/
|
17101
|
+
proto.game.GamesIds.serializeBinaryToWriter = function(message, writer) {
|
17102
|
+
var f = undefined;
|
17103
|
+
f = message.getGameIdsList();
|
17104
|
+
if (f.length > 0) {
|
17105
|
+
writer.writePackedInt32(
|
17106
|
+
1,
|
17107
|
+
f
|
17108
|
+
);
|
17109
|
+
}
|
17110
|
+
};
|
17111
|
+
|
17112
|
+
|
17113
|
+
/**
|
17114
|
+
* repeated int32 game_ids = 1;
|
17115
|
+
* @return {!Array<number>}
|
17116
|
+
*/
|
17117
|
+
proto.game.GamesIds.prototype.getGameIdsList = function() {
|
17118
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
17119
|
+
};
|
17120
|
+
|
17121
|
+
|
17122
|
+
/**
|
17123
|
+
* @param {!Array<number>} value
|
17124
|
+
* @return {!proto.game.GamesIds} returns this
|
17125
|
+
*/
|
17126
|
+
proto.game.GamesIds.prototype.setGameIdsList = function(value) {
|
17127
|
+
return jspb.Message.setField(this, 1, value || []);
|
17128
|
+
};
|
17129
|
+
|
17130
|
+
|
17131
|
+
/**
|
17132
|
+
* @param {number} value
|
17133
|
+
* @param {number=} opt_index
|
17134
|
+
* @return {!proto.game.GamesIds} returns this
|
17135
|
+
*/
|
17136
|
+
proto.game.GamesIds.prototype.addGameIds = function(value, opt_index) {
|
17137
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
17138
|
+
};
|
17139
|
+
|
17140
|
+
|
17141
|
+
/**
|
17142
|
+
* Clears the list making it empty but non-null.
|
17143
|
+
* @return {!proto.game.GamesIds} returns this
|
17144
|
+
*/
|
17145
|
+
proto.game.GamesIds.prototype.clearGameIdsList = function() {
|
17146
|
+
return this.setGameIdsList([]);
|
17147
|
+
};
|
17148
|
+
|
17149
|
+
|
17150
|
+
|
16779
17151
|
/**
|
16780
17152
|
* List of repeated fields within this message type.
|
16781
17153
|
* @private {!Array<number>}
|