protobuf-platform 1.0.245 → 1.0.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/index.js +6 -0
- package/package.json +1 -1
- package/analytic/analytic_grpc_pb.js +0 -44
- package/analytic/analytic_pb.js +0 -779
- package/bet/bet_grpc_pb.js +0 -112
- package/bet/bet_pb.js +0 -3306
- package/bonus/bonus_grpc_pb.js +0 -367
- package/bonus/bonus_pb.js +0 -9220
- package/cashback/cashback_grpc_pb.js +0 -199
- package/cashback/cashback_pb.js +0 -3299
- package/cms/cms_grpc_pb.js +0 -487
- package/cms/cms_pb.js +0 -7464
- package/config/config_grpc_pb.js +0 -190
- package/config/config_pb.js +0 -2119
- package/file/file_grpc_pb.js +0 -44
- package/file/file_pb.js +0 -352
- package/game/game_grpc_pb.js +0 -1462
- package/game/game_pb.js +0 -22846
- package/log/log_grpc_pb.js +0 -78
- package/log/log_pb.js +0 -1338
- package/loyalty/loyalty_grpc_pb.js +0 -344
- package/loyalty/loyalty_pb.js +0 -6246
- package/notification/notification_grpc_pb.js +0 -288
- package/notification/notification_pb.js +0 -3957
- package/payment/payment_grpc_pb.js +0 -456
- package/payment/payment_pb.js +0 -9456
- package/promocode/promocode_grpc_pb.js +0 -166
- package/promocode/promocode_pb.js +0 -2546
- package/tournament/tournament_grpc_pb.js +0 -222
- package/tournament/tournament_pb.js +0 -3951
- package/user/user_grpc_pb.js +0 -601
- package/user/user_pb.js +0 -10854
@@ -1,3951 +0,0 @@
|
|
1
|
-
// source: tournament.proto
|
2
|
-
/**
|
3
|
-
* @fileoverview
|
4
|
-
* @enhanceable
|
5
|
-
* @suppress {missingRequire} reports error on implicit type usages.
|
6
|
-
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
7
|
-
* field starts with 'MSG_' and isn't a translatable message.
|
8
|
-
* @public
|
9
|
-
*/
|
10
|
-
// GENERATED CODE -- DO NOT EDIT!
|
11
|
-
/* eslint-disable */
|
12
|
-
// @ts-nocheck
|
13
|
-
|
14
|
-
var jspb = require('google-protobuf');
|
15
|
-
var goog = jspb;
|
16
|
-
var global = (function() {
|
17
|
-
if (this) { return this; }
|
18
|
-
if (typeof window !== 'undefined') { return window; }
|
19
|
-
if (typeof global !== 'undefined') { return global; }
|
20
|
-
if (typeof self !== 'undefined') { return self; }
|
21
|
-
return Function('return this')();
|
22
|
-
}.call(null));
|
23
|
-
|
24
|
-
goog.exportSymbol('proto.tournament.File', null, global);
|
25
|
-
goog.exportSymbol('proto.tournament.GetFileRequest', null, global);
|
26
|
-
goog.exportSymbol('proto.tournament.GetTournamentRequest', null, global);
|
27
|
-
goog.exportSymbol('proto.tournament.PaginationRequest', null, global);
|
28
|
-
goog.exportSymbol('proto.tournament.PingRequest', null, global);
|
29
|
-
goog.exportSymbol('proto.tournament.PongResponse', null, global);
|
30
|
-
goog.exportSymbol('proto.tournament.TournamentItem', null, global);
|
31
|
-
goog.exportSymbol('proto.tournament.TournamentItemRequest', null, global);
|
32
|
-
goog.exportSymbol('proto.tournament.TournamentItemsResponse', null, global);
|
33
|
-
goog.exportSymbol('proto.tournament.TournamentRequest', null, global);
|
34
|
-
goog.exportSymbol('proto.tournament.TournamentRequest.RequestCase', null, global);
|
35
|
-
goog.exportSymbol('proto.tournament.TournamentResponse', null, global);
|
36
|
-
goog.exportSymbol('proto.tournament.TournamentStatusItem', null, global);
|
37
|
-
goog.exportSymbol('proto.tournament.TournamentStatusItemsResponse', null, global);
|
38
|
-
goog.exportSymbol('proto.tournament.TournamentStatusResponse', null, global);
|
39
|
-
goog.exportSymbol('proto.tournament.UserSearchRequest', null, global);
|
40
|
-
/**
|
41
|
-
* Generated by JsPbCodeGenerator.
|
42
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
43
|
-
* server response, or constructed directly in Javascript. The array is used
|
44
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
45
|
-
* If no data is provided, the constructed object will be empty, but still
|
46
|
-
* valid.
|
47
|
-
* @extends {jspb.Message}
|
48
|
-
* @constructor
|
49
|
-
*/
|
50
|
-
proto.tournament.PingRequest = function(opt_data) {
|
51
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
52
|
-
};
|
53
|
-
goog.inherits(proto.tournament.PingRequest, jspb.Message);
|
54
|
-
if (goog.DEBUG && !COMPILED) {
|
55
|
-
/**
|
56
|
-
* @public
|
57
|
-
* @override
|
58
|
-
*/
|
59
|
-
proto.tournament.PingRequest.displayName = 'proto.tournament.PingRequest';
|
60
|
-
}
|
61
|
-
/**
|
62
|
-
* Generated by JsPbCodeGenerator.
|
63
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
64
|
-
* server response, or constructed directly in Javascript. The array is used
|
65
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
66
|
-
* If no data is provided, the constructed object will be empty, but still
|
67
|
-
* valid.
|
68
|
-
* @extends {jspb.Message}
|
69
|
-
* @constructor
|
70
|
-
*/
|
71
|
-
proto.tournament.PongResponse = function(opt_data) {
|
72
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
73
|
-
};
|
74
|
-
goog.inherits(proto.tournament.PongResponse, jspb.Message);
|
75
|
-
if (goog.DEBUG && !COMPILED) {
|
76
|
-
/**
|
77
|
-
* @public
|
78
|
-
* @override
|
79
|
-
*/
|
80
|
-
proto.tournament.PongResponse.displayName = 'proto.tournament.PongResponse';
|
81
|
-
}
|
82
|
-
/**
|
83
|
-
* Generated by JsPbCodeGenerator.
|
84
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
85
|
-
* server response, or constructed directly in Javascript. The array is used
|
86
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
87
|
-
* If no data is provided, the constructed object will be empty, but still
|
88
|
-
* valid.
|
89
|
-
* @extends {jspb.Message}
|
90
|
-
* @constructor
|
91
|
-
*/
|
92
|
-
proto.tournament.File = function(opt_data) {
|
93
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
94
|
-
};
|
95
|
-
goog.inherits(proto.tournament.File, jspb.Message);
|
96
|
-
if (goog.DEBUG && !COMPILED) {
|
97
|
-
/**
|
98
|
-
* @public
|
99
|
-
* @override
|
100
|
-
*/
|
101
|
-
proto.tournament.File.displayName = 'proto.tournament.File';
|
102
|
-
}
|
103
|
-
/**
|
104
|
-
* Generated by JsPbCodeGenerator.
|
105
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
106
|
-
* server response, or constructed directly in Javascript. The array is used
|
107
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
108
|
-
* If no data is provided, the constructed object will be empty, but still
|
109
|
-
* valid.
|
110
|
-
* @extends {jspb.Message}
|
111
|
-
* @constructor
|
112
|
-
*/
|
113
|
-
proto.tournament.GetFileRequest = function(opt_data) {
|
114
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
115
|
-
};
|
116
|
-
goog.inherits(proto.tournament.GetFileRequest, jspb.Message);
|
117
|
-
if (goog.DEBUG && !COMPILED) {
|
118
|
-
/**
|
119
|
-
* @public
|
120
|
-
* @override
|
121
|
-
*/
|
122
|
-
proto.tournament.GetFileRequest.displayName = 'proto.tournament.GetFileRequest';
|
123
|
-
}
|
124
|
-
/**
|
125
|
-
* Generated by JsPbCodeGenerator.
|
126
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
127
|
-
* server response, or constructed directly in Javascript. The array is used
|
128
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
129
|
-
* If no data is provided, the constructed object will be empty, but still
|
130
|
-
* valid.
|
131
|
-
* @extends {jspb.Message}
|
132
|
-
* @constructor
|
133
|
-
*/
|
134
|
-
proto.tournament.PaginationRequest = function(opt_data) {
|
135
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
136
|
-
};
|
137
|
-
goog.inherits(proto.tournament.PaginationRequest, jspb.Message);
|
138
|
-
if (goog.DEBUG && !COMPILED) {
|
139
|
-
/**
|
140
|
-
* @public
|
141
|
-
* @override
|
142
|
-
*/
|
143
|
-
proto.tournament.PaginationRequest.displayName = 'proto.tournament.PaginationRequest';
|
144
|
-
}
|
145
|
-
/**
|
146
|
-
* Generated by JsPbCodeGenerator.
|
147
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
148
|
-
* server response, or constructed directly in Javascript. The array is used
|
149
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
150
|
-
* If no data is provided, the constructed object will be empty, but still
|
151
|
-
* valid.
|
152
|
-
* @extends {jspb.Message}
|
153
|
-
* @constructor
|
154
|
-
*/
|
155
|
-
proto.tournament.UserSearchRequest = function(opt_data) {
|
156
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
157
|
-
};
|
158
|
-
goog.inherits(proto.tournament.UserSearchRequest, jspb.Message);
|
159
|
-
if (goog.DEBUG && !COMPILED) {
|
160
|
-
/**
|
161
|
-
* @public
|
162
|
-
* @override
|
163
|
-
*/
|
164
|
-
proto.tournament.UserSearchRequest.displayName = 'proto.tournament.UserSearchRequest';
|
165
|
-
}
|
166
|
-
/**
|
167
|
-
* Generated by JsPbCodeGenerator.
|
168
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
169
|
-
* server response, or constructed directly in Javascript. The array is used
|
170
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
171
|
-
* If no data is provided, the constructed object will be empty, but still
|
172
|
-
* valid.
|
173
|
-
* @extends {jspb.Message}
|
174
|
-
* @constructor
|
175
|
-
*/
|
176
|
-
proto.tournament.TournamentItem = function(opt_data) {
|
177
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
178
|
-
};
|
179
|
-
goog.inherits(proto.tournament.TournamentItem, jspb.Message);
|
180
|
-
if (goog.DEBUG && !COMPILED) {
|
181
|
-
/**
|
182
|
-
* @public
|
183
|
-
* @override
|
184
|
-
*/
|
185
|
-
proto.tournament.TournamentItem.displayName = 'proto.tournament.TournamentItem';
|
186
|
-
}
|
187
|
-
/**
|
188
|
-
* Generated by JsPbCodeGenerator.
|
189
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
190
|
-
* server response, or constructed directly in Javascript. The array is used
|
191
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
192
|
-
* If no data is provided, the constructed object will be empty, but still
|
193
|
-
* valid.
|
194
|
-
* @extends {jspb.Message}
|
195
|
-
* @constructor
|
196
|
-
*/
|
197
|
-
proto.tournament.TournamentRequest = function(opt_data) {
|
198
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.tournament.TournamentRequest.oneofGroups_);
|
199
|
-
};
|
200
|
-
goog.inherits(proto.tournament.TournamentRequest, jspb.Message);
|
201
|
-
if (goog.DEBUG && !COMPILED) {
|
202
|
-
/**
|
203
|
-
* @public
|
204
|
-
* @override
|
205
|
-
*/
|
206
|
-
proto.tournament.TournamentRequest.displayName = 'proto.tournament.TournamentRequest';
|
207
|
-
}
|
208
|
-
/**
|
209
|
-
* Generated by JsPbCodeGenerator.
|
210
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
211
|
-
* server response, or constructed directly in Javascript. The array is used
|
212
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
213
|
-
* If no data is provided, the constructed object will be empty, but still
|
214
|
-
* valid.
|
215
|
-
* @extends {jspb.Message}
|
216
|
-
* @constructor
|
217
|
-
*/
|
218
|
-
proto.tournament.TournamentItemRequest = function(opt_data) {
|
219
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
220
|
-
};
|
221
|
-
goog.inherits(proto.tournament.TournamentItemRequest, jspb.Message);
|
222
|
-
if (goog.DEBUG && !COMPILED) {
|
223
|
-
/**
|
224
|
-
* @public
|
225
|
-
* @override
|
226
|
-
*/
|
227
|
-
proto.tournament.TournamentItemRequest.displayName = 'proto.tournament.TournamentItemRequest';
|
228
|
-
}
|
229
|
-
/**
|
230
|
-
* Generated by JsPbCodeGenerator.
|
231
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
232
|
-
* server response, or constructed directly in Javascript. The array is used
|
233
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
234
|
-
* If no data is provided, the constructed object will be empty, but still
|
235
|
-
* valid.
|
236
|
-
* @extends {jspb.Message}
|
237
|
-
* @constructor
|
238
|
-
*/
|
239
|
-
proto.tournament.GetTournamentRequest = function(opt_data) {
|
240
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
241
|
-
};
|
242
|
-
goog.inherits(proto.tournament.GetTournamentRequest, jspb.Message);
|
243
|
-
if (goog.DEBUG && !COMPILED) {
|
244
|
-
/**
|
245
|
-
* @public
|
246
|
-
* @override
|
247
|
-
*/
|
248
|
-
proto.tournament.GetTournamentRequest.displayName = 'proto.tournament.GetTournamentRequest';
|
249
|
-
}
|
250
|
-
/**
|
251
|
-
* Generated by JsPbCodeGenerator.
|
252
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
253
|
-
* server response, or constructed directly in Javascript. The array is used
|
254
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
255
|
-
* If no data is provided, the constructed object will be empty, but still
|
256
|
-
* valid.
|
257
|
-
* @extends {jspb.Message}
|
258
|
-
* @constructor
|
259
|
-
*/
|
260
|
-
proto.tournament.TournamentResponse = function(opt_data) {
|
261
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
262
|
-
};
|
263
|
-
goog.inherits(proto.tournament.TournamentResponse, jspb.Message);
|
264
|
-
if (goog.DEBUG && !COMPILED) {
|
265
|
-
/**
|
266
|
-
* @public
|
267
|
-
* @override
|
268
|
-
*/
|
269
|
-
proto.tournament.TournamentResponse.displayName = 'proto.tournament.TournamentResponse';
|
270
|
-
}
|
271
|
-
/**
|
272
|
-
* Generated by JsPbCodeGenerator.
|
273
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
274
|
-
* server response, or constructed directly in Javascript. The array is used
|
275
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
276
|
-
* If no data is provided, the constructed object will be empty, but still
|
277
|
-
* valid.
|
278
|
-
* @extends {jspb.Message}
|
279
|
-
* @constructor
|
280
|
-
*/
|
281
|
-
proto.tournament.TournamentItemsResponse = function(opt_data) {
|
282
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.TournamentItemsResponse.repeatedFields_, null);
|
283
|
-
};
|
284
|
-
goog.inherits(proto.tournament.TournamentItemsResponse, jspb.Message);
|
285
|
-
if (goog.DEBUG && !COMPILED) {
|
286
|
-
/**
|
287
|
-
* @public
|
288
|
-
* @override
|
289
|
-
*/
|
290
|
-
proto.tournament.TournamentItemsResponse.displayName = 'proto.tournament.TournamentItemsResponse';
|
291
|
-
}
|
292
|
-
/**
|
293
|
-
* Generated by JsPbCodeGenerator.
|
294
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
295
|
-
* server response, or constructed directly in Javascript. The array is used
|
296
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
297
|
-
* If no data is provided, the constructed object will be empty, but still
|
298
|
-
* valid.
|
299
|
-
* @extends {jspb.Message}
|
300
|
-
* @constructor
|
301
|
-
*/
|
302
|
-
proto.tournament.TournamentStatusResponse = function(opt_data) {
|
303
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
304
|
-
};
|
305
|
-
goog.inherits(proto.tournament.TournamentStatusResponse, jspb.Message);
|
306
|
-
if (goog.DEBUG && !COMPILED) {
|
307
|
-
/**
|
308
|
-
* @public
|
309
|
-
* @override
|
310
|
-
*/
|
311
|
-
proto.tournament.TournamentStatusResponse.displayName = 'proto.tournament.TournamentStatusResponse';
|
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
|
-
}
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
359
|
-
/**
|
360
|
-
* Creates an object representation of this proto.
|
361
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
362
|
-
* Optional fields that are not set will be set to undefined.
|
363
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
364
|
-
* For the list of reserved names please see:
|
365
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
366
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
367
|
-
* JSPB instance for transitional soy proto support:
|
368
|
-
* http://goto/soy-param-migration
|
369
|
-
* @return {!Object}
|
370
|
-
*/
|
371
|
-
proto.tournament.PingRequest.prototype.toObject = function(opt_includeInstance) {
|
372
|
-
return proto.tournament.PingRequest.toObject(opt_includeInstance, this);
|
373
|
-
};
|
374
|
-
|
375
|
-
|
376
|
-
/**
|
377
|
-
* Static version of the {@see toObject} method.
|
378
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
379
|
-
* the JSPB instance for transitional soy proto support:
|
380
|
-
* http://goto/soy-param-migration
|
381
|
-
* @param {!proto.tournament.PingRequest} msg The msg instance to transform.
|
382
|
-
* @return {!Object}
|
383
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
384
|
-
*/
|
385
|
-
proto.tournament.PingRequest.toObject = function(includeInstance, msg) {
|
386
|
-
var f, obj = {
|
387
|
-
ping: jspb.Message.getFieldWithDefault(msg, 1, "")
|
388
|
-
};
|
389
|
-
|
390
|
-
if (includeInstance) {
|
391
|
-
obj.$jspbMessageInstance = msg;
|
392
|
-
}
|
393
|
-
return obj;
|
394
|
-
};
|
395
|
-
}
|
396
|
-
|
397
|
-
|
398
|
-
/**
|
399
|
-
* Deserializes binary data (in protobuf wire format).
|
400
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
401
|
-
* @return {!proto.tournament.PingRequest}
|
402
|
-
*/
|
403
|
-
proto.tournament.PingRequest.deserializeBinary = function(bytes) {
|
404
|
-
var reader = new jspb.BinaryReader(bytes);
|
405
|
-
var msg = new proto.tournament.PingRequest;
|
406
|
-
return proto.tournament.PingRequest.deserializeBinaryFromReader(msg, reader);
|
407
|
-
};
|
408
|
-
|
409
|
-
|
410
|
-
/**
|
411
|
-
* Deserializes binary data (in protobuf wire format) from the
|
412
|
-
* given reader into the given message object.
|
413
|
-
* @param {!proto.tournament.PingRequest} msg The message object to deserialize into.
|
414
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
415
|
-
* @return {!proto.tournament.PingRequest}
|
416
|
-
*/
|
417
|
-
proto.tournament.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
418
|
-
while (reader.nextField()) {
|
419
|
-
if (reader.isEndGroup()) {
|
420
|
-
break;
|
421
|
-
}
|
422
|
-
var field = reader.getFieldNumber();
|
423
|
-
switch (field) {
|
424
|
-
case 1:
|
425
|
-
var value = /** @type {string} */ (reader.readString());
|
426
|
-
msg.setPing(value);
|
427
|
-
break;
|
428
|
-
default:
|
429
|
-
reader.skipField();
|
430
|
-
break;
|
431
|
-
}
|
432
|
-
}
|
433
|
-
return msg;
|
434
|
-
};
|
435
|
-
|
436
|
-
|
437
|
-
/**
|
438
|
-
* Serializes the message to binary data (in protobuf wire format).
|
439
|
-
* @return {!Uint8Array}
|
440
|
-
*/
|
441
|
-
proto.tournament.PingRequest.prototype.serializeBinary = function() {
|
442
|
-
var writer = new jspb.BinaryWriter();
|
443
|
-
proto.tournament.PingRequest.serializeBinaryToWriter(this, writer);
|
444
|
-
return writer.getResultBuffer();
|
445
|
-
};
|
446
|
-
|
447
|
-
|
448
|
-
/**
|
449
|
-
* Serializes the given message to binary data (in protobuf wire
|
450
|
-
* format), writing to the given BinaryWriter.
|
451
|
-
* @param {!proto.tournament.PingRequest} message
|
452
|
-
* @param {!jspb.BinaryWriter} writer
|
453
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
454
|
-
*/
|
455
|
-
proto.tournament.PingRequest.serializeBinaryToWriter = function(message, writer) {
|
456
|
-
var f = undefined;
|
457
|
-
f = message.getPing();
|
458
|
-
if (f.length > 0) {
|
459
|
-
writer.writeString(
|
460
|
-
1,
|
461
|
-
f
|
462
|
-
);
|
463
|
-
}
|
464
|
-
};
|
465
|
-
|
466
|
-
|
467
|
-
/**
|
468
|
-
* optional string ping = 1;
|
469
|
-
* @return {string}
|
470
|
-
*/
|
471
|
-
proto.tournament.PingRequest.prototype.getPing = function() {
|
472
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
473
|
-
};
|
474
|
-
|
475
|
-
|
476
|
-
/**
|
477
|
-
* @param {string} value
|
478
|
-
* @return {!proto.tournament.PingRequest} returns this
|
479
|
-
*/
|
480
|
-
proto.tournament.PingRequest.prototype.setPing = function(value) {
|
481
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
482
|
-
};
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
489
|
-
/**
|
490
|
-
* Creates an object representation of this proto.
|
491
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
492
|
-
* Optional fields that are not set will be set to undefined.
|
493
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
494
|
-
* For the list of reserved names please see:
|
495
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
496
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
497
|
-
* JSPB instance for transitional soy proto support:
|
498
|
-
* http://goto/soy-param-migration
|
499
|
-
* @return {!Object}
|
500
|
-
*/
|
501
|
-
proto.tournament.PongResponse.prototype.toObject = function(opt_includeInstance) {
|
502
|
-
return proto.tournament.PongResponse.toObject(opt_includeInstance, this);
|
503
|
-
};
|
504
|
-
|
505
|
-
|
506
|
-
/**
|
507
|
-
* Static version of the {@see toObject} method.
|
508
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
509
|
-
* the JSPB instance for transitional soy proto support:
|
510
|
-
* http://goto/soy-param-migration
|
511
|
-
* @param {!proto.tournament.PongResponse} msg The msg instance to transform.
|
512
|
-
* @return {!Object}
|
513
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
514
|
-
*/
|
515
|
-
proto.tournament.PongResponse.toObject = function(includeInstance, msg) {
|
516
|
-
var f, obj = {
|
517
|
-
pong: jspb.Message.getFieldWithDefault(msg, 1, "")
|
518
|
-
};
|
519
|
-
|
520
|
-
if (includeInstance) {
|
521
|
-
obj.$jspbMessageInstance = msg;
|
522
|
-
}
|
523
|
-
return obj;
|
524
|
-
};
|
525
|
-
}
|
526
|
-
|
527
|
-
|
528
|
-
/**
|
529
|
-
* Deserializes binary data (in protobuf wire format).
|
530
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
531
|
-
* @return {!proto.tournament.PongResponse}
|
532
|
-
*/
|
533
|
-
proto.tournament.PongResponse.deserializeBinary = function(bytes) {
|
534
|
-
var reader = new jspb.BinaryReader(bytes);
|
535
|
-
var msg = new proto.tournament.PongResponse;
|
536
|
-
return proto.tournament.PongResponse.deserializeBinaryFromReader(msg, reader);
|
537
|
-
};
|
538
|
-
|
539
|
-
|
540
|
-
/**
|
541
|
-
* Deserializes binary data (in protobuf wire format) from the
|
542
|
-
* given reader into the given message object.
|
543
|
-
* @param {!proto.tournament.PongResponse} msg The message object to deserialize into.
|
544
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
545
|
-
* @return {!proto.tournament.PongResponse}
|
546
|
-
*/
|
547
|
-
proto.tournament.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
|
548
|
-
while (reader.nextField()) {
|
549
|
-
if (reader.isEndGroup()) {
|
550
|
-
break;
|
551
|
-
}
|
552
|
-
var field = reader.getFieldNumber();
|
553
|
-
switch (field) {
|
554
|
-
case 1:
|
555
|
-
var value = /** @type {string} */ (reader.readString());
|
556
|
-
msg.setPong(value);
|
557
|
-
break;
|
558
|
-
default:
|
559
|
-
reader.skipField();
|
560
|
-
break;
|
561
|
-
}
|
562
|
-
}
|
563
|
-
return msg;
|
564
|
-
};
|
565
|
-
|
566
|
-
|
567
|
-
/**
|
568
|
-
* Serializes the message to binary data (in protobuf wire format).
|
569
|
-
* @return {!Uint8Array}
|
570
|
-
*/
|
571
|
-
proto.tournament.PongResponse.prototype.serializeBinary = function() {
|
572
|
-
var writer = new jspb.BinaryWriter();
|
573
|
-
proto.tournament.PongResponse.serializeBinaryToWriter(this, writer);
|
574
|
-
return writer.getResultBuffer();
|
575
|
-
};
|
576
|
-
|
577
|
-
|
578
|
-
/**
|
579
|
-
* Serializes the given message to binary data (in protobuf wire
|
580
|
-
* format), writing to the given BinaryWriter.
|
581
|
-
* @param {!proto.tournament.PongResponse} message
|
582
|
-
* @param {!jspb.BinaryWriter} writer
|
583
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
584
|
-
*/
|
585
|
-
proto.tournament.PongResponse.serializeBinaryToWriter = function(message, writer) {
|
586
|
-
var f = undefined;
|
587
|
-
f = message.getPong();
|
588
|
-
if (f.length > 0) {
|
589
|
-
writer.writeString(
|
590
|
-
1,
|
591
|
-
f
|
592
|
-
);
|
593
|
-
}
|
594
|
-
};
|
595
|
-
|
596
|
-
|
597
|
-
/**
|
598
|
-
* optional string pong = 1;
|
599
|
-
* @return {string}
|
600
|
-
*/
|
601
|
-
proto.tournament.PongResponse.prototype.getPong = function() {
|
602
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
603
|
-
};
|
604
|
-
|
605
|
-
|
606
|
-
/**
|
607
|
-
* @param {string} value
|
608
|
-
* @return {!proto.tournament.PongResponse} returns this
|
609
|
-
*/
|
610
|
-
proto.tournament.PongResponse.prototype.setPong = function(value) {
|
611
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
612
|
-
};
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
619
|
-
/**
|
620
|
-
* Creates an object representation of this proto.
|
621
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
622
|
-
* Optional fields that are not set will be set to undefined.
|
623
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
624
|
-
* For the list of reserved names please see:
|
625
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
626
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
627
|
-
* JSPB instance for transitional soy proto support:
|
628
|
-
* http://goto/soy-param-migration
|
629
|
-
* @return {!Object}
|
630
|
-
*/
|
631
|
-
proto.tournament.File.prototype.toObject = function(opt_includeInstance) {
|
632
|
-
return proto.tournament.File.toObject(opt_includeInstance, this);
|
633
|
-
};
|
634
|
-
|
635
|
-
|
636
|
-
/**
|
637
|
-
* Static version of the {@see toObject} method.
|
638
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
639
|
-
* the JSPB instance for transitional soy proto support:
|
640
|
-
* http://goto/soy-param-migration
|
641
|
-
* @param {!proto.tournament.File} msg The msg instance to transform.
|
642
|
-
* @return {!Object}
|
643
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
644
|
-
*/
|
645
|
-
proto.tournament.File.toObject = function(includeInstance, msg) {
|
646
|
-
var f, obj = {
|
647
|
-
media: msg.getMedia_asB64(),
|
648
|
-
fileName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
649
|
-
fileType: jspb.Message.getFieldWithDefault(msg, 3, "")
|
650
|
-
};
|
651
|
-
|
652
|
-
if (includeInstance) {
|
653
|
-
obj.$jspbMessageInstance = msg;
|
654
|
-
}
|
655
|
-
return obj;
|
656
|
-
};
|
657
|
-
}
|
658
|
-
|
659
|
-
|
660
|
-
/**
|
661
|
-
* Deserializes binary data (in protobuf wire format).
|
662
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
663
|
-
* @return {!proto.tournament.File}
|
664
|
-
*/
|
665
|
-
proto.tournament.File.deserializeBinary = function(bytes) {
|
666
|
-
var reader = new jspb.BinaryReader(bytes);
|
667
|
-
var msg = new proto.tournament.File;
|
668
|
-
return proto.tournament.File.deserializeBinaryFromReader(msg, reader);
|
669
|
-
};
|
670
|
-
|
671
|
-
|
672
|
-
/**
|
673
|
-
* Deserializes binary data (in protobuf wire format) from the
|
674
|
-
* given reader into the given message object.
|
675
|
-
* @param {!proto.tournament.File} msg The message object to deserialize into.
|
676
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
677
|
-
* @return {!proto.tournament.File}
|
678
|
-
*/
|
679
|
-
proto.tournament.File.deserializeBinaryFromReader = function(msg, reader) {
|
680
|
-
while (reader.nextField()) {
|
681
|
-
if (reader.isEndGroup()) {
|
682
|
-
break;
|
683
|
-
}
|
684
|
-
var field = reader.getFieldNumber();
|
685
|
-
switch (field) {
|
686
|
-
case 1:
|
687
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
688
|
-
msg.setMedia(value);
|
689
|
-
break;
|
690
|
-
case 2:
|
691
|
-
var value = /** @type {string} */ (reader.readString());
|
692
|
-
msg.setFileName(value);
|
693
|
-
break;
|
694
|
-
case 3:
|
695
|
-
var value = /** @type {string} */ (reader.readString());
|
696
|
-
msg.setFileType(value);
|
697
|
-
break;
|
698
|
-
default:
|
699
|
-
reader.skipField();
|
700
|
-
break;
|
701
|
-
}
|
702
|
-
}
|
703
|
-
return msg;
|
704
|
-
};
|
705
|
-
|
706
|
-
|
707
|
-
/**
|
708
|
-
* Serializes the message to binary data (in protobuf wire format).
|
709
|
-
* @return {!Uint8Array}
|
710
|
-
*/
|
711
|
-
proto.tournament.File.prototype.serializeBinary = function() {
|
712
|
-
var writer = new jspb.BinaryWriter();
|
713
|
-
proto.tournament.File.serializeBinaryToWriter(this, writer);
|
714
|
-
return writer.getResultBuffer();
|
715
|
-
};
|
716
|
-
|
717
|
-
|
718
|
-
/**
|
719
|
-
* Serializes the given message to binary data (in protobuf wire
|
720
|
-
* format), writing to the given BinaryWriter.
|
721
|
-
* @param {!proto.tournament.File} message
|
722
|
-
* @param {!jspb.BinaryWriter} writer
|
723
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
724
|
-
*/
|
725
|
-
proto.tournament.File.serializeBinaryToWriter = function(message, writer) {
|
726
|
-
var f = undefined;
|
727
|
-
f = message.getMedia_asU8();
|
728
|
-
if (f.length > 0) {
|
729
|
-
writer.writeBytes(
|
730
|
-
1,
|
731
|
-
f
|
732
|
-
);
|
733
|
-
}
|
734
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
735
|
-
if (f != null) {
|
736
|
-
writer.writeString(
|
737
|
-
2,
|
738
|
-
f
|
739
|
-
);
|
740
|
-
}
|
741
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
742
|
-
if (f != null) {
|
743
|
-
writer.writeString(
|
744
|
-
3,
|
745
|
-
f
|
746
|
-
);
|
747
|
-
}
|
748
|
-
};
|
749
|
-
|
750
|
-
|
751
|
-
/**
|
752
|
-
* optional bytes media = 1;
|
753
|
-
* @return {!(string|Uint8Array)}
|
754
|
-
*/
|
755
|
-
proto.tournament.File.prototype.getMedia = function() {
|
756
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
757
|
-
};
|
758
|
-
|
759
|
-
|
760
|
-
/**
|
761
|
-
* optional bytes media = 1;
|
762
|
-
* This is a type-conversion wrapper around `getMedia()`
|
763
|
-
* @return {string}
|
764
|
-
*/
|
765
|
-
proto.tournament.File.prototype.getMedia_asB64 = function() {
|
766
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
767
|
-
this.getMedia()));
|
768
|
-
};
|
769
|
-
|
770
|
-
|
771
|
-
/**
|
772
|
-
* optional bytes media = 1;
|
773
|
-
* Note that Uint8Array is not supported on all browsers.
|
774
|
-
* @see http://caniuse.com/Uint8Array
|
775
|
-
* This is a type-conversion wrapper around `getMedia()`
|
776
|
-
* @return {!Uint8Array}
|
777
|
-
*/
|
778
|
-
proto.tournament.File.prototype.getMedia_asU8 = function() {
|
779
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
780
|
-
this.getMedia()));
|
781
|
-
};
|
782
|
-
|
783
|
-
|
784
|
-
/**
|
785
|
-
* @param {!(string|Uint8Array)} value
|
786
|
-
* @return {!proto.tournament.File} returns this
|
787
|
-
*/
|
788
|
-
proto.tournament.File.prototype.setMedia = function(value) {
|
789
|
-
return jspb.Message.setProto3BytesField(this, 1, value);
|
790
|
-
};
|
791
|
-
|
792
|
-
|
793
|
-
/**
|
794
|
-
* optional string file_name = 2;
|
795
|
-
* @return {string}
|
796
|
-
*/
|
797
|
-
proto.tournament.File.prototype.getFileName = function() {
|
798
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
799
|
-
};
|
800
|
-
|
801
|
-
|
802
|
-
/**
|
803
|
-
* @param {string} value
|
804
|
-
* @return {!proto.tournament.File} returns this
|
805
|
-
*/
|
806
|
-
proto.tournament.File.prototype.setFileName = function(value) {
|
807
|
-
return jspb.Message.setField(this, 2, value);
|
808
|
-
};
|
809
|
-
|
810
|
-
|
811
|
-
/**
|
812
|
-
* Clears the field making it undefined.
|
813
|
-
* @return {!proto.tournament.File} returns this
|
814
|
-
*/
|
815
|
-
proto.tournament.File.prototype.clearFileName = function() {
|
816
|
-
return jspb.Message.setField(this, 2, undefined);
|
817
|
-
};
|
818
|
-
|
819
|
-
|
820
|
-
/**
|
821
|
-
* Returns whether this field is set.
|
822
|
-
* @return {boolean}
|
823
|
-
*/
|
824
|
-
proto.tournament.File.prototype.hasFileName = function() {
|
825
|
-
return jspb.Message.getField(this, 2) != null;
|
826
|
-
};
|
827
|
-
|
828
|
-
|
829
|
-
/**
|
830
|
-
* optional string file_type = 3;
|
831
|
-
* @return {string}
|
832
|
-
*/
|
833
|
-
proto.tournament.File.prototype.getFileType = function() {
|
834
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
835
|
-
};
|
836
|
-
|
837
|
-
|
838
|
-
/**
|
839
|
-
* @param {string} value
|
840
|
-
* @return {!proto.tournament.File} returns this
|
841
|
-
*/
|
842
|
-
proto.tournament.File.prototype.setFileType = function(value) {
|
843
|
-
return jspb.Message.setField(this, 3, value);
|
844
|
-
};
|
845
|
-
|
846
|
-
|
847
|
-
/**
|
848
|
-
* Clears the field making it undefined.
|
849
|
-
* @return {!proto.tournament.File} returns this
|
850
|
-
*/
|
851
|
-
proto.tournament.File.prototype.clearFileType = function() {
|
852
|
-
return jspb.Message.setField(this, 3, undefined);
|
853
|
-
};
|
854
|
-
|
855
|
-
|
856
|
-
/**
|
857
|
-
* Returns whether this field is set.
|
858
|
-
* @return {boolean}
|
859
|
-
*/
|
860
|
-
proto.tournament.File.prototype.hasFileType = function() {
|
861
|
-
return jspb.Message.getField(this, 3) != null;
|
862
|
-
};
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
869
|
-
/**
|
870
|
-
* Creates an object representation of this proto.
|
871
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
872
|
-
* Optional fields that are not set will be set to undefined.
|
873
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
874
|
-
* For the list of reserved names please see:
|
875
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
876
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
877
|
-
* JSPB instance for transitional soy proto support:
|
878
|
-
* http://goto/soy-param-migration
|
879
|
-
* @return {!Object}
|
880
|
-
*/
|
881
|
-
proto.tournament.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
|
882
|
-
return proto.tournament.GetFileRequest.toObject(opt_includeInstance, this);
|
883
|
-
};
|
884
|
-
|
885
|
-
|
886
|
-
/**
|
887
|
-
* Static version of the {@see toObject} method.
|
888
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
889
|
-
* the JSPB instance for transitional soy proto support:
|
890
|
-
* http://goto/soy-param-migration
|
891
|
-
* @param {!proto.tournament.GetFileRequest} msg The msg instance to transform.
|
892
|
-
* @return {!Object}
|
893
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
894
|
-
*/
|
895
|
-
proto.tournament.GetFileRequest.toObject = function(includeInstance, msg) {
|
896
|
-
var f, obj = {
|
897
|
-
fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
898
|
-
instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
|
899
|
-
};
|
900
|
-
|
901
|
-
if (includeInstance) {
|
902
|
-
obj.$jspbMessageInstance = msg;
|
903
|
-
}
|
904
|
-
return obj;
|
905
|
-
};
|
906
|
-
}
|
907
|
-
|
908
|
-
|
909
|
-
/**
|
910
|
-
* Deserializes binary data (in protobuf wire format).
|
911
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
912
|
-
* @return {!proto.tournament.GetFileRequest}
|
913
|
-
*/
|
914
|
-
proto.tournament.GetFileRequest.deserializeBinary = function(bytes) {
|
915
|
-
var reader = new jspb.BinaryReader(bytes);
|
916
|
-
var msg = new proto.tournament.GetFileRequest;
|
917
|
-
return proto.tournament.GetFileRequest.deserializeBinaryFromReader(msg, reader);
|
918
|
-
};
|
919
|
-
|
920
|
-
|
921
|
-
/**
|
922
|
-
* Deserializes binary data (in protobuf wire format) from the
|
923
|
-
* given reader into the given message object.
|
924
|
-
* @param {!proto.tournament.GetFileRequest} msg The message object to deserialize into.
|
925
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
926
|
-
* @return {!proto.tournament.GetFileRequest}
|
927
|
-
*/
|
928
|
-
proto.tournament.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
|
929
|
-
while (reader.nextField()) {
|
930
|
-
if (reader.isEndGroup()) {
|
931
|
-
break;
|
932
|
-
}
|
933
|
-
var field = reader.getFieldNumber();
|
934
|
-
switch (field) {
|
935
|
-
case 1:
|
936
|
-
var value = /** @type {string} */ (reader.readString());
|
937
|
-
msg.setFileName(value);
|
938
|
-
break;
|
939
|
-
case 2:
|
940
|
-
var value = /** @type {string} */ (reader.readString());
|
941
|
-
msg.setInstanceType(value);
|
942
|
-
break;
|
943
|
-
default:
|
944
|
-
reader.skipField();
|
945
|
-
break;
|
946
|
-
}
|
947
|
-
}
|
948
|
-
return msg;
|
949
|
-
};
|
950
|
-
|
951
|
-
|
952
|
-
/**
|
953
|
-
* Serializes the message to binary data (in protobuf wire format).
|
954
|
-
* @return {!Uint8Array}
|
955
|
-
*/
|
956
|
-
proto.tournament.GetFileRequest.prototype.serializeBinary = function() {
|
957
|
-
var writer = new jspb.BinaryWriter();
|
958
|
-
proto.tournament.GetFileRequest.serializeBinaryToWriter(this, writer);
|
959
|
-
return writer.getResultBuffer();
|
960
|
-
};
|
961
|
-
|
962
|
-
|
963
|
-
/**
|
964
|
-
* Serializes the given message to binary data (in protobuf wire
|
965
|
-
* format), writing to the given BinaryWriter.
|
966
|
-
* @param {!proto.tournament.GetFileRequest} message
|
967
|
-
* @param {!jspb.BinaryWriter} writer
|
968
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
969
|
-
*/
|
970
|
-
proto.tournament.GetFileRequest.serializeBinaryToWriter = function(message, writer) {
|
971
|
-
var f = undefined;
|
972
|
-
f = message.getFileName();
|
973
|
-
if (f.length > 0) {
|
974
|
-
writer.writeString(
|
975
|
-
1,
|
976
|
-
f
|
977
|
-
);
|
978
|
-
}
|
979
|
-
f = message.getInstanceType();
|
980
|
-
if (f.length > 0) {
|
981
|
-
writer.writeString(
|
982
|
-
2,
|
983
|
-
f
|
984
|
-
);
|
985
|
-
}
|
986
|
-
};
|
987
|
-
|
988
|
-
|
989
|
-
/**
|
990
|
-
* optional string file_name = 1;
|
991
|
-
* @return {string}
|
992
|
-
*/
|
993
|
-
proto.tournament.GetFileRequest.prototype.getFileName = function() {
|
994
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
995
|
-
};
|
996
|
-
|
997
|
-
|
998
|
-
/**
|
999
|
-
* @param {string} value
|
1000
|
-
* @return {!proto.tournament.GetFileRequest} returns this
|
1001
|
-
*/
|
1002
|
-
proto.tournament.GetFileRequest.prototype.setFileName = function(value) {
|
1003
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
1004
|
-
};
|
1005
|
-
|
1006
|
-
|
1007
|
-
/**
|
1008
|
-
* optional string instance_type = 2;
|
1009
|
-
* @return {string}
|
1010
|
-
*/
|
1011
|
-
proto.tournament.GetFileRequest.prototype.getInstanceType = function() {
|
1012
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1013
|
-
};
|
1014
|
-
|
1015
|
-
|
1016
|
-
/**
|
1017
|
-
* @param {string} value
|
1018
|
-
* @return {!proto.tournament.GetFileRequest} returns this
|
1019
|
-
*/
|
1020
|
-
proto.tournament.GetFileRequest.prototype.setInstanceType = function(value) {
|
1021
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
1022
|
-
};
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1029
|
-
/**
|
1030
|
-
* Creates an object representation of this proto.
|
1031
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1032
|
-
* Optional fields that are not set will be set to undefined.
|
1033
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1034
|
-
* For the list of reserved names please see:
|
1035
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1036
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1037
|
-
* JSPB instance for transitional soy proto support:
|
1038
|
-
* http://goto/soy-param-migration
|
1039
|
-
* @return {!Object}
|
1040
|
-
*/
|
1041
|
-
proto.tournament.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
|
1042
|
-
return proto.tournament.PaginationRequest.toObject(opt_includeInstance, this);
|
1043
|
-
};
|
1044
|
-
|
1045
|
-
|
1046
|
-
/**
|
1047
|
-
* Static version of the {@see toObject} method.
|
1048
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1049
|
-
* the JSPB instance for transitional soy proto support:
|
1050
|
-
* http://goto/soy-param-migration
|
1051
|
-
* @param {!proto.tournament.PaginationRequest} msg The msg instance to transform.
|
1052
|
-
* @return {!Object}
|
1053
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1054
|
-
*/
|
1055
|
-
proto.tournament.PaginationRequest.toObject = function(includeInstance, msg) {
|
1056
|
-
var f, obj = {
|
1057
|
-
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1058
|
-
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1059
|
-
userSearchParams: (f = msg.getUserSearchParams()) && proto.tournament.UserSearchRequest.toObject(includeInstance, f)
|
1060
|
-
};
|
1061
|
-
|
1062
|
-
if (includeInstance) {
|
1063
|
-
obj.$jspbMessageInstance = msg;
|
1064
|
-
}
|
1065
|
-
return obj;
|
1066
|
-
};
|
1067
|
-
}
|
1068
|
-
|
1069
|
-
|
1070
|
-
/**
|
1071
|
-
* Deserializes binary data (in protobuf wire format).
|
1072
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1073
|
-
* @return {!proto.tournament.PaginationRequest}
|
1074
|
-
*/
|
1075
|
-
proto.tournament.PaginationRequest.deserializeBinary = function(bytes) {
|
1076
|
-
var reader = new jspb.BinaryReader(bytes);
|
1077
|
-
var msg = new proto.tournament.PaginationRequest;
|
1078
|
-
return proto.tournament.PaginationRequest.deserializeBinaryFromReader(msg, reader);
|
1079
|
-
};
|
1080
|
-
|
1081
|
-
|
1082
|
-
/**
|
1083
|
-
* Deserializes binary data (in protobuf wire format) from the
|
1084
|
-
* given reader into the given message object.
|
1085
|
-
* @param {!proto.tournament.PaginationRequest} msg The message object to deserialize into.
|
1086
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1087
|
-
* @return {!proto.tournament.PaginationRequest}
|
1088
|
-
*/
|
1089
|
-
proto.tournament.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1090
|
-
while (reader.nextField()) {
|
1091
|
-
if (reader.isEndGroup()) {
|
1092
|
-
break;
|
1093
|
-
}
|
1094
|
-
var field = reader.getFieldNumber();
|
1095
|
-
switch (field) {
|
1096
|
-
case 1:
|
1097
|
-
var value = /** @type {number} */ (reader.readInt32());
|
1098
|
-
msg.setLimit(value);
|
1099
|
-
break;
|
1100
|
-
case 2:
|
1101
|
-
var value = /** @type {number} */ (reader.readInt32());
|
1102
|
-
msg.setOffset(value);
|
1103
|
-
break;
|
1104
|
-
case 3:
|
1105
|
-
var value = new proto.tournament.UserSearchRequest;
|
1106
|
-
reader.readMessage(value,proto.tournament.UserSearchRequest.deserializeBinaryFromReader);
|
1107
|
-
msg.setUserSearchParams(value);
|
1108
|
-
break;
|
1109
|
-
default:
|
1110
|
-
reader.skipField();
|
1111
|
-
break;
|
1112
|
-
}
|
1113
|
-
}
|
1114
|
-
return msg;
|
1115
|
-
};
|
1116
|
-
|
1117
|
-
|
1118
|
-
/**
|
1119
|
-
* Serializes the message to binary data (in protobuf wire format).
|
1120
|
-
* @return {!Uint8Array}
|
1121
|
-
*/
|
1122
|
-
proto.tournament.PaginationRequest.prototype.serializeBinary = function() {
|
1123
|
-
var writer = new jspb.BinaryWriter();
|
1124
|
-
proto.tournament.PaginationRequest.serializeBinaryToWriter(this, writer);
|
1125
|
-
return writer.getResultBuffer();
|
1126
|
-
};
|
1127
|
-
|
1128
|
-
|
1129
|
-
/**
|
1130
|
-
* Serializes the given message to binary data (in protobuf wire
|
1131
|
-
* format), writing to the given BinaryWriter.
|
1132
|
-
* @param {!proto.tournament.PaginationRequest} message
|
1133
|
-
* @param {!jspb.BinaryWriter} writer
|
1134
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1135
|
-
*/
|
1136
|
-
proto.tournament.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
|
1137
|
-
var f = undefined;
|
1138
|
-
f = message.getLimit();
|
1139
|
-
if (f !== 0) {
|
1140
|
-
writer.writeInt32(
|
1141
|
-
1,
|
1142
|
-
f
|
1143
|
-
);
|
1144
|
-
}
|
1145
|
-
f = message.getOffset();
|
1146
|
-
if (f !== 0) {
|
1147
|
-
writer.writeInt32(
|
1148
|
-
2,
|
1149
|
-
f
|
1150
|
-
);
|
1151
|
-
}
|
1152
|
-
f = message.getUserSearchParams();
|
1153
|
-
if (f != null) {
|
1154
|
-
writer.writeMessage(
|
1155
|
-
3,
|
1156
|
-
f,
|
1157
|
-
proto.tournament.UserSearchRequest.serializeBinaryToWriter
|
1158
|
-
);
|
1159
|
-
}
|
1160
|
-
};
|
1161
|
-
|
1162
|
-
|
1163
|
-
/**
|
1164
|
-
* optional int32 limit = 1;
|
1165
|
-
* @return {number}
|
1166
|
-
*/
|
1167
|
-
proto.tournament.PaginationRequest.prototype.getLimit = function() {
|
1168
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1169
|
-
};
|
1170
|
-
|
1171
|
-
|
1172
|
-
/**
|
1173
|
-
* @param {number} value
|
1174
|
-
* @return {!proto.tournament.PaginationRequest} returns this
|
1175
|
-
*/
|
1176
|
-
proto.tournament.PaginationRequest.prototype.setLimit = function(value) {
|
1177
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
1178
|
-
};
|
1179
|
-
|
1180
|
-
|
1181
|
-
/**
|
1182
|
-
* optional int32 offset = 2;
|
1183
|
-
* @return {number}
|
1184
|
-
*/
|
1185
|
-
proto.tournament.PaginationRequest.prototype.getOffset = function() {
|
1186
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1187
|
-
};
|
1188
|
-
|
1189
|
-
|
1190
|
-
/**
|
1191
|
-
* @param {number} value
|
1192
|
-
* @return {!proto.tournament.PaginationRequest} returns this
|
1193
|
-
*/
|
1194
|
-
proto.tournament.PaginationRequest.prototype.setOffset = function(value) {
|
1195
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
1196
|
-
};
|
1197
|
-
|
1198
|
-
|
1199
|
-
/**
|
1200
|
-
* optional UserSearchRequest user_search_params = 3;
|
1201
|
-
* @return {?proto.tournament.UserSearchRequest}
|
1202
|
-
*/
|
1203
|
-
proto.tournament.PaginationRequest.prototype.getUserSearchParams = function() {
|
1204
|
-
return /** @type{?proto.tournament.UserSearchRequest} */ (
|
1205
|
-
jspb.Message.getWrapperField(this, proto.tournament.UserSearchRequest, 3));
|
1206
|
-
};
|
1207
|
-
|
1208
|
-
|
1209
|
-
/**
|
1210
|
-
* @param {?proto.tournament.UserSearchRequest|undefined} value
|
1211
|
-
* @return {!proto.tournament.PaginationRequest} returns this
|
1212
|
-
*/
|
1213
|
-
proto.tournament.PaginationRequest.prototype.setUserSearchParams = function(value) {
|
1214
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
1215
|
-
};
|
1216
|
-
|
1217
|
-
|
1218
|
-
/**
|
1219
|
-
* Clears the message field making it undefined.
|
1220
|
-
* @return {!proto.tournament.PaginationRequest} returns this
|
1221
|
-
*/
|
1222
|
-
proto.tournament.PaginationRequest.prototype.clearUserSearchParams = function() {
|
1223
|
-
return this.setUserSearchParams(undefined);
|
1224
|
-
};
|
1225
|
-
|
1226
|
-
|
1227
|
-
/**
|
1228
|
-
* Returns whether this field is set.
|
1229
|
-
* @return {boolean}
|
1230
|
-
*/
|
1231
|
-
proto.tournament.PaginationRequest.prototype.hasUserSearchParams = function() {
|
1232
|
-
return jspb.Message.getField(this, 3) != null;
|
1233
|
-
};
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1240
|
-
/**
|
1241
|
-
* Creates an object representation of this proto.
|
1242
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1243
|
-
* Optional fields that are not set will be set to undefined.
|
1244
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1245
|
-
* For the list of reserved names please see:
|
1246
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1247
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1248
|
-
* JSPB instance for transitional soy proto support:
|
1249
|
-
* http://goto/soy-param-migration
|
1250
|
-
* @return {!Object}
|
1251
|
-
*/
|
1252
|
-
proto.tournament.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
1253
|
-
return proto.tournament.UserSearchRequest.toObject(opt_includeInstance, this);
|
1254
|
-
};
|
1255
|
-
|
1256
|
-
|
1257
|
-
/**
|
1258
|
-
* Static version of the {@see toObject} method.
|
1259
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1260
|
-
* the JSPB instance for transitional soy proto support:
|
1261
|
-
* http://goto/soy-param-migration
|
1262
|
-
* @param {!proto.tournament.UserSearchRequest} msg The msg instance to transform.
|
1263
|
-
* @return {!Object}
|
1264
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1265
|
-
*/
|
1266
|
-
proto.tournament.UserSearchRequest.toObject = function(includeInstance, msg) {
|
1267
|
-
var f, obj = {
|
1268
|
-
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1269
|
-
balanceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1270
|
-
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
1271
|
-
};
|
1272
|
-
|
1273
|
-
if (includeInstance) {
|
1274
|
-
obj.$jspbMessageInstance = msg;
|
1275
|
-
}
|
1276
|
-
return obj;
|
1277
|
-
};
|
1278
|
-
}
|
1279
|
-
|
1280
|
-
|
1281
|
-
/**
|
1282
|
-
* Deserializes binary data (in protobuf wire format).
|
1283
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1284
|
-
* @return {!proto.tournament.UserSearchRequest}
|
1285
|
-
*/
|
1286
|
-
proto.tournament.UserSearchRequest.deserializeBinary = function(bytes) {
|
1287
|
-
var reader = new jspb.BinaryReader(bytes);
|
1288
|
-
var msg = new proto.tournament.UserSearchRequest;
|
1289
|
-
return proto.tournament.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
|
1290
|
-
};
|
1291
|
-
|
1292
|
-
|
1293
|
-
/**
|
1294
|
-
* Deserializes binary data (in protobuf wire format) from the
|
1295
|
-
* given reader into the given message object.
|
1296
|
-
* @param {!proto.tournament.UserSearchRequest} msg The message object to deserialize into.
|
1297
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1298
|
-
* @return {!proto.tournament.UserSearchRequest}
|
1299
|
-
*/
|
1300
|
-
proto.tournament.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1301
|
-
while (reader.nextField()) {
|
1302
|
-
if (reader.isEndGroup()) {
|
1303
|
-
break;
|
1304
|
-
}
|
1305
|
-
var field = reader.getFieldNumber();
|
1306
|
-
switch (field) {
|
1307
|
-
case 1:
|
1308
|
-
var value = /** @type {number} */ (reader.readInt32());
|
1309
|
-
msg.setUserId(value);
|
1310
|
-
break;
|
1311
|
-
case 2:
|
1312
|
-
var value = /** @type {string} */ (reader.readString());
|
1313
|
-
msg.setBalanceType(value);
|
1314
|
-
break;
|
1315
|
-
case 3:
|
1316
|
-
var value = /** @type {string} */ (reader.readString());
|
1317
|
-
msg.setCurrency(value);
|
1318
|
-
break;
|
1319
|
-
default:
|
1320
|
-
reader.skipField();
|
1321
|
-
break;
|
1322
|
-
}
|
1323
|
-
}
|
1324
|
-
return msg;
|
1325
|
-
};
|
1326
|
-
|
1327
|
-
|
1328
|
-
/**
|
1329
|
-
* Serializes the message to binary data (in protobuf wire format).
|
1330
|
-
* @return {!Uint8Array}
|
1331
|
-
*/
|
1332
|
-
proto.tournament.UserSearchRequest.prototype.serializeBinary = function() {
|
1333
|
-
var writer = new jspb.BinaryWriter();
|
1334
|
-
proto.tournament.UserSearchRequest.serializeBinaryToWriter(this, writer);
|
1335
|
-
return writer.getResultBuffer();
|
1336
|
-
};
|
1337
|
-
|
1338
|
-
|
1339
|
-
/**
|
1340
|
-
* Serializes the given message to binary data (in protobuf wire
|
1341
|
-
* format), writing to the given BinaryWriter.
|
1342
|
-
* @param {!proto.tournament.UserSearchRequest} message
|
1343
|
-
* @param {!jspb.BinaryWriter} writer
|
1344
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1345
|
-
*/
|
1346
|
-
proto.tournament.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
1347
|
-
var f = undefined;
|
1348
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1349
|
-
if (f != null) {
|
1350
|
-
writer.writeInt32(
|
1351
|
-
1,
|
1352
|
-
f
|
1353
|
-
);
|
1354
|
-
}
|
1355
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1356
|
-
if (f != null) {
|
1357
|
-
writer.writeString(
|
1358
|
-
2,
|
1359
|
-
f
|
1360
|
-
);
|
1361
|
-
}
|
1362
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1363
|
-
if (f != null) {
|
1364
|
-
writer.writeString(
|
1365
|
-
3,
|
1366
|
-
f
|
1367
|
-
);
|
1368
|
-
}
|
1369
|
-
};
|
1370
|
-
|
1371
|
-
|
1372
|
-
/**
|
1373
|
-
* optional int32 user_id = 1;
|
1374
|
-
* @return {number}
|
1375
|
-
*/
|
1376
|
-
proto.tournament.UserSearchRequest.prototype.getUserId = function() {
|
1377
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1378
|
-
};
|
1379
|
-
|
1380
|
-
|
1381
|
-
/**
|
1382
|
-
* @param {number} value
|
1383
|
-
* @return {!proto.tournament.UserSearchRequest} returns this
|
1384
|
-
*/
|
1385
|
-
proto.tournament.UserSearchRequest.prototype.setUserId = function(value) {
|
1386
|
-
return jspb.Message.setField(this, 1, value);
|
1387
|
-
};
|
1388
|
-
|
1389
|
-
|
1390
|
-
/**
|
1391
|
-
* Clears the field making it undefined.
|
1392
|
-
* @return {!proto.tournament.UserSearchRequest} returns this
|
1393
|
-
*/
|
1394
|
-
proto.tournament.UserSearchRequest.prototype.clearUserId = function() {
|
1395
|
-
return jspb.Message.setField(this, 1, undefined);
|
1396
|
-
};
|
1397
|
-
|
1398
|
-
|
1399
|
-
/**
|
1400
|
-
* Returns whether this field is set.
|
1401
|
-
* @return {boolean}
|
1402
|
-
*/
|
1403
|
-
proto.tournament.UserSearchRequest.prototype.hasUserId = function() {
|
1404
|
-
return jspb.Message.getField(this, 1) != null;
|
1405
|
-
};
|
1406
|
-
|
1407
|
-
|
1408
|
-
/**
|
1409
|
-
* optional string balance_type = 2;
|
1410
|
-
* @return {string}
|
1411
|
-
*/
|
1412
|
-
proto.tournament.UserSearchRequest.prototype.getBalanceType = function() {
|
1413
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1414
|
-
};
|
1415
|
-
|
1416
|
-
|
1417
|
-
/**
|
1418
|
-
* @param {string} value
|
1419
|
-
* @return {!proto.tournament.UserSearchRequest} returns this
|
1420
|
-
*/
|
1421
|
-
proto.tournament.UserSearchRequest.prototype.setBalanceType = function(value) {
|
1422
|
-
return jspb.Message.setField(this, 2, value);
|
1423
|
-
};
|
1424
|
-
|
1425
|
-
|
1426
|
-
/**
|
1427
|
-
* Clears the field making it undefined.
|
1428
|
-
* @return {!proto.tournament.UserSearchRequest} returns this
|
1429
|
-
*/
|
1430
|
-
proto.tournament.UserSearchRequest.prototype.clearBalanceType = function() {
|
1431
|
-
return jspb.Message.setField(this, 2, undefined);
|
1432
|
-
};
|
1433
|
-
|
1434
|
-
|
1435
|
-
/**
|
1436
|
-
* Returns whether this field is set.
|
1437
|
-
* @return {boolean}
|
1438
|
-
*/
|
1439
|
-
proto.tournament.UserSearchRequest.prototype.hasBalanceType = function() {
|
1440
|
-
return jspb.Message.getField(this, 2) != null;
|
1441
|
-
};
|
1442
|
-
|
1443
|
-
|
1444
|
-
/**
|
1445
|
-
* optional string currency = 3;
|
1446
|
-
* @return {string}
|
1447
|
-
*/
|
1448
|
-
proto.tournament.UserSearchRequest.prototype.getCurrency = function() {
|
1449
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1450
|
-
};
|
1451
|
-
|
1452
|
-
|
1453
|
-
/**
|
1454
|
-
* @param {string} value
|
1455
|
-
* @return {!proto.tournament.UserSearchRequest} returns this
|
1456
|
-
*/
|
1457
|
-
proto.tournament.UserSearchRequest.prototype.setCurrency = function(value) {
|
1458
|
-
return jspb.Message.setField(this, 3, value);
|
1459
|
-
};
|
1460
|
-
|
1461
|
-
|
1462
|
-
/**
|
1463
|
-
* Clears the field making it undefined.
|
1464
|
-
* @return {!proto.tournament.UserSearchRequest} returns this
|
1465
|
-
*/
|
1466
|
-
proto.tournament.UserSearchRequest.prototype.clearCurrency = function() {
|
1467
|
-
return jspb.Message.setField(this, 3, undefined);
|
1468
|
-
};
|
1469
|
-
|
1470
|
-
|
1471
|
-
/**
|
1472
|
-
* Returns whether this field is set.
|
1473
|
-
* @return {boolean}
|
1474
|
-
*/
|
1475
|
-
proto.tournament.UserSearchRequest.prototype.hasCurrency = function() {
|
1476
|
-
return jspb.Message.getField(this, 3) != null;
|
1477
|
-
};
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1484
|
-
/**
|
1485
|
-
* Creates an object representation of this proto.
|
1486
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1487
|
-
* Optional fields that are not set will be set to undefined.
|
1488
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1489
|
-
* For the list of reserved names please see:
|
1490
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1491
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1492
|
-
* JSPB instance for transitional soy proto support:
|
1493
|
-
* http://goto/soy-param-migration
|
1494
|
-
* @return {!Object}
|
1495
|
-
*/
|
1496
|
-
proto.tournament.TournamentItem.prototype.toObject = function(opt_includeInstance) {
|
1497
|
-
return proto.tournament.TournamentItem.toObject(opt_includeInstance, this);
|
1498
|
-
};
|
1499
|
-
|
1500
|
-
|
1501
|
-
/**
|
1502
|
-
* Static version of the {@see toObject} method.
|
1503
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1504
|
-
* the JSPB instance for transitional soy proto support:
|
1505
|
-
* http://goto/soy-param-migration
|
1506
|
-
* @param {!proto.tournament.TournamentItem} msg The msg instance to transform.
|
1507
|
-
* @return {!Object}
|
1508
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1509
|
-
*/
|
1510
|
-
proto.tournament.TournamentItem.toObject = function(includeInstance, msg) {
|
1511
|
-
var f, obj = {
|
1512
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1513
|
-
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1514
|
-
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1515
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
1516
|
-
currentMembersCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
1517
|
-
maxMembersCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
1518
|
-
startedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
1519
|
-
finishedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
1520
|
-
status: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
1521
|
-
image: jspb.Message.getFieldWithDefault(msg, 10, "")
|
1522
|
-
};
|
1523
|
-
|
1524
|
-
if (includeInstance) {
|
1525
|
-
obj.$jspbMessageInstance = msg;
|
1526
|
-
}
|
1527
|
-
return obj;
|
1528
|
-
};
|
1529
|
-
}
|
1530
|
-
|
1531
|
-
|
1532
|
-
/**
|
1533
|
-
* Deserializes binary data (in protobuf wire format).
|
1534
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1535
|
-
* @return {!proto.tournament.TournamentItem}
|
1536
|
-
*/
|
1537
|
-
proto.tournament.TournamentItem.deserializeBinary = function(bytes) {
|
1538
|
-
var reader = new jspb.BinaryReader(bytes);
|
1539
|
-
var msg = new proto.tournament.TournamentItem;
|
1540
|
-
return proto.tournament.TournamentItem.deserializeBinaryFromReader(msg, reader);
|
1541
|
-
};
|
1542
|
-
|
1543
|
-
|
1544
|
-
/**
|
1545
|
-
* Deserializes binary data (in protobuf wire format) from the
|
1546
|
-
* given reader into the given message object.
|
1547
|
-
* @param {!proto.tournament.TournamentItem} msg The message object to deserialize into.
|
1548
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1549
|
-
* @return {!proto.tournament.TournamentItem}
|
1550
|
-
*/
|
1551
|
-
proto.tournament.TournamentItem.deserializeBinaryFromReader = function(msg, reader) {
|
1552
|
-
while (reader.nextField()) {
|
1553
|
-
if (reader.isEndGroup()) {
|
1554
|
-
break;
|
1555
|
-
}
|
1556
|
-
var field = reader.getFieldNumber();
|
1557
|
-
switch (field) {
|
1558
|
-
case 1:
|
1559
|
-
var value = /** @type {number} */ (reader.readInt32());
|
1560
|
-
msg.setId(value);
|
1561
|
-
break;
|
1562
|
-
case 2:
|
1563
|
-
var value = /** @type {string} */ (reader.readString());
|
1564
|
-
msg.setTitle(value);
|
1565
|
-
break;
|
1566
|
-
case 3:
|
1567
|
-
var value = /** @type {string} */ (reader.readString());
|
1568
|
-
msg.setDescription(value);
|
1569
|
-
break;
|
1570
|
-
case 4:
|
1571
|
-
var value = /** @type {number} */ (reader.readInt32());
|
1572
|
-
msg.setIsActive(value);
|
1573
|
-
break;
|
1574
|
-
case 5:
|
1575
|
-
var value = /** @type {number} */ (reader.readInt32());
|
1576
|
-
msg.setCurrentMembersCount(value);
|
1577
|
-
break;
|
1578
|
-
case 6:
|
1579
|
-
var value = /** @type {number} */ (reader.readInt32());
|
1580
|
-
msg.setMaxMembersCount(value);
|
1581
|
-
break;
|
1582
|
-
case 7:
|
1583
|
-
var value = /** @type {string} */ (reader.readString());
|
1584
|
-
msg.setStartedAt(value);
|
1585
|
-
break;
|
1586
|
-
case 8:
|
1587
|
-
var value = /** @type {string} */ (reader.readString());
|
1588
|
-
msg.setFinishedAt(value);
|
1589
|
-
break;
|
1590
|
-
case 9:
|
1591
|
-
var value = /** @type {string} */ (reader.readString());
|
1592
|
-
msg.setStatus(value);
|
1593
|
-
break;
|
1594
|
-
case 10:
|
1595
|
-
var value = /** @type {string} */ (reader.readString());
|
1596
|
-
msg.setImage(value);
|
1597
|
-
break;
|
1598
|
-
default:
|
1599
|
-
reader.skipField();
|
1600
|
-
break;
|
1601
|
-
}
|
1602
|
-
}
|
1603
|
-
return msg;
|
1604
|
-
};
|
1605
|
-
|
1606
|
-
|
1607
|
-
/**
|
1608
|
-
* Serializes the message to binary data (in protobuf wire format).
|
1609
|
-
* @return {!Uint8Array}
|
1610
|
-
*/
|
1611
|
-
proto.tournament.TournamentItem.prototype.serializeBinary = function() {
|
1612
|
-
var writer = new jspb.BinaryWriter();
|
1613
|
-
proto.tournament.TournamentItem.serializeBinaryToWriter(this, writer);
|
1614
|
-
return writer.getResultBuffer();
|
1615
|
-
};
|
1616
|
-
|
1617
|
-
|
1618
|
-
/**
|
1619
|
-
* Serializes the given message to binary data (in protobuf wire
|
1620
|
-
* format), writing to the given BinaryWriter.
|
1621
|
-
* @param {!proto.tournament.TournamentItem} message
|
1622
|
-
* @param {!jspb.BinaryWriter} writer
|
1623
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1624
|
-
*/
|
1625
|
-
proto.tournament.TournamentItem.serializeBinaryToWriter = function(message, writer) {
|
1626
|
-
var f = undefined;
|
1627
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1628
|
-
if (f != null) {
|
1629
|
-
writer.writeInt32(
|
1630
|
-
1,
|
1631
|
-
f
|
1632
|
-
);
|
1633
|
-
}
|
1634
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1635
|
-
if (f != null) {
|
1636
|
-
writer.writeString(
|
1637
|
-
2,
|
1638
|
-
f
|
1639
|
-
);
|
1640
|
-
}
|
1641
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1642
|
-
if (f != null) {
|
1643
|
-
writer.writeString(
|
1644
|
-
3,
|
1645
|
-
f
|
1646
|
-
);
|
1647
|
-
}
|
1648
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
1649
|
-
if (f != null) {
|
1650
|
-
writer.writeInt32(
|
1651
|
-
4,
|
1652
|
-
f
|
1653
|
-
);
|
1654
|
-
}
|
1655
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
1656
|
-
if (f != null) {
|
1657
|
-
writer.writeInt32(
|
1658
|
-
5,
|
1659
|
-
f
|
1660
|
-
);
|
1661
|
-
}
|
1662
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
1663
|
-
if (f != null) {
|
1664
|
-
writer.writeInt32(
|
1665
|
-
6,
|
1666
|
-
f
|
1667
|
-
);
|
1668
|
-
}
|
1669
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
1670
|
-
if (f != null) {
|
1671
|
-
writer.writeString(
|
1672
|
-
7,
|
1673
|
-
f
|
1674
|
-
);
|
1675
|
-
}
|
1676
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
1677
|
-
if (f != null) {
|
1678
|
-
writer.writeString(
|
1679
|
-
8,
|
1680
|
-
f
|
1681
|
-
);
|
1682
|
-
}
|
1683
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
1684
|
-
if (f != null) {
|
1685
|
-
writer.writeString(
|
1686
|
-
9,
|
1687
|
-
f
|
1688
|
-
);
|
1689
|
-
}
|
1690
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
1691
|
-
if (f != null) {
|
1692
|
-
writer.writeString(
|
1693
|
-
10,
|
1694
|
-
f
|
1695
|
-
);
|
1696
|
-
}
|
1697
|
-
};
|
1698
|
-
|
1699
|
-
|
1700
|
-
/**
|
1701
|
-
* optional int32 id = 1;
|
1702
|
-
* @return {number}
|
1703
|
-
*/
|
1704
|
-
proto.tournament.TournamentItem.prototype.getId = function() {
|
1705
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1706
|
-
};
|
1707
|
-
|
1708
|
-
|
1709
|
-
/**
|
1710
|
-
* @param {number} value
|
1711
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1712
|
-
*/
|
1713
|
-
proto.tournament.TournamentItem.prototype.setId = function(value) {
|
1714
|
-
return jspb.Message.setField(this, 1, value);
|
1715
|
-
};
|
1716
|
-
|
1717
|
-
|
1718
|
-
/**
|
1719
|
-
* Clears the field making it undefined.
|
1720
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1721
|
-
*/
|
1722
|
-
proto.tournament.TournamentItem.prototype.clearId = function() {
|
1723
|
-
return jspb.Message.setField(this, 1, undefined);
|
1724
|
-
};
|
1725
|
-
|
1726
|
-
|
1727
|
-
/**
|
1728
|
-
* Returns whether this field is set.
|
1729
|
-
* @return {boolean}
|
1730
|
-
*/
|
1731
|
-
proto.tournament.TournamentItem.prototype.hasId = function() {
|
1732
|
-
return jspb.Message.getField(this, 1) != null;
|
1733
|
-
};
|
1734
|
-
|
1735
|
-
|
1736
|
-
/**
|
1737
|
-
* optional string title = 2;
|
1738
|
-
* @return {string}
|
1739
|
-
*/
|
1740
|
-
proto.tournament.TournamentItem.prototype.getTitle = function() {
|
1741
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1742
|
-
};
|
1743
|
-
|
1744
|
-
|
1745
|
-
/**
|
1746
|
-
* @param {string} value
|
1747
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1748
|
-
*/
|
1749
|
-
proto.tournament.TournamentItem.prototype.setTitle = function(value) {
|
1750
|
-
return jspb.Message.setField(this, 2, value);
|
1751
|
-
};
|
1752
|
-
|
1753
|
-
|
1754
|
-
/**
|
1755
|
-
* Clears the field making it undefined.
|
1756
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1757
|
-
*/
|
1758
|
-
proto.tournament.TournamentItem.prototype.clearTitle = function() {
|
1759
|
-
return jspb.Message.setField(this, 2, undefined);
|
1760
|
-
};
|
1761
|
-
|
1762
|
-
|
1763
|
-
/**
|
1764
|
-
* Returns whether this field is set.
|
1765
|
-
* @return {boolean}
|
1766
|
-
*/
|
1767
|
-
proto.tournament.TournamentItem.prototype.hasTitle = function() {
|
1768
|
-
return jspb.Message.getField(this, 2) != null;
|
1769
|
-
};
|
1770
|
-
|
1771
|
-
|
1772
|
-
/**
|
1773
|
-
* optional string description = 3;
|
1774
|
-
* @return {string}
|
1775
|
-
*/
|
1776
|
-
proto.tournament.TournamentItem.prototype.getDescription = function() {
|
1777
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1778
|
-
};
|
1779
|
-
|
1780
|
-
|
1781
|
-
/**
|
1782
|
-
* @param {string} value
|
1783
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1784
|
-
*/
|
1785
|
-
proto.tournament.TournamentItem.prototype.setDescription = function(value) {
|
1786
|
-
return jspb.Message.setField(this, 3, value);
|
1787
|
-
};
|
1788
|
-
|
1789
|
-
|
1790
|
-
/**
|
1791
|
-
* Clears the field making it undefined.
|
1792
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1793
|
-
*/
|
1794
|
-
proto.tournament.TournamentItem.prototype.clearDescription = function() {
|
1795
|
-
return jspb.Message.setField(this, 3, undefined);
|
1796
|
-
};
|
1797
|
-
|
1798
|
-
|
1799
|
-
/**
|
1800
|
-
* Returns whether this field is set.
|
1801
|
-
* @return {boolean}
|
1802
|
-
*/
|
1803
|
-
proto.tournament.TournamentItem.prototype.hasDescription = function() {
|
1804
|
-
return jspb.Message.getField(this, 3) != null;
|
1805
|
-
};
|
1806
|
-
|
1807
|
-
|
1808
|
-
/**
|
1809
|
-
* optional int32 is_active = 4;
|
1810
|
-
* @return {number}
|
1811
|
-
*/
|
1812
|
-
proto.tournament.TournamentItem.prototype.getIsActive = function() {
|
1813
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
1814
|
-
};
|
1815
|
-
|
1816
|
-
|
1817
|
-
/**
|
1818
|
-
* @param {number} value
|
1819
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1820
|
-
*/
|
1821
|
-
proto.tournament.TournamentItem.prototype.setIsActive = function(value) {
|
1822
|
-
return jspb.Message.setField(this, 4, value);
|
1823
|
-
};
|
1824
|
-
|
1825
|
-
|
1826
|
-
/**
|
1827
|
-
* Clears the field making it undefined.
|
1828
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1829
|
-
*/
|
1830
|
-
proto.tournament.TournamentItem.prototype.clearIsActive = function() {
|
1831
|
-
return jspb.Message.setField(this, 4, undefined);
|
1832
|
-
};
|
1833
|
-
|
1834
|
-
|
1835
|
-
/**
|
1836
|
-
* Returns whether this field is set.
|
1837
|
-
* @return {boolean}
|
1838
|
-
*/
|
1839
|
-
proto.tournament.TournamentItem.prototype.hasIsActive = function() {
|
1840
|
-
return jspb.Message.getField(this, 4) != null;
|
1841
|
-
};
|
1842
|
-
|
1843
|
-
|
1844
|
-
/**
|
1845
|
-
* optional int32 current_members_count = 5;
|
1846
|
-
* @return {number}
|
1847
|
-
*/
|
1848
|
-
proto.tournament.TournamentItem.prototype.getCurrentMembersCount = function() {
|
1849
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1850
|
-
};
|
1851
|
-
|
1852
|
-
|
1853
|
-
/**
|
1854
|
-
* @param {number} value
|
1855
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1856
|
-
*/
|
1857
|
-
proto.tournament.TournamentItem.prototype.setCurrentMembersCount = function(value) {
|
1858
|
-
return jspb.Message.setField(this, 5, value);
|
1859
|
-
};
|
1860
|
-
|
1861
|
-
|
1862
|
-
/**
|
1863
|
-
* Clears the field making it undefined.
|
1864
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1865
|
-
*/
|
1866
|
-
proto.tournament.TournamentItem.prototype.clearCurrentMembersCount = function() {
|
1867
|
-
return jspb.Message.setField(this, 5, undefined);
|
1868
|
-
};
|
1869
|
-
|
1870
|
-
|
1871
|
-
/**
|
1872
|
-
* Returns whether this field is set.
|
1873
|
-
* @return {boolean}
|
1874
|
-
*/
|
1875
|
-
proto.tournament.TournamentItem.prototype.hasCurrentMembersCount = function() {
|
1876
|
-
return jspb.Message.getField(this, 5) != null;
|
1877
|
-
};
|
1878
|
-
|
1879
|
-
|
1880
|
-
/**
|
1881
|
-
* optional int32 max_members_count = 6;
|
1882
|
-
* @return {number}
|
1883
|
-
*/
|
1884
|
-
proto.tournament.TournamentItem.prototype.getMaxMembersCount = function() {
|
1885
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
1886
|
-
};
|
1887
|
-
|
1888
|
-
|
1889
|
-
/**
|
1890
|
-
* @param {number} value
|
1891
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1892
|
-
*/
|
1893
|
-
proto.tournament.TournamentItem.prototype.setMaxMembersCount = function(value) {
|
1894
|
-
return jspb.Message.setField(this, 6, value);
|
1895
|
-
};
|
1896
|
-
|
1897
|
-
|
1898
|
-
/**
|
1899
|
-
* Clears the field making it undefined.
|
1900
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1901
|
-
*/
|
1902
|
-
proto.tournament.TournamentItem.prototype.clearMaxMembersCount = function() {
|
1903
|
-
return jspb.Message.setField(this, 6, undefined);
|
1904
|
-
};
|
1905
|
-
|
1906
|
-
|
1907
|
-
/**
|
1908
|
-
* Returns whether this field is set.
|
1909
|
-
* @return {boolean}
|
1910
|
-
*/
|
1911
|
-
proto.tournament.TournamentItem.prototype.hasMaxMembersCount = function() {
|
1912
|
-
return jspb.Message.getField(this, 6) != null;
|
1913
|
-
};
|
1914
|
-
|
1915
|
-
|
1916
|
-
/**
|
1917
|
-
* optional string started_at = 7;
|
1918
|
-
* @return {string}
|
1919
|
-
*/
|
1920
|
-
proto.tournament.TournamentItem.prototype.getStartedAt = function() {
|
1921
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
1922
|
-
};
|
1923
|
-
|
1924
|
-
|
1925
|
-
/**
|
1926
|
-
* @param {string} value
|
1927
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1928
|
-
*/
|
1929
|
-
proto.tournament.TournamentItem.prototype.setStartedAt = function(value) {
|
1930
|
-
return jspb.Message.setField(this, 7, value);
|
1931
|
-
};
|
1932
|
-
|
1933
|
-
|
1934
|
-
/**
|
1935
|
-
* Clears the field making it undefined.
|
1936
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1937
|
-
*/
|
1938
|
-
proto.tournament.TournamentItem.prototype.clearStartedAt = function() {
|
1939
|
-
return jspb.Message.setField(this, 7, undefined);
|
1940
|
-
};
|
1941
|
-
|
1942
|
-
|
1943
|
-
/**
|
1944
|
-
* Returns whether this field is set.
|
1945
|
-
* @return {boolean}
|
1946
|
-
*/
|
1947
|
-
proto.tournament.TournamentItem.prototype.hasStartedAt = function() {
|
1948
|
-
return jspb.Message.getField(this, 7) != null;
|
1949
|
-
};
|
1950
|
-
|
1951
|
-
|
1952
|
-
/**
|
1953
|
-
* optional string finished_at = 8;
|
1954
|
-
* @return {string}
|
1955
|
-
*/
|
1956
|
-
proto.tournament.TournamentItem.prototype.getFinishedAt = function() {
|
1957
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
1958
|
-
};
|
1959
|
-
|
1960
|
-
|
1961
|
-
/**
|
1962
|
-
* @param {string} value
|
1963
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1964
|
-
*/
|
1965
|
-
proto.tournament.TournamentItem.prototype.setFinishedAt = function(value) {
|
1966
|
-
return jspb.Message.setField(this, 8, value);
|
1967
|
-
};
|
1968
|
-
|
1969
|
-
|
1970
|
-
/**
|
1971
|
-
* Clears the field making it undefined.
|
1972
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
1973
|
-
*/
|
1974
|
-
proto.tournament.TournamentItem.prototype.clearFinishedAt = function() {
|
1975
|
-
return jspb.Message.setField(this, 8, undefined);
|
1976
|
-
};
|
1977
|
-
|
1978
|
-
|
1979
|
-
/**
|
1980
|
-
* Returns whether this field is set.
|
1981
|
-
* @return {boolean}
|
1982
|
-
*/
|
1983
|
-
proto.tournament.TournamentItem.prototype.hasFinishedAt = function() {
|
1984
|
-
return jspb.Message.getField(this, 8) != null;
|
1985
|
-
};
|
1986
|
-
|
1987
|
-
|
1988
|
-
/**
|
1989
|
-
* optional string status = 9;
|
1990
|
-
* @return {string}
|
1991
|
-
*/
|
1992
|
-
proto.tournament.TournamentItem.prototype.getStatus = function() {
|
1993
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
1994
|
-
};
|
1995
|
-
|
1996
|
-
|
1997
|
-
/**
|
1998
|
-
* @param {string} value
|
1999
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
2000
|
-
*/
|
2001
|
-
proto.tournament.TournamentItem.prototype.setStatus = function(value) {
|
2002
|
-
return jspb.Message.setField(this, 9, value);
|
2003
|
-
};
|
2004
|
-
|
2005
|
-
|
2006
|
-
/**
|
2007
|
-
* Clears the field making it undefined.
|
2008
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
2009
|
-
*/
|
2010
|
-
proto.tournament.TournamentItem.prototype.clearStatus = function() {
|
2011
|
-
return jspb.Message.setField(this, 9, undefined);
|
2012
|
-
};
|
2013
|
-
|
2014
|
-
|
2015
|
-
/**
|
2016
|
-
* Returns whether this field is set.
|
2017
|
-
* @return {boolean}
|
2018
|
-
*/
|
2019
|
-
proto.tournament.TournamentItem.prototype.hasStatus = function() {
|
2020
|
-
return jspb.Message.getField(this, 9) != null;
|
2021
|
-
};
|
2022
|
-
|
2023
|
-
|
2024
|
-
/**
|
2025
|
-
* optional string image = 10;
|
2026
|
-
* @return {string}
|
2027
|
-
*/
|
2028
|
-
proto.tournament.TournamentItem.prototype.getImage = function() {
|
2029
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
2030
|
-
};
|
2031
|
-
|
2032
|
-
|
2033
|
-
/**
|
2034
|
-
* @param {string} value
|
2035
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
2036
|
-
*/
|
2037
|
-
proto.tournament.TournamentItem.prototype.setImage = function(value) {
|
2038
|
-
return jspb.Message.setField(this, 10, value);
|
2039
|
-
};
|
2040
|
-
|
2041
|
-
|
2042
|
-
/**
|
2043
|
-
* Clears the field making it undefined.
|
2044
|
-
* @return {!proto.tournament.TournamentItem} returns this
|
2045
|
-
*/
|
2046
|
-
proto.tournament.TournamentItem.prototype.clearImage = function() {
|
2047
|
-
return jspb.Message.setField(this, 10, undefined);
|
2048
|
-
};
|
2049
|
-
|
2050
|
-
|
2051
|
-
/**
|
2052
|
-
* Returns whether this field is set.
|
2053
|
-
* @return {boolean}
|
2054
|
-
*/
|
2055
|
-
proto.tournament.TournamentItem.prototype.hasImage = function() {
|
2056
|
-
return jspb.Message.getField(this, 10) != null;
|
2057
|
-
};
|
2058
|
-
|
2059
|
-
|
2060
|
-
|
2061
|
-
/**
|
2062
|
-
* Oneof group definitions for this message. Each group defines the field
|
2063
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
2064
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
2065
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
2066
|
-
* @private {!Array<!Array<number>>}
|
2067
|
-
* @const
|
2068
|
-
*/
|
2069
|
-
proto.tournament.TournamentRequest.oneofGroups_ = [[1,2]];
|
2070
|
-
|
2071
|
-
/**
|
2072
|
-
* @enum {number}
|
2073
|
-
*/
|
2074
|
-
proto.tournament.TournamentRequest.RequestCase = {
|
2075
|
-
REQUEST_NOT_SET: 0,
|
2076
|
-
TOURNAMENT_DATA: 1,
|
2077
|
-
FILE: 2
|
2078
|
-
};
|
2079
|
-
|
2080
|
-
/**
|
2081
|
-
* @return {proto.tournament.TournamentRequest.RequestCase}
|
2082
|
-
*/
|
2083
|
-
proto.tournament.TournamentRequest.prototype.getRequestCase = function() {
|
2084
|
-
return /** @type {proto.tournament.TournamentRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.tournament.TournamentRequest.oneofGroups_[0]));
|
2085
|
-
};
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2090
|
-
/**
|
2091
|
-
* Creates an object representation of this proto.
|
2092
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2093
|
-
* Optional fields that are not set will be set to undefined.
|
2094
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2095
|
-
* For the list of reserved names please see:
|
2096
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2097
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2098
|
-
* JSPB instance for transitional soy proto support:
|
2099
|
-
* http://goto/soy-param-migration
|
2100
|
-
* @return {!Object}
|
2101
|
-
*/
|
2102
|
-
proto.tournament.TournamentRequest.prototype.toObject = function(opt_includeInstance) {
|
2103
|
-
return proto.tournament.TournamentRequest.toObject(opt_includeInstance, this);
|
2104
|
-
};
|
2105
|
-
|
2106
|
-
|
2107
|
-
/**
|
2108
|
-
* Static version of the {@see toObject} method.
|
2109
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2110
|
-
* the JSPB instance for transitional soy proto support:
|
2111
|
-
* http://goto/soy-param-migration
|
2112
|
-
* @param {!proto.tournament.TournamentRequest} msg The msg instance to transform.
|
2113
|
-
* @return {!Object}
|
2114
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2115
|
-
*/
|
2116
|
-
proto.tournament.TournamentRequest.toObject = function(includeInstance, msg) {
|
2117
|
-
var f, obj = {
|
2118
|
-
tournamentData: (f = msg.getTournamentData()) && proto.tournament.TournamentItemRequest.toObject(includeInstance, f),
|
2119
|
-
file: (f = msg.getFile()) && proto.tournament.File.toObject(includeInstance, f)
|
2120
|
-
};
|
2121
|
-
|
2122
|
-
if (includeInstance) {
|
2123
|
-
obj.$jspbMessageInstance = msg;
|
2124
|
-
}
|
2125
|
-
return obj;
|
2126
|
-
};
|
2127
|
-
}
|
2128
|
-
|
2129
|
-
|
2130
|
-
/**
|
2131
|
-
* Deserializes binary data (in protobuf wire format).
|
2132
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2133
|
-
* @return {!proto.tournament.TournamentRequest}
|
2134
|
-
*/
|
2135
|
-
proto.tournament.TournamentRequest.deserializeBinary = function(bytes) {
|
2136
|
-
var reader = new jspb.BinaryReader(bytes);
|
2137
|
-
var msg = new proto.tournament.TournamentRequest;
|
2138
|
-
return proto.tournament.TournamentRequest.deserializeBinaryFromReader(msg, reader);
|
2139
|
-
};
|
2140
|
-
|
2141
|
-
|
2142
|
-
/**
|
2143
|
-
* Deserializes binary data (in protobuf wire format) from the
|
2144
|
-
* given reader into the given message object.
|
2145
|
-
* @param {!proto.tournament.TournamentRequest} msg The message object to deserialize into.
|
2146
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2147
|
-
* @return {!proto.tournament.TournamentRequest}
|
2148
|
-
*/
|
2149
|
-
proto.tournament.TournamentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2150
|
-
while (reader.nextField()) {
|
2151
|
-
if (reader.isEndGroup()) {
|
2152
|
-
break;
|
2153
|
-
}
|
2154
|
-
var field = reader.getFieldNumber();
|
2155
|
-
switch (field) {
|
2156
|
-
case 1:
|
2157
|
-
var value = new proto.tournament.TournamentItemRequest;
|
2158
|
-
reader.readMessage(value,proto.tournament.TournamentItemRequest.deserializeBinaryFromReader);
|
2159
|
-
msg.setTournamentData(value);
|
2160
|
-
break;
|
2161
|
-
case 2:
|
2162
|
-
var value = new proto.tournament.File;
|
2163
|
-
reader.readMessage(value,proto.tournament.File.deserializeBinaryFromReader);
|
2164
|
-
msg.setFile(value);
|
2165
|
-
break;
|
2166
|
-
default:
|
2167
|
-
reader.skipField();
|
2168
|
-
break;
|
2169
|
-
}
|
2170
|
-
}
|
2171
|
-
return msg;
|
2172
|
-
};
|
2173
|
-
|
2174
|
-
|
2175
|
-
/**
|
2176
|
-
* Serializes the message to binary data (in protobuf wire format).
|
2177
|
-
* @return {!Uint8Array}
|
2178
|
-
*/
|
2179
|
-
proto.tournament.TournamentRequest.prototype.serializeBinary = function() {
|
2180
|
-
var writer = new jspb.BinaryWriter();
|
2181
|
-
proto.tournament.TournamentRequest.serializeBinaryToWriter(this, writer);
|
2182
|
-
return writer.getResultBuffer();
|
2183
|
-
};
|
2184
|
-
|
2185
|
-
|
2186
|
-
/**
|
2187
|
-
* Serializes the given message to binary data (in protobuf wire
|
2188
|
-
* format), writing to the given BinaryWriter.
|
2189
|
-
* @param {!proto.tournament.TournamentRequest} message
|
2190
|
-
* @param {!jspb.BinaryWriter} writer
|
2191
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2192
|
-
*/
|
2193
|
-
proto.tournament.TournamentRequest.serializeBinaryToWriter = function(message, writer) {
|
2194
|
-
var f = undefined;
|
2195
|
-
f = message.getTournamentData();
|
2196
|
-
if (f != null) {
|
2197
|
-
writer.writeMessage(
|
2198
|
-
1,
|
2199
|
-
f,
|
2200
|
-
proto.tournament.TournamentItemRequest.serializeBinaryToWriter
|
2201
|
-
);
|
2202
|
-
}
|
2203
|
-
f = message.getFile();
|
2204
|
-
if (f != null) {
|
2205
|
-
writer.writeMessage(
|
2206
|
-
2,
|
2207
|
-
f,
|
2208
|
-
proto.tournament.File.serializeBinaryToWriter
|
2209
|
-
);
|
2210
|
-
}
|
2211
|
-
};
|
2212
|
-
|
2213
|
-
|
2214
|
-
/**
|
2215
|
-
* optional TournamentItemRequest tournament_data = 1;
|
2216
|
-
* @return {?proto.tournament.TournamentItemRequest}
|
2217
|
-
*/
|
2218
|
-
proto.tournament.TournamentRequest.prototype.getTournamentData = function() {
|
2219
|
-
return /** @type{?proto.tournament.TournamentItemRequest} */ (
|
2220
|
-
jspb.Message.getWrapperField(this, proto.tournament.TournamentItemRequest, 1));
|
2221
|
-
};
|
2222
|
-
|
2223
|
-
|
2224
|
-
/**
|
2225
|
-
* @param {?proto.tournament.TournamentItemRequest|undefined} value
|
2226
|
-
* @return {!proto.tournament.TournamentRequest} returns this
|
2227
|
-
*/
|
2228
|
-
proto.tournament.TournamentRequest.prototype.setTournamentData = function(value) {
|
2229
|
-
return jspb.Message.setOneofWrapperField(this, 1, proto.tournament.TournamentRequest.oneofGroups_[0], value);
|
2230
|
-
};
|
2231
|
-
|
2232
|
-
|
2233
|
-
/**
|
2234
|
-
* Clears the message field making it undefined.
|
2235
|
-
* @return {!proto.tournament.TournamentRequest} returns this
|
2236
|
-
*/
|
2237
|
-
proto.tournament.TournamentRequest.prototype.clearTournamentData = function() {
|
2238
|
-
return this.setTournamentData(undefined);
|
2239
|
-
};
|
2240
|
-
|
2241
|
-
|
2242
|
-
/**
|
2243
|
-
* Returns whether this field is set.
|
2244
|
-
* @return {boolean}
|
2245
|
-
*/
|
2246
|
-
proto.tournament.TournamentRequest.prototype.hasTournamentData = function() {
|
2247
|
-
return jspb.Message.getField(this, 1) != null;
|
2248
|
-
};
|
2249
|
-
|
2250
|
-
|
2251
|
-
/**
|
2252
|
-
* optional File file = 2;
|
2253
|
-
* @return {?proto.tournament.File}
|
2254
|
-
*/
|
2255
|
-
proto.tournament.TournamentRequest.prototype.getFile = function() {
|
2256
|
-
return /** @type{?proto.tournament.File} */ (
|
2257
|
-
jspb.Message.getWrapperField(this, proto.tournament.File, 2));
|
2258
|
-
};
|
2259
|
-
|
2260
|
-
|
2261
|
-
/**
|
2262
|
-
* @param {?proto.tournament.File|undefined} value
|
2263
|
-
* @return {!proto.tournament.TournamentRequest} returns this
|
2264
|
-
*/
|
2265
|
-
proto.tournament.TournamentRequest.prototype.setFile = function(value) {
|
2266
|
-
return jspb.Message.setOneofWrapperField(this, 2, proto.tournament.TournamentRequest.oneofGroups_[0], value);
|
2267
|
-
};
|
2268
|
-
|
2269
|
-
|
2270
|
-
/**
|
2271
|
-
* Clears the message field making it undefined.
|
2272
|
-
* @return {!proto.tournament.TournamentRequest} returns this
|
2273
|
-
*/
|
2274
|
-
proto.tournament.TournamentRequest.prototype.clearFile = function() {
|
2275
|
-
return this.setFile(undefined);
|
2276
|
-
};
|
2277
|
-
|
2278
|
-
|
2279
|
-
/**
|
2280
|
-
* Returns whether this field is set.
|
2281
|
-
* @return {boolean}
|
2282
|
-
*/
|
2283
|
-
proto.tournament.TournamentRequest.prototype.hasFile = function() {
|
2284
|
-
return jspb.Message.getField(this, 2) != null;
|
2285
|
-
};
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2292
|
-
/**
|
2293
|
-
* Creates an object representation of this proto.
|
2294
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2295
|
-
* Optional fields that are not set will be set to undefined.
|
2296
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2297
|
-
* For the list of reserved names please see:
|
2298
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2299
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2300
|
-
* JSPB instance for transitional soy proto support:
|
2301
|
-
* http://goto/soy-param-migration
|
2302
|
-
* @return {!Object}
|
2303
|
-
*/
|
2304
|
-
proto.tournament.TournamentItemRequest.prototype.toObject = function(opt_includeInstance) {
|
2305
|
-
return proto.tournament.TournamentItemRequest.toObject(opt_includeInstance, this);
|
2306
|
-
};
|
2307
|
-
|
2308
|
-
|
2309
|
-
/**
|
2310
|
-
* Static version of the {@see toObject} method.
|
2311
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2312
|
-
* the JSPB instance for transitional soy proto support:
|
2313
|
-
* http://goto/soy-param-migration
|
2314
|
-
* @param {!proto.tournament.TournamentItemRequest} msg The msg instance to transform.
|
2315
|
-
* @return {!Object}
|
2316
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2317
|
-
*/
|
2318
|
-
proto.tournament.TournamentItemRequest.toObject = function(includeInstance, msg) {
|
2319
|
-
var f, obj = {
|
2320
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2321
|
-
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
2322
|
-
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
2323
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
2324
|
-
maxMembersCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
2325
|
-
startedAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
2326
|
-
finishedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
2327
|
-
statusId: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
2328
|
-
};
|
2329
|
-
|
2330
|
-
if (includeInstance) {
|
2331
|
-
obj.$jspbMessageInstance = msg;
|
2332
|
-
}
|
2333
|
-
return obj;
|
2334
|
-
};
|
2335
|
-
}
|
2336
|
-
|
2337
|
-
|
2338
|
-
/**
|
2339
|
-
* Deserializes binary data (in protobuf wire format).
|
2340
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2341
|
-
* @return {!proto.tournament.TournamentItemRequest}
|
2342
|
-
*/
|
2343
|
-
proto.tournament.TournamentItemRequest.deserializeBinary = function(bytes) {
|
2344
|
-
var reader = new jspb.BinaryReader(bytes);
|
2345
|
-
var msg = new proto.tournament.TournamentItemRequest;
|
2346
|
-
return proto.tournament.TournamentItemRequest.deserializeBinaryFromReader(msg, reader);
|
2347
|
-
};
|
2348
|
-
|
2349
|
-
|
2350
|
-
/**
|
2351
|
-
* Deserializes binary data (in protobuf wire format) from the
|
2352
|
-
* given reader into the given message object.
|
2353
|
-
* @param {!proto.tournament.TournamentItemRequest} msg The message object to deserialize into.
|
2354
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2355
|
-
* @return {!proto.tournament.TournamentItemRequest}
|
2356
|
-
*/
|
2357
|
-
proto.tournament.TournamentItemRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2358
|
-
while (reader.nextField()) {
|
2359
|
-
if (reader.isEndGroup()) {
|
2360
|
-
break;
|
2361
|
-
}
|
2362
|
-
var field = reader.getFieldNumber();
|
2363
|
-
switch (field) {
|
2364
|
-
case 1:
|
2365
|
-
var value = /** @type {number} */ (reader.readInt32());
|
2366
|
-
msg.setId(value);
|
2367
|
-
break;
|
2368
|
-
case 2:
|
2369
|
-
var value = /** @type {string} */ (reader.readString());
|
2370
|
-
msg.setTitle(value);
|
2371
|
-
break;
|
2372
|
-
case 3:
|
2373
|
-
var value = /** @type {string} */ (reader.readString());
|
2374
|
-
msg.setDescription(value);
|
2375
|
-
break;
|
2376
|
-
case 4:
|
2377
|
-
var value = /** @type {number} */ (reader.readInt32());
|
2378
|
-
msg.setIsActive(value);
|
2379
|
-
break;
|
2380
|
-
case 5:
|
2381
|
-
var value = /** @type {number} */ (reader.readInt32());
|
2382
|
-
msg.setMaxMembersCount(value);
|
2383
|
-
break;
|
2384
|
-
case 6:
|
2385
|
-
var value = /** @type {string} */ (reader.readString());
|
2386
|
-
msg.setStartedAt(value);
|
2387
|
-
break;
|
2388
|
-
case 7:
|
2389
|
-
var value = /** @type {string} */ (reader.readString());
|
2390
|
-
msg.setFinishedAt(value);
|
2391
|
-
break;
|
2392
|
-
case 8:
|
2393
|
-
var value = /** @type {number} */ (reader.readInt32());
|
2394
|
-
msg.setStatusId(value);
|
2395
|
-
break;
|
2396
|
-
default:
|
2397
|
-
reader.skipField();
|
2398
|
-
break;
|
2399
|
-
}
|
2400
|
-
}
|
2401
|
-
return msg;
|
2402
|
-
};
|
2403
|
-
|
2404
|
-
|
2405
|
-
/**
|
2406
|
-
* Serializes the message to binary data (in protobuf wire format).
|
2407
|
-
* @return {!Uint8Array}
|
2408
|
-
*/
|
2409
|
-
proto.tournament.TournamentItemRequest.prototype.serializeBinary = function() {
|
2410
|
-
var writer = new jspb.BinaryWriter();
|
2411
|
-
proto.tournament.TournamentItemRequest.serializeBinaryToWriter(this, writer);
|
2412
|
-
return writer.getResultBuffer();
|
2413
|
-
};
|
2414
|
-
|
2415
|
-
|
2416
|
-
/**
|
2417
|
-
* Serializes the given message to binary data (in protobuf wire
|
2418
|
-
* format), writing to the given BinaryWriter.
|
2419
|
-
* @param {!proto.tournament.TournamentItemRequest} message
|
2420
|
-
* @param {!jspb.BinaryWriter} writer
|
2421
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2422
|
-
*/
|
2423
|
-
proto.tournament.TournamentItemRequest.serializeBinaryToWriter = function(message, writer) {
|
2424
|
-
var f = undefined;
|
2425
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
2426
|
-
if (f != null) {
|
2427
|
-
writer.writeInt32(
|
2428
|
-
1,
|
2429
|
-
f
|
2430
|
-
);
|
2431
|
-
}
|
2432
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
2433
|
-
if (f != null) {
|
2434
|
-
writer.writeString(
|
2435
|
-
2,
|
2436
|
-
f
|
2437
|
-
);
|
2438
|
-
}
|
2439
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
2440
|
-
if (f != null) {
|
2441
|
-
writer.writeString(
|
2442
|
-
3,
|
2443
|
-
f
|
2444
|
-
);
|
2445
|
-
}
|
2446
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
2447
|
-
if (f != null) {
|
2448
|
-
writer.writeInt32(
|
2449
|
-
4,
|
2450
|
-
f
|
2451
|
-
);
|
2452
|
-
}
|
2453
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
2454
|
-
if (f != null) {
|
2455
|
-
writer.writeInt32(
|
2456
|
-
5,
|
2457
|
-
f
|
2458
|
-
);
|
2459
|
-
}
|
2460
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
2461
|
-
if (f != null) {
|
2462
|
-
writer.writeString(
|
2463
|
-
6,
|
2464
|
-
f
|
2465
|
-
);
|
2466
|
-
}
|
2467
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
2468
|
-
if (f != null) {
|
2469
|
-
writer.writeString(
|
2470
|
-
7,
|
2471
|
-
f
|
2472
|
-
);
|
2473
|
-
}
|
2474
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
2475
|
-
if (f != null) {
|
2476
|
-
writer.writeInt32(
|
2477
|
-
8,
|
2478
|
-
f
|
2479
|
-
);
|
2480
|
-
}
|
2481
|
-
};
|
2482
|
-
|
2483
|
-
|
2484
|
-
/**
|
2485
|
-
* optional int32 id = 1;
|
2486
|
-
* @return {number}
|
2487
|
-
*/
|
2488
|
-
proto.tournament.TournamentItemRequest.prototype.getId = function() {
|
2489
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2490
|
-
};
|
2491
|
-
|
2492
|
-
|
2493
|
-
/**
|
2494
|
-
* @param {number} value
|
2495
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2496
|
-
*/
|
2497
|
-
proto.tournament.TournamentItemRequest.prototype.setId = function(value) {
|
2498
|
-
return jspb.Message.setField(this, 1, value);
|
2499
|
-
};
|
2500
|
-
|
2501
|
-
|
2502
|
-
/**
|
2503
|
-
* Clears the field making it undefined.
|
2504
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2505
|
-
*/
|
2506
|
-
proto.tournament.TournamentItemRequest.prototype.clearId = function() {
|
2507
|
-
return jspb.Message.setField(this, 1, undefined);
|
2508
|
-
};
|
2509
|
-
|
2510
|
-
|
2511
|
-
/**
|
2512
|
-
* Returns whether this field is set.
|
2513
|
-
* @return {boolean}
|
2514
|
-
*/
|
2515
|
-
proto.tournament.TournamentItemRequest.prototype.hasId = function() {
|
2516
|
-
return jspb.Message.getField(this, 1) != null;
|
2517
|
-
};
|
2518
|
-
|
2519
|
-
|
2520
|
-
/**
|
2521
|
-
* optional string title = 2;
|
2522
|
-
* @return {string}
|
2523
|
-
*/
|
2524
|
-
proto.tournament.TournamentItemRequest.prototype.getTitle = function() {
|
2525
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2526
|
-
};
|
2527
|
-
|
2528
|
-
|
2529
|
-
/**
|
2530
|
-
* @param {string} value
|
2531
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2532
|
-
*/
|
2533
|
-
proto.tournament.TournamentItemRequest.prototype.setTitle = function(value) {
|
2534
|
-
return jspb.Message.setField(this, 2, value);
|
2535
|
-
};
|
2536
|
-
|
2537
|
-
|
2538
|
-
/**
|
2539
|
-
* Clears the field making it undefined.
|
2540
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2541
|
-
*/
|
2542
|
-
proto.tournament.TournamentItemRequest.prototype.clearTitle = function() {
|
2543
|
-
return jspb.Message.setField(this, 2, undefined);
|
2544
|
-
};
|
2545
|
-
|
2546
|
-
|
2547
|
-
/**
|
2548
|
-
* Returns whether this field is set.
|
2549
|
-
* @return {boolean}
|
2550
|
-
*/
|
2551
|
-
proto.tournament.TournamentItemRequest.prototype.hasTitle = function() {
|
2552
|
-
return jspb.Message.getField(this, 2) != null;
|
2553
|
-
};
|
2554
|
-
|
2555
|
-
|
2556
|
-
/**
|
2557
|
-
* optional string description = 3;
|
2558
|
-
* @return {string}
|
2559
|
-
*/
|
2560
|
-
proto.tournament.TournamentItemRequest.prototype.getDescription = function() {
|
2561
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
2562
|
-
};
|
2563
|
-
|
2564
|
-
|
2565
|
-
/**
|
2566
|
-
* @param {string} value
|
2567
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2568
|
-
*/
|
2569
|
-
proto.tournament.TournamentItemRequest.prototype.setDescription = function(value) {
|
2570
|
-
return jspb.Message.setField(this, 3, value);
|
2571
|
-
};
|
2572
|
-
|
2573
|
-
|
2574
|
-
/**
|
2575
|
-
* Clears the field making it undefined.
|
2576
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2577
|
-
*/
|
2578
|
-
proto.tournament.TournamentItemRequest.prototype.clearDescription = function() {
|
2579
|
-
return jspb.Message.setField(this, 3, undefined);
|
2580
|
-
};
|
2581
|
-
|
2582
|
-
|
2583
|
-
/**
|
2584
|
-
* Returns whether this field is set.
|
2585
|
-
* @return {boolean}
|
2586
|
-
*/
|
2587
|
-
proto.tournament.TournamentItemRequest.prototype.hasDescription = function() {
|
2588
|
-
return jspb.Message.getField(this, 3) != null;
|
2589
|
-
};
|
2590
|
-
|
2591
|
-
|
2592
|
-
/**
|
2593
|
-
* optional int32 is_active = 4;
|
2594
|
-
* @return {number}
|
2595
|
-
*/
|
2596
|
-
proto.tournament.TournamentItemRequest.prototype.getIsActive = function() {
|
2597
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
2598
|
-
};
|
2599
|
-
|
2600
|
-
|
2601
|
-
/**
|
2602
|
-
* @param {number} value
|
2603
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2604
|
-
*/
|
2605
|
-
proto.tournament.TournamentItemRequest.prototype.setIsActive = function(value) {
|
2606
|
-
return jspb.Message.setField(this, 4, value);
|
2607
|
-
};
|
2608
|
-
|
2609
|
-
|
2610
|
-
/**
|
2611
|
-
* Clears the field making it undefined.
|
2612
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2613
|
-
*/
|
2614
|
-
proto.tournament.TournamentItemRequest.prototype.clearIsActive = function() {
|
2615
|
-
return jspb.Message.setField(this, 4, undefined);
|
2616
|
-
};
|
2617
|
-
|
2618
|
-
|
2619
|
-
/**
|
2620
|
-
* Returns whether this field is set.
|
2621
|
-
* @return {boolean}
|
2622
|
-
*/
|
2623
|
-
proto.tournament.TournamentItemRequest.prototype.hasIsActive = function() {
|
2624
|
-
return jspb.Message.getField(this, 4) != null;
|
2625
|
-
};
|
2626
|
-
|
2627
|
-
|
2628
|
-
/**
|
2629
|
-
* optional int32 max_members_count = 5;
|
2630
|
-
* @return {number}
|
2631
|
-
*/
|
2632
|
-
proto.tournament.TournamentItemRequest.prototype.getMaxMembersCount = function() {
|
2633
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
2634
|
-
};
|
2635
|
-
|
2636
|
-
|
2637
|
-
/**
|
2638
|
-
* @param {number} value
|
2639
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2640
|
-
*/
|
2641
|
-
proto.tournament.TournamentItemRequest.prototype.setMaxMembersCount = function(value) {
|
2642
|
-
return jspb.Message.setField(this, 5, value);
|
2643
|
-
};
|
2644
|
-
|
2645
|
-
|
2646
|
-
/**
|
2647
|
-
* Clears the field making it undefined.
|
2648
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2649
|
-
*/
|
2650
|
-
proto.tournament.TournamentItemRequest.prototype.clearMaxMembersCount = function() {
|
2651
|
-
return jspb.Message.setField(this, 5, undefined);
|
2652
|
-
};
|
2653
|
-
|
2654
|
-
|
2655
|
-
/**
|
2656
|
-
* Returns whether this field is set.
|
2657
|
-
* @return {boolean}
|
2658
|
-
*/
|
2659
|
-
proto.tournament.TournamentItemRequest.prototype.hasMaxMembersCount = function() {
|
2660
|
-
return jspb.Message.getField(this, 5) != null;
|
2661
|
-
};
|
2662
|
-
|
2663
|
-
|
2664
|
-
/**
|
2665
|
-
* optional string started_at = 6;
|
2666
|
-
* @return {string}
|
2667
|
-
*/
|
2668
|
-
proto.tournament.TournamentItemRequest.prototype.getStartedAt = function() {
|
2669
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
2670
|
-
};
|
2671
|
-
|
2672
|
-
|
2673
|
-
/**
|
2674
|
-
* @param {string} value
|
2675
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2676
|
-
*/
|
2677
|
-
proto.tournament.TournamentItemRequest.prototype.setStartedAt = function(value) {
|
2678
|
-
return jspb.Message.setField(this, 6, value);
|
2679
|
-
};
|
2680
|
-
|
2681
|
-
|
2682
|
-
/**
|
2683
|
-
* Clears the field making it undefined.
|
2684
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2685
|
-
*/
|
2686
|
-
proto.tournament.TournamentItemRequest.prototype.clearStartedAt = function() {
|
2687
|
-
return jspb.Message.setField(this, 6, undefined);
|
2688
|
-
};
|
2689
|
-
|
2690
|
-
|
2691
|
-
/**
|
2692
|
-
* Returns whether this field is set.
|
2693
|
-
* @return {boolean}
|
2694
|
-
*/
|
2695
|
-
proto.tournament.TournamentItemRequest.prototype.hasStartedAt = function() {
|
2696
|
-
return jspb.Message.getField(this, 6) != null;
|
2697
|
-
};
|
2698
|
-
|
2699
|
-
|
2700
|
-
/**
|
2701
|
-
* optional string finished_at = 7;
|
2702
|
-
* @return {string}
|
2703
|
-
*/
|
2704
|
-
proto.tournament.TournamentItemRequest.prototype.getFinishedAt = function() {
|
2705
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
2706
|
-
};
|
2707
|
-
|
2708
|
-
|
2709
|
-
/**
|
2710
|
-
* @param {string} value
|
2711
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2712
|
-
*/
|
2713
|
-
proto.tournament.TournamentItemRequest.prototype.setFinishedAt = function(value) {
|
2714
|
-
return jspb.Message.setField(this, 7, value);
|
2715
|
-
};
|
2716
|
-
|
2717
|
-
|
2718
|
-
/**
|
2719
|
-
* Clears the field making it undefined.
|
2720
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2721
|
-
*/
|
2722
|
-
proto.tournament.TournamentItemRequest.prototype.clearFinishedAt = function() {
|
2723
|
-
return jspb.Message.setField(this, 7, undefined);
|
2724
|
-
};
|
2725
|
-
|
2726
|
-
|
2727
|
-
/**
|
2728
|
-
* Returns whether this field is set.
|
2729
|
-
* @return {boolean}
|
2730
|
-
*/
|
2731
|
-
proto.tournament.TournamentItemRequest.prototype.hasFinishedAt = function() {
|
2732
|
-
return jspb.Message.getField(this, 7) != null;
|
2733
|
-
};
|
2734
|
-
|
2735
|
-
|
2736
|
-
/**
|
2737
|
-
* optional int32 status_id = 8;
|
2738
|
-
* @return {number}
|
2739
|
-
*/
|
2740
|
-
proto.tournament.TournamentItemRequest.prototype.getStatusId = function() {
|
2741
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
2742
|
-
};
|
2743
|
-
|
2744
|
-
|
2745
|
-
/**
|
2746
|
-
* @param {number} value
|
2747
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2748
|
-
*/
|
2749
|
-
proto.tournament.TournamentItemRequest.prototype.setStatusId = function(value) {
|
2750
|
-
return jspb.Message.setField(this, 8, value);
|
2751
|
-
};
|
2752
|
-
|
2753
|
-
|
2754
|
-
/**
|
2755
|
-
* Clears the field making it undefined.
|
2756
|
-
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2757
|
-
*/
|
2758
|
-
proto.tournament.TournamentItemRequest.prototype.clearStatusId = function() {
|
2759
|
-
return jspb.Message.setField(this, 8, undefined);
|
2760
|
-
};
|
2761
|
-
|
2762
|
-
|
2763
|
-
/**
|
2764
|
-
* Returns whether this field is set.
|
2765
|
-
* @return {boolean}
|
2766
|
-
*/
|
2767
|
-
proto.tournament.TournamentItemRequest.prototype.hasStatusId = function() {
|
2768
|
-
return jspb.Message.getField(this, 8) != null;
|
2769
|
-
};
|
2770
|
-
|
2771
|
-
|
2772
|
-
|
2773
|
-
|
2774
|
-
|
2775
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2776
|
-
/**
|
2777
|
-
* Creates an object representation of this proto.
|
2778
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2779
|
-
* Optional fields that are not set will be set to undefined.
|
2780
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2781
|
-
* For the list of reserved names please see:
|
2782
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2783
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2784
|
-
* JSPB instance for transitional soy proto support:
|
2785
|
-
* http://goto/soy-param-migration
|
2786
|
-
* @return {!Object}
|
2787
|
-
*/
|
2788
|
-
proto.tournament.GetTournamentRequest.prototype.toObject = function(opt_includeInstance) {
|
2789
|
-
return proto.tournament.GetTournamentRequest.toObject(opt_includeInstance, this);
|
2790
|
-
};
|
2791
|
-
|
2792
|
-
|
2793
|
-
/**
|
2794
|
-
* Static version of the {@see toObject} method.
|
2795
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2796
|
-
* the JSPB instance for transitional soy proto support:
|
2797
|
-
* http://goto/soy-param-migration
|
2798
|
-
* @param {!proto.tournament.GetTournamentRequest} msg The msg instance to transform.
|
2799
|
-
* @return {!Object}
|
2800
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2801
|
-
*/
|
2802
|
-
proto.tournament.GetTournamentRequest.toObject = function(includeInstance, msg) {
|
2803
|
-
var f, obj = {
|
2804
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
2805
|
-
};
|
2806
|
-
|
2807
|
-
if (includeInstance) {
|
2808
|
-
obj.$jspbMessageInstance = msg;
|
2809
|
-
}
|
2810
|
-
return obj;
|
2811
|
-
};
|
2812
|
-
}
|
2813
|
-
|
2814
|
-
|
2815
|
-
/**
|
2816
|
-
* Deserializes binary data (in protobuf wire format).
|
2817
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2818
|
-
* @return {!proto.tournament.GetTournamentRequest}
|
2819
|
-
*/
|
2820
|
-
proto.tournament.GetTournamentRequest.deserializeBinary = function(bytes) {
|
2821
|
-
var reader = new jspb.BinaryReader(bytes);
|
2822
|
-
var msg = new proto.tournament.GetTournamentRequest;
|
2823
|
-
return proto.tournament.GetTournamentRequest.deserializeBinaryFromReader(msg, reader);
|
2824
|
-
};
|
2825
|
-
|
2826
|
-
|
2827
|
-
/**
|
2828
|
-
* Deserializes binary data (in protobuf wire format) from the
|
2829
|
-
* given reader into the given message object.
|
2830
|
-
* @param {!proto.tournament.GetTournamentRequest} msg The message object to deserialize into.
|
2831
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2832
|
-
* @return {!proto.tournament.GetTournamentRequest}
|
2833
|
-
*/
|
2834
|
-
proto.tournament.GetTournamentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2835
|
-
while (reader.nextField()) {
|
2836
|
-
if (reader.isEndGroup()) {
|
2837
|
-
break;
|
2838
|
-
}
|
2839
|
-
var field = reader.getFieldNumber();
|
2840
|
-
switch (field) {
|
2841
|
-
case 1:
|
2842
|
-
var value = /** @type {number} */ (reader.readInt32());
|
2843
|
-
msg.setId(value);
|
2844
|
-
break;
|
2845
|
-
default:
|
2846
|
-
reader.skipField();
|
2847
|
-
break;
|
2848
|
-
}
|
2849
|
-
}
|
2850
|
-
return msg;
|
2851
|
-
};
|
2852
|
-
|
2853
|
-
|
2854
|
-
/**
|
2855
|
-
* Serializes the message to binary data (in protobuf wire format).
|
2856
|
-
* @return {!Uint8Array}
|
2857
|
-
*/
|
2858
|
-
proto.tournament.GetTournamentRequest.prototype.serializeBinary = function() {
|
2859
|
-
var writer = new jspb.BinaryWriter();
|
2860
|
-
proto.tournament.GetTournamentRequest.serializeBinaryToWriter(this, writer);
|
2861
|
-
return writer.getResultBuffer();
|
2862
|
-
};
|
2863
|
-
|
2864
|
-
|
2865
|
-
/**
|
2866
|
-
* Serializes the given message to binary data (in protobuf wire
|
2867
|
-
* format), writing to the given BinaryWriter.
|
2868
|
-
* @param {!proto.tournament.GetTournamentRequest} message
|
2869
|
-
* @param {!jspb.BinaryWriter} writer
|
2870
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2871
|
-
*/
|
2872
|
-
proto.tournament.GetTournamentRequest.serializeBinaryToWriter = function(message, writer) {
|
2873
|
-
var f = undefined;
|
2874
|
-
f = message.getId();
|
2875
|
-
if (f !== 0) {
|
2876
|
-
writer.writeInt32(
|
2877
|
-
1,
|
2878
|
-
f
|
2879
|
-
);
|
2880
|
-
}
|
2881
|
-
};
|
2882
|
-
|
2883
|
-
|
2884
|
-
/**
|
2885
|
-
* optional int32 id = 1;
|
2886
|
-
* @return {number}
|
2887
|
-
*/
|
2888
|
-
proto.tournament.GetTournamentRequest.prototype.getId = function() {
|
2889
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2890
|
-
};
|
2891
|
-
|
2892
|
-
|
2893
|
-
/**
|
2894
|
-
* @param {number} value
|
2895
|
-
* @return {!proto.tournament.GetTournamentRequest} returns this
|
2896
|
-
*/
|
2897
|
-
proto.tournament.GetTournamentRequest.prototype.setId = function(value) {
|
2898
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
2899
|
-
};
|
2900
|
-
|
2901
|
-
|
2902
|
-
|
2903
|
-
|
2904
|
-
|
2905
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2906
|
-
/**
|
2907
|
-
* Creates an object representation of this proto.
|
2908
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2909
|
-
* Optional fields that are not set will be set to undefined.
|
2910
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2911
|
-
* For the list of reserved names please see:
|
2912
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2913
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2914
|
-
* JSPB instance for transitional soy proto support:
|
2915
|
-
* http://goto/soy-param-migration
|
2916
|
-
* @return {!Object}
|
2917
|
-
*/
|
2918
|
-
proto.tournament.TournamentResponse.prototype.toObject = function(opt_includeInstance) {
|
2919
|
-
return proto.tournament.TournamentResponse.toObject(opt_includeInstance, this);
|
2920
|
-
};
|
2921
|
-
|
2922
|
-
|
2923
|
-
/**
|
2924
|
-
* Static version of the {@see toObject} method.
|
2925
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2926
|
-
* the JSPB instance for transitional soy proto support:
|
2927
|
-
* http://goto/soy-param-migration
|
2928
|
-
* @param {!proto.tournament.TournamentResponse} msg The msg instance to transform.
|
2929
|
-
* @return {!Object}
|
2930
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2931
|
-
*/
|
2932
|
-
proto.tournament.TournamentResponse.toObject = function(includeInstance, msg) {
|
2933
|
-
var f, obj = {
|
2934
|
-
data: (f = msg.getData()) && proto.tournament.TournamentItem.toObject(includeInstance, f)
|
2935
|
-
};
|
2936
|
-
|
2937
|
-
if (includeInstance) {
|
2938
|
-
obj.$jspbMessageInstance = msg;
|
2939
|
-
}
|
2940
|
-
return obj;
|
2941
|
-
};
|
2942
|
-
}
|
2943
|
-
|
2944
|
-
|
2945
|
-
/**
|
2946
|
-
* Deserializes binary data (in protobuf wire format).
|
2947
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2948
|
-
* @return {!proto.tournament.TournamentResponse}
|
2949
|
-
*/
|
2950
|
-
proto.tournament.TournamentResponse.deserializeBinary = function(bytes) {
|
2951
|
-
var reader = new jspb.BinaryReader(bytes);
|
2952
|
-
var msg = new proto.tournament.TournamentResponse;
|
2953
|
-
return proto.tournament.TournamentResponse.deserializeBinaryFromReader(msg, reader);
|
2954
|
-
};
|
2955
|
-
|
2956
|
-
|
2957
|
-
/**
|
2958
|
-
* Deserializes binary data (in protobuf wire format) from the
|
2959
|
-
* given reader into the given message object.
|
2960
|
-
* @param {!proto.tournament.TournamentResponse} msg The message object to deserialize into.
|
2961
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2962
|
-
* @return {!proto.tournament.TournamentResponse}
|
2963
|
-
*/
|
2964
|
-
proto.tournament.TournamentResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2965
|
-
while (reader.nextField()) {
|
2966
|
-
if (reader.isEndGroup()) {
|
2967
|
-
break;
|
2968
|
-
}
|
2969
|
-
var field = reader.getFieldNumber();
|
2970
|
-
switch (field) {
|
2971
|
-
case 1:
|
2972
|
-
var value = new proto.tournament.TournamentItem;
|
2973
|
-
reader.readMessage(value,proto.tournament.TournamentItem.deserializeBinaryFromReader);
|
2974
|
-
msg.setData(value);
|
2975
|
-
break;
|
2976
|
-
default:
|
2977
|
-
reader.skipField();
|
2978
|
-
break;
|
2979
|
-
}
|
2980
|
-
}
|
2981
|
-
return msg;
|
2982
|
-
};
|
2983
|
-
|
2984
|
-
|
2985
|
-
/**
|
2986
|
-
* Serializes the message to binary data (in protobuf wire format).
|
2987
|
-
* @return {!Uint8Array}
|
2988
|
-
*/
|
2989
|
-
proto.tournament.TournamentResponse.prototype.serializeBinary = function() {
|
2990
|
-
var writer = new jspb.BinaryWriter();
|
2991
|
-
proto.tournament.TournamentResponse.serializeBinaryToWriter(this, writer);
|
2992
|
-
return writer.getResultBuffer();
|
2993
|
-
};
|
2994
|
-
|
2995
|
-
|
2996
|
-
/**
|
2997
|
-
* Serializes the given message to binary data (in protobuf wire
|
2998
|
-
* format), writing to the given BinaryWriter.
|
2999
|
-
* @param {!proto.tournament.TournamentResponse} message
|
3000
|
-
* @param {!jspb.BinaryWriter} writer
|
3001
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3002
|
-
*/
|
3003
|
-
proto.tournament.TournamentResponse.serializeBinaryToWriter = function(message, writer) {
|
3004
|
-
var f = undefined;
|
3005
|
-
f = message.getData();
|
3006
|
-
if (f != null) {
|
3007
|
-
writer.writeMessage(
|
3008
|
-
1,
|
3009
|
-
f,
|
3010
|
-
proto.tournament.TournamentItem.serializeBinaryToWriter
|
3011
|
-
);
|
3012
|
-
}
|
3013
|
-
};
|
3014
|
-
|
3015
|
-
|
3016
|
-
/**
|
3017
|
-
* optional TournamentItem data = 1;
|
3018
|
-
* @return {?proto.tournament.TournamentItem}
|
3019
|
-
*/
|
3020
|
-
proto.tournament.TournamentResponse.prototype.getData = function() {
|
3021
|
-
return /** @type{?proto.tournament.TournamentItem} */ (
|
3022
|
-
jspb.Message.getWrapperField(this, proto.tournament.TournamentItem, 1));
|
3023
|
-
};
|
3024
|
-
|
3025
|
-
|
3026
|
-
/**
|
3027
|
-
* @param {?proto.tournament.TournamentItem|undefined} value
|
3028
|
-
* @return {!proto.tournament.TournamentResponse} returns this
|
3029
|
-
*/
|
3030
|
-
proto.tournament.TournamentResponse.prototype.setData = function(value) {
|
3031
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
3032
|
-
};
|
3033
|
-
|
3034
|
-
|
3035
|
-
/**
|
3036
|
-
* Clears the message field making it undefined.
|
3037
|
-
* @return {!proto.tournament.TournamentResponse} returns this
|
3038
|
-
*/
|
3039
|
-
proto.tournament.TournamentResponse.prototype.clearData = function() {
|
3040
|
-
return this.setData(undefined);
|
3041
|
-
};
|
3042
|
-
|
3043
|
-
|
3044
|
-
/**
|
3045
|
-
* Returns whether this field is set.
|
3046
|
-
* @return {boolean}
|
3047
|
-
*/
|
3048
|
-
proto.tournament.TournamentResponse.prototype.hasData = function() {
|
3049
|
-
return jspb.Message.getField(this, 1) != null;
|
3050
|
-
};
|
3051
|
-
|
3052
|
-
|
3053
|
-
|
3054
|
-
/**
|
3055
|
-
* List of repeated fields within this message type.
|
3056
|
-
* @private {!Array<number>}
|
3057
|
-
* @const
|
3058
|
-
*/
|
3059
|
-
proto.tournament.TournamentItemsResponse.repeatedFields_ = [1];
|
3060
|
-
|
3061
|
-
|
3062
|
-
|
3063
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3064
|
-
/**
|
3065
|
-
* Creates an object representation of this proto.
|
3066
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3067
|
-
* Optional fields that are not set will be set to undefined.
|
3068
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3069
|
-
* For the list of reserved names please see:
|
3070
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3071
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3072
|
-
* JSPB instance for transitional soy proto support:
|
3073
|
-
* http://goto/soy-param-migration
|
3074
|
-
* @return {!Object}
|
3075
|
-
*/
|
3076
|
-
proto.tournament.TournamentItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
3077
|
-
return proto.tournament.TournamentItemsResponse.toObject(opt_includeInstance, this);
|
3078
|
-
};
|
3079
|
-
|
3080
|
-
|
3081
|
-
/**
|
3082
|
-
* Static version of the {@see toObject} method.
|
3083
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3084
|
-
* the JSPB instance for transitional soy proto support:
|
3085
|
-
* http://goto/soy-param-migration
|
3086
|
-
* @param {!proto.tournament.TournamentItemsResponse} msg The msg instance to transform.
|
3087
|
-
* @return {!Object}
|
3088
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3089
|
-
*/
|
3090
|
-
proto.tournament.TournamentItemsResponse.toObject = function(includeInstance, msg) {
|
3091
|
-
var f, obj = {
|
3092
|
-
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
3093
|
-
proto.tournament.TournamentItem.toObject, includeInstance),
|
3094
|
-
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
3095
|
-
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
3096
|
-
};
|
3097
|
-
|
3098
|
-
if (includeInstance) {
|
3099
|
-
obj.$jspbMessageInstance = msg;
|
3100
|
-
}
|
3101
|
-
return obj;
|
3102
|
-
};
|
3103
|
-
}
|
3104
|
-
|
3105
|
-
|
3106
|
-
/**
|
3107
|
-
* Deserializes binary data (in protobuf wire format).
|
3108
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3109
|
-
* @return {!proto.tournament.TournamentItemsResponse}
|
3110
|
-
*/
|
3111
|
-
proto.tournament.TournamentItemsResponse.deserializeBinary = function(bytes) {
|
3112
|
-
var reader = new jspb.BinaryReader(bytes);
|
3113
|
-
var msg = new proto.tournament.TournamentItemsResponse;
|
3114
|
-
return proto.tournament.TournamentItemsResponse.deserializeBinaryFromReader(msg, reader);
|
3115
|
-
};
|
3116
|
-
|
3117
|
-
|
3118
|
-
/**
|
3119
|
-
* Deserializes binary data (in protobuf wire format) from the
|
3120
|
-
* given reader into the given message object.
|
3121
|
-
* @param {!proto.tournament.TournamentItemsResponse} msg The message object to deserialize into.
|
3122
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3123
|
-
* @return {!proto.tournament.TournamentItemsResponse}
|
3124
|
-
*/
|
3125
|
-
proto.tournament.TournamentItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
3126
|
-
while (reader.nextField()) {
|
3127
|
-
if (reader.isEndGroup()) {
|
3128
|
-
break;
|
3129
|
-
}
|
3130
|
-
var field = reader.getFieldNumber();
|
3131
|
-
switch (field) {
|
3132
|
-
case 1:
|
3133
|
-
var value = new proto.tournament.TournamentItem;
|
3134
|
-
reader.readMessage(value,proto.tournament.TournamentItem.deserializeBinaryFromReader);
|
3135
|
-
msg.addItems(value);
|
3136
|
-
break;
|
3137
|
-
case 2:
|
3138
|
-
var value = /** @type {number} */ (reader.readInt32());
|
3139
|
-
msg.setTotalPages(value);
|
3140
|
-
break;
|
3141
|
-
case 3:
|
3142
|
-
var value = /** @type {number} */ (reader.readInt32());
|
3143
|
-
msg.setTotalItems(value);
|
3144
|
-
break;
|
3145
|
-
default:
|
3146
|
-
reader.skipField();
|
3147
|
-
break;
|
3148
|
-
}
|
3149
|
-
}
|
3150
|
-
return msg;
|
3151
|
-
};
|
3152
|
-
|
3153
|
-
|
3154
|
-
/**
|
3155
|
-
* Serializes the message to binary data (in protobuf wire format).
|
3156
|
-
* @return {!Uint8Array}
|
3157
|
-
*/
|
3158
|
-
proto.tournament.TournamentItemsResponse.prototype.serializeBinary = function() {
|
3159
|
-
var writer = new jspb.BinaryWriter();
|
3160
|
-
proto.tournament.TournamentItemsResponse.serializeBinaryToWriter(this, writer);
|
3161
|
-
return writer.getResultBuffer();
|
3162
|
-
};
|
3163
|
-
|
3164
|
-
|
3165
|
-
/**
|
3166
|
-
* Serializes the given message to binary data (in protobuf wire
|
3167
|
-
* format), writing to the given BinaryWriter.
|
3168
|
-
* @param {!proto.tournament.TournamentItemsResponse} message
|
3169
|
-
* @param {!jspb.BinaryWriter} writer
|
3170
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3171
|
-
*/
|
3172
|
-
proto.tournament.TournamentItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
3173
|
-
var f = undefined;
|
3174
|
-
f = message.getItemsList();
|
3175
|
-
if (f.length > 0) {
|
3176
|
-
writer.writeRepeatedMessage(
|
3177
|
-
1,
|
3178
|
-
f,
|
3179
|
-
proto.tournament.TournamentItem.serializeBinaryToWriter
|
3180
|
-
);
|
3181
|
-
}
|
3182
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
3183
|
-
if (f != null) {
|
3184
|
-
writer.writeInt32(
|
3185
|
-
2,
|
3186
|
-
f
|
3187
|
-
);
|
3188
|
-
}
|
3189
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
3190
|
-
if (f != null) {
|
3191
|
-
writer.writeInt32(
|
3192
|
-
3,
|
3193
|
-
f
|
3194
|
-
);
|
3195
|
-
}
|
3196
|
-
};
|
3197
|
-
|
3198
|
-
|
3199
|
-
/**
|
3200
|
-
* repeated TournamentItem items = 1;
|
3201
|
-
* @return {!Array<!proto.tournament.TournamentItem>}
|
3202
|
-
*/
|
3203
|
-
proto.tournament.TournamentItemsResponse.prototype.getItemsList = function() {
|
3204
|
-
return /** @type{!Array<!proto.tournament.TournamentItem>} */ (
|
3205
|
-
jspb.Message.getRepeatedWrapperField(this, proto.tournament.TournamentItem, 1));
|
3206
|
-
};
|
3207
|
-
|
3208
|
-
|
3209
|
-
/**
|
3210
|
-
* @param {!Array<!proto.tournament.TournamentItem>} value
|
3211
|
-
* @return {!proto.tournament.TournamentItemsResponse} returns this
|
3212
|
-
*/
|
3213
|
-
proto.tournament.TournamentItemsResponse.prototype.setItemsList = function(value) {
|
3214
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
3215
|
-
};
|
3216
|
-
|
3217
|
-
|
3218
|
-
/**
|
3219
|
-
* @param {!proto.tournament.TournamentItem=} opt_value
|
3220
|
-
* @param {number=} opt_index
|
3221
|
-
* @return {!proto.tournament.TournamentItem}
|
3222
|
-
*/
|
3223
|
-
proto.tournament.TournamentItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
3224
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tournament.TournamentItem, opt_index);
|
3225
|
-
};
|
3226
|
-
|
3227
|
-
|
3228
|
-
/**
|
3229
|
-
* Clears the list making it empty but non-null.
|
3230
|
-
* @return {!proto.tournament.TournamentItemsResponse} returns this
|
3231
|
-
*/
|
3232
|
-
proto.tournament.TournamentItemsResponse.prototype.clearItemsList = function() {
|
3233
|
-
return this.setItemsList([]);
|
3234
|
-
};
|
3235
|
-
|
3236
|
-
|
3237
|
-
/**
|
3238
|
-
* optional int32 total_pages = 2;
|
3239
|
-
* @return {number}
|
3240
|
-
*/
|
3241
|
-
proto.tournament.TournamentItemsResponse.prototype.getTotalPages = function() {
|
3242
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
3243
|
-
};
|
3244
|
-
|
3245
|
-
|
3246
|
-
/**
|
3247
|
-
* @param {number} value
|
3248
|
-
* @return {!proto.tournament.TournamentItemsResponse} returns this
|
3249
|
-
*/
|
3250
|
-
proto.tournament.TournamentItemsResponse.prototype.setTotalPages = function(value) {
|
3251
|
-
return jspb.Message.setField(this, 2, value);
|
3252
|
-
};
|
3253
|
-
|
3254
|
-
|
3255
|
-
/**
|
3256
|
-
* Clears the field making it undefined.
|
3257
|
-
* @return {!proto.tournament.TournamentItemsResponse} returns this
|
3258
|
-
*/
|
3259
|
-
proto.tournament.TournamentItemsResponse.prototype.clearTotalPages = function() {
|
3260
|
-
return jspb.Message.setField(this, 2, undefined);
|
3261
|
-
};
|
3262
|
-
|
3263
|
-
|
3264
|
-
/**
|
3265
|
-
* Returns whether this field is set.
|
3266
|
-
* @return {boolean}
|
3267
|
-
*/
|
3268
|
-
proto.tournament.TournamentItemsResponse.prototype.hasTotalPages = function() {
|
3269
|
-
return jspb.Message.getField(this, 2) != null;
|
3270
|
-
};
|
3271
|
-
|
3272
|
-
|
3273
|
-
/**
|
3274
|
-
* optional int32 total_items = 3;
|
3275
|
-
* @return {number}
|
3276
|
-
*/
|
3277
|
-
proto.tournament.TournamentItemsResponse.prototype.getTotalItems = function() {
|
3278
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
3279
|
-
};
|
3280
|
-
|
3281
|
-
|
3282
|
-
/**
|
3283
|
-
* @param {number} value
|
3284
|
-
* @return {!proto.tournament.TournamentItemsResponse} returns this
|
3285
|
-
*/
|
3286
|
-
proto.tournament.TournamentItemsResponse.prototype.setTotalItems = function(value) {
|
3287
|
-
return jspb.Message.setField(this, 3, value);
|
3288
|
-
};
|
3289
|
-
|
3290
|
-
|
3291
|
-
/**
|
3292
|
-
* Clears the field making it undefined.
|
3293
|
-
* @return {!proto.tournament.TournamentItemsResponse} returns this
|
3294
|
-
*/
|
3295
|
-
proto.tournament.TournamentItemsResponse.prototype.clearTotalItems = function() {
|
3296
|
-
return jspb.Message.setField(this, 3, undefined);
|
3297
|
-
};
|
3298
|
-
|
3299
|
-
|
3300
|
-
/**
|
3301
|
-
* Returns whether this field is set.
|
3302
|
-
* @return {boolean}
|
3303
|
-
*/
|
3304
|
-
proto.tournament.TournamentItemsResponse.prototype.hasTotalItems = function() {
|
3305
|
-
return jspb.Message.getField(this, 3) != null;
|
3306
|
-
};
|
3307
|
-
|
3308
|
-
|
3309
|
-
|
3310
|
-
|
3311
|
-
|
3312
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3313
|
-
/**
|
3314
|
-
* Creates an object representation of this proto.
|
3315
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3316
|
-
* Optional fields that are not set will be set to undefined.
|
3317
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3318
|
-
* For the list of reserved names please see:
|
3319
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3320
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3321
|
-
* JSPB instance for transitional soy proto support:
|
3322
|
-
* http://goto/soy-param-migration
|
3323
|
-
* @return {!Object}
|
3324
|
-
*/
|
3325
|
-
proto.tournament.TournamentStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
3326
|
-
return proto.tournament.TournamentStatusResponse.toObject(opt_includeInstance, this);
|
3327
|
-
};
|
3328
|
-
|
3329
|
-
|
3330
|
-
/**
|
3331
|
-
* Static version of the {@see toObject} method.
|
3332
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3333
|
-
* the JSPB instance for transitional soy proto support:
|
3334
|
-
* http://goto/soy-param-migration
|
3335
|
-
* @param {!proto.tournament.TournamentStatusResponse} msg The msg instance to transform.
|
3336
|
-
* @return {!Object}
|
3337
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3338
|
-
*/
|
3339
|
-
proto.tournament.TournamentStatusResponse.toObject = function(includeInstance, msg) {
|
3340
|
-
var f, obj = {
|
3341
|
-
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
3342
|
-
};
|
3343
|
-
|
3344
|
-
if (includeInstance) {
|
3345
|
-
obj.$jspbMessageInstance = msg;
|
3346
|
-
}
|
3347
|
-
return obj;
|
3348
|
-
};
|
3349
|
-
}
|
3350
|
-
|
3351
|
-
|
3352
|
-
/**
|
3353
|
-
* Deserializes binary data (in protobuf wire format).
|
3354
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3355
|
-
* @return {!proto.tournament.TournamentStatusResponse}
|
3356
|
-
*/
|
3357
|
-
proto.tournament.TournamentStatusResponse.deserializeBinary = function(bytes) {
|
3358
|
-
var reader = new jspb.BinaryReader(bytes);
|
3359
|
-
var msg = new proto.tournament.TournamentStatusResponse;
|
3360
|
-
return proto.tournament.TournamentStatusResponse.deserializeBinaryFromReader(msg, reader);
|
3361
|
-
};
|
3362
|
-
|
3363
|
-
|
3364
|
-
/**
|
3365
|
-
* Deserializes binary data (in protobuf wire format) from the
|
3366
|
-
* given reader into the given message object.
|
3367
|
-
* @param {!proto.tournament.TournamentStatusResponse} msg The message object to deserialize into.
|
3368
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3369
|
-
* @return {!proto.tournament.TournamentStatusResponse}
|
3370
|
-
*/
|
3371
|
-
proto.tournament.TournamentStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
3372
|
-
while (reader.nextField()) {
|
3373
|
-
if (reader.isEndGroup()) {
|
3374
|
-
break;
|
3375
|
-
}
|
3376
|
-
var field = reader.getFieldNumber();
|
3377
|
-
switch (field) {
|
3378
|
-
case 1:
|
3379
|
-
var value = /** @type {string} */ (reader.readString());
|
3380
|
-
msg.setStatus(value);
|
3381
|
-
break;
|
3382
|
-
default:
|
3383
|
-
reader.skipField();
|
3384
|
-
break;
|
3385
|
-
}
|
3386
|
-
}
|
3387
|
-
return msg;
|
3388
|
-
};
|
3389
|
-
|
3390
|
-
|
3391
|
-
/**
|
3392
|
-
* Serializes the message to binary data (in protobuf wire format).
|
3393
|
-
* @return {!Uint8Array}
|
3394
|
-
*/
|
3395
|
-
proto.tournament.TournamentStatusResponse.prototype.serializeBinary = function() {
|
3396
|
-
var writer = new jspb.BinaryWriter();
|
3397
|
-
proto.tournament.TournamentStatusResponse.serializeBinaryToWriter(this, writer);
|
3398
|
-
return writer.getResultBuffer();
|
3399
|
-
};
|
3400
|
-
|
3401
|
-
|
3402
|
-
/**
|
3403
|
-
* Serializes the given message to binary data (in protobuf wire
|
3404
|
-
* format), writing to the given BinaryWriter.
|
3405
|
-
* @param {!proto.tournament.TournamentStatusResponse} message
|
3406
|
-
* @param {!jspb.BinaryWriter} writer
|
3407
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3408
|
-
*/
|
3409
|
-
proto.tournament.TournamentStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
3410
|
-
var f = undefined;
|
3411
|
-
f = message.getStatus();
|
3412
|
-
if (f.length > 0) {
|
3413
|
-
writer.writeString(
|
3414
|
-
1,
|
3415
|
-
f
|
3416
|
-
);
|
3417
|
-
}
|
3418
|
-
};
|
3419
|
-
|
3420
|
-
|
3421
|
-
/**
|
3422
|
-
* optional string status = 1;
|
3423
|
-
* @return {string}
|
3424
|
-
*/
|
3425
|
-
proto.tournament.TournamentStatusResponse.prototype.getStatus = function() {
|
3426
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3427
|
-
};
|
3428
|
-
|
3429
|
-
|
3430
|
-
/**
|
3431
|
-
* @param {string} value
|
3432
|
-
* @return {!proto.tournament.TournamentStatusResponse} returns this
|
3433
|
-
*/
|
3434
|
-
proto.tournament.TournamentStatusResponse.prototype.setStatus = function(value) {
|
3435
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
3436
|
-
};
|
3437
|
-
|
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
|
-
|
3951
|
-
goog.object.extend(exports, proto.tournament);
|