protobuf-platform 1.0.84 → 1.0.85
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 +25 -0
- package/bet/bet_grpc_pb.js +34 -0
- package/bet/bet_pb.js +1259 -0
- package/package.json +1 -1
package/bet/bet.proto
CHANGED
@@ -4,7 +4,32 @@ package bet;
|
|
4
4
|
|
5
5
|
service Bet {
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
7
|
+
//User bets info
|
8
|
+
rpc getBetsHistory(PaginationRequest) returns (BetsHistoryResponse);
|
7
9
|
}
|
8
10
|
|
9
11
|
message PingRequest { string ping = 1; }
|
10
12
|
message PongResponse { string pong = 1; }
|
13
|
+
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional UserSearchRequest user_search_params = 3; }
|
14
|
+
message UserSearchRequest {
|
15
|
+
optional string user_id = 1;
|
16
|
+
optional string balance_type = 2;
|
17
|
+
optional string currency = 3;
|
18
|
+
}
|
19
|
+
//User info
|
20
|
+
message UserBetItem {
|
21
|
+
string game_title = 1;
|
22
|
+
string action = 2;
|
23
|
+
string balance_type = 3;
|
24
|
+
float amount = 4;
|
25
|
+
optional string currency = 5;
|
26
|
+
optional string transaction_id = 6;
|
27
|
+
optional string session_id = 7;
|
28
|
+
optional string round_id = 8;
|
29
|
+
optional string created = 9;
|
30
|
+
}
|
31
|
+
message BetsHistoryResponse {
|
32
|
+
repeated UserBetItem items = 1;
|
33
|
+
optional int32 total_pages = 2;
|
34
|
+
optional int32 total_items = 3;
|
35
|
+
}
|
package/bet/bet_grpc_pb.js
CHANGED
@@ -4,6 +4,28 @@
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
5
5
|
var bet_pb = require('./bet_pb.js');
|
6
6
|
|
7
|
+
function serialize_bet_BetsHistoryResponse(arg) {
|
8
|
+
if (!(arg instanceof bet_pb.BetsHistoryResponse)) {
|
9
|
+
throw new Error('Expected argument of type bet.BetsHistoryResponse');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_bet_BetsHistoryResponse(buffer_arg) {
|
15
|
+
return bet_pb.BetsHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_bet_PaginationRequest(arg) {
|
19
|
+
if (!(arg instanceof bet_pb.PaginationRequest)) {
|
20
|
+
throw new Error('Expected argument of type bet.PaginationRequest');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_bet_PaginationRequest(buffer_arg) {
|
26
|
+
return bet_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
7
29
|
function serialize_bet_PingRequest(arg) {
|
8
30
|
if (!(arg instanceof bet_pb.PingRequest)) {
|
9
31
|
throw new Error('Expected argument of type bet.PingRequest');
|
@@ -39,6 +61,18 @@ var BetService = exports.BetService = {
|
|
39
61
|
responseSerialize: serialize_bet_PongResponse,
|
40
62
|
responseDeserialize: deserialize_bet_PongResponse,
|
41
63
|
},
|
64
|
+
// User bets info
|
65
|
+
getBetsHistory: {
|
66
|
+
path: '/bet.Bet/getBetsHistory',
|
67
|
+
requestStream: false,
|
68
|
+
responseStream: false,
|
69
|
+
requestType: bet_pb.PaginationRequest,
|
70
|
+
responseType: bet_pb.BetsHistoryResponse,
|
71
|
+
requestSerialize: serialize_bet_PaginationRequest,
|
72
|
+
requestDeserialize: deserialize_bet_PaginationRequest,
|
73
|
+
responseSerialize: serialize_bet_BetsHistoryResponse,
|
74
|
+
responseDeserialize: deserialize_bet_BetsHistoryResponse,
|
75
|
+
},
|
42
76
|
};
|
43
77
|
|
44
78
|
exports.BetClient = grpc.makeGenericClientConstructor(BetService);
|
package/bet/bet_pb.js
CHANGED
@@ -21,8 +21,12 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
+
goog.exportSymbol('proto.bet.BetsHistoryResponse', null, global);
|
25
|
+
goog.exportSymbol('proto.bet.PaginationRequest', null, global);
|
24
26
|
goog.exportSymbol('proto.bet.PingRequest', null, global);
|
25
27
|
goog.exportSymbol('proto.bet.PongResponse', null, global);
|
28
|
+
goog.exportSymbol('proto.bet.UserBetItem', null, global);
|
29
|
+
goog.exportSymbol('proto.bet.UserSearchRequest', null, global);
|
26
30
|
/**
|
27
31
|
* Generated by JsPbCodeGenerator.
|
28
32
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -65,6 +69,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
65
69
|
*/
|
66
70
|
proto.bet.PongResponse.displayName = 'proto.bet.PongResponse';
|
67
71
|
}
|
72
|
+
/**
|
73
|
+
* Generated by JsPbCodeGenerator.
|
74
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
75
|
+
* server response, or constructed directly in Javascript. The array is used
|
76
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
77
|
+
* If no data is provided, the constructed object will be empty, but still
|
78
|
+
* valid.
|
79
|
+
* @extends {jspb.Message}
|
80
|
+
* @constructor
|
81
|
+
*/
|
82
|
+
proto.bet.PaginationRequest = function(opt_data) {
|
83
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
84
|
+
};
|
85
|
+
goog.inherits(proto.bet.PaginationRequest, jspb.Message);
|
86
|
+
if (goog.DEBUG && !COMPILED) {
|
87
|
+
/**
|
88
|
+
* @public
|
89
|
+
* @override
|
90
|
+
*/
|
91
|
+
proto.bet.PaginationRequest.displayName = 'proto.bet.PaginationRequest';
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* Generated by JsPbCodeGenerator.
|
95
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
96
|
+
* server response, or constructed directly in Javascript. The array is used
|
97
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
98
|
+
* If no data is provided, the constructed object will be empty, but still
|
99
|
+
* valid.
|
100
|
+
* @extends {jspb.Message}
|
101
|
+
* @constructor
|
102
|
+
*/
|
103
|
+
proto.bet.UserSearchRequest = function(opt_data) {
|
104
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
105
|
+
};
|
106
|
+
goog.inherits(proto.bet.UserSearchRequest, jspb.Message);
|
107
|
+
if (goog.DEBUG && !COMPILED) {
|
108
|
+
/**
|
109
|
+
* @public
|
110
|
+
* @override
|
111
|
+
*/
|
112
|
+
proto.bet.UserSearchRequest.displayName = 'proto.bet.UserSearchRequest';
|
113
|
+
}
|
114
|
+
/**
|
115
|
+
* Generated by JsPbCodeGenerator.
|
116
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
117
|
+
* server response, or constructed directly in Javascript. The array is used
|
118
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
119
|
+
* If no data is provided, the constructed object will be empty, but still
|
120
|
+
* valid.
|
121
|
+
* @extends {jspb.Message}
|
122
|
+
* @constructor
|
123
|
+
*/
|
124
|
+
proto.bet.UserBetItem = function(opt_data) {
|
125
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
126
|
+
};
|
127
|
+
goog.inherits(proto.bet.UserBetItem, jspb.Message);
|
128
|
+
if (goog.DEBUG && !COMPILED) {
|
129
|
+
/**
|
130
|
+
* @public
|
131
|
+
* @override
|
132
|
+
*/
|
133
|
+
proto.bet.UserBetItem.displayName = 'proto.bet.UserBetItem';
|
134
|
+
}
|
135
|
+
/**
|
136
|
+
* Generated by JsPbCodeGenerator.
|
137
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
138
|
+
* server response, or constructed directly in Javascript. The array is used
|
139
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
140
|
+
* If no data is provided, the constructed object will be empty, but still
|
141
|
+
* valid.
|
142
|
+
* @extends {jspb.Message}
|
143
|
+
* @constructor
|
144
|
+
*/
|
145
|
+
proto.bet.BetsHistoryResponse = function(opt_data) {
|
146
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.BetsHistoryResponse.repeatedFields_, null);
|
147
|
+
};
|
148
|
+
goog.inherits(proto.bet.BetsHistoryResponse, jspb.Message);
|
149
|
+
if (goog.DEBUG && !COMPILED) {
|
150
|
+
/**
|
151
|
+
* @public
|
152
|
+
* @override
|
153
|
+
*/
|
154
|
+
proto.bet.BetsHistoryResponse.displayName = 'proto.bet.BetsHistoryResponse';
|
155
|
+
}
|
68
156
|
|
69
157
|
|
70
158
|
|
@@ -325,4 +413,1175 @@ proto.bet.PongResponse.prototype.setPong = function(value) {
|
|
325
413
|
};
|
326
414
|
|
327
415
|
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
420
|
+
/**
|
421
|
+
* Creates an object representation of this proto.
|
422
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
423
|
+
* Optional fields that are not set will be set to undefined.
|
424
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
425
|
+
* For the list of reserved names please see:
|
426
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
427
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
428
|
+
* JSPB instance for transitional soy proto support:
|
429
|
+
* http://goto/soy-param-migration
|
430
|
+
* @return {!Object}
|
431
|
+
*/
|
432
|
+
proto.bet.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
|
433
|
+
return proto.bet.PaginationRequest.toObject(opt_includeInstance, this);
|
434
|
+
};
|
435
|
+
|
436
|
+
|
437
|
+
/**
|
438
|
+
* Static version of the {@see toObject} method.
|
439
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
440
|
+
* the JSPB instance for transitional soy proto support:
|
441
|
+
* http://goto/soy-param-migration
|
442
|
+
* @param {!proto.bet.PaginationRequest} msg The msg instance to transform.
|
443
|
+
* @return {!Object}
|
444
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
445
|
+
*/
|
446
|
+
proto.bet.PaginationRequest.toObject = function(includeInstance, msg) {
|
447
|
+
var f, obj = {
|
448
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
449
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
450
|
+
userSearchParams: (f = msg.getUserSearchParams()) && proto.bet.UserSearchRequest.toObject(includeInstance, f)
|
451
|
+
};
|
452
|
+
|
453
|
+
if (includeInstance) {
|
454
|
+
obj.$jspbMessageInstance = msg;
|
455
|
+
}
|
456
|
+
return obj;
|
457
|
+
};
|
458
|
+
}
|
459
|
+
|
460
|
+
|
461
|
+
/**
|
462
|
+
* Deserializes binary data (in protobuf wire format).
|
463
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
464
|
+
* @return {!proto.bet.PaginationRequest}
|
465
|
+
*/
|
466
|
+
proto.bet.PaginationRequest.deserializeBinary = function(bytes) {
|
467
|
+
var reader = new jspb.BinaryReader(bytes);
|
468
|
+
var msg = new proto.bet.PaginationRequest;
|
469
|
+
return proto.bet.PaginationRequest.deserializeBinaryFromReader(msg, reader);
|
470
|
+
};
|
471
|
+
|
472
|
+
|
473
|
+
/**
|
474
|
+
* Deserializes binary data (in protobuf wire format) from the
|
475
|
+
* given reader into the given message object.
|
476
|
+
* @param {!proto.bet.PaginationRequest} msg The message object to deserialize into.
|
477
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
478
|
+
* @return {!proto.bet.PaginationRequest}
|
479
|
+
*/
|
480
|
+
proto.bet.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
481
|
+
while (reader.nextField()) {
|
482
|
+
if (reader.isEndGroup()) {
|
483
|
+
break;
|
484
|
+
}
|
485
|
+
var field = reader.getFieldNumber();
|
486
|
+
switch (field) {
|
487
|
+
case 1:
|
488
|
+
var value = /** @type {number} */ (reader.readInt32());
|
489
|
+
msg.setLimit(value);
|
490
|
+
break;
|
491
|
+
case 2:
|
492
|
+
var value = /** @type {number} */ (reader.readInt32());
|
493
|
+
msg.setOffset(value);
|
494
|
+
break;
|
495
|
+
case 3:
|
496
|
+
var value = new proto.bet.UserSearchRequest;
|
497
|
+
reader.readMessage(value,proto.bet.UserSearchRequest.deserializeBinaryFromReader);
|
498
|
+
msg.setUserSearchParams(value);
|
499
|
+
break;
|
500
|
+
default:
|
501
|
+
reader.skipField();
|
502
|
+
break;
|
503
|
+
}
|
504
|
+
}
|
505
|
+
return msg;
|
506
|
+
};
|
507
|
+
|
508
|
+
|
509
|
+
/**
|
510
|
+
* Serializes the message to binary data (in protobuf wire format).
|
511
|
+
* @return {!Uint8Array}
|
512
|
+
*/
|
513
|
+
proto.bet.PaginationRequest.prototype.serializeBinary = function() {
|
514
|
+
var writer = new jspb.BinaryWriter();
|
515
|
+
proto.bet.PaginationRequest.serializeBinaryToWriter(this, writer);
|
516
|
+
return writer.getResultBuffer();
|
517
|
+
};
|
518
|
+
|
519
|
+
|
520
|
+
/**
|
521
|
+
* Serializes the given message to binary data (in protobuf wire
|
522
|
+
* format), writing to the given BinaryWriter.
|
523
|
+
* @param {!proto.bet.PaginationRequest} message
|
524
|
+
* @param {!jspb.BinaryWriter} writer
|
525
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
526
|
+
*/
|
527
|
+
proto.bet.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
|
528
|
+
var f = undefined;
|
529
|
+
f = message.getLimit();
|
530
|
+
if (f !== 0) {
|
531
|
+
writer.writeInt32(
|
532
|
+
1,
|
533
|
+
f
|
534
|
+
);
|
535
|
+
}
|
536
|
+
f = message.getOffset();
|
537
|
+
if (f !== 0) {
|
538
|
+
writer.writeInt32(
|
539
|
+
2,
|
540
|
+
f
|
541
|
+
);
|
542
|
+
}
|
543
|
+
f = message.getUserSearchParams();
|
544
|
+
if (f != null) {
|
545
|
+
writer.writeMessage(
|
546
|
+
3,
|
547
|
+
f,
|
548
|
+
proto.bet.UserSearchRequest.serializeBinaryToWriter
|
549
|
+
);
|
550
|
+
}
|
551
|
+
};
|
552
|
+
|
553
|
+
|
554
|
+
/**
|
555
|
+
* optional int32 limit = 1;
|
556
|
+
* @return {number}
|
557
|
+
*/
|
558
|
+
proto.bet.PaginationRequest.prototype.getLimit = function() {
|
559
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
560
|
+
};
|
561
|
+
|
562
|
+
|
563
|
+
/**
|
564
|
+
* @param {number} value
|
565
|
+
* @return {!proto.bet.PaginationRequest} returns this
|
566
|
+
*/
|
567
|
+
proto.bet.PaginationRequest.prototype.setLimit = function(value) {
|
568
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
569
|
+
};
|
570
|
+
|
571
|
+
|
572
|
+
/**
|
573
|
+
* optional int32 offset = 2;
|
574
|
+
* @return {number}
|
575
|
+
*/
|
576
|
+
proto.bet.PaginationRequest.prototype.getOffset = function() {
|
577
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
578
|
+
};
|
579
|
+
|
580
|
+
|
581
|
+
/**
|
582
|
+
* @param {number} value
|
583
|
+
* @return {!proto.bet.PaginationRequest} returns this
|
584
|
+
*/
|
585
|
+
proto.bet.PaginationRequest.prototype.setOffset = function(value) {
|
586
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
587
|
+
};
|
588
|
+
|
589
|
+
|
590
|
+
/**
|
591
|
+
* optional UserSearchRequest user_search_params = 3;
|
592
|
+
* @return {?proto.bet.UserSearchRequest}
|
593
|
+
*/
|
594
|
+
proto.bet.PaginationRequest.prototype.getUserSearchParams = function() {
|
595
|
+
return /** @type{?proto.bet.UserSearchRequest} */ (
|
596
|
+
jspb.Message.getWrapperField(this, proto.bet.UserSearchRequest, 3));
|
597
|
+
};
|
598
|
+
|
599
|
+
|
600
|
+
/**
|
601
|
+
* @param {?proto.bet.UserSearchRequest|undefined} value
|
602
|
+
* @return {!proto.bet.PaginationRequest} returns this
|
603
|
+
*/
|
604
|
+
proto.bet.PaginationRequest.prototype.setUserSearchParams = function(value) {
|
605
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
606
|
+
};
|
607
|
+
|
608
|
+
|
609
|
+
/**
|
610
|
+
* Clears the message field making it undefined.
|
611
|
+
* @return {!proto.bet.PaginationRequest} returns this
|
612
|
+
*/
|
613
|
+
proto.bet.PaginationRequest.prototype.clearUserSearchParams = function() {
|
614
|
+
return this.setUserSearchParams(undefined);
|
615
|
+
};
|
616
|
+
|
617
|
+
|
618
|
+
/**
|
619
|
+
* Returns whether this field is set.
|
620
|
+
* @return {boolean}
|
621
|
+
*/
|
622
|
+
proto.bet.PaginationRequest.prototype.hasUserSearchParams = function() {
|
623
|
+
return jspb.Message.getField(this, 3) != null;
|
624
|
+
};
|
625
|
+
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
631
|
+
/**
|
632
|
+
* Creates an object representation of this proto.
|
633
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
634
|
+
* Optional fields that are not set will be set to undefined.
|
635
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
636
|
+
* For the list of reserved names please see:
|
637
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
638
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
639
|
+
* JSPB instance for transitional soy proto support:
|
640
|
+
* http://goto/soy-param-migration
|
641
|
+
* @return {!Object}
|
642
|
+
*/
|
643
|
+
proto.bet.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
644
|
+
return proto.bet.UserSearchRequest.toObject(opt_includeInstance, this);
|
645
|
+
};
|
646
|
+
|
647
|
+
|
648
|
+
/**
|
649
|
+
* Static version of the {@see toObject} method.
|
650
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
651
|
+
* the JSPB instance for transitional soy proto support:
|
652
|
+
* http://goto/soy-param-migration
|
653
|
+
* @param {!proto.bet.UserSearchRequest} msg The msg instance to transform.
|
654
|
+
* @return {!Object}
|
655
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
656
|
+
*/
|
657
|
+
proto.bet.UserSearchRequest.toObject = function(includeInstance, msg) {
|
658
|
+
var f, obj = {
|
659
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
660
|
+
balanceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
661
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
662
|
+
};
|
663
|
+
|
664
|
+
if (includeInstance) {
|
665
|
+
obj.$jspbMessageInstance = msg;
|
666
|
+
}
|
667
|
+
return obj;
|
668
|
+
};
|
669
|
+
}
|
670
|
+
|
671
|
+
|
672
|
+
/**
|
673
|
+
* Deserializes binary data (in protobuf wire format).
|
674
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
675
|
+
* @return {!proto.bet.UserSearchRequest}
|
676
|
+
*/
|
677
|
+
proto.bet.UserSearchRequest.deserializeBinary = function(bytes) {
|
678
|
+
var reader = new jspb.BinaryReader(bytes);
|
679
|
+
var msg = new proto.bet.UserSearchRequest;
|
680
|
+
return proto.bet.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
|
681
|
+
};
|
682
|
+
|
683
|
+
|
684
|
+
/**
|
685
|
+
* Deserializes binary data (in protobuf wire format) from the
|
686
|
+
* given reader into the given message object.
|
687
|
+
* @param {!proto.bet.UserSearchRequest} msg The message object to deserialize into.
|
688
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
689
|
+
* @return {!proto.bet.UserSearchRequest}
|
690
|
+
*/
|
691
|
+
proto.bet.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
692
|
+
while (reader.nextField()) {
|
693
|
+
if (reader.isEndGroup()) {
|
694
|
+
break;
|
695
|
+
}
|
696
|
+
var field = reader.getFieldNumber();
|
697
|
+
switch (field) {
|
698
|
+
case 1:
|
699
|
+
var value = /** @type {string} */ (reader.readString());
|
700
|
+
msg.setUserId(value);
|
701
|
+
break;
|
702
|
+
case 2:
|
703
|
+
var value = /** @type {string} */ (reader.readString());
|
704
|
+
msg.setBalanceType(value);
|
705
|
+
break;
|
706
|
+
case 3:
|
707
|
+
var value = /** @type {string} */ (reader.readString());
|
708
|
+
msg.setCurrency(value);
|
709
|
+
break;
|
710
|
+
default:
|
711
|
+
reader.skipField();
|
712
|
+
break;
|
713
|
+
}
|
714
|
+
}
|
715
|
+
return msg;
|
716
|
+
};
|
717
|
+
|
718
|
+
|
719
|
+
/**
|
720
|
+
* Serializes the message to binary data (in protobuf wire format).
|
721
|
+
* @return {!Uint8Array}
|
722
|
+
*/
|
723
|
+
proto.bet.UserSearchRequest.prototype.serializeBinary = function() {
|
724
|
+
var writer = new jspb.BinaryWriter();
|
725
|
+
proto.bet.UserSearchRequest.serializeBinaryToWriter(this, writer);
|
726
|
+
return writer.getResultBuffer();
|
727
|
+
};
|
728
|
+
|
729
|
+
|
730
|
+
/**
|
731
|
+
* Serializes the given message to binary data (in protobuf wire
|
732
|
+
* format), writing to the given BinaryWriter.
|
733
|
+
* @param {!proto.bet.UserSearchRequest} message
|
734
|
+
* @param {!jspb.BinaryWriter} writer
|
735
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
736
|
+
*/
|
737
|
+
proto.bet.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
738
|
+
var f = undefined;
|
739
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
740
|
+
if (f != null) {
|
741
|
+
writer.writeString(
|
742
|
+
1,
|
743
|
+
f
|
744
|
+
);
|
745
|
+
}
|
746
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
747
|
+
if (f != null) {
|
748
|
+
writer.writeString(
|
749
|
+
2,
|
750
|
+
f
|
751
|
+
);
|
752
|
+
}
|
753
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
754
|
+
if (f != null) {
|
755
|
+
writer.writeString(
|
756
|
+
3,
|
757
|
+
f
|
758
|
+
);
|
759
|
+
}
|
760
|
+
};
|
761
|
+
|
762
|
+
|
763
|
+
/**
|
764
|
+
* optional string user_id = 1;
|
765
|
+
* @return {string}
|
766
|
+
*/
|
767
|
+
proto.bet.UserSearchRequest.prototype.getUserId = function() {
|
768
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
769
|
+
};
|
770
|
+
|
771
|
+
|
772
|
+
/**
|
773
|
+
* @param {string} value
|
774
|
+
* @return {!proto.bet.UserSearchRequest} returns this
|
775
|
+
*/
|
776
|
+
proto.bet.UserSearchRequest.prototype.setUserId = function(value) {
|
777
|
+
return jspb.Message.setField(this, 1, value);
|
778
|
+
};
|
779
|
+
|
780
|
+
|
781
|
+
/**
|
782
|
+
* Clears the field making it undefined.
|
783
|
+
* @return {!proto.bet.UserSearchRequest} returns this
|
784
|
+
*/
|
785
|
+
proto.bet.UserSearchRequest.prototype.clearUserId = function() {
|
786
|
+
return jspb.Message.setField(this, 1, undefined);
|
787
|
+
};
|
788
|
+
|
789
|
+
|
790
|
+
/**
|
791
|
+
* Returns whether this field is set.
|
792
|
+
* @return {boolean}
|
793
|
+
*/
|
794
|
+
proto.bet.UserSearchRequest.prototype.hasUserId = function() {
|
795
|
+
return jspb.Message.getField(this, 1) != null;
|
796
|
+
};
|
797
|
+
|
798
|
+
|
799
|
+
/**
|
800
|
+
* optional string balance_type = 2;
|
801
|
+
* @return {string}
|
802
|
+
*/
|
803
|
+
proto.bet.UserSearchRequest.prototype.getBalanceType = function() {
|
804
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
805
|
+
};
|
806
|
+
|
807
|
+
|
808
|
+
/**
|
809
|
+
* @param {string} value
|
810
|
+
* @return {!proto.bet.UserSearchRequest} returns this
|
811
|
+
*/
|
812
|
+
proto.bet.UserSearchRequest.prototype.setBalanceType = function(value) {
|
813
|
+
return jspb.Message.setField(this, 2, value);
|
814
|
+
};
|
815
|
+
|
816
|
+
|
817
|
+
/**
|
818
|
+
* Clears the field making it undefined.
|
819
|
+
* @return {!proto.bet.UserSearchRequest} returns this
|
820
|
+
*/
|
821
|
+
proto.bet.UserSearchRequest.prototype.clearBalanceType = function() {
|
822
|
+
return jspb.Message.setField(this, 2, undefined);
|
823
|
+
};
|
824
|
+
|
825
|
+
|
826
|
+
/**
|
827
|
+
* Returns whether this field is set.
|
828
|
+
* @return {boolean}
|
829
|
+
*/
|
830
|
+
proto.bet.UserSearchRequest.prototype.hasBalanceType = function() {
|
831
|
+
return jspb.Message.getField(this, 2) != null;
|
832
|
+
};
|
833
|
+
|
834
|
+
|
835
|
+
/**
|
836
|
+
* optional string currency = 3;
|
837
|
+
* @return {string}
|
838
|
+
*/
|
839
|
+
proto.bet.UserSearchRequest.prototype.getCurrency = function() {
|
840
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
841
|
+
};
|
842
|
+
|
843
|
+
|
844
|
+
/**
|
845
|
+
* @param {string} value
|
846
|
+
* @return {!proto.bet.UserSearchRequest} returns this
|
847
|
+
*/
|
848
|
+
proto.bet.UserSearchRequest.prototype.setCurrency = function(value) {
|
849
|
+
return jspb.Message.setField(this, 3, value);
|
850
|
+
};
|
851
|
+
|
852
|
+
|
853
|
+
/**
|
854
|
+
* Clears the field making it undefined.
|
855
|
+
* @return {!proto.bet.UserSearchRequest} returns this
|
856
|
+
*/
|
857
|
+
proto.bet.UserSearchRequest.prototype.clearCurrency = function() {
|
858
|
+
return jspb.Message.setField(this, 3, undefined);
|
859
|
+
};
|
860
|
+
|
861
|
+
|
862
|
+
/**
|
863
|
+
* Returns whether this field is set.
|
864
|
+
* @return {boolean}
|
865
|
+
*/
|
866
|
+
proto.bet.UserSearchRequest.prototype.hasCurrency = function() {
|
867
|
+
return jspb.Message.getField(this, 3) != null;
|
868
|
+
};
|
869
|
+
|
870
|
+
|
871
|
+
|
872
|
+
|
873
|
+
|
874
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
875
|
+
/**
|
876
|
+
* Creates an object representation of this proto.
|
877
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
878
|
+
* Optional fields that are not set will be set to undefined.
|
879
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
880
|
+
* For the list of reserved names please see:
|
881
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
882
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
883
|
+
* JSPB instance for transitional soy proto support:
|
884
|
+
* http://goto/soy-param-migration
|
885
|
+
* @return {!Object}
|
886
|
+
*/
|
887
|
+
proto.bet.UserBetItem.prototype.toObject = function(opt_includeInstance) {
|
888
|
+
return proto.bet.UserBetItem.toObject(opt_includeInstance, this);
|
889
|
+
};
|
890
|
+
|
891
|
+
|
892
|
+
/**
|
893
|
+
* Static version of the {@see toObject} method.
|
894
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
895
|
+
* the JSPB instance for transitional soy proto support:
|
896
|
+
* http://goto/soy-param-migration
|
897
|
+
* @param {!proto.bet.UserBetItem} msg The msg instance to transform.
|
898
|
+
* @return {!Object}
|
899
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
900
|
+
*/
|
901
|
+
proto.bet.UserBetItem.toObject = function(includeInstance, msg) {
|
902
|
+
var f, obj = {
|
903
|
+
gameTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
904
|
+
action: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
905
|
+
balanceType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
906
|
+
amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
907
|
+
currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
908
|
+
transactionId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
909
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
910
|
+
roundId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
911
|
+
created: jspb.Message.getFieldWithDefault(msg, 9, "")
|
912
|
+
};
|
913
|
+
|
914
|
+
if (includeInstance) {
|
915
|
+
obj.$jspbMessageInstance = msg;
|
916
|
+
}
|
917
|
+
return obj;
|
918
|
+
};
|
919
|
+
}
|
920
|
+
|
921
|
+
|
922
|
+
/**
|
923
|
+
* Deserializes binary data (in protobuf wire format).
|
924
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
925
|
+
* @return {!proto.bet.UserBetItem}
|
926
|
+
*/
|
927
|
+
proto.bet.UserBetItem.deserializeBinary = function(bytes) {
|
928
|
+
var reader = new jspb.BinaryReader(bytes);
|
929
|
+
var msg = new proto.bet.UserBetItem;
|
930
|
+
return proto.bet.UserBetItem.deserializeBinaryFromReader(msg, reader);
|
931
|
+
};
|
932
|
+
|
933
|
+
|
934
|
+
/**
|
935
|
+
* Deserializes binary data (in protobuf wire format) from the
|
936
|
+
* given reader into the given message object.
|
937
|
+
* @param {!proto.bet.UserBetItem} msg The message object to deserialize into.
|
938
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
939
|
+
* @return {!proto.bet.UserBetItem}
|
940
|
+
*/
|
941
|
+
proto.bet.UserBetItem.deserializeBinaryFromReader = function(msg, reader) {
|
942
|
+
while (reader.nextField()) {
|
943
|
+
if (reader.isEndGroup()) {
|
944
|
+
break;
|
945
|
+
}
|
946
|
+
var field = reader.getFieldNumber();
|
947
|
+
switch (field) {
|
948
|
+
case 1:
|
949
|
+
var value = /** @type {string} */ (reader.readString());
|
950
|
+
msg.setGameTitle(value);
|
951
|
+
break;
|
952
|
+
case 2:
|
953
|
+
var value = /** @type {string} */ (reader.readString());
|
954
|
+
msg.setAction(value);
|
955
|
+
break;
|
956
|
+
case 3:
|
957
|
+
var value = /** @type {string} */ (reader.readString());
|
958
|
+
msg.setBalanceType(value);
|
959
|
+
break;
|
960
|
+
case 4:
|
961
|
+
var value = /** @type {number} */ (reader.readFloat());
|
962
|
+
msg.setAmount(value);
|
963
|
+
break;
|
964
|
+
case 5:
|
965
|
+
var value = /** @type {string} */ (reader.readString());
|
966
|
+
msg.setCurrency(value);
|
967
|
+
break;
|
968
|
+
case 6:
|
969
|
+
var value = /** @type {string} */ (reader.readString());
|
970
|
+
msg.setTransactionId(value);
|
971
|
+
break;
|
972
|
+
case 7:
|
973
|
+
var value = /** @type {string} */ (reader.readString());
|
974
|
+
msg.setSessionId(value);
|
975
|
+
break;
|
976
|
+
case 8:
|
977
|
+
var value = /** @type {string} */ (reader.readString());
|
978
|
+
msg.setRoundId(value);
|
979
|
+
break;
|
980
|
+
case 9:
|
981
|
+
var value = /** @type {string} */ (reader.readString());
|
982
|
+
msg.setCreated(value);
|
983
|
+
break;
|
984
|
+
default:
|
985
|
+
reader.skipField();
|
986
|
+
break;
|
987
|
+
}
|
988
|
+
}
|
989
|
+
return msg;
|
990
|
+
};
|
991
|
+
|
992
|
+
|
993
|
+
/**
|
994
|
+
* Serializes the message to binary data (in protobuf wire format).
|
995
|
+
* @return {!Uint8Array}
|
996
|
+
*/
|
997
|
+
proto.bet.UserBetItem.prototype.serializeBinary = function() {
|
998
|
+
var writer = new jspb.BinaryWriter();
|
999
|
+
proto.bet.UserBetItem.serializeBinaryToWriter(this, writer);
|
1000
|
+
return writer.getResultBuffer();
|
1001
|
+
};
|
1002
|
+
|
1003
|
+
|
1004
|
+
/**
|
1005
|
+
* Serializes the given message to binary data (in protobuf wire
|
1006
|
+
* format), writing to the given BinaryWriter.
|
1007
|
+
* @param {!proto.bet.UserBetItem} message
|
1008
|
+
* @param {!jspb.BinaryWriter} writer
|
1009
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1010
|
+
*/
|
1011
|
+
proto.bet.UserBetItem.serializeBinaryToWriter = function(message, writer) {
|
1012
|
+
var f = undefined;
|
1013
|
+
f = message.getGameTitle();
|
1014
|
+
if (f.length > 0) {
|
1015
|
+
writer.writeString(
|
1016
|
+
1,
|
1017
|
+
f
|
1018
|
+
);
|
1019
|
+
}
|
1020
|
+
f = message.getAction();
|
1021
|
+
if (f.length > 0) {
|
1022
|
+
writer.writeString(
|
1023
|
+
2,
|
1024
|
+
f
|
1025
|
+
);
|
1026
|
+
}
|
1027
|
+
f = message.getBalanceType();
|
1028
|
+
if (f.length > 0) {
|
1029
|
+
writer.writeString(
|
1030
|
+
3,
|
1031
|
+
f
|
1032
|
+
);
|
1033
|
+
}
|
1034
|
+
f = message.getAmount();
|
1035
|
+
if (f !== 0.0) {
|
1036
|
+
writer.writeFloat(
|
1037
|
+
4,
|
1038
|
+
f
|
1039
|
+
);
|
1040
|
+
}
|
1041
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
1042
|
+
if (f != null) {
|
1043
|
+
writer.writeString(
|
1044
|
+
5,
|
1045
|
+
f
|
1046
|
+
);
|
1047
|
+
}
|
1048
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
1049
|
+
if (f != null) {
|
1050
|
+
writer.writeString(
|
1051
|
+
6,
|
1052
|
+
f
|
1053
|
+
);
|
1054
|
+
}
|
1055
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
1056
|
+
if (f != null) {
|
1057
|
+
writer.writeString(
|
1058
|
+
7,
|
1059
|
+
f
|
1060
|
+
);
|
1061
|
+
}
|
1062
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
1063
|
+
if (f != null) {
|
1064
|
+
writer.writeString(
|
1065
|
+
8,
|
1066
|
+
f
|
1067
|
+
);
|
1068
|
+
}
|
1069
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
1070
|
+
if (f != null) {
|
1071
|
+
writer.writeString(
|
1072
|
+
9,
|
1073
|
+
f
|
1074
|
+
);
|
1075
|
+
}
|
1076
|
+
};
|
1077
|
+
|
1078
|
+
|
1079
|
+
/**
|
1080
|
+
* optional string game_title = 1;
|
1081
|
+
* @return {string}
|
1082
|
+
*/
|
1083
|
+
proto.bet.UserBetItem.prototype.getGameTitle = function() {
|
1084
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1085
|
+
};
|
1086
|
+
|
1087
|
+
|
1088
|
+
/**
|
1089
|
+
* @param {string} value
|
1090
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1091
|
+
*/
|
1092
|
+
proto.bet.UserBetItem.prototype.setGameTitle = function(value) {
|
1093
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
1094
|
+
};
|
1095
|
+
|
1096
|
+
|
1097
|
+
/**
|
1098
|
+
* optional string action = 2;
|
1099
|
+
* @return {string}
|
1100
|
+
*/
|
1101
|
+
proto.bet.UserBetItem.prototype.getAction = function() {
|
1102
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1103
|
+
};
|
1104
|
+
|
1105
|
+
|
1106
|
+
/**
|
1107
|
+
* @param {string} value
|
1108
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1109
|
+
*/
|
1110
|
+
proto.bet.UserBetItem.prototype.setAction = function(value) {
|
1111
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
1112
|
+
};
|
1113
|
+
|
1114
|
+
|
1115
|
+
/**
|
1116
|
+
* optional string balance_type = 3;
|
1117
|
+
* @return {string}
|
1118
|
+
*/
|
1119
|
+
proto.bet.UserBetItem.prototype.getBalanceType = function() {
|
1120
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1121
|
+
};
|
1122
|
+
|
1123
|
+
|
1124
|
+
/**
|
1125
|
+
* @param {string} value
|
1126
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1127
|
+
*/
|
1128
|
+
proto.bet.UserBetItem.prototype.setBalanceType = function(value) {
|
1129
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
1130
|
+
};
|
1131
|
+
|
1132
|
+
|
1133
|
+
/**
|
1134
|
+
* optional float amount = 4;
|
1135
|
+
* @return {number}
|
1136
|
+
*/
|
1137
|
+
proto.bet.UserBetItem.prototype.getAmount = function() {
|
1138
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
1139
|
+
};
|
1140
|
+
|
1141
|
+
|
1142
|
+
/**
|
1143
|
+
* @param {number} value
|
1144
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1145
|
+
*/
|
1146
|
+
proto.bet.UserBetItem.prototype.setAmount = function(value) {
|
1147
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
1148
|
+
};
|
1149
|
+
|
1150
|
+
|
1151
|
+
/**
|
1152
|
+
* optional string currency = 5;
|
1153
|
+
* @return {string}
|
1154
|
+
*/
|
1155
|
+
proto.bet.UserBetItem.prototype.getCurrency = function() {
|
1156
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
1157
|
+
};
|
1158
|
+
|
1159
|
+
|
1160
|
+
/**
|
1161
|
+
* @param {string} value
|
1162
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1163
|
+
*/
|
1164
|
+
proto.bet.UserBetItem.prototype.setCurrency = function(value) {
|
1165
|
+
return jspb.Message.setField(this, 5, value);
|
1166
|
+
};
|
1167
|
+
|
1168
|
+
|
1169
|
+
/**
|
1170
|
+
* Clears the field making it undefined.
|
1171
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1172
|
+
*/
|
1173
|
+
proto.bet.UserBetItem.prototype.clearCurrency = function() {
|
1174
|
+
return jspb.Message.setField(this, 5, undefined);
|
1175
|
+
};
|
1176
|
+
|
1177
|
+
|
1178
|
+
/**
|
1179
|
+
* Returns whether this field is set.
|
1180
|
+
* @return {boolean}
|
1181
|
+
*/
|
1182
|
+
proto.bet.UserBetItem.prototype.hasCurrency = function() {
|
1183
|
+
return jspb.Message.getField(this, 5) != null;
|
1184
|
+
};
|
1185
|
+
|
1186
|
+
|
1187
|
+
/**
|
1188
|
+
* optional string transaction_id = 6;
|
1189
|
+
* @return {string}
|
1190
|
+
*/
|
1191
|
+
proto.bet.UserBetItem.prototype.getTransactionId = function() {
|
1192
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1193
|
+
};
|
1194
|
+
|
1195
|
+
|
1196
|
+
/**
|
1197
|
+
* @param {string} value
|
1198
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1199
|
+
*/
|
1200
|
+
proto.bet.UserBetItem.prototype.setTransactionId = function(value) {
|
1201
|
+
return jspb.Message.setField(this, 6, value);
|
1202
|
+
};
|
1203
|
+
|
1204
|
+
|
1205
|
+
/**
|
1206
|
+
* Clears the field making it undefined.
|
1207
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1208
|
+
*/
|
1209
|
+
proto.bet.UserBetItem.prototype.clearTransactionId = function() {
|
1210
|
+
return jspb.Message.setField(this, 6, undefined);
|
1211
|
+
};
|
1212
|
+
|
1213
|
+
|
1214
|
+
/**
|
1215
|
+
* Returns whether this field is set.
|
1216
|
+
* @return {boolean}
|
1217
|
+
*/
|
1218
|
+
proto.bet.UserBetItem.prototype.hasTransactionId = function() {
|
1219
|
+
return jspb.Message.getField(this, 6) != null;
|
1220
|
+
};
|
1221
|
+
|
1222
|
+
|
1223
|
+
/**
|
1224
|
+
* optional string session_id = 7;
|
1225
|
+
* @return {string}
|
1226
|
+
*/
|
1227
|
+
proto.bet.UserBetItem.prototype.getSessionId = function() {
|
1228
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
1229
|
+
};
|
1230
|
+
|
1231
|
+
|
1232
|
+
/**
|
1233
|
+
* @param {string} value
|
1234
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1235
|
+
*/
|
1236
|
+
proto.bet.UserBetItem.prototype.setSessionId = function(value) {
|
1237
|
+
return jspb.Message.setField(this, 7, value);
|
1238
|
+
};
|
1239
|
+
|
1240
|
+
|
1241
|
+
/**
|
1242
|
+
* Clears the field making it undefined.
|
1243
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1244
|
+
*/
|
1245
|
+
proto.bet.UserBetItem.prototype.clearSessionId = function() {
|
1246
|
+
return jspb.Message.setField(this, 7, undefined);
|
1247
|
+
};
|
1248
|
+
|
1249
|
+
|
1250
|
+
/**
|
1251
|
+
* Returns whether this field is set.
|
1252
|
+
* @return {boolean}
|
1253
|
+
*/
|
1254
|
+
proto.bet.UserBetItem.prototype.hasSessionId = function() {
|
1255
|
+
return jspb.Message.getField(this, 7) != null;
|
1256
|
+
};
|
1257
|
+
|
1258
|
+
|
1259
|
+
/**
|
1260
|
+
* optional string round_id = 8;
|
1261
|
+
* @return {string}
|
1262
|
+
*/
|
1263
|
+
proto.bet.UserBetItem.prototype.getRoundId = function() {
|
1264
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
1265
|
+
};
|
1266
|
+
|
1267
|
+
|
1268
|
+
/**
|
1269
|
+
* @param {string} value
|
1270
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1271
|
+
*/
|
1272
|
+
proto.bet.UserBetItem.prototype.setRoundId = function(value) {
|
1273
|
+
return jspb.Message.setField(this, 8, value);
|
1274
|
+
};
|
1275
|
+
|
1276
|
+
|
1277
|
+
/**
|
1278
|
+
* Clears the field making it undefined.
|
1279
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1280
|
+
*/
|
1281
|
+
proto.bet.UserBetItem.prototype.clearRoundId = function() {
|
1282
|
+
return jspb.Message.setField(this, 8, undefined);
|
1283
|
+
};
|
1284
|
+
|
1285
|
+
|
1286
|
+
/**
|
1287
|
+
* Returns whether this field is set.
|
1288
|
+
* @return {boolean}
|
1289
|
+
*/
|
1290
|
+
proto.bet.UserBetItem.prototype.hasRoundId = function() {
|
1291
|
+
return jspb.Message.getField(this, 8) != null;
|
1292
|
+
};
|
1293
|
+
|
1294
|
+
|
1295
|
+
/**
|
1296
|
+
* optional string created = 9;
|
1297
|
+
* @return {string}
|
1298
|
+
*/
|
1299
|
+
proto.bet.UserBetItem.prototype.getCreated = function() {
|
1300
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
1301
|
+
};
|
1302
|
+
|
1303
|
+
|
1304
|
+
/**
|
1305
|
+
* @param {string} value
|
1306
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1307
|
+
*/
|
1308
|
+
proto.bet.UserBetItem.prototype.setCreated = function(value) {
|
1309
|
+
return jspb.Message.setField(this, 9, value);
|
1310
|
+
};
|
1311
|
+
|
1312
|
+
|
1313
|
+
/**
|
1314
|
+
* Clears the field making it undefined.
|
1315
|
+
* @return {!proto.bet.UserBetItem} returns this
|
1316
|
+
*/
|
1317
|
+
proto.bet.UserBetItem.prototype.clearCreated = function() {
|
1318
|
+
return jspb.Message.setField(this, 9, undefined);
|
1319
|
+
};
|
1320
|
+
|
1321
|
+
|
1322
|
+
/**
|
1323
|
+
* Returns whether this field is set.
|
1324
|
+
* @return {boolean}
|
1325
|
+
*/
|
1326
|
+
proto.bet.UserBetItem.prototype.hasCreated = function() {
|
1327
|
+
return jspb.Message.getField(this, 9) != null;
|
1328
|
+
};
|
1329
|
+
|
1330
|
+
|
1331
|
+
|
1332
|
+
/**
|
1333
|
+
* List of repeated fields within this message type.
|
1334
|
+
* @private {!Array<number>}
|
1335
|
+
* @const
|
1336
|
+
*/
|
1337
|
+
proto.bet.BetsHistoryResponse.repeatedFields_ = [1];
|
1338
|
+
|
1339
|
+
|
1340
|
+
|
1341
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1342
|
+
/**
|
1343
|
+
* Creates an object representation of this proto.
|
1344
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1345
|
+
* Optional fields that are not set will be set to undefined.
|
1346
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1347
|
+
* For the list of reserved names please see:
|
1348
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1349
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1350
|
+
* JSPB instance for transitional soy proto support:
|
1351
|
+
* http://goto/soy-param-migration
|
1352
|
+
* @return {!Object}
|
1353
|
+
*/
|
1354
|
+
proto.bet.BetsHistoryResponse.prototype.toObject = function(opt_includeInstance) {
|
1355
|
+
return proto.bet.BetsHistoryResponse.toObject(opt_includeInstance, this);
|
1356
|
+
};
|
1357
|
+
|
1358
|
+
|
1359
|
+
/**
|
1360
|
+
* Static version of the {@see toObject} method.
|
1361
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1362
|
+
* the JSPB instance for transitional soy proto support:
|
1363
|
+
* http://goto/soy-param-migration
|
1364
|
+
* @param {!proto.bet.BetsHistoryResponse} msg The msg instance to transform.
|
1365
|
+
* @return {!Object}
|
1366
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1367
|
+
*/
|
1368
|
+
proto.bet.BetsHistoryResponse.toObject = function(includeInstance, msg) {
|
1369
|
+
var f, obj = {
|
1370
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
1371
|
+
proto.bet.UserBetItem.toObject, includeInstance),
|
1372
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1373
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
1374
|
+
};
|
1375
|
+
|
1376
|
+
if (includeInstance) {
|
1377
|
+
obj.$jspbMessageInstance = msg;
|
1378
|
+
}
|
1379
|
+
return obj;
|
1380
|
+
};
|
1381
|
+
}
|
1382
|
+
|
1383
|
+
|
1384
|
+
/**
|
1385
|
+
* Deserializes binary data (in protobuf wire format).
|
1386
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1387
|
+
* @return {!proto.bet.BetsHistoryResponse}
|
1388
|
+
*/
|
1389
|
+
proto.bet.BetsHistoryResponse.deserializeBinary = function(bytes) {
|
1390
|
+
var reader = new jspb.BinaryReader(bytes);
|
1391
|
+
var msg = new proto.bet.BetsHistoryResponse;
|
1392
|
+
return proto.bet.BetsHistoryResponse.deserializeBinaryFromReader(msg, reader);
|
1393
|
+
};
|
1394
|
+
|
1395
|
+
|
1396
|
+
/**
|
1397
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1398
|
+
* given reader into the given message object.
|
1399
|
+
* @param {!proto.bet.BetsHistoryResponse} msg The message object to deserialize into.
|
1400
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1401
|
+
* @return {!proto.bet.BetsHistoryResponse}
|
1402
|
+
*/
|
1403
|
+
proto.bet.BetsHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
|
1404
|
+
while (reader.nextField()) {
|
1405
|
+
if (reader.isEndGroup()) {
|
1406
|
+
break;
|
1407
|
+
}
|
1408
|
+
var field = reader.getFieldNumber();
|
1409
|
+
switch (field) {
|
1410
|
+
case 1:
|
1411
|
+
var value = new proto.bet.UserBetItem;
|
1412
|
+
reader.readMessage(value,proto.bet.UserBetItem.deserializeBinaryFromReader);
|
1413
|
+
msg.addItems(value);
|
1414
|
+
break;
|
1415
|
+
case 2:
|
1416
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1417
|
+
msg.setTotalPages(value);
|
1418
|
+
break;
|
1419
|
+
case 3:
|
1420
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1421
|
+
msg.setTotalItems(value);
|
1422
|
+
break;
|
1423
|
+
default:
|
1424
|
+
reader.skipField();
|
1425
|
+
break;
|
1426
|
+
}
|
1427
|
+
}
|
1428
|
+
return msg;
|
1429
|
+
};
|
1430
|
+
|
1431
|
+
|
1432
|
+
/**
|
1433
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1434
|
+
* @return {!Uint8Array}
|
1435
|
+
*/
|
1436
|
+
proto.bet.BetsHistoryResponse.prototype.serializeBinary = function() {
|
1437
|
+
var writer = new jspb.BinaryWriter();
|
1438
|
+
proto.bet.BetsHistoryResponse.serializeBinaryToWriter(this, writer);
|
1439
|
+
return writer.getResultBuffer();
|
1440
|
+
};
|
1441
|
+
|
1442
|
+
|
1443
|
+
/**
|
1444
|
+
* Serializes the given message to binary data (in protobuf wire
|
1445
|
+
* format), writing to the given BinaryWriter.
|
1446
|
+
* @param {!proto.bet.BetsHistoryResponse} message
|
1447
|
+
* @param {!jspb.BinaryWriter} writer
|
1448
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1449
|
+
*/
|
1450
|
+
proto.bet.BetsHistoryResponse.serializeBinaryToWriter = function(message, writer) {
|
1451
|
+
var f = undefined;
|
1452
|
+
f = message.getItemsList();
|
1453
|
+
if (f.length > 0) {
|
1454
|
+
writer.writeRepeatedMessage(
|
1455
|
+
1,
|
1456
|
+
f,
|
1457
|
+
proto.bet.UserBetItem.serializeBinaryToWriter
|
1458
|
+
);
|
1459
|
+
}
|
1460
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1461
|
+
if (f != null) {
|
1462
|
+
writer.writeInt32(
|
1463
|
+
2,
|
1464
|
+
f
|
1465
|
+
);
|
1466
|
+
}
|
1467
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
1468
|
+
if (f != null) {
|
1469
|
+
writer.writeInt32(
|
1470
|
+
3,
|
1471
|
+
f
|
1472
|
+
);
|
1473
|
+
}
|
1474
|
+
};
|
1475
|
+
|
1476
|
+
|
1477
|
+
/**
|
1478
|
+
* repeated UserBetItem items = 1;
|
1479
|
+
* @return {!Array<!proto.bet.UserBetItem>}
|
1480
|
+
*/
|
1481
|
+
proto.bet.BetsHistoryResponse.prototype.getItemsList = function() {
|
1482
|
+
return /** @type{!Array<!proto.bet.UserBetItem>} */ (
|
1483
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bet.UserBetItem, 1));
|
1484
|
+
};
|
1485
|
+
|
1486
|
+
|
1487
|
+
/**
|
1488
|
+
* @param {!Array<!proto.bet.UserBetItem>} value
|
1489
|
+
* @return {!proto.bet.BetsHistoryResponse} returns this
|
1490
|
+
*/
|
1491
|
+
proto.bet.BetsHistoryResponse.prototype.setItemsList = function(value) {
|
1492
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
1493
|
+
};
|
1494
|
+
|
1495
|
+
|
1496
|
+
/**
|
1497
|
+
* @param {!proto.bet.UserBetItem=} opt_value
|
1498
|
+
* @param {number=} opt_index
|
1499
|
+
* @return {!proto.bet.UserBetItem}
|
1500
|
+
*/
|
1501
|
+
proto.bet.BetsHistoryResponse.prototype.addItems = function(opt_value, opt_index) {
|
1502
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.UserBetItem, opt_index);
|
1503
|
+
};
|
1504
|
+
|
1505
|
+
|
1506
|
+
/**
|
1507
|
+
* Clears the list making it empty but non-null.
|
1508
|
+
* @return {!proto.bet.BetsHistoryResponse} returns this
|
1509
|
+
*/
|
1510
|
+
proto.bet.BetsHistoryResponse.prototype.clearItemsList = function() {
|
1511
|
+
return this.setItemsList([]);
|
1512
|
+
};
|
1513
|
+
|
1514
|
+
|
1515
|
+
/**
|
1516
|
+
* optional int32 total_pages = 2;
|
1517
|
+
* @return {number}
|
1518
|
+
*/
|
1519
|
+
proto.bet.BetsHistoryResponse.prototype.getTotalPages = function() {
|
1520
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1521
|
+
};
|
1522
|
+
|
1523
|
+
|
1524
|
+
/**
|
1525
|
+
* @param {number} value
|
1526
|
+
* @return {!proto.bet.BetsHistoryResponse} returns this
|
1527
|
+
*/
|
1528
|
+
proto.bet.BetsHistoryResponse.prototype.setTotalPages = function(value) {
|
1529
|
+
return jspb.Message.setField(this, 2, value);
|
1530
|
+
};
|
1531
|
+
|
1532
|
+
|
1533
|
+
/**
|
1534
|
+
* Clears the field making it undefined.
|
1535
|
+
* @return {!proto.bet.BetsHistoryResponse} returns this
|
1536
|
+
*/
|
1537
|
+
proto.bet.BetsHistoryResponse.prototype.clearTotalPages = function() {
|
1538
|
+
return jspb.Message.setField(this, 2, undefined);
|
1539
|
+
};
|
1540
|
+
|
1541
|
+
|
1542
|
+
/**
|
1543
|
+
* Returns whether this field is set.
|
1544
|
+
* @return {boolean}
|
1545
|
+
*/
|
1546
|
+
proto.bet.BetsHistoryResponse.prototype.hasTotalPages = function() {
|
1547
|
+
return jspb.Message.getField(this, 2) != null;
|
1548
|
+
};
|
1549
|
+
|
1550
|
+
|
1551
|
+
/**
|
1552
|
+
* optional int32 total_items = 3;
|
1553
|
+
* @return {number}
|
1554
|
+
*/
|
1555
|
+
proto.bet.BetsHistoryResponse.prototype.getTotalItems = function() {
|
1556
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1557
|
+
};
|
1558
|
+
|
1559
|
+
|
1560
|
+
/**
|
1561
|
+
* @param {number} value
|
1562
|
+
* @return {!proto.bet.BetsHistoryResponse} returns this
|
1563
|
+
*/
|
1564
|
+
proto.bet.BetsHistoryResponse.prototype.setTotalItems = function(value) {
|
1565
|
+
return jspb.Message.setField(this, 3, value);
|
1566
|
+
};
|
1567
|
+
|
1568
|
+
|
1569
|
+
/**
|
1570
|
+
* Clears the field making it undefined.
|
1571
|
+
* @return {!proto.bet.BetsHistoryResponse} returns this
|
1572
|
+
*/
|
1573
|
+
proto.bet.BetsHistoryResponse.prototype.clearTotalItems = function() {
|
1574
|
+
return jspb.Message.setField(this, 3, undefined);
|
1575
|
+
};
|
1576
|
+
|
1577
|
+
|
1578
|
+
/**
|
1579
|
+
* Returns whether this field is set.
|
1580
|
+
* @return {boolean}
|
1581
|
+
*/
|
1582
|
+
proto.bet.BetsHistoryResponse.prototype.hasTotalItems = function() {
|
1583
|
+
return jspb.Message.getField(this, 3) != null;
|
1584
|
+
};
|
1585
|
+
|
1586
|
+
|
328
1587
|
goog.object.extend(exports, proto.bet);
|