protobuf-platform 1.1.24 → 1.1.26
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 +15 -1
- package/tournament/tournament_pb.js +511 -2
package/package.json
CHANGED
@@ -29,13 +29,24 @@ message PongResponse { string pong = 1; }
|
|
29
29
|
//Media
|
30
30
|
message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
|
31
31
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
32
|
-
message PaginationRequest {
|
32
|
+
message PaginationRequest {
|
33
|
+
int32 limit = 1;
|
34
|
+
int32 offset = 2;
|
35
|
+
optional UserSearchRequest user_search_params = 3;
|
36
|
+
optional BonusSearchRequest bonus_search_params = 4;
|
37
|
+
}
|
33
38
|
message UserSearchRequest {
|
34
39
|
optional int32 user_id = 1;
|
35
40
|
optional string balance_type = 2;
|
36
41
|
optional string currency = 3;
|
37
42
|
optional string locale = 4;
|
38
43
|
}
|
44
|
+
message BonusSearchRequest {
|
45
|
+
optional int32 bonus_id = 1;
|
46
|
+
optional string bonus_type = 2;
|
47
|
+
optional string currency = 3;
|
48
|
+
optional string locale = 4;
|
49
|
+
}
|
39
50
|
//Tournament CRUD | Requests
|
40
51
|
message TournamentItem {
|
41
52
|
optional int32 id = 1;
|
@@ -55,6 +66,9 @@ message TournamentItem {
|
|
55
66
|
repeated RewardItem rewards = 15;
|
56
67
|
repeated ContentItem contents = 16;
|
57
68
|
optional string slug = 17;
|
69
|
+
optional bool can_activated = 18;
|
70
|
+
optional string user_status = 19;
|
71
|
+
optional uint32 finished_in_milliseconds = 20;
|
58
72
|
}
|
59
73
|
message TournamentRequest {
|
60
74
|
oneof request {
|
@@ -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.BonusSearchRequest', null, global);
|
25
26
|
goog.exportSymbol('proto.tournament.ContentItem', null, global);
|
26
27
|
goog.exportSymbol('proto.tournament.File', null, global);
|
27
28
|
goog.exportSymbol('proto.tournament.GetFileRequest', null, global);
|
@@ -175,6 +176,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
175
176
|
*/
|
176
177
|
proto.tournament.UserSearchRequest.displayName = 'proto.tournament.UserSearchRequest';
|
177
178
|
}
|
179
|
+
/**
|
180
|
+
* Generated by JsPbCodeGenerator.
|
181
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
182
|
+
* server response, or constructed directly in Javascript. The array is used
|
183
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
184
|
+
* If no data is provided, the constructed object will be empty, but still
|
185
|
+
* valid.
|
186
|
+
* @extends {jspb.Message}
|
187
|
+
* @constructor
|
188
|
+
*/
|
189
|
+
proto.tournament.BonusSearchRequest = function(opt_data) {
|
190
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
191
|
+
};
|
192
|
+
goog.inherits(proto.tournament.BonusSearchRequest, jspb.Message);
|
193
|
+
if (goog.DEBUG && !COMPILED) {
|
194
|
+
/**
|
195
|
+
* @public
|
196
|
+
* @override
|
197
|
+
*/
|
198
|
+
proto.tournament.BonusSearchRequest.displayName = 'proto.tournament.BonusSearchRequest';
|
199
|
+
}
|
178
200
|
/**
|
179
201
|
* Generated by JsPbCodeGenerator.
|
180
202
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -1320,7 +1342,8 @@ proto.tournament.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
1320
1342
|
var f, obj = {
|
1321
1343
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1322
1344
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1323
|
-
userSearchParams: (f = msg.getUserSearchParams()) && proto.tournament.UserSearchRequest.toObject(includeInstance, f)
|
1345
|
+
userSearchParams: (f = msg.getUserSearchParams()) && proto.tournament.UserSearchRequest.toObject(includeInstance, f),
|
1346
|
+
bonusSearchParams: (f = msg.getBonusSearchParams()) && proto.tournament.BonusSearchRequest.toObject(includeInstance, f)
|
1324
1347
|
};
|
1325
1348
|
|
1326
1349
|
if (includeInstance) {
|
@@ -1370,6 +1393,11 @@ proto.tournament.PaginationRequest.deserializeBinaryFromReader = function(msg, r
|
|
1370
1393
|
reader.readMessage(value,proto.tournament.UserSearchRequest.deserializeBinaryFromReader);
|
1371
1394
|
msg.setUserSearchParams(value);
|
1372
1395
|
break;
|
1396
|
+
case 4:
|
1397
|
+
var value = new proto.tournament.BonusSearchRequest;
|
1398
|
+
reader.readMessage(value,proto.tournament.BonusSearchRequest.deserializeBinaryFromReader);
|
1399
|
+
msg.setBonusSearchParams(value);
|
1400
|
+
break;
|
1373
1401
|
default:
|
1374
1402
|
reader.skipField();
|
1375
1403
|
break;
|
@@ -1421,6 +1449,14 @@ proto.tournament.PaginationRequest.serializeBinaryToWriter = function(message, w
|
|
1421
1449
|
proto.tournament.UserSearchRequest.serializeBinaryToWriter
|
1422
1450
|
);
|
1423
1451
|
}
|
1452
|
+
f = message.getBonusSearchParams();
|
1453
|
+
if (f != null) {
|
1454
|
+
writer.writeMessage(
|
1455
|
+
4,
|
1456
|
+
f,
|
1457
|
+
proto.tournament.BonusSearchRequest.serializeBinaryToWriter
|
1458
|
+
);
|
1459
|
+
}
|
1424
1460
|
};
|
1425
1461
|
|
1426
1462
|
|
@@ -1497,6 +1533,43 @@ proto.tournament.PaginationRequest.prototype.hasUserSearchParams = function() {
|
|
1497
1533
|
};
|
1498
1534
|
|
1499
1535
|
|
1536
|
+
/**
|
1537
|
+
* optional BonusSearchRequest bonus_search_params = 4;
|
1538
|
+
* @return {?proto.tournament.BonusSearchRequest}
|
1539
|
+
*/
|
1540
|
+
proto.tournament.PaginationRequest.prototype.getBonusSearchParams = function() {
|
1541
|
+
return /** @type{?proto.tournament.BonusSearchRequest} */ (
|
1542
|
+
jspb.Message.getWrapperField(this, proto.tournament.BonusSearchRequest, 4));
|
1543
|
+
};
|
1544
|
+
|
1545
|
+
|
1546
|
+
/**
|
1547
|
+
* @param {?proto.tournament.BonusSearchRequest|undefined} value
|
1548
|
+
* @return {!proto.tournament.PaginationRequest} returns this
|
1549
|
+
*/
|
1550
|
+
proto.tournament.PaginationRequest.prototype.setBonusSearchParams = function(value) {
|
1551
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
1552
|
+
};
|
1553
|
+
|
1554
|
+
|
1555
|
+
/**
|
1556
|
+
* Clears the message field making it undefined.
|
1557
|
+
* @return {!proto.tournament.PaginationRequest} returns this
|
1558
|
+
*/
|
1559
|
+
proto.tournament.PaginationRequest.prototype.clearBonusSearchParams = function() {
|
1560
|
+
return this.setBonusSearchParams(undefined);
|
1561
|
+
};
|
1562
|
+
|
1563
|
+
|
1564
|
+
/**
|
1565
|
+
* Returns whether this field is set.
|
1566
|
+
* @return {boolean}
|
1567
|
+
*/
|
1568
|
+
proto.tournament.PaginationRequest.prototype.hasBonusSearchParams = function() {
|
1569
|
+
return jspb.Message.getField(this, 4) != null;
|
1570
|
+
};
|
1571
|
+
|
1572
|
+
|
1500
1573
|
|
1501
1574
|
|
1502
1575
|
|
@@ -1790,6 +1863,298 @@ proto.tournament.UserSearchRequest.prototype.hasLocale = function() {
|
|
1790
1863
|
|
1791
1864
|
|
1792
1865
|
|
1866
|
+
|
1867
|
+
|
1868
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1869
|
+
/**
|
1870
|
+
* Creates an object representation of this proto.
|
1871
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1872
|
+
* Optional fields that are not set will be set to undefined.
|
1873
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1874
|
+
* For the list of reserved names please see:
|
1875
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1876
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1877
|
+
* JSPB instance for transitional soy proto support:
|
1878
|
+
* http://goto/soy-param-migration
|
1879
|
+
* @return {!Object}
|
1880
|
+
*/
|
1881
|
+
proto.tournament.BonusSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
1882
|
+
return proto.tournament.BonusSearchRequest.toObject(opt_includeInstance, this);
|
1883
|
+
};
|
1884
|
+
|
1885
|
+
|
1886
|
+
/**
|
1887
|
+
* Static version of the {@see toObject} method.
|
1888
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1889
|
+
* the JSPB instance for transitional soy proto support:
|
1890
|
+
* http://goto/soy-param-migration
|
1891
|
+
* @param {!proto.tournament.BonusSearchRequest} msg The msg instance to transform.
|
1892
|
+
* @return {!Object}
|
1893
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1894
|
+
*/
|
1895
|
+
proto.tournament.BonusSearchRequest.toObject = function(includeInstance, msg) {
|
1896
|
+
var f, obj = {
|
1897
|
+
bonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1898
|
+
bonusType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1899
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1900
|
+
locale: jspb.Message.getFieldWithDefault(msg, 4, "")
|
1901
|
+
};
|
1902
|
+
|
1903
|
+
if (includeInstance) {
|
1904
|
+
obj.$jspbMessageInstance = msg;
|
1905
|
+
}
|
1906
|
+
return obj;
|
1907
|
+
};
|
1908
|
+
}
|
1909
|
+
|
1910
|
+
|
1911
|
+
/**
|
1912
|
+
* Deserializes binary data (in protobuf wire format).
|
1913
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1914
|
+
* @return {!proto.tournament.BonusSearchRequest}
|
1915
|
+
*/
|
1916
|
+
proto.tournament.BonusSearchRequest.deserializeBinary = function(bytes) {
|
1917
|
+
var reader = new jspb.BinaryReader(bytes);
|
1918
|
+
var msg = new proto.tournament.BonusSearchRequest;
|
1919
|
+
return proto.tournament.BonusSearchRequest.deserializeBinaryFromReader(msg, reader);
|
1920
|
+
};
|
1921
|
+
|
1922
|
+
|
1923
|
+
/**
|
1924
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1925
|
+
* given reader into the given message object.
|
1926
|
+
* @param {!proto.tournament.BonusSearchRequest} msg The message object to deserialize into.
|
1927
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1928
|
+
* @return {!proto.tournament.BonusSearchRequest}
|
1929
|
+
*/
|
1930
|
+
proto.tournament.BonusSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1931
|
+
while (reader.nextField()) {
|
1932
|
+
if (reader.isEndGroup()) {
|
1933
|
+
break;
|
1934
|
+
}
|
1935
|
+
var field = reader.getFieldNumber();
|
1936
|
+
switch (field) {
|
1937
|
+
case 1:
|
1938
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1939
|
+
msg.setBonusId(value);
|
1940
|
+
break;
|
1941
|
+
case 2:
|
1942
|
+
var value = /** @type {string} */ (reader.readString());
|
1943
|
+
msg.setBonusType(value);
|
1944
|
+
break;
|
1945
|
+
case 3:
|
1946
|
+
var value = /** @type {string} */ (reader.readString());
|
1947
|
+
msg.setCurrency(value);
|
1948
|
+
break;
|
1949
|
+
case 4:
|
1950
|
+
var value = /** @type {string} */ (reader.readString());
|
1951
|
+
msg.setLocale(value);
|
1952
|
+
break;
|
1953
|
+
default:
|
1954
|
+
reader.skipField();
|
1955
|
+
break;
|
1956
|
+
}
|
1957
|
+
}
|
1958
|
+
return msg;
|
1959
|
+
};
|
1960
|
+
|
1961
|
+
|
1962
|
+
/**
|
1963
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1964
|
+
* @return {!Uint8Array}
|
1965
|
+
*/
|
1966
|
+
proto.tournament.BonusSearchRequest.prototype.serializeBinary = function() {
|
1967
|
+
var writer = new jspb.BinaryWriter();
|
1968
|
+
proto.tournament.BonusSearchRequest.serializeBinaryToWriter(this, writer);
|
1969
|
+
return writer.getResultBuffer();
|
1970
|
+
};
|
1971
|
+
|
1972
|
+
|
1973
|
+
/**
|
1974
|
+
* Serializes the given message to binary data (in protobuf wire
|
1975
|
+
* format), writing to the given BinaryWriter.
|
1976
|
+
* @param {!proto.tournament.BonusSearchRequest} message
|
1977
|
+
* @param {!jspb.BinaryWriter} writer
|
1978
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1979
|
+
*/
|
1980
|
+
proto.tournament.BonusSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
1981
|
+
var f = undefined;
|
1982
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1983
|
+
if (f != null) {
|
1984
|
+
writer.writeInt32(
|
1985
|
+
1,
|
1986
|
+
f
|
1987
|
+
);
|
1988
|
+
}
|
1989
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1990
|
+
if (f != null) {
|
1991
|
+
writer.writeString(
|
1992
|
+
2,
|
1993
|
+
f
|
1994
|
+
);
|
1995
|
+
}
|
1996
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1997
|
+
if (f != null) {
|
1998
|
+
writer.writeString(
|
1999
|
+
3,
|
2000
|
+
f
|
2001
|
+
);
|
2002
|
+
}
|
2003
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
2004
|
+
if (f != null) {
|
2005
|
+
writer.writeString(
|
2006
|
+
4,
|
2007
|
+
f
|
2008
|
+
);
|
2009
|
+
}
|
2010
|
+
};
|
2011
|
+
|
2012
|
+
|
2013
|
+
/**
|
2014
|
+
* optional int32 bonus_id = 1;
|
2015
|
+
* @return {number}
|
2016
|
+
*/
|
2017
|
+
proto.tournament.BonusSearchRequest.prototype.getBonusId = function() {
|
2018
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2019
|
+
};
|
2020
|
+
|
2021
|
+
|
2022
|
+
/**
|
2023
|
+
* @param {number} value
|
2024
|
+
* @return {!proto.tournament.BonusSearchRequest} returns this
|
2025
|
+
*/
|
2026
|
+
proto.tournament.BonusSearchRequest.prototype.setBonusId = function(value) {
|
2027
|
+
return jspb.Message.setField(this, 1, value);
|
2028
|
+
};
|
2029
|
+
|
2030
|
+
|
2031
|
+
/**
|
2032
|
+
* Clears the field making it undefined.
|
2033
|
+
* @return {!proto.tournament.BonusSearchRequest} returns this
|
2034
|
+
*/
|
2035
|
+
proto.tournament.BonusSearchRequest.prototype.clearBonusId = function() {
|
2036
|
+
return jspb.Message.setField(this, 1, undefined);
|
2037
|
+
};
|
2038
|
+
|
2039
|
+
|
2040
|
+
/**
|
2041
|
+
* Returns whether this field is set.
|
2042
|
+
* @return {boolean}
|
2043
|
+
*/
|
2044
|
+
proto.tournament.BonusSearchRequest.prototype.hasBonusId = function() {
|
2045
|
+
return jspb.Message.getField(this, 1) != null;
|
2046
|
+
};
|
2047
|
+
|
2048
|
+
|
2049
|
+
/**
|
2050
|
+
* optional string bonus_type = 2;
|
2051
|
+
* @return {string}
|
2052
|
+
*/
|
2053
|
+
proto.tournament.BonusSearchRequest.prototype.getBonusType = function() {
|
2054
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2055
|
+
};
|
2056
|
+
|
2057
|
+
|
2058
|
+
/**
|
2059
|
+
* @param {string} value
|
2060
|
+
* @return {!proto.tournament.BonusSearchRequest} returns this
|
2061
|
+
*/
|
2062
|
+
proto.tournament.BonusSearchRequest.prototype.setBonusType = function(value) {
|
2063
|
+
return jspb.Message.setField(this, 2, value);
|
2064
|
+
};
|
2065
|
+
|
2066
|
+
|
2067
|
+
/**
|
2068
|
+
* Clears the field making it undefined.
|
2069
|
+
* @return {!proto.tournament.BonusSearchRequest} returns this
|
2070
|
+
*/
|
2071
|
+
proto.tournament.BonusSearchRequest.prototype.clearBonusType = function() {
|
2072
|
+
return jspb.Message.setField(this, 2, undefined);
|
2073
|
+
};
|
2074
|
+
|
2075
|
+
|
2076
|
+
/**
|
2077
|
+
* Returns whether this field is set.
|
2078
|
+
* @return {boolean}
|
2079
|
+
*/
|
2080
|
+
proto.tournament.BonusSearchRequest.prototype.hasBonusType = function() {
|
2081
|
+
return jspb.Message.getField(this, 2) != null;
|
2082
|
+
};
|
2083
|
+
|
2084
|
+
|
2085
|
+
/**
|
2086
|
+
* optional string currency = 3;
|
2087
|
+
* @return {string}
|
2088
|
+
*/
|
2089
|
+
proto.tournament.BonusSearchRequest.prototype.getCurrency = function() {
|
2090
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
2091
|
+
};
|
2092
|
+
|
2093
|
+
|
2094
|
+
/**
|
2095
|
+
* @param {string} value
|
2096
|
+
* @return {!proto.tournament.BonusSearchRequest} returns this
|
2097
|
+
*/
|
2098
|
+
proto.tournament.BonusSearchRequest.prototype.setCurrency = function(value) {
|
2099
|
+
return jspb.Message.setField(this, 3, value);
|
2100
|
+
};
|
2101
|
+
|
2102
|
+
|
2103
|
+
/**
|
2104
|
+
* Clears the field making it undefined.
|
2105
|
+
* @return {!proto.tournament.BonusSearchRequest} returns this
|
2106
|
+
*/
|
2107
|
+
proto.tournament.BonusSearchRequest.prototype.clearCurrency = function() {
|
2108
|
+
return jspb.Message.setField(this, 3, undefined);
|
2109
|
+
};
|
2110
|
+
|
2111
|
+
|
2112
|
+
/**
|
2113
|
+
* Returns whether this field is set.
|
2114
|
+
* @return {boolean}
|
2115
|
+
*/
|
2116
|
+
proto.tournament.BonusSearchRequest.prototype.hasCurrency = function() {
|
2117
|
+
return jspb.Message.getField(this, 3) != null;
|
2118
|
+
};
|
2119
|
+
|
2120
|
+
|
2121
|
+
/**
|
2122
|
+
* optional string locale = 4;
|
2123
|
+
* @return {string}
|
2124
|
+
*/
|
2125
|
+
proto.tournament.BonusSearchRequest.prototype.getLocale = function() {
|
2126
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
2127
|
+
};
|
2128
|
+
|
2129
|
+
|
2130
|
+
/**
|
2131
|
+
* @param {string} value
|
2132
|
+
* @return {!proto.tournament.BonusSearchRequest} returns this
|
2133
|
+
*/
|
2134
|
+
proto.tournament.BonusSearchRequest.prototype.setLocale = function(value) {
|
2135
|
+
return jspb.Message.setField(this, 4, value);
|
2136
|
+
};
|
2137
|
+
|
2138
|
+
|
2139
|
+
/**
|
2140
|
+
* Clears the field making it undefined.
|
2141
|
+
* @return {!proto.tournament.BonusSearchRequest} returns this
|
2142
|
+
*/
|
2143
|
+
proto.tournament.BonusSearchRequest.prototype.clearLocale = function() {
|
2144
|
+
return jspb.Message.setField(this, 4, undefined);
|
2145
|
+
};
|
2146
|
+
|
2147
|
+
|
2148
|
+
/**
|
2149
|
+
* Returns whether this field is set.
|
2150
|
+
* @return {boolean}
|
2151
|
+
*/
|
2152
|
+
proto.tournament.BonusSearchRequest.prototype.hasLocale = function() {
|
2153
|
+
return jspb.Message.getField(this, 4) != null;
|
2154
|
+
};
|
2155
|
+
|
2156
|
+
|
2157
|
+
|
1793
2158
|
/**
|
1794
2159
|
* List of repeated fields within this message type.
|
1795
2160
|
* @private {!Array<number>}
|
@@ -1848,7 +2213,10 @@ proto.tournament.TournamentItem.toObject = function(includeInstance, msg) {
|
|
1848
2213
|
proto.tournament.RewardItem.toObject, includeInstance),
|
1849
2214
|
contentsList: jspb.Message.toObjectList(msg.getContentsList(),
|
1850
2215
|
proto.tournament.ContentItem.toObject, includeInstance),
|
1851
|
-
slug: jspb.Message.getFieldWithDefault(msg, 17, "")
|
2216
|
+
slug: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
2217
|
+
canActivated: jspb.Message.getBooleanFieldWithDefault(msg, 18, false),
|
2218
|
+
userStatus: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
2219
|
+
finishedInMilliseconds: jspb.Message.getFieldWithDefault(msg, 20, 0)
|
1852
2220
|
};
|
1853
2221
|
|
1854
2222
|
if (includeInstance) {
|
@@ -1957,6 +2325,18 @@ proto.tournament.TournamentItem.deserializeBinaryFromReader = function(msg, read
|
|
1957
2325
|
var value = /** @type {string} */ (reader.readString());
|
1958
2326
|
msg.setSlug(value);
|
1959
2327
|
break;
|
2328
|
+
case 18:
|
2329
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
2330
|
+
msg.setCanActivated(value);
|
2331
|
+
break;
|
2332
|
+
case 19:
|
2333
|
+
var value = /** @type {string} */ (reader.readString());
|
2334
|
+
msg.setUserStatus(value);
|
2335
|
+
break;
|
2336
|
+
case 20:
|
2337
|
+
var value = /** @type {number} */ (reader.readUint32());
|
2338
|
+
msg.setFinishedInMilliseconds(value);
|
2339
|
+
break;
|
1960
2340
|
default:
|
1961
2341
|
reader.skipField();
|
1962
2342
|
break;
|
@@ -2109,6 +2489,27 @@ proto.tournament.TournamentItem.serializeBinaryToWriter = function(message, writ
|
|
2109
2489
|
f
|
2110
2490
|
);
|
2111
2491
|
}
|
2492
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 18));
|
2493
|
+
if (f != null) {
|
2494
|
+
writer.writeBool(
|
2495
|
+
18,
|
2496
|
+
f
|
2497
|
+
);
|
2498
|
+
}
|
2499
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 19));
|
2500
|
+
if (f != null) {
|
2501
|
+
writer.writeString(
|
2502
|
+
19,
|
2503
|
+
f
|
2504
|
+
);
|
2505
|
+
}
|
2506
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 20));
|
2507
|
+
if (f != null) {
|
2508
|
+
writer.writeUint32(
|
2509
|
+
20,
|
2510
|
+
f
|
2511
|
+
);
|
2512
|
+
}
|
2112
2513
|
};
|
2113
2514
|
|
2114
2515
|
|
@@ -2732,6 +3133,114 @@ proto.tournament.TournamentItem.prototype.hasSlug = function() {
|
|
2732
3133
|
};
|
2733
3134
|
|
2734
3135
|
|
3136
|
+
/**
|
3137
|
+
* optional bool can_activated = 18;
|
3138
|
+
* @return {boolean}
|
3139
|
+
*/
|
3140
|
+
proto.tournament.TournamentItem.prototype.getCanActivated = function() {
|
3141
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false));
|
3142
|
+
};
|
3143
|
+
|
3144
|
+
|
3145
|
+
/**
|
3146
|
+
* @param {boolean} value
|
3147
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
3148
|
+
*/
|
3149
|
+
proto.tournament.TournamentItem.prototype.setCanActivated = function(value) {
|
3150
|
+
return jspb.Message.setField(this, 18, value);
|
3151
|
+
};
|
3152
|
+
|
3153
|
+
|
3154
|
+
/**
|
3155
|
+
* Clears the field making it undefined.
|
3156
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
3157
|
+
*/
|
3158
|
+
proto.tournament.TournamentItem.prototype.clearCanActivated = function() {
|
3159
|
+
return jspb.Message.setField(this, 18, undefined);
|
3160
|
+
};
|
3161
|
+
|
3162
|
+
|
3163
|
+
/**
|
3164
|
+
* Returns whether this field is set.
|
3165
|
+
* @return {boolean}
|
3166
|
+
*/
|
3167
|
+
proto.tournament.TournamentItem.prototype.hasCanActivated = function() {
|
3168
|
+
return jspb.Message.getField(this, 18) != null;
|
3169
|
+
};
|
3170
|
+
|
3171
|
+
|
3172
|
+
/**
|
3173
|
+
* optional string user_status = 19;
|
3174
|
+
* @return {string}
|
3175
|
+
*/
|
3176
|
+
proto.tournament.TournamentItem.prototype.getUserStatus = function() {
|
3177
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
|
3178
|
+
};
|
3179
|
+
|
3180
|
+
|
3181
|
+
/**
|
3182
|
+
* @param {string} value
|
3183
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
3184
|
+
*/
|
3185
|
+
proto.tournament.TournamentItem.prototype.setUserStatus = function(value) {
|
3186
|
+
return jspb.Message.setField(this, 19, value);
|
3187
|
+
};
|
3188
|
+
|
3189
|
+
|
3190
|
+
/**
|
3191
|
+
* Clears the field making it undefined.
|
3192
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
3193
|
+
*/
|
3194
|
+
proto.tournament.TournamentItem.prototype.clearUserStatus = function() {
|
3195
|
+
return jspb.Message.setField(this, 19, undefined);
|
3196
|
+
};
|
3197
|
+
|
3198
|
+
|
3199
|
+
/**
|
3200
|
+
* Returns whether this field is set.
|
3201
|
+
* @return {boolean}
|
3202
|
+
*/
|
3203
|
+
proto.tournament.TournamentItem.prototype.hasUserStatus = function() {
|
3204
|
+
return jspb.Message.getField(this, 19) != null;
|
3205
|
+
};
|
3206
|
+
|
3207
|
+
|
3208
|
+
/**
|
3209
|
+
* optional uint32 finished_in_milliseconds = 20;
|
3210
|
+
* @return {number}
|
3211
|
+
*/
|
3212
|
+
proto.tournament.TournamentItem.prototype.getFinishedInMilliseconds = function() {
|
3213
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
|
3214
|
+
};
|
3215
|
+
|
3216
|
+
|
3217
|
+
/**
|
3218
|
+
* @param {number} value
|
3219
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
3220
|
+
*/
|
3221
|
+
proto.tournament.TournamentItem.prototype.setFinishedInMilliseconds = function(value) {
|
3222
|
+
return jspb.Message.setField(this, 20, value);
|
3223
|
+
};
|
3224
|
+
|
3225
|
+
|
3226
|
+
/**
|
3227
|
+
* Clears the field making it undefined.
|
3228
|
+
* @return {!proto.tournament.TournamentItem} returns this
|
3229
|
+
*/
|
3230
|
+
proto.tournament.TournamentItem.prototype.clearFinishedInMilliseconds = function() {
|
3231
|
+
return jspb.Message.setField(this, 20, undefined);
|
3232
|
+
};
|
3233
|
+
|
3234
|
+
|
3235
|
+
/**
|
3236
|
+
* Returns whether this field is set.
|
3237
|
+
* @return {boolean}
|
3238
|
+
*/
|
3239
|
+
proto.tournament.TournamentItem.prototype.hasFinishedInMilliseconds = function() {
|
3240
|
+
return jspb.Message.getField(this, 20) != null;
|
3241
|
+
};
|
3242
|
+
|
3243
|
+
|
2735
3244
|
|
2736
3245
|
/**
|
2737
3246
|
* Oneof group definitions for this message. Each group defines the field
|