protobuf-platform 1.1.0 → 1.1.1
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 +6 -3
- package/tournament/tournament_pb.js +108 -18
package/package.json
CHANGED
@@ -99,7 +99,8 @@ message ActivationRuleItem {
|
|
99
99
|
optional int32 coins = 12;
|
100
100
|
}
|
101
101
|
message TournamentActivationRuleRequest {
|
102
|
-
|
102
|
+
int32 tournament_id = 1;
|
103
|
+
repeated ActivationRuleItem items = 2;
|
103
104
|
}
|
104
105
|
message ScoringRule {
|
105
106
|
optional int32 id = 1;
|
@@ -112,7 +113,8 @@ message ScoringRule {
|
|
112
113
|
optional int32 is_active = 8;
|
113
114
|
}
|
114
115
|
message TournamentScoringRuleRequest {
|
115
|
-
|
116
|
+
int32 tournament_id = 1;
|
117
|
+
repeated ScoringRule items = 2;
|
116
118
|
}
|
117
119
|
message RewardItem {
|
118
120
|
optional int32 id = 1;
|
@@ -124,5 +126,6 @@ message RewardItem {
|
|
124
126
|
optional int32 bonus_id = 7;
|
125
127
|
}
|
126
128
|
message TournamentRewardsRequest {
|
127
|
-
|
129
|
+
int32 tournament_id = 1;
|
130
|
+
repeated RewardItem items = 2;
|
128
131
|
}
|
@@ -4762,7 +4762,7 @@ proto.tournament.ActivationRuleItem.prototype.hasCoins = function() {
|
|
4762
4762
|
* @private {!Array<number>}
|
4763
4763
|
* @const
|
4764
4764
|
*/
|
4765
|
-
proto.tournament.TournamentActivationRuleRequest.repeatedFields_ = [
|
4765
|
+
proto.tournament.TournamentActivationRuleRequest.repeatedFields_ = [2];
|
4766
4766
|
|
4767
4767
|
|
4768
4768
|
|
@@ -4795,6 +4795,7 @@ proto.tournament.TournamentActivationRuleRequest.prototype.toObject = function(o
|
|
4795
4795
|
*/
|
4796
4796
|
proto.tournament.TournamentActivationRuleRequest.toObject = function(includeInstance, msg) {
|
4797
4797
|
var f, obj = {
|
4798
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4798
4799
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
4799
4800
|
proto.tournament.ActivationRuleItem.toObject, includeInstance)
|
4800
4801
|
};
|
@@ -4834,6 +4835,10 @@ proto.tournament.TournamentActivationRuleRequest.deserializeBinaryFromReader = f
|
|
4834
4835
|
var field = reader.getFieldNumber();
|
4835
4836
|
switch (field) {
|
4836
4837
|
case 1:
|
4838
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4839
|
+
msg.setTournamentId(value);
|
4840
|
+
break;
|
4841
|
+
case 2:
|
4837
4842
|
var value = new proto.tournament.ActivationRuleItem;
|
4838
4843
|
reader.readMessage(value,proto.tournament.ActivationRuleItem.deserializeBinaryFromReader);
|
4839
4844
|
msg.addItems(value);
|
@@ -4867,10 +4872,17 @@ proto.tournament.TournamentActivationRuleRequest.prototype.serializeBinary = fun
|
|
4867
4872
|
*/
|
4868
4873
|
proto.tournament.TournamentActivationRuleRequest.serializeBinaryToWriter = function(message, writer) {
|
4869
4874
|
var f = undefined;
|
4875
|
+
f = message.getTournamentId();
|
4876
|
+
if (f !== 0) {
|
4877
|
+
writer.writeInt32(
|
4878
|
+
1,
|
4879
|
+
f
|
4880
|
+
);
|
4881
|
+
}
|
4870
4882
|
f = message.getItemsList();
|
4871
4883
|
if (f.length > 0) {
|
4872
4884
|
writer.writeRepeatedMessage(
|
4873
|
-
|
4885
|
+
2,
|
4874
4886
|
f,
|
4875
4887
|
proto.tournament.ActivationRuleItem.serializeBinaryToWriter
|
4876
4888
|
);
|
@@ -4879,12 +4891,30 @@ proto.tournament.TournamentActivationRuleRequest.serializeBinaryToWriter = funct
|
|
4879
4891
|
|
4880
4892
|
|
4881
4893
|
/**
|
4882
|
-
*
|
4894
|
+
* optional int32 tournament_id = 1;
|
4895
|
+
* @return {number}
|
4896
|
+
*/
|
4897
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.getTournamentId = function() {
|
4898
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
4899
|
+
};
|
4900
|
+
|
4901
|
+
|
4902
|
+
/**
|
4903
|
+
* @param {number} value
|
4904
|
+
* @return {!proto.tournament.TournamentActivationRuleRequest} returns this
|
4905
|
+
*/
|
4906
|
+
proto.tournament.TournamentActivationRuleRequest.prototype.setTournamentId = function(value) {
|
4907
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
4908
|
+
};
|
4909
|
+
|
4910
|
+
|
4911
|
+
/**
|
4912
|
+
* repeated ActivationRuleItem items = 2;
|
4883
4913
|
* @return {!Array<!proto.tournament.ActivationRuleItem>}
|
4884
4914
|
*/
|
4885
4915
|
proto.tournament.TournamentActivationRuleRequest.prototype.getItemsList = function() {
|
4886
4916
|
return /** @type{!Array<!proto.tournament.ActivationRuleItem>} */ (
|
4887
|
-
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ActivationRuleItem,
|
4917
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ActivationRuleItem, 2));
|
4888
4918
|
};
|
4889
4919
|
|
4890
4920
|
|
@@ -4893,7 +4923,7 @@ proto.tournament.TournamentActivationRuleRequest.prototype.getItemsList = functi
|
|
4893
4923
|
* @return {!proto.tournament.TournamentActivationRuleRequest} returns this
|
4894
4924
|
*/
|
4895
4925
|
proto.tournament.TournamentActivationRuleRequest.prototype.setItemsList = function(value) {
|
4896
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
4926
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
4897
4927
|
};
|
4898
4928
|
|
4899
4929
|
|
@@ -4903,7 +4933,7 @@ proto.tournament.TournamentActivationRuleRequest.prototype.setItemsList = functi
|
|
4903
4933
|
* @return {!proto.tournament.ActivationRuleItem}
|
4904
4934
|
*/
|
4905
4935
|
proto.tournament.TournamentActivationRuleRequest.prototype.addItems = function(opt_value, opt_index) {
|
4906
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
4936
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.tournament.ActivationRuleItem, opt_index);
|
4907
4937
|
};
|
4908
4938
|
|
4909
4939
|
|
@@ -5406,7 +5436,7 @@ proto.tournament.ScoringRule.prototype.hasIsActive = function() {
|
|
5406
5436
|
* @private {!Array<number>}
|
5407
5437
|
* @const
|
5408
5438
|
*/
|
5409
|
-
proto.tournament.TournamentScoringRuleRequest.repeatedFields_ = [
|
5439
|
+
proto.tournament.TournamentScoringRuleRequest.repeatedFields_ = [2];
|
5410
5440
|
|
5411
5441
|
|
5412
5442
|
|
@@ -5439,6 +5469,7 @@ proto.tournament.TournamentScoringRuleRequest.prototype.toObject = function(opt_
|
|
5439
5469
|
*/
|
5440
5470
|
proto.tournament.TournamentScoringRuleRequest.toObject = function(includeInstance, msg) {
|
5441
5471
|
var f, obj = {
|
5472
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5442
5473
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
5443
5474
|
proto.tournament.ScoringRule.toObject, includeInstance)
|
5444
5475
|
};
|
@@ -5478,6 +5509,10 @@ proto.tournament.TournamentScoringRuleRequest.deserializeBinaryFromReader = func
|
|
5478
5509
|
var field = reader.getFieldNumber();
|
5479
5510
|
switch (field) {
|
5480
5511
|
case 1:
|
5512
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5513
|
+
msg.setTournamentId(value);
|
5514
|
+
break;
|
5515
|
+
case 2:
|
5481
5516
|
var value = new proto.tournament.ScoringRule;
|
5482
5517
|
reader.readMessage(value,proto.tournament.ScoringRule.deserializeBinaryFromReader);
|
5483
5518
|
msg.addItems(value);
|
@@ -5511,10 +5546,17 @@ proto.tournament.TournamentScoringRuleRequest.prototype.serializeBinary = functi
|
|
5511
5546
|
*/
|
5512
5547
|
proto.tournament.TournamentScoringRuleRequest.serializeBinaryToWriter = function(message, writer) {
|
5513
5548
|
var f = undefined;
|
5549
|
+
f = message.getTournamentId();
|
5550
|
+
if (f !== 0) {
|
5551
|
+
writer.writeInt32(
|
5552
|
+
1,
|
5553
|
+
f
|
5554
|
+
);
|
5555
|
+
}
|
5514
5556
|
f = message.getItemsList();
|
5515
5557
|
if (f.length > 0) {
|
5516
5558
|
writer.writeRepeatedMessage(
|
5517
|
-
|
5559
|
+
2,
|
5518
5560
|
f,
|
5519
5561
|
proto.tournament.ScoringRule.serializeBinaryToWriter
|
5520
5562
|
);
|
@@ -5523,12 +5565,30 @@ proto.tournament.TournamentScoringRuleRequest.serializeBinaryToWriter = function
|
|
5523
5565
|
|
5524
5566
|
|
5525
5567
|
/**
|
5526
|
-
*
|
5568
|
+
* optional int32 tournament_id = 1;
|
5569
|
+
* @return {number}
|
5570
|
+
*/
|
5571
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.getTournamentId = function() {
|
5572
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5573
|
+
};
|
5574
|
+
|
5575
|
+
|
5576
|
+
/**
|
5577
|
+
* @param {number} value
|
5578
|
+
* @return {!proto.tournament.TournamentScoringRuleRequest} returns this
|
5579
|
+
*/
|
5580
|
+
proto.tournament.TournamentScoringRuleRequest.prototype.setTournamentId = function(value) {
|
5581
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5582
|
+
};
|
5583
|
+
|
5584
|
+
|
5585
|
+
/**
|
5586
|
+
* repeated ScoringRule items = 2;
|
5527
5587
|
* @return {!Array<!proto.tournament.ScoringRule>}
|
5528
5588
|
*/
|
5529
5589
|
proto.tournament.TournamentScoringRuleRequest.prototype.getItemsList = function() {
|
5530
5590
|
return /** @type{!Array<!proto.tournament.ScoringRule>} */ (
|
5531
|
-
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ScoringRule,
|
5591
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ScoringRule, 2));
|
5532
5592
|
};
|
5533
5593
|
|
5534
5594
|
|
@@ -5537,7 +5597,7 @@ proto.tournament.TournamentScoringRuleRequest.prototype.getItemsList = function(
|
|
5537
5597
|
* @return {!proto.tournament.TournamentScoringRuleRequest} returns this
|
5538
5598
|
*/
|
5539
5599
|
proto.tournament.TournamentScoringRuleRequest.prototype.setItemsList = function(value) {
|
5540
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
5600
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
5541
5601
|
};
|
5542
5602
|
|
5543
5603
|
|
@@ -5547,7 +5607,7 @@ proto.tournament.TournamentScoringRuleRequest.prototype.setItemsList = function(
|
|
5547
5607
|
* @return {!proto.tournament.ScoringRule}
|
5548
5608
|
*/
|
5549
5609
|
proto.tournament.TournamentScoringRuleRequest.prototype.addItems = function(opt_value, opt_index) {
|
5550
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
5610
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.tournament.ScoringRule, opt_index);
|
5551
5611
|
};
|
5552
5612
|
|
5553
5613
|
|
@@ -6002,7 +6062,7 @@ proto.tournament.RewardItem.prototype.hasBonusId = function() {
|
|
6002
6062
|
* @private {!Array<number>}
|
6003
6063
|
* @const
|
6004
6064
|
*/
|
6005
|
-
proto.tournament.TournamentRewardsRequest.repeatedFields_ = [
|
6065
|
+
proto.tournament.TournamentRewardsRequest.repeatedFields_ = [2];
|
6006
6066
|
|
6007
6067
|
|
6008
6068
|
|
@@ -6035,6 +6095,7 @@ proto.tournament.TournamentRewardsRequest.prototype.toObject = function(opt_incl
|
|
6035
6095
|
*/
|
6036
6096
|
proto.tournament.TournamentRewardsRequest.toObject = function(includeInstance, msg) {
|
6037
6097
|
var f, obj = {
|
6098
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
6038
6099
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
6039
6100
|
proto.tournament.RewardItem.toObject, includeInstance)
|
6040
6101
|
};
|
@@ -6074,6 +6135,10 @@ proto.tournament.TournamentRewardsRequest.deserializeBinaryFromReader = function
|
|
6074
6135
|
var field = reader.getFieldNumber();
|
6075
6136
|
switch (field) {
|
6076
6137
|
case 1:
|
6138
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6139
|
+
msg.setTournamentId(value);
|
6140
|
+
break;
|
6141
|
+
case 2:
|
6077
6142
|
var value = new proto.tournament.RewardItem;
|
6078
6143
|
reader.readMessage(value,proto.tournament.RewardItem.deserializeBinaryFromReader);
|
6079
6144
|
msg.addItems(value);
|
@@ -6107,10 +6172,17 @@ proto.tournament.TournamentRewardsRequest.prototype.serializeBinary = function()
|
|
6107
6172
|
*/
|
6108
6173
|
proto.tournament.TournamentRewardsRequest.serializeBinaryToWriter = function(message, writer) {
|
6109
6174
|
var f = undefined;
|
6175
|
+
f = message.getTournamentId();
|
6176
|
+
if (f !== 0) {
|
6177
|
+
writer.writeInt32(
|
6178
|
+
1,
|
6179
|
+
f
|
6180
|
+
);
|
6181
|
+
}
|
6110
6182
|
f = message.getItemsList();
|
6111
6183
|
if (f.length > 0) {
|
6112
6184
|
writer.writeRepeatedMessage(
|
6113
|
-
|
6185
|
+
2,
|
6114
6186
|
f,
|
6115
6187
|
proto.tournament.RewardItem.serializeBinaryToWriter
|
6116
6188
|
);
|
@@ -6119,12 +6191,30 @@ proto.tournament.TournamentRewardsRequest.serializeBinaryToWriter = function(mes
|
|
6119
6191
|
|
6120
6192
|
|
6121
6193
|
/**
|
6122
|
-
*
|
6194
|
+
* optional int32 tournament_id = 1;
|
6195
|
+
* @return {number}
|
6196
|
+
*/
|
6197
|
+
proto.tournament.TournamentRewardsRequest.prototype.getTournamentId = function() {
|
6198
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
6199
|
+
};
|
6200
|
+
|
6201
|
+
|
6202
|
+
/**
|
6203
|
+
* @param {number} value
|
6204
|
+
* @return {!proto.tournament.TournamentRewardsRequest} returns this
|
6205
|
+
*/
|
6206
|
+
proto.tournament.TournamentRewardsRequest.prototype.setTournamentId = function(value) {
|
6207
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
6208
|
+
};
|
6209
|
+
|
6210
|
+
|
6211
|
+
/**
|
6212
|
+
* repeated RewardItem items = 2;
|
6123
6213
|
* @return {!Array<!proto.tournament.RewardItem>}
|
6124
6214
|
*/
|
6125
6215
|
proto.tournament.TournamentRewardsRequest.prototype.getItemsList = function() {
|
6126
6216
|
return /** @type{!Array<!proto.tournament.RewardItem>} */ (
|
6127
|
-
jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem,
|
6217
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem, 2));
|
6128
6218
|
};
|
6129
6219
|
|
6130
6220
|
|
@@ -6133,7 +6223,7 @@ proto.tournament.TournamentRewardsRequest.prototype.getItemsList = function() {
|
|
6133
6223
|
* @return {!proto.tournament.TournamentRewardsRequest} returns this
|
6134
6224
|
*/
|
6135
6225
|
proto.tournament.TournamentRewardsRequest.prototype.setItemsList = function(value) {
|
6136
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
6226
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
6137
6227
|
};
|
6138
6228
|
|
6139
6229
|
|
@@ -6143,7 +6233,7 @@ proto.tournament.TournamentRewardsRequest.prototype.setItemsList = function(valu
|
|
6143
6233
|
* @return {!proto.tournament.RewardItem}
|
6144
6234
|
*/
|
6145
6235
|
proto.tournament.TournamentRewardsRequest.prototype.addItems = function(opt_value, opt_index) {
|
6146
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
6236
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.tournament.RewardItem, opt_index);
|
6147
6237
|
};
|
6148
6238
|
|
6149
6239
|
|