protobuf-platform 1.0.298 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/game/game.proto +9 -0
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +418 -0
- package/package.json +1 -1
- package/tournament/tournament.proto +45 -1
- package/tournament/tournament_grpc_pb.js +66 -0
- package/tournament/tournament_pb.js +2208 -0
@@ -21,18 +21,24 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
+
goog.exportSymbol('proto.tournament.ActivationRuleItem', null, global);
|
24
25
|
goog.exportSymbol('proto.tournament.File', null, global);
|
25
26
|
goog.exportSymbol('proto.tournament.GetFileRequest', null, global);
|
26
27
|
goog.exportSymbol('proto.tournament.GetTournamentRequest', null, global);
|
27
28
|
goog.exportSymbol('proto.tournament.PaginationRequest', null, global);
|
28
29
|
goog.exportSymbol('proto.tournament.PingRequest', null, global);
|
29
30
|
goog.exportSymbol('proto.tournament.PongResponse', null, global);
|
31
|
+
goog.exportSymbol('proto.tournament.RewardItem', null, global);
|
32
|
+
goog.exportSymbol('proto.tournament.ScoringRule', null, global);
|
33
|
+
goog.exportSymbol('proto.tournament.TournamentActivationRuleRequest', null, global);
|
30
34
|
goog.exportSymbol('proto.tournament.TournamentItem', null, global);
|
31
35
|
goog.exportSymbol('proto.tournament.TournamentItemRequest', null, global);
|
32
36
|
goog.exportSymbol('proto.tournament.TournamentItemsResponse', null, global);
|
33
37
|
goog.exportSymbol('proto.tournament.TournamentRequest', null, global);
|
34
38
|
goog.exportSymbol('proto.tournament.TournamentRequest.RequestCase', null, global);
|
35
39
|
goog.exportSymbol('proto.tournament.TournamentResponse', null, global);
|
40
|
+
goog.exportSymbol('proto.tournament.TournamentRewardsRequest', null, global);
|
41
|
+
goog.exportSymbol('proto.tournament.TournamentScoringRuleRequest', null, global);
|
36
42
|
goog.exportSymbol('proto.tournament.TournamentStatusItem', null, global);
|
37
43
|
goog.exportSymbol('proto.tournament.TournamentStatusItemsResponse', null, global);
|
38
44
|
goog.exportSymbol('proto.tournament.TournamentStatusResponse', null, global);
|
@@ -352,6 +358,132 @@ if (goog.DEBUG && !COMPILED) {
|
|
352
358
|
*/
|
353
359
|
proto.tournament.TournamentStatusItemsResponse.displayName = 'proto.tournament.TournamentStatusItemsResponse';
|
354
360
|
}
|
361
|
+
/**
|
362
|
+
* Generated by JsPbCodeGenerator.
|
363
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
364
|
+
* server response, or constructed directly in Javascript. The array is used
|
365
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
366
|
+
* If no data is provided, the constructed object will be empty, but still
|
367
|
+
* valid.
|
368
|
+
* @extends {jspb.Message}
|
369
|
+
* @constructor
|
370
|
+
*/
|
371
|
+
proto.tournament.ActivationRuleItem = function(opt_data) {
|
372
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
373
|
+
};
|
374
|
+
goog.inherits(proto.tournament.ActivationRuleItem, jspb.Message);
|
375
|
+
if (goog.DEBUG && !COMPILED) {
|
376
|
+
/**
|
377
|
+
* @public
|
378
|
+
* @override
|
379
|
+
*/
|
380
|
+
proto.tournament.ActivationRuleItem.displayName = 'proto.tournament.ActivationRuleItem';
|
381
|
+
}
|
382
|
+
/**
|
383
|
+
* Generated by JsPbCodeGenerator.
|
384
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
385
|
+
* server response, or constructed directly in Javascript. The array is used
|
386
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
387
|
+
* If no data is provided, the constructed object will be empty, but still
|
388
|
+
* valid.
|
389
|
+
* @extends {jspb.Message}
|
390
|
+
* @constructor
|
391
|
+
*/
|
392
|
+
proto.tournament.TournamentActivationRuleRequest = function(opt_data) {
|
393
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.TournamentActivationRuleRequest.repeatedFields_, null);
|
394
|
+
};
|
395
|
+
goog.inherits(proto.tournament.TournamentActivationRuleRequest, jspb.Message);
|
396
|
+
if (goog.DEBUG && !COMPILED) {
|
397
|
+
/**
|
398
|
+
* @public
|
399
|
+
* @override
|
400
|
+
*/
|
401
|
+
proto.tournament.TournamentActivationRuleRequest.displayName = 'proto.tournament.TournamentActivationRuleRequest';
|
402
|
+
}
|
403
|
+
/**
|
404
|
+
* Generated by JsPbCodeGenerator.
|
405
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
406
|
+
* server response, or constructed directly in Javascript. The array is used
|
407
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
408
|
+
* If no data is provided, the constructed object will be empty, but still
|
409
|
+
* valid.
|
410
|
+
* @extends {jspb.Message}
|
411
|
+
* @constructor
|
412
|
+
*/
|
413
|
+
proto.tournament.ScoringRule = function(opt_data) {
|
414
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
415
|
+
};
|
416
|
+
goog.inherits(proto.tournament.ScoringRule, jspb.Message);
|
417
|
+
if (goog.DEBUG && !COMPILED) {
|
418
|
+
/**
|
419
|
+
* @public
|
420
|
+
* @override
|
421
|
+
*/
|
422
|
+
proto.tournament.ScoringRule.displayName = 'proto.tournament.ScoringRule';
|
423
|
+
}
|
424
|
+
/**
|
425
|
+
* Generated by JsPbCodeGenerator.
|
426
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
427
|
+
* server response, or constructed directly in Javascript. The array is used
|
428
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
429
|
+
* If no data is provided, the constructed object will be empty, but still
|
430
|
+
* valid.
|
431
|
+
* @extends {jspb.Message}
|
432
|
+
* @constructor
|
433
|
+
*/
|
434
|
+
proto.tournament.TournamentScoringRuleRequest = function(opt_data) {
|
435
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.TournamentScoringRuleRequest.repeatedFields_, null);
|
436
|
+
};
|
437
|
+
goog.inherits(proto.tournament.TournamentScoringRuleRequest, jspb.Message);
|
438
|
+
if (goog.DEBUG && !COMPILED) {
|
439
|
+
/**
|
440
|
+
* @public
|
441
|
+
* @override
|
442
|
+
*/
|
443
|
+
proto.tournament.TournamentScoringRuleRequest.displayName = 'proto.tournament.TournamentScoringRuleRequest';
|
444
|
+
}
|
445
|
+
/**
|
446
|
+
* Generated by JsPbCodeGenerator.
|
447
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
448
|
+
* server response, or constructed directly in Javascript. The array is used
|
449
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
450
|
+
* If no data is provided, the constructed object will be empty, but still
|
451
|
+
* valid.
|
452
|
+
* @extends {jspb.Message}
|
453
|
+
* @constructor
|
454
|
+
*/
|
455
|
+
proto.tournament.RewardItem = function(opt_data) {
|
456
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
457
|
+
};
|
458
|
+
goog.inherits(proto.tournament.RewardItem, jspb.Message);
|
459
|
+
if (goog.DEBUG && !COMPILED) {
|
460
|
+
/**
|
461
|
+
* @public
|
462
|
+
* @override
|
463
|
+
*/
|
464
|
+
proto.tournament.RewardItem.displayName = 'proto.tournament.RewardItem';
|
465
|
+
}
|
466
|
+
/**
|
467
|
+
* Generated by JsPbCodeGenerator.
|
468
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
469
|
+
* server response, or constructed directly in Javascript. The array is used
|
470
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
471
|
+
* If no data is provided, the constructed object will be empty, but still
|
472
|
+
* valid.
|
473
|
+
* @extends {jspb.Message}
|
474
|
+
* @constructor
|
475
|
+
*/
|
476
|
+
proto.tournament.TournamentRewardsRequest = function(opt_data) {
|
477
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.TournamentRewardsRequest.repeatedFields_, null);
|
478
|
+
};
|
479
|
+
goog.inherits(proto.tournament.TournamentRewardsRequest, jspb.Message);
|
480
|
+
if (goog.DEBUG && !COMPILED) {
|
481
|
+
/**
|
482
|
+
* @public
|
483
|
+
* @override
|
484
|
+
*/
|
485
|
+
proto.tournament.TournamentRewardsRequest.displayName = 'proto.tournament.TournamentRewardsRequest';
|
486
|
+
}
|
355
487
|
|
356
488
|
|
357
489
|
|
@@ -3948,4 +4080,2080 @@ proto.tournament.TournamentStatusItemsResponse.prototype.hasTotalItems = functio
|
|
3948
4080
|
};
|
3949
4081
|
|
3950
4082
|
|
4083
|
+
|
4084
|
+
|
4085
|
+
|
4086
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4087
|
+
/**
|
4088
|
+
* Creates an object representation of this proto.
|
4089
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4090
|
+
* Optional fields that are not set will be set to undefined.
|
4091
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4092
|
+
* For the list of reserved names please see:
|
4093
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4094
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4095
|
+
* JSPB instance for transitional soy proto support:
|
4096
|
+
* http://goto/soy-param-migration
|
4097
|
+
* @return {!Object}
|
4098
|
+
*/
|
4099
|
+
proto.tournament.ActivationRuleItem.prototype.toObject = function(opt_includeInstance) {
|
4100
|
+
return proto.tournament.ActivationRuleItem.toObject(opt_includeInstance, this);
|
4101
|
+
};
|
4102
|
+
|
4103
|
+
|
4104
|
+
/**
|
4105
|
+
* Static version of the {@see toObject} method.
|
4106
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4107
|
+
* the JSPB instance for transitional soy proto support:
|
4108
|
+
* http://goto/soy-param-migration
|
4109
|
+
* @param {!proto.tournament.ActivationRuleItem} msg The msg instance to transform.
|
4110
|
+
* @return {!Object}
|
4111
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4112
|
+
*/
|
4113
|
+
proto.tournament.ActivationRuleItem.toObject = function(includeInstance, msg) {
|
4114
|
+
var f, obj = {
|
4115
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4116
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
4117
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
4118
|
+
depositMinSum: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
4119
|
+
betsMinCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
4120
|
+
userCategoryId: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
4121
|
+
emailConfirmed: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
4122
|
+
phoneConfirmed: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
4123
|
+
kycConfirmed: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
4124
|
+
rankingPoints: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
4125
|
+
loyaltyPoints: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
4126
|
+
coins: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
4127
|
+
};
|
4128
|
+
|
4129
|
+
if (includeInstance) {
|
4130
|
+
obj.$jspbMessageInstance = msg;
|
4131
|
+
}
|
4132
|
+
return obj;
|
4133
|
+
};
|
4134
|
+
}
|
4135
|
+
|
4136
|
+
|
4137
|
+
/**
|
4138
|
+
* Deserializes binary data (in protobuf wire format).
|
4139
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4140
|
+
* @return {!proto.tournament.ActivationRuleItem}
|
4141
|
+
*/
|
4142
|
+
proto.tournament.ActivationRuleItem.deserializeBinary = function(bytes) {
|
4143
|
+
var reader = new jspb.BinaryReader(bytes);
|
4144
|
+
var msg = new proto.tournament.ActivationRuleItem;
|
4145
|
+
return proto.tournament.ActivationRuleItem.deserializeBinaryFromReader(msg, reader);
|
4146
|
+
};
|
4147
|
+
|
4148
|
+
|
4149
|
+
/**
|
4150
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4151
|
+
* given reader into the given message object.
|
4152
|
+
* @param {!proto.tournament.ActivationRuleItem} msg The message object to deserialize into.
|
4153
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4154
|
+
* @return {!proto.tournament.ActivationRuleItem}
|
4155
|
+
*/
|
4156
|
+
proto.tournament.ActivationRuleItem.deserializeBinaryFromReader = function(msg, reader) {
|
4157
|
+
while (reader.nextField()) {
|
4158
|
+
if (reader.isEndGroup()) {
|
4159
|
+
break;
|
4160
|
+
}
|
4161
|
+
var field = reader.getFieldNumber();
|
4162
|
+
switch (field) {
|
4163
|
+
case 1:
|
4164
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4165
|
+
msg.setId(value);
|
4166
|
+
break;
|
4167
|
+
case 2:
|
4168
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4169
|
+
msg.setTournamentId(value);
|
4170
|
+
break;
|
4171
|
+
case 3:
|
4172
|
+
var value = /** @type {string} */ (reader.readString());
|
4173
|
+
msg.setCurrency(value);
|
4174
|
+
break;
|
4175
|
+
case 4:
|
4176
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4177
|
+
msg.setDepositMinSum(value);
|
4178
|
+
break;
|
4179
|
+
case 5:
|
4180
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4181
|
+
msg.setBetsMinCount(value);
|
4182
|
+
break;
|
4183
|
+
case 6:
|
4184
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4185
|
+
msg.setUserCategoryId(value);
|
4186
|
+
break;
|
4187
|
+
case 7:
|
4188
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4189
|
+
msg.setEmailConfirmed(value);
|
4190
|
+
break;
|
4191
|
+
case 8:
|
4192
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4193
|
+
msg.setPhoneConfirmed(value);
|
4194
|
+
break;
|
4195
|
+
case 9:
|
4196
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4197
|
+
msg.setKycConfirmed(value);
|
4198
|
+
break;
|
4199
|
+
case 10:
|
4200
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4201
|
+
msg.setRankingPoints(value);
|
4202
|
+
break;
|
4203
|
+
case 11:
|
4204
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4205
|
+
msg.setLoyaltyPoints(value);
|
4206
|
+
break;
|
4207
|
+
case 12:
|
4208
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4209
|
+
msg.setCoins(value);
|
4210
|
+
break;
|
4211
|
+
default:
|
4212
|
+
reader.skipField();
|
4213
|
+
break;
|
4214
|
+
}
|
4215
|
+
}
|
4216
|
+
return msg;
|
4217
|
+
};
|
4218
|
+
|
4219
|
+
|
4220
|
+
/**
|
4221
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4222
|
+
* @return {!Uint8Array}
|
4223
|
+
*/
|
4224
|
+
proto.tournament.ActivationRuleItem.prototype.serializeBinary = function() {
|
4225
|
+
var writer = new jspb.BinaryWriter();
|
4226
|
+
proto.tournament.ActivationRuleItem.serializeBinaryToWriter(this, writer);
|
4227
|
+
return writer.getResultBuffer();
|
4228
|
+
};
|
4229
|
+
|
4230
|
+
|
4231
|
+
/**
|
4232
|
+
* Serializes the given message to binary data (in protobuf wire
|
4233
|
+
* format), writing to the given BinaryWriter.
|
4234
|
+
* @param {!proto.tournament.ActivationRuleItem} message
|
4235
|
+
* @param {!jspb.BinaryWriter} writer
|
4236
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4237
|
+
*/
|
4238
|
+
proto.tournament.ActivationRuleItem.serializeBinaryToWriter = function(message, writer) {
|
4239
|
+
var f = undefined;
|
4240
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
4241
|
+
if (f != null) {
|
4242
|
+
writer.writeInt32(
|
4243
|
+
1,
|
4244
|
+
f
|
4245
|
+
);
|
4246
|
+
}
|
4247
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
4248
|
+
if (f != null) {
|
4249
|
+
writer.writeInt32(
|
4250
|
+
2,
|
4251
|
+
f
|
4252
|
+
);
|
4253
|
+
}
|
4254
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
4255
|
+
if (f != null) {
|
4256
|
+
writer.writeString(
|
4257
|
+
3,
|
4258
|
+
f
|
4259
|
+
);
|
4260
|
+
}
|
4261
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
4262
|
+
if (f != null) {
|
4263
|
+
writer.writeInt32(
|
4264
|
+
4,
|
4265
|
+
f
|
4266
|
+
);
|
4267
|
+
}
|
4268
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
4269
|
+
if (f != null) {
|
4270
|
+
writer.writeInt32(
|
4271
|
+
5,
|
4272
|
+
f
|
4273
|
+
);
|
4274
|
+
}
|
4275
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
4276
|
+
if (f != null) {
|
4277
|
+
writer.writeInt32(
|
4278
|
+
6,
|
4279
|
+
f
|
4280
|
+
);
|
4281
|
+
}
|
4282
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
4283
|
+
if (f != null) {
|
4284
|
+
writer.writeInt32(
|
4285
|
+
7,
|
4286
|
+
f
|
4287
|
+
);
|
4288
|
+
}
|
4289
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
4290
|
+
if (f != null) {
|
4291
|
+
writer.writeInt32(
|
4292
|
+
8,
|
4293
|
+
f
|
4294
|
+
);
|
4295
|
+
}
|
4296
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
4297
|
+
if (f != null) {
|
4298
|
+
writer.writeInt32(
|
4299
|
+
9,
|
4300
|
+
f
|
4301
|
+
);
|
4302
|
+
}
|
4303
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 10));
|
4304
|
+
if (f != null) {
|
4305
|
+
writer.writeInt32(
|
4306
|
+
10,
|
4307
|
+
f
|
4308
|
+
);
|
4309
|
+
}
|
4310
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 11));
|
4311
|
+
if (f != null) {
|
4312
|
+
writer.writeInt32(
|
4313
|
+
11,
|
4314
|
+
f
|
4315
|
+
);
|
4316
|
+
}
|
4317
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 12));
|
4318
|
+
if (f != null) {
|
4319
|
+
writer.writeInt32(
|
4320
|
+
12,
|
4321
|
+
f
|
4322
|
+
);
|
4323
|
+
}
|
4324
|
+
};
|
4325
|
+
|
4326
|
+
|
4327
|
+
/**
|
4328
|
+
* optional int32 id = 1;
|
4329
|
+
* @return {number}
|
4330
|
+
*/
|
4331
|
+
proto.tournament.ActivationRuleItem.prototype.getId = function() {
|
4332
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
4333
|
+
};
|
4334
|
+
|
4335
|
+
|
4336
|
+
/**
|
4337
|
+
* @param {number} value
|
4338
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4339
|
+
*/
|
4340
|
+
proto.tournament.ActivationRuleItem.prototype.setId = function(value) {
|
4341
|
+
return jspb.Message.setField(this, 1, value);
|
4342
|
+
};
|
4343
|
+
|
4344
|
+
|
4345
|
+
/**
|
4346
|
+
* Clears the field making it undefined.
|
4347
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4348
|
+
*/
|
4349
|
+
proto.tournament.ActivationRuleItem.prototype.clearId = function() {
|
4350
|
+
return jspb.Message.setField(this, 1, undefined);
|
4351
|
+
};
|
4352
|
+
|
4353
|
+
|
4354
|
+
/**
|
4355
|
+
* Returns whether this field is set.
|
4356
|
+
* @return {boolean}
|
4357
|
+
*/
|
4358
|
+
proto.tournament.ActivationRuleItem.prototype.hasId = function() {
|
4359
|
+
return jspb.Message.getField(this, 1) != null;
|
4360
|
+
};
|
4361
|
+
|
4362
|
+
|
4363
|
+
/**
|
4364
|
+
* optional int32 tournament_id = 2;
|
4365
|
+
* @return {number}
|
4366
|
+
*/
|
4367
|
+
proto.tournament.ActivationRuleItem.prototype.getTournamentId = function() {
|
4368
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
4369
|
+
};
|
4370
|
+
|
4371
|
+
|
4372
|
+
/**
|
4373
|
+
* @param {number} value
|
4374
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4375
|
+
*/
|
4376
|
+
proto.tournament.ActivationRuleItem.prototype.setTournamentId = function(value) {
|
4377
|
+
return jspb.Message.setField(this, 2, value);
|
4378
|
+
};
|
4379
|
+
|
4380
|
+
|
4381
|
+
/**
|
4382
|
+
* Clears the field making it undefined.
|
4383
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4384
|
+
*/
|
4385
|
+
proto.tournament.ActivationRuleItem.prototype.clearTournamentId = function() {
|
4386
|
+
return jspb.Message.setField(this, 2, undefined);
|
4387
|
+
};
|
4388
|
+
|
4389
|
+
|
4390
|
+
/**
|
4391
|
+
* Returns whether this field is set.
|
4392
|
+
* @return {boolean}
|
4393
|
+
*/
|
4394
|
+
proto.tournament.ActivationRuleItem.prototype.hasTournamentId = function() {
|
4395
|
+
return jspb.Message.getField(this, 2) != null;
|
4396
|
+
};
|
4397
|
+
|
4398
|
+
|
4399
|
+
/**
|
4400
|
+
* optional string currency = 3;
|
4401
|
+
* @return {string}
|
4402
|
+
*/
|
4403
|
+
proto.tournament.ActivationRuleItem.prototype.getCurrency = function() {
|
4404
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
4405
|
+
};
|
4406
|
+
|
4407
|
+
|
4408
|
+
/**
|
4409
|
+
* @param {string} value
|
4410
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4411
|
+
*/
|
4412
|
+
proto.tournament.ActivationRuleItem.prototype.setCurrency = function(value) {
|
4413
|
+
return jspb.Message.setField(this, 3, value);
|
4414
|
+
};
|
4415
|
+
|
4416
|
+
|
4417
|
+
/**
|
4418
|
+
* Clears the field making it undefined.
|
4419
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4420
|
+
*/
|
4421
|
+
proto.tournament.ActivationRuleItem.prototype.clearCurrency = function() {
|
4422
|
+
return jspb.Message.setField(this, 3, undefined);
|
4423
|
+
};
|
4424
|
+
|
4425
|
+
|
4426
|
+
/**
|
4427
|
+
* Returns whether this field is set.
|
4428
|
+
* @return {boolean}
|
4429
|
+
*/
|
4430
|
+
proto.tournament.ActivationRuleItem.prototype.hasCurrency = function() {
|
4431
|
+
return jspb.Message.getField(this, 3) != null;
|
4432
|
+
};
|
4433
|
+
|
4434
|
+
|
4435
|
+
/**
|
4436
|
+
* optional int32 deposit_min_sum = 4;
|
4437
|
+
* @return {number}
|
4438
|
+
*/
|
4439
|
+
proto.tournament.ActivationRuleItem.prototype.getDepositMinSum = function() {
|
4440
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
4441
|
+
};
|
4442
|
+
|
4443
|
+
|
4444
|
+
/**
|
4445
|
+
* @param {number} value
|
4446
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4447
|
+
*/
|
4448
|
+
proto.tournament.ActivationRuleItem.prototype.setDepositMinSum = function(value) {
|
4449
|
+
return jspb.Message.setField(this, 4, value);
|
4450
|
+
};
|
4451
|
+
|
4452
|
+
|
4453
|
+
/**
|
4454
|
+
* Clears the field making it undefined.
|
4455
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4456
|
+
*/
|
4457
|
+
proto.tournament.ActivationRuleItem.prototype.clearDepositMinSum = function() {
|
4458
|
+
return jspb.Message.setField(this, 4, undefined);
|
4459
|
+
};
|
4460
|
+
|
4461
|
+
|
4462
|
+
/**
|
4463
|
+
* Returns whether this field is set.
|
4464
|
+
* @return {boolean}
|
4465
|
+
*/
|
4466
|
+
proto.tournament.ActivationRuleItem.prototype.hasDepositMinSum = function() {
|
4467
|
+
return jspb.Message.getField(this, 4) != null;
|
4468
|
+
};
|
4469
|
+
|
4470
|
+
|
4471
|
+
/**
|
4472
|
+
* optional int32 bets_min_count = 5;
|
4473
|
+
* @return {number}
|
4474
|
+
*/
|
4475
|
+
proto.tournament.ActivationRuleItem.prototype.getBetsMinCount = function() {
|
4476
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
4477
|
+
};
|
4478
|
+
|
4479
|
+
|
4480
|
+
/**
|
4481
|
+
* @param {number} value
|
4482
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4483
|
+
*/
|
4484
|
+
proto.tournament.ActivationRuleItem.prototype.setBetsMinCount = function(value) {
|
4485
|
+
return jspb.Message.setField(this, 5, value);
|
4486
|
+
};
|
4487
|
+
|
4488
|
+
|
4489
|
+
/**
|
4490
|
+
* Clears the field making it undefined.
|
4491
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4492
|
+
*/
|
4493
|
+
proto.tournament.ActivationRuleItem.prototype.clearBetsMinCount = function() {
|
4494
|
+
return jspb.Message.setField(this, 5, undefined);
|
4495
|
+
};
|
4496
|
+
|
4497
|
+
|
4498
|
+
/**
|
4499
|
+
* Returns whether this field is set.
|
4500
|
+
* @return {boolean}
|
4501
|
+
*/
|
4502
|
+
proto.tournament.ActivationRuleItem.prototype.hasBetsMinCount = function() {
|
4503
|
+
return jspb.Message.getField(this, 5) != null;
|
4504
|
+
};
|
4505
|
+
|
4506
|
+
|
4507
|
+
/**
|
4508
|
+
* optional int32 user_category_id = 6;
|
4509
|
+
* @return {number}
|
4510
|
+
*/
|
4511
|
+
proto.tournament.ActivationRuleItem.prototype.getUserCategoryId = function() {
|
4512
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
4513
|
+
};
|
4514
|
+
|
4515
|
+
|
4516
|
+
/**
|
4517
|
+
* @param {number} value
|
4518
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4519
|
+
*/
|
4520
|
+
proto.tournament.ActivationRuleItem.prototype.setUserCategoryId = function(value) {
|
4521
|
+
return jspb.Message.setField(this, 6, value);
|
4522
|
+
};
|
4523
|
+
|
4524
|
+
|
4525
|
+
/**
|
4526
|
+
* Clears the field making it undefined.
|
4527
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4528
|
+
*/
|
4529
|
+
proto.tournament.ActivationRuleItem.prototype.clearUserCategoryId = function() {
|
4530
|
+
return jspb.Message.setField(this, 6, undefined);
|
4531
|
+
};
|
4532
|
+
|
4533
|
+
|
4534
|
+
/**
|
4535
|
+
* Returns whether this field is set.
|
4536
|
+
* @return {boolean}
|
4537
|
+
*/
|
4538
|
+
proto.tournament.ActivationRuleItem.prototype.hasUserCategoryId = function() {
|
4539
|
+
return jspb.Message.getField(this, 6) != null;
|
4540
|
+
};
|
4541
|
+
|
4542
|
+
|
4543
|
+
/**
|
4544
|
+
* optional int32 email_confirmed = 7;
|
4545
|
+
* @return {number}
|
4546
|
+
*/
|
4547
|
+
proto.tournament.ActivationRuleItem.prototype.getEmailConfirmed = function() {
|
4548
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
4549
|
+
};
|
4550
|
+
|
4551
|
+
|
4552
|
+
/**
|
4553
|
+
* @param {number} value
|
4554
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4555
|
+
*/
|
4556
|
+
proto.tournament.ActivationRuleItem.prototype.setEmailConfirmed = function(value) {
|
4557
|
+
return jspb.Message.setField(this, 7, value);
|
4558
|
+
};
|
4559
|
+
|
4560
|
+
|
4561
|
+
/**
|
4562
|
+
* Clears the field making it undefined.
|
4563
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4564
|
+
*/
|
4565
|
+
proto.tournament.ActivationRuleItem.prototype.clearEmailConfirmed = function() {
|
4566
|
+
return jspb.Message.setField(this, 7, undefined);
|
4567
|
+
};
|
4568
|
+
|
4569
|
+
|
4570
|
+
/**
|
4571
|
+
* Returns whether this field is set.
|
4572
|
+
* @return {boolean}
|
4573
|
+
*/
|
4574
|
+
proto.tournament.ActivationRuleItem.prototype.hasEmailConfirmed = function() {
|
4575
|
+
return jspb.Message.getField(this, 7) != null;
|
4576
|
+
};
|
4577
|
+
|
4578
|
+
|
4579
|
+
/**
|
4580
|
+
* optional int32 phone_confirmed = 8;
|
4581
|
+
* @return {number}
|
4582
|
+
*/
|
4583
|
+
proto.tournament.ActivationRuleItem.prototype.getPhoneConfirmed = function() {
|
4584
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
4585
|
+
};
|
4586
|
+
|
4587
|
+
|
4588
|
+
/**
|
4589
|
+
* @param {number} value
|
4590
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4591
|
+
*/
|
4592
|
+
proto.tournament.ActivationRuleItem.prototype.setPhoneConfirmed = function(value) {
|
4593
|
+
return jspb.Message.setField(this, 8, value);
|
4594
|
+
};
|
4595
|
+
|
4596
|
+
|
4597
|
+
/**
|
4598
|
+
* Clears the field making it undefined.
|
4599
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4600
|
+
*/
|
4601
|
+
proto.tournament.ActivationRuleItem.prototype.clearPhoneConfirmed = function() {
|
4602
|
+
return jspb.Message.setField(this, 8, undefined);
|
4603
|
+
};
|
4604
|
+
|
4605
|
+
|
4606
|
+
/**
|
4607
|
+
* Returns whether this field is set.
|
4608
|
+
* @return {boolean}
|
4609
|
+
*/
|
4610
|
+
proto.tournament.ActivationRuleItem.prototype.hasPhoneConfirmed = function() {
|
4611
|
+
return jspb.Message.getField(this, 8) != null;
|
4612
|
+
};
|
4613
|
+
|
4614
|
+
|
4615
|
+
/**
|
4616
|
+
* optional int32 kyc_confirmed = 9;
|
4617
|
+
* @return {number}
|
4618
|
+
*/
|
4619
|
+
proto.tournament.ActivationRuleItem.prototype.getKycConfirmed = function() {
|
4620
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
4621
|
+
};
|
4622
|
+
|
4623
|
+
|
4624
|
+
/**
|
4625
|
+
* @param {number} value
|
4626
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4627
|
+
*/
|
4628
|
+
proto.tournament.ActivationRuleItem.prototype.setKycConfirmed = function(value) {
|
4629
|
+
return jspb.Message.setField(this, 9, value);
|
4630
|
+
};
|
4631
|
+
|
4632
|
+
|
4633
|
+
/**
|
4634
|
+
* Clears the field making it undefined.
|
4635
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4636
|
+
*/
|
4637
|
+
proto.tournament.ActivationRuleItem.prototype.clearKycConfirmed = function() {
|
4638
|
+
return jspb.Message.setField(this, 9, undefined);
|
4639
|
+
};
|
4640
|
+
|
4641
|
+
|
4642
|
+
/**
|
4643
|
+
* Returns whether this field is set.
|
4644
|
+
* @return {boolean}
|
4645
|
+
*/
|
4646
|
+
proto.tournament.ActivationRuleItem.prototype.hasKycConfirmed = function() {
|
4647
|
+
return jspb.Message.getField(this, 9) != null;
|
4648
|
+
};
|
4649
|
+
|
4650
|
+
|
4651
|
+
/**
|
4652
|
+
* optional int32 ranking_points = 10;
|
4653
|
+
* @return {number}
|
4654
|
+
*/
|
4655
|
+
proto.tournament.ActivationRuleItem.prototype.getRankingPoints = function() {
|
4656
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
4657
|
+
};
|
4658
|
+
|
4659
|
+
|
4660
|
+
/**
|
4661
|
+
* @param {number} value
|
4662
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4663
|
+
*/
|
4664
|
+
proto.tournament.ActivationRuleItem.prototype.setRankingPoints = function(value) {
|
4665
|
+
return jspb.Message.setField(this, 10, value);
|
4666
|
+
};
|
4667
|
+
|
4668
|
+
|
4669
|
+
/**
|
4670
|
+
* Clears the field making it undefined.
|
4671
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4672
|
+
*/
|
4673
|
+
proto.tournament.ActivationRuleItem.prototype.clearRankingPoints = function() {
|
4674
|
+
return jspb.Message.setField(this, 10, undefined);
|
4675
|
+
};
|
4676
|
+
|
4677
|
+
|
4678
|
+
/**
|
4679
|
+
* Returns whether this field is set.
|
4680
|
+
* @return {boolean}
|
4681
|
+
*/
|
4682
|
+
proto.tournament.ActivationRuleItem.prototype.hasRankingPoints = function() {
|
4683
|
+
return jspb.Message.getField(this, 10) != null;
|
4684
|
+
};
|
4685
|
+
|
4686
|
+
|
4687
|
+
/**
|
4688
|
+
* optional int32 loyalty_points = 11;
|
4689
|
+
* @return {number}
|
4690
|
+
*/
|
4691
|
+
proto.tournament.ActivationRuleItem.prototype.getLoyaltyPoints = function() {
|
4692
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
4693
|
+
};
|
4694
|
+
|
4695
|
+
|
4696
|
+
/**
|
4697
|
+
* @param {number} value
|
4698
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4699
|
+
*/
|
4700
|
+
proto.tournament.ActivationRuleItem.prototype.setLoyaltyPoints = function(value) {
|
4701
|
+
return jspb.Message.setField(this, 11, value);
|
4702
|
+
};
|
4703
|
+
|
4704
|
+
|
4705
|
+
/**
|
4706
|
+
* Clears the field making it undefined.
|
4707
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4708
|
+
*/
|
4709
|
+
proto.tournament.ActivationRuleItem.prototype.clearLoyaltyPoints = function() {
|
4710
|
+
return jspb.Message.setField(this, 11, undefined);
|
4711
|
+
};
|
4712
|
+
|
4713
|
+
|
4714
|
+
/**
|
4715
|
+
* Returns whether this field is set.
|
4716
|
+
* @return {boolean}
|
4717
|
+
*/
|
4718
|
+
proto.tournament.ActivationRuleItem.prototype.hasLoyaltyPoints = function() {
|
4719
|
+
return jspb.Message.getField(this, 11) != null;
|
4720
|
+
};
|
4721
|
+
|
4722
|
+
|
4723
|
+
/**
|
4724
|
+
* optional int32 coins = 12;
|
4725
|
+
* @return {number}
|
4726
|
+
*/
|
4727
|
+
proto.tournament.ActivationRuleItem.prototype.getCoins = function() {
|
4728
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
4729
|
+
};
|
4730
|
+
|
4731
|
+
|
4732
|
+
/**
|
4733
|
+
* @param {number} value
|
4734
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4735
|
+
*/
|
4736
|
+
proto.tournament.ActivationRuleItem.prototype.setCoins = function(value) {
|
4737
|
+
return jspb.Message.setField(this, 12, value);
|
4738
|
+
};
|
4739
|
+
|
4740
|
+
|
4741
|
+
/**
|
4742
|
+
* Clears the field making it undefined.
|
4743
|
+
* @return {!proto.tournament.ActivationRuleItem} returns this
|
4744
|
+
*/
|
4745
|
+
proto.tournament.ActivationRuleItem.prototype.clearCoins = function() {
|
4746
|
+
return jspb.Message.setField(this, 12, undefined);
|
4747
|
+
};
|
4748
|
+
|
4749
|
+
|
4750
|
+
/**
|
4751
|
+
* Returns whether this field is set.
|
4752
|
+
* @return {boolean}
|
4753
|
+
*/
|
4754
|
+
proto.tournament.ActivationRuleItem.prototype.hasCoins = function() {
|
4755
|
+
return jspb.Message.getField(this, 12) != null;
|
4756
|
+
};
|
4757
|
+
|
4758
|
+
|
4759
|
+
|
4760
|
+
/**
|
4761
|
+
* List of repeated fields within this message type.
|
4762
|
+
* @private {!Array<number>}
|
4763
|
+
* @const
|
4764
|
+
*/
|
4765
|
+
proto.tournament.TournamentActivationRuleRequest.repeatedFields_ = [1];
|
4766
|
+
|
4767
|
+
|
4768
|
+
|
4769
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4770
|
+
/**
|
4771
|
+
* Creates an object representation of this proto.
|
4772
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4773
|
+
* Optional fields that are not set will be set to undefined.
|
4774
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4775
|
+
* For the list of reserved names please see:
|
4776
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4777
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4778
|
+
* JSPB instance for transitional soy proto support:
|
4779
|
+
* http://goto/soy-param-migration
|
4780
|
+
* @return {!Object}
|
4781
|
+
*/
|
4782
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.toObject = function(opt_includeInstance) {
|
4783
|
+
return proto.tournament.TournamentActivationRuleRequest.toObject(opt_includeInstance, this);
|
4784
|
+
};
|
4785
|
+
|
4786
|
+
|
4787
|
+
/**
|
4788
|
+
* Static version of the {@see toObject} method.
|
4789
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4790
|
+
* the JSPB instance for transitional soy proto support:
|
4791
|
+
* http://goto/soy-param-migration
|
4792
|
+
* @param {!proto.tournament.TournamentActivationRuleRequest} msg The msg instance to transform.
|
4793
|
+
* @return {!Object}
|
4794
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4795
|
+
*/
|
4796
|
+
proto.tournament.TournamentActivationRuleRequest.toObject = function(includeInstance, msg) {
|
4797
|
+
var f, obj = {
|
4798
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
4799
|
+
proto.tournament.ActivationRuleItem.toObject, includeInstance)
|
4800
|
+
};
|
4801
|
+
|
4802
|
+
if (includeInstance) {
|
4803
|
+
obj.$jspbMessageInstance = msg;
|
4804
|
+
}
|
4805
|
+
return obj;
|
4806
|
+
};
|
4807
|
+
}
|
4808
|
+
|
4809
|
+
|
4810
|
+
/**
|
4811
|
+
* Deserializes binary data (in protobuf wire format).
|
4812
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4813
|
+
* @return {!proto.tournament.TournamentActivationRuleRequest}
|
4814
|
+
*/
|
4815
|
+
proto.tournament.TournamentActivationRuleRequest.deserializeBinary = function(bytes) {
|
4816
|
+
var reader = new jspb.BinaryReader(bytes);
|
4817
|
+
var msg = new proto.tournament.TournamentActivationRuleRequest;
|
4818
|
+
return proto.tournament.TournamentActivationRuleRequest.deserializeBinaryFromReader(msg, reader);
|
4819
|
+
};
|
4820
|
+
|
4821
|
+
|
4822
|
+
/**
|
4823
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4824
|
+
* given reader into the given message object.
|
4825
|
+
* @param {!proto.tournament.TournamentActivationRuleRequest} msg The message object to deserialize into.
|
4826
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4827
|
+
* @return {!proto.tournament.TournamentActivationRuleRequest}
|
4828
|
+
*/
|
4829
|
+
proto.tournament.TournamentActivationRuleRequest.deserializeBinaryFromReader = function(msg, reader) {
|
4830
|
+
while (reader.nextField()) {
|
4831
|
+
if (reader.isEndGroup()) {
|
4832
|
+
break;
|
4833
|
+
}
|
4834
|
+
var field = reader.getFieldNumber();
|
4835
|
+
switch (field) {
|
4836
|
+
case 1:
|
4837
|
+
var value = new proto.tournament.ActivationRuleItem;
|
4838
|
+
reader.readMessage(value,proto.tournament.ActivationRuleItem.deserializeBinaryFromReader);
|
4839
|
+
msg.addItems(value);
|
4840
|
+
break;
|
4841
|
+
default:
|
4842
|
+
reader.skipField();
|
4843
|
+
break;
|
4844
|
+
}
|
4845
|
+
}
|
4846
|
+
return msg;
|
4847
|
+
};
|
4848
|
+
|
4849
|
+
|
4850
|
+
/**
|
4851
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4852
|
+
* @return {!Uint8Array}
|
4853
|
+
*/
|
4854
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.serializeBinary = function() {
|
4855
|
+
var writer = new jspb.BinaryWriter();
|
4856
|
+
proto.tournament.TournamentActivationRuleRequest.serializeBinaryToWriter(this, writer);
|
4857
|
+
return writer.getResultBuffer();
|
4858
|
+
};
|
4859
|
+
|
4860
|
+
|
4861
|
+
/**
|
4862
|
+
* Serializes the given message to binary data (in protobuf wire
|
4863
|
+
* format), writing to the given BinaryWriter.
|
4864
|
+
* @param {!proto.tournament.TournamentActivationRuleRequest} message
|
4865
|
+
* @param {!jspb.BinaryWriter} writer
|
4866
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4867
|
+
*/
|
4868
|
+
proto.tournament.TournamentActivationRuleRequest.serializeBinaryToWriter = function(message, writer) {
|
4869
|
+
var f = undefined;
|
4870
|
+
f = message.getItemsList();
|
4871
|
+
if (f.length > 0) {
|
4872
|
+
writer.writeRepeatedMessage(
|
4873
|
+
1,
|
4874
|
+
f,
|
4875
|
+
proto.tournament.ActivationRuleItem.serializeBinaryToWriter
|
4876
|
+
);
|
4877
|
+
}
|
4878
|
+
};
|
4879
|
+
|
4880
|
+
|
4881
|
+
/**
|
4882
|
+
* repeated ActivationRuleItem items = 1;
|
4883
|
+
* @return {!Array<!proto.tournament.ActivationRuleItem>}
|
4884
|
+
*/
|
4885
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.getItemsList = function() {
|
4886
|
+
return /** @type{!Array<!proto.tournament.ActivationRuleItem>} */ (
|
4887
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ActivationRuleItem, 1));
|
4888
|
+
};
|
4889
|
+
|
4890
|
+
|
4891
|
+
/**
|
4892
|
+
* @param {!Array<!proto.tournament.ActivationRuleItem>} value
|
4893
|
+
* @return {!proto.tournament.TournamentActivationRuleRequest} returns this
|
4894
|
+
*/
|
4895
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.setItemsList = function(value) {
|
4896
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
4897
|
+
};
|
4898
|
+
|
4899
|
+
|
4900
|
+
/**
|
4901
|
+
* @param {!proto.tournament.ActivationRuleItem=} opt_value
|
4902
|
+
* @param {number=} opt_index
|
4903
|
+
* @return {!proto.tournament.ActivationRuleItem}
|
4904
|
+
*/
|
4905
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.addItems = function(opt_value, opt_index) {
|
4906
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tournament.ActivationRuleItem, opt_index);
|
4907
|
+
};
|
4908
|
+
|
4909
|
+
|
4910
|
+
/**
|
4911
|
+
* Clears the list making it empty but non-null.
|
4912
|
+
* @return {!proto.tournament.TournamentActivationRuleRequest} returns this
|
4913
|
+
*/
|
4914
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.clearItemsList = function() {
|
4915
|
+
return this.setItemsList([]);
|
4916
|
+
};
|
4917
|
+
|
4918
|
+
|
4919
|
+
|
4920
|
+
|
4921
|
+
|
4922
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4923
|
+
/**
|
4924
|
+
* Creates an object representation of this proto.
|
4925
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4926
|
+
* Optional fields that are not set will be set to undefined.
|
4927
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4928
|
+
* For the list of reserved names please see:
|
4929
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4930
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4931
|
+
* JSPB instance for transitional soy proto support:
|
4932
|
+
* http://goto/soy-param-migration
|
4933
|
+
* @return {!Object}
|
4934
|
+
*/
|
4935
|
+
proto.tournament.ScoringRule.prototype.toObject = function(opt_includeInstance) {
|
4936
|
+
return proto.tournament.ScoringRule.toObject(opt_includeInstance, this);
|
4937
|
+
};
|
4938
|
+
|
4939
|
+
|
4940
|
+
/**
|
4941
|
+
* Static version of the {@see toObject} method.
|
4942
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4943
|
+
* the JSPB instance for transitional soy proto support:
|
4944
|
+
* http://goto/soy-param-migration
|
4945
|
+
* @param {!proto.tournament.ScoringRule} msg The msg instance to transform.
|
4946
|
+
* @return {!Object}
|
4947
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4948
|
+
*/
|
4949
|
+
proto.tournament.ScoringRule.toObject = function(includeInstance, msg) {
|
4950
|
+
var f, obj = {
|
4951
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4952
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
4953
|
+
metric: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
4954
|
+
multiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
4955
|
+
minValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
4956
|
+
maxValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
4957
|
+
weight: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
|
4958
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
4959
|
+
};
|
4960
|
+
|
4961
|
+
if (includeInstance) {
|
4962
|
+
obj.$jspbMessageInstance = msg;
|
4963
|
+
}
|
4964
|
+
return obj;
|
4965
|
+
};
|
4966
|
+
}
|
4967
|
+
|
4968
|
+
|
4969
|
+
/**
|
4970
|
+
* Deserializes binary data (in protobuf wire format).
|
4971
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4972
|
+
* @return {!proto.tournament.ScoringRule}
|
4973
|
+
*/
|
4974
|
+
proto.tournament.ScoringRule.deserializeBinary = function(bytes) {
|
4975
|
+
var reader = new jspb.BinaryReader(bytes);
|
4976
|
+
var msg = new proto.tournament.ScoringRule;
|
4977
|
+
return proto.tournament.ScoringRule.deserializeBinaryFromReader(msg, reader);
|
4978
|
+
};
|
4979
|
+
|
4980
|
+
|
4981
|
+
/**
|
4982
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4983
|
+
* given reader into the given message object.
|
4984
|
+
* @param {!proto.tournament.ScoringRule} msg The message object to deserialize into.
|
4985
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4986
|
+
* @return {!proto.tournament.ScoringRule}
|
4987
|
+
*/
|
4988
|
+
proto.tournament.ScoringRule.deserializeBinaryFromReader = function(msg, reader) {
|
4989
|
+
while (reader.nextField()) {
|
4990
|
+
if (reader.isEndGroup()) {
|
4991
|
+
break;
|
4992
|
+
}
|
4993
|
+
var field = reader.getFieldNumber();
|
4994
|
+
switch (field) {
|
4995
|
+
case 1:
|
4996
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4997
|
+
msg.setId(value);
|
4998
|
+
break;
|
4999
|
+
case 2:
|
5000
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5001
|
+
msg.setTournamentId(value);
|
5002
|
+
break;
|
5003
|
+
case 3:
|
5004
|
+
var value = /** @type {string} */ (reader.readString());
|
5005
|
+
msg.setMetric(value);
|
5006
|
+
break;
|
5007
|
+
case 4:
|
5008
|
+
var value = /** @type {number} */ (reader.readFloat());
|
5009
|
+
msg.setMultiplier(value);
|
5010
|
+
break;
|
5011
|
+
case 5:
|
5012
|
+
var value = /** @type {number} */ (reader.readFloat());
|
5013
|
+
msg.setMinValue(value);
|
5014
|
+
break;
|
5015
|
+
case 6:
|
5016
|
+
var value = /** @type {number} */ (reader.readFloat());
|
5017
|
+
msg.setMaxValue(value);
|
5018
|
+
break;
|
5019
|
+
case 7:
|
5020
|
+
var value = /** @type {number} */ (reader.readFloat());
|
5021
|
+
msg.setWeight(value);
|
5022
|
+
break;
|
5023
|
+
case 8:
|
5024
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5025
|
+
msg.setIsActive(value);
|
5026
|
+
break;
|
5027
|
+
default:
|
5028
|
+
reader.skipField();
|
5029
|
+
break;
|
5030
|
+
}
|
5031
|
+
}
|
5032
|
+
return msg;
|
5033
|
+
};
|
5034
|
+
|
5035
|
+
|
5036
|
+
/**
|
5037
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5038
|
+
* @return {!Uint8Array}
|
5039
|
+
*/
|
5040
|
+
proto.tournament.ScoringRule.prototype.serializeBinary = function() {
|
5041
|
+
var writer = new jspb.BinaryWriter();
|
5042
|
+
proto.tournament.ScoringRule.serializeBinaryToWriter(this, writer);
|
5043
|
+
return writer.getResultBuffer();
|
5044
|
+
};
|
5045
|
+
|
5046
|
+
|
5047
|
+
/**
|
5048
|
+
* Serializes the given message to binary data (in protobuf wire
|
5049
|
+
* format), writing to the given BinaryWriter.
|
5050
|
+
* @param {!proto.tournament.ScoringRule} message
|
5051
|
+
* @param {!jspb.BinaryWriter} writer
|
5052
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5053
|
+
*/
|
5054
|
+
proto.tournament.ScoringRule.serializeBinaryToWriter = function(message, writer) {
|
5055
|
+
var f = undefined;
|
5056
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
5057
|
+
if (f != null) {
|
5058
|
+
writer.writeInt32(
|
5059
|
+
1,
|
5060
|
+
f
|
5061
|
+
);
|
5062
|
+
}
|
5063
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
5064
|
+
if (f != null) {
|
5065
|
+
writer.writeInt32(
|
5066
|
+
2,
|
5067
|
+
f
|
5068
|
+
);
|
5069
|
+
}
|
5070
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
5071
|
+
if (f != null) {
|
5072
|
+
writer.writeString(
|
5073
|
+
3,
|
5074
|
+
f
|
5075
|
+
);
|
5076
|
+
}
|
5077
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
5078
|
+
if (f != null) {
|
5079
|
+
writer.writeFloat(
|
5080
|
+
4,
|
5081
|
+
f
|
5082
|
+
);
|
5083
|
+
}
|
5084
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
5085
|
+
if (f != null) {
|
5086
|
+
writer.writeFloat(
|
5087
|
+
5,
|
5088
|
+
f
|
5089
|
+
);
|
5090
|
+
}
|
5091
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
5092
|
+
if (f != null) {
|
5093
|
+
writer.writeFloat(
|
5094
|
+
6,
|
5095
|
+
f
|
5096
|
+
);
|
5097
|
+
}
|
5098
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
5099
|
+
if (f != null) {
|
5100
|
+
writer.writeFloat(
|
5101
|
+
7,
|
5102
|
+
f
|
5103
|
+
);
|
5104
|
+
}
|
5105
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
5106
|
+
if (f != null) {
|
5107
|
+
writer.writeInt32(
|
5108
|
+
8,
|
5109
|
+
f
|
5110
|
+
);
|
5111
|
+
}
|
5112
|
+
};
|
5113
|
+
|
5114
|
+
|
5115
|
+
/**
|
5116
|
+
* optional int32 id = 1;
|
5117
|
+
* @return {number}
|
5118
|
+
*/
|
5119
|
+
proto.tournament.ScoringRule.prototype.getId = function() {
|
5120
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5121
|
+
};
|
5122
|
+
|
5123
|
+
|
5124
|
+
/**
|
5125
|
+
* @param {number} value
|
5126
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5127
|
+
*/
|
5128
|
+
proto.tournament.ScoringRule.prototype.setId = function(value) {
|
5129
|
+
return jspb.Message.setField(this, 1, value);
|
5130
|
+
};
|
5131
|
+
|
5132
|
+
|
5133
|
+
/**
|
5134
|
+
* Clears the field making it undefined.
|
5135
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5136
|
+
*/
|
5137
|
+
proto.tournament.ScoringRule.prototype.clearId = function() {
|
5138
|
+
return jspb.Message.setField(this, 1, undefined);
|
5139
|
+
};
|
5140
|
+
|
5141
|
+
|
5142
|
+
/**
|
5143
|
+
* Returns whether this field is set.
|
5144
|
+
* @return {boolean}
|
5145
|
+
*/
|
5146
|
+
proto.tournament.ScoringRule.prototype.hasId = function() {
|
5147
|
+
return jspb.Message.getField(this, 1) != null;
|
5148
|
+
};
|
5149
|
+
|
5150
|
+
|
5151
|
+
/**
|
5152
|
+
* optional int32 tournament_id = 2;
|
5153
|
+
* @return {number}
|
5154
|
+
*/
|
5155
|
+
proto.tournament.ScoringRule.prototype.getTournamentId = function() {
|
5156
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
5157
|
+
};
|
5158
|
+
|
5159
|
+
|
5160
|
+
/**
|
5161
|
+
* @param {number} value
|
5162
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5163
|
+
*/
|
5164
|
+
proto.tournament.ScoringRule.prototype.setTournamentId = function(value) {
|
5165
|
+
return jspb.Message.setField(this, 2, value);
|
5166
|
+
};
|
5167
|
+
|
5168
|
+
|
5169
|
+
/**
|
5170
|
+
* Clears the field making it undefined.
|
5171
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5172
|
+
*/
|
5173
|
+
proto.tournament.ScoringRule.prototype.clearTournamentId = function() {
|
5174
|
+
return jspb.Message.setField(this, 2, undefined);
|
5175
|
+
};
|
5176
|
+
|
5177
|
+
|
5178
|
+
/**
|
5179
|
+
* Returns whether this field is set.
|
5180
|
+
* @return {boolean}
|
5181
|
+
*/
|
5182
|
+
proto.tournament.ScoringRule.prototype.hasTournamentId = function() {
|
5183
|
+
return jspb.Message.getField(this, 2) != null;
|
5184
|
+
};
|
5185
|
+
|
5186
|
+
|
5187
|
+
/**
|
5188
|
+
* optional string metric = 3;
|
5189
|
+
* @return {string}
|
5190
|
+
*/
|
5191
|
+
proto.tournament.ScoringRule.prototype.getMetric = function() {
|
5192
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
5193
|
+
};
|
5194
|
+
|
5195
|
+
|
5196
|
+
/**
|
5197
|
+
* @param {string} value
|
5198
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5199
|
+
*/
|
5200
|
+
proto.tournament.ScoringRule.prototype.setMetric = function(value) {
|
5201
|
+
return jspb.Message.setField(this, 3, value);
|
5202
|
+
};
|
5203
|
+
|
5204
|
+
|
5205
|
+
/**
|
5206
|
+
* Clears the field making it undefined.
|
5207
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5208
|
+
*/
|
5209
|
+
proto.tournament.ScoringRule.prototype.clearMetric = function() {
|
5210
|
+
return jspb.Message.setField(this, 3, undefined);
|
5211
|
+
};
|
5212
|
+
|
5213
|
+
|
5214
|
+
/**
|
5215
|
+
* Returns whether this field is set.
|
5216
|
+
* @return {boolean}
|
5217
|
+
*/
|
5218
|
+
proto.tournament.ScoringRule.prototype.hasMetric = function() {
|
5219
|
+
return jspb.Message.getField(this, 3) != null;
|
5220
|
+
};
|
5221
|
+
|
5222
|
+
|
5223
|
+
/**
|
5224
|
+
* optional float multiplier = 4;
|
5225
|
+
* @return {number}
|
5226
|
+
*/
|
5227
|
+
proto.tournament.ScoringRule.prototype.getMultiplier = function() {
|
5228
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
5229
|
+
};
|
5230
|
+
|
5231
|
+
|
5232
|
+
/**
|
5233
|
+
* @param {number} value
|
5234
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5235
|
+
*/
|
5236
|
+
proto.tournament.ScoringRule.prototype.setMultiplier = function(value) {
|
5237
|
+
return jspb.Message.setField(this, 4, value);
|
5238
|
+
};
|
5239
|
+
|
5240
|
+
|
5241
|
+
/**
|
5242
|
+
* Clears the field making it undefined.
|
5243
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5244
|
+
*/
|
5245
|
+
proto.tournament.ScoringRule.prototype.clearMultiplier = function() {
|
5246
|
+
return jspb.Message.setField(this, 4, undefined);
|
5247
|
+
};
|
5248
|
+
|
5249
|
+
|
5250
|
+
/**
|
5251
|
+
* Returns whether this field is set.
|
5252
|
+
* @return {boolean}
|
5253
|
+
*/
|
5254
|
+
proto.tournament.ScoringRule.prototype.hasMultiplier = function() {
|
5255
|
+
return jspb.Message.getField(this, 4) != null;
|
5256
|
+
};
|
5257
|
+
|
5258
|
+
|
5259
|
+
/**
|
5260
|
+
* optional float min_value = 5;
|
5261
|
+
* @return {number}
|
5262
|
+
*/
|
5263
|
+
proto.tournament.ScoringRule.prototype.getMinValue = function() {
|
5264
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
5265
|
+
};
|
5266
|
+
|
5267
|
+
|
5268
|
+
/**
|
5269
|
+
* @param {number} value
|
5270
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5271
|
+
*/
|
5272
|
+
proto.tournament.ScoringRule.prototype.setMinValue = function(value) {
|
5273
|
+
return jspb.Message.setField(this, 5, value);
|
5274
|
+
};
|
5275
|
+
|
5276
|
+
|
5277
|
+
/**
|
5278
|
+
* Clears the field making it undefined.
|
5279
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5280
|
+
*/
|
5281
|
+
proto.tournament.ScoringRule.prototype.clearMinValue = function() {
|
5282
|
+
return jspb.Message.setField(this, 5, undefined);
|
5283
|
+
};
|
5284
|
+
|
5285
|
+
|
5286
|
+
/**
|
5287
|
+
* Returns whether this field is set.
|
5288
|
+
* @return {boolean}
|
5289
|
+
*/
|
5290
|
+
proto.tournament.ScoringRule.prototype.hasMinValue = function() {
|
5291
|
+
return jspb.Message.getField(this, 5) != null;
|
5292
|
+
};
|
5293
|
+
|
5294
|
+
|
5295
|
+
/**
|
5296
|
+
* optional float max_value = 6;
|
5297
|
+
* @return {number}
|
5298
|
+
*/
|
5299
|
+
proto.tournament.ScoringRule.prototype.getMaxValue = function() {
|
5300
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
5301
|
+
};
|
5302
|
+
|
5303
|
+
|
5304
|
+
/**
|
5305
|
+
* @param {number} value
|
5306
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5307
|
+
*/
|
5308
|
+
proto.tournament.ScoringRule.prototype.setMaxValue = function(value) {
|
5309
|
+
return jspb.Message.setField(this, 6, value);
|
5310
|
+
};
|
5311
|
+
|
5312
|
+
|
5313
|
+
/**
|
5314
|
+
* Clears the field making it undefined.
|
5315
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5316
|
+
*/
|
5317
|
+
proto.tournament.ScoringRule.prototype.clearMaxValue = function() {
|
5318
|
+
return jspb.Message.setField(this, 6, undefined);
|
5319
|
+
};
|
5320
|
+
|
5321
|
+
|
5322
|
+
/**
|
5323
|
+
* Returns whether this field is set.
|
5324
|
+
* @return {boolean}
|
5325
|
+
*/
|
5326
|
+
proto.tournament.ScoringRule.prototype.hasMaxValue = function() {
|
5327
|
+
return jspb.Message.getField(this, 6) != null;
|
5328
|
+
};
|
5329
|
+
|
5330
|
+
|
5331
|
+
/**
|
5332
|
+
* optional float weight = 7;
|
5333
|
+
* @return {number}
|
5334
|
+
*/
|
5335
|
+
proto.tournament.ScoringRule.prototype.getWeight = function() {
|
5336
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
5337
|
+
};
|
5338
|
+
|
5339
|
+
|
5340
|
+
/**
|
5341
|
+
* @param {number} value
|
5342
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5343
|
+
*/
|
5344
|
+
proto.tournament.ScoringRule.prototype.setWeight = function(value) {
|
5345
|
+
return jspb.Message.setField(this, 7, value);
|
5346
|
+
};
|
5347
|
+
|
5348
|
+
|
5349
|
+
/**
|
5350
|
+
* Clears the field making it undefined.
|
5351
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5352
|
+
*/
|
5353
|
+
proto.tournament.ScoringRule.prototype.clearWeight = function() {
|
5354
|
+
return jspb.Message.setField(this, 7, undefined);
|
5355
|
+
};
|
5356
|
+
|
5357
|
+
|
5358
|
+
/**
|
5359
|
+
* Returns whether this field is set.
|
5360
|
+
* @return {boolean}
|
5361
|
+
*/
|
5362
|
+
proto.tournament.ScoringRule.prototype.hasWeight = function() {
|
5363
|
+
return jspb.Message.getField(this, 7) != null;
|
5364
|
+
};
|
5365
|
+
|
5366
|
+
|
5367
|
+
/**
|
5368
|
+
* optional int32 is_active = 8;
|
5369
|
+
* @return {number}
|
5370
|
+
*/
|
5371
|
+
proto.tournament.ScoringRule.prototype.getIsActive = function() {
|
5372
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
5373
|
+
};
|
5374
|
+
|
5375
|
+
|
5376
|
+
/**
|
5377
|
+
* @param {number} value
|
5378
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5379
|
+
*/
|
5380
|
+
proto.tournament.ScoringRule.prototype.setIsActive = function(value) {
|
5381
|
+
return jspb.Message.setField(this, 8, value);
|
5382
|
+
};
|
5383
|
+
|
5384
|
+
|
5385
|
+
/**
|
5386
|
+
* Clears the field making it undefined.
|
5387
|
+
* @return {!proto.tournament.ScoringRule} returns this
|
5388
|
+
*/
|
5389
|
+
proto.tournament.ScoringRule.prototype.clearIsActive = function() {
|
5390
|
+
return jspb.Message.setField(this, 8, undefined);
|
5391
|
+
};
|
5392
|
+
|
5393
|
+
|
5394
|
+
/**
|
5395
|
+
* Returns whether this field is set.
|
5396
|
+
* @return {boolean}
|
5397
|
+
*/
|
5398
|
+
proto.tournament.ScoringRule.prototype.hasIsActive = function() {
|
5399
|
+
return jspb.Message.getField(this, 8) != null;
|
5400
|
+
};
|
5401
|
+
|
5402
|
+
|
5403
|
+
|
5404
|
+
/**
|
5405
|
+
* List of repeated fields within this message type.
|
5406
|
+
* @private {!Array<number>}
|
5407
|
+
* @const
|
5408
|
+
*/
|
5409
|
+
proto.tournament.TournamentScoringRuleRequest.repeatedFields_ = [1];
|
5410
|
+
|
5411
|
+
|
5412
|
+
|
5413
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5414
|
+
/**
|
5415
|
+
* Creates an object representation of this proto.
|
5416
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5417
|
+
* Optional fields that are not set will be set to undefined.
|
5418
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5419
|
+
* For the list of reserved names please see:
|
5420
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5421
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5422
|
+
* JSPB instance for transitional soy proto support:
|
5423
|
+
* http://goto/soy-param-migration
|
5424
|
+
* @return {!Object}
|
5425
|
+
*/
|
5426
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.toObject = function(opt_includeInstance) {
|
5427
|
+
return proto.tournament.TournamentScoringRuleRequest.toObject(opt_includeInstance, this);
|
5428
|
+
};
|
5429
|
+
|
5430
|
+
|
5431
|
+
/**
|
5432
|
+
* Static version of the {@see toObject} method.
|
5433
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5434
|
+
* the JSPB instance for transitional soy proto support:
|
5435
|
+
* http://goto/soy-param-migration
|
5436
|
+
* @param {!proto.tournament.TournamentScoringRuleRequest} msg The msg instance to transform.
|
5437
|
+
* @return {!Object}
|
5438
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5439
|
+
*/
|
5440
|
+
proto.tournament.TournamentScoringRuleRequest.toObject = function(includeInstance, msg) {
|
5441
|
+
var f, obj = {
|
5442
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
5443
|
+
proto.tournament.ScoringRule.toObject, includeInstance)
|
5444
|
+
};
|
5445
|
+
|
5446
|
+
if (includeInstance) {
|
5447
|
+
obj.$jspbMessageInstance = msg;
|
5448
|
+
}
|
5449
|
+
return obj;
|
5450
|
+
};
|
5451
|
+
}
|
5452
|
+
|
5453
|
+
|
5454
|
+
/**
|
5455
|
+
* Deserializes binary data (in protobuf wire format).
|
5456
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5457
|
+
* @return {!proto.tournament.TournamentScoringRuleRequest}
|
5458
|
+
*/
|
5459
|
+
proto.tournament.TournamentScoringRuleRequest.deserializeBinary = function(bytes) {
|
5460
|
+
var reader = new jspb.BinaryReader(bytes);
|
5461
|
+
var msg = new proto.tournament.TournamentScoringRuleRequest;
|
5462
|
+
return proto.tournament.TournamentScoringRuleRequest.deserializeBinaryFromReader(msg, reader);
|
5463
|
+
};
|
5464
|
+
|
5465
|
+
|
5466
|
+
/**
|
5467
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5468
|
+
* given reader into the given message object.
|
5469
|
+
* @param {!proto.tournament.TournamentScoringRuleRequest} msg The message object to deserialize into.
|
5470
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5471
|
+
* @return {!proto.tournament.TournamentScoringRuleRequest}
|
5472
|
+
*/
|
5473
|
+
proto.tournament.TournamentScoringRuleRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5474
|
+
while (reader.nextField()) {
|
5475
|
+
if (reader.isEndGroup()) {
|
5476
|
+
break;
|
5477
|
+
}
|
5478
|
+
var field = reader.getFieldNumber();
|
5479
|
+
switch (field) {
|
5480
|
+
case 1:
|
5481
|
+
var value = new proto.tournament.ScoringRule;
|
5482
|
+
reader.readMessage(value,proto.tournament.ScoringRule.deserializeBinaryFromReader);
|
5483
|
+
msg.addItems(value);
|
5484
|
+
break;
|
5485
|
+
default:
|
5486
|
+
reader.skipField();
|
5487
|
+
break;
|
5488
|
+
}
|
5489
|
+
}
|
5490
|
+
return msg;
|
5491
|
+
};
|
5492
|
+
|
5493
|
+
|
5494
|
+
/**
|
5495
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5496
|
+
* @return {!Uint8Array}
|
5497
|
+
*/
|
5498
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.serializeBinary = function() {
|
5499
|
+
var writer = new jspb.BinaryWriter();
|
5500
|
+
proto.tournament.TournamentScoringRuleRequest.serializeBinaryToWriter(this, writer);
|
5501
|
+
return writer.getResultBuffer();
|
5502
|
+
};
|
5503
|
+
|
5504
|
+
|
5505
|
+
/**
|
5506
|
+
* Serializes the given message to binary data (in protobuf wire
|
5507
|
+
* format), writing to the given BinaryWriter.
|
5508
|
+
* @param {!proto.tournament.TournamentScoringRuleRequest} message
|
5509
|
+
* @param {!jspb.BinaryWriter} writer
|
5510
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5511
|
+
*/
|
5512
|
+
proto.tournament.TournamentScoringRuleRequest.serializeBinaryToWriter = function(message, writer) {
|
5513
|
+
var f = undefined;
|
5514
|
+
f = message.getItemsList();
|
5515
|
+
if (f.length > 0) {
|
5516
|
+
writer.writeRepeatedMessage(
|
5517
|
+
1,
|
5518
|
+
f,
|
5519
|
+
proto.tournament.ScoringRule.serializeBinaryToWriter
|
5520
|
+
);
|
5521
|
+
}
|
5522
|
+
};
|
5523
|
+
|
5524
|
+
|
5525
|
+
/**
|
5526
|
+
* repeated ScoringRule items = 1;
|
5527
|
+
* @return {!Array<!proto.tournament.ScoringRule>}
|
5528
|
+
*/
|
5529
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.getItemsList = function() {
|
5530
|
+
return /** @type{!Array<!proto.tournament.ScoringRule>} */ (
|
5531
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ScoringRule, 1));
|
5532
|
+
};
|
5533
|
+
|
5534
|
+
|
5535
|
+
/**
|
5536
|
+
* @param {!Array<!proto.tournament.ScoringRule>} value
|
5537
|
+
* @return {!proto.tournament.TournamentScoringRuleRequest} returns this
|
5538
|
+
*/
|
5539
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.setItemsList = function(value) {
|
5540
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
5541
|
+
};
|
5542
|
+
|
5543
|
+
|
5544
|
+
/**
|
5545
|
+
* @param {!proto.tournament.ScoringRule=} opt_value
|
5546
|
+
* @param {number=} opt_index
|
5547
|
+
* @return {!proto.tournament.ScoringRule}
|
5548
|
+
*/
|
5549
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.addItems = function(opt_value, opt_index) {
|
5550
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tournament.ScoringRule, opt_index);
|
5551
|
+
};
|
5552
|
+
|
5553
|
+
|
5554
|
+
/**
|
5555
|
+
* Clears the list making it empty but non-null.
|
5556
|
+
* @return {!proto.tournament.TournamentScoringRuleRequest} returns this
|
5557
|
+
*/
|
5558
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.clearItemsList = function() {
|
5559
|
+
return this.setItemsList([]);
|
5560
|
+
};
|
5561
|
+
|
5562
|
+
|
5563
|
+
|
5564
|
+
|
5565
|
+
|
5566
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5567
|
+
/**
|
5568
|
+
* Creates an object representation of this proto.
|
5569
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5570
|
+
* Optional fields that are not set will be set to undefined.
|
5571
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5572
|
+
* For the list of reserved names please see:
|
5573
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5574
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5575
|
+
* JSPB instance for transitional soy proto support:
|
5576
|
+
* http://goto/soy-param-migration
|
5577
|
+
* @return {!Object}
|
5578
|
+
*/
|
5579
|
+
proto.tournament.RewardItem.prototype.toObject = function(opt_includeInstance) {
|
5580
|
+
return proto.tournament.RewardItem.toObject(opt_includeInstance, this);
|
5581
|
+
};
|
5582
|
+
|
5583
|
+
|
5584
|
+
/**
|
5585
|
+
* Static version of the {@see toObject} method.
|
5586
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5587
|
+
* the JSPB instance for transitional soy proto support:
|
5588
|
+
* http://goto/soy-param-migration
|
5589
|
+
* @param {!proto.tournament.RewardItem} msg The msg instance to transform.
|
5590
|
+
* @return {!Object}
|
5591
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5592
|
+
*/
|
5593
|
+
proto.tournament.RewardItem.toObject = function(includeInstance, msg) {
|
5594
|
+
var f, obj = {
|
5595
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5596
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
5597
|
+
place: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
5598
|
+
loyaltyPoints: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
5599
|
+
rankingPoints: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
5600
|
+
coins: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
5601
|
+
bonusId: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
5602
|
+
};
|
5603
|
+
|
5604
|
+
if (includeInstance) {
|
5605
|
+
obj.$jspbMessageInstance = msg;
|
5606
|
+
}
|
5607
|
+
return obj;
|
5608
|
+
};
|
5609
|
+
}
|
5610
|
+
|
5611
|
+
|
5612
|
+
/**
|
5613
|
+
* Deserializes binary data (in protobuf wire format).
|
5614
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5615
|
+
* @return {!proto.tournament.RewardItem}
|
5616
|
+
*/
|
5617
|
+
proto.tournament.RewardItem.deserializeBinary = function(bytes) {
|
5618
|
+
var reader = new jspb.BinaryReader(bytes);
|
5619
|
+
var msg = new proto.tournament.RewardItem;
|
5620
|
+
return proto.tournament.RewardItem.deserializeBinaryFromReader(msg, reader);
|
5621
|
+
};
|
5622
|
+
|
5623
|
+
|
5624
|
+
/**
|
5625
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5626
|
+
* given reader into the given message object.
|
5627
|
+
* @param {!proto.tournament.RewardItem} msg The message object to deserialize into.
|
5628
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5629
|
+
* @return {!proto.tournament.RewardItem}
|
5630
|
+
*/
|
5631
|
+
proto.tournament.RewardItem.deserializeBinaryFromReader = function(msg, reader) {
|
5632
|
+
while (reader.nextField()) {
|
5633
|
+
if (reader.isEndGroup()) {
|
5634
|
+
break;
|
5635
|
+
}
|
5636
|
+
var field = reader.getFieldNumber();
|
5637
|
+
switch (field) {
|
5638
|
+
case 1:
|
5639
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5640
|
+
msg.setId(value);
|
5641
|
+
break;
|
5642
|
+
case 2:
|
5643
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5644
|
+
msg.setTournamentId(value);
|
5645
|
+
break;
|
5646
|
+
case 3:
|
5647
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5648
|
+
msg.setPlace(value);
|
5649
|
+
break;
|
5650
|
+
case 4:
|
5651
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5652
|
+
msg.setLoyaltyPoints(value);
|
5653
|
+
break;
|
5654
|
+
case 5:
|
5655
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5656
|
+
msg.setRankingPoints(value);
|
5657
|
+
break;
|
5658
|
+
case 6:
|
5659
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5660
|
+
msg.setCoins(value);
|
5661
|
+
break;
|
5662
|
+
case 7:
|
5663
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5664
|
+
msg.setBonusId(value);
|
5665
|
+
break;
|
5666
|
+
default:
|
5667
|
+
reader.skipField();
|
5668
|
+
break;
|
5669
|
+
}
|
5670
|
+
}
|
5671
|
+
return msg;
|
5672
|
+
};
|
5673
|
+
|
5674
|
+
|
5675
|
+
/**
|
5676
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5677
|
+
* @return {!Uint8Array}
|
5678
|
+
*/
|
5679
|
+
proto.tournament.RewardItem.prototype.serializeBinary = function() {
|
5680
|
+
var writer = new jspb.BinaryWriter();
|
5681
|
+
proto.tournament.RewardItem.serializeBinaryToWriter(this, writer);
|
5682
|
+
return writer.getResultBuffer();
|
5683
|
+
};
|
5684
|
+
|
5685
|
+
|
5686
|
+
/**
|
5687
|
+
* Serializes the given message to binary data (in protobuf wire
|
5688
|
+
* format), writing to the given BinaryWriter.
|
5689
|
+
* @param {!proto.tournament.RewardItem} message
|
5690
|
+
* @param {!jspb.BinaryWriter} writer
|
5691
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5692
|
+
*/
|
5693
|
+
proto.tournament.RewardItem.serializeBinaryToWriter = function(message, writer) {
|
5694
|
+
var f = undefined;
|
5695
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
5696
|
+
if (f != null) {
|
5697
|
+
writer.writeInt32(
|
5698
|
+
1,
|
5699
|
+
f
|
5700
|
+
);
|
5701
|
+
}
|
5702
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
5703
|
+
if (f != null) {
|
5704
|
+
writer.writeInt32(
|
5705
|
+
2,
|
5706
|
+
f
|
5707
|
+
);
|
5708
|
+
}
|
5709
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
5710
|
+
if (f != null) {
|
5711
|
+
writer.writeInt32(
|
5712
|
+
3,
|
5713
|
+
f
|
5714
|
+
);
|
5715
|
+
}
|
5716
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
5717
|
+
if (f != null) {
|
5718
|
+
writer.writeInt32(
|
5719
|
+
4,
|
5720
|
+
f
|
5721
|
+
);
|
5722
|
+
}
|
5723
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
5724
|
+
if (f != null) {
|
5725
|
+
writer.writeInt32(
|
5726
|
+
5,
|
5727
|
+
f
|
5728
|
+
);
|
5729
|
+
}
|
5730
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
5731
|
+
if (f != null) {
|
5732
|
+
writer.writeInt32(
|
5733
|
+
6,
|
5734
|
+
f
|
5735
|
+
);
|
5736
|
+
}
|
5737
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
5738
|
+
if (f != null) {
|
5739
|
+
writer.writeInt32(
|
5740
|
+
7,
|
5741
|
+
f
|
5742
|
+
);
|
5743
|
+
}
|
5744
|
+
};
|
5745
|
+
|
5746
|
+
|
5747
|
+
/**
|
5748
|
+
* optional int32 id = 1;
|
5749
|
+
* @return {number}
|
5750
|
+
*/
|
5751
|
+
proto.tournament.RewardItem.prototype.getId = function() {
|
5752
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5753
|
+
};
|
5754
|
+
|
5755
|
+
|
5756
|
+
/**
|
5757
|
+
* @param {number} value
|
5758
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5759
|
+
*/
|
5760
|
+
proto.tournament.RewardItem.prototype.setId = function(value) {
|
5761
|
+
return jspb.Message.setField(this, 1, value);
|
5762
|
+
};
|
5763
|
+
|
5764
|
+
|
5765
|
+
/**
|
5766
|
+
* Clears the field making it undefined.
|
5767
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5768
|
+
*/
|
5769
|
+
proto.tournament.RewardItem.prototype.clearId = function() {
|
5770
|
+
return jspb.Message.setField(this, 1, undefined);
|
5771
|
+
};
|
5772
|
+
|
5773
|
+
|
5774
|
+
/**
|
5775
|
+
* Returns whether this field is set.
|
5776
|
+
* @return {boolean}
|
5777
|
+
*/
|
5778
|
+
proto.tournament.RewardItem.prototype.hasId = function() {
|
5779
|
+
return jspb.Message.getField(this, 1) != null;
|
5780
|
+
};
|
5781
|
+
|
5782
|
+
|
5783
|
+
/**
|
5784
|
+
* optional int32 tournament_id = 2;
|
5785
|
+
* @return {number}
|
5786
|
+
*/
|
5787
|
+
proto.tournament.RewardItem.prototype.getTournamentId = function() {
|
5788
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
5789
|
+
};
|
5790
|
+
|
5791
|
+
|
5792
|
+
/**
|
5793
|
+
* @param {number} value
|
5794
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5795
|
+
*/
|
5796
|
+
proto.tournament.RewardItem.prototype.setTournamentId = function(value) {
|
5797
|
+
return jspb.Message.setField(this, 2, value);
|
5798
|
+
};
|
5799
|
+
|
5800
|
+
|
5801
|
+
/**
|
5802
|
+
* Clears the field making it undefined.
|
5803
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5804
|
+
*/
|
5805
|
+
proto.tournament.RewardItem.prototype.clearTournamentId = function() {
|
5806
|
+
return jspb.Message.setField(this, 2, undefined);
|
5807
|
+
};
|
5808
|
+
|
5809
|
+
|
5810
|
+
/**
|
5811
|
+
* Returns whether this field is set.
|
5812
|
+
* @return {boolean}
|
5813
|
+
*/
|
5814
|
+
proto.tournament.RewardItem.prototype.hasTournamentId = function() {
|
5815
|
+
return jspb.Message.getField(this, 2) != null;
|
5816
|
+
};
|
5817
|
+
|
5818
|
+
|
5819
|
+
/**
|
5820
|
+
* optional int32 place = 3;
|
5821
|
+
* @return {number}
|
5822
|
+
*/
|
5823
|
+
proto.tournament.RewardItem.prototype.getPlace = function() {
|
5824
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
5825
|
+
};
|
5826
|
+
|
5827
|
+
|
5828
|
+
/**
|
5829
|
+
* @param {number} value
|
5830
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5831
|
+
*/
|
5832
|
+
proto.tournament.RewardItem.prototype.setPlace = function(value) {
|
5833
|
+
return jspb.Message.setField(this, 3, value);
|
5834
|
+
};
|
5835
|
+
|
5836
|
+
|
5837
|
+
/**
|
5838
|
+
* Clears the field making it undefined.
|
5839
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5840
|
+
*/
|
5841
|
+
proto.tournament.RewardItem.prototype.clearPlace = function() {
|
5842
|
+
return jspb.Message.setField(this, 3, undefined);
|
5843
|
+
};
|
5844
|
+
|
5845
|
+
|
5846
|
+
/**
|
5847
|
+
* Returns whether this field is set.
|
5848
|
+
* @return {boolean}
|
5849
|
+
*/
|
5850
|
+
proto.tournament.RewardItem.prototype.hasPlace = function() {
|
5851
|
+
return jspb.Message.getField(this, 3) != null;
|
5852
|
+
};
|
5853
|
+
|
5854
|
+
|
5855
|
+
/**
|
5856
|
+
* optional int32 loyalty_points = 4;
|
5857
|
+
* @return {number}
|
5858
|
+
*/
|
5859
|
+
proto.tournament.RewardItem.prototype.getLoyaltyPoints = function() {
|
5860
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
5861
|
+
};
|
5862
|
+
|
5863
|
+
|
5864
|
+
/**
|
5865
|
+
* @param {number} value
|
5866
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5867
|
+
*/
|
5868
|
+
proto.tournament.RewardItem.prototype.setLoyaltyPoints = function(value) {
|
5869
|
+
return jspb.Message.setField(this, 4, value);
|
5870
|
+
};
|
5871
|
+
|
5872
|
+
|
5873
|
+
/**
|
5874
|
+
* Clears the field making it undefined.
|
5875
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5876
|
+
*/
|
5877
|
+
proto.tournament.RewardItem.prototype.clearLoyaltyPoints = function() {
|
5878
|
+
return jspb.Message.setField(this, 4, undefined);
|
5879
|
+
};
|
5880
|
+
|
5881
|
+
|
5882
|
+
/**
|
5883
|
+
* Returns whether this field is set.
|
5884
|
+
* @return {boolean}
|
5885
|
+
*/
|
5886
|
+
proto.tournament.RewardItem.prototype.hasLoyaltyPoints = function() {
|
5887
|
+
return jspb.Message.getField(this, 4) != null;
|
5888
|
+
};
|
5889
|
+
|
5890
|
+
|
5891
|
+
/**
|
5892
|
+
* optional int32 ranking_points = 5;
|
5893
|
+
* @return {number}
|
5894
|
+
*/
|
5895
|
+
proto.tournament.RewardItem.prototype.getRankingPoints = function() {
|
5896
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
5897
|
+
};
|
5898
|
+
|
5899
|
+
|
5900
|
+
/**
|
5901
|
+
* @param {number} value
|
5902
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5903
|
+
*/
|
5904
|
+
proto.tournament.RewardItem.prototype.setRankingPoints = function(value) {
|
5905
|
+
return jspb.Message.setField(this, 5, value);
|
5906
|
+
};
|
5907
|
+
|
5908
|
+
|
5909
|
+
/**
|
5910
|
+
* Clears the field making it undefined.
|
5911
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5912
|
+
*/
|
5913
|
+
proto.tournament.RewardItem.prototype.clearRankingPoints = function() {
|
5914
|
+
return jspb.Message.setField(this, 5, undefined);
|
5915
|
+
};
|
5916
|
+
|
5917
|
+
|
5918
|
+
/**
|
5919
|
+
* Returns whether this field is set.
|
5920
|
+
* @return {boolean}
|
5921
|
+
*/
|
5922
|
+
proto.tournament.RewardItem.prototype.hasRankingPoints = function() {
|
5923
|
+
return jspb.Message.getField(this, 5) != null;
|
5924
|
+
};
|
5925
|
+
|
5926
|
+
|
5927
|
+
/**
|
5928
|
+
* optional int32 coins = 6;
|
5929
|
+
* @return {number}
|
5930
|
+
*/
|
5931
|
+
proto.tournament.RewardItem.prototype.getCoins = function() {
|
5932
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
5933
|
+
};
|
5934
|
+
|
5935
|
+
|
5936
|
+
/**
|
5937
|
+
* @param {number} value
|
5938
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5939
|
+
*/
|
5940
|
+
proto.tournament.RewardItem.prototype.setCoins = function(value) {
|
5941
|
+
return jspb.Message.setField(this, 6, value);
|
5942
|
+
};
|
5943
|
+
|
5944
|
+
|
5945
|
+
/**
|
5946
|
+
* Clears the field making it undefined.
|
5947
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5948
|
+
*/
|
5949
|
+
proto.tournament.RewardItem.prototype.clearCoins = function() {
|
5950
|
+
return jspb.Message.setField(this, 6, undefined);
|
5951
|
+
};
|
5952
|
+
|
5953
|
+
|
5954
|
+
/**
|
5955
|
+
* Returns whether this field is set.
|
5956
|
+
* @return {boolean}
|
5957
|
+
*/
|
5958
|
+
proto.tournament.RewardItem.prototype.hasCoins = function() {
|
5959
|
+
return jspb.Message.getField(this, 6) != null;
|
5960
|
+
};
|
5961
|
+
|
5962
|
+
|
5963
|
+
/**
|
5964
|
+
* optional int32 bonus_id = 7;
|
5965
|
+
* @return {number}
|
5966
|
+
*/
|
5967
|
+
proto.tournament.RewardItem.prototype.getBonusId = function() {
|
5968
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
5969
|
+
};
|
5970
|
+
|
5971
|
+
|
5972
|
+
/**
|
5973
|
+
* @param {number} value
|
5974
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5975
|
+
*/
|
5976
|
+
proto.tournament.RewardItem.prototype.setBonusId = function(value) {
|
5977
|
+
return jspb.Message.setField(this, 7, value);
|
5978
|
+
};
|
5979
|
+
|
5980
|
+
|
5981
|
+
/**
|
5982
|
+
* Clears the field making it undefined.
|
5983
|
+
* @return {!proto.tournament.RewardItem} returns this
|
5984
|
+
*/
|
5985
|
+
proto.tournament.RewardItem.prototype.clearBonusId = function() {
|
5986
|
+
return jspb.Message.setField(this, 7, undefined);
|
5987
|
+
};
|
5988
|
+
|
5989
|
+
|
5990
|
+
/**
|
5991
|
+
* Returns whether this field is set.
|
5992
|
+
* @return {boolean}
|
5993
|
+
*/
|
5994
|
+
proto.tournament.RewardItem.prototype.hasBonusId = function() {
|
5995
|
+
return jspb.Message.getField(this, 7) != null;
|
5996
|
+
};
|
5997
|
+
|
5998
|
+
|
5999
|
+
|
6000
|
+
/**
|
6001
|
+
* List of repeated fields within this message type.
|
6002
|
+
* @private {!Array<number>}
|
6003
|
+
* @const
|
6004
|
+
*/
|
6005
|
+
proto.tournament.TournamentRewardsRequest.repeatedFields_ = [1];
|
6006
|
+
|
6007
|
+
|
6008
|
+
|
6009
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6010
|
+
/**
|
6011
|
+
* Creates an object representation of this proto.
|
6012
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6013
|
+
* Optional fields that are not set will be set to undefined.
|
6014
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6015
|
+
* For the list of reserved names please see:
|
6016
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6017
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6018
|
+
* JSPB instance for transitional soy proto support:
|
6019
|
+
* http://goto/soy-param-migration
|
6020
|
+
* @return {!Object}
|
6021
|
+
*/
|
6022
|
+
proto.tournament.TournamentRewardsRequest.prototype.toObject = function(opt_includeInstance) {
|
6023
|
+
return proto.tournament.TournamentRewardsRequest.toObject(opt_includeInstance, this);
|
6024
|
+
};
|
6025
|
+
|
6026
|
+
|
6027
|
+
/**
|
6028
|
+
* Static version of the {@see toObject} method.
|
6029
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6030
|
+
* the JSPB instance for transitional soy proto support:
|
6031
|
+
* http://goto/soy-param-migration
|
6032
|
+
* @param {!proto.tournament.TournamentRewardsRequest} msg The msg instance to transform.
|
6033
|
+
* @return {!Object}
|
6034
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6035
|
+
*/
|
6036
|
+
proto.tournament.TournamentRewardsRequest.toObject = function(includeInstance, msg) {
|
6037
|
+
var f, obj = {
|
6038
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
6039
|
+
proto.tournament.RewardItem.toObject, includeInstance)
|
6040
|
+
};
|
6041
|
+
|
6042
|
+
if (includeInstance) {
|
6043
|
+
obj.$jspbMessageInstance = msg;
|
6044
|
+
}
|
6045
|
+
return obj;
|
6046
|
+
};
|
6047
|
+
}
|
6048
|
+
|
6049
|
+
|
6050
|
+
/**
|
6051
|
+
* Deserializes binary data (in protobuf wire format).
|
6052
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6053
|
+
* @return {!proto.tournament.TournamentRewardsRequest}
|
6054
|
+
*/
|
6055
|
+
proto.tournament.TournamentRewardsRequest.deserializeBinary = function(bytes) {
|
6056
|
+
var reader = new jspb.BinaryReader(bytes);
|
6057
|
+
var msg = new proto.tournament.TournamentRewardsRequest;
|
6058
|
+
return proto.tournament.TournamentRewardsRequest.deserializeBinaryFromReader(msg, reader);
|
6059
|
+
};
|
6060
|
+
|
6061
|
+
|
6062
|
+
/**
|
6063
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6064
|
+
* given reader into the given message object.
|
6065
|
+
* @param {!proto.tournament.TournamentRewardsRequest} msg The message object to deserialize into.
|
6066
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6067
|
+
* @return {!proto.tournament.TournamentRewardsRequest}
|
6068
|
+
*/
|
6069
|
+
proto.tournament.TournamentRewardsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
6070
|
+
while (reader.nextField()) {
|
6071
|
+
if (reader.isEndGroup()) {
|
6072
|
+
break;
|
6073
|
+
}
|
6074
|
+
var field = reader.getFieldNumber();
|
6075
|
+
switch (field) {
|
6076
|
+
case 1:
|
6077
|
+
var value = new proto.tournament.RewardItem;
|
6078
|
+
reader.readMessage(value,proto.tournament.RewardItem.deserializeBinaryFromReader);
|
6079
|
+
msg.addItems(value);
|
6080
|
+
break;
|
6081
|
+
default:
|
6082
|
+
reader.skipField();
|
6083
|
+
break;
|
6084
|
+
}
|
6085
|
+
}
|
6086
|
+
return msg;
|
6087
|
+
};
|
6088
|
+
|
6089
|
+
|
6090
|
+
/**
|
6091
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6092
|
+
* @return {!Uint8Array}
|
6093
|
+
*/
|
6094
|
+
proto.tournament.TournamentRewardsRequest.prototype.serializeBinary = function() {
|
6095
|
+
var writer = new jspb.BinaryWriter();
|
6096
|
+
proto.tournament.TournamentRewardsRequest.serializeBinaryToWriter(this, writer);
|
6097
|
+
return writer.getResultBuffer();
|
6098
|
+
};
|
6099
|
+
|
6100
|
+
|
6101
|
+
/**
|
6102
|
+
* Serializes the given message to binary data (in protobuf wire
|
6103
|
+
* format), writing to the given BinaryWriter.
|
6104
|
+
* @param {!proto.tournament.TournamentRewardsRequest} message
|
6105
|
+
* @param {!jspb.BinaryWriter} writer
|
6106
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6107
|
+
*/
|
6108
|
+
proto.tournament.TournamentRewardsRequest.serializeBinaryToWriter = function(message, writer) {
|
6109
|
+
var f = undefined;
|
6110
|
+
f = message.getItemsList();
|
6111
|
+
if (f.length > 0) {
|
6112
|
+
writer.writeRepeatedMessage(
|
6113
|
+
1,
|
6114
|
+
f,
|
6115
|
+
proto.tournament.RewardItem.serializeBinaryToWriter
|
6116
|
+
);
|
6117
|
+
}
|
6118
|
+
};
|
6119
|
+
|
6120
|
+
|
6121
|
+
/**
|
6122
|
+
* repeated RewardItem items = 1;
|
6123
|
+
* @return {!Array<!proto.tournament.RewardItem>}
|
6124
|
+
*/
|
6125
|
+
proto.tournament.TournamentRewardsRequest.prototype.getItemsList = function() {
|
6126
|
+
return /** @type{!Array<!proto.tournament.RewardItem>} */ (
|
6127
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem, 1));
|
6128
|
+
};
|
6129
|
+
|
6130
|
+
|
6131
|
+
/**
|
6132
|
+
* @param {!Array<!proto.tournament.RewardItem>} value
|
6133
|
+
* @return {!proto.tournament.TournamentRewardsRequest} returns this
|
6134
|
+
*/
|
6135
|
+
proto.tournament.TournamentRewardsRequest.prototype.setItemsList = function(value) {
|
6136
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
6137
|
+
};
|
6138
|
+
|
6139
|
+
|
6140
|
+
/**
|
6141
|
+
* @param {!proto.tournament.RewardItem=} opt_value
|
6142
|
+
* @param {number=} opt_index
|
6143
|
+
* @return {!proto.tournament.RewardItem}
|
6144
|
+
*/
|
6145
|
+
proto.tournament.TournamentRewardsRequest.prototype.addItems = function(opt_value, opt_index) {
|
6146
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.tournament.RewardItem, opt_index);
|
6147
|
+
};
|
6148
|
+
|
6149
|
+
|
6150
|
+
/**
|
6151
|
+
* Clears the list making it empty but non-null.
|
6152
|
+
* @return {!proto.tournament.TournamentRewardsRequest} returns this
|
6153
|
+
*/
|
6154
|
+
proto.tournament.TournamentRewardsRequest.prototype.clearItemsList = function() {
|
6155
|
+
return this.setItemsList([]);
|
6156
|
+
};
|
6157
|
+
|
6158
|
+
|
3951
6159
|
goog.object.extend(exports, proto.tournament);
|