protobuf-platform 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tournament/tournament.proto +9 -3
- package/tournament/tournament_pb.js +276 -20
package/package.json
CHANGED
@@ -41,6 +41,9 @@ message TournamentItem {
|
|
41
41
|
optional string finished_at = 8;
|
42
42
|
optional string status = 9;
|
43
43
|
optional string image = 10;
|
44
|
+
repeated ActivationRuleItem rules = 11;
|
45
|
+
repeated ScoringRule scores = 12;
|
46
|
+
repeated RewardItem rewards = 13;
|
44
47
|
}
|
45
48
|
message TournamentRequest {
|
46
49
|
oneof request {
|
@@ -99,7 +102,8 @@ message ActivationRuleItem {
|
|
99
102
|
optional int32 coins = 12;
|
100
103
|
}
|
101
104
|
message TournamentActivationRuleRequest {
|
102
|
-
|
105
|
+
int32 tournament_id = 1;
|
106
|
+
repeated ActivationRuleItem items = 2;
|
103
107
|
}
|
104
108
|
message ScoringRule {
|
105
109
|
optional int32 id = 1;
|
@@ -112,7 +116,8 @@ message ScoringRule {
|
|
112
116
|
optional int32 is_active = 8;
|
113
117
|
}
|
114
118
|
message TournamentScoringRuleRequest {
|
115
|
-
|
119
|
+
int32 tournament_id = 1;
|
120
|
+
repeated ScoringRule items = 2;
|
116
121
|
}
|
117
122
|
message RewardItem {
|
118
123
|
optional int32 id = 1;
|
@@ -124,5 +129,6 @@ message RewardItem {
|
|
124
129
|
optional int32 bonus_id = 7;
|
125
130
|
}
|
126
131
|
message TournamentRewardsRequest {
|
127
|
-
|
132
|
+
int32 tournament_id = 1;
|
133
|
+
repeated RewardItem items = 2;
|
128
134
|
}
|
@@ -180,7 +180,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
180
180
|
* @constructor
|
181
181
|
*/
|
182
182
|
proto.tournament.TournamentItem = function(opt_data) {
|
183
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
183
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.tournament.TournamentItem.repeatedFields_, null);
|
184
184
|
};
|
185
185
|
goog.inherits(proto.tournament.TournamentItem, jspb.Message);
|
186
186
|
if (goog.DEBUG && !COMPILED) {
|
@@ -1610,6 +1610,13 @@ proto.tournament.UserSearchRequest.prototype.hasCurrency = function() {
|
|
1610
1610
|
|
1611
1611
|
|
1612
1612
|
|
1613
|
+
/**
|
1614
|
+
* List of repeated fields within this message type.
|
1615
|
+
* @private {!Array<number>}
|
1616
|
+
* @const
|
1617
|
+
*/
|
1618
|
+
proto.tournament.TournamentItem.repeatedFields_ = [11,12,13];
|
1619
|
+
|
1613
1620
|
|
1614
1621
|
|
1615
1622
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -1650,7 +1657,13 @@ proto.tournament.TournamentItem.toObject = function(includeInstance, msg) {
|
|
1650
1657
|
startedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
1651
1658
|
finishedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
1652
1659
|
status: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
1653
|
-
image: jspb.Message.getFieldWithDefault(msg, 10, "")
|
1660
|
+
image: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
1661
|
+
rulesList: jspb.Message.toObjectList(msg.getRulesList(),
|
1662
|
+
proto.tournament.ActivationRuleItem.toObject, includeInstance),
|
1663
|
+
scoresList: jspb.Message.toObjectList(msg.getScoresList(),
|
1664
|
+
proto.tournament.ScoringRule.toObject, includeInstance),
|
1665
|
+
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
1666
|
+
proto.tournament.RewardItem.toObject, includeInstance)
|
1654
1667
|
};
|
1655
1668
|
|
1656
1669
|
if (includeInstance) {
|
@@ -1727,6 +1740,21 @@ proto.tournament.TournamentItem.deserializeBinaryFromReader = function(msg, read
|
|
1727
1740
|
var value = /** @type {string} */ (reader.readString());
|
1728
1741
|
msg.setImage(value);
|
1729
1742
|
break;
|
1743
|
+
case 11:
|
1744
|
+
var value = new proto.tournament.ActivationRuleItem;
|
1745
|
+
reader.readMessage(value,proto.tournament.ActivationRuleItem.deserializeBinaryFromReader);
|
1746
|
+
msg.addRules(value);
|
1747
|
+
break;
|
1748
|
+
case 12:
|
1749
|
+
var value = new proto.tournament.ScoringRule;
|
1750
|
+
reader.readMessage(value,proto.tournament.ScoringRule.deserializeBinaryFromReader);
|
1751
|
+
msg.addScores(value);
|
1752
|
+
break;
|
1753
|
+
case 13:
|
1754
|
+
var value = new proto.tournament.RewardItem;
|
1755
|
+
reader.readMessage(value,proto.tournament.RewardItem.deserializeBinaryFromReader);
|
1756
|
+
msg.addRewards(value);
|
1757
|
+
break;
|
1730
1758
|
default:
|
1731
1759
|
reader.skipField();
|
1732
1760
|
break;
|
@@ -1826,6 +1854,30 @@ proto.tournament.TournamentItem.serializeBinaryToWriter = function(message, writ
|
|
1826
1854
|
f
|
1827
1855
|
);
|
1828
1856
|
}
|
1857
|
+
f = message.getRulesList();
|
1858
|
+
if (f.length > 0) {
|
1859
|
+
writer.writeRepeatedMessage(
|
1860
|
+
11,
|
1861
|
+
f,
|
1862
|
+
proto.tournament.ActivationRuleItem.serializeBinaryToWriter
|
1863
|
+
);
|
1864
|
+
}
|
1865
|
+
f = message.getScoresList();
|
1866
|
+
if (f.length > 0) {
|
1867
|
+
writer.writeRepeatedMessage(
|
1868
|
+
12,
|
1869
|
+
f,
|
1870
|
+
proto.tournament.ScoringRule.serializeBinaryToWriter
|
1871
|
+
);
|
1872
|
+
}
|
1873
|
+
f = message.getRewardsList();
|
1874
|
+
if (f.length > 0) {
|
1875
|
+
writer.writeRepeatedMessage(
|
1876
|
+
13,
|
1877
|
+
f,
|
1878
|
+
proto.tournament.RewardItem.serializeBinaryToWriter
|
1879
|
+
);
|
1880
|
+
}
|
1829
1881
|
};
|
1830
1882
|
|
1831
1883
|
|
@@ -2189,6 +2241,120 @@ proto.tournament.TournamentItem.prototype.hasImage = function() {
|
|
2189
2241
|
};
|
2190
2242
|
|
2191
2243
|
|
2244
|
+
/**
|
2245
|
+
* repeated ActivationRuleItem rules = 11;
|
2246
|
+
* @return {!Array<!proto.tournament.ActivationRuleItem>}
|
2247
|
+
*/
|
2248
|
+
proto.tournament.TournamentItem.prototype.getRulesList = function() {
|
2249
|
+
return /** @type{!Array<!proto.tournament.ActivationRuleItem>} */ (
|
2250
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ActivationRuleItem, 11));
|
2251
|
+
};
|
2252
|
+
|
2253
|
+
|
2254
|
+
/**
|
2255
|
+
* @param {!Array<!proto.tournament.ActivationRuleItem>} value
|
2256
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2257
|
+
*/
|
2258
|
+
proto.tournament.TournamentItem.prototype.setRulesList = function(value) {
|
2259
|
+
return jspb.Message.setRepeatedWrapperField(this, 11, value);
|
2260
|
+
};
|
2261
|
+
|
2262
|
+
|
2263
|
+
/**
|
2264
|
+
* @param {!proto.tournament.ActivationRuleItem=} opt_value
|
2265
|
+
* @param {number=} opt_index
|
2266
|
+
* @return {!proto.tournament.ActivationRuleItem}
|
2267
|
+
*/
|
2268
|
+
proto.tournament.TournamentItem.prototype.addRules = function(opt_value, opt_index) {
|
2269
|
+
return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.tournament.ActivationRuleItem, opt_index);
|
2270
|
+
};
|
2271
|
+
|
2272
|
+
|
2273
|
+
/**
|
2274
|
+
* Clears the list making it empty but non-null.
|
2275
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2276
|
+
*/
|
2277
|
+
proto.tournament.TournamentItem.prototype.clearRulesList = function() {
|
2278
|
+
return this.setRulesList([]);
|
2279
|
+
};
|
2280
|
+
|
2281
|
+
|
2282
|
+
/**
|
2283
|
+
* repeated ScoringRule scores = 12;
|
2284
|
+
* @return {!Array<!proto.tournament.ScoringRule>}
|
2285
|
+
*/
|
2286
|
+
proto.tournament.TournamentItem.prototype.getScoresList = function() {
|
2287
|
+
return /** @type{!Array<!proto.tournament.ScoringRule>} */ (
|
2288
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ScoringRule, 12));
|
2289
|
+
};
|
2290
|
+
|
2291
|
+
|
2292
|
+
/**
|
2293
|
+
* @param {!Array<!proto.tournament.ScoringRule>} value
|
2294
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2295
|
+
*/
|
2296
|
+
proto.tournament.TournamentItem.prototype.setScoresList = function(value) {
|
2297
|
+
return jspb.Message.setRepeatedWrapperField(this, 12, value);
|
2298
|
+
};
|
2299
|
+
|
2300
|
+
|
2301
|
+
/**
|
2302
|
+
* @param {!proto.tournament.ScoringRule=} opt_value
|
2303
|
+
* @param {number=} opt_index
|
2304
|
+
* @return {!proto.tournament.ScoringRule}
|
2305
|
+
*/
|
2306
|
+
proto.tournament.TournamentItem.prototype.addScores = function(opt_value, opt_index) {
|
2307
|
+
return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.tournament.ScoringRule, opt_index);
|
2308
|
+
};
|
2309
|
+
|
2310
|
+
|
2311
|
+
/**
|
2312
|
+
* Clears the list making it empty but non-null.
|
2313
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2314
|
+
*/
|
2315
|
+
proto.tournament.TournamentItem.prototype.clearScoresList = function() {
|
2316
|
+
return this.setScoresList([]);
|
2317
|
+
};
|
2318
|
+
|
2319
|
+
|
2320
|
+
/**
|
2321
|
+
* repeated RewardItem rewards = 13;
|
2322
|
+
* @return {!Array<!proto.tournament.RewardItem>}
|
2323
|
+
*/
|
2324
|
+
proto.tournament.TournamentItem.prototype.getRewardsList = function() {
|
2325
|
+
return /** @type{!Array<!proto.tournament.RewardItem>} */ (
|
2326
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem, 13));
|
2327
|
+
};
|
2328
|
+
|
2329
|
+
|
2330
|
+
/**
|
2331
|
+
* @param {!Array<!proto.tournament.RewardItem>} value
|
2332
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2333
|
+
*/
|
2334
|
+
proto.tournament.TournamentItem.prototype.setRewardsList = function(value) {
|
2335
|
+
return jspb.Message.setRepeatedWrapperField(this, 13, value);
|
2336
|
+
};
|
2337
|
+
|
2338
|
+
|
2339
|
+
/**
|
2340
|
+
* @param {!proto.tournament.RewardItem=} opt_value
|
2341
|
+
* @param {number=} opt_index
|
2342
|
+
* @return {!proto.tournament.RewardItem}
|
2343
|
+
*/
|
2344
|
+
proto.tournament.TournamentItem.prototype.addRewards = function(opt_value, opt_index) {
|
2345
|
+
return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.tournament.RewardItem, opt_index);
|
2346
|
+
};
|
2347
|
+
|
2348
|
+
|
2349
|
+
/**
|
2350
|
+
* Clears the list making it empty but non-null.
|
2351
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2352
|
+
*/
|
2353
|
+
proto.tournament.TournamentItem.prototype.clearRewardsList = function() {
|
2354
|
+
return this.setRewardsList([]);
|
2355
|
+
};
|
2356
|
+
|
2357
|
+
|
2192
2358
|
|
2193
2359
|
/**
|
2194
2360
|
* Oneof group definitions for this message. Each group defines the field
|
@@ -4762,7 +4928,7 @@ proto.tournament.ActivationRuleItem.prototype.hasCoins = function() {
|
|
4762
4928
|
* @private {!Array<number>}
|
4763
4929
|
* @const
|
4764
4930
|
*/
|
4765
|
-
proto.tournament.TournamentActivationRuleRequest.repeatedFields_ = [
|
4931
|
+
proto.tournament.TournamentActivationRuleRequest.repeatedFields_ = [2];
|
4766
4932
|
|
4767
4933
|
|
4768
4934
|
|
@@ -4795,6 +4961,7 @@ proto.tournament.TournamentActivationRuleRequest.prototype.toObject = function(o
|
|
4795
4961
|
*/
|
4796
4962
|
proto.tournament.TournamentActivationRuleRequest.toObject = function(includeInstance, msg) {
|
4797
4963
|
var f, obj = {
|
4964
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4798
4965
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
4799
4966
|
proto.tournament.ActivationRuleItem.toObject, includeInstance)
|
4800
4967
|
};
|
@@ -4834,6 +5001,10 @@ proto.tournament.TournamentActivationRuleRequest.deserializeBinaryFromReader = f
|
|
4834
5001
|
var field = reader.getFieldNumber();
|
4835
5002
|
switch (field) {
|
4836
5003
|
case 1:
|
5004
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5005
|
+
msg.setTournamentId(value);
|
5006
|
+
break;
|
5007
|
+
case 2:
|
4837
5008
|
var value = new proto.tournament.ActivationRuleItem;
|
4838
5009
|
reader.readMessage(value,proto.tournament.ActivationRuleItem.deserializeBinaryFromReader);
|
4839
5010
|
msg.addItems(value);
|
@@ -4867,10 +5038,17 @@ proto.tournament.TournamentActivationRuleRequest.prototype.serializeBinary = fun
|
|
4867
5038
|
*/
|
4868
5039
|
proto.tournament.TournamentActivationRuleRequest.serializeBinaryToWriter = function(message, writer) {
|
4869
5040
|
var f = undefined;
|
5041
|
+
f = message.getTournamentId();
|
5042
|
+
if (f !== 0) {
|
5043
|
+
writer.writeInt32(
|
5044
|
+
1,
|
5045
|
+
f
|
5046
|
+
);
|
5047
|
+
}
|
4870
5048
|
f = message.getItemsList();
|
4871
5049
|
if (f.length > 0) {
|
4872
5050
|
writer.writeRepeatedMessage(
|
4873
|
-
|
5051
|
+
2,
|
4874
5052
|
f,
|
4875
5053
|
proto.tournament.ActivationRuleItem.serializeBinaryToWriter
|
4876
5054
|
);
|
@@ -4879,12 +5057,30 @@ proto.tournament.TournamentActivationRuleRequest.serializeBinaryToWriter = funct
|
|
4879
5057
|
|
4880
5058
|
|
4881
5059
|
/**
|
4882
|
-
*
|
5060
|
+
* optional int32 tournament_id = 1;
|
5061
|
+
* @return {number}
|
5062
|
+
*/
|
5063
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.getTournamentId = function() {
|
5064
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5065
|
+
};
|
5066
|
+
|
5067
|
+
|
5068
|
+
/**
|
5069
|
+
* @param {number} value
|
5070
|
+
* @return {!proto.tournament.TournamentActivationRuleRequest} returns this
|
5071
|
+
*/
|
5072
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.setTournamentId = function(value) {
|
5073
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5074
|
+
};
|
5075
|
+
|
5076
|
+
|
5077
|
+
/**
|
5078
|
+
* repeated ActivationRuleItem items = 2;
|
4883
5079
|
* @return {!Array<!proto.tournament.ActivationRuleItem>}
|
4884
5080
|
*/
|
4885
5081
|
proto.tournament.TournamentActivationRuleRequest.prototype.getItemsList = function() {
|
4886
5082
|
return /** @type{!Array<!proto.tournament.ActivationRuleItem>} */ (
|
4887
|
-
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ActivationRuleItem,
|
5083
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ActivationRuleItem, 2));
|
4888
5084
|
};
|
4889
5085
|
|
4890
5086
|
|
@@ -4893,7 +5089,7 @@ proto.tournament.TournamentActivationRuleRequest.prototype.getItemsList = functi
|
|
4893
5089
|
* @return {!proto.tournament.TournamentActivationRuleRequest} returns this
|
4894
5090
|
*/
|
4895
5091
|
proto.tournament.TournamentActivationRuleRequest.prototype.setItemsList = function(value) {
|
4896
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
5092
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
4897
5093
|
};
|
4898
5094
|
|
4899
5095
|
|
@@ -4903,7 +5099,7 @@ proto.tournament.TournamentActivationRuleRequest.prototype.setItemsList = functi
|
|
4903
5099
|
* @return {!proto.tournament.ActivationRuleItem}
|
4904
5100
|
*/
|
4905
5101
|
proto.tournament.TournamentActivationRuleRequest.prototype.addItems = function(opt_value, opt_index) {
|
4906
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
5102
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.tournament.ActivationRuleItem, opt_index);
|
4907
5103
|
};
|
4908
5104
|
|
4909
5105
|
|
@@ -5406,7 +5602,7 @@ proto.tournament.ScoringRule.prototype.hasIsActive = function() {
|
|
5406
5602
|
* @private {!Array<number>}
|
5407
5603
|
* @const
|
5408
5604
|
*/
|
5409
|
-
proto.tournament.TournamentScoringRuleRequest.repeatedFields_ = [
|
5605
|
+
proto.tournament.TournamentScoringRuleRequest.repeatedFields_ = [2];
|
5410
5606
|
|
5411
5607
|
|
5412
5608
|
|
@@ -5439,6 +5635,7 @@ proto.tournament.TournamentScoringRuleRequest.prototype.toObject = function(opt_
|
|
5439
5635
|
*/
|
5440
5636
|
proto.tournament.TournamentScoringRuleRequest.toObject = function(includeInstance, msg) {
|
5441
5637
|
var f, obj = {
|
5638
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5442
5639
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
5443
5640
|
proto.tournament.ScoringRule.toObject, includeInstance)
|
5444
5641
|
};
|
@@ -5478,6 +5675,10 @@ proto.tournament.TournamentScoringRuleRequest.deserializeBinaryFromReader = func
|
|
5478
5675
|
var field = reader.getFieldNumber();
|
5479
5676
|
switch (field) {
|
5480
5677
|
case 1:
|
5678
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5679
|
+
msg.setTournamentId(value);
|
5680
|
+
break;
|
5681
|
+
case 2:
|
5481
5682
|
var value = new proto.tournament.ScoringRule;
|
5482
5683
|
reader.readMessage(value,proto.tournament.ScoringRule.deserializeBinaryFromReader);
|
5483
5684
|
msg.addItems(value);
|
@@ -5511,10 +5712,17 @@ proto.tournament.TournamentScoringRuleRequest.prototype.serializeBinary = functi
|
|
5511
5712
|
*/
|
5512
5713
|
proto.tournament.TournamentScoringRuleRequest.serializeBinaryToWriter = function(message, writer) {
|
5513
5714
|
var f = undefined;
|
5715
|
+
f = message.getTournamentId();
|
5716
|
+
if (f !== 0) {
|
5717
|
+
writer.writeInt32(
|
5718
|
+
1,
|
5719
|
+
f
|
5720
|
+
);
|
5721
|
+
}
|
5514
5722
|
f = message.getItemsList();
|
5515
5723
|
if (f.length > 0) {
|
5516
5724
|
writer.writeRepeatedMessage(
|
5517
|
-
|
5725
|
+
2,
|
5518
5726
|
f,
|
5519
5727
|
proto.tournament.ScoringRule.serializeBinaryToWriter
|
5520
5728
|
);
|
@@ -5523,12 +5731,30 @@ proto.tournament.TournamentScoringRuleRequest.serializeBinaryToWriter = function
|
|
5523
5731
|
|
5524
5732
|
|
5525
5733
|
/**
|
5526
|
-
*
|
5734
|
+
* optional int32 tournament_id = 1;
|
5735
|
+
* @return {number}
|
5736
|
+
*/
|
5737
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.getTournamentId = function() {
|
5738
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5739
|
+
};
|
5740
|
+
|
5741
|
+
|
5742
|
+
/**
|
5743
|
+
* @param {number} value
|
5744
|
+
* @return {!proto.tournament.TournamentScoringRuleRequest} returns this
|
5745
|
+
*/
|
5746
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.setTournamentId = function(value) {
|
5747
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5748
|
+
};
|
5749
|
+
|
5750
|
+
|
5751
|
+
/**
|
5752
|
+
* repeated ScoringRule items = 2;
|
5527
5753
|
* @return {!Array<!proto.tournament.ScoringRule>}
|
5528
5754
|
*/
|
5529
5755
|
proto.tournament.TournamentScoringRuleRequest.prototype.getItemsList = function() {
|
5530
5756
|
return /** @type{!Array<!proto.tournament.ScoringRule>} */ (
|
5531
|
-
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ScoringRule,
|
5757
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ScoringRule, 2));
|
5532
5758
|
};
|
5533
5759
|
|
5534
5760
|
|
@@ -5537,7 +5763,7 @@ proto.tournament.TournamentScoringRuleRequest.prototype.getItemsList = function(
|
|
5537
5763
|
* @return {!proto.tournament.TournamentScoringRuleRequest} returns this
|
5538
5764
|
*/
|
5539
5765
|
proto.tournament.TournamentScoringRuleRequest.prototype.setItemsList = function(value) {
|
5540
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
5766
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
5541
5767
|
};
|
5542
5768
|
|
5543
5769
|
|
@@ -5547,7 +5773,7 @@ proto.tournament.TournamentScoringRuleRequest.prototype.setItemsList = function(
|
|
5547
5773
|
* @return {!proto.tournament.ScoringRule}
|
5548
5774
|
*/
|
5549
5775
|
proto.tournament.TournamentScoringRuleRequest.prototype.addItems = function(opt_value, opt_index) {
|
5550
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
5776
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.tournament.ScoringRule, opt_index);
|
5551
5777
|
};
|
5552
5778
|
|
5553
5779
|
|
@@ -6002,7 +6228,7 @@ proto.tournament.RewardItem.prototype.hasBonusId = function() {
|
|
6002
6228
|
* @private {!Array<number>}
|
6003
6229
|
* @const
|
6004
6230
|
*/
|
6005
|
-
proto.tournament.TournamentRewardsRequest.repeatedFields_ = [
|
6231
|
+
proto.tournament.TournamentRewardsRequest.repeatedFields_ = [2];
|
6006
6232
|
|
6007
6233
|
|
6008
6234
|
|
@@ -6035,6 +6261,7 @@ proto.tournament.TournamentRewardsRequest.prototype.toObject = function(opt_incl
|
|
6035
6261
|
*/
|
6036
6262
|
proto.tournament.TournamentRewardsRequest.toObject = function(includeInstance, msg) {
|
6037
6263
|
var f, obj = {
|
6264
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
6038
6265
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
6039
6266
|
proto.tournament.RewardItem.toObject, includeInstance)
|
6040
6267
|
};
|
@@ -6074,6 +6301,10 @@ proto.tournament.TournamentRewardsRequest.deserializeBinaryFromReader = function
|
|
6074
6301
|
var field = reader.getFieldNumber();
|
6075
6302
|
switch (field) {
|
6076
6303
|
case 1:
|
6304
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6305
|
+
msg.setTournamentId(value);
|
6306
|
+
break;
|
6307
|
+
case 2:
|
6077
6308
|
var value = new proto.tournament.RewardItem;
|
6078
6309
|
reader.readMessage(value,proto.tournament.RewardItem.deserializeBinaryFromReader);
|
6079
6310
|
msg.addItems(value);
|
@@ -6107,10 +6338,17 @@ proto.tournament.TournamentRewardsRequest.prototype.serializeBinary = function()
|
|
6107
6338
|
*/
|
6108
6339
|
proto.tournament.TournamentRewardsRequest.serializeBinaryToWriter = function(message, writer) {
|
6109
6340
|
var f = undefined;
|
6341
|
+
f = message.getTournamentId();
|
6342
|
+
if (f !== 0) {
|
6343
|
+
writer.writeInt32(
|
6344
|
+
1,
|
6345
|
+
f
|
6346
|
+
);
|
6347
|
+
}
|
6110
6348
|
f = message.getItemsList();
|
6111
6349
|
if (f.length > 0) {
|
6112
6350
|
writer.writeRepeatedMessage(
|
6113
|
-
|
6351
|
+
2,
|
6114
6352
|
f,
|
6115
6353
|
proto.tournament.RewardItem.serializeBinaryToWriter
|
6116
6354
|
);
|
@@ -6119,12 +6357,30 @@ proto.tournament.TournamentRewardsRequest.serializeBinaryToWriter = function(mes
|
|
6119
6357
|
|
6120
6358
|
|
6121
6359
|
/**
|
6122
|
-
*
|
6360
|
+
* optional int32 tournament_id = 1;
|
6361
|
+
* @return {number}
|
6362
|
+
*/
|
6363
|
+
proto.tournament.TournamentRewardsRequest.prototype.getTournamentId = function() {
|
6364
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
6365
|
+
};
|
6366
|
+
|
6367
|
+
|
6368
|
+
/**
|
6369
|
+
* @param {number} value
|
6370
|
+
* @return {!proto.tournament.TournamentRewardsRequest} returns this
|
6371
|
+
*/
|
6372
|
+
proto.tournament.TournamentRewardsRequest.prototype.setTournamentId = function(value) {
|
6373
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
6374
|
+
};
|
6375
|
+
|
6376
|
+
|
6377
|
+
/**
|
6378
|
+
* repeated RewardItem items = 2;
|
6123
6379
|
* @return {!Array<!proto.tournament.RewardItem>}
|
6124
6380
|
*/
|
6125
6381
|
proto.tournament.TournamentRewardsRequest.prototype.getItemsList = function() {
|
6126
6382
|
return /** @type{!Array<!proto.tournament.RewardItem>} */ (
|
6127
|
-
jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem,
|
6383
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem, 2));
|
6128
6384
|
};
|
6129
6385
|
|
6130
6386
|
|
@@ -6133,7 +6389,7 @@ proto.tournament.TournamentRewardsRequest.prototype.getItemsList = function() {
|
|
6133
6389
|
* @return {!proto.tournament.TournamentRewardsRequest} returns this
|
6134
6390
|
*/
|
6135
6391
|
proto.tournament.TournamentRewardsRequest.prototype.setItemsList = function(value) {
|
6136
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
6392
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
6137
6393
|
};
|
6138
6394
|
|
6139
6395
|
|
@@ -6143,7 +6399,7 @@ proto.tournament.TournamentRewardsRequest.prototype.setItemsList = function(valu
|
|
6143
6399
|
* @return {!proto.tournament.RewardItem}
|
6144
6400
|
*/
|
6145
6401
|
proto.tournament.TournamentRewardsRequest.prototype.addItems = function(opt_value, opt_index) {
|
6146
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
6402
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.tournament.RewardItem, opt_index);
|
6147
6403
|
};
|
6148
6404
|
|
6149
6405
|
|