protobuf-platform 1.1.5 → 1.1.7
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
@@ -29,6 +29,7 @@ message UserSearchRequest {
|
|
29
29
|
optional int32 user_id = 1;
|
30
30
|
optional string balance_type = 2;
|
31
31
|
optional string currency = 3;
|
32
|
+
optional string locale = 4;
|
32
33
|
}
|
33
34
|
//Tournament CRUD | Requests
|
34
35
|
message TournamentItem {
|
@@ -45,6 +46,7 @@ message TournamentItem {
|
|
45
46
|
repeated ActivationRuleItem rules = 11;
|
46
47
|
repeated ScoringRule scores = 12;
|
47
48
|
repeated RewardItem rewards = 13;
|
49
|
+
repeated ContentItem contents = 14;
|
48
50
|
}
|
49
51
|
message TournamentRequest {
|
50
52
|
oneof request {
|
@@ -134,6 +136,12 @@ message TournamentRewardsRequest {
|
|
134
136
|
int32 tournament_id = 1;
|
135
137
|
repeated RewardItem items = 2;
|
136
138
|
}
|
139
|
+
message ContentItem {
|
140
|
+
optional int32 id = 1;
|
141
|
+
optional int32 tournament_id = 2;
|
142
|
+
optional string locale = 3;
|
143
|
+
optional string content = 4;
|
144
|
+
}
|
137
145
|
message TournamentContentRequest {
|
138
146
|
int32 tournament_id = 1;
|
139
147
|
string locale = 2;
|
@@ -22,6 +22,7 @@ var global = (function() {
|
|
22
22
|
}.call(null));
|
23
23
|
|
24
24
|
goog.exportSymbol('proto.tournament.ActivationRuleItem', null, global);
|
25
|
+
goog.exportSymbol('proto.tournament.ContentItem', null, global);
|
25
26
|
goog.exportSymbol('proto.tournament.File', null, global);
|
26
27
|
goog.exportSymbol('proto.tournament.GetFileRequest', null, global);
|
27
28
|
goog.exportSymbol('proto.tournament.GetTournamentRequest', null, global);
|
@@ -485,6 +486,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
485
486
|
*/
|
486
487
|
proto.tournament.TournamentRewardsRequest.displayName = 'proto.tournament.TournamentRewardsRequest';
|
487
488
|
}
|
489
|
+
/**
|
490
|
+
* Generated by JsPbCodeGenerator.
|
491
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
492
|
+
* server response, or constructed directly in Javascript. The array is used
|
493
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
494
|
+
* If no data is provided, the constructed object will be empty, but still
|
495
|
+
* valid.
|
496
|
+
* @extends {jspb.Message}
|
497
|
+
* @constructor
|
498
|
+
*/
|
499
|
+
proto.tournament.ContentItem = function(opt_data) {
|
500
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
501
|
+
};
|
502
|
+
goog.inherits(proto.tournament.ContentItem, jspb.Message);
|
503
|
+
if (goog.DEBUG && !COMPILED) {
|
504
|
+
/**
|
505
|
+
* @public
|
506
|
+
* @override
|
507
|
+
*/
|
508
|
+
proto.tournament.ContentItem.displayName = 'proto.tournament.ContentItem';
|
509
|
+
}
|
488
510
|
/**
|
489
511
|
* Generated by JsPbCodeGenerator.
|
490
512
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -1421,7 +1443,8 @@ proto.tournament.UserSearchRequest.toObject = function(includeInstance, msg) {
|
|
1421
1443
|
var f, obj = {
|
1422
1444
|
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1423
1445
|
balanceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1424
|
-
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
1446
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1447
|
+
locale: jspb.Message.getFieldWithDefault(msg, 4, "")
|
1425
1448
|
};
|
1426
1449
|
|
1427
1450
|
if (includeInstance) {
|
@@ -1470,6 +1493,10 @@ proto.tournament.UserSearchRequest.deserializeBinaryFromReader = function(msg, r
|
|
1470
1493
|
var value = /** @type {string} */ (reader.readString());
|
1471
1494
|
msg.setCurrency(value);
|
1472
1495
|
break;
|
1496
|
+
case 4:
|
1497
|
+
var value = /** @type {string} */ (reader.readString());
|
1498
|
+
msg.setLocale(value);
|
1499
|
+
break;
|
1473
1500
|
default:
|
1474
1501
|
reader.skipField();
|
1475
1502
|
break;
|
@@ -1520,6 +1547,13 @@ proto.tournament.UserSearchRequest.serializeBinaryToWriter = function(message, w
|
|
1520
1547
|
f
|
1521
1548
|
);
|
1522
1549
|
}
|
1550
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
1551
|
+
if (f != null) {
|
1552
|
+
writer.writeString(
|
1553
|
+
4,
|
1554
|
+
f
|
1555
|
+
);
|
1556
|
+
}
|
1523
1557
|
};
|
1524
1558
|
|
1525
1559
|
|
@@ -1631,13 +1665,49 @@ proto.tournament.UserSearchRequest.prototype.hasCurrency = function() {
|
|
1631
1665
|
};
|
1632
1666
|
|
1633
1667
|
|
1668
|
+
/**
|
1669
|
+
* optional string locale = 4;
|
1670
|
+
* @return {string}
|
1671
|
+
*/
|
1672
|
+
proto.tournament.UserSearchRequest.prototype.getLocale = function() {
|
1673
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1674
|
+
};
|
1675
|
+
|
1676
|
+
|
1677
|
+
/**
|
1678
|
+
* @param {string} value
|
1679
|
+
* @return {!proto.tournament.UserSearchRequest} returns this
|
1680
|
+
*/
|
1681
|
+
proto.tournament.UserSearchRequest.prototype.setLocale = function(value) {
|
1682
|
+
return jspb.Message.setField(this, 4, value);
|
1683
|
+
};
|
1684
|
+
|
1685
|
+
|
1686
|
+
/**
|
1687
|
+
* Clears the field making it undefined.
|
1688
|
+
* @return {!proto.tournament.UserSearchRequest} returns this
|
1689
|
+
*/
|
1690
|
+
proto.tournament.UserSearchRequest.prototype.clearLocale = function() {
|
1691
|
+
return jspb.Message.setField(this, 4, undefined);
|
1692
|
+
};
|
1693
|
+
|
1694
|
+
|
1695
|
+
/**
|
1696
|
+
* Returns whether this field is set.
|
1697
|
+
* @return {boolean}
|
1698
|
+
*/
|
1699
|
+
proto.tournament.UserSearchRequest.prototype.hasLocale = function() {
|
1700
|
+
return jspb.Message.getField(this, 4) != null;
|
1701
|
+
};
|
1702
|
+
|
1703
|
+
|
1634
1704
|
|
1635
1705
|
/**
|
1636
1706
|
* List of repeated fields within this message type.
|
1637
1707
|
* @private {!Array<number>}
|
1638
1708
|
* @const
|
1639
1709
|
*/
|
1640
|
-
proto.tournament.TournamentItem.repeatedFields_ = [11,12,13];
|
1710
|
+
proto.tournament.TournamentItem.repeatedFields_ = [11,12,13,14];
|
1641
1711
|
|
1642
1712
|
|
1643
1713
|
|
@@ -1685,7 +1755,9 @@ proto.tournament.TournamentItem.toObject = function(includeInstance, msg) {
|
|
1685
1755
|
scoresList: jspb.Message.toObjectList(msg.getScoresList(),
|
1686
1756
|
proto.tournament.ScoringRule.toObject, includeInstance),
|
1687
1757
|
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
1688
|
-
proto.tournament.RewardItem.toObject, includeInstance)
|
1758
|
+
proto.tournament.RewardItem.toObject, includeInstance),
|
1759
|
+
contentsList: jspb.Message.toObjectList(msg.getContentsList(),
|
1760
|
+
proto.tournament.ContentItem.toObject, includeInstance)
|
1689
1761
|
};
|
1690
1762
|
|
1691
1763
|
if (includeInstance) {
|
@@ -1777,6 +1849,11 @@ proto.tournament.TournamentItem.deserializeBinaryFromReader = function(msg, read
|
|
1777
1849
|
reader.readMessage(value,proto.tournament.RewardItem.deserializeBinaryFromReader);
|
1778
1850
|
msg.addRewards(value);
|
1779
1851
|
break;
|
1852
|
+
case 14:
|
1853
|
+
var value = new proto.tournament.ContentItem;
|
1854
|
+
reader.readMessage(value,proto.tournament.ContentItem.deserializeBinaryFromReader);
|
1855
|
+
msg.addContents(value);
|
1856
|
+
break;
|
1780
1857
|
default:
|
1781
1858
|
reader.skipField();
|
1782
1859
|
break;
|
@@ -1900,6 +1977,14 @@ proto.tournament.TournamentItem.serializeBinaryToWriter = function(message, writ
|
|
1900
1977
|
proto.tournament.RewardItem.serializeBinaryToWriter
|
1901
1978
|
);
|
1902
1979
|
}
|
1980
|
+
f = message.getContentsList();
|
1981
|
+
if (f.length > 0) {
|
1982
|
+
writer.writeRepeatedMessage(
|
1983
|
+
14,
|
1984
|
+
f,
|
1985
|
+
proto.tournament.ContentItem.serializeBinaryToWriter
|
1986
|
+
);
|
1987
|
+
}
|
1903
1988
|
};
|
1904
1989
|
|
1905
1990
|
|
@@ -2377,6 +2462,44 @@ proto.tournament.TournamentItem.prototype.clearRewardsList = function() {
|
|
2377
2462
|
};
|
2378
2463
|
|
2379
2464
|
|
2465
|
+
/**
|
2466
|
+
* repeated ContentItem contents = 14;
|
2467
|
+
* @return {!Array<!proto.tournament.ContentItem>}
|
2468
|
+
*/
|
2469
|
+
proto.tournament.TournamentItem.prototype.getContentsList = function() {
|
2470
|
+
return /** @type{!Array<!proto.tournament.ContentItem>} */ (
|
2471
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.ContentItem, 14));
|
2472
|
+
};
|
2473
|
+
|
2474
|
+
|
2475
|
+
/**
|
2476
|
+
* @param {!Array<!proto.tournament.ContentItem>} value
|
2477
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2478
|
+
*/
|
2479
|
+
proto.tournament.TournamentItem.prototype.setContentsList = function(value) {
|
2480
|
+
return jspb.Message.setRepeatedWrapperField(this, 14, value);
|
2481
|
+
};
|
2482
|
+
|
2483
|
+
|
2484
|
+
/**
|
2485
|
+
* @param {!proto.tournament.ContentItem=} opt_value
|
2486
|
+
* @param {number=} opt_index
|
2487
|
+
* @return {!proto.tournament.ContentItem}
|
2488
|
+
*/
|
2489
|
+
proto.tournament.TournamentItem.prototype.addContents = function(opt_value, opt_index) {
|
2490
|
+
return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.tournament.ContentItem, opt_index);
|
2491
|
+
};
|
2492
|
+
|
2493
|
+
|
2494
|
+
/**
|
2495
|
+
* Clears the list making it empty but non-null.
|
2496
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
2497
|
+
*/
|
2498
|
+
proto.tournament.TournamentItem.prototype.clearContentsList = function() {
|
2499
|
+
return this.setContentsList([]);
|
2500
|
+
};
|
2501
|
+
|
2502
|
+
|
2380
2503
|
|
2381
2504
|
/**
|
2382
2505
|
* Oneof group definitions for this message. Each group defines the field
|
@@ -6485,6 +6608,298 @@ proto.tournament.TournamentRewardsRequest.prototype.clearItemsList = function()
|
|
6485
6608
|
|
6486
6609
|
|
6487
6610
|
|
6611
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6612
|
+
/**
|
6613
|
+
* Creates an object representation of this proto.
|
6614
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6615
|
+
* Optional fields that are not set will be set to undefined.
|
6616
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6617
|
+
* For the list of reserved names please see:
|
6618
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6619
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6620
|
+
* JSPB instance for transitional soy proto support:
|
6621
|
+
* http://goto/soy-param-migration
|
6622
|
+
* @return {!Object}
|
6623
|
+
*/
|
6624
|
+
proto.tournament.ContentItem.prototype.toObject = function(opt_includeInstance) {
|
6625
|
+
return proto.tournament.ContentItem.toObject(opt_includeInstance, this);
|
6626
|
+
};
|
6627
|
+
|
6628
|
+
|
6629
|
+
/**
|
6630
|
+
* Static version of the {@see toObject} method.
|
6631
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6632
|
+
* the JSPB instance for transitional soy proto support:
|
6633
|
+
* http://goto/soy-param-migration
|
6634
|
+
* @param {!proto.tournament.ContentItem} msg The msg instance to transform.
|
6635
|
+
* @return {!Object}
|
6636
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6637
|
+
*/
|
6638
|
+
proto.tournament.ContentItem.toObject = function(includeInstance, msg) {
|
6639
|
+
var f, obj = {
|
6640
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
6641
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
6642
|
+
locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
6643
|
+
content: jspb.Message.getFieldWithDefault(msg, 4, "")
|
6644
|
+
};
|
6645
|
+
|
6646
|
+
if (includeInstance) {
|
6647
|
+
obj.$jspbMessageInstance = msg;
|
6648
|
+
}
|
6649
|
+
return obj;
|
6650
|
+
};
|
6651
|
+
}
|
6652
|
+
|
6653
|
+
|
6654
|
+
/**
|
6655
|
+
* Deserializes binary data (in protobuf wire format).
|
6656
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6657
|
+
* @return {!proto.tournament.ContentItem}
|
6658
|
+
*/
|
6659
|
+
proto.tournament.ContentItem.deserializeBinary = function(bytes) {
|
6660
|
+
var reader = new jspb.BinaryReader(bytes);
|
6661
|
+
var msg = new proto.tournament.ContentItem;
|
6662
|
+
return proto.tournament.ContentItem.deserializeBinaryFromReader(msg, reader);
|
6663
|
+
};
|
6664
|
+
|
6665
|
+
|
6666
|
+
/**
|
6667
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6668
|
+
* given reader into the given message object.
|
6669
|
+
* @param {!proto.tournament.ContentItem} msg The message object to deserialize into.
|
6670
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6671
|
+
* @return {!proto.tournament.ContentItem}
|
6672
|
+
*/
|
6673
|
+
proto.tournament.ContentItem.deserializeBinaryFromReader = function(msg, reader) {
|
6674
|
+
while (reader.nextField()) {
|
6675
|
+
if (reader.isEndGroup()) {
|
6676
|
+
break;
|
6677
|
+
}
|
6678
|
+
var field = reader.getFieldNumber();
|
6679
|
+
switch (field) {
|
6680
|
+
case 1:
|
6681
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6682
|
+
msg.setId(value);
|
6683
|
+
break;
|
6684
|
+
case 2:
|
6685
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6686
|
+
msg.setTournamentId(value);
|
6687
|
+
break;
|
6688
|
+
case 3:
|
6689
|
+
var value = /** @type {string} */ (reader.readString());
|
6690
|
+
msg.setLocale(value);
|
6691
|
+
break;
|
6692
|
+
case 4:
|
6693
|
+
var value = /** @type {string} */ (reader.readString());
|
6694
|
+
msg.setContent(value);
|
6695
|
+
break;
|
6696
|
+
default:
|
6697
|
+
reader.skipField();
|
6698
|
+
break;
|
6699
|
+
}
|
6700
|
+
}
|
6701
|
+
return msg;
|
6702
|
+
};
|
6703
|
+
|
6704
|
+
|
6705
|
+
/**
|
6706
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6707
|
+
* @return {!Uint8Array}
|
6708
|
+
*/
|
6709
|
+
proto.tournament.ContentItem.prototype.serializeBinary = function() {
|
6710
|
+
var writer = new jspb.BinaryWriter();
|
6711
|
+
proto.tournament.ContentItem.serializeBinaryToWriter(this, writer);
|
6712
|
+
return writer.getResultBuffer();
|
6713
|
+
};
|
6714
|
+
|
6715
|
+
|
6716
|
+
/**
|
6717
|
+
* Serializes the given message to binary data (in protobuf wire
|
6718
|
+
* format), writing to the given BinaryWriter.
|
6719
|
+
* @param {!proto.tournament.ContentItem} message
|
6720
|
+
* @param {!jspb.BinaryWriter} writer
|
6721
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6722
|
+
*/
|
6723
|
+
proto.tournament.ContentItem.serializeBinaryToWriter = function(message, writer) {
|
6724
|
+
var f = undefined;
|
6725
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
6726
|
+
if (f != null) {
|
6727
|
+
writer.writeInt32(
|
6728
|
+
1,
|
6729
|
+
f
|
6730
|
+
);
|
6731
|
+
}
|
6732
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
6733
|
+
if (f != null) {
|
6734
|
+
writer.writeInt32(
|
6735
|
+
2,
|
6736
|
+
f
|
6737
|
+
);
|
6738
|
+
}
|
6739
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
6740
|
+
if (f != null) {
|
6741
|
+
writer.writeString(
|
6742
|
+
3,
|
6743
|
+
f
|
6744
|
+
);
|
6745
|
+
}
|
6746
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
6747
|
+
if (f != null) {
|
6748
|
+
writer.writeString(
|
6749
|
+
4,
|
6750
|
+
f
|
6751
|
+
);
|
6752
|
+
}
|
6753
|
+
};
|
6754
|
+
|
6755
|
+
|
6756
|
+
/**
|
6757
|
+
* optional int32 id = 1;
|
6758
|
+
* @return {number}
|
6759
|
+
*/
|
6760
|
+
proto.tournament.ContentItem.prototype.getId = function() {
|
6761
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
6762
|
+
};
|
6763
|
+
|
6764
|
+
|
6765
|
+
/**
|
6766
|
+
* @param {number} value
|
6767
|
+
* @return {!proto.tournament.ContentItem} returns this
|
6768
|
+
*/
|
6769
|
+
proto.tournament.ContentItem.prototype.setId = function(value) {
|
6770
|
+
return jspb.Message.setField(this, 1, value);
|
6771
|
+
};
|
6772
|
+
|
6773
|
+
|
6774
|
+
/**
|
6775
|
+
* Clears the field making it undefined.
|
6776
|
+
* @return {!proto.tournament.ContentItem} returns this
|
6777
|
+
*/
|
6778
|
+
proto.tournament.ContentItem.prototype.clearId = function() {
|
6779
|
+
return jspb.Message.setField(this, 1, undefined);
|
6780
|
+
};
|
6781
|
+
|
6782
|
+
|
6783
|
+
/**
|
6784
|
+
* Returns whether this field is set.
|
6785
|
+
* @return {boolean}
|
6786
|
+
*/
|
6787
|
+
proto.tournament.ContentItem.prototype.hasId = function() {
|
6788
|
+
return jspb.Message.getField(this, 1) != null;
|
6789
|
+
};
|
6790
|
+
|
6791
|
+
|
6792
|
+
/**
|
6793
|
+
* optional int32 tournament_id = 2;
|
6794
|
+
* @return {number}
|
6795
|
+
*/
|
6796
|
+
proto.tournament.ContentItem.prototype.getTournamentId = function() {
|
6797
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
6798
|
+
};
|
6799
|
+
|
6800
|
+
|
6801
|
+
/**
|
6802
|
+
* @param {number} value
|
6803
|
+
* @return {!proto.tournament.ContentItem} returns this
|
6804
|
+
*/
|
6805
|
+
proto.tournament.ContentItem.prototype.setTournamentId = function(value) {
|
6806
|
+
return jspb.Message.setField(this, 2, value);
|
6807
|
+
};
|
6808
|
+
|
6809
|
+
|
6810
|
+
/**
|
6811
|
+
* Clears the field making it undefined.
|
6812
|
+
* @return {!proto.tournament.ContentItem} returns this
|
6813
|
+
*/
|
6814
|
+
proto.tournament.ContentItem.prototype.clearTournamentId = function() {
|
6815
|
+
return jspb.Message.setField(this, 2, undefined);
|
6816
|
+
};
|
6817
|
+
|
6818
|
+
|
6819
|
+
/**
|
6820
|
+
* Returns whether this field is set.
|
6821
|
+
* @return {boolean}
|
6822
|
+
*/
|
6823
|
+
proto.tournament.ContentItem.prototype.hasTournamentId = function() {
|
6824
|
+
return jspb.Message.getField(this, 2) != null;
|
6825
|
+
};
|
6826
|
+
|
6827
|
+
|
6828
|
+
/**
|
6829
|
+
* optional string locale = 3;
|
6830
|
+
* @return {string}
|
6831
|
+
*/
|
6832
|
+
proto.tournament.ContentItem.prototype.getLocale = function() {
|
6833
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
6834
|
+
};
|
6835
|
+
|
6836
|
+
|
6837
|
+
/**
|
6838
|
+
* @param {string} value
|
6839
|
+
* @return {!proto.tournament.ContentItem} returns this
|
6840
|
+
*/
|
6841
|
+
proto.tournament.ContentItem.prototype.setLocale = function(value) {
|
6842
|
+
return jspb.Message.setField(this, 3, value);
|
6843
|
+
};
|
6844
|
+
|
6845
|
+
|
6846
|
+
/**
|
6847
|
+
* Clears the field making it undefined.
|
6848
|
+
* @return {!proto.tournament.ContentItem} returns this
|
6849
|
+
*/
|
6850
|
+
proto.tournament.ContentItem.prototype.clearLocale = function() {
|
6851
|
+
return jspb.Message.setField(this, 3, undefined);
|
6852
|
+
};
|
6853
|
+
|
6854
|
+
|
6855
|
+
/**
|
6856
|
+
* Returns whether this field is set.
|
6857
|
+
* @return {boolean}
|
6858
|
+
*/
|
6859
|
+
proto.tournament.ContentItem.prototype.hasLocale = function() {
|
6860
|
+
return jspb.Message.getField(this, 3) != null;
|
6861
|
+
};
|
6862
|
+
|
6863
|
+
|
6864
|
+
/**
|
6865
|
+
* optional string content = 4;
|
6866
|
+
* @return {string}
|
6867
|
+
*/
|
6868
|
+
proto.tournament.ContentItem.prototype.getContent = function() {
|
6869
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
6870
|
+
};
|
6871
|
+
|
6872
|
+
|
6873
|
+
/**
|
6874
|
+
* @param {string} value
|
6875
|
+
* @return {!proto.tournament.ContentItem} returns this
|
6876
|
+
*/
|
6877
|
+
proto.tournament.ContentItem.prototype.setContent = function(value) {
|
6878
|
+
return jspb.Message.setField(this, 4, value);
|
6879
|
+
};
|
6880
|
+
|
6881
|
+
|
6882
|
+
/**
|
6883
|
+
* Clears the field making it undefined.
|
6884
|
+
* @return {!proto.tournament.ContentItem} returns this
|
6885
|
+
*/
|
6886
|
+
proto.tournament.ContentItem.prototype.clearContent = function() {
|
6887
|
+
return jspb.Message.setField(this, 4, undefined);
|
6888
|
+
};
|
6889
|
+
|
6890
|
+
|
6891
|
+
/**
|
6892
|
+
* Returns whether this field is set.
|
6893
|
+
* @return {boolean}
|
6894
|
+
*/
|
6895
|
+
proto.tournament.ContentItem.prototype.hasContent = function() {
|
6896
|
+
return jspb.Message.getField(this, 4) != null;
|
6897
|
+
};
|
6898
|
+
|
6899
|
+
|
6900
|
+
|
6901
|
+
|
6902
|
+
|
6488
6903
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6489
6904
|
/**
|
6490
6905
|
* Creates an object representation of this proto.
|