protobuf-platform 1.1.15 → 1.1.16
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
@@ -20,6 +20,7 @@ service Tournament {
|
|
20
20
|
//Tournament Statuses
|
21
21
|
rpc readListTournamentStatuses(PaginationRequest) returns (TournamentStatusItemsResponse);
|
22
22
|
rpc getTournamentsForUser(PaginationRequest) returns (UserTournamentItemsResponse);
|
23
|
+
rpc getSingleTournamentForUser(UserTournamentRequest) returns (UserTournamentItem);
|
23
24
|
}
|
24
25
|
//Technical
|
25
26
|
message PingRequest { string ping = 1; }
|
@@ -52,6 +53,7 @@ message TournamentItem {
|
|
52
53
|
repeated ScoringRule scores = 14;
|
53
54
|
repeated RewardItem rewards = 15;
|
54
55
|
repeated ContentItem contents = 16;
|
56
|
+
optional string slug = 17;
|
55
57
|
}
|
56
58
|
message TournamentRequest {
|
57
59
|
oneof request {
|
@@ -170,9 +172,15 @@ message UserTournamentItem {
|
|
170
172
|
repeated ActivationRuleItem rules = 10;
|
171
173
|
repeated RewardItem rewards = 11;
|
172
174
|
optional string content = 12;
|
175
|
+
optional string slug = 13;
|
173
176
|
}
|
174
177
|
message UserTournamentItemsResponse {
|
175
178
|
repeated UserTournamentItem items = 1;
|
176
179
|
optional int32 total_pages = 2;
|
177
180
|
optional int32 total_items = 3;
|
178
181
|
}
|
182
|
+
message UserTournamentRequest {
|
183
|
+
string tournament_slug = 1;
|
184
|
+
optional string currency = 2;
|
185
|
+
optional string locale = 3;
|
186
|
+
}
|
@@ -180,6 +180,17 @@ function deserialize_tournament_TournamentStatusResponse(buffer_arg) {
|
|
180
180
|
return tournament_pb.TournamentStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
181
181
|
}
|
182
182
|
|
183
|
+
function serialize_tournament_UserTournamentItem(arg) {
|
184
|
+
if (!(arg instanceof tournament_pb.UserTournamentItem)) {
|
185
|
+
throw new Error('Expected argument of type tournament.UserTournamentItem');
|
186
|
+
}
|
187
|
+
return Buffer.from(arg.serializeBinary());
|
188
|
+
}
|
189
|
+
|
190
|
+
function deserialize_tournament_UserTournamentItem(buffer_arg) {
|
191
|
+
return tournament_pb.UserTournamentItem.deserializeBinary(new Uint8Array(buffer_arg));
|
192
|
+
}
|
193
|
+
|
183
194
|
function serialize_tournament_UserTournamentItemsResponse(arg) {
|
184
195
|
if (!(arg instanceof tournament_pb.UserTournamentItemsResponse)) {
|
185
196
|
throw new Error('Expected argument of type tournament.UserTournamentItemsResponse');
|
@@ -191,6 +202,17 @@ function deserialize_tournament_UserTournamentItemsResponse(buffer_arg) {
|
|
191
202
|
return tournament_pb.UserTournamentItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
192
203
|
}
|
193
204
|
|
205
|
+
function serialize_tournament_UserTournamentRequest(arg) {
|
206
|
+
if (!(arg instanceof tournament_pb.UserTournamentRequest)) {
|
207
|
+
throw new Error('Expected argument of type tournament.UserTournamentRequest');
|
208
|
+
}
|
209
|
+
return Buffer.from(arg.serializeBinary());
|
210
|
+
}
|
211
|
+
|
212
|
+
function deserialize_tournament_UserTournamentRequest(buffer_arg) {
|
213
|
+
return tournament_pb.UserTournamentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
214
|
+
}
|
215
|
+
|
194
216
|
|
195
217
|
var TournamentService = exports.TournamentService = {
|
196
218
|
checkConnection: {
|
@@ -360,6 +382,17 @@ readListTournamentStatuses: {
|
|
360
382
|
responseSerialize: serialize_tournament_UserTournamentItemsResponse,
|
361
383
|
responseDeserialize: deserialize_tournament_UserTournamentItemsResponse,
|
362
384
|
},
|
385
|
+
getSingleTournamentForUser: {
|
386
|
+
path: '/tournament.Tournament/getSingleTournamentForUser',
|
387
|
+
requestStream: false,
|
388
|
+
responseStream: false,
|
389
|
+
requestType: tournament_pb.UserTournamentRequest,
|
390
|
+
responseType: tournament_pb.UserTournamentItem,
|
391
|
+
requestSerialize: serialize_tournament_UserTournamentRequest,
|
392
|
+
requestDeserialize: deserialize_tournament_UserTournamentRequest,
|
393
|
+
responseSerialize: serialize_tournament_UserTournamentItem,
|
394
|
+
responseDeserialize: deserialize_tournament_UserTournamentItem,
|
395
|
+
},
|
363
396
|
};
|
364
397
|
|
365
398
|
exports.TournamentClient = grpc.makeGenericClientConstructor(TournamentService);
|
@@ -48,6 +48,7 @@ goog.exportSymbol('proto.tournament.TournamentStatusResponse', null, global);
|
|
48
48
|
goog.exportSymbol('proto.tournament.UserSearchRequest', null, global);
|
49
49
|
goog.exportSymbol('proto.tournament.UserTournamentItem', null, global);
|
50
50
|
goog.exportSymbol('proto.tournament.UserTournamentItemsResponse', null, global);
|
51
|
+
goog.exportSymbol('proto.tournament.UserTournamentRequest', null, global);
|
51
52
|
/**
|
52
53
|
* Generated by JsPbCodeGenerator.
|
53
54
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -594,6 +595,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
594
595
|
*/
|
595
596
|
proto.tournament.UserTournamentItemsResponse.displayName = 'proto.tournament.UserTournamentItemsResponse';
|
596
597
|
}
|
598
|
+
/**
|
599
|
+
* Generated by JsPbCodeGenerator.
|
600
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
601
|
+
* server response, or constructed directly in Javascript. The array is used
|
602
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
603
|
+
* If no data is provided, the constructed object will be empty, but still
|
604
|
+
* valid.
|
605
|
+
* @extends {jspb.Message}
|
606
|
+
* @constructor
|
607
|
+
*/
|
608
|
+
proto.tournament.UserTournamentRequest = function(opt_data) {
|
609
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
610
|
+
};
|
611
|
+
goog.inherits(proto.tournament.UserTournamentRequest, jspb.Message);
|
612
|
+
if (goog.DEBUG && !COMPILED) {
|
613
|
+
/**
|
614
|
+
* @public
|
615
|
+
* @override
|
616
|
+
*/
|
617
|
+
proto.tournament.UserTournamentRequest.displayName = 'proto.tournament.UserTournamentRequest';
|
618
|
+
}
|
597
619
|
|
598
620
|
|
599
621
|
|
@@ -1825,7 +1847,8 @@ proto.tournament.TournamentItem.toObject = function(includeInstance, msg) {
|
|
1825
1847
|
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
1826
1848
|
proto.tournament.RewardItem.toObject, includeInstance),
|
1827
1849
|
contentsList: jspb.Message.toObjectList(msg.getContentsList(),
|
1828
|
-
proto.tournament.ContentItem.toObject, includeInstance)
|
1850
|
+
proto.tournament.ContentItem.toObject, includeInstance),
|
1851
|
+
slug: jspb.Message.getFieldWithDefault(msg, 17, "")
|
1829
1852
|
};
|
1830
1853
|
|
1831
1854
|
if (includeInstance) {
|
@@ -1930,6 +1953,10 @@ proto.tournament.TournamentItem.deserializeBinaryFromReader = function(msg, read
|
|
1930
1953
|
reader.readMessage(value,proto.tournament.ContentItem.deserializeBinaryFromReader);
|
1931
1954
|
msg.addContents(value);
|
1932
1955
|
break;
|
1956
|
+
case 17:
|
1957
|
+
var value = /** @type {string} */ (reader.readString());
|
1958
|
+
msg.setSlug(value);
|
1959
|
+
break;
|
1933
1960
|
default:
|
1934
1961
|
reader.skipField();
|
1935
1962
|
break;
|
@@ -2075,6 +2102,13 @@ proto.tournament.TournamentItem.serializeBinaryToWriter = function(message, writ
|
|
2075
2102
|
proto.tournament.ContentItem.serializeBinaryToWriter
|
2076
2103
|
);
|
2077
2104
|
}
|
2105
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 17));
|
2106
|
+
if (f != null) {
|
2107
|
+
writer.writeString(
|
2108
|
+
17,
|
2109
|
+
f
|
2110
|
+
);
|
2111
|
+
}
|
2078
2112
|
};
|
2079
2113
|
|
2080
2114
|
|
@@ -2662,6 +2696,42 @@ proto.tournament.TournamentItem.prototype.clearContentsList = function() {
|
|
2662
2696
|
};
|
2663
2697
|
|
2664
2698
|
|
2699
|
+
/**
|
2700
|
+
* optional string slug = 17;
|
2701
|
+
* @return {string}
|
2702
|
+
*/
|
2703
|
+
proto.tournament.TournamentItem.prototype.getSlug = function() {
|
2704
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
2705
|
+
};
|
2706
|
+
|
2707
|
+
|
2708
|
+
/**
|
2709
|
+
* @param {string} value
|
2710
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2711
|
+
*/
|
2712
|
+
proto.tournament.TournamentItem.prototype.setSlug = function(value) {
|
2713
|
+
return jspb.Message.setField(this, 17, value);
|
2714
|
+
};
|
2715
|
+
|
2716
|
+
|
2717
|
+
/**
|
2718
|
+
* Clears the field making it undefined.
|
2719
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2720
|
+
*/
|
2721
|
+
proto.tournament.TournamentItem.prototype.clearSlug = function() {
|
2722
|
+
return jspb.Message.setField(this, 17, undefined);
|
2723
|
+
};
|
2724
|
+
|
2725
|
+
|
2726
|
+
/**
|
2727
|
+
* Returns whether this field is set.
|
2728
|
+
* @return {boolean}
|
2729
|
+
*/
|
2730
|
+
proto.tournament.TournamentItem.prototype.hasSlug = function() {
|
2731
|
+
return jspb.Message.getField(this, 17) != null;
|
2732
|
+
};
|
2733
|
+
|
2734
|
+
|
2665
2735
|
|
2666
2736
|
/**
|
2667
2737
|
* Oneof group definitions for this message. Each group defines the field
|
@@ -7489,7 +7559,8 @@ proto.tournament.UserTournamentItem.toObject = function(includeInstance, msg) {
|
|
7489
7559
|
proto.tournament.ActivationRuleItem.toObject, includeInstance),
|
7490
7560
|
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
7491
7561
|
proto.tournament.RewardItem.toObject, includeInstance),
|
7492
|
-
content: jspb.Message.getFieldWithDefault(msg, 12, "")
|
7562
|
+
content: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
7563
|
+
slug: jspb.Message.getFieldWithDefault(msg, 13, "")
|
7493
7564
|
};
|
7494
7565
|
|
7495
7566
|
if (includeInstance) {
|
@@ -7576,6 +7647,10 @@ proto.tournament.UserTournamentItem.deserializeBinaryFromReader = function(msg,
|
|
7576
7647
|
var value = /** @type {string} */ (reader.readString());
|
7577
7648
|
msg.setContent(value);
|
7578
7649
|
break;
|
7650
|
+
case 13:
|
7651
|
+
var value = /** @type {string} */ (reader.readString());
|
7652
|
+
msg.setSlug(value);
|
7653
|
+
break;
|
7579
7654
|
default:
|
7580
7655
|
reader.skipField();
|
7581
7656
|
break;
|
@@ -7691,6 +7766,13 @@ proto.tournament.UserTournamentItem.serializeBinaryToWriter = function(message,
|
|
7691
7766
|
f
|
7692
7767
|
);
|
7693
7768
|
}
|
7769
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 13));
|
7770
|
+
if (f != null) {
|
7771
|
+
writer.writeString(
|
7772
|
+
13,
|
7773
|
+
f
|
7774
|
+
);
|
7775
|
+
}
|
7694
7776
|
};
|
7695
7777
|
|
7696
7778
|
|
@@ -8130,6 +8212,42 @@ proto.tournament.UserTournamentItem.prototype.hasContent = function() {
|
|
8130
8212
|
};
|
8131
8213
|
|
8132
8214
|
|
8215
|
+
/**
|
8216
|
+
* optional string slug = 13;
|
8217
|
+
* @return {string}
|
8218
|
+
*/
|
8219
|
+
proto.tournament.UserTournamentItem.prototype.getSlug = function() {
|
8220
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
8221
|
+
};
|
8222
|
+
|
8223
|
+
|
8224
|
+
/**
|
8225
|
+
* @param {string} value
|
8226
|
+
* @return {!proto.tournament.UserTournamentItem} returns this
|
8227
|
+
*/
|
8228
|
+
proto.tournament.UserTournamentItem.prototype.setSlug = function(value) {
|
8229
|
+
return jspb.Message.setField(this, 13, value);
|
8230
|
+
};
|
8231
|
+
|
8232
|
+
|
8233
|
+
/**
|
8234
|
+
* Clears the field making it undefined.
|
8235
|
+
* @return {!proto.tournament.UserTournamentItem} returns this
|
8236
|
+
*/
|
8237
|
+
proto.tournament.UserTournamentItem.prototype.clearSlug = function() {
|
8238
|
+
return jspb.Message.setField(this, 13, undefined);
|
8239
|
+
};
|
8240
|
+
|
8241
|
+
|
8242
|
+
/**
|
8243
|
+
* Returns whether this field is set.
|
8244
|
+
* @return {boolean}
|
8245
|
+
*/
|
8246
|
+
proto.tournament.UserTournamentItem.prototype.hasSlug = function() {
|
8247
|
+
return jspb.Message.getField(this, 13) != null;
|
8248
|
+
};
|
8249
|
+
|
8250
|
+
|
8133
8251
|
|
8134
8252
|
/**
|
8135
8253
|
* List of repeated fields within this message type.
|
@@ -8386,4 +8504,230 @@ proto.tournament.UserTournamentItemsResponse.prototype.hasTotalItems = function(
|
|
8386
8504
|
};
|
8387
8505
|
|
8388
8506
|
|
8507
|
+
|
8508
|
+
|
8509
|
+
|
8510
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
8511
|
+
/**
|
8512
|
+
* Creates an object representation of this proto.
|
8513
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
8514
|
+
* Optional fields that are not set will be set to undefined.
|
8515
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
8516
|
+
* For the list of reserved names please see:
|
8517
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
8518
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
8519
|
+
* JSPB instance for transitional soy proto support:
|
8520
|
+
* http://goto/soy-param-migration
|
8521
|
+
* @return {!Object}
|
8522
|
+
*/
|
8523
|
+
proto.tournament.UserTournamentRequest.prototype.toObject = function(opt_includeInstance) {
|
8524
|
+
return proto.tournament.UserTournamentRequest.toObject(opt_includeInstance, this);
|
8525
|
+
};
|
8526
|
+
|
8527
|
+
|
8528
|
+
/**
|
8529
|
+
* Static version of the {@see toObject} method.
|
8530
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
8531
|
+
* the JSPB instance for transitional soy proto support:
|
8532
|
+
* http://goto/soy-param-migration
|
8533
|
+
* @param {!proto.tournament.UserTournamentRequest} msg The msg instance to transform.
|
8534
|
+
* @return {!Object}
|
8535
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8536
|
+
*/
|
8537
|
+
proto.tournament.UserTournamentRequest.toObject = function(includeInstance, msg) {
|
8538
|
+
var f, obj = {
|
8539
|
+
tournamentSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
8540
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
8541
|
+
locale: jspb.Message.getFieldWithDefault(msg, 3, "")
|
8542
|
+
};
|
8543
|
+
|
8544
|
+
if (includeInstance) {
|
8545
|
+
obj.$jspbMessageInstance = msg;
|
8546
|
+
}
|
8547
|
+
return obj;
|
8548
|
+
};
|
8549
|
+
}
|
8550
|
+
|
8551
|
+
|
8552
|
+
/**
|
8553
|
+
* Deserializes binary data (in protobuf wire format).
|
8554
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
8555
|
+
* @return {!proto.tournament.UserTournamentRequest}
|
8556
|
+
*/
|
8557
|
+
proto.tournament.UserTournamentRequest.deserializeBinary = function(bytes) {
|
8558
|
+
var reader = new jspb.BinaryReader(bytes);
|
8559
|
+
var msg = new proto.tournament.UserTournamentRequest;
|
8560
|
+
return proto.tournament.UserTournamentRequest.deserializeBinaryFromReader(msg, reader);
|
8561
|
+
};
|
8562
|
+
|
8563
|
+
|
8564
|
+
/**
|
8565
|
+
* Deserializes binary data (in protobuf wire format) from the
|
8566
|
+
* given reader into the given message object.
|
8567
|
+
* @param {!proto.tournament.UserTournamentRequest} msg The message object to deserialize into.
|
8568
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
8569
|
+
* @return {!proto.tournament.UserTournamentRequest}
|
8570
|
+
*/
|
8571
|
+
proto.tournament.UserTournamentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
8572
|
+
while (reader.nextField()) {
|
8573
|
+
if (reader.isEndGroup()) {
|
8574
|
+
break;
|
8575
|
+
}
|
8576
|
+
var field = reader.getFieldNumber();
|
8577
|
+
switch (field) {
|
8578
|
+
case 1:
|
8579
|
+
var value = /** @type {string} */ (reader.readString());
|
8580
|
+
msg.setTournamentSlug(value);
|
8581
|
+
break;
|
8582
|
+
case 2:
|
8583
|
+
var value = /** @type {string} */ (reader.readString());
|
8584
|
+
msg.setCurrency(value);
|
8585
|
+
break;
|
8586
|
+
case 3:
|
8587
|
+
var value = /** @type {string} */ (reader.readString());
|
8588
|
+
msg.setLocale(value);
|
8589
|
+
break;
|
8590
|
+
default:
|
8591
|
+
reader.skipField();
|
8592
|
+
break;
|
8593
|
+
}
|
8594
|
+
}
|
8595
|
+
return msg;
|
8596
|
+
};
|
8597
|
+
|
8598
|
+
|
8599
|
+
/**
|
8600
|
+
* Serializes the message to binary data (in protobuf wire format).
|
8601
|
+
* @return {!Uint8Array}
|
8602
|
+
*/
|
8603
|
+
proto.tournament.UserTournamentRequest.prototype.serializeBinary = function() {
|
8604
|
+
var writer = new jspb.BinaryWriter();
|
8605
|
+
proto.tournament.UserTournamentRequest.serializeBinaryToWriter(this, writer);
|
8606
|
+
return writer.getResultBuffer();
|
8607
|
+
};
|
8608
|
+
|
8609
|
+
|
8610
|
+
/**
|
8611
|
+
* Serializes the given message to binary data (in protobuf wire
|
8612
|
+
* format), writing to the given BinaryWriter.
|
8613
|
+
* @param {!proto.tournament.UserTournamentRequest} message
|
8614
|
+
* @param {!jspb.BinaryWriter} writer
|
8615
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8616
|
+
*/
|
8617
|
+
proto.tournament.UserTournamentRequest.serializeBinaryToWriter = function(message, writer) {
|
8618
|
+
var f = undefined;
|
8619
|
+
f = message.getTournamentSlug();
|
8620
|
+
if (f.length > 0) {
|
8621
|
+
writer.writeString(
|
8622
|
+
1,
|
8623
|
+
f
|
8624
|
+
);
|
8625
|
+
}
|
8626
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
8627
|
+
if (f != null) {
|
8628
|
+
writer.writeString(
|
8629
|
+
2,
|
8630
|
+
f
|
8631
|
+
);
|
8632
|
+
}
|
8633
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
8634
|
+
if (f != null) {
|
8635
|
+
writer.writeString(
|
8636
|
+
3,
|
8637
|
+
f
|
8638
|
+
);
|
8639
|
+
}
|
8640
|
+
};
|
8641
|
+
|
8642
|
+
|
8643
|
+
/**
|
8644
|
+
* optional string tournament_slug = 1;
|
8645
|
+
* @return {string}
|
8646
|
+
*/
|
8647
|
+
proto.tournament.UserTournamentRequest.prototype.getTournamentSlug = function() {
|
8648
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
8649
|
+
};
|
8650
|
+
|
8651
|
+
|
8652
|
+
/**
|
8653
|
+
* @param {string} value
|
8654
|
+
* @return {!proto.tournament.UserTournamentRequest} returns this
|
8655
|
+
*/
|
8656
|
+
proto.tournament.UserTournamentRequest.prototype.setTournamentSlug = function(value) {
|
8657
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
8658
|
+
};
|
8659
|
+
|
8660
|
+
|
8661
|
+
/**
|
8662
|
+
* optional string currency = 2;
|
8663
|
+
* @return {string}
|
8664
|
+
*/
|
8665
|
+
proto.tournament.UserTournamentRequest.prototype.getCurrency = function() {
|
8666
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
8667
|
+
};
|
8668
|
+
|
8669
|
+
|
8670
|
+
/**
|
8671
|
+
* @param {string} value
|
8672
|
+
* @return {!proto.tournament.UserTournamentRequest} returns this
|
8673
|
+
*/
|
8674
|
+
proto.tournament.UserTournamentRequest.prototype.setCurrency = function(value) {
|
8675
|
+
return jspb.Message.setField(this, 2, value);
|
8676
|
+
};
|
8677
|
+
|
8678
|
+
|
8679
|
+
/**
|
8680
|
+
* Clears the field making it undefined.
|
8681
|
+
* @return {!proto.tournament.UserTournamentRequest} returns this
|
8682
|
+
*/
|
8683
|
+
proto.tournament.UserTournamentRequest.prototype.clearCurrency = function() {
|
8684
|
+
return jspb.Message.setField(this, 2, undefined);
|
8685
|
+
};
|
8686
|
+
|
8687
|
+
|
8688
|
+
/**
|
8689
|
+
* Returns whether this field is set.
|
8690
|
+
* @return {boolean}
|
8691
|
+
*/
|
8692
|
+
proto.tournament.UserTournamentRequest.prototype.hasCurrency = function() {
|
8693
|
+
return jspb.Message.getField(this, 2) != null;
|
8694
|
+
};
|
8695
|
+
|
8696
|
+
|
8697
|
+
/**
|
8698
|
+
* optional string locale = 3;
|
8699
|
+
* @return {string}
|
8700
|
+
*/
|
8701
|
+
proto.tournament.UserTournamentRequest.prototype.getLocale = function() {
|
8702
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
8703
|
+
};
|
8704
|
+
|
8705
|
+
|
8706
|
+
/**
|
8707
|
+
* @param {string} value
|
8708
|
+
* @return {!proto.tournament.UserTournamentRequest} returns this
|
8709
|
+
*/
|
8710
|
+
proto.tournament.UserTournamentRequest.prototype.setLocale = function(value) {
|
8711
|
+
return jspb.Message.setField(this, 3, value);
|
8712
|
+
};
|
8713
|
+
|
8714
|
+
|
8715
|
+
/**
|
8716
|
+
* Clears the field making it undefined.
|
8717
|
+
* @return {!proto.tournament.UserTournamentRequest} returns this
|
8718
|
+
*/
|
8719
|
+
proto.tournament.UserTournamentRequest.prototype.clearLocale = function() {
|
8720
|
+
return jspb.Message.setField(this, 3, undefined);
|
8721
|
+
};
|
8722
|
+
|
8723
|
+
|
8724
|
+
/**
|
8725
|
+
* Returns whether this field is set.
|
8726
|
+
* @return {boolean}
|
8727
|
+
*/
|
8728
|
+
proto.tournament.UserTournamentRequest.prototype.hasLocale = function() {
|
8729
|
+
return jspb.Message.getField(this, 3) != null;
|
8730
|
+
};
|
8731
|
+
|
8732
|
+
|
8389
8733
|
goog.object.extend(exports, proto.tournament);
|