protobuf-platform 1.2.143 → 1.2.145
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/bet/bet.proto +49 -7
- package/bet/bet_grpc_pb.js +37 -2
- package/bet/bet_pb.js +1103 -0
- package/package.json +1 -1
package/bet/bet.proto
CHANGED
|
@@ -4,20 +4,31 @@ package bet;
|
|
|
4
4
|
|
|
5
5
|
service Bet {
|
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
// User bets info
|
|
9
|
+
// Deprecated alias for backward compatibility (use getGameBetsHistory).
|
|
8
10
|
rpc getBetsHistory(PaginationRequest) returns (BetsHistoryResponse);
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
// Game bets history (replacement for getBetsHistory).
|
|
13
|
+
rpc getGameBetsHistory(PaginationRequest) returns (BetsHistoryResponse);
|
|
14
|
+
|
|
15
|
+
// Sport bets history.
|
|
16
|
+
rpc getSportBetsHistory(PaginationRequest) returns (SportBetsHistoryResponse);
|
|
17
|
+
|
|
18
|
+
// Dashboard
|
|
10
19
|
rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
|
|
11
|
-
|
|
20
|
+
|
|
21
|
+
// Segmentation
|
|
12
22
|
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
|
13
|
-
|
|
14
|
-
//Axiom
|
|
23
|
+
|
|
24
|
+
// Sports (Axiom)
|
|
15
25
|
rpc axiomGetAuthHash(AxiomGetHashRequest) returns (AxiomAuthHashResponse);
|
|
16
26
|
rpc axiomCheckSession(AxiomCheckSessionRequest) returns (AxiomCheckSessionResponse);
|
|
17
27
|
rpc axiomGetBets(AxiomGetBetsRequest) returns (AxiomBetsResponse);
|
|
18
28
|
rpc axiomCreateBet(AxiomCreateBetRequest) returns (AxiomBetStatusResponse);
|
|
19
29
|
rpc axiomProcessBet(AxiomProcessBetRequest) returns (AxiomBetStatusResponse);
|
|
20
|
-
|
|
30
|
+
|
|
31
|
+
// Games aggregation
|
|
21
32
|
rpc getWinRates(PaginationRequest) returns (WinRatesResponse);
|
|
22
33
|
rpc getLastWins(PaginationRequest) returns (WinRatesResponse);
|
|
23
34
|
}
|
|
@@ -168,4 +179,35 @@ message WinRatesResponse {
|
|
|
168
179
|
repeated WinRateItem items = 1;
|
|
169
180
|
optional int32 total_pages = 2;
|
|
170
181
|
optional int32 total_items = 3;
|
|
171
|
-
}
|
|
182
|
+
}
|
|
183
|
+
// Sport event human-readable info (cached/stored in bet-service DB).
|
|
184
|
+
message SportEventInfo {
|
|
185
|
+
string event_id = 1;
|
|
186
|
+
string name = 2;
|
|
187
|
+
string sport = 3;
|
|
188
|
+
string category = 4;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// Sport outcome human-readable info (single selection inside betslip).
|
|
192
|
+
message SportOutcomeItem {
|
|
193
|
+
string market = 1;
|
|
194
|
+
string status = 2;
|
|
195
|
+
float odds = 3;
|
|
196
|
+
optional SportEventInfo event = 4;
|
|
197
|
+
}
|
|
198
|
+
// Sport bet history item for list views (no nested selections/events).
|
|
199
|
+
message SportBetListItem {
|
|
200
|
+
int32 id = 1;
|
|
201
|
+
string action = 2;
|
|
202
|
+
string balance_type = 3;
|
|
203
|
+
float amount = 4;
|
|
204
|
+
string currency = 5;
|
|
205
|
+
optional string created = 6;
|
|
206
|
+
//repeated SportOutcomeItem outcomes = 7;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message SportBetsHistoryResponse {
|
|
210
|
+
repeated SportBetListItem items = 1;
|
|
211
|
+
optional int32 total_pages = 2;
|
|
212
|
+
optional int32 total_items = 3;
|
|
213
|
+
}
|
package/bet/bet_grpc_pb.js
CHANGED
|
@@ -191,6 +191,17 @@ function deserialize_bet_SegmentedUserResponse(buffer_arg) {
|
|
|
191
191
|
return bet_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
function serialize_bet_SportBetsHistoryResponse(arg) {
|
|
195
|
+
if (!(arg instanceof bet_pb.SportBetsHistoryResponse)) {
|
|
196
|
+
throw new Error('Expected argument of type bet.SportBetsHistoryResponse');
|
|
197
|
+
}
|
|
198
|
+
return Buffer.from(arg.serializeBinary());
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function deserialize_bet_SportBetsHistoryResponse(buffer_arg) {
|
|
202
|
+
return bet_pb.SportBetsHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
203
|
+
}
|
|
204
|
+
|
|
194
205
|
function serialize_bet_WinRatesResponse(arg) {
|
|
195
206
|
if (!(arg instanceof bet_pb.WinRatesResponse)) {
|
|
196
207
|
throw new Error('Expected argument of type bet.WinRatesResponse');
|
|
@@ -216,6 +227,7 @@ var BetService = exports.BetService = {
|
|
|
216
227
|
responseDeserialize: deserialize_bet_PongResponse,
|
|
217
228
|
},
|
|
218
229
|
// User bets info
|
|
230
|
+
// Deprecated alias for backward compatibility (use getGameBetsHistory).
|
|
219
231
|
getBetsHistory: {
|
|
220
232
|
path: '/bet.Bet/getBetsHistory',
|
|
221
233
|
requestStream: false,
|
|
@@ -227,6 +239,30 @@ getBetsHistory: {
|
|
|
227
239
|
responseSerialize: serialize_bet_BetsHistoryResponse,
|
|
228
240
|
responseDeserialize: deserialize_bet_BetsHistoryResponse,
|
|
229
241
|
},
|
|
242
|
+
// Game bets history (replacement for getBetsHistory).
|
|
243
|
+
getGameBetsHistory: {
|
|
244
|
+
path: '/bet.Bet/getGameBetsHistory',
|
|
245
|
+
requestStream: false,
|
|
246
|
+
responseStream: false,
|
|
247
|
+
requestType: bet_pb.PaginationRequest,
|
|
248
|
+
responseType: bet_pb.BetsHistoryResponse,
|
|
249
|
+
requestSerialize: serialize_bet_PaginationRequest,
|
|
250
|
+
requestDeserialize: deserialize_bet_PaginationRequest,
|
|
251
|
+
responseSerialize: serialize_bet_BetsHistoryResponse,
|
|
252
|
+
responseDeserialize: deserialize_bet_BetsHistoryResponse,
|
|
253
|
+
},
|
|
254
|
+
// Sport bets history.
|
|
255
|
+
getSportBetsHistory: {
|
|
256
|
+
path: '/bet.Bet/getSportBetsHistory',
|
|
257
|
+
requestStream: false,
|
|
258
|
+
responseStream: false,
|
|
259
|
+
requestType: bet_pb.PaginationRequest,
|
|
260
|
+
responseType: bet_pb.SportBetsHistoryResponse,
|
|
261
|
+
requestSerialize: serialize_bet_PaginationRequest,
|
|
262
|
+
requestDeserialize: deserialize_bet_PaginationRequest,
|
|
263
|
+
responseSerialize: serialize_bet_SportBetsHistoryResponse,
|
|
264
|
+
responseDeserialize: deserialize_bet_SportBetsHistoryResponse,
|
|
265
|
+
},
|
|
230
266
|
// Dashboard
|
|
231
267
|
getDashboardInfo: {
|
|
232
268
|
path: '/bet.Bet/getDashboardInfo',
|
|
@@ -251,8 +287,7 @@ getSegmentedUsers: {
|
|
|
251
287
|
responseSerialize: serialize_bet_SegmentedUserResponse,
|
|
252
288
|
responseDeserialize: deserialize_bet_SegmentedUserResponse,
|
|
253
289
|
},
|
|
254
|
-
// Sports
|
|
255
|
-
// Axiom
|
|
290
|
+
// Sports (Axiom)
|
|
256
291
|
axiomGetAuthHash: {
|
|
257
292
|
path: '/bet.Bet/axiomGetAuthHash',
|
|
258
293
|
requestStream: false,
|
package/bet/bet_pb.js
CHANGED
|
@@ -39,6 +39,10 @@ goog.exportSymbol('proto.bet.PingRequest', null, global);
|
|
|
39
39
|
goog.exportSymbol('proto.bet.PongResponse', null, global);
|
|
40
40
|
goog.exportSymbol('proto.bet.SegmentedUserRequest', null, global);
|
|
41
41
|
goog.exportSymbol('proto.bet.SegmentedUserResponse', null, global);
|
|
42
|
+
goog.exportSymbol('proto.bet.SportBetListItem', null, global);
|
|
43
|
+
goog.exportSymbol('proto.bet.SportBetsHistoryResponse', null, global);
|
|
44
|
+
goog.exportSymbol('proto.bet.SportEventInfo', null, global);
|
|
45
|
+
goog.exportSymbol('proto.bet.SportOutcomeItem', null, global);
|
|
42
46
|
goog.exportSymbol('proto.bet.UserBetItem', null, global);
|
|
43
47
|
goog.exportSymbol('proto.bet.UserSearchRequest', null, global);
|
|
44
48
|
goog.exportSymbol('proto.bet.WinRateItem', null, global);
|
|
@@ -505,6 +509,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
505
509
|
*/
|
|
506
510
|
proto.bet.WinRatesResponse.displayName = 'proto.bet.WinRatesResponse';
|
|
507
511
|
}
|
|
512
|
+
/**
|
|
513
|
+
* Generated by JsPbCodeGenerator.
|
|
514
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
515
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
516
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
517
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
518
|
+
* valid.
|
|
519
|
+
* @extends {jspb.Message}
|
|
520
|
+
* @constructor
|
|
521
|
+
*/
|
|
522
|
+
proto.bet.SportEventInfo = function(opt_data) {
|
|
523
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
524
|
+
};
|
|
525
|
+
goog.inherits(proto.bet.SportEventInfo, jspb.Message);
|
|
526
|
+
if (goog.DEBUG && !COMPILED) {
|
|
527
|
+
/**
|
|
528
|
+
* @public
|
|
529
|
+
* @override
|
|
530
|
+
*/
|
|
531
|
+
proto.bet.SportEventInfo.displayName = 'proto.bet.SportEventInfo';
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Generated by JsPbCodeGenerator.
|
|
535
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
536
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
537
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
538
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
539
|
+
* valid.
|
|
540
|
+
* @extends {jspb.Message}
|
|
541
|
+
* @constructor
|
|
542
|
+
*/
|
|
543
|
+
proto.bet.SportOutcomeItem = function(opt_data) {
|
|
544
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
545
|
+
};
|
|
546
|
+
goog.inherits(proto.bet.SportOutcomeItem, jspb.Message);
|
|
547
|
+
if (goog.DEBUG && !COMPILED) {
|
|
548
|
+
/**
|
|
549
|
+
* @public
|
|
550
|
+
* @override
|
|
551
|
+
*/
|
|
552
|
+
proto.bet.SportOutcomeItem.displayName = 'proto.bet.SportOutcomeItem';
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Generated by JsPbCodeGenerator.
|
|
556
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
557
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
558
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
559
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
560
|
+
* valid.
|
|
561
|
+
* @extends {jspb.Message}
|
|
562
|
+
* @constructor
|
|
563
|
+
*/
|
|
564
|
+
proto.bet.SportBetListItem = function(opt_data) {
|
|
565
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
566
|
+
};
|
|
567
|
+
goog.inherits(proto.bet.SportBetListItem, jspb.Message);
|
|
568
|
+
if (goog.DEBUG && !COMPILED) {
|
|
569
|
+
/**
|
|
570
|
+
* @public
|
|
571
|
+
* @override
|
|
572
|
+
*/
|
|
573
|
+
proto.bet.SportBetListItem.displayName = 'proto.bet.SportBetListItem';
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Generated by JsPbCodeGenerator.
|
|
577
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
578
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
579
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
580
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
581
|
+
* valid.
|
|
582
|
+
* @extends {jspb.Message}
|
|
583
|
+
* @constructor
|
|
584
|
+
*/
|
|
585
|
+
proto.bet.SportBetsHistoryResponse = function(opt_data) {
|
|
586
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.SportBetsHistoryResponse.repeatedFields_, null);
|
|
587
|
+
};
|
|
588
|
+
goog.inherits(proto.bet.SportBetsHistoryResponse, jspb.Message);
|
|
589
|
+
if (goog.DEBUG && !COMPILED) {
|
|
590
|
+
/**
|
|
591
|
+
* @public
|
|
592
|
+
* @override
|
|
593
|
+
*/
|
|
594
|
+
proto.bet.SportBetsHistoryResponse.displayName = 'proto.bet.SportBetsHistoryResponse';
|
|
595
|
+
}
|
|
508
596
|
|
|
509
597
|
|
|
510
598
|
|
|
@@ -7153,4 +7241,1019 @@ proto.bet.WinRatesResponse.prototype.hasTotalItems = function() {
|
|
|
7153
7241
|
};
|
|
7154
7242
|
|
|
7155
7243
|
|
|
7244
|
+
|
|
7245
|
+
|
|
7246
|
+
|
|
7247
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7248
|
+
/**
|
|
7249
|
+
* Creates an object representation of this proto.
|
|
7250
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7251
|
+
* Optional fields that are not set will be set to undefined.
|
|
7252
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7253
|
+
* For the list of reserved names please see:
|
|
7254
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7255
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7256
|
+
* JSPB instance for transitional soy proto support:
|
|
7257
|
+
* http://goto/soy-param-migration
|
|
7258
|
+
* @return {!Object}
|
|
7259
|
+
*/
|
|
7260
|
+
proto.bet.SportEventInfo.prototype.toObject = function(opt_includeInstance) {
|
|
7261
|
+
return proto.bet.SportEventInfo.toObject(opt_includeInstance, this);
|
|
7262
|
+
};
|
|
7263
|
+
|
|
7264
|
+
|
|
7265
|
+
/**
|
|
7266
|
+
* Static version of the {@see toObject} method.
|
|
7267
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7268
|
+
* the JSPB instance for transitional soy proto support:
|
|
7269
|
+
* http://goto/soy-param-migration
|
|
7270
|
+
* @param {!proto.bet.SportEventInfo} msg The msg instance to transform.
|
|
7271
|
+
* @return {!Object}
|
|
7272
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7273
|
+
*/
|
|
7274
|
+
proto.bet.SportEventInfo.toObject = function(includeInstance, msg) {
|
|
7275
|
+
var f, obj = {
|
|
7276
|
+
eventId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7277
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7278
|
+
sport: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7279
|
+
category: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
7280
|
+
};
|
|
7281
|
+
|
|
7282
|
+
if (includeInstance) {
|
|
7283
|
+
obj.$jspbMessageInstance = msg;
|
|
7284
|
+
}
|
|
7285
|
+
return obj;
|
|
7286
|
+
};
|
|
7287
|
+
}
|
|
7288
|
+
|
|
7289
|
+
|
|
7290
|
+
/**
|
|
7291
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7292
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7293
|
+
* @return {!proto.bet.SportEventInfo}
|
|
7294
|
+
*/
|
|
7295
|
+
proto.bet.SportEventInfo.deserializeBinary = function(bytes) {
|
|
7296
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7297
|
+
var msg = new proto.bet.SportEventInfo;
|
|
7298
|
+
return proto.bet.SportEventInfo.deserializeBinaryFromReader(msg, reader);
|
|
7299
|
+
};
|
|
7300
|
+
|
|
7301
|
+
|
|
7302
|
+
/**
|
|
7303
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7304
|
+
* given reader into the given message object.
|
|
7305
|
+
* @param {!proto.bet.SportEventInfo} msg The message object to deserialize into.
|
|
7306
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7307
|
+
* @return {!proto.bet.SportEventInfo}
|
|
7308
|
+
*/
|
|
7309
|
+
proto.bet.SportEventInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
7310
|
+
while (reader.nextField()) {
|
|
7311
|
+
if (reader.isEndGroup()) {
|
|
7312
|
+
break;
|
|
7313
|
+
}
|
|
7314
|
+
var field = reader.getFieldNumber();
|
|
7315
|
+
switch (field) {
|
|
7316
|
+
case 1:
|
|
7317
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7318
|
+
msg.setEventId(value);
|
|
7319
|
+
break;
|
|
7320
|
+
case 2:
|
|
7321
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7322
|
+
msg.setName(value);
|
|
7323
|
+
break;
|
|
7324
|
+
case 3:
|
|
7325
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7326
|
+
msg.setSport(value);
|
|
7327
|
+
break;
|
|
7328
|
+
case 4:
|
|
7329
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7330
|
+
msg.setCategory(value);
|
|
7331
|
+
break;
|
|
7332
|
+
default:
|
|
7333
|
+
reader.skipField();
|
|
7334
|
+
break;
|
|
7335
|
+
}
|
|
7336
|
+
}
|
|
7337
|
+
return msg;
|
|
7338
|
+
};
|
|
7339
|
+
|
|
7340
|
+
|
|
7341
|
+
/**
|
|
7342
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7343
|
+
* @return {!Uint8Array}
|
|
7344
|
+
*/
|
|
7345
|
+
proto.bet.SportEventInfo.prototype.serializeBinary = function() {
|
|
7346
|
+
var writer = new jspb.BinaryWriter();
|
|
7347
|
+
proto.bet.SportEventInfo.serializeBinaryToWriter(this, writer);
|
|
7348
|
+
return writer.getResultBuffer();
|
|
7349
|
+
};
|
|
7350
|
+
|
|
7351
|
+
|
|
7352
|
+
/**
|
|
7353
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7354
|
+
* format), writing to the given BinaryWriter.
|
|
7355
|
+
* @param {!proto.bet.SportEventInfo} message
|
|
7356
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7357
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7358
|
+
*/
|
|
7359
|
+
proto.bet.SportEventInfo.serializeBinaryToWriter = function(message, writer) {
|
|
7360
|
+
var f = undefined;
|
|
7361
|
+
f = message.getEventId();
|
|
7362
|
+
if (f.length > 0) {
|
|
7363
|
+
writer.writeString(
|
|
7364
|
+
1,
|
|
7365
|
+
f
|
|
7366
|
+
);
|
|
7367
|
+
}
|
|
7368
|
+
f = message.getName();
|
|
7369
|
+
if (f.length > 0) {
|
|
7370
|
+
writer.writeString(
|
|
7371
|
+
2,
|
|
7372
|
+
f
|
|
7373
|
+
);
|
|
7374
|
+
}
|
|
7375
|
+
f = message.getSport();
|
|
7376
|
+
if (f.length > 0) {
|
|
7377
|
+
writer.writeString(
|
|
7378
|
+
3,
|
|
7379
|
+
f
|
|
7380
|
+
);
|
|
7381
|
+
}
|
|
7382
|
+
f = message.getCategory();
|
|
7383
|
+
if (f.length > 0) {
|
|
7384
|
+
writer.writeString(
|
|
7385
|
+
4,
|
|
7386
|
+
f
|
|
7387
|
+
);
|
|
7388
|
+
}
|
|
7389
|
+
};
|
|
7390
|
+
|
|
7391
|
+
|
|
7392
|
+
/**
|
|
7393
|
+
* optional string event_id = 1;
|
|
7394
|
+
* @return {string}
|
|
7395
|
+
*/
|
|
7396
|
+
proto.bet.SportEventInfo.prototype.getEventId = function() {
|
|
7397
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7398
|
+
};
|
|
7399
|
+
|
|
7400
|
+
|
|
7401
|
+
/**
|
|
7402
|
+
* @param {string} value
|
|
7403
|
+
* @return {!proto.bet.SportEventInfo} returns this
|
|
7404
|
+
*/
|
|
7405
|
+
proto.bet.SportEventInfo.prototype.setEventId = function(value) {
|
|
7406
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7407
|
+
};
|
|
7408
|
+
|
|
7409
|
+
|
|
7410
|
+
/**
|
|
7411
|
+
* optional string name = 2;
|
|
7412
|
+
* @return {string}
|
|
7413
|
+
*/
|
|
7414
|
+
proto.bet.SportEventInfo.prototype.getName = function() {
|
|
7415
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7416
|
+
};
|
|
7417
|
+
|
|
7418
|
+
|
|
7419
|
+
/**
|
|
7420
|
+
* @param {string} value
|
|
7421
|
+
* @return {!proto.bet.SportEventInfo} returns this
|
|
7422
|
+
*/
|
|
7423
|
+
proto.bet.SportEventInfo.prototype.setName = function(value) {
|
|
7424
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7425
|
+
};
|
|
7426
|
+
|
|
7427
|
+
|
|
7428
|
+
/**
|
|
7429
|
+
* optional string sport = 3;
|
|
7430
|
+
* @return {string}
|
|
7431
|
+
*/
|
|
7432
|
+
proto.bet.SportEventInfo.prototype.getSport = function() {
|
|
7433
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7434
|
+
};
|
|
7435
|
+
|
|
7436
|
+
|
|
7437
|
+
/**
|
|
7438
|
+
* @param {string} value
|
|
7439
|
+
* @return {!proto.bet.SportEventInfo} returns this
|
|
7440
|
+
*/
|
|
7441
|
+
proto.bet.SportEventInfo.prototype.setSport = function(value) {
|
|
7442
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7443
|
+
};
|
|
7444
|
+
|
|
7445
|
+
|
|
7446
|
+
/**
|
|
7447
|
+
* optional string category = 4;
|
|
7448
|
+
* @return {string}
|
|
7449
|
+
*/
|
|
7450
|
+
proto.bet.SportEventInfo.prototype.getCategory = function() {
|
|
7451
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
7452
|
+
};
|
|
7453
|
+
|
|
7454
|
+
|
|
7455
|
+
/**
|
|
7456
|
+
* @param {string} value
|
|
7457
|
+
* @return {!proto.bet.SportEventInfo} returns this
|
|
7458
|
+
*/
|
|
7459
|
+
proto.bet.SportEventInfo.prototype.setCategory = function(value) {
|
|
7460
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
7461
|
+
};
|
|
7462
|
+
|
|
7463
|
+
|
|
7464
|
+
|
|
7465
|
+
|
|
7466
|
+
|
|
7467
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7468
|
+
/**
|
|
7469
|
+
* Creates an object representation of this proto.
|
|
7470
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7471
|
+
* Optional fields that are not set will be set to undefined.
|
|
7472
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7473
|
+
* For the list of reserved names please see:
|
|
7474
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7475
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7476
|
+
* JSPB instance for transitional soy proto support:
|
|
7477
|
+
* http://goto/soy-param-migration
|
|
7478
|
+
* @return {!Object}
|
|
7479
|
+
*/
|
|
7480
|
+
proto.bet.SportOutcomeItem.prototype.toObject = function(opt_includeInstance) {
|
|
7481
|
+
return proto.bet.SportOutcomeItem.toObject(opt_includeInstance, this);
|
|
7482
|
+
};
|
|
7483
|
+
|
|
7484
|
+
|
|
7485
|
+
/**
|
|
7486
|
+
* Static version of the {@see toObject} method.
|
|
7487
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7488
|
+
* the JSPB instance for transitional soy proto support:
|
|
7489
|
+
* http://goto/soy-param-migration
|
|
7490
|
+
* @param {!proto.bet.SportOutcomeItem} msg The msg instance to transform.
|
|
7491
|
+
* @return {!Object}
|
|
7492
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7493
|
+
*/
|
|
7494
|
+
proto.bet.SportOutcomeItem.toObject = function(includeInstance, msg) {
|
|
7495
|
+
var f, obj = {
|
|
7496
|
+
market: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7497
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7498
|
+
odds: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
7499
|
+
event: (f = msg.getEvent()) && proto.bet.SportEventInfo.toObject(includeInstance, f)
|
|
7500
|
+
};
|
|
7501
|
+
|
|
7502
|
+
if (includeInstance) {
|
|
7503
|
+
obj.$jspbMessageInstance = msg;
|
|
7504
|
+
}
|
|
7505
|
+
return obj;
|
|
7506
|
+
};
|
|
7507
|
+
}
|
|
7508
|
+
|
|
7509
|
+
|
|
7510
|
+
/**
|
|
7511
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7512
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7513
|
+
* @return {!proto.bet.SportOutcomeItem}
|
|
7514
|
+
*/
|
|
7515
|
+
proto.bet.SportOutcomeItem.deserializeBinary = function(bytes) {
|
|
7516
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7517
|
+
var msg = new proto.bet.SportOutcomeItem;
|
|
7518
|
+
return proto.bet.SportOutcomeItem.deserializeBinaryFromReader(msg, reader);
|
|
7519
|
+
};
|
|
7520
|
+
|
|
7521
|
+
|
|
7522
|
+
/**
|
|
7523
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7524
|
+
* given reader into the given message object.
|
|
7525
|
+
* @param {!proto.bet.SportOutcomeItem} msg The message object to deserialize into.
|
|
7526
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7527
|
+
* @return {!proto.bet.SportOutcomeItem}
|
|
7528
|
+
*/
|
|
7529
|
+
proto.bet.SportOutcomeItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
7530
|
+
while (reader.nextField()) {
|
|
7531
|
+
if (reader.isEndGroup()) {
|
|
7532
|
+
break;
|
|
7533
|
+
}
|
|
7534
|
+
var field = reader.getFieldNumber();
|
|
7535
|
+
switch (field) {
|
|
7536
|
+
case 1:
|
|
7537
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7538
|
+
msg.setMarket(value);
|
|
7539
|
+
break;
|
|
7540
|
+
case 2:
|
|
7541
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7542
|
+
msg.setStatus(value);
|
|
7543
|
+
break;
|
|
7544
|
+
case 3:
|
|
7545
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
7546
|
+
msg.setOdds(value);
|
|
7547
|
+
break;
|
|
7548
|
+
case 4:
|
|
7549
|
+
var value = new proto.bet.SportEventInfo;
|
|
7550
|
+
reader.readMessage(value,proto.bet.SportEventInfo.deserializeBinaryFromReader);
|
|
7551
|
+
msg.setEvent(value);
|
|
7552
|
+
break;
|
|
7553
|
+
default:
|
|
7554
|
+
reader.skipField();
|
|
7555
|
+
break;
|
|
7556
|
+
}
|
|
7557
|
+
}
|
|
7558
|
+
return msg;
|
|
7559
|
+
};
|
|
7560
|
+
|
|
7561
|
+
|
|
7562
|
+
/**
|
|
7563
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7564
|
+
* @return {!Uint8Array}
|
|
7565
|
+
*/
|
|
7566
|
+
proto.bet.SportOutcomeItem.prototype.serializeBinary = function() {
|
|
7567
|
+
var writer = new jspb.BinaryWriter();
|
|
7568
|
+
proto.bet.SportOutcomeItem.serializeBinaryToWriter(this, writer);
|
|
7569
|
+
return writer.getResultBuffer();
|
|
7570
|
+
};
|
|
7571
|
+
|
|
7572
|
+
|
|
7573
|
+
/**
|
|
7574
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7575
|
+
* format), writing to the given BinaryWriter.
|
|
7576
|
+
* @param {!proto.bet.SportOutcomeItem} message
|
|
7577
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7578
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7579
|
+
*/
|
|
7580
|
+
proto.bet.SportOutcomeItem.serializeBinaryToWriter = function(message, writer) {
|
|
7581
|
+
var f = undefined;
|
|
7582
|
+
f = message.getMarket();
|
|
7583
|
+
if (f.length > 0) {
|
|
7584
|
+
writer.writeString(
|
|
7585
|
+
1,
|
|
7586
|
+
f
|
|
7587
|
+
);
|
|
7588
|
+
}
|
|
7589
|
+
f = message.getStatus();
|
|
7590
|
+
if (f.length > 0) {
|
|
7591
|
+
writer.writeString(
|
|
7592
|
+
2,
|
|
7593
|
+
f
|
|
7594
|
+
);
|
|
7595
|
+
}
|
|
7596
|
+
f = message.getOdds();
|
|
7597
|
+
if (f !== 0.0) {
|
|
7598
|
+
writer.writeFloat(
|
|
7599
|
+
3,
|
|
7600
|
+
f
|
|
7601
|
+
);
|
|
7602
|
+
}
|
|
7603
|
+
f = message.getEvent();
|
|
7604
|
+
if (f != null) {
|
|
7605
|
+
writer.writeMessage(
|
|
7606
|
+
4,
|
|
7607
|
+
f,
|
|
7608
|
+
proto.bet.SportEventInfo.serializeBinaryToWriter
|
|
7609
|
+
);
|
|
7610
|
+
}
|
|
7611
|
+
};
|
|
7612
|
+
|
|
7613
|
+
|
|
7614
|
+
/**
|
|
7615
|
+
* optional string market = 1;
|
|
7616
|
+
* @return {string}
|
|
7617
|
+
*/
|
|
7618
|
+
proto.bet.SportOutcomeItem.prototype.getMarket = function() {
|
|
7619
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7620
|
+
};
|
|
7621
|
+
|
|
7622
|
+
|
|
7623
|
+
/**
|
|
7624
|
+
* @param {string} value
|
|
7625
|
+
* @return {!proto.bet.SportOutcomeItem} returns this
|
|
7626
|
+
*/
|
|
7627
|
+
proto.bet.SportOutcomeItem.prototype.setMarket = function(value) {
|
|
7628
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7629
|
+
};
|
|
7630
|
+
|
|
7631
|
+
|
|
7632
|
+
/**
|
|
7633
|
+
* optional string status = 2;
|
|
7634
|
+
* @return {string}
|
|
7635
|
+
*/
|
|
7636
|
+
proto.bet.SportOutcomeItem.prototype.getStatus = function() {
|
|
7637
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7638
|
+
};
|
|
7639
|
+
|
|
7640
|
+
|
|
7641
|
+
/**
|
|
7642
|
+
* @param {string} value
|
|
7643
|
+
* @return {!proto.bet.SportOutcomeItem} returns this
|
|
7644
|
+
*/
|
|
7645
|
+
proto.bet.SportOutcomeItem.prototype.setStatus = function(value) {
|
|
7646
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7647
|
+
};
|
|
7648
|
+
|
|
7649
|
+
|
|
7650
|
+
/**
|
|
7651
|
+
* optional float odds = 3;
|
|
7652
|
+
* @return {number}
|
|
7653
|
+
*/
|
|
7654
|
+
proto.bet.SportOutcomeItem.prototype.getOdds = function() {
|
|
7655
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
7656
|
+
};
|
|
7657
|
+
|
|
7658
|
+
|
|
7659
|
+
/**
|
|
7660
|
+
* @param {number} value
|
|
7661
|
+
* @return {!proto.bet.SportOutcomeItem} returns this
|
|
7662
|
+
*/
|
|
7663
|
+
proto.bet.SportOutcomeItem.prototype.setOdds = function(value) {
|
|
7664
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
7665
|
+
};
|
|
7666
|
+
|
|
7667
|
+
|
|
7668
|
+
/**
|
|
7669
|
+
* optional SportEventInfo event = 4;
|
|
7670
|
+
* @return {?proto.bet.SportEventInfo}
|
|
7671
|
+
*/
|
|
7672
|
+
proto.bet.SportOutcomeItem.prototype.getEvent = function() {
|
|
7673
|
+
return /** @type{?proto.bet.SportEventInfo} */ (
|
|
7674
|
+
jspb.Message.getWrapperField(this, proto.bet.SportEventInfo, 4));
|
|
7675
|
+
};
|
|
7676
|
+
|
|
7677
|
+
|
|
7678
|
+
/**
|
|
7679
|
+
* @param {?proto.bet.SportEventInfo|undefined} value
|
|
7680
|
+
* @return {!proto.bet.SportOutcomeItem} returns this
|
|
7681
|
+
*/
|
|
7682
|
+
proto.bet.SportOutcomeItem.prototype.setEvent = function(value) {
|
|
7683
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
7684
|
+
};
|
|
7685
|
+
|
|
7686
|
+
|
|
7687
|
+
/**
|
|
7688
|
+
* Clears the message field making it undefined.
|
|
7689
|
+
* @return {!proto.bet.SportOutcomeItem} returns this
|
|
7690
|
+
*/
|
|
7691
|
+
proto.bet.SportOutcomeItem.prototype.clearEvent = function() {
|
|
7692
|
+
return this.setEvent(undefined);
|
|
7693
|
+
};
|
|
7694
|
+
|
|
7695
|
+
|
|
7696
|
+
/**
|
|
7697
|
+
* Returns whether this field is set.
|
|
7698
|
+
* @return {boolean}
|
|
7699
|
+
*/
|
|
7700
|
+
proto.bet.SportOutcomeItem.prototype.hasEvent = function() {
|
|
7701
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7702
|
+
};
|
|
7703
|
+
|
|
7704
|
+
|
|
7705
|
+
|
|
7706
|
+
|
|
7707
|
+
|
|
7708
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7709
|
+
/**
|
|
7710
|
+
* Creates an object representation of this proto.
|
|
7711
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7712
|
+
* Optional fields that are not set will be set to undefined.
|
|
7713
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7714
|
+
* For the list of reserved names please see:
|
|
7715
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7716
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7717
|
+
* JSPB instance for transitional soy proto support:
|
|
7718
|
+
* http://goto/soy-param-migration
|
|
7719
|
+
* @return {!Object}
|
|
7720
|
+
*/
|
|
7721
|
+
proto.bet.SportBetListItem.prototype.toObject = function(opt_includeInstance) {
|
|
7722
|
+
return proto.bet.SportBetListItem.toObject(opt_includeInstance, this);
|
|
7723
|
+
};
|
|
7724
|
+
|
|
7725
|
+
|
|
7726
|
+
/**
|
|
7727
|
+
* Static version of the {@see toObject} method.
|
|
7728
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7729
|
+
* the JSPB instance for transitional soy proto support:
|
|
7730
|
+
* http://goto/soy-param-migration
|
|
7731
|
+
* @param {!proto.bet.SportBetListItem} msg The msg instance to transform.
|
|
7732
|
+
* @return {!Object}
|
|
7733
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7734
|
+
*/
|
|
7735
|
+
proto.bet.SportBetListItem.toObject = function(includeInstance, msg) {
|
|
7736
|
+
var f, obj = {
|
|
7737
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
7738
|
+
action: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7739
|
+
balanceType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7740
|
+
amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
7741
|
+
currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
7742
|
+
created: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
7743
|
+
};
|
|
7744
|
+
|
|
7745
|
+
if (includeInstance) {
|
|
7746
|
+
obj.$jspbMessageInstance = msg;
|
|
7747
|
+
}
|
|
7748
|
+
return obj;
|
|
7749
|
+
};
|
|
7750
|
+
}
|
|
7751
|
+
|
|
7752
|
+
|
|
7753
|
+
/**
|
|
7754
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7755
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7756
|
+
* @return {!proto.bet.SportBetListItem}
|
|
7757
|
+
*/
|
|
7758
|
+
proto.bet.SportBetListItem.deserializeBinary = function(bytes) {
|
|
7759
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7760
|
+
var msg = new proto.bet.SportBetListItem;
|
|
7761
|
+
return proto.bet.SportBetListItem.deserializeBinaryFromReader(msg, reader);
|
|
7762
|
+
};
|
|
7763
|
+
|
|
7764
|
+
|
|
7765
|
+
/**
|
|
7766
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7767
|
+
* given reader into the given message object.
|
|
7768
|
+
* @param {!proto.bet.SportBetListItem} msg The message object to deserialize into.
|
|
7769
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7770
|
+
* @return {!proto.bet.SportBetListItem}
|
|
7771
|
+
*/
|
|
7772
|
+
proto.bet.SportBetListItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
7773
|
+
while (reader.nextField()) {
|
|
7774
|
+
if (reader.isEndGroup()) {
|
|
7775
|
+
break;
|
|
7776
|
+
}
|
|
7777
|
+
var field = reader.getFieldNumber();
|
|
7778
|
+
switch (field) {
|
|
7779
|
+
case 1:
|
|
7780
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7781
|
+
msg.setId(value);
|
|
7782
|
+
break;
|
|
7783
|
+
case 2:
|
|
7784
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7785
|
+
msg.setAction(value);
|
|
7786
|
+
break;
|
|
7787
|
+
case 3:
|
|
7788
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7789
|
+
msg.setBalanceType(value);
|
|
7790
|
+
break;
|
|
7791
|
+
case 4:
|
|
7792
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
7793
|
+
msg.setAmount(value);
|
|
7794
|
+
break;
|
|
7795
|
+
case 5:
|
|
7796
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7797
|
+
msg.setCurrency(value);
|
|
7798
|
+
break;
|
|
7799
|
+
case 6:
|
|
7800
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7801
|
+
msg.setCreated(value);
|
|
7802
|
+
break;
|
|
7803
|
+
default:
|
|
7804
|
+
reader.skipField();
|
|
7805
|
+
break;
|
|
7806
|
+
}
|
|
7807
|
+
}
|
|
7808
|
+
return msg;
|
|
7809
|
+
};
|
|
7810
|
+
|
|
7811
|
+
|
|
7812
|
+
/**
|
|
7813
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7814
|
+
* @return {!Uint8Array}
|
|
7815
|
+
*/
|
|
7816
|
+
proto.bet.SportBetListItem.prototype.serializeBinary = function() {
|
|
7817
|
+
var writer = new jspb.BinaryWriter();
|
|
7818
|
+
proto.bet.SportBetListItem.serializeBinaryToWriter(this, writer);
|
|
7819
|
+
return writer.getResultBuffer();
|
|
7820
|
+
};
|
|
7821
|
+
|
|
7822
|
+
|
|
7823
|
+
/**
|
|
7824
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7825
|
+
* format), writing to the given BinaryWriter.
|
|
7826
|
+
* @param {!proto.bet.SportBetListItem} message
|
|
7827
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7828
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7829
|
+
*/
|
|
7830
|
+
proto.bet.SportBetListItem.serializeBinaryToWriter = function(message, writer) {
|
|
7831
|
+
var f = undefined;
|
|
7832
|
+
f = message.getId();
|
|
7833
|
+
if (f !== 0) {
|
|
7834
|
+
writer.writeInt32(
|
|
7835
|
+
1,
|
|
7836
|
+
f
|
|
7837
|
+
);
|
|
7838
|
+
}
|
|
7839
|
+
f = message.getAction();
|
|
7840
|
+
if (f.length > 0) {
|
|
7841
|
+
writer.writeString(
|
|
7842
|
+
2,
|
|
7843
|
+
f
|
|
7844
|
+
);
|
|
7845
|
+
}
|
|
7846
|
+
f = message.getBalanceType();
|
|
7847
|
+
if (f.length > 0) {
|
|
7848
|
+
writer.writeString(
|
|
7849
|
+
3,
|
|
7850
|
+
f
|
|
7851
|
+
);
|
|
7852
|
+
}
|
|
7853
|
+
f = message.getAmount();
|
|
7854
|
+
if (f !== 0.0) {
|
|
7855
|
+
writer.writeFloat(
|
|
7856
|
+
4,
|
|
7857
|
+
f
|
|
7858
|
+
);
|
|
7859
|
+
}
|
|
7860
|
+
f = message.getCurrency();
|
|
7861
|
+
if (f.length > 0) {
|
|
7862
|
+
writer.writeString(
|
|
7863
|
+
5,
|
|
7864
|
+
f
|
|
7865
|
+
);
|
|
7866
|
+
}
|
|
7867
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
7868
|
+
if (f != null) {
|
|
7869
|
+
writer.writeString(
|
|
7870
|
+
6,
|
|
7871
|
+
f
|
|
7872
|
+
);
|
|
7873
|
+
}
|
|
7874
|
+
};
|
|
7875
|
+
|
|
7876
|
+
|
|
7877
|
+
/**
|
|
7878
|
+
* optional int32 id = 1;
|
|
7879
|
+
* @return {number}
|
|
7880
|
+
*/
|
|
7881
|
+
proto.bet.SportBetListItem.prototype.getId = function() {
|
|
7882
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
7883
|
+
};
|
|
7884
|
+
|
|
7885
|
+
|
|
7886
|
+
/**
|
|
7887
|
+
* @param {number} value
|
|
7888
|
+
* @return {!proto.bet.SportBetListItem} returns this
|
|
7889
|
+
*/
|
|
7890
|
+
proto.bet.SportBetListItem.prototype.setId = function(value) {
|
|
7891
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
7892
|
+
};
|
|
7893
|
+
|
|
7894
|
+
|
|
7895
|
+
/**
|
|
7896
|
+
* optional string action = 2;
|
|
7897
|
+
* @return {string}
|
|
7898
|
+
*/
|
|
7899
|
+
proto.bet.SportBetListItem.prototype.getAction = function() {
|
|
7900
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7901
|
+
};
|
|
7902
|
+
|
|
7903
|
+
|
|
7904
|
+
/**
|
|
7905
|
+
* @param {string} value
|
|
7906
|
+
* @return {!proto.bet.SportBetListItem} returns this
|
|
7907
|
+
*/
|
|
7908
|
+
proto.bet.SportBetListItem.prototype.setAction = function(value) {
|
|
7909
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7910
|
+
};
|
|
7911
|
+
|
|
7912
|
+
|
|
7913
|
+
/**
|
|
7914
|
+
* optional string balance_type = 3;
|
|
7915
|
+
* @return {string}
|
|
7916
|
+
*/
|
|
7917
|
+
proto.bet.SportBetListItem.prototype.getBalanceType = function() {
|
|
7918
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7919
|
+
};
|
|
7920
|
+
|
|
7921
|
+
|
|
7922
|
+
/**
|
|
7923
|
+
* @param {string} value
|
|
7924
|
+
* @return {!proto.bet.SportBetListItem} returns this
|
|
7925
|
+
*/
|
|
7926
|
+
proto.bet.SportBetListItem.prototype.setBalanceType = function(value) {
|
|
7927
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7928
|
+
};
|
|
7929
|
+
|
|
7930
|
+
|
|
7931
|
+
/**
|
|
7932
|
+
* optional float amount = 4;
|
|
7933
|
+
* @return {number}
|
|
7934
|
+
*/
|
|
7935
|
+
proto.bet.SportBetListItem.prototype.getAmount = function() {
|
|
7936
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
7937
|
+
};
|
|
7938
|
+
|
|
7939
|
+
|
|
7940
|
+
/**
|
|
7941
|
+
* @param {number} value
|
|
7942
|
+
* @return {!proto.bet.SportBetListItem} returns this
|
|
7943
|
+
*/
|
|
7944
|
+
proto.bet.SportBetListItem.prototype.setAmount = function(value) {
|
|
7945
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
7946
|
+
};
|
|
7947
|
+
|
|
7948
|
+
|
|
7949
|
+
/**
|
|
7950
|
+
* optional string currency = 5;
|
|
7951
|
+
* @return {string}
|
|
7952
|
+
*/
|
|
7953
|
+
proto.bet.SportBetListItem.prototype.getCurrency = function() {
|
|
7954
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
7955
|
+
};
|
|
7956
|
+
|
|
7957
|
+
|
|
7958
|
+
/**
|
|
7959
|
+
* @param {string} value
|
|
7960
|
+
* @return {!proto.bet.SportBetListItem} returns this
|
|
7961
|
+
*/
|
|
7962
|
+
proto.bet.SportBetListItem.prototype.setCurrency = function(value) {
|
|
7963
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
7964
|
+
};
|
|
7965
|
+
|
|
7966
|
+
|
|
7967
|
+
/**
|
|
7968
|
+
* optional string created = 6;
|
|
7969
|
+
* @return {string}
|
|
7970
|
+
*/
|
|
7971
|
+
proto.bet.SportBetListItem.prototype.getCreated = function() {
|
|
7972
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
7973
|
+
};
|
|
7974
|
+
|
|
7975
|
+
|
|
7976
|
+
/**
|
|
7977
|
+
* @param {string} value
|
|
7978
|
+
* @return {!proto.bet.SportBetListItem} returns this
|
|
7979
|
+
*/
|
|
7980
|
+
proto.bet.SportBetListItem.prototype.setCreated = function(value) {
|
|
7981
|
+
return jspb.Message.setField(this, 6, value);
|
|
7982
|
+
};
|
|
7983
|
+
|
|
7984
|
+
|
|
7985
|
+
/**
|
|
7986
|
+
* Clears the field making it undefined.
|
|
7987
|
+
* @return {!proto.bet.SportBetListItem} returns this
|
|
7988
|
+
*/
|
|
7989
|
+
proto.bet.SportBetListItem.prototype.clearCreated = function() {
|
|
7990
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
7991
|
+
};
|
|
7992
|
+
|
|
7993
|
+
|
|
7994
|
+
/**
|
|
7995
|
+
* Returns whether this field is set.
|
|
7996
|
+
* @return {boolean}
|
|
7997
|
+
*/
|
|
7998
|
+
proto.bet.SportBetListItem.prototype.hasCreated = function() {
|
|
7999
|
+
return jspb.Message.getField(this, 6) != null;
|
|
8000
|
+
};
|
|
8001
|
+
|
|
8002
|
+
|
|
8003
|
+
|
|
8004
|
+
/**
|
|
8005
|
+
* List of repeated fields within this message type.
|
|
8006
|
+
* @private {!Array<number>}
|
|
8007
|
+
* @const
|
|
8008
|
+
*/
|
|
8009
|
+
proto.bet.SportBetsHistoryResponse.repeatedFields_ = [1];
|
|
8010
|
+
|
|
8011
|
+
|
|
8012
|
+
|
|
8013
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8014
|
+
/**
|
|
8015
|
+
* Creates an object representation of this proto.
|
|
8016
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8017
|
+
* Optional fields that are not set will be set to undefined.
|
|
8018
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8019
|
+
* For the list of reserved names please see:
|
|
8020
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8021
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8022
|
+
* JSPB instance for transitional soy proto support:
|
|
8023
|
+
* http://goto/soy-param-migration
|
|
8024
|
+
* @return {!Object}
|
|
8025
|
+
*/
|
|
8026
|
+
proto.bet.SportBetsHistoryResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8027
|
+
return proto.bet.SportBetsHistoryResponse.toObject(opt_includeInstance, this);
|
|
8028
|
+
};
|
|
8029
|
+
|
|
8030
|
+
|
|
8031
|
+
/**
|
|
8032
|
+
* Static version of the {@see toObject} method.
|
|
8033
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8034
|
+
* the JSPB instance for transitional soy proto support:
|
|
8035
|
+
* http://goto/soy-param-migration
|
|
8036
|
+
* @param {!proto.bet.SportBetsHistoryResponse} msg The msg instance to transform.
|
|
8037
|
+
* @return {!Object}
|
|
8038
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8039
|
+
*/
|
|
8040
|
+
proto.bet.SportBetsHistoryResponse.toObject = function(includeInstance, msg) {
|
|
8041
|
+
var f, obj = {
|
|
8042
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
8043
|
+
proto.bet.SportBetListItem.toObject, includeInstance),
|
|
8044
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
8045
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
8046
|
+
};
|
|
8047
|
+
|
|
8048
|
+
if (includeInstance) {
|
|
8049
|
+
obj.$jspbMessageInstance = msg;
|
|
8050
|
+
}
|
|
8051
|
+
return obj;
|
|
8052
|
+
};
|
|
8053
|
+
}
|
|
8054
|
+
|
|
8055
|
+
|
|
8056
|
+
/**
|
|
8057
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8058
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8059
|
+
* @return {!proto.bet.SportBetsHistoryResponse}
|
|
8060
|
+
*/
|
|
8061
|
+
proto.bet.SportBetsHistoryResponse.deserializeBinary = function(bytes) {
|
|
8062
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8063
|
+
var msg = new proto.bet.SportBetsHistoryResponse;
|
|
8064
|
+
return proto.bet.SportBetsHistoryResponse.deserializeBinaryFromReader(msg, reader);
|
|
8065
|
+
};
|
|
8066
|
+
|
|
8067
|
+
|
|
8068
|
+
/**
|
|
8069
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8070
|
+
* given reader into the given message object.
|
|
8071
|
+
* @param {!proto.bet.SportBetsHistoryResponse} msg The message object to deserialize into.
|
|
8072
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8073
|
+
* @return {!proto.bet.SportBetsHistoryResponse}
|
|
8074
|
+
*/
|
|
8075
|
+
proto.bet.SportBetsHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8076
|
+
while (reader.nextField()) {
|
|
8077
|
+
if (reader.isEndGroup()) {
|
|
8078
|
+
break;
|
|
8079
|
+
}
|
|
8080
|
+
var field = reader.getFieldNumber();
|
|
8081
|
+
switch (field) {
|
|
8082
|
+
case 1:
|
|
8083
|
+
var value = new proto.bet.SportBetListItem;
|
|
8084
|
+
reader.readMessage(value,proto.bet.SportBetListItem.deserializeBinaryFromReader);
|
|
8085
|
+
msg.addItems(value);
|
|
8086
|
+
break;
|
|
8087
|
+
case 2:
|
|
8088
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8089
|
+
msg.setTotalPages(value);
|
|
8090
|
+
break;
|
|
8091
|
+
case 3:
|
|
8092
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8093
|
+
msg.setTotalItems(value);
|
|
8094
|
+
break;
|
|
8095
|
+
default:
|
|
8096
|
+
reader.skipField();
|
|
8097
|
+
break;
|
|
8098
|
+
}
|
|
8099
|
+
}
|
|
8100
|
+
return msg;
|
|
8101
|
+
};
|
|
8102
|
+
|
|
8103
|
+
|
|
8104
|
+
/**
|
|
8105
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8106
|
+
* @return {!Uint8Array}
|
|
8107
|
+
*/
|
|
8108
|
+
proto.bet.SportBetsHistoryResponse.prototype.serializeBinary = function() {
|
|
8109
|
+
var writer = new jspb.BinaryWriter();
|
|
8110
|
+
proto.bet.SportBetsHistoryResponse.serializeBinaryToWriter(this, writer);
|
|
8111
|
+
return writer.getResultBuffer();
|
|
8112
|
+
};
|
|
8113
|
+
|
|
8114
|
+
|
|
8115
|
+
/**
|
|
8116
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8117
|
+
* format), writing to the given BinaryWriter.
|
|
8118
|
+
* @param {!proto.bet.SportBetsHistoryResponse} message
|
|
8119
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8120
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8121
|
+
*/
|
|
8122
|
+
proto.bet.SportBetsHistoryResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8123
|
+
var f = undefined;
|
|
8124
|
+
f = message.getItemsList();
|
|
8125
|
+
if (f.length > 0) {
|
|
8126
|
+
writer.writeRepeatedMessage(
|
|
8127
|
+
1,
|
|
8128
|
+
f,
|
|
8129
|
+
proto.bet.SportBetListItem.serializeBinaryToWriter
|
|
8130
|
+
);
|
|
8131
|
+
}
|
|
8132
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
8133
|
+
if (f != null) {
|
|
8134
|
+
writer.writeInt32(
|
|
8135
|
+
2,
|
|
8136
|
+
f
|
|
8137
|
+
);
|
|
8138
|
+
}
|
|
8139
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
8140
|
+
if (f != null) {
|
|
8141
|
+
writer.writeInt32(
|
|
8142
|
+
3,
|
|
8143
|
+
f
|
|
8144
|
+
);
|
|
8145
|
+
}
|
|
8146
|
+
};
|
|
8147
|
+
|
|
8148
|
+
|
|
8149
|
+
/**
|
|
8150
|
+
* repeated SportBetListItem items = 1;
|
|
8151
|
+
* @return {!Array<!proto.bet.SportBetListItem>}
|
|
8152
|
+
*/
|
|
8153
|
+
proto.bet.SportBetsHistoryResponse.prototype.getItemsList = function() {
|
|
8154
|
+
return /** @type{!Array<!proto.bet.SportBetListItem>} */ (
|
|
8155
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bet.SportBetListItem, 1));
|
|
8156
|
+
};
|
|
8157
|
+
|
|
8158
|
+
|
|
8159
|
+
/**
|
|
8160
|
+
* @param {!Array<!proto.bet.SportBetListItem>} value
|
|
8161
|
+
* @return {!proto.bet.SportBetsHistoryResponse} returns this
|
|
8162
|
+
*/
|
|
8163
|
+
proto.bet.SportBetsHistoryResponse.prototype.setItemsList = function(value) {
|
|
8164
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
8165
|
+
};
|
|
8166
|
+
|
|
8167
|
+
|
|
8168
|
+
/**
|
|
8169
|
+
* @param {!proto.bet.SportBetListItem=} opt_value
|
|
8170
|
+
* @param {number=} opt_index
|
|
8171
|
+
* @return {!proto.bet.SportBetListItem}
|
|
8172
|
+
*/
|
|
8173
|
+
proto.bet.SportBetsHistoryResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
8174
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.SportBetListItem, opt_index);
|
|
8175
|
+
};
|
|
8176
|
+
|
|
8177
|
+
|
|
8178
|
+
/**
|
|
8179
|
+
* Clears the list making it empty but non-null.
|
|
8180
|
+
* @return {!proto.bet.SportBetsHistoryResponse} returns this
|
|
8181
|
+
*/
|
|
8182
|
+
proto.bet.SportBetsHistoryResponse.prototype.clearItemsList = function() {
|
|
8183
|
+
return this.setItemsList([]);
|
|
8184
|
+
};
|
|
8185
|
+
|
|
8186
|
+
|
|
8187
|
+
/**
|
|
8188
|
+
* optional int32 total_pages = 2;
|
|
8189
|
+
* @return {number}
|
|
8190
|
+
*/
|
|
8191
|
+
proto.bet.SportBetsHistoryResponse.prototype.getTotalPages = function() {
|
|
8192
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
8193
|
+
};
|
|
8194
|
+
|
|
8195
|
+
|
|
8196
|
+
/**
|
|
8197
|
+
* @param {number} value
|
|
8198
|
+
* @return {!proto.bet.SportBetsHistoryResponse} returns this
|
|
8199
|
+
*/
|
|
8200
|
+
proto.bet.SportBetsHistoryResponse.prototype.setTotalPages = function(value) {
|
|
8201
|
+
return jspb.Message.setField(this, 2, value);
|
|
8202
|
+
};
|
|
8203
|
+
|
|
8204
|
+
|
|
8205
|
+
/**
|
|
8206
|
+
* Clears the field making it undefined.
|
|
8207
|
+
* @return {!proto.bet.SportBetsHistoryResponse} returns this
|
|
8208
|
+
*/
|
|
8209
|
+
proto.bet.SportBetsHistoryResponse.prototype.clearTotalPages = function() {
|
|
8210
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
8211
|
+
};
|
|
8212
|
+
|
|
8213
|
+
|
|
8214
|
+
/**
|
|
8215
|
+
* Returns whether this field is set.
|
|
8216
|
+
* @return {boolean}
|
|
8217
|
+
*/
|
|
8218
|
+
proto.bet.SportBetsHistoryResponse.prototype.hasTotalPages = function() {
|
|
8219
|
+
return jspb.Message.getField(this, 2) != null;
|
|
8220
|
+
};
|
|
8221
|
+
|
|
8222
|
+
|
|
8223
|
+
/**
|
|
8224
|
+
* optional int32 total_items = 3;
|
|
8225
|
+
* @return {number}
|
|
8226
|
+
*/
|
|
8227
|
+
proto.bet.SportBetsHistoryResponse.prototype.getTotalItems = function() {
|
|
8228
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
8229
|
+
};
|
|
8230
|
+
|
|
8231
|
+
|
|
8232
|
+
/**
|
|
8233
|
+
* @param {number} value
|
|
8234
|
+
* @return {!proto.bet.SportBetsHistoryResponse} returns this
|
|
8235
|
+
*/
|
|
8236
|
+
proto.bet.SportBetsHistoryResponse.prototype.setTotalItems = function(value) {
|
|
8237
|
+
return jspb.Message.setField(this, 3, value);
|
|
8238
|
+
};
|
|
8239
|
+
|
|
8240
|
+
|
|
8241
|
+
/**
|
|
8242
|
+
* Clears the field making it undefined.
|
|
8243
|
+
* @return {!proto.bet.SportBetsHistoryResponse} returns this
|
|
8244
|
+
*/
|
|
8245
|
+
proto.bet.SportBetsHistoryResponse.prototype.clearTotalItems = function() {
|
|
8246
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
8247
|
+
};
|
|
8248
|
+
|
|
8249
|
+
|
|
8250
|
+
/**
|
|
8251
|
+
* Returns whether this field is set.
|
|
8252
|
+
* @return {boolean}
|
|
8253
|
+
*/
|
|
8254
|
+
proto.bet.SportBetsHistoryResponse.prototype.hasTotalItems = function() {
|
|
8255
|
+
return jspb.Message.getField(this, 3) != null;
|
|
8256
|
+
};
|
|
8257
|
+
|
|
8258
|
+
|
|
7156
8259
|
goog.object.extend(exports, proto.bet);
|