protobuf-platform 1.2.55 → 1.2.56
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/cashback/cashback.proto +5 -0
- package/cashback/cashback_grpc_pb.js +22 -0
- package/cashback/cashback_pb.js +228 -0
- package/game/game.proto +2 -0
- package/game/game_grpc_pb.js +22 -0
- package/loyalty/loyalty.proto +5 -0
- package/loyalty/loyalty_grpc_pb.js +22 -0
- package/loyalty/loyalty_pb.js +228 -0
- package/notification/notification.proto +5 -0
- package/notification/notification_grpc_pb.js +22 -0
- package/notification/notification_pb.js +228 -0
- package/package.json +1 -1
- package/payment/payment.proto +6 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +228 -0
- package/promocode/promocode.proto +5 -0
- package/promocode/promocode_grpc_pb.js +22 -0
- package/promocode/promocode_pb.js +228 -0
- package/tournament/tournament.proto +5 -0
- package/tournament/tournament_grpc_pb.js +22 -0
- package/tournament/tournament_pb.js +228 -0
|
@@ -27,6 +27,7 @@ goog.exportSymbol('proto.promocode.CodeRequest', null, global);
|
|
|
27
27
|
goog.exportSymbol('proto.promocode.CodeResponse', null, global);
|
|
28
28
|
goog.exportSymbol('proto.promocode.CodeStatusResponse', null, global);
|
|
29
29
|
goog.exportSymbol('proto.promocode.GetCodeRequest', null, global);
|
|
30
|
+
goog.exportSymbol('proto.promocode.ItemsBunchRequest', null, global);
|
|
30
31
|
goog.exportSymbol('proto.promocode.PaginationRequest', null, global);
|
|
31
32
|
goog.exportSymbol('proto.promocode.PingRequest', null, global);
|
|
32
33
|
goog.exportSymbol('proto.promocode.PongResponse', null, global);
|
|
@@ -137,6 +138,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
137
138
|
*/
|
|
138
139
|
proto.promocode.SearchRequest.displayName = 'proto.promocode.SearchRequest';
|
|
139
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Generated by JsPbCodeGenerator.
|
|
143
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
144
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
145
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
146
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
147
|
+
* valid.
|
|
148
|
+
* @extends {jspb.Message}
|
|
149
|
+
* @constructor
|
|
150
|
+
*/
|
|
151
|
+
proto.promocode.ItemsBunchRequest = function(opt_data) {
|
|
152
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.promocode.ItemsBunchRequest.repeatedFields_, null);
|
|
153
|
+
};
|
|
154
|
+
goog.inherits(proto.promocode.ItemsBunchRequest, jspb.Message);
|
|
155
|
+
if (goog.DEBUG && !COMPILED) {
|
|
156
|
+
/**
|
|
157
|
+
* @public
|
|
158
|
+
* @override
|
|
159
|
+
*/
|
|
160
|
+
proto.promocode.ItemsBunchRequest.displayName = 'proto.promocode.ItemsBunchRequest';
|
|
161
|
+
}
|
|
140
162
|
/**
|
|
141
163
|
* Generated by JsPbCodeGenerator.
|
|
142
164
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1322,6 +1344,212 @@ proto.promocode.SearchRequest.prototype.hasIsActive = function() {
|
|
|
1322
1344
|
|
|
1323
1345
|
|
|
1324
1346
|
|
|
1347
|
+
/**
|
|
1348
|
+
* List of repeated fields within this message type.
|
|
1349
|
+
* @private {!Array<number>}
|
|
1350
|
+
* @const
|
|
1351
|
+
*/
|
|
1352
|
+
proto.promocode.ItemsBunchRequest.repeatedFields_ = [1];
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1357
|
+
/**
|
|
1358
|
+
* Creates an object representation of this proto.
|
|
1359
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1360
|
+
* Optional fields that are not set will be set to undefined.
|
|
1361
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1362
|
+
* For the list of reserved names please see:
|
|
1363
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1364
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1365
|
+
* JSPB instance for transitional soy proto support:
|
|
1366
|
+
* http://goto/soy-param-migration
|
|
1367
|
+
* @return {!Object}
|
|
1368
|
+
*/
|
|
1369
|
+
proto.promocode.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1370
|
+
return proto.promocode.ItemsBunchRequest.toObject(opt_includeInstance, this);
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Static version of the {@see toObject} method.
|
|
1376
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1377
|
+
* the JSPB instance for transitional soy proto support:
|
|
1378
|
+
* http://goto/soy-param-migration
|
|
1379
|
+
* @param {!proto.promocode.ItemsBunchRequest} msg The msg instance to transform.
|
|
1380
|
+
* @return {!Object}
|
|
1381
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1382
|
+
*/
|
|
1383
|
+
proto.promocode.ItemsBunchRequest.toObject = function(includeInstance, msg) {
|
|
1384
|
+
var f, obj = {
|
|
1385
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
1386
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
if (includeInstance) {
|
|
1390
|
+
obj.$jspbMessageInstance = msg;
|
|
1391
|
+
}
|
|
1392
|
+
return obj;
|
|
1393
|
+
};
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1399
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1400
|
+
* @return {!proto.promocode.ItemsBunchRequest}
|
|
1401
|
+
*/
|
|
1402
|
+
proto.promocode.ItemsBunchRequest.deserializeBinary = function(bytes) {
|
|
1403
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1404
|
+
var msg = new proto.promocode.ItemsBunchRequest;
|
|
1405
|
+
return proto.promocode.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1411
|
+
* given reader into the given message object.
|
|
1412
|
+
* @param {!proto.promocode.ItemsBunchRequest} msg The message object to deserialize into.
|
|
1413
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1414
|
+
* @return {!proto.promocode.ItemsBunchRequest}
|
|
1415
|
+
*/
|
|
1416
|
+
proto.promocode.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1417
|
+
while (reader.nextField()) {
|
|
1418
|
+
if (reader.isEndGroup()) {
|
|
1419
|
+
break;
|
|
1420
|
+
}
|
|
1421
|
+
var field = reader.getFieldNumber();
|
|
1422
|
+
switch (field) {
|
|
1423
|
+
case 1:
|
|
1424
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
1425
|
+
for (var i = 0; i < values.length; i++) {
|
|
1426
|
+
msg.addIds(values[i]);
|
|
1427
|
+
}
|
|
1428
|
+
break;
|
|
1429
|
+
case 2:
|
|
1430
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1431
|
+
msg.setIsActive(value);
|
|
1432
|
+
break;
|
|
1433
|
+
default:
|
|
1434
|
+
reader.skipField();
|
|
1435
|
+
break;
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
return msg;
|
|
1439
|
+
};
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1444
|
+
* @return {!Uint8Array}
|
|
1445
|
+
*/
|
|
1446
|
+
proto.promocode.ItemsBunchRequest.prototype.serializeBinary = function() {
|
|
1447
|
+
var writer = new jspb.BinaryWriter();
|
|
1448
|
+
proto.promocode.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
|
|
1449
|
+
return writer.getResultBuffer();
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1455
|
+
* format), writing to the given BinaryWriter.
|
|
1456
|
+
* @param {!proto.promocode.ItemsBunchRequest} message
|
|
1457
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1458
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1459
|
+
*/
|
|
1460
|
+
proto.promocode.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1461
|
+
var f = undefined;
|
|
1462
|
+
f = message.getIdsList();
|
|
1463
|
+
if (f.length > 0) {
|
|
1464
|
+
writer.writePackedInt32(
|
|
1465
|
+
1,
|
|
1466
|
+
f
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1469
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
1470
|
+
if (f != null) {
|
|
1471
|
+
writer.writeInt32(
|
|
1472
|
+
2,
|
|
1473
|
+
f
|
|
1474
|
+
);
|
|
1475
|
+
}
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* repeated int32 ids = 1;
|
|
1481
|
+
* @return {!Array<number>}
|
|
1482
|
+
*/
|
|
1483
|
+
proto.promocode.ItemsBunchRequest.prototype.getIdsList = function() {
|
|
1484
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* @param {!Array<number>} value
|
|
1490
|
+
* @return {!proto.promocode.ItemsBunchRequest} returns this
|
|
1491
|
+
*/
|
|
1492
|
+
proto.promocode.ItemsBunchRequest.prototype.setIdsList = function(value) {
|
|
1493
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1494
|
+
};
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* @param {number} value
|
|
1499
|
+
* @param {number=} opt_index
|
|
1500
|
+
* @return {!proto.promocode.ItemsBunchRequest} returns this
|
|
1501
|
+
*/
|
|
1502
|
+
proto.promocode.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
|
|
1503
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* Clears the list making it empty but non-null.
|
|
1509
|
+
* @return {!proto.promocode.ItemsBunchRequest} returns this
|
|
1510
|
+
*/
|
|
1511
|
+
proto.promocode.ItemsBunchRequest.prototype.clearIdsList = function() {
|
|
1512
|
+
return this.setIdsList([]);
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* optional int32 is_active = 2;
|
|
1518
|
+
* @return {number}
|
|
1519
|
+
*/
|
|
1520
|
+
proto.promocode.ItemsBunchRequest.prototype.getIsActive = function() {
|
|
1521
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* @param {number} value
|
|
1527
|
+
* @return {!proto.promocode.ItemsBunchRequest} returns this
|
|
1528
|
+
*/
|
|
1529
|
+
proto.promocode.ItemsBunchRequest.prototype.setIsActive = function(value) {
|
|
1530
|
+
return jspb.Message.setField(this, 2, value);
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* Clears the field making it undefined.
|
|
1536
|
+
* @return {!proto.promocode.ItemsBunchRequest} returns this
|
|
1537
|
+
*/
|
|
1538
|
+
proto.promocode.ItemsBunchRequest.prototype.clearIsActive = function() {
|
|
1539
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
1540
|
+
};
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Returns whether this field is set.
|
|
1545
|
+
* @return {boolean}
|
|
1546
|
+
*/
|
|
1547
|
+
proto.promocode.ItemsBunchRequest.prototype.hasIsActive = function() {
|
|
1548
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1549
|
+
};
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
|
|
1325
1553
|
|
|
1326
1554
|
|
|
1327
1555
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -17,6 +17,7 @@ service Tournament {
|
|
|
17
17
|
rpc setTournamentContent(TournamentContentRequest) returns (TournamentStatusResponse);
|
|
18
18
|
rpc addGamesIntoTournament(TournamentGamesRequest) returns (TournamentStatusResponse);
|
|
19
19
|
rpc removeGamesFromTournament(TournamentGamesRequest) returns (TournamentStatusResponse);
|
|
20
|
+
rpc updateTournamentsInBunch(ItemsBunchRequest) returns (TournamentStatusResponse);
|
|
20
21
|
//Tournament Statuses
|
|
21
22
|
rpc readListTournamentStatuses(PaginationRequest) returns (TournamentStatusItemsResponse);
|
|
22
23
|
rpc getTournamentsForUser(PaginationRequest) returns (UserTournamentItemsResponse);
|
|
@@ -48,6 +49,10 @@ message SearchRequest {
|
|
|
48
49
|
optional int32 is_active = 3;
|
|
49
50
|
repeated string currencies = 4;
|
|
50
51
|
}
|
|
52
|
+
message ItemsBunchRequest {
|
|
53
|
+
repeated int32 ids = 1;
|
|
54
|
+
optional int32 is_active = 2;
|
|
55
|
+
}
|
|
51
56
|
//Tournament CRUD | Requests
|
|
52
57
|
message TournamentItem {
|
|
53
58
|
optional int32 id = 1;
|
|
@@ -37,6 +37,17 @@ function deserialize_tournament_GetTournamentRequest(buffer_arg) {
|
|
|
37
37
|
return tournament_pb.GetTournamentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
function serialize_tournament_ItemsBunchRequest(arg) {
|
|
41
|
+
if (!(arg instanceof tournament_pb.ItemsBunchRequest)) {
|
|
42
|
+
throw new Error('Expected argument of type tournament.ItemsBunchRequest');
|
|
43
|
+
}
|
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function deserialize_tournament_ItemsBunchRequest(buffer_arg) {
|
|
48
|
+
return tournament_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
function serialize_tournament_PaginationRequest(arg) {
|
|
41
52
|
if (!(arg instanceof tournament_pb.PaginationRequest)) {
|
|
42
53
|
throw new Error('Expected argument of type tournament.PaginationRequest');
|
|
@@ -359,6 +370,17 @@ createSingleTournament: {
|
|
|
359
370
|
responseSerialize: serialize_tournament_TournamentStatusResponse,
|
|
360
371
|
responseDeserialize: deserialize_tournament_TournamentStatusResponse,
|
|
361
372
|
},
|
|
373
|
+
updateTournamentsInBunch: {
|
|
374
|
+
path: '/tournament.Tournament/updateTournamentsInBunch',
|
|
375
|
+
requestStream: false,
|
|
376
|
+
responseStream: false,
|
|
377
|
+
requestType: tournament_pb.ItemsBunchRequest,
|
|
378
|
+
responseType: tournament_pb.TournamentStatusResponse,
|
|
379
|
+
requestSerialize: serialize_tournament_ItemsBunchRequest,
|
|
380
|
+
requestDeserialize: deserialize_tournament_ItemsBunchRequest,
|
|
381
|
+
responseSerialize: serialize_tournament_TournamentStatusResponse,
|
|
382
|
+
responseDeserialize: deserialize_tournament_TournamentStatusResponse,
|
|
383
|
+
},
|
|
362
384
|
// Tournament Statuses
|
|
363
385
|
readListTournamentStatuses: {
|
|
364
386
|
path: '/tournament.Tournament/readListTournamentStatuses',
|
|
@@ -26,6 +26,7 @@ goog.exportSymbol('proto.tournament.ContentItem', null, global);
|
|
|
26
26
|
goog.exportSymbol('proto.tournament.File', null, global);
|
|
27
27
|
goog.exportSymbol('proto.tournament.GetFileRequest', null, global);
|
|
28
28
|
goog.exportSymbol('proto.tournament.GetTournamentRequest', null, global);
|
|
29
|
+
goog.exportSymbol('proto.tournament.ItemsBunchRequest', null, global);
|
|
29
30
|
goog.exportSymbol('proto.tournament.PaginationRequest', null, global);
|
|
30
31
|
goog.exportSymbol('proto.tournament.PingRequest', null, global);
|
|
31
32
|
goog.exportSymbol('proto.tournament.PongResponse', null, global);
|
|
@@ -197,6 +198,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
197
198
|
*/
|
|
198
199
|
proto.tournament.SearchRequest.displayName = 'proto.tournament.SearchRequest';
|
|
199
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Generated by JsPbCodeGenerator.
|
|
203
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
204
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
205
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
206
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
207
|
+
* valid.
|
|
208
|
+
* @extends {jspb.Message}
|
|
209
|
+
* @constructor
|
|
210
|
+
*/
|
|
211
|
+
proto.tournament.ItemsBunchRequest = function(opt_data) {
|
|
212
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.ItemsBunchRequest.repeatedFields_, null);
|
|
213
|
+
};
|
|
214
|
+
goog.inherits(proto.tournament.ItemsBunchRequest, jspb.Message);
|
|
215
|
+
if (goog.DEBUG && !COMPILED) {
|
|
216
|
+
/**
|
|
217
|
+
* @public
|
|
218
|
+
* @override
|
|
219
|
+
*/
|
|
220
|
+
proto.tournament.ItemsBunchRequest.displayName = 'proto.tournament.ItemsBunchRequest';
|
|
221
|
+
}
|
|
200
222
|
/**
|
|
201
223
|
* Generated by JsPbCodeGenerator.
|
|
202
224
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2214,6 +2236,212 @@ proto.tournament.SearchRequest.prototype.clearCurrenciesList = function() {
|
|
|
2214
2236
|
|
|
2215
2237
|
|
|
2216
2238
|
|
|
2239
|
+
/**
|
|
2240
|
+
* List of repeated fields within this message type.
|
|
2241
|
+
* @private {!Array<number>}
|
|
2242
|
+
* @const
|
|
2243
|
+
*/
|
|
2244
|
+
proto.tournament.ItemsBunchRequest.repeatedFields_ = [1];
|
|
2245
|
+
|
|
2246
|
+
|
|
2247
|
+
|
|
2248
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2249
|
+
/**
|
|
2250
|
+
* Creates an object representation of this proto.
|
|
2251
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2252
|
+
* Optional fields that are not set will be set to undefined.
|
|
2253
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2254
|
+
* For the list of reserved names please see:
|
|
2255
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2256
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2257
|
+
* JSPB instance for transitional soy proto support:
|
|
2258
|
+
* http://goto/soy-param-migration
|
|
2259
|
+
* @return {!Object}
|
|
2260
|
+
*/
|
|
2261
|
+
proto.tournament.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2262
|
+
return proto.tournament.ItemsBunchRequest.toObject(opt_includeInstance, this);
|
|
2263
|
+
};
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* Static version of the {@see toObject} method.
|
|
2268
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2269
|
+
* the JSPB instance for transitional soy proto support:
|
|
2270
|
+
* http://goto/soy-param-migration
|
|
2271
|
+
* @param {!proto.tournament.ItemsBunchRequest} msg The msg instance to transform.
|
|
2272
|
+
* @return {!Object}
|
|
2273
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2274
|
+
*/
|
|
2275
|
+
proto.tournament.ItemsBunchRequest.toObject = function(includeInstance, msg) {
|
|
2276
|
+
var f, obj = {
|
|
2277
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
2278
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2281
|
+
if (includeInstance) {
|
|
2282
|
+
obj.$jspbMessageInstance = msg;
|
|
2283
|
+
}
|
|
2284
|
+
return obj;
|
|
2285
|
+
};
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2291
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2292
|
+
* @return {!proto.tournament.ItemsBunchRequest}
|
|
2293
|
+
*/
|
|
2294
|
+
proto.tournament.ItemsBunchRequest.deserializeBinary = function(bytes) {
|
|
2295
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2296
|
+
var msg = new proto.tournament.ItemsBunchRequest;
|
|
2297
|
+
return proto.tournament.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
|
|
2298
|
+
};
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2303
|
+
* given reader into the given message object.
|
|
2304
|
+
* @param {!proto.tournament.ItemsBunchRequest} msg The message object to deserialize into.
|
|
2305
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2306
|
+
* @return {!proto.tournament.ItemsBunchRequest}
|
|
2307
|
+
*/
|
|
2308
|
+
proto.tournament.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2309
|
+
while (reader.nextField()) {
|
|
2310
|
+
if (reader.isEndGroup()) {
|
|
2311
|
+
break;
|
|
2312
|
+
}
|
|
2313
|
+
var field = reader.getFieldNumber();
|
|
2314
|
+
switch (field) {
|
|
2315
|
+
case 1:
|
|
2316
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
2317
|
+
for (var i = 0; i < values.length; i++) {
|
|
2318
|
+
msg.addIds(values[i]);
|
|
2319
|
+
}
|
|
2320
|
+
break;
|
|
2321
|
+
case 2:
|
|
2322
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2323
|
+
msg.setIsActive(value);
|
|
2324
|
+
break;
|
|
2325
|
+
default:
|
|
2326
|
+
reader.skipField();
|
|
2327
|
+
break;
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
return msg;
|
|
2331
|
+
};
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2336
|
+
* @return {!Uint8Array}
|
|
2337
|
+
*/
|
|
2338
|
+
proto.tournament.ItemsBunchRequest.prototype.serializeBinary = function() {
|
|
2339
|
+
var writer = new jspb.BinaryWriter();
|
|
2340
|
+
proto.tournament.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
|
|
2341
|
+
return writer.getResultBuffer();
|
|
2342
|
+
};
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2347
|
+
* format), writing to the given BinaryWriter.
|
|
2348
|
+
* @param {!proto.tournament.ItemsBunchRequest} message
|
|
2349
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2350
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2351
|
+
*/
|
|
2352
|
+
proto.tournament.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2353
|
+
var f = undefined;
|
|
2354
|
+
f = message.getIdsList();
|
|
2355
|
+
if (f.length > 0) {
|
|
2356
|
+
writer.writePackedInt32(
|
|
2357
|
+
1,
|
|
2358
|
+
f
|
|
2359
|
+
);
|
|
2360
|
+
}
|
|
2361
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
2362
|
+
if (f != null) {
|
|
2363
|
+
writer.writeInt32(
|
|
2364
|
+
2,
|
|
2365
|
+
f
|
|
2366
|
+
);
|
|
2367
|
+
}
|
|
2368
|
+
};
|
|
2369
|
+
|
|
2370
|
+
|
|
2371
|
+
/**
|
|
2372
|
+
* repeated int32 ids = 1;
|
|
2373
|
+
* @return {!Array<number>}
|
|
2374
|
+
*/
|
|
2375
|
+
proto.tournament.ItemsBunchRequest.prototype.getIdsList = function() {
|
|
2376
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2377
|
+
};
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* @param {!Array<number>} value
|
|
2382
|
+
* @return {!proto.tournament.ItemsBunchRequest} returns this
|
|
2383
|
+
*/
|
|
2384
|
+
proto.tournament.ItemsBunchRequest.prototype.setIdsList = function(value) {
|
|
2385
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2386
|
+
};
|
|
2387
|
+
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* @param {number} value
|
|
2391
|
+
* @param {number=} opt_index
|
|
2392
|
+
* @return {!proto.tournament.ItemsBunchRequest} returns this
|
|
2393
|
+
*/
|
|
2394
|
+
proto.tournament.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
|
|
2395
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2396
|
+
};
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
/**
|
|
2400
|
+
* Clears the list making it empty but non-null.
|
|
2401
|
+
* @return {!proto.tournament.ItemsBunchRequest} returns this
|
|
2402
|
+
*/
|
|
2403
|
+
proto.tournament.ItemsBunchRequest.prototype.clearIdsList = function() {
|
|
2404
|
+
return this.setIdsList([]);
|
|
2405
|
+
};
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
/**
|
|
2409
|
+
* optional int32 is_active = 2;
|
|
2410
|
+
* @return {number}
|
|
2411
|
+
*/
|
|
2412
|
+
proto.tournament.ItemsBunchRequest.prototype.getIsActive = function() {
|
|
2413
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2414
|
+
};
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* @param {number} value
|
|
2419
|
+
* @return {!proto.tournament.ItemsBunchRequest} returns this
|
|
2420
|
+
*/
|
|
2421
|
+
proto.tournament.ItemsBunchRequest.prototype.setIsActive = function(value) {
|
|
2422
|
+
return jspb.Message.setField(this, 2, value);
|
|
2423
|
+
};
|
|
2424
|
+
|
|
2425
|
+
|
|
2426
|
+
/**
|
|
2427
|
+
* Clears the field making it undefined.
|
|
2428
|
+
* @return {!proto.tournament.ItemsBunchRequest} returns this
|
|
2429
|
+
*/
|
|
2430
|
+
proto.tournament.ItemsBunchRequest.prototype.clearIsActive = function() {
|
|
2431
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2432
|
+
};
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* Returns whether this field is set.
|
|
2437
|
+
* @return {boolean}
|
|
2438
|
+
*/
|
|
2439
|
+
proto.tournament.ItemsBunchRequest.prototype.hasIsActive = function() {
|
|
2440
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2441
|
+
};
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
|
|
2217
2445
|
/**
|
|
2218
2446
|
* List of repeated fields within this message type.
|
|
2219
2447
|
* @private {!Array<number>}
|