protobuf-platform 1.2.432 → 1.2.435
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/sport/sport.proto +39 -0
- package/sport/sport_grpc_pb.js +34 -0
- package/sport/sport_pb.js +910 -0
- package/tournament/tournament.proto +1 -0
- package/tournament/tournament_pb.js +55 -2
package/package.json
CHANGED
package/sport/sport.proto
CHANGED
|
@@ -8,6 +8,8 @@ service Sport {
|
|
|
8
8
|
rpc launchBetby(LaunchBetbyRequest) returns (LaunchBetbyResponse);
|
|
9
9
|
// Refresh Betby session token without full widget launch.
|
|
10
10
|
rpc refreshBetbyToken(RefreshBetbyTokenRequest) returns (RefreshBetbyTokenResponse);
|
|
11
|
+
// Render standalone Betby promo widget HTML snippet.
|
|
12
|
+
rpc renderBetbyPromoWidget(RenderBetbyPromoWidgetRequest) returns (RenderBetbyPromoWidgetResponse);
|
|
11
13
|
rpc runSelfValidationBetby(selfValidationBetbyRequest) returns (selfValidationBetbyResponse);
|
|
12
14
|
rpc checkSelfValidationBetby(selfValidationBetbyRequest) returns (selfValidationBetbyResponse);
|
|
13
15
|
// Vendor callback.
|
|
@@ -64,6 +66,43 @@ message LaunchBetbyResponse {
|
|
|
64
66
|
optional string mode = 2;
|
|
65
67
|
}
|
|
66
68
|
|
|
69
|
+
// Render request for standalone Betby promo widget.
|
|
70
|
+
message RenderBetbyPromoWidgetRequest {
|
|
71
|
+
// Optional: internal user identifier, empty for guest.
|
|
72
|
+
optional int32 user_id = 1;
|
|
73
|
+
optional string user_public_id = 2;
|
|
74
|
+
optional string session_id = 3;
|
|
75
|
+
|
|
76
|
+
// Player currency, e.g. "EUR".
|
|
77
|
+
optional string currency = 4;
|
|
78
|
+
|
|
79
|
+
// Player language, e.g. "en-US".
|
|
80
|
+
optional string language = 5;
|
|
81
|
+
|
|
82
|
+
// Client IP address for Betby (X-Client-Ip).
|
|
83
|
+
optional string client_ip = 6;
|
|
84
|
+
|
|
85
|
+
string widget_name = 7;
|
|
86
|
+
string placeholder = 8;
|
|
87
|
+
optional int32 with_sports_list = 9;
|
|
88
|
+
|
|
89
|
+
// URL to return player after sportsbook session end.
|
|
90
|
+
optional string return_url = 10;
|
|
91
|
+
|
|
92
|
+
optional int32 sticky_top = 11;
|
|
93
|
+
optional int32 bet_slip_offset_top = 12;
|
|
94
|
+
optional int32 bet_slip_offset_bottom = 13;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Render response with standalone Betby promo widget HTML.
|
|
98
|
+
message RenderBetbyPromoWidgetResponse {
|
|
99
|
+
// Rendered HTML snippet to inject on frontend.
|
|
100
|
+
string html = 1;
|
|
101
|
+
|
|
102
|
+
// Render mode: "guest" or "player".
|
|
103
|
+
optional string mode = 2;
|
|
104
|
+
}
|
|
105
|
+
|
|
67
106
|
// Narrow refresh: re-init Betby session server-side; returns new token only.
|
|
68
107
|
message RefreshBetbyTokenRequest {
|
|
69
108
|
optional int32 user_id = 1;
|
package/sport/sport_grpc_pb.js
CHANGED
|
@@ -114,6 +114,28 @@ function deserialize_sport_RefreshBetbyTokenResponse(buffer_arg) {
|
|
|
114
114
|
return sport_pb.RefreshBetbyTokenResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
function serialize_sport_RenderBetbyPromoWidgetRequest(arg) {
|
|
118
|
+
if (!(arg instanceof sport_pb.RenderBetbyPromoWidgetRequest)) {
|
|
119
|
+
throw new Error('Expected argument of type sport.RenderBetbyPromoWidgetRequest');
|
|
120
|
+
}
|
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function deserialize_sport_RenderBetbyPromoWidgetRequest(buffer_arg) {
|
|
125
|
+
return sport_pb.RenderBetbyPromoWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function serialize_sport_RenderBetbyPromoWidgetResponse(arg) {
|
|
129
|
+
if (!(arg instanceof sport_pb.RenderBetbyPromoWidgetResponse)) {
|
|
130
|
+
throw new Error('Expected argument of type sport.RenderBetbyPromoWidgetResponse');
|
|
131
|
+
}
|
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function deserialize_sport_RenderBetbyPromoWidgetResponse(buffer_arg) {
|
|
136
|
+
return sport_pb.RenderBetbyPromoWidgetResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
|
+
}
|
|
138
|
+
|
|
117
139
|
function serialize_sport_SportCategoriesIds(arg) {
|
|
118
140
|
if (!(arg instanceof sport_pb.SportCategoriesIds)) {
|
|
119
141
|
throw new Error('Expected argument of type sport.SportCategoriesIds');
|
|
@@ -239,6 +261,18 @@ refreshBetbyToken: {
|
|
|
239
261
|
responseSerialize: serialize_sport_RefreshBetbyTokenResponse,
|
|
240
262
|
responseDeserialize: deserialize_sport_RefreshBetbyTokenResponse,
|
|
241
263
|
},
|
|
264
|
+
// Render standalone Betby promo widget HTML snippet.
|
|
265
|
+
renderBetbyPromoWidget: {
|
|
266
|
+
path: '/sport.Sport/renderBetbyPromoWidget',
|
|
267
|
+
requestStream: false,
|
|
268
|
+
responseStream: false,
|
|
269
|
+
requestType: sport_pb.RenderBetbyPromoWidgetRequest,
|
|
270
|
+
responseType: sport_pb.RenderBetbyPromoWidgetResponse,
|
|
271
|
+
requestSerialize: serialize_sport_RenderBetbyPromoWidgetRequest,
|
|
272
|
+
requestDeserialize: deserialize_sport_RenderBetbyPromoWidgetRequest,
|
|
273
|
+
responseSerialize: serialize_sport_RenderBetbyPromoWidgetResponse,
|
|
274
|
+
responseDeserialize: deserialize_sport_RenderBetbyPromoWidgetResponse,
|
|
275
|
+
},
|
|
242
276
|
runSelfValidationBetby: {
|
|
243
277
|
path: '/sport.Sport/runSelfValidationBetby',
|
|
244
278
|
requestStream: false,
|
package/sport/sport_pb.js
CHANGED
|
@@ -33,6 +33,8 @@ goog.exportSymbol('proto.sport.PingRequest', null, global);
|
|
|
33
33
|
goog.exportSymbol('proto.sport.PongResponse', null, global);
|
|
34
34
|
goog.exportSymbol('proto.sport.RefreshBetbyTokenRequest', null, global);
|
|
35
35
|
goog.exportSymbol('proto.sport.RefreshBetbyTokenResponse', null, global);
|
|
36
|
+
goog.exportSymbol('proto.sport.RenderBetbyPromoWidgetRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.sport.RenderBetbyPromoWidgetResponse', null, global);
|
|
36
38
|
goog.exportSymbol('proto.sport.SportCategoriesIds', null, global);
|
|
37
39
|
goog.exportSymbol('proto.sport.SportCategoriesResponse', null, global);
|
|
38
40
|
goog.exportSymbol('proto.sport.SportCategoryItem', null, global);
|
|
@@ -148,6 +150,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
148
150
|
*/
|
|
149
151
|
proto.sport.LaunchBetbyResponse.displayName = 'proto.sport.LaunchBetbyResponse';
|
|
150
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Generated by JsPbCodeGenerator.
|
|
155
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
156
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
157
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
158
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
159
|
+
* valid.
|
|
160
|
+
* @extends {jspb.Message}
|
|
161
|
+
* @constructor
|
|
162
|
+
*/
|
|
163
|
+
proto.sport.RenderBetbyPromoWidgetRequest = function(opt_data) {
|
|
164
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
165
|
+
};
|
|
166
|
+
goog.inherits(proto.sport.RenderBetbyPromoWidgetRequest, jspb.Message);
|
|
167
|
+
if (goog.DEBUG && !COMPILED) {
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
* @override
|
|
171
|
+
*/
|
|
172
|
+
proto.sport.RenderBetbyPromoWidgetRequest.displayName = 'proto.sport.RenderBetbyPromoWidgetRequest';
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Generated by JsPbCodeGenerator.
|
|
176
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
177
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
178
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
179
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
180
|
+
* valid.
|
|
181
|
+
* @extends {jspb.Message}
|
|
182
|
+
* @constructor
|
|
183
|
+
*/
|
|
184
|
+
proto.sport.RenderBetbyPromoWidgetResponse = function(opt_data) {
|
|
185
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
186
|
+
};
|
|
187
|
+
goog.inherits(proto.sport.RenderBetbyPromoWidgetResponse, jspb.Message);
|
|
188
|
+
if (goog.DEBUG && !COMPILED) {
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
* @override
|
|
192
|
+
*/
|
|
193
|
+
proto.sport.RenderBetbyPromoWidgetResponse.displayName = 'proto.sport.RenderBetbyPromoWidgetResponse';
|
|
194
|
+
}
|
|
151
195
|
/**
|
|
152
196
|
* Generated by JsPbCodeGenerator.
|
|
153
197
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1782,6 +1826,872 @@ proto.sport.LaunchBetbyResponse.prototype.hasMode = function() {
|
|
|
1782
1826
|
|
|
1783
1827
|
|
|
1784
1828
|
|
|
1829
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1830
|
+
/**
|
|
1831
|
+
* Creates an object representation of this proto.
|
|
1832
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1833
|
+
* Optional fields that are not set will be set to undefined.
|
|
1834
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1835
|
+
* For the list of reserved names please see:
|
|
1836
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1837
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1838
|
+
* JSPB instance for transitional soy proto support:
|
|
1839
|
+
* http://goto/soy-param-migration
|
|
1840
|
+
* @return {!Object}
|
|
1841
|
+
*/
|
|
1842
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1843
|
+
return proto.sport.RenderBetbyPromoWidgetRequest.toObject(opt_includeInstance, this);
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Static version of the {@see toObject} method.
|
|
1849
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1850
|
+
* the JSPB instance for transitional soy proto support:
|
|
1851
|
+
* http://goto/soy-param-migration
|
|
1852
|
+
* @param {!proto.sport.RenderBetbyPromoWidgetRequest} msg The msg instance to transform.
|
|
1853
|
+
* @return {!Object}
|
|
1854
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1855
|
+
*/
|
|
1856
|
+
proto.sport.RenderBetbyPromoWidgetRequest.toObject = function(includeInstance, msg) {
|
|
1857
|
+
var f, obj = {
|
|
1858
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1859
|
+
userPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1860
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1861
|
+
currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1862
|
+
language: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1863
|
+
clientIp: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1864
|
+
widgetName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1865
|
+
placeholder: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1866
|
+
withSportsList: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
1867
|
+
returnUrl: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
1868
|
+
stickyTop: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
1869
|
+
betSlipOffsetTop: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
1870
|
+
betSlipOffsetBottom: jspb.Message.getFieldWithDefault(msg, 13, 0)
|
|
1871
|
+
};
|
|
1872
|
+
|
|
1873
|
+
if (includeInstance) {
|
|
1874
|
+
obj.$jspbMessageInstance = msg;
|
|
1875
|
+
}
|
|
1876
|
+
return obj;
|
|
1877
|
+
};
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1883
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1884
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest}
|
|
1885
|
+
*/
|
|
1886
|
+
proto.sport.RenderBetbyPromoWidgetRequest.deserializeBinary = function(bytes) {
|
|
1887
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1888
|
+
var msg = new proto.sport.RenderBetbyPromoWidgetRequest;
|
|
1889
|
+
return proto.sport.RenderBetbyPromoWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
1890
|
+
};
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1895
|
+
* given reader into the given message object.
|
|
1896
|
+
* @param {!proto.sport.RenderBetbyPromoWidgetRequest} msg The message object to deserialize into.
|
|
1897
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1898
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest}
|
|
1899
|
+
*/
|
|
1900
|
+
proto.sport.RenderBetbyPromoWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1901
|
+
while (reader.nextField()) {
|
|
1902
|
+
if (reader.isEndGroup()) {
|
|
1903
|
+
break;
|
|
1904
|
+
}
|
|
1905
|
+
var field = reader.getFieldNumber();
|
|
1906
|
+
switch (field) {
|
|
1907
|
+
case 1:
|
|
1908
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1909
|
+
msg.setUserId(value);
|
|
1910
|
+
break;
|
|
1911
|
+
case 2:
|
|
1912
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1913
|
+
msg.setUserPublicId(value);
|
|
1914
|
+
break;
|
|
1915
|
+
case 3:
|
|
1916
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1917
|
+
msg.setSessionId(value);
|
|
1918
|
+
break;
|
|
1919
|
+
case 4:
|
|
1920
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1921
|
+
msg.setCurrency(value);
|
|
1922
|
+
break;
|
|
1923
|
+
case 5:
|
|
1924
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1925
|
+
msg.setLanguage(value);
|
|
1926
|
+
break;
|
|
1927
|
+
case 6:
|
|
1928
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1929
|
+
msg.setClientIp(value);
|
|
1930
|
+
break;
|
|
1931
|
+
case 7:
|
|
1932
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1933
|
+
msg.setWidgetName(value);
|
|
1934
|
+
break;
|
|
1935
|
+
case 8:
|
|
1936
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1937
|
+
msg.setPlaceholder(value);
|
|
1938
|
+
break;
|
|
1939
|
+
case 9:
|
|
1940
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1941
|
+
msg.setWithSportsList(value);
|
|
1942
|
+
break;
|
|
1943
|
+
case 10:
|
|
1944
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1945
|
+
msg.setReturnUrl(value);
|
|
1946
|
+
break;
|
|
1947
|
+
case 11:
|
|
1948
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1949
|
+
msg.setStickyTop(value);
|
|
1950
|
+
break;
|
|
1951
|
+
case 12:
|
|
1952
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1953
|
+
msg.setBetSlipOffsetTop(value);
|
|
1954
|
+
break;
|
|
1955
|
+
case 13:
|
|
1956
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1957
|
+
msg.setBetSlipOffsetBottom(value);
|
|
1958
|
+
break;
|
|
1959
|
+
default:
|
|
1960
|
+
reader.skipField();
|
|
1961
|
+
break;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
return msg;
|
|
1965
|
+
};
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1970
|
+
* @return {!Uint8Array}
|
|
1971
|
+
*/
|
|
1972
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.serializeBinary = function() {
|
|
1973
|
+
var writer = new jspb.BinaryWriter();
|
|
1974
|
+
proto.sport.RenderBetbyPromoWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
1975
|
+
return writer.getResultBuffer();
|
|
1976
|
+
};
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1981
|
+
* format), writing to the given BinaryWriter.
|
|
1982
|
+
* @param {!proto.sport.RenderBetbyPromoWidgetRequest} message
|
|
1983
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1984
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1985
|
+
*/
|
|
1986
|
+
proto.sport.RenderBetbyPromoWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1987
|
+
var f = undefined;
|
|
1988
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
1989
|
+
if (f != null) {
|
|
1990
|
+
writer.writeInt32(
|
|
1991
|
+
1,
|
|
1992
|
+
f
|
|
1993
|
+
);
|
|
1994
|
+
}
|
|
1995
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
1996
|
+
if (f != null) {
|
|
1997
|
+
writer.writeString(
|
|
1998
|
+
2,
|
|
1999
|
+
f
|
|
2000
|
+
);
|
|
2001
|
+
}
|
|
2002
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
2003
|
+
if (f != null) {
|
|
2004
|
+
writer.writeString(
|
|
2005
|
+
3,
|
|
2006
|
+
f
|
|
2007
|
+
);
|
|
2008
|
+
}
|
|
2009
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
2010
|
+
if (f != null) {
|
|
2011
|
+
writer.writeString(
|
|
2012
|
+
4,
|
|
2013
|
+
f
|
|
2014
|
+
);
|
|
2015
|
+
}
|
|
2016
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
2017
|
+
if (f != null) {
|
|
2018
|
+
writer.writeString(
|
|
2019
|
+
5,
|
|
2020
|
+
f
|
|
2021
|
+
);
|
|
2022
|
+
}
|
|
2023
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
2024
|
+
if (f != null) {
|
|
2025
|
+
writer.writeString(
|
|
2026
|
+
6,
|
|
2027
|
+
f
|
|
2028
|
+
);
|
|
2029
|
+
}
|
|
2030
|
+
f = message.getWidgetName();
|
|
2031
|
+
if (f.length > 0) {
|
|
2032
|
+
writer.writeString(
|
|
2033
|
+
7,
|
|
2034
|
+
f
|
|
2035
|
+
);
|
|
2036
|
+
}
|
|
2037
|
+
f = message.getPlaceholder();
|
|
2038
|
+
if (f.length > 0) {
|
|
2039
|
+
writer.writeString(
|
|
2040
|
+
8,
|
|
2041
|
+
f
|
|
2042
|
+
);
|
|
2043
|
+
}
|
|
2044
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
|
2045
|
+
if (f != null) {
|
|
2046
|
+
writer.writeInt32(
|
|
2047
|
+
9,
|
|
2048
|
+
f
|
|
2049
|
+
);
|
|
2050
|
+
}
|
|
2051
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
2052
|
+
if (f != null) {
|
|
2053
|
+
writer.writeString(
|
|
2054
|
+
10,
|
|
2055
|
+
f
|
|
2056
|
+
);
|
|
2057
|
+
}
|
|
2058
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 11));
|
|
2059
|
+
if (f != null) {
|
|
2060
|
+
writer.writeInt32(
|
|
2061
|
+
11,
|
|
2062
|
+
f
|
|
2063
|
+
);
|
|
2064
|
+
}
|
|
2065
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 12));
|
|
2066
|
+
if (f != null) {
|
|
2067
|
+
writer.writeInt32(
|
|
2068
|
+
12,
|
|
2069
|
+
f
|
|
2070
|
+
);
|
|
2071
|
+
}
|
|
2072
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 13));
|
|
2073
|
+
if (f != null) {
|
|
2074
|
+
writer.writeInt32(
|
|
2075
|
+
13,
|
|
2076
|
+
f
|
|
2077
|
+
);
|
|
2078
|
+
}
|
|
2079
|
+
};
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
/**
|
|
2083
|
+
* optional int32 user_id = 1;
|
|
2084
|
+
* @return {number}
|
|
2085
|
+
*/
|
|
2086
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getUserId = function() {
|
|
2087
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2088
|
+
};
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
/**
|
|
2092
|
+
* @param {number} value
|
|
2093
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2094
|
+
*/
|
|
2095
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setUserId = function(value) {
|
|
2096
|
+
return jspb.Message.setField(this, 1, value);
|
|
2097
|
+
};
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* Clears the field making it undefined.
|
|
2102
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2103
|
+
*/
|
|
2104
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearUserId = function() {
|
|
2105
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
2106
|
+
};
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* Returns whether this field is set.
|
|
2111
|
+
* @return {boolean}
|
|
2112
|
+
*/
|
|
2113
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasUserId = function() {
|
|
2114
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2115
|
+
};
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* optional string user_public_id = 2;
|
|
2120
|
+
* @return {string}
|
|
2121
|
+
*/
|
|
2122
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getUserPublicId = function() {
|
|
2123
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
/**
|
|
2128
|
+
* @param {string} value
|
|
2129
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2130
|
+
*/
|
|
2131
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setUserPublicId = function(value) {
|
|
2132
|
+
return jspb.Message.setField(this, 2, value);
|
|
2133
|
+
};
|
|
2134
|
+
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* Clears the field making it undefined.
|
|
2138
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2139
|
+
*/
|
|
2140
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearUserPublicId = function() {
|
|
2141
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* Returns whether this field is set.
|
|
2147
|
+
* @return {boolean}
|
|
2148
|
+
*/
|
|
2149
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasUserPublicId = function() {
|
|
2150
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* optional string session_id = 3;
|
|
2156
|
+
* @return {string}
|
|
2157
|
+
*/
|
|
2158
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getSessionId = function() {
|
|
2159
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* @param {string} value
|
|
2165
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2166
|
+
*/
|
|
2167
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setSessionId = function(value) {
|
|
2168
|
+
return jspb.Message.setField(this, 3, value);
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* Clears the field making it undefined.
|
|
2174
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2175
|
+
*/
|
|
2176
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearSessionId = function() {
|
|
2177
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
2178
|
+
};
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
/**
|
|
2182
|
+
* Returns whether this field is set.
|
|
2183
|
+
* @return {boolean}
|
|
2184
|
+
*/
|
|
2185
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasSessionId = function() {
|
|
2186
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* optional string currency = 4;
|
|
2192
|
+
* @return {string}
|
|
2193
|
+
*/
|
|
2194
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getCurrency = function() {
|
|
2195
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2196
|
+
};
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* @param {string} value
|
|
2201
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2202
|
+
*/
|
|
2203
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setCurrency = function(value) {
|
|
2204
|
+
return jspb.Message.setField(this, 4, value);
|
|
2205
|
+
};
|
|
2206
|
+
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* Clears the field making it undefined.
|
|
2210
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2211
|
+
*/
|
|
2212
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearCurrency = function() {
|
|
2213
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
2214
|
+
};
|
|
2215
|
+
|
|
2216
|
+
|
|
2217
|
+
/**
|
|
2218
|
+
* Returns whether this field is set.
|
|
2219
|
+
* @return {boolean}
|
|
2220
|
+
*/
|
|
2221
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasCurrency = function() {
|
|
2222
|
+
return jspb.Message.getField(this, 4) != null;
|
|
2223
|
+
};
|
|
2224
|
+
|
|
2225
|
+
|
|
2226
|
+
/**
|
|
2227
|
+
* optional string language = 5;
|
|
2228
|
+
* @return {string}
|
|
2229
|
+
*/
|
|
2230
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getLanguage = function() {
|
|
2231
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
|
|
2235
|
+
/**
|
|
2236
|
+
* @param {string} value
|
|
2237
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2238
|
+
*/
|
|
2239
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setLanguage = function(value) {
|
|
2240
|
+
return jspb.Message.setField(this, 5, value);
|
|
2241
|
+
};
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
2245
|
+
* Clears the field making it undefined.
|
|
2246
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2247
|
+
*/
|
|
2248
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearLanguage = function() {
|
|
2249
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
2250
|
+
};
|
|
2251
|
+
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* Returns whether this field is set.
|
|
2255
|
+
* @return {boolean}
|
|
2256
|
+
*/
|
|
2257
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasLanguage = function() {
|
|
2258
|
+
return jspb.Message.getField(this, 5) != null;
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* optional string client_ip = 6;
|
|
2264
|
+
* @return {string}
|
|
2265
|
+
*/
|
|
2266
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getClientIp = function() {
|
|
2267
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* @param {string} value
|
|
2273
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2274
|
+
*/
|
|
2275
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setClientIp = function(value) {
|
|
2276
|
+
return jspb.Message.setField(this, 6, value);
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* Clears the field making it undefined.
|
|
2282
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2283
|
+
*/
|
|
2284
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearClientIp = function() {
|
|
2285
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
2286
|
+
};
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* Returns whether this field is set.
|
|
2291
|
+
* @return {boolean}
|
|
2292
|
+
*/
|
|
2293
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasClientIp = function() {
|
|
2294
|
+
return jspb.Message.getField(this, 6) != null;
|
|
2295
|
+
};
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
/**
|
|
2299
|
+
* optional string widget_name = 7;
|
|
2300
|
+
* @return {string}
|
|
2301
|
+
*/
|
|
2302
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getWidgetName = function() {
|
|
2303
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* @param {string} value
|
|
2309
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2310
|
+
*/
|
|
2311
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setWidgetName = function(value) {
|
|
2312
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* optional string placeholder = 8;
|
|
2318
|
+
* @return {string}
|
|
2319
|
+
*/
|
|
2320
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getPlaceholder = function() {
|
|
2321
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* @param {string} value
|
|
2327
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2328
|
+
*/
|
|
2329
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setPlaceholder = function(value) {
|
|
2330
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
2331
|
+
};
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* optional int32 with_sports_list = 9;
|
|
2336
|
+
* @return {number}
|
|
2337
|
+
*/
|
|
2338
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getWithSportsList = function() {
|
|
2339
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
2340
|
+
};
|
|
2341
|
+
|
|
2342
|
+
|
|
2343
|
+
/**
|
|
2344
|
+
* @param {number} value
|
|
2345
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2346
|
+
*/
|
|
2347
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setWithSportsList = function(value) {
|
|
2348
|
+
return jspb.Message.setField(this, 9, value);
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* Clears the field making it undefined.
|
|
2354
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2355
|
+
*/
|
|
2356
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearWithSportsList = function() {
|
|
2357
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2360
|
+
|
|
2361
|
+
/**
|
|
2362
|
+
* Returns whether this field is set.
|
|
2363
|
+
* @return {boolean}
|
|
2364
|
+
*/
|
|
2365
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasWithSportsList = function() {
|
|
2366
|
+
return jspb.Message.getField(this, 9) != null;
|
|
2367
|
+
};
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
/**
|
|
2371
|
+
* optional string return_url = 10;
|
|
2372
|
+
* @return {string}
|
|
2373
|
+
*/
|
|
2374
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getReturnUrl = function() {
|
|
2375
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
2376
|
+
};
|
|
2377
|
+
|
|
2378
|
+
|
|
2379
|
+
/**
|
|
2380
|
+
* @param {string} value
|
|
2381
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2382
|
+
*/
|
|
2383
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setReturnUrl = function(value) {
|
|
2384
|
+
return jspb.Message.setField(this, 10, value);
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* Clears the field making it undefined.
|
|
2390
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2391
|
+
*/
|
|
2392
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearReturnUrl = function() {
|
|
2393
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
2394
|
+
};
|
|
2395
|
+
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* Returns whether this field is set.
|
|
2399
|
+
* @return {boolean}
|
|
2400
|
+
*/
|
|
2401
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasReturnUrl = function() {
|
|
2402
|
+
return jspb.Message.getField(this, 10) != null;
|
|
2403
|
+
};
|
|
2404
|
+
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* optional int32 sticky_top = 11;
|
|
2408
|
+
* @return {number}
|
|
2409
|
+
*/
|
|
2410
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getStickyTop = function() {
|
|
2411
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
2412
|
+
};
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* @param {number} value
|
|
2417
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2418
|
+
*/
|
|
2419
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setStickyTop = function(value) {
|
|
2420
|
+
return jspb.Message.setField(this, 11, value);
|
|
2421
|
+
};
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* Clears the field making it undefined.
|
|
2426
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2427
|
+
*/
|
|
2428
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearStickyTop = function() {
|
|
2429
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
2430
|
+
};
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
* Returns whether this field is set.
|
|
2435
|
+
* @return {boolean}
|
|
2436
|
+
*/
|
|
2437
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasStickyTop = function() {
|
|
2438
|
+
return jspb.Message.getField(this, 11) != null;
|
|
2439
|
+
};
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* optional int32 bet_slip_offset_top = 12;
|
|
2444
|
+
* @return {number}
|
|
2445
|
+
*/
|
|
2446
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getBetSlipOffsetTop = function() {
|
|
2447
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
2448
|
+
};
|
|
2449
|
+
|
|
2450
|
+
|
|
2451
|
+
/**
|
|
2452
|
+
* @param {number} value
|
|
2453
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2454
|
+
*/
|
|
2455
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setBetSlipOffsetTop = function(value) {
|
|
2456
|
+
return jspb.Message.setField(this, 12, value);
|
|
2457
|
+
};
|
|
2458
|
+
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* Clears the field making it undefined.
|
|
2462
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2463
|
+
*/
|
|
2464
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearBetSlipOffsetTop = function() {
|
|
2465
|
+
return jspb.Message.setField(this, 12, undefined);
|
|
2466
|
+
};
|
|
2467
|
+
|
|
2468
|
+
|
|
2469
|
+
/**
|
|
2470
|
+
* Returns whether this field is set.
|
|
2471
|
+
* @return {boolean}
|
|
2472
|
+
*/
|
|
2473
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasBetSlipOffsetTop = function() {
|
|
2474
|
+
return jspb.Message.getField(this, 12) != null;
|
|
2475
|
+
};
|
|
2476
|
+
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* optional int32 bet_slip_offset_bottom = 13;
|
|
2480
|
+
* @return {number}
|
|
2481
|
+
*/
|
|
2482
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.getBetSlipOffsetBottom = function() {
|
|
2483
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
2484
|
+
};
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* @param {number} value
|
|
2489
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2490
|
+
*/
|
|
2491
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.setBetSlipOffsetBottom = function(value) {
|
|
2492
|
+
return jspb.Message.setField(this, 13, value);
|
|
2493
|
+
};
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
/**
|
|
2497
|
+
* Clears the field making it undefined.
|
|
2498
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetRequest} returns this
|
|
2499
|
+
*/
|
|
2500
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.clearBetSlipOffsetBottom = function() {
|
|
2501
|
+
return jspb.Message.setField(this, 13, undefined);
|
|
2502
|
+
};
|
|
2503
|
+
|
|
2504
|
+
|
|
2505
|
+
/**
|
|
2506
|
+
* Returns whether this field is set.
|
|
2507
|
+
* @return {boolean}
|
|
2508
|
+
*/
|
|
2509
|
+
proto.sport.RenderBetbyPromoWidgetRequest.prototype.hasBetSlipOffsetBottom = function() {
|
|
2510
|
+
return jspb.Message.getField(this, 13) != null;
|
|
2511
|
+
};
|
|
2512
|
+
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2518
|
+
/**
|
|
2519
|
+
* Creates an object representation of this proto.
|
|
2520
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2521
|
+
* Optional fields that are not set will be set to undefined.
|
|
2522
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2523
|
+
* For the list of reserved names please see:
|
|
2524
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2525
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2526
|
+
* JSPB instance for transitional soy proto support:
|
|
2527
|
+
* http://goto/soy-param-migration
|
|
2528
|
+
* @return {!Object}
|
|
2529
|
+
*/
|
|
2530
|
+
proto.sport.RenderBetbyPromoWidgetResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2531
|
+
return proto.sport.RenderBetbyPromoWidgetResponse.toObject(opt_includeInstance, this);
|
|
2532
|
+
};
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
/**
|
|
2536
|
+
* Static version of the {@see toObject} method.
|
|
2537
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2538
|
+
* the JSPB instance for transitional soy proto support:
|
|
2539
|
+
* http://goto/soy-param-migration
|
|
2540
|
+
* @param {!proto.sport.RenderBetbyPromoWidgetResponse} msg The msg instance to transform.
|
|
2541
|
+
* @return {!Object}
|
|
2542
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2543
|
+
*/
|
|
2544
|
+
proto.sport.RenderBetbyPromoWidgetResponse.toObject = function(includeInstance, msg) {
|
|
2545
|
+
var f, obj = {
|
|
2546
|
+
html: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2547
|
+
mode: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2548
|
+
};
|
|
2549
|
+
|
|
2550
|
+
if (includeInstance) {
|
|
2551
|
+
obj.$jspbMessageInstance = msg;
|
|
2552
|
+
}
|
|
2553
|
+
return obj;
|
|
2554
|
+
};
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2560
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2561
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetResponse}
|
|
2562
|
+
*/
|
|
2563
|
+
proto.sport.RenderBetbyPromoWidgetResponse.deserializeBinary = function(bytes) {
|
|
2564
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2565
|
+
var msg = new proto.sport.RenderBetbyPromoWidgetResponse;
|
|
2566
|
+
return proto.sport.RenderBetbyPromoWidgetResponse.deserializeBinaryFromReader(msg, reader);
|
|
2567
|
+
};
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2572
|
+
* given reader into the given message object.
|
|
2573
|
+
* @param {!proto.sport.RenderBetbyPromoWidgetResponse} msg The message object to deserialize into.
|
|
2574
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2575
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetResponse}
|
|
2576
|
+
*/
|
|
2577
|
+
proto.sport.RenderBetbyPromoWidgetResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2578
|
+
while (reader.nextField()) {
|
|
2579
|
+
if (reader.isEndGroup()) {
|
|
2580
|
+
break;
|
|
2581
|
+
}
|
|
2582
|
+
var field = reader.getFieldNumber();
|
|
2583
|
+
switch (field) {
|
|
2584
|
+
case 1:
|
|
2585
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2586
|
+
msg.setHtml(value);
|
|
2587
|
+
break;
|
|
2588
|
+
case 2:
|
|
2589
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2590
|
+
msg.setMode(value);
|
|
2591
|
+
break;
|
|
2592
|
+
default:
|
|
2593
|
+
reader.skipField();
|
|
2594
|
+
break;
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
return msg;
|
|
2598
|
+
};
|
|
2599
|
+
|
|
2600
|
+
|
|
2601
|
+
/**
|
|
2602
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2603
|
+
* @return {!Uint8Array}
|
|
2604
|
+
*/
|
|
2605
|
+
proto.sport.RenderBetbyPromoWidgetResponse.prototype.serializeBinary = function() {
|
|
2606
|
+
var writer = new jspb.BinaryWriter();
|
|
2607
|
+
proto.sport.RenderBetbyPromoWidgetResponse.serializeBinaryToWriter(this, writer);
|
|
2608
|
+
return writer.getResultBuffer();
|
|
2609
|
+
};
|
|
2610
|
+
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2614
|
+
* format), writing to the given BinaryWriter.
|
|
2615
|
+
* @param {!proto.sport.RenderBetbyPromoWidgetResponse} message
|
|
2616
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2617
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2618
|
+
*/
|
|
2619
|
+
proto.sport.RenderBetbyPromoWidgetResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2620
|
+
var f = undefined;
|
|
2621
|
+
f = message.getHtml();
|
|
2622
|
+
if (f.length > 0) {
|
|
2623
|
+
writer.writeString(
|
|
2624
|
+
1,
|
|
2625
|
+
f
|
|
2626
|
+
);
|
|
2627
|
+
}
|
|
2628
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
2629
|
+
if (f != null) {
|
|
2630
|
+
writer.writeString(
|
|
2631
|
+
2,
|
|
2632
|
+
f
|
|
2633
|
+
);
|
|
2634
|
+
}
|
|
2635
|
+
};
|
|
2636
|
+
|
|
2637
|
+
|
|
2638
|
+
/**
|
|
2639
|
+
* optional string html = 1;
|
|
2640
|
+
* @return {string}
|
|
2641
|
+
*/
|
|
2642
|
+
proto.sport.RenderBetbyPromoWidgetResponse.prototype.getHtml = function() {
|
|
2643
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2644
|
+
};
|
|
2645
|
+
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* @param {string} value
|
|
2649
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetResponse} returns this
|
|
2650
|
+
*/
|
|
2651
|
+
proto.sport.RenderBetbyPromoWidgetResponse.prototype.setHtml = function(value) {
|
|
2652
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2653
|
+
};
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* optional string mode = 2;
|
|
2658
|
+
* @return {string}
|
|
2659
|
+
*/
|
|
2660
|
+
proto.sport.RenderBetbyPromoWidgetResponse.prototype.getMode = function() {
|
|
2661
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2662
|
+
};
|
|
2663
|
+
|
|
2664
|
+
|
|
2665
|
+
/**
|
|
2666
|
+
* @param {string} value
|
|
2667
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetResponse} returns this
|
|
2668
|
+
*/
|
|
2669
|
+
proto.sport.RenderBetbyPromoWidgetResponse.prototype.setMode = function(value) {
|
|
2670
|
+
return jspb.Message.setField(this, 2, value);
|
|
2671
|
+
};
|
|
2672
|
+
|
|
2673
|
+
|
|
2674
|
+
/**
|
|
2675
|
+
* Clears the field making it undefined.
|
|
2676
|
+
* @return {!proto.sport.RenderBetbyPromoWidgetResponse} returns this
|
|
2677
|
+
*/
|
|
2678
|
+
proto.sport.RenderBetbyPromoWidgetResponse.prototype.clearMode = function() {
|
|
2679
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2680
|
+
};
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* Returns whether this field is set.
|
|
2685
|
+
* @return {boolean}
|
|
2686
|
+
*/
|
|
2687
|
+
proto.sport.RenderBetbyPromoWidgetResponse.prototype.hasMode = function() {
|
|
2688
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2689
|
+
};
|
|
2690
|
+
|
|
2691
|
+
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
|
|
1785
2695
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1786
2696
|
/**
|
|
1787
2697
|
* Creates an object representation of this proto.
|
|
@@ -218,6 +218,7 @@ message UserTournamentItem {
|
|
|
218
218
|
optional uint64 finished_in_milliseconds = 17;
|
|
219
219
|
repeated GamePoorItem eligible_games = 18;
|
|
220
220
|
optional TournamentScoreItem score = 19;
|
|
221
|
+
repeated RewardItem places = 20;
|
|
221
222
|
}
|
|
222
223
|
message UserTournamentItemsResponse {
|
|
223
224
|
repeated UserTournamentItem items = 1;
|
|
@@ -9221,7 +9221,7 @@ proto.tournament.GamePoorItem.prototype.hasProviderSlug = function() {
|
|
|
9221
9221
|
* @private {!Array<number>}
|
|
9222
9222
|
* @const
|
|
9223
9223
|
*/
|
|
9224
|
-
proto.tournament.UserTournamentItem.repeatedFields_ = [11,12,18];
|
|
9224
|
+
proto.tournament.UserTournamentItem.repeatedFields_ = [11,12,18,20];
|
|
9225
9225
|
|
|
9226
9226
|
|
|
9227
9227
|
|
|
@@ -9275,7 +9275,9 @@ proto.tournament.UserTournamentItem.toObject = function(includeInstance, msg) {
|
|
|
9275
9275
|
finishedInMilliseconds: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
9276
9276
|
eligibleGamesList: jspb.Message.toObjectList(msg.getEligibleGamesList(),
|
|
9277
9277
|
proto.tournament.GamePoorItem.toObject, includeInstance),
|
|
9278
|
-
score: (f = msg.getScore()) && proto.tournament.TournamentScoreItem.toObject(includeInstance, f)
|
|
9278
|
+
score: (f = msg.getScore()) && proto.tournament.TournamentScoreItem.toObject(includeInstance, f),
|
|
9279
|
+
placesList: jspb.Message.toObjectList(msg.getPlacesList(),
|
|
9280
|
+
proto.tournament.RewardItem.toObject, includeInstance)
|
|
9279
9281
|
};
|
|
9280
9282
|
|
|
9281
9283
|
if (includeInstance) {
|
|
@@ -9392,6 +9394,11 @@ proto.tournament.UserTournamentItem.deserializeBinaryFromReader = function(msg,
|
|
|
9392
9394
|
reader.readMessage(value,proto.tournament.TournamentScoreItem.deserializeBinaryFromReader);
|
|
9393
9395
|
msg.setScore(value);
|
|
9394
9396
|
break;
|
|
9397
|
+
case 20:
|
|
9398
|
+
var value = new proto.tournament.RewardItem;
|
|
9399
|
+
reader.readMessage(value,proto.tournament.RewardItem.deserializeBinaryFromReader);
|
|
9400
|
+
msg.addPlaces(value);
|
|
9401
|
+
break;
|
|
9395
9402
|
default:
|
|
9396
9403
|
reader.skipField();
|
|
9397
9404
|
break;
|
|
@@ -9558,6 +9565,14 @@ proto.tournament.UserTournamentItem.serializeBinaryToWriter = function(message,
|
|
|
9558
9565
|
proto.tournament.TournamentScoreItem.serializeBinaryToWriter
|
|
9559
9566
|
);
|
|
9560
9567
|
}
|
|
9568
|
+
f = message.getPlacesList();
|
|
9569
|
+
if (f.length > 0) {
|
|
9570
|
+
writer.writeRepeatedMessage(
|
|
9571
|
+
20,
|
|
9572
|
+
f,
|
|
9573
|
+
proto.tournament.RewardItem.serializeBinaryToWriter
|
|
9574
|
+
);
|
|
9575
|
+
}
|
|
9561
9576
|
};
|
|
9562
9577
|
|
|
9563
9578
|
|
|
@@ -10252,6 +10267,44 @@ proto.tournament.UserTournamentItem.prototype.hasScore = function() {
|
|
|
10252
10267
|
};
|
|
10253
10268
|
|
|
10254
10269
|
|
|
10270
|
+
/**
|
|
10271
|
+
* repeated RewardItem places = 20;
|
|
10272
|
+
* @return {!Array<!proto.tournament.RewardItem>}
|
|
10273
|
+
*/
|
|
10274
|
+
proto.tournament.UserTournamentItem.prototype.getPlacesList = function() {
|
|
10275
|
+
return /** @type{!Array<!proto.tournament.RewardItem>} */ (
|
|
10276
|
+
jspb.Message.getRepeatedWrapperField(this, proto.tournament.RewardItem, 20));
|
|
10277
|
+
};
|
|
10278
|
+
|
|
10279
|
+
|
|
10280
|
+
/**
|
|
10281
|
+
* @param {!Array<!proto.tournament.RewardItem>} value
|
|
10282
|
+
* @return {!proto.tournament.UserTournamentItem} returns this
|
|
10283
|
+
*/
|
|
10284
|
+
proto.tournament.UserTournamentItem.prototype.setPlacesList = function(value) {
|
|
10285
|
+
return jspb.Message.setRepeatedWrapperField(this, 20, value);
|
|
10286
|
+
};
|
|
10287
|
+
|
|
10288
|
+
|
|
10289
|
+
/**
|
|
10290
|
+
* @param {!proto.tournament.RewardItem=} opt_value
|
|
10291
|
+
* @param {number=} opt_index
|
|
10292
|
+
* @return {!proto.tournament.RewardItem}
|
|
10293
|
+
*/
|
|
10294
|
+
proto.tournament.UserTournamentItem.prototype.addPlaces = function(opt_value, opt_index) {
|
|
10295
|
+
return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.tournament.RewardItem, opt_index);
|
|
10296
|
+
};
|
|
10297
|
+
|
|
10298
|
+
|
|
10299
|
+
/**
|
|
10300
|
+
* Clears the list making it empty but non-null.
|
|
10301
|
+
* @return {!proto.tournament.UserTournamentItem} returns this
|
|
10302
|
+
*/
|
|
10303
|
+
proto.tournament.UserTournamentItem.prototype.clearPlacesList = function() {
|
|
10304
|
+
return this.setPlacesList([]);
|
|
10305
|
+
};
|
|
10306
|
+
|
|
10307
|
+
|
|
10255
10308
|
|
|
10256
10309
|
/**
|
|
10257
10310
|
* List of repeated fields within this message type.
|