protobuf-platform 1.1.2 → 1.1.4
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
@@ -14,6 +14,7 @@ service Tournament {
|
|
14
14
|
rpc setTournamentActivationRule(TournamentActivationRuleRequest) returns (TournamentStatusResponse);
|
15
15
|
rpc setTournamentScoringRule(TournamentScoringRuleRequest) returns (TournamentStatusResponse);
|
16
16
|
rpc setTournamentRewards(TournamentRewardsRequest) returns (TournamentStatusResponse);
|
17
|
+
rpc setTournamentContent(TournamentContentRequest) returns (TournamentStatusResponse);
|
17
18
|
//Tournament Statuses
|
18
19
|
rpc readListTournamentStatuses(PaginationRequest) returns (TournamentStatusItemsResponse);
|
19
20
|
}
|
@@ -57,9 +58,10 @@ message TournamentItemRequest {
|
|
57
58
|
optional string description = 3;
|
58
59
|
optional int32 is_active = 4;
|
59
60
|
optional int32 max_members_count = 5;
|
60
|
-
optional
|
61
|
-
optional string
|
62
|
-
optional
|
61
|
+
optional int32 bots_count = 6;
|
62
|
+
optional string started_at = 7;
|
63
|
+
optional string finished_at = 8;
|
64
|
+
optional int32 status_id = 9;
|
63
65
|
}
|
64
66
|
message GetTournamentRequest {
|
65
67
|
int32 id = 1;
|
@@ -132,3 +134,7 @@ message TournamentRewardsRequest {
|
|
132
134
|
int32 tournament_id = 1;
|
133
135
|
repeated RewardItem items = 2;
|
134
136
|
}
|
137
|
+
message TournamentContentRequest {
|
138
|
+
int32 tournament_id = 1;
|
139
|
+
string content = 2;
|
140
|
+
}
|
@@ -81,6 +81,17 @@ function deserialize_tournament_TournamentActivationRuleRequest(buffer_arg) {
|
|
81
81
|
return tournament_pb.TournamentActivationRuleRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
82
82
|
}
|
83
83
|
|
84
|
+
function serialize_tournament_TournamentContentRequest(arg) {
|
85
|
+
if (!(arg instanceof tournament_pb.TournamentContentRequest)) {
|
86
|
+
throw new Error('Expected argument of type tournament.TournamentContentRequest');
|
87
|
+
}
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
89
|
+
}
|
90
|
+
|
91
|
+
function deserialize_tournament_TournamentContentRequest(buffer_arg) {
|
92
|
+
return tournament_pb.TournamentContentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
93
|
+
}
|
94
|
+
|
84
95
|
function serialize_tournament_TournamentItemsResponse(arg) {
|
85
96
|
if (!(arg instanceof tournament_pb.TournamentItemsResponse)) {
|
86
97
|
throw new Error('Expected argument of type tournament.TournamentItemsResponse');
|
@@ -271,6 +282,17 @@ createSingleTournament: {
|
|
271
282
|
responseSerialize: serialize_tournament_TournamentStatusResponse,
|
272
283
|
responseDeserialize: deserialize_tournament_TournamentStatusResponse,
|
273
284
|
},
|
285
|
+
setTournamentContent: {
|
286
|
+
path: '/tournament.Tournament/setTournamentContent',
|
287
|
+
requestStream: false,
|
288
|
+
responseStream: false,
|
289
|
+
requestType: tournament_pb.TournamentContentRequest,
|
290
|
+
responseType: tournament_pb.TournamentStatusResponse,
|
291
|
+
requestSerialize: serialize_tournament_TournamentContentRequest,
|
292
|
+
requestDeserialize: deserialize_tournament_TournamentContentRequest,
|
293
|
+
responseSerialize: serialize_tournament_TournamentStatusResponse,
|
294
|
+
responseDeserialize: deserialize_tournament_TournamentStatusResponse,
|
295
|
+
},
|
274
296
|
// Tournament Statuses
|
275
297
|
readListTournamentStatuses: {
|
276
298
|
path: '/tournament.Tournament/readListTournamentStatuses',
|
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.tournament.PongResponse', null, global);
|
|
31
31
|
goog.exportSymbol('proto.tournament.RewardItem', null, global);
|
32
32
|
goog.exportSymbol('proto.tournament.ScoringRule', null, global);
|
33
33
|
goog.exportSymbol('proto.tournament.TournamentActivationRuleRequest', null, global);
|
34
|
+
goog.exportSymbol('proto.tournament.TournamentContentRequest', null, global);
|
34
35
|
goog.exportSymbol('proto.tournament.TournamentItem', null, global);
|
35
36
|
goog.exportSymbol('proto.tournament.TournamentItemRequest', null, global);
|
36
37
|
goog.exportSymbol('proto.tournament.TournamentItemsResponse', null, global);
|
@@ -484,6 +485,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
484
485
|
*/
|
485
486
|
proto.tournament.TournamentRewardsRequest.displayName = 'proto.tournament.TournamentRewardsRequest';
|
486
487
|
}
|
488
|
+
/**
|
489
|
+
* Generated by JsPbCodeGenerator.
|
490
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
491
|
+
* server response, or constructed directly in Javascript. The array is used
|
492
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
493
|
+
* If no data is provided, the constructed object will be empty, but still
|
494
|
+
* valid.
|
495
|
+
* @extends {jspb.Message}
|
496
|
+
* @constructor
|
497
|
+
*/
|
498
|
+
proto.tournament.TournamentContentRequest = function(opt_data) {
|
499
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
500
|
+
};
|
501
|
+
goog.inherits(proto.tournament.TournamentContentRequest, jspb.Message);
|
502
|
+
if (goog.DEBUG && !COMPILED) {
|
503
|
+
/**
|
504
|
+
* @public
|
505
|
+
* @override
|
506
|
+
*/
|
507
|
+
proto.tournament.TournamentContentRequest.displayName = 'proto.tournament.TournamentContentRequest';
|
508
|
+
}
|
487
509
|
|
488
510
|
|
489
511
|
|
@@ -2620,9 +2642,10 @@ proto.tournament.TournamentItemRequest.toObject = function(includeInstance, msg)
|
|
2620
2642
|
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
2621
2643
|
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
2622
2644
|
maxMembersCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
2623
|
-
|
2624
|
-
|
2625
|
-
|
2645
|
+
botsCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
2646
|
+
startedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
2647
|
+
finishedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
2648
|
+
statusId: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
2626
2649
|
};
|
2627
2650
|
|
2628
2651
|
if (includeInstance) {
|
@@ -2680,14 +2703,18 @@ proto.tournament.TournamentItemRequest.deserializeBinaryFromReader = function(ms
|
|
2680
2703
|
msg.setMaxMembersCount(value);
|
2681
2704
|
break;
|
2682
2705
|
case 6:
|
2706
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2707
|
+
msg.setBotsCount(value);
|
2708
|
+
break;
|
2709
|
+
case 7:
|
2683
2710
|
var value = /** @type {string} */ (reader.readString());
|
2684
2711
|
msg.setStartedAt(value);
|
2685
2712
|
break;
|
2686
|
-
case
|
2713
|
+
case 8:
|
2687
2714
|
var value = /** @type {string} */ (reader.readString());
|
2688
2715
|
msg.setFinishedAt(value);
|
2689
2716
|
break;
|
2690
|
-
case
|
2717
|
+
case 9:
|
2691
2718
|
var value = /** @type {number} */ (reader.readInt32());
|
2692
2719
|
msg.setStatusId(value);
|
2693
2720
|
break;
|
@@ -2755,9 +2782,9 @@ proto.tournament.TournamentItemRequest.serializeBinaryToWriter = function(messag
|
|
2755
2782
|
f
|
2756
2783
|
);
|
2757
2784
|
}
|
2758
|
-
f = /** @type {
|
2785
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
2759
2786
|
if (f != null) {
|
2760
|
-
writer.
|
2787
|
+
writer.writeInt32(
|
2761
2788
|
6,
|
2762
2789
|
f
|
2763
2790
|
);
|
@@ -2769,13 +2796,20 @@ proto.tournament.TournamentItemRequest.serializeBinaryToWriter = function(messag
|
|
2769
2796
|
f
|
2770
2797
|
);
|
2771
2798
|
}
|
2772
|
-
f = /** @type {
|
2799
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
2773
2800
|
if (f != null) {
|
2774
|
-
writer.
|
2801
|
+
writer.writeString(
|
2775
2802
|
8,
|
2776
2803
|
f
|
2777
2804
|
);
|
2778
2805
|
}
|
2806
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
2807
|
+
if (f != null) {
|
2808
|
+
writer.writeInt32(
|
2809
|
+
9,
|
2810
|
+
f
|
2811
|
+
);
|
2812
|
+
}
|
2779
2813
|
};
|
2780
2814
|
|
2781
2815
|
|
@@ -2960,11 +2994,47 @@ proto.tournament.TournamentItemRequest.prototype.hasMaxMembersCount = function()
|
|
2960
2994
|
|
2961
2995
|
|
2962
2996
|
/**
|
2963
|
-
* optional
|
2997
|
+
* optional int32 bots_count = 6;
|
2998
|
+
* @return {number}
|
2999
|
+
*/
|
3000
|
+
proto.tournament.TournamentItemRequest.prototype.getBotsCount = function() {
|
3001
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
3002
|
+
};
|
3003
|
+
|
3004
|
+
|
3005
|
+
/**
|
3006
|
+
* @param {number} value
|
3007
|
+
* @return {!proto.tournament.TournamentItemRequest} returns this
|
3008
|
+
*/
|
3009
|
+
proto.tournament.TournamentItemRequest.prototype.setBotsCount = function(value) {
|
3010
|
+
return jspb.Message.setField(this, 6, value);
|
3011
|
+
};
|
3012
|
+
|
3013
|
+
|
3014
|
+
/**
|
3015
|
+
* Clears the field making it undefined.
|
3016
|
+
* @return {!proto.tournament.TournamentItemRequest} returns this
|
3017
|
+
*/
|
3018
|
+
proto.tournament.TournamentItemRequest.prototype.clearBotsCount = function() {
|
3019
|
+
return jspb.Message.setField(this, 6, undefined);
|
3020
|
+
};
|
3021
|
+
|
3022
|
+
|
3023
|
+
/**
|
3024
|
+
* Returns whether this field is set.
|
3025
|
+
* @return {boolean}
|
3026
|
+
*/
|
3027
|
+
proto.tournament.TournamentItemRequest.prototype.hasBotsCount = function() {
|
3028
|
+
return jspb.Message.getField(this, 6) != null;
|
3029
|
+
};
|
3030
|
+
|
3031
|
+
|
3032
|
+
/**
|
3033
|
+
* optional string started_at = 7;
|
2964
3034
|
* @return {string}
|
2965
3035
|
*/
|
2966
3036
|
proto.tournament.TournamentItemRequest.prototype.getStartedAt = function() {
|
2967
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3037
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
2968
3038
|
};
|
2969
3039
|
|
2970
3040
|
|
@@ -2973,7 +3043,7 @@ proto.tournament.TournamentItemRequest.prototype.getStartedAt = function() {
|
|
2973
3043
|
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2974
3044
|
*/
|
2975
3045
|
proto.tournament.TournamentItemRequest.prototype.setStartedAt = function(value) {
|
2976
|
-
return jspb.Message.setField(this,
|
3046
|
+
return jspb.Message.setField(this, 7, value);
|
2977
3047
|
};
|
2978
3048
|
|
2979
3049
|
|
@@ -2982,7 +3052,7 @@ proto.tournament.TournamentItemRequest.prototype.setStartedAt = function(value)
|
|
2982
3052
|
* @return {!proto.tournament.TournamentItemRequest} returns this
|
2983
3053
|
*/
|
2984
3054
|
proto.tournament.TournamentItemRequest.prototype.clearStartedAt = function() {
|
2985
|
-
return jspb.Message.setField(this,
|
3055
|
+
return jspb.Message.setField(this, 7, undefined);
|
2986
3056
|
};
|
2987
3057
|
|
2988
3058
|
|
@@ -2991,16 +3061,16 @@ proto.tournament.TournamentItemRequest.prototype.clearStartedAt = function() {
|
|
2991
3061
|
* @return {boolean}
|
2992
3062
|
*/
|
2993
3063
|
proto.tournament.TournamentItemRequest.prototype.hasStartedAt = function() {
|
2994
|
-
return jspb.Message.getField(this,
|
3064
|
+
return jspb.Message.getField(this, 7) != null;
|
2995
3065
|
};
|
2996
3066
|
|
2997
3067
|
|
2998
3068
|
/**
|
2999
|
-
* optional string finished_at =
|
3069
|
+
* optional string finished_at = 8;
|
3000
3070
|
* @return {string}
|
3001
3071
|
*/
|
3002
3072
|
proto.tournament.TournamentItemRequest.prototype.getFinishedAt = function() {
|
3003
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3073
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
3004
3074
|
};
|
3005
3075
|
|
3006
3076
|
|
@@ -3009,7 +3079,7 @@ proto.tournament.TournamentItemRequest.prototype.getFinishedAt = function() {
|
|
3009
3079
|
* @return {!proto.tournament.TournamentItemRequest} returns this
|
3010
3080
|
*/
|
3011
3081
|
proto.tournament.TournamentItemRequest.prototype.setFinishedAt = function(value) {
|
3012
|
-
return jspb.Message.setField(this,
|
3082
|
+
return jspb.Message.setField(this, 8, value);
|
3013
3083
|
};
|
3014
3084
|
|
3015
3085
|
|
@@ -3018,7 +3088,7 @@ proto.tournament.TournamentItemRequest.prototype.setFinishedAt = function(value)
|
|
3018
3088
|
* @return {!proto.tournament.TournamentItemRequest} returns this
|
3019
3089
|
*/
|
3020
3090
|
proto.tournament.TournamentItemRequest.prototype.clearFinishedAt = function() {
|
3021
|
-
return jspb.Message.setField(this,
|
3091
|
+
return jspb.Message.setField(this, 8, undefined);
|
3022
3092
|
};
|
3023
3093
|
|
3024
3094
|
|
@@ -3027,16 +3097,16 @@ proto.tournament.TournamentItemRequest.prototype.clearFinishedAt = function() {
|
|
3027
3097
|
* @return {boolean}
|
3028
3098
|
*/
|
3029
3099
|
proto.tournament.TournamentItemRequest.prototype.hasFinishedAt = function() {
|
3030
|
-
return jspb.Message.getField(this,
|
3100
|
+
return jspb.Message.getField(this, 8) != null;
|
3031
3101
|
};
|
3032
3102
|
|
3033
3103
|
|
3034
3104
|
/**
|
3035
|
-
* optional int32 status_id =
|
3105
|
+
* optional int32 status_id = 9;
|
3036
3106
|
* @return {number}
|
3037
3107
|
*/
|
3038
3108
|
proto.tournament.TournamentItemRequest.prototype.getStatusId = function() {
|
3039
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
3109
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
3040
3110
|
};
|
3041
3111
|
|
3042
3112
|
|
@@ -3045,7 +3115,7 @@ proto.tournament.TournamentItemRequest.prototype.getStatusId = function() {
|
|
3045
3115
|
* @return {!proto.tournament.TournamentItemRequest} returns this
|
3046
3116
|
*/
|
3047
3117
|
proto.tournament.TournamentItemRequest.prototype.setStatusId = function(value) {
|
3048
|
-
return jspb.Message.setField(this,
|
3118
|
+
return jspb.Message.setField(this, 9, value);
|
3049
3119
|
};
|
3050
3120
|
|
3051
3121
|
|
@@ -3054,7 +3124,7 @@ proto.tournament.TournamentItemRequest.prototype.setStatusId = function(value) {
|
|
3054
3124
|
* @return {!proto.tournament.TournamentItemRequest} returns this
|
3055
3125
|
*/
|
3056
3126
|
proto.tournament.TournamentItemRequest.prototype.clearStatusId = function() {
|
3057
|
-
return jspb.Message.setField(this,
|
3127
|
+
return jspb.Message.setField(this, 9, undefined);
|
3058
3128
|
};
|
3059
3129
|
|
3060
3130
|
|
@@ -3063,7 +3133,7 @@ proto.tournament.TournamentItemRequest.prototype.clearStatusId = function() {
|
|
3063
3133
|
* @return {boolean}
|
3064
3134
|
*/
|
3065
3135
|
proto.tournament.TournamentItemRequest.prototype.hasStatusId = function() {
|
3066
|
-
return jspb.Message.getField(this,
|
3136
|
+
return jspb.Message.getField(this, 9) != null;
|
3067
3137
|
};
|
3068
3138
|
|
3069
3139
|
|
@@ -6412,4 +6482,164 @@ proto.tournament.TournamentRewardsRequest.prototype.clearItemsList = function()
|
|
6412
6482
|
};
|
6413
6483
|
|
6414
6484
|
|
6485
|
+
|
6486
|
+
|
6487
|
+
|
6488
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6489
|
+
/**
|
6490
|
+
* Creates an object representation of this proto.
|
6491
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6492
|
+
* Optional fields that are not set will be set to undefined.
|
6493
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6494
|
+
* For the list of reserved names please see:
|
6495
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6496
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6497
|
+
* JSPB instance for transitional soy proto support:
|
6498
|
+
* http://goto/soy-param-migration
|
6499
|
+
* @return {!Object}
|
6500
|
+
*/
|
6501
|
+
proto.tournament.TournamentContentRequest.prototype.toObject = function(opt_includeInstance) {
|
6502
|
+
return proto.tournament.TournamentContentRequest.toObject(opt_includeInstance, this);
|
6503
|
+
};
|
6504
|
+
|
6505
|
+
|
6506
|
+
/**
|
6507
|
+
* Static version of the {@see toObject} method.
|
6508
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6509
|
+
* the JSPB instance for transitional soy proto support:
|
6510
|
+
* http://goto/soy-param-migration
|
6511
|
+
* @param {!proto.tournament.TournamentContentRequest} msg The msg instance to transform.
|
6512
|
+
* @return {!Object}
|
6513
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6514
|
+
*/
|
6515
|
+
proto.tournament.TournamentContentRequest.toObject = function(includeInstance, msg) {
|
6516
|
+
var f, obj = {
|
6517
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
6518
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
6519
|
+
};
|
6520
|
+
|
6521
|
+
if (includeInstance) {
|
6522
|
+
obj.$jspbMessageInstance = msg;
|
6523
|
+
}
|
6524
|
+
return obj;
|
6525
|
+
};
|
6526
|
+
}
|
6527
|
+
|
6528
|
+
|
6529
|
+
/**
|
6530
|
+
* Deserializes binary data (in protobuf wire format).
|
6531
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6532
|
+
* @return {!proto.tournament.TournamentContentRequest}
|
6533
|
+
*/
|
6534
|
+
proto.tournament.TournamentContentRequest.deserializeBinary = function(bytes) {
|
6535
|
+
var reader = new jspb.BinaryReader(bytes);
|
6536
|
+
var msg = new proto.tournament.TournamentContentRequest;
|
6537
|
+
return proto.tournament.TournamentContentRequest.deserializeBinaryFromReader(msg, reader);
|
6538
|
+
};
|
6539
|
+
|
6540
|
+
|
6541
|
+
/**
|
6542
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6543
|
+
* given reader into the given message object.
|
6544
|
+
* @param {!proto.tournament.TournamentContentRequest} msg The message object to deserialize into.
|
6545
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6546
|
+
* @return {!proto.tournament.TournamentContentRequest}
|
6547
|
+
*/
|
6548
|
+
proto.tournament.TournamentContentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
6549
|
+
while (reader.nextField()) {
|
6550
|
+
if (reader.isEndGroup()) {
|
6551
|
+
break;
|
6552
|
+
}
|
6553
|
+
var field = reader.getFieldNumber();
|
6554
|
+
switch (field) {
|
6555
|
+
case 1:
|
6556
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6557
|
+
msg.setTournamentId(value);
|
6558
|
+
break;
|
6559
|
+
case 2:
|
6560
|
+
var value = /** @type {string} */ (reader.readString());
|
6561
|
+
msg.setContent(value);
|
6562
|
+
break;
|
6563
|
+
default:
|
6564
|
+
reader.skipField();
|
6565
|
+
break;
|
6566
|
+
}
|
6567
|
+
}
|
6568
|
+
return msg;
|
6569
|
+
};
|
6570
|
+
|
6571
|
+
|
6572
|
+
/**
|
6573
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6574
|
+
* @return {!Uint8Array}
|
6575
|
+
*/
|
6576
|
+
proto.tournament.TournamentContentRequest.prototype.serializeBinary = function() {
|
6577
|
+
var writer = new jspb.BinaryWriter();
|
6578
|
+
proto.tournament.TournamentContentRequest.serializeBinaryToWriter(this, writer);
|
6579
|
+
return writer.getResultBuffer();
|
6580
|
+
};
|
6581
|
+
|
6582
|
+
|
6583
|
+
/**
|
6584
|
+
* Serializes the given message to binary data (in protobuf wire
|
6585
|
+
* format), writing to the given BinaryWriter.
|
6586
|
+
* @param {!proto.tournament.TournamentContentRequest} message
|
6587
|
+
* @param {!jspb.BinaryWriter} writer
|
6588
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6589
|
+
*/
|
6590
|
+
proto.tournament.TournamentContentRequest.serializeBinaryToWriter = function(message, writer) {
|
6591
|
+
var f = undefined;
|
6592
|
+
f = message.getTournamentId();
|
6593
|
+
if (f !== 0) {
|
6594
|
+
writer.writeInt32(
|
6595
|
+
1,
|
6596
|
+
f
|
6597
|
+
);
|
6598
|
+
}
|
6599
|
+
f = message.getContent();
|
6600
|
+
if (f.length > 0) {
|
6601
|
+
writer.writeString(
|
6602
|
+
2,
|
6603
|
+
f
|
6604
|
+
);
|
6605
|
+
}
|
6606
|
+
};
|
6607
|
+
|
6608
|
+
|
6609
|
+
/**
|
6610
|
+
* optional int32 tournament_id = 1;
|
6611
|
+
* @return {number}
|
6612
|
+
*/
|
6613
|
+
proto.tournament.TournamentContentRequest.prototype.getTournamentId = function() {
|
6614
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
6615
|
+
};
|
6616
|
+
|
6617
|
+
|
6618
|
+
/**
|
6619
|
+
* @param {number} value
|
6620
|
+
* @return {!proto.tournament.TournamentContentRequest} returns this
|
6621
|
+
*/
|
6622
|
+
proto.tournament.TournamentContentRequest.prototype.setTournamentId = function(value) {
|
6623
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
6624
|
+
};
|
6625
|
+
|
6626
|
+
|
6627
|
+
/**
|
6628
|
+
* optional string content = 2;
|
6629
|
+
* @return {string}
|
6630
|
+
*/
|
6631
|
+
proto.tournament.TournamentContentRequest.prototype.getContent = function() {
|
6632
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
6633
|
+
};
|
6634
|
+
|
6635
|
+
|
6636
|
+
/**
|
6637
|
+
* @param {string} value
|
6638
|
+
* @return {!proto.tournament.TournamentContentRequest} returns this
|
6639
|
+
*/
|
6640
|
+
proto.tournament.TournamentContentRequest.prototype.setContent = function(value) {
|
6641
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
6642
|
+
};
|
6643
|
+
|
6644
|
+
|
6415
6645
|
goog.object.extend(exports, proto.tournament);
|