protobuf-platform 1.0.239 → 1.0.240
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/package.json
CHANGED
@@ -11,6 +11,8 @@ service Tournament {
|
|
11
11
|
rpc updateSingleTournament(stream TournamentRequest) returns (TournamentResponse);
|
12
12
|
rpc deleteSingleTournament(GetTournamentRequest) returns (TournamentStatusResponse);
|
13
13
|
rpc readListTournaments(PaginationRequest) returns (TournamentItemsResponse);
|
14
|
+
//Tournament Statuses
|
15
|
+
rpc readListTournamentStatuses(PaginationRequest) returns (TournamentStatusItemsResponse);
|
14
16
|
}
|
15
17
|
//Technical
|
16
18
|
message PingRequest { string ping = 1; }
|
@@ -68,4 +70,15 @@ message TournamentItemsResponse {
|
|
68
70
|
message TournamentStatusResponse {
|
69
71
|
string status = 1;
|
70
72
|
}
|
73
|
+
message TournamentStatusItem {
|
74
|
+
int32 id = 1;
|
75
|
+
string title = 2;
|
76
|
+
optional bool is_active = 3;
|
77
|
+
optional string description = 4;
|
78
|
+
}
|
79
|
+
message TournamentStatusItemsResponse {
|
80
|
+
repeated TournamentStatusItem items = 1;
|
81
|
+
optional int32 total_pages = 2;
|
82
|
+
optional int32 total_items = 3;
|
83
|
+
}
|
71
84
|
|
@@ -103,6 +103,17 @@ function deserialize_tournament_TournamentResponse(buffer_arg) {
|
|
103
103
|
return tournament_pb.TournamentResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
104
104
|
}
|
105
105
|
|
106
|
+
function serialize_tournament_TournamentStatusItemsResponse(arg) {
|
107
|
+
if (!(arg instanceof tournament_pb.TournamentStatusItemsResponse)) {
|
108
|
+
throw new Error('Expected argument of type tournament.TournamentStatusItemsResponse');
|
109
|
+
}
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
111
|
+
}
|
112
|
+
|
113
|
+
function deserialize_tournament_TournamentStatusItemsResponse(buffer_arg) {
|
114
|
+
return tournament_pb.TournamentStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
115
|
+
}
|
116
|
+
|
106
117
|
function serialize_tournament_TournamentStatusResponse(arg) {
|
107
118
|
if (!(arg instanceof tournament_pb.TournamentStatusResponse)) {
|
108
119
|
throw new Error('Expected argument of type tournament.TournamentStatusResponse');
|
@@ -194,6 +205,18 @@ createSingleTournament: {
|
|
194
205
|
responseSerialize: serialize_tournament_TournamentItemsResponse,
|
195
206
|
responseDeserialize: deserialize_tournament_TournamentItemsResponse,
|
196
207
|
},
|
208
|
+
// Tournament Statuses
|
209
|
+
readListTournamentStatuses: {
|
210
|
+
path: '/tournament.Tournament/readListTournamentStatuses',
|
211
|
+
requestStream: false,
|
212
|
+
responseStream: false,
|
213
|
+
requestType: tournament_pb.PaginationRequest,
|
214
|
+
responseType: tournament_pb.TournamentStatusItemsResponse,
|
215
|
+
requestSerialize: serialize_tournament_PaginationRequest,
|
216
|
+
requestDeserialize: deserialize_tournament_PaginationRequest,
|
217
|
+
responseSerialize: serialize_tournament_TournamentStatusItemsResponse,
|
218
|
+
responseDeserialize: deserialize_tournament_TournamentStatusItemsResponse,
|
219
|
+
},
|
197
220
|
};
|
198
221
|
|
199
222
|
exports.TournamentClient = grpc.makeGenericClientConstructor(TournamentService);
|
@@ -33,6 +33,8 @@ goog.exportSymbol('proto.tournament.TournamentItemsResponse', null, global);
|
|
33
33
|
goog.exportSymbol('proto.tournament.TournamentRequest', null, global);
|
34
34
|
goog.exportSymbol('proto.tournament.TournamentRequest.RequestCase', null, global);
|
35
35
|
goog.exportSymbol('proto.tournament.TournamentResponse', null, global);
|
36
|
+
goog.exportSymbol('proto.tournament.TournamentStatusItem', null, global);
|
37
|
+
goog.exportSymbol('proto.tournament.TournamentStatusItemsResponse', null, global);
|
36
38
|
goog.exportSymbol('proto.tournament.TournamentStatusResponse', null, global);
|
37
39
|
goog.exportSymbol('proto.tournament.UserSearchRequest', null, global);
|
38
40
|
/**
|
@@ -308,6 +310,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
308
310
|
*/
|
309
311
|
proto.tournament.TournamentStatusResponse.displayName = 'proto.tournament.TournamentStatusResponse';
|
310
312
|
}
|
313
|
+
/**
|
314
|
+
* Generated by JsPbCodeGenerator.
|
315
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
316
|
+
* server response, or constructed directly in Javascript. The array is used
|
317
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
318
|
+
* If no data is provided, the constructed object will be empty, but still
|
319
|
+
* valid.
|
320
|
+
* @extends {jspb.Message}
|
321
|
+
* @constructor
|
322
|
+
*/
|
323
|
+
proto.tournament.TournamentStatusItem = function(opt_data) {
|
324
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
325
|
+
};
|
326
|
+
goog.inherits(proto.tournament.TournamentStatusItem, jspb.Message);
|
327
|
+
if (goog.DEBUG && !COMPILED) {
|
328
|
+
/**
|
329
|
+
* @public
|
330
|
+
* @override
|
331
|
+
*/
|
332
|
+
proto.tournament.TournamentStatusItem.displayName = 'proto.tournament.TournamentStatusItem';
|
333
|
+
}
|
334
|
+
/**
|
335
|
+
* Generated by JsPbCodeGenerator.
|
336
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
337
|
+
* server response, or constructed directly in Javascript. The array is used
|
338
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
339
|
+
* If no data is provided, the constructed object will be empty, but still
|
340
|
+
* valid.
|
341
|
+
* @extends {jspb.Message}
|
342
|
+
* @constructor
|
343
|
+
*/
|
344
|
+
proto.tournament.TournamentStatusItemsResponse = function(opt_data) {
|
345
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.TournamentStatusItemsResponse.repeatedFields_, null);
|
346
|
+
};
|
347
|
+
goog.inherits(proto.tournament.TournamentStatusItemsResponse, jspb.Message);
|
348
|
+
if (goog.DEBUG && !COMPILED) {
|
349
|
+
/**
|
350
|
+
* @public
|
351
|
+
* @override
|
352
|
+
*/
|
353
|
+
proto.tournament.TournamentStatusItemsResponse.displayName = 'proto.tournament.TournamentStatusItemsResponse';
|
354
|
+
}
|
311
355
|
|
312
356
|
|
313
357
|
|
@@ -3392,4 +3436,516 @@ proto.tournament.TournamentStatusResponse.prototype.setStatus = function(value)
|
|
3392
3436
|
};
|
3393
3437
|
|
3394
3438
|
|
3439
|
+
|
3440
|
+
|
3441
|
+
|
3442
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3443
|
+
/**
|
3444
|
+
* Creates an object representation of this proto.
|
3445
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3446
|
+
* Optional fields that are not set will be set to undefined.
|
3447
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3448
|
+
* For the list of reserved names please see:
|
3449
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3450
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3451
|
+
* JSPB instance for transitional soy proto support:
|
3452
|
+
* http://goto/soy-param-migration
|
3453
|
+
* @return {!Object}
|
3454
|
+
*/
|
3455
|
+
proto.tournament.TournamentStatusItem.prototype.toObject = function(opt_includeInstance) {
|
3456
|
+
return proto.tournament.TournamentStatusItem.toObject(opt_includeInstance, this);
|
3457
|
+
};
|
3458
|
+
|
3459
|
+
|
3460
|
+
/**
|
3461
|
+
* Static version of the {@see toObject} method.
|
3462
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3463
|
+
* the JSPB instance for transitional soy proto support:
|
3464
|
+
* http://goto/soy-param-migration
|
3465
|
+
* @param {!proto.tournament.TournamentStatusItem} msg The msg instance to transform.
|
3466
|
+
* @return {!Object}
|
3467
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3468
|
+
*/
|
3469
|
+
proto.tournament.TournamentStatusItem.toObject = function(includeInstance, msg) {
|
3470
|
+
var f, obj = {
|
3471
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3472
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3473
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
3474
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, "")
|
3475
|
+
};
|
3476
|
+
|
3477
|
+
if (includeInstance) {
|
3478
|
+
obj.$jspbMessageInstance = msg;
|
3479
|
+
}
|
3480
|
+
return obj;
|
3481
|
+
};
|
3482
|
+
}
|
3483
|
+
|
3484
|
+
|
3485
|
+
/**
|
3486
|
+
* Deserializes binary data (in protobuf wire format).
|
3487
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3488
|
+
* @return {!proto.tournament.TournamentStatusItem}
|
3489
|
+
*/
|
3490
|
+
proto.tournament.TournamentStatusItem.deserializeBinary = function(bytes) {
|
3491
|
+
var reader = new jspb.BinaryReader(bytes);
|
3492
|
+
var msg = new proto.tournament.TournamentStatusItem;
|
3493
|
+
return proto.tournament.TournamentStatusItem.deserializeBinaryFromReader(msg, reader);
|
3494
|
+
};
|
3495
|
+
|
3496
|
+
|
3497
|
+
/**
|
3498
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3499
|
+
* given reader into the given message object.
|
3500
|
+
* @param {!proto.tournament.TournamentStatusItem} msg The message object to deserialize into.
|
3501
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3502
|
+
* @return {!proto.tournament.TournamentStatusItem}
|
3503
|
+
*/
|
3504
|
+
proto.tournament.TournamentStatusItem.deserializeBinaryFromReader = function(msg, reader) {
|
3505
|
+
while (reader.nextField()) {
|
3506
|
+
if (reader.isEndGroup()) {
|
3507
|
+
break;
|
3508
|
+
}
|
3509
|
+
var field = reader.getFieldNumber();
|
3510
|
+
switch (field) {
|
3511
|
+
case 1:
|
3512
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3513
|
+
msg.setId(value);
|
3514
|
+
break;
|
3515
|
+
case 2:
|
3516
|
+
var value = /** @type {string} */ (reader.readString());
|
3517
|
+
msg.setTitle(value);
|
3518
|
+
break;
|
3519
|
+
case 3:
|
3520
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
3521
|
+
msg.setIsActive(value);
|
3522
|
+
break;
|
3523
|
+
case 4:
|
3524
|
+
var value = /** @type {string} */ (reader.readString());
|
3525
|
+
msg.setDescription(value);
|
3526
|
+
break;
|
3527
|
+
default:
|
3528
|
+
reader.skipField();
|
3529
|
+
break;
|
3530
|
+
}
|
3531
|
+
}
|
3532
|
+
return msg;
|
3533
|
+
};
|
3534
|
+
|
3535
|
+
|
3536
|
+
/**
|
3537
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3538
|
+
* @return {!Uint8Array}
|
3539
|
+
*/
|
3540
|
+
proto.tournament.TournamentStatusItem.prototype.serializeBinary = function() {
|
3541
|
+
var writer = new jspb.BinaryWriter();
|
3542
|
+
proto.tournament.TournamentStatusItem.serializeBinaryToWriter(this, writer);
|
3543
|
+
return writer.getResultBuffer();
|
3544
|
+
};
|
3545
|
+
|
3546
|
+
|
3547
|
+
/**
|
3548
|
+
* Serializes the given message to binary data (in protobuf wire
|
3549
|
+
* format), writing to the given BinaryWriter.
|
3550
|
+
* @param {!proto.tournament.TournamentStatusItem} message
|
3551
|
+
* @param {!jspb.BinaryWriter} writer
|
3552
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3553
|
+
*/
|
3554
|
+
proto.tournament.TournamentStatusItem.serializeBinaryToWriter = function(message, writer) {
|
3555
|
+
var f = undefined;
|
3556
|
+
f = message.getId();
|
3557
|
+
if (f !== 0) {
|
3558
|
+
writer.writeInt32(
|
3559
|
+
1,
|
3560
|
+
f
|
3561
|
+
);
|
3562
|
+
}
|
3563
|
+
f = message.getTitle();
|
3564
|
+
if (f.length > 0) {
|
3565
|
+
writer.writeString(
|
3566
|
+
2,
|
3567
|
+
f
|
3568
|
+
);
|
3569
|
+
}
|
3570
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
|
3571
|
+
if (f != null) {
|
3572
|
+
writer.writeBool(
|
3573
|
+
3,
|
3574
|
+
f
|
3575
|
+
);
|
3576
|
+
}
|
3577
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
3578
|
+
if (f != null) {
|
3579
|
+
writer.writeString(
|
3580
|
+
4,
|
3581
|
+
f
|
3582
|
+
);
|
3583
|
+
}
|
3584
|
+
};
|
3585
|
+
|
3586
|
+
|
3587
|
+
/**
|
3588
|
+
* optional int32 id = 1;
|
3589
|
+
* @return {number}
|
3590
|
+
*/
|
3591
|
+
proto.tournament.TournamentStatusItem.prototype.getId = function() {
|
3592
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3593
|
+
};
|
3594
|
+
|
3595
|
+
|
3596
|
+
/**
|
3597
|
+
* @param {number} value
|
3598
|
+
* @return {!proto.tournament.TournamentStatusItem} returns this
|
3599
|
+
*/
|
3600
|
+
proto.tournament.TournamentStatusItem.prototype.setId = function(value) {
|
3601
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
3602
|
+
};
|
3603
|
+
|
3604
|
+
|
3605
|
+
/**
|
3606
|
+
* optional string title = 2;
|
3607
|
+
* @return {string}
|
3608
|
+
*/
|
3609
|
+
proto.tournament.TournamentStatusItem.prototype.getTitle = function() {
|
3610
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3611
|
+
};
|
3612
|
+
|
3613
|
+
|
3614
|
+
/**
|
3615
|
+
* @param {string} value
|
3616
|
+
* @return {!proto.tournament.TournamentStatusItem} returns this
|
3617
|
+
*/
|
3618
|
+
proto.tournament.TournamentStatusItem.prototype.setTitle = function(value) {
|
3619
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
3620
|
+
};
|
3621
|
+
|
3622
|
+
|
3623
|
+
/**
|
3624
|
+
* optional bool is_active = 3;
|
3625
|
+
* @return {boolean}
|
3626
|
+
*/
|
3627
|
+
proto.tournament.TournamentStatusItem.prototype.getIsActive = function() {
|
3628
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
3629
|
+
};
|
3630
|
+
|
3631
|
+
|
3632
|
+
/**
|
3633
|
+
* @param {boolean} value
|
3634
|
+
* @return {!proto.tournament.TournamentStatusItem} returns this
|
3635
|
+
*/
|
3636
|
+
proto.tournament.TournamentStatusItem.prototype.setIsActive = function(value) {
|
3637
|
+
return jspb.Message.setField(this, 3, value);
|
3638
|
+
};
|
3639
|
+
|
3640
|
+
|
3641
|
+
/**
|
3642
|
+
* Clears the field making it undefined.
|
3643
|
+
* @return {!proto.tournament.TournamentStatusItem} returns this
|
3644
|
+
*/
|
3645
|
+
proto.tournament.TournamentStatusItem.prototype.clearIsActive = function() {
|
3646
|
+
return jspb.Message.setField(this, 3, undefined);
|
3647
|
+
};
|
3648
|
+
|
3649
|
+
|
3650
|
+
/**
|
3651
|
+
* Returns whether this field is set.
|
3652
|
+
* @return {boolean}
|
3653
|
+
*/
|
3654
|
+
proto.tournament.TournamentStatusItem.prototype.hasIsActive = function() {
|
3655
|
+
return jspb.Message.getField(this, 3) != null;
|
3656
|
+
};
|
3657
|
+
|
3658
|
+
|
3659
|
+
/**
|
3660
|
+
* optional string description = 4;
|
3661
|
+
* @return {string}
|
3662
|
+
*/
|
3663
|
+
proto.tournament.TournamentStatusItem.prototype.getDescription = function() {
|
3664
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3665
|
+
};
|
3666
|
+
|
3667
|
+
|
3668
|
+
/**
|
3669
|
+
* @param {string} value
|
3670
|
+
* @return {!proto.tournament.TournamentStatusItem} returns this
|
3671
|
+
*/
|
3672
|
+
proto.tournament.TournamentStatusItem.prototype.setDescription = function(value) {
|
3673
|
+
return jspb.Message.setField(this, 4, value);
|
3674
|
+
};
|
3675
|
+
|
3676
|
+
|
3677
|
+
/**
|
3678
|
+
* Clears the field making it undefined.
|
3679
|
+
* @return {!proto.tournament.TournamentStatusItem} returns this
|
3680
|
+
*/
|
3681
|
+
proto.tournament.TournamentStatusItem.prototype.clearDescription = function() {
|
3682
|
+
return jspb.Message.setField(this, 4, undefined);
|
3683
|
+
};
|
3684
|
+
|
3685
|
+
|
3686
|
+
/**
|
3687
|
+
* Returns whether this field is set.
|
3688
|
+
* @return {boolean}
|
3689
|
+
*/
|
3690
|
+
proto.tournament.TournamentStatusItem.prototype.hasDescription = function() {
|
3691
|
+
return jspb.Message.getField(this, 4) != null;
|
3692
|
+
};
|
3693
|
+
|
3694
|
+
|
3695
|
+
|
3696
|
+
/**
|
3697
|
+
* List of repeated fields within this message type.
|
3698
|
+
* @private {!Array<number>}
|
3699
|
+
* @const
|
3700
|
+
*/
|
3701
|
+
proto.tournament.TournamentStatusItemsResponse.repeatedFields_ = [1];
|
3702
|
+
|
3703
|
+
|
3704
|
+
|
3705
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3706
|
+
/**
|
3707
|
+
* Creates an object representation of this proto.
|
3708
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3709
|
+
* Optional fields that are not set will be set to undefined.
|
3710
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3711
|
+
* For the list of reserved names please see:
|
3712
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3713
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3714
|
+
* JSPB instance for transitional soy proto support:
|
3715
|
+
* http://goto/soy-param-migration
|
3716
|
+
* @return {!Object}
|
3717
|
+
*/
|
3718
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
3719
|
+
return proto.tournament.TournamentStatusItemsResponse.toObject(opt_includeInstance, this);
|
3720
|
+
};
|
3721
|
+
|
3722
|
+
|
3723
|
+
/**
|
3724
|
+
* Static version of the {@see toObject} method.
|
3725
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3726
|
+
* the JSPB instance for transitional soy proto support:
|
3727
|
+
* http://goto/soy-param-migration
|
3728
|
+
* @param {!proto.tournament.TournamentStatusItemsResponse} msg The msg instance to transform.
|
3729
|
+
* @return {!Object}
|
3730
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3731
|
+
*/
|
3732
|
+
proto.tournament.TournamentStatusItemsResponse.toObject = function(includeInstance, msg) {
|
3733
|
+
var f, obj = {
|
3734
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
3735
|
+
proto.tournament.TournamentStatusItem.toObject, includeInstance),
|
3736
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
3737
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
3738
|
+
};
|
3739
|
+
|
3740
|
+
if (includeInstance) {
|
3741
|
+
obj.$jspbMessageInstance = msg;
|
3742
|
+
}
|
3743
|
+
return obj;
|
3744
|
+
};
|
3745
|
+
}
|
3746
|
+
|
3747
|
+
|
3748
|
+
/**
|
3749
|
+
* Deserializes binary data (in protobuf wire format).
|
3750
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3751
|
+
* @return {!proto.tournament.TournamentStatusItemsResponse}
|
3752
|
+
*/
|
3753
|
+
proto.tournament.TournamentStatusItemsResponse.deserializeBinary = function(bytes) {
|
3754
|
+
var reader = new jspb.BinaryReader(bytes);
|
3755
|
+
var msg = new proto.tournament.TournamentStatusItemsResponse;
|
3756
|
+
return proto.tournament.TournamentStatusItemsResponse.deserializeBinaryFromReader(msg, reader);
|
3757
|
+
};
|
3758
|
+
|
3759
|
+
|
3760
|
+
/**
|
3761
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3762
|
+
* given reader into the given message object.
|
3763
|
+
* @param {!proto.tournament.TournamentStatusItemsResponse} msg The message object to deserialize into.
|
3764
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3765
|
+
* @return {!proto.tournament.TournamentStatusItemsResponse}
|
3766
|
+
*/
|
3767
|
+
proto.tournament.TournamentStatusItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
3768
|
+
while (reader.nextField()) {
|
3769
|
+
if (reader.isEndGroup()) {
|
3770
|
+
break;
|
3771
|
+
}
|
3772
|
+
var field = reader.getFieldNumber();
|
3773
|
+
switch (field) {
|
3774
|
+
case 1:
|
3775
|
+
var value = new proto.tournament.TournamentStatusItem;
|
3776
|
+
reader.readMessage(value,proto.tournament.TournamentStatusItem.deserializeBinaryFromReader);
|
3777
|
+
msg.addItems(value);
|
3778
|
+
break;
|
3779
|
+
case 2:
|
3780
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3781
|
+
msg.setTotalPages(value);
|
3782
|
+
break;
|
3783
|
+
case 3:
|
3784
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3785
|
+
msg.setTotalItems(value);
|
3786
|
+
break;
|
3787
|
+
default:
|
3788
|
+
reader.skipField();
|
3789
|
+
break;
|
3790
|
+
}
|
3791
|
+
}
|
3792
|
+
return msg;
|
3793
|
+
};
|
3794
|
+
|
3795
|
+
|
3796
|
+
/**
|
3797
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3798
|
+
* @return {!Uint8Array}
|
3799
|
+
*/
|
3800
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.serializeBinary = function() {
|
3801
|
+
var writer = new jspb.BinaryWriter();
|
3802
|
+
proto.tournament.TournamentStatusItemsResponse.serializeBinaryToWriter(this, writer);
|
3803
|
+
return writer.getResultBuffer();
|
3804
|
+
};
|
3805
|
+
|
3806
|
+
|
3807
|
+
/**
|
3808
|
+
* Serializes the given message to binary data (in protobuf wire
|
3809
|
+
* format), writing to the given BinaryWriter.
|
3810
|
+
* @param {!proto.tournament.TournamentStatusItemsResponse} message
|
3811
|
+
* @param {!jspb.BinaryWriter} writer
|
3812
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3813
|
+
*/
|
3814
|
+
proto.tournament.TournamentStatusItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
3815
|
+
var f = undefined;
|
3816
|
+
f = message.getItemsList();
|
3817
|
+
if (f.length > 0) {
|
3818
|
+
writer.writeRepeatedMessage(
|
3819
|
+
1,
|
3820
|
+
f,
|
3821
|
+
proto.tournament.TournamentStatusItem.serializeBinaryToWriter
|
3822
|
+
);
|
3823
|
+
}
|
3824
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
3825
|
+
if (f != null) {
|
3826
|
+
writer.writeInt32(
|
3827
|
+
2,
|
3828
|
+
f
|
3829
|
+
);
|
3830
|
+
}
|
3831
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
3832
|
+
if (f != null) {
|
3833
|
+
writer.writeInt32(
|
3834
|
+
3,
|
3835
|
+
f
|
3836
|
+
);
|
3837
|
+
}
|
3838
|
+
};
|
3839
|
+
|
3840
|
+
|
3841
|
+
/**
|
3842
|
+
* repeated TournamentStatusItem items = 1;
|
3843
|
+
* @return {!Array<!proto.tournament.TournamentStatusItem>}
|
3844
|
+
*/
|
3845
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.getItemsList = function() {
|
3846
|
+
return /** @type{!Array<!proto.tournament.TournamentStatusItem>} */ (
|
3847
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.TournamentStatusItem, 1));
|
3848
|
+
};
|
3849
|
+
|
3850
|
+
|
3851
|
+
/**
|
3852
|
+
* @param {!Array<!proto.tournament.TournamentStatusItem>} value
|
3853
|
+
* @return {!proto.tournament.TournamentStatusItemsResponse} returns this
|
3854
|
+
*/
|
3855
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.setItemsList = function(value) {
|
3856
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
3857
|
+
};
|
3858
|
+
|
3859
|
+
|
3860
|
+
/**
|
3861
|
+
* @param {!proto.tournament.TournamentStatusItem=} opt_value
|
3862
|
+
* @param {number=} opt_index
|
3863
|
+
* @return {!proto.tournament.TournamentStatusItem}
|
3864
|
+
*/
|
3865
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
3866
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tournament.TournamentStatusItem, opt_index);
|
3867
|
+
};
|
3868
|
+
|
3869
|
+
|
3870
|
+
/**
|
3871
|
+
* Clears the list making it empty but non-null.
|
3872
|
+
* @return {!proto.tournament.TournamentStatusItemsResponse} returns this
|
3873
|
+
*/
|
3874
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.clearItemsList = function() {
|
3875
|
+
return this.setItemsList([]);
|
3876
|
+
};
|
3877
|
+
|
3878
|
+
|
3879
|
+
/**
|
3880
|
+
* optional int32 total_pages = 2;
|
3881
|
+
* @return {number}
|
3882
|
+
*/
|
3883
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.getTotalPages = function() {
|
3884
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
3885
|
+
};
|
3886
|
+
|
3887
|
+
|
3888
|
+
/**
|
3889
|
+
* @param {number} value
|
3890
|
+
* @return {!proto.tournament.TournamentStatusItemsResponse} returns this
|
3891
|
+
*/
|
3892
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.setTotalPages = function(value) {
|
3893
|
+
return jspb.Message.setField(this, 2, value);
|
3894
|
+
};
|
3895
|
+
|
3896
|
+
|
3897
|
+
/**
|
3898
|
+
* Clears the field making it undefined.
|
3899
|
+
* @return {!proto.tournament.TournamentStatusItemsResponse} returns this
|
3900
|
+
*/
|
3901
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.clearTotalPages = function() {
|
3902
|
+
return jspb.Message.setField(this, 2, undefined);
|
3903
|
+
};
|
3904
|
+
|
3905
|
+
|
3906
|
+
/**
|
3907
|
+
* Returns whether this field is set.
|
3908
|
+
* @return {boolean}
|
3909
|
+
*/
|
3910
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.hasTotalPages = function() {
|
3911
|
+
return jspb.Message.getField(this, 2) != null;
|
3912
|
+
};
|
3913
|
+
|
3914
|
+
|
3915
|
+
/**
|
3916
|
+
* optional int32 total_items = 3;
|
3917
|
+
* @return {number}
|
3918
|
+
*/
|
3919
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.getTotalItems = function() {
|
3920
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
3921
|
+
};
|
3922
|
+
|
3923
|
+
|
3924
|
+
/**
|
3925
|
+
* @param {number} value
|
3926
|
+
* @return {!proto.tournament.TournamentStatusItemsResponse} returns this
|
3927
|
+
*/
|
3928
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.setTotalItems = function(value) {
|
3929
|
+
return jspb.Message.setField(this, 3, value);
|
3930
|
+
};
|
3931
|
+
|
3932
|
+
|
3933
|
+
/**
|
3934
|
+
* Clears the field making it undefined.
|
3935
|
+
* @return {!proto.tournament.TournamentStatusItemsResponse} returns this
|
3936
|
+
*/
|
3937
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.clearTotalItems = function() {
|
3938
|
+
return jspb.Message.setField(this, 3, undefined);
|
3939
|
+
};
|
3940
|
+
|
3941
|
+
|
3942
|
+
/**
|
3943
|
+
* Returns whether this field is set.
|
3944
|
+
* @return {boolean}
|
3945
|
+
*/
|
3946
|
+
proto.tournament.TournamentStatusItemsResponse.prototype.hasTotalItems = function() {
|
3947
|
+
return jspb.Message.getField(this, 3) != null;
|
3948
|
+
};
|
3949
|
+
|
3950
|
+
|
3395
3951
|
goog.object.extend(exports, proto.tournament);
|