protobuf-platform 1.1.1 → 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
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 {
|
@@ -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
|