protobuf-platform 1.2.244 → 1.2.246
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
|
@@ -24,6 +24,7 @@ service Tournament {
|
|
|
24
24
|
rpc getSingleTournamentForUser(UserTournamentRequest) returns (UserTournamentItem);
|
|
25
25
|
rpc getActiveUserTournaments(ActiveUserTournamentsRequest) returns (UserTournamentItemsResponse);
|
|
26
26
|
rpc getTournamentLeaderboard(GetTournamentLeaderboardRequest) returns (TournamentLeaderboardResponse);
|
|
27
|
+
rpc getOnlineTournamentInfo(GetOnlineTournamentInfoRequest) returns (OnlineTournamentInfoResponse);
|
|
27
28
|
rpc attachUserToTournament(UserTournamentRequest) returns (TournamentStatusResponse);
|
|
28
29
|
rpc resolveAutoTournamentForGameSession(ResolveAutoTournamentForGameSessionRequest) returns (ResolveAutoTournamentForGameSessionResponse);
|
|
29
30
|
}
|
|
@@ -240,6 +241,25 @@ message TournamentLeaderboardResponse {
|
|
|
240
241
|
optional TournamentLeaderboardUserItem my_position = 2;
|
|
241
242
|
}
|
|
242
243
|
|
|
244
|
+
message GetOnlineTournamentInfoRequest {
|
|
245
|
+
uint64 tournament_id = 1;
|
|
246
|
+
uint64 user_id = 2; // gateway will provide from JWT
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
message OnlineTournamentInfoResponse {
|
|
250
|
+
uint64 tournament_id = 1;
|
|
251
|
+
optional string title = 2;
|
|
252
|
+
optional string description = 3;
|
|
253
|
+
optional int32 current_members_count = 4;
|
|
254
|
+
optional int32 max_members_count = 5;
|
|
255
|
+
optional string image = 6;
|
|
256
|
+
optional string image_cdn = 7;
|
|
257
|
+
uint64 end_in_milliseconds = 8; // countdown timer value in ms, always >= 0
|
|
258
|
+
repeated RewardItem rewards_places = 9; // all reward places for podium rendering
|
|
259
|
+
repeated TournamentLeaderboardUserItem top20 = 10; // top 20 snapshot (rank is 1-based)
|
|
260
|
+
optional TournamentLeaderboardUserItem me = 11; // MUST be returned by backend even if not in top20
|
|
261
|
+
}
|
|
262
|
+
|
|
243
263
|
message ResolveAutoTournamentForGameSessionRequest {
|
|
244
264
|
uint64 user_id = 1;
|
|
245
265
|
repeated uint64 tournament_ids = 2; // candidate tournaments for the game
|
|
@@ -37,6 +37,17 @@ function deserialize_tournament_GetFileRequest(buffer_arg) {
|
|
|
37
37
|
return tournament_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
function serialize_tournament_GetOnlineTournamentInfoRequest(arg) {
|
|
41
|
+
if (!(arg instanceof tournament_pb.GetOnlineTournamentInfoRequest)) {
|
|
42
|
+
throw new Error('Expected argument of type tournament.GetOnlineTournamentInfoRequest');
|
|
43
|
+
}
|
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function deserialize_tournament_GetOnlineTournamentInfoRequest(buffer_arg) {
|
|
48
|
+
return tournament_pb.GetOnlineTournamentInfoRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
function serialize_tournament_GetTournamentLeaderboardRequest(arg) {
|
|
41
52
|
if (!(arg instanceof tournament_pb.GetTournamentLeaderboardRequest)) {
|
|
42
53
|
throw new Error('Expected argument of type tournament.GetTournamentLeaderboardRequest');
|
|
@@ -70,6 +81,17 @@ function deserialize_tournament_ItemsBunchRequest(buffer_arg) {
|
|
|
70
81
|
return tournament_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
82
|
}
|
|
72
83
|
|
|
84
|
+
function serialize_tournament_OnlineTournamentInfoResponse(arg) {
|
|
85
|
+
if (!(arg instanceof tournament_pb.OnlineTournamentInfoResponse)) {
|
|
86
|
+
throw new Error('Expected argument of type tournament.OnlineTournamentInfoResponse');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_tournament_OnlineTournamentInfoResponse(buffer_arg) {
|
|
92
|
+
return tournament_pb.OnlineTournamentInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
function serialize_tournament_PaginationRequest(arg) {
|
|
74
96
|
if (!(arg instanceof tournament_pb.PaginationRequest)) {
|
|
75
97
|
throw new Error('Expected argument of type tournament.PaginationRequest');
|
|
@@ -492,6 +514,17 @@ readListTournamentStatuses: {
|
|
|
492
514
|
responseSerialize: serialize_tournament_TournamentLeaderboardResponse,
|
|
493
515
|
responseDeserialize: deserialize_tournament_TournamentLeaderboardResponse,
|
|
494
516
|
},
|
|
517
|
+
getOnlineTournamentInfo: {
|
|
518
|
+
path: '/tournament.Tournament/getOnlineTournamentInfo',
|
|
519
|
+
requestStream: false,
|
|
520
|
+
responseStream: false,
|
|
521
|
+
requestType: tournament_pb.GetOnlineTournamentInfoRequest,
|
|
522
|
+
responseType: tournament_pb.OnlineTournamentInfoResponse,
|
|
523
|
+
requestSerialize: serialize_tournament_GetOnlineTournamentInfoRequest,
|
|
524
|
+
requestDeserialize: deserialize_tournament_GetOnlineTournamentInfoRequest,
|
|
525
|
+
responseSerialize: serialize_tournament_OnlineTournamentInfoResponse,
|
|
526
|
+
responseDeserialize: deserialize_tournament_OnlineTournamentInfoResponse,
|
|
527
|
+
},
|
|
495
528
|
attachUserToTournament: {
|
|
496
529
|
path: '/tournament.Tournament/attachUserToTournament',
|
|
497
530
|
requestStream: false,
|
|
@@ -26,9 +26,11 @@ goog.exportSymbol('proto.tournament.ActiveUserTournamentsRequest', null, global)
|
|
|
26
26
|
goog.exportSymbol('proto.tournament.ContentItem', null, global);
|
|
27
27
|
goog.exportSymbol('proto.tournament.File', null, global);
|
|
28
28
|
goog.exportSymbol('proto.tournament.GetFileRequest', null, global);
|
|
29
|
+
goog.exportSymbol('proto.tournament.GetOnlineTournamentInfoRequest', null, global);
|
|
29
30
|
goog.exportSymbol('proto.tournament.GetTournamentLeaderboardRequest', null, global);
|
|
30
31
|
goog.exportSymbol('proto.tournament.GetTournamentRequest', null, global);
|
|
31
32
|
goog.exportSymbol('proto.tournament.ItemsBunchRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.tournament.OnlineTournamentInfoResponse', null, global);
|
|
32
34
|
goog.exportSymbol('proto.tournament.PaginationRequest', null, global);
|
|
33
35
|
goog.exportSymbol('proto.tournament.PingRequest', null, global);
|
|
34
36
|
goog.exportSymbol('proto.tournament.PongResponse', null, global);
|
|
@@ -750,6 +752,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
750
752
|
*/
|
|
751
753
|
proto.tournament.TournamentLeaderboardResponse.displayName = 'proto.tournament.TournamentLeaderboardResponse';
|
|
752
754
|
}
|
|
755
|
+
/**
|
|
756
|
+
* Generated by JsPbCodeGenerator.
|
|
757
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
758
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
759
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
760
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
761
|
+
* valid.
|
|
762
|
+
* @extends {jspb.Message}
|
|
763
|
+
* @constructor
|
|
764
|
+
*/
|
|
765
|
+
proto.tournament.GetOnlineTournamentInfoRequest = function(opt_data) {
|
|
766
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
767
|
+
};
|
|
768
|
+
goog.inherits(proto.tournament.GetOnlineTournamentInfoRequest, jspb.Message);
|
|
769
|
+
if (goog.DEBUG && !COMPILED) {
|
|
770
|
+
/**
|
|
771
|
+
* @public
|
|
772
|
+
* @override
|
|
773
|
+
*/
|
|
774
|
+
proto.tournament.GetOnlineTournamentInfoRequest.displayName = 'proto.tournament.GetOnlineTournamentInfoRequest';
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Generated by JsPbCodeGenerator.
|
|
778
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
779
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
780
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
781
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
782
|
+
* valid.
|
|
783
|
+
* @extends {jspb.Message}
|
|
784
|
+
* @constructor
|
|
785
|
+
*/
|
|
786
|
+
proto.tournament.OnlineTournamentInfoResponse = function(opt_data) {
|
|
787
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.OnlineTournamentInfoResponse.repeatedFields_, null);
|
|
788
|
+
};
|
|
789
|
+
goog.inherits(proto.tournament.OnlineTournamentInfoResponse, jspb.Message);
|
|
790
|
+
if (goog.DEBUG && !COMPILED) {
|
|
791
|
+
/**
|
|
792
|
+
* @public
|
|
793
|
+
* @override
|
|
794
|
+
*/
|
|
795
|
+
proto.tournament.OnlineTournamentInfoResponse.displayName = 'proto.tournament.OnlineTournamentInfoResponse';
|
|
796
|
+
}
|
|
753
797
|
/**
|
|
754
798
|
* Generated by JsPbCodeGenerator.
|
|
755
799
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -10906,6 +10950,778 @@ proto.tournament.TournamentLeaderboardResponse.prototype.hasMyPosition = functio
|
|
|
10906
10950
|
|
|
10907
10951
|
|
|
10908
10952
|
|
|
10953
|
+
|
|
10954
|
+
|
|
10955
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10956
|
+
/**
|
|
10957
|
+
* Creates an object representation of this proto.
|
|
10958
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10959
|
+
* Optional fields that are not set will be set to undefined.
|
|
10960
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10961
|
+
* For the list of reserved names please see:
|
|
10962
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10963
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10964
|
+
* JSPB instance for transitional soy proto support:
|
|
10965
|
+
* http://goto/soy-param-migration
|
|
10966
|
+
* @return {!Object}
|
|
10967
|
+
*/
|
|
10968
|
+
proto.tournament.GetOnlineTournamentInfoRequest.prototype.toObject = function(opt_includeInstance) {
|
|
10969
|
+
return proto.tournament.GetOnlineTournamentInfoRequest.toObject(opt_includeInstance, this);
|
|
10970
|
+
};
|
|
10971
|
+
|
|
10972
|
+
|
|
10973
|
+
/**
|
|
10974
|
+
* Static version of the {@see toObject} method.
|
|
10975
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10976
|
+
* the JSPB instance for transitional soy proto support:
|
|
10977
|
+
* http://goto/soy-param-migration
|
|
10978
|
+
* @param {!proto.tournament.GetOnlineTournamentInfoRequest} msg The msg instance to transform.
|
|
10979
|
+
* @return {!Object}
|
|
10980
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10981
|
+
*/
|
|
10982
|
+
proto.tournament.GetOnlineTournamentInfoRequest.toObject = function(includeInstance, msg) {
|
|
10983
|
+
var f, obj = {
|
|
10984
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
10985
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
10986
|
+
};
|
|
10987
|
+
|
|
10988
|
+
if (includeInstance) {
|
|
10989
|
+
obj.$jspbMessageInstance = msg;
|
|
10990
|
+
}
|
|
10991
|
+
return obj;
|
|
10992
|
+
};
|
|
10993
|
+
}
|
|
10994
|
+
|
|
10995
|
+
|
|
10996
|
+
/**
|
|
10997
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10998
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10999
|
+
* @return {!proto.tournament.GetOnlineTournamentInfoRequest}
|
|
11000
|
+
*/
|
|
11001
|
+
proto.tournament.GetOnlineTournamentInfoRequest.deserializeBinary = function(bytes) {
|
|
11002
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
11003
|
+
var msg = new proto.tournament.GetOnlineTournamentInfoRequest;
|
|
11004
|
+
return proto.tournament.GetOnlineTournamentInfoRequest.deserializeBinaryFromReader(msg, reader);
|
|
11005
|
+
};
|
|
11006
|
+
|
|
11007
|
+
|
|
11008
|
+
/**
|
|
11009
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
11010
|
+
* given reader into the given message object.
|
|
11011
|
+
* @param {!proto.tournament.GetOnlineTournamentInfoRequest} msg The message object to deserialize into.
|
|
11012
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
11013
|
+
* @return {!proto.tournament.GetOnlineTournamentInfoRequest}
|
|
11014
|
+
*/
|
|
11015
|
+
proto.tournament.GetOnlineTournamentInfoRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
11016
|
+
while (reader.nextField()) {
|
|
11017
|
+
if (reader.isEndGroup()) {
|
|
11018
|
+
break;
|
|
11019
|
+
}
|
|
11020
|
+
var field = reader.getFieldNumber();
|
|
11021
|
+
switch (field) {
|
|
11022
|
+
case 1:
|
|
11023
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
11024
|
+
msg.setTournamentId(value);
|
|
11025
|
+
break;
|
|
11026
|
+
case 2:
|
|
11027
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
11028
|
+
msg.setUserId(value);
|
|
11029
|
+
break;
|
|
11030
|
+
default:
|
|
11031
|
+
reader.skipField();
|
|
11032
|
+
break;
|
|
11033
|
+
}
|
|
11034
|
+
}
|
|
11035
|
+
return msg;
|
|
11036
|
+
};
|
|
11037
|
+
|
|
11038
|
+
|
|
11039
|
+
/**
|
|
11040
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
11041
|
+
* @return {!Uint8Array}
|
|
11042
|
+
*/
|
|
11043
|
+
proto.tournament.GetOnlineTournamentInfoRequest.prototype.serializeBinary = function() {
|
|
11044
|
+
var writer = new jspb.BinaryWriter();
|
|
11045
|
+
proto.tournament.GetOnlineTournamentInfoRequest.serializeBinaryToWriter(this, writer);
|
|
11046
|
+
return writer.getResultBuffer();
|
|
11047
|
+
};
|
|
11048
|
+
|
|
11049
|
+
|
|
11050
|
+
/**
|
|
11051
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
11052
|
+
* format), writing to the given BinaryWriter.
|
|
11053
|
+
* @param {!proto.tournament.GetOnlineTournamentInfoRequest} message
|
|
11054
|
+
* @param {!jspb.BinaryWriter} writer
|
|
11055
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11056
|
+
*/
|
|
11057
|
+
proto.tournament.GetOnlineTournamentInfoRequest.serializeBinaryToWriter = function(message, writer) {
|
|
11058
|
+
var f = undefined;
|
|
11059
|
+
f = message.getTournamentId();
|
|
11060
|
+
if (f !== 0) {
|
|
11061
|
+
writer.writeUint64(
|
|
11062
|
+
1,
|
|
11063
|
+
f
|
|
11064
|
+
);
|
|
11065
|
+
}
|
|
11066
|
+
f = message.getUserId();
|
|
11067
|
+
if (f !== 0) {
|
|
11068
|
+
writer.writeUint64(
|
|
11069
|
+
2,
|
|
11070
|
+
f
|
|
11071
|
+
);
|
|
11072
|
+
}
|
|
11073
|
+
};
|
|
11074
|
+
|
|
11075
|
+
|
|
11076
|
+
/**
|
|
11077
|
+
* optional uint64 tournament_id = 1;
|
|
11078
|
+
* @return {number}
|
|
11079
|
+
*/
|
|
11080
|
+
proto.tournament.GetOnlineTournamentInfoRequest.prototype.getTournamentId = function() {
|
|
11081
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
11082
|
+
};
|
|
11083
|
+
|
|
11084
|
+
|
|
11085
|
+
/**
|
|
11086
|
+
* @param {number} value
|
|
11087
|
+
* @return {!proto.tournament.GetOnlineTournamentInfoRequest} returns this
|
|
11088
|
+
*/
|
|
11089
|
+
proto.tournament.GetOnlineTournamentInfoRequest.prototype.setTournamentId = function(value) {
|
|
11090
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
11091
|
+
};
|
|
11092
|
+
|
|
11093
|
+
|
|
11094
|
+
/**
|
|
11095
|
+
* optional uint64 user_id = 2;
|
|
11096
|
+
* @return {number}
|
|
11097
|
+
*/
|
|
11098
|
+
proto.tournament.GetOnlineTournamentInfoRequest.prototype.getUserId = function() {
|
|
11099
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
11100
|
+
};
|
|
11101
|
+
|
|
11102
|
+
|
|
11103
|
+
/**
|
|
11104
|
+
* @param {number} value
|
|
11105
|
+
* @return {!proto.tournament.GetOnlineTournamentInfoRequest} returns this
|
|
11106
|
+
*/
|
|
11107
|
+
proto.tournament.GetOnlineTournamentInfoRequest.prototype.setUserId = function(value) {
|
|
11108
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
11109
|
+
};
|
|
11110
|
+
|
|
11111
|
+
|
|
11112
|
+
|
|
11113
|
+
/**
|
|
11114
|
+
* List of repeated fields within this message type.
|
|
11115
|
+
* @private {!Array<number>}
|
|
11116
|
+
* @const
|
|
11117
|
+
*/
|
|
11118
|
+
proto.tournament.OnlineTournamentInfoResponse.repeatedFields_ = [9,10];
|
|
11119
|
+
|
|
11120
|
+
|
|
11121
|
+
|
|
11122
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11123
|
+
/**
|
|
11124
|
+
* Creates an object representation of this proto.
|
|
11125
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
11126
|
+
* Optional fields that are not set will be set to undefined.
|
|
11127
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
11128
|
+
* For the list of reserved names please see:
|
|
11129
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
11130
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
11131
|
+
* JSPB instance for transitional soy proto support:
|
|
11132
|
+
* http://goto/soy-param-migration
|
|
11133
|
+
* @return {!Object}
|
|
11134
|
+
*/
|
|
11135
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.toObject = function(opt_includeInstance) {
|
|
11136
|
+
return proto.tournament.OnlineTournamentInfoResponse.toObject(opt_includeInstance, this);
|
|
11137
|
+
};
|
|
11138
|
+
|
|
11139
|
+
|
|
11140
|
+
/**
|
|
11141
|
+
* Static version of the {@see toObject} method.
|
|
11142
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
11143
|
+
* the JSPB instance for transitional soy proto support:
|
|
11144
|
+
* http://goto/soy-param-migration
|
|
11145
|
+
* @param {!proto.tournament.OnlineTournamentInfoResponse} msg The msg instance to transform.
|
|
11146
|
+
* @return {!Object}
|
|
11147
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11148
|
+
*/
|
|
11149
|
+
proto.tournament.OnlineTournamentInfoResponse.toObject = function(includeInstance, msg) {
|
|
11150
|
+
var f, obj = {
|
|
11151
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
11152
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
11153
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
11154
|
+
currentMembersCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
11155
|
+
maxMembersCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
11156
|
+
image: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
11157
|
+
imageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
11158
|
+
endInMilliseconds: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
11159
|
+
rewardsPlacesList: jspb.Message.toObjectList(msg.getRewardsPlacesList(),
|
|
11160
|
+
proto.tournament.RewardItem.toObject, includeInstance),
|
|
11161
|
+
top20List: jspb.Message.toObjectList(msg.getTop20List(),
|
|
11162
|
+
proto.tournament.TournamentLeaderboardUserItem.toObject, includeInstance),
|
|
11163
|
+
me: (f = msg.getMe()) && proto.tournament.TournamentLeaderboardUserItem.toObject(includeInstance, f)
|
|
11164
|
+
};
|
|
11165
|
+
|
|
11166
|
+
if (includeInstance) {
|
|
11167
|
+
obj.$jspbMessageInstance = msg;
|
|
11168
|
+
}
|
|
11169
|
+
return obj;
|
|
11170
|
+
};
|
|
11171
|
+
}
|
|
11172
|
+
|
|
11173
|
+
|
|
11174
|
+
/**
|
|
11175
|
+
* Deserializes binary data (in protobuf wire format).
|
|
11176
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
11177
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse}
|
|
11178
|
+
*/
|
|
11179
|
+
proto.tournament.OnlineTournamentInfoResponse.deserializeBinary = function(bytes) {
|
|
11180
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
11181
|
+
var msg = new proto.tournament.OnlineTournamentInfoResponse;
|
|
11182
|
+
return proto.tournament.OnlineTournamentInfoResponse.deserializeBinaryFromReader(msg, reader);
|
|
11183
|
+
};
|
|
11184
|
+
|
|
11185
|
+
|
|
11186
|
+
/**
|
|
11187
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
11188
|
+
* given reader into the given message object.
|
|
11189
|
+
* @param {!proto.tournament.OnlineTournamentInfoResponse} msg The message object to deserialize into.
|
|
11190
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
11191
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse}
|
|
11192
|
+
*/
|
|
11193
|
+
proto.tournament.OnlineTournamentInfoResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
11194
|
+
while (reader.nextField()) {
|
|
11195
|
+
if (reader.isEndGroup()) {
|
|
11196
|
+
break;
|
|
11197
|
+
}
|
|
11198
|
+
var field = reader.getFieldNumber();
|
|
11199
|
+
switch (field) {
|
|
11200
|
+
case 1:
|
|
11201
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
11202
|
+
msg.setTournamentId(value);
|
|
11203
|
+
break;
|
|
11204
|
+
case 2:
|
|
11205
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11206
|
+
msg.setTitle(value);
|
|
11207
|
+
break;
|
|
11208
|
+
case 3:
|
|
11209
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11210
|
+
msg.setDescription(value);
|
|
11211
|
+
break;
|
|
11212
|
+
case 4:
|
|
11213
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
11214
|
+
msg.setCurrentMembersCount(value);
|
|
11215
|
+
break;
|
|
11216
|
+
case 5:
|
|
11217
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
11218
|
+
msg.setMaxMembersCount(value);
|
|
11219
|
+
break;
|
|
11220
|
+
case 6:
|
|
11221
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11222
|
+
msg.setImage(value);
|
|
11223
|
+
break;
|
|
11224
|
+
case 7:
|
|
11225
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11226
|
+
msg.setImageCdn(value);
|
|
11227
|
+
break;
|
|
11228
|
+
case 8:
|
|
11229
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
11230
|
+
msg.setEndInMilliseconds(value);
|
|
11231
|
+
break;
|
|
11232
|
+
case 9:
|
|
11233
|
+
var value = new proto.tournament.RewardItem;
|
|
11234
|
+
reader.readMessage(value,proto.tournament.RewardItem.deserializeBinaryFromReader);
|
|
11235
|
+
msg.addRewardsPlaces(value);
|
|
11236
|
+
break;
|
|
11237
|
+
case 10:
|
|
11238
|
+
var value = new proto.tournament.TournamentLeaderboardUserItem;
|
|
11239
|
+
reader.readMessage(value,proto.tournament.TournamentLeaderboardUserItem.deserializeBinaryFromReader);
|
|
11240
|
+
msg.addTop20(value);
|
|
11241
|
+
break;
|
|
11242
|
+
case 11:
|
|
11243
|
+
var value = new proto.tournament.TournamentLeaderboardUserItem;
|
|
11244
|
+
reader.readMessage(value,proto.tournament.TournamentLeaderboardUserItem.deserializeBinaryFromReader);
|
|
11245
|
+
msg.setMe(value);
|
|
11246
|
+
break;
|
|
11247
|
+
default:
|
|
11248
|
+
reader.skipField();
|
|
11249
|
+
break;
|
|
11250
|
+
}
|
|
11251
|
+
}
|
|
11252
|
+
return msg;
|
|
11253
|
+
};
|
|
11254
|
+
|
|
11255
|
+
|
|
11256
|
+
/**
|
|
11257
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
11258
|
+
* @return {!Uint8Array}
|
|
11259
|
+
*/
|
|
11260
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.serializeBinary = function() {
|
|
11261
|
+
var writer = new jspb.BinaryWriter();
|
|
11262
|
+
proto.tournament.OnlineTournamentInfoResponse.serializeBinaryToWriter(this, writer);
|
|
11263
|
+
return writer.getResultBuffer();
|
|
11264
|
+
};
|
|
11265
|
+
|
|
11266
|
+
|
|
11267
|
+
/**
|
|
11268
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
11269
|
+
* format), writing to the given BinaryWriter.
|
|
11270
|
+
* @param {!proto.tournament.OnlineTournamentInfoResponse} message
|
|
11271
|
+
* @param {!jspb.BinaryWriter} writer
|
|
11272
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11273
|
+
*/
|
|
11274
|
+
proto.tournament.OnlineTournamentInfoResponse.serializeBinaryToWriter = function(message, writer) {
|
|
11275
|
+
var f = undefined;
|
|
11276
|
+
f = message.getTournamentId();
|
|
11277
|
+
if (f !== 0) {
|
|
11278
|
+
writer.writeUint64(
|
|
11279
|
+
1,
|
|
11280
|
+
f
|
|
11281
|
+
);
|
|
11282
|
+
}
|
|
11283
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
11284
|
+
if (f != null) {
|
|
11285
|
+
writer.writeString(
|
|
11286
|
+
2,
|
|
11287
|
+
f
|
|
11288
|
+
);
|
|
11289
|
+
}
|
|
11290
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
11291
|
+
if (f != null) {
|
|
11292
|
+
writer.writeString(
|
|
11293
|
+
3,
|
|
11294
|
+
f
|
|
11295
|
+
);
|
|
11296
|
+
}
|
|
11297
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
11298
|
+
if (f != null) {
|
|
11299
|
+
writer.writeInt32(
|
|
11300
|
+
4,
|
|
11301
|
+
f
|
|
11302
|
+
);
|
|
11303
|
+
}
|
|
11304
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
11305
|
+
if (f != null) {
|
|
11306
|
+
writer.writeInt32(
|
|
11307
|
+
5,
|
|
11308
|
+
f
|
|
11309
|
+
);
|
|
11310
|
+
}
|
|
11311
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
11312
|
+
if (f != null) {
|
|
11313
|
+
writer.writeString(
|
|
11314
|
+
6,
|
|
11315
|
+
f
|
|
11316
|
+
);
|
|
11317
|
+
}
|
|
11318
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
11319
|
+
if (f != null) {
|
|
11320
|
+
writer.writeString(
|
|
11321
|
+
7,
|
|
11322
|
+
f
|
|
11323
|
+
);
|
|
11324
|
+
}
|
|
11325
|
+
f = message.getEndInMilliseconds();
|
|
11326
|
+
if (f !== 0) {
|
|
11327
|
+
writer.writeUint64(
|
|
11328
|
+
8,
|
|
11329
|
+
f
|
|
11330
|
+
);
|
|
11331
|
+
}
|
|
11332
|
+
f = message.getRewardsPlacesList();
|
|
11333
|
+
if (f.length > 0) {
|
|
11334
|
+
writer.writeRepeatedMessage(
|
|
11335
|
+
9,
|
|
11336
|
+
f,
|
|
11337
|
+
proto.tournament.RewardItem.serializeBinaryToWriter
|
|
11338
|
+
);
|
|
11339
|
+
}
|
|
11340
|
+
f = message.getTop20List();
|
|
11341
|
+
if (f.length > 0) {
|
|
11342
|
+
writer.writeRepeatedMessage(
|
|
11343
|
+
10,
|
|
11344
|
+
f,
|
|
11345
|
+
proto.tournament.TournamentLeaderboardUserItem.serializeBinaryToWriter
|
|
11346
|
+
);
|
|
11347
|
+
}
|
|
11348
|
+
f = message.getMe();
|
|
11349
|
+
if (f != null) {
|
|
11350
|
+
writer.writeMessage(
|
|
11351
|
+
11,
|
|
11352
|
+
f,
|
|
11353
|
+
proto.tournament.TournamentLeaderboardUserItem.serializeBinaryToWriter
|
|
11354
|
+
);
|
|
11355
|
+
}
|
|
11356
|
+
};
|
|
11357
|
+
|
|
11358
|
+
|
|
11359
|
+
/**
|
|
11360
|
+
* optional uint64 tournament_id = 1;
|
|
11361
|
+
* @return {number}
|
|
11362
|
+
*/
|
|
11363
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getTournamentId = function() {
|
|
11364
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
11365
|
+
};
|
|
11366
|
+
|
|
11367
|
+
|
|
11368
|
+
/**
|
|
11369
|
+
* @param {number} value
|
|
11370
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11371
|
+
*/
|
|
11372
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setTournamentId = function(value) {
|
|
11373
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
11374
|
+
};
|
|
11375
|
+
|
|
11376
|
+
|
|
11377
|
+
/**
|
|
11378
|
+
* optional string title = 2;
|
|
11379
|
+
* @return {string}
|
|
11380
|
+
*/
|
|
11381
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getTitle = function() {
|
|
11382
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
11383
|
+
};
|
|
11384
|
+
|
|
11385
|
+
|
|
11386
|
+
/**
|
|
11387
|
+
* @param {string} value
|
|
11388
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11389
|
+
*/
|
|
11390
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setTitle = function(value) {
|
|
11391
|
+
return jspb.Message.setField(this, 2, value);
|
|
11392
|
+
};
|
|
11393
|
+
|
|
11394
|
+
|
|
11395
|
+
/**
|
|
11396
|
+
* Clears the field making it undefined.
|
|
11397
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11398
|
+
*/
|
|
11399
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.clearTitle = function() {
|
|
11400
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
11401
|
+
};
|
|
11402
|
+
|
|
11403
|
+
|
|
11404
|
+
/**
|
|
11405
|
+
* Returns whether this field is set.
|
|
11406
|
+
* @return {boolean}
|
|
11407
|
+
*/
|
|
11408
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.hasTitle = function() {
|
|
11409
|
+
return jspb.Message.getField(this, 2) != null;
|
|
11410
|
+
};
|
|
11411
|
+
|
|
11412
|
+
|
|
11413
|
+
/**
|
|
11414
|
+
* optional string description = 3;
|
|
11415
|
+
* @return {string}
|
|
11416
|
+
*/
|
|
11417
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getDescription = function() {
|
|
11418
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
11419
|
+
};
|
|
11420
|
+
|
|
11421
|
+
|
|
11422
|
+
/**
|
|
11423
|
+
* @param {string} value
|
|
11424
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11425
|
+
*/
|
|
11426
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setDescription = function(value) {
|
|
11427
|
+
return jspb.Message.setField(this, 3, value);
|
|
11428
|
+
};
|
|
11429
|
+
|
|
11430
|
+
|
|
11431
|
+
/**
|
|
11432
|
+
* Clears the field making it undefined.
|
|
11433
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11434
|
+
*/
|
|
11435
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.clearDescription = function() {
|
|
11436
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
11437
|
+
};
|
|
11438
|
+
|
|
11439
|
+
|
|
11440
|
+
/**
|
|
11441
|
+
* Returns whether this field is set.
|
|
11442
|
+
* @return {boolean}
|
|
11443
|
+
*/
|
|
11444
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.hasDescription = function() {
|
|
11445
|
+
return jspb.Message.getField(this, 3) != null;
|
|
11446
|
+
};
|
|
11447
|
+
|
|
11448
|
+
|
|
11449
|
+
/**
|
|
11450
|
+
* optional int32 current_members_count = 4;
|
|
11451
|
+
* @return {number}
|
|
11452
|
+
*/
|
|
11453
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getCurrentMembersCount = function() {
|
|
11454
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
11455
|
+
};
|
|
11456
|
+
|
|
11457
|
+
|
|
11458
|
+
/**
|
|
11459
|
+
* @param {number} value
|
|
11460
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11461
|
+
*/
|
|
11462
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setCurrentMembersCount = function(value) {
|
|
11463
|
+
return jspb.Message.setField(this, 4, value);
|
|
11464
|
+
};
|
|
11465
|
+
|
|
11466
|
+
|
|
11467
|
+
/**
|
|
11468
|
+
* Clears the field making it undefined.
|
|
11469
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11470
|
+
*/
|
|
11471
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.clearCurrentMembersCount = function() {
|
|
11472
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
11473
|
+
};
|
|
11474
|
+
|
|
11475
|
+
|
|
11476
|
+
/**
|
|
11477
|
+
* Returns whether this field is set.
|
|
11478
|
+
* @return {boolean}
|
|
11479
|
+
*/
|
|
11480
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.hasCurrentMembersCount = function() {
|
|
11481
|
+
return jspb.Message.getField(this, 4) != null;
|
|
11482
|
+
};
|
|
11483
|
+
|
|
11484
|
+
|
|
11485
|
+
/**
|
|
11486
|
+
* optional int32 max_members_count = 5;
|
|
11487
|
+
* @return {number}
|
|
11488
|
+
*/
|
|
11489
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getMaxMembersCount = function() {
|
|
11490
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
11491
|
+
};
|
|
11492
|
+
|
|
11493
|
+
|
|
11494
|
+
/**
|
|
11495
|
+
* @param {number} value
|
|
11496
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11497
|
+
*/
|
|
11498
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setMaxMembersCount = function(value) {
|
|
11499
|
+
return jspb.Message.setField(this, 5, value);
|
|
11500
|
+
};
|
|
11501
|
+
|
|
11502
|
+
|
|
11503
|
+
/**
|
|
11504
|
+
* Clears the field making it undefined.
|
|
11505
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11506
|
+
*/
|
|
11507
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.clearMaxMembersCount = function() {
|
|
11508
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
11509
|
+
};
|
|
11510
|
+
|
|
11511
|
+
|
|
11512
|
+
/**
|
|
11513
|
+
* Returns whether this field is set.
|
|
11514
|
+
* @return {boolean}
|
|
11515
|
+
*/
|
|
11516
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.hasMaxMembersCount = function() {
|
|
11517
|
+
return jspb.Message.getField(this, 5) != null;
|
|
11518
|
+
};
|
|
11519
|
+
|
|
11520
|
+
|
|
11521
|
+
/**
|
|
11522
|
+
* optional string image = 6;
|
|
11523
|
+
* @return {string}
|
|
11524
|
+
*/
|
|
11525
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getImage = function() {
|
|
11526
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
11527
|
+
};
|
|
11528
|
+
|
|
11529
|
+
|
|
11530
|
+
/**
|
|
11531
|
+
* @param {string} value
|
|
11532
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11533
|
+
*/
|
|
11534
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setImage = function(value) {
|
|
11535
|
+
return jspb.Message.setField(this, 6, value);
|
|
11536
|
+
};
|
|
11537
|
+
|
|
11538
|
+
|
|
11539
|
+
/**
|
|
11540
|
+
* Clears the field making it undefined.
|
|
11541
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11542
|
+
*/
|
|
11543
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.clearImage = function() {
|
|
11544
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
11545
|
+
};
|
|
11546
|
+
|
|
11547
|
+
|
|
11548
|
+
/**
|
|
11549
|
+
* Returns whether this field is set.
|
|
11550
|
+
* @return {boolean}
|
|
11551
|
+
*/
|
|
11552
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.hasImage = function() {
|
|
11553
|
+
return jspb.Message.getField(this, 6) != null;
|
|
11554
|
+
};
|
|
11555
|
+
|
|
11556
|
+
|
|
11557
|
+
/**
|
|
11558
|
+
* optional string image_cdn = 7;
|
|
11559
|
+
* @return {string}
|
|
11560
|
+
*/
|
|
11561
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getImageCdn = function() {
|
|
11562
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
11563
|
+
};
|
|
11564
|
+
|
|
11565
|
+
|
|
11566
|
+
/**
|
|
11567
|
+
* @param {string} value
|
|
11568
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11569
|
+
*/
|
|
11570
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setImageCdn = function(value) {
|
|
11571
|
+
return jspb.Message.setField(this, 7, value);
|
|
11572
|
+
};
|
|
11573
|
+
|
|
11574
|
+
|
|
11575
|
+
/**
|
|
11576
|
+
* Clears the field making it undefined.
|
|
11577
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11578
|
+
*/
|
|
11579
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.clearImageCdn = function() {
|
|
11580
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
11581
|
+
};
|
|
11582
|
+
|
|
11583
|
+
|
|
11584
|
+
/**
|
|
11585
|
+
* Returns whether this field is set.
|
|
11586
|
+
* @return {boolean}
|
|
11587
|
+
*/
|
|
11588
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.hasImageCdn = function() {
|
|
11589
|
+
return jspb.Message.getField(this, 7) != null;
|
|
11590
|
+
};
|
|
11591
|
+
|
|
11592
|
+
|
|
11593
|
+
/**
|
|
11594
|
+
* optional uint64 end_in_milliseconds = 8;
|
|
11595
|
+
* @return {number}
|
|
11596
|
+
*/
|
|
11597
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getEndInMilliseconds = function() {
|
|
11598
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
11599
|
+
};
|
|
11600
|
+
|
|
11601
|
+
|
|
11602
|
+
/**
|
|
11603
|
+
* @param {number} value
|
|
11604
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11605
|
+
*/
|
|
11606
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setEndInMilliseconds = function(value) {
|
|
11607
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
11608
|
+
};
|
|
11609
|
+
|
|
11610
|
+
|
|
11611
|
+
/**
|
|
11612
|
+
* repeated RewardItem rewards_places = 9;
|
|
11613
|
+
* @return {!Array<!proto.tournament.RewardItem>}
|
|
11614
|
+
*/
|
|
11615
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getRewardsPlacesList = function() {
|
|
11616
|
+
return /** @type{!Array<!proto.tournament.RewardItem>} */ (
|
|
11617
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem, 9));
|
|
11618
|
+
};
|
|
11619
|
+
|
|
11620
|
+
|
|
11621
|
+
/**
|
|
11622
|
+
* @param {!Array<!proto.tournament.RewardItem>} value
|
|
11623
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11624
|
+
*/
|
|
11625
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setRewardsPlacesList = function(value) {
|
|
11626
|
+
return jspb.Message.setRepeatedWrapperField(this, 9, value);
|
|
11627
|
+
};
|
|
11628
|
+
|
|
11629
|
+
|
|
11630
|
+
/**
|
|
11631
|
+
* @param {!proto.tournament.RewardItem=} opt_value
|
|
11632
|
+
* @param {number=} opt_index
|
|
11633
|
+
* @return {!proto.tournament.RewardItem}
|
|
11634
|
+
*/
|
|
11635
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.addRewardsPlaces = function(opt_value, opt_index) {
|
|
11636
|
+
return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.tournament.RewardItem, opt_index);
|
|
11637
|
+
};
|
|
11638
|
+
|
|
11639
|
+
|
|
11640
|
+
/**
|
|
11641
|
+
* Clears the list making it empty but non-null.
|
|
11642
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11643
|
+
*/
|
|
11644
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.clearRewardsPlacesList = function() {
|
|
11645
|
+
return this.setRewardsPlacesList([]);
|
|
11646
|
+
};
|
|
11647
|
+
|
|
11648
|
+
|
|
11649
|
+
/**
|
|
11650
|
+
* repeated TournamentLeaderboardUserItem top20 = 10;
|
|
11651
|
+
* @return {!Array<!proto.tournament.TournamentLeaderboardUserItem>}
|
|
11652
|
+
*/
|
|
11653
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getTop20List = function() {
|
|
11654
|
+
return /** @type{!Array<!proto.tournament.TournamentLeaderboardUserItem>} */ (
|
|
11655
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.TournamentLeaderboardUserItem, 10));
|
|
11656
|
+
};
|
|
11657
|
+
|
|
11658
|
+
|
|
11659
|
+
/**
|
|
11660
|
+
* @param {!Array<!proto.tournament.TournamentLeaderboardUserItem>} value
|
|
11661
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11662
|
+
*/
|
|
11663
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setTop20List = function(value) {
|
|
11664
|
+
return jspb.Message.setRepeatedWrapperField(this, 10, value);
|
|
11665
|
+
};
|
|
11666
|
+
|
|
11667
|
+
|
|
11668
|
+
/**
|
|
11669
|
+
* @param {!proto.tournament.TournamentLeaderboardUserItem=} opt_value
|
|
11670
|
+
* @param {number=} opt_index
|
|
11671
|
+
* @return {!proto.tournament.TournamentLeaderboardUserItem}
|
|
11672
|
+
*/
|
|
11673
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.addTop20 = function(opt_value, opt_index) {
|
|
11674
|
+
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.tournament.TournamentLeaderboardUserItem, opt_index);
|
|
11675
|
+
};
|
|
11676
|
+
|
|
11677
|
+
|
|
11678
|
+
/**
|
|
11679
|
+
* Clears the list making it empty but non-null.
|
|
11680
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11681
|
+
*/
|
|
11682
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.clearTop20List = function() {
|
|
11683
|
+
return this.setTop20List([]);
|
|
11684
|
+
};
|
|
11685
|
+
|
|
11686
|
+
|
|
11687
|
+
/**
|
|
11688
|
+
* optional TournamentLeaderboardUserItem me = 11;
|
|
11689
|
+
* @return {?proto.tournament.TournamentLeaderboardUserItem}
|
|
11690
|
+
*/
|
|
11691
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.getMe = function() {
|
|
11692
|
+
return /** @type{?proto.tournament.TournamentLeaderboardUserItem} */ (
|
|
11693
|
+
jspb.Message.getWrapperField(this, proto.tournament.TournamentLeaderboardUserItem, 11));
|
|
11694
|
+
};
|
|
11695
|
+
|
|
11696
|
+
|
|
11697
|
+
/**
|
|
11698
|
+
* @param {?proto.tournament.TournamentLeaderboardUserItem|undefined} value
|
|
11699
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11700
|
+
*/
|
|
11701
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.setMe = function(value) {
|
|
11702
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
11703
|
+
};
|
|
11704
|
+
|
|
11705
|
+
|
|
11706
|
+
/**
|
|
11707
|
+
* Clears the message field making it undefined.
|
|
11708
|
+
* @return {!proto.tournament.OnlineTournamentInfoResponse} returns this
|
|
11709
|
+
*/
|
|
11710
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.clearMe = function() {
|
|
11711
|
+
return this.setMe(undefined);
|
|
11712
|
+
};
|
|
11713
|
+
|
|
11714
|
+
|
|
11715
|
+
/**
|
|
11716
|
+
* Returns whether this field is set.
|
|
11717
|
+
* @return {boolean}
|
|
11718
|
+
*/
|
|
11719
|
+
proto.tournament.OnlineTournamentInfoResponse.prototype.hasMe = function() {
|
|
11720
|
+
return jspb.Message.getField(this, 11) != null;
|
|
11721
|
+
};
|
|
11722
|
+
|
|
11723
|
+
|
|
11724
|
+
|
|
10909
11725
|
/**
|
|
10910
11726
|
* List of repeated fields within this message type.
|
|
10911
11727
|
* @private {!Array<number>}
|