protobuf-platform 1.0.244 → 1.0.246

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_pb.js DELETED
@@ -1,3306 +0,0 @@
1
- // source: bet.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
23
-
24
- goog.exportSymbol('proto.bet.BetsHistoryResponse', null, global);
25
- goog.exportSymbol('proto.bet.DashboardGameInfo', null, global);
26
- goog.exportSymbol('proto.bet.DashboardRequest', null, global);
27
- goog.exportSymbol('proto.bet.DashboardResponse', null, global);
28
- goog.exportSymbol('proto.bet.PaginationRequest', null, global);
29
- goog.exportSymbol('proto.bet.PingRequest', null, global);
30
- goog.exportSymbol('proto.bet.PongResponse', null, global);
31
- goog.exportSymbol('proto.bet.UserBetItem', null, global);
32
- goog.exportSymbol('proto.bet.UserSearchRequest', null, global);
33
- /**
34
- * Generated by JsPbCodeGenerator.
35
- * @param {Array=} opt_data Optional initial data array, typically from a
36
- * server response, or constructed directly in Javascript. The array is used
37
- * in place and becomes part of the constructed object. It is not cloned.
38
- * If no data is provided, the constructed object will be empty, but still
39
- * valid.
40
- * @extends {jspb.Message}
41
- * @constructor
42
- */
43
- proto.bet.PingRequest = function(opt_data) {
44
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
- };
46
- goog.inherits(proto.bet.PingRequest, jspb.Message);
47
- if (goog.DEBUG && !COMPILED) {
48
- /**
49
- * @public
50
- * @override
51
- */
52
- proto.bet.PingRequest.displayName = 'proto.bet.PingRequest';
53
- }
54
- /**
55
- * Generated by JsPbCodeGenerator.
56
- * @param {Array=} opt_data Optional initial data array, typically from a
57
- * server response, or constructed directly in Javascript. The array is used
58
- * in place and becomes part of the constructed object. It is not cloned.
59
- * If no data is provided, the constructed object will be empty, but still
60
- * valid.
61
- * @extends {jspb.Message}
62
- * @constructor
63
- */
64
- proto.bet.PongResponse = function(opt_data) {
65
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
66
- };
67
- goog.inherits(proto.bet.PongResponse, jspb.Message);
68
- if (goog.DEBUG && !COMPILED) {
69
- /**
70
- * @public
71
- * @override
72
- */
73
- proto.bet.PongResponse.displayName = 'proto.bet.PongResponse';
74
- }
75
- /**
76
- * Generated by JsPbCodeGenerator.
77
- * @param {Array=} opt_data Optional initial data array, typically from a
78
- * server response, or constructed directly in Javascript. The array is used
79
- * in place and becomes part of the constructed object. It is not cloned.
80
- * If no data is provided, the constructed object will be empty, but still
81
- * valid.
82
- * @extends {jspb.Message}
83
- * @constructor
84
- */
85
- proto.bet.PaginationRequest = function(opt_data) {
86
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
87
- };
88
- goog.inherits(proto.bet.PaginationRequest, jspb.Message);
89
- if (goog.DEBUG && !COMPILED) {
90
- /**
91
- * @public
92
- * @override
93
- */
94
- proto.bet.PaginationRequest.displayName = 'proto.bet.PaginationRequest';
95
- }
96
- /**
97
- * Generated by JsPbCodeGenerator.
98
- * @param {Array=} opt_data Optional initial data array, typically from a
99
- * server response, or constructed directly in Javascript. The array is used
100
- * in place and becomes part of the constructed object. It is not cloned.
101
- * If no data is provided, the constructed object will be empty, but still
102
- * valid.
103
- * @extends {jspb.Message}
104
- * @constructor
105
- */
106
- proto.bet.UserSearchRequest = function(opt_data) {
107
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
108
- };
109
- goog.inherits(proto.bet.UserSearchRequest, jspb.Message);
110
- if (goog.DEBUG && !COMPILED) {
111
- /**
112
- * @public
113
- * @override
114
- */
115
- proto.bet.UserSearchRequest.displayName = 'proto.bet.UserSearchRequest';
116
- }
117
- /**
118
- * Generated by JsPbCodeGenerator.
119
- * @param {Array=} opt_data Optional initial data array, typically from a
120
- * server response, or constructed directly in Javascript. The array is used
121
- * in place and becomes part of the constructed object. It is not cloned.
122
- * If no data is provided, the constructed object will be empty, but still
123
- * valid.
124
- * @extends {jspb.Message}
125
- * @constructor
126
- */
127
- proto.bet.DashboardRequest = function(opt_data) {
128
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
- };
130
- goog.inherits(proto.bet.DashboardRequest, jspb.Message);
131
- if (goog.DEBUG && !COMPILED) {
132
- /**
133
- * @public
134
- * @override
135
- */
136
- proto.bet.DashboardRequest.displayName = 'proto.bet.DashboardRequest';
137
- }
138
- /**
139
- * Generated by JsPbCodeGenerator.
140
- * @param {Array=} opt_data Optional initial data array, typically from a
141
- * server response, or constructed directly in Javascript. The array is used
142
- * in place and becomes part of the constructed object. It is not cloned.
143
- * If no data is provided, the constructed object will be empty, but still
144
- * valid.
145
- * @extends {jspb.Message}
146
- * @constructor
147
- */
148
- proto.bet.DashboardGameInfo = function(opt_data) {
149
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
150
- };
151
- goog.inherits(proto.bet.DashboardGameInfo, jspb.Message);
152
- if (goog.DEBUG && !COMPILED) {
153
- /**
154
- * @public
155
- * @override
156
- */
157
- proto.bet.DashboardGameInfo.displayName = 'proto.bet.DashboardGameInfo';
158
- }
159
- /**
160
- * Generated by JsPbCodeGenerator.
161
- * @param {Array=} opt_data Optional initial data array, typically from a
162
- * server response, or constructed directly in Javascript. The array is used
163
- * in place and becomes part of the constructed object. It is not cloned.
164
- * If no data is provided, the constructed object will be empty, but still
165
- * valid.
166
- * @extends {jspb.Message}
167
- * @constructor
168
- */
169
- proto.bet.DashboardResponse = function(opt_data) {
170
- jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.DashboardResponse.repeatedFields_, null);
171
- };
172
- goog.inherits(proto.bet.DashboardResponse, jspb.Message);
173
- if (goog.DEBUG && !COMPILED) {
174
- /**
175
- * @public
176
- * @override
177
- */
178
- proto.bet.DashboardResponse.displayName = 'proto.bet.DashboardResponse';
179
- }
180
- /**
181
- * Generated by JsPbCodeGenerator.
182
- * @param {Array=} opt_data Optional initial data array, typically from a
183
- * server response, or constructed directly in Javascript. The array is used
184
- * in place and becomes part of the constructed object. It is not cloned.
185
- * If no data is provided, the constructed object will be empty, but still
186
- * valid.
187
- * @extends {jspb.Message}
188
- * @constructor
189
- */
190
- proto.bet.UserBetItem = function(opt_data) {
191
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
192
- };
193
- goog.inherits(proto.bet.UserBetItem, jspb.Message);
194
- if (goog.DEBUG && !COMPILED) {
195
- /**
196
- * @public
197
- * @override
198
- */
199
- proto.bet.UserBetItem.displayName = 'proto.bet.UserBetItem';
200
- }
201
- /**
202
- * Generated by JsPbCodeGenerator.
203
- * @param {Array=} opt_data Optional initial data array, typically from a
204
- * server response, or constructed directly in Javascript. The array is used
205
- * in place and becomes part of the constructed object. It is not cloned.
206
- * If no data is provided, the constructed object will be empty, but still
207
- * valid.
208
- * @extends {jspb.Message}
209
- * @constructor
210
- */
211
- proto.bet.BetsHistoryResponse = function(opt_data) {
212
- jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.BetsHistoryResponse.repeatedFields_, null);
213
- };
214
- goog.inherits(proto.bet.BetsHistoryResponse, jspb.Message);
215
- if (goog.DEBUG && !COMPILED) {
216
- /**
217
- * @public
218
- * @override
219
- */
220
- proto.bet.BetsHistoryResponse.displayName = 'proto.bet.BetsHistoryResponse';
221
- }
222
-
223
-
224
-
225
- if (jspb.Message.GENERATE_TO_OBJECT) {
226
- /**
227
- * Creates an object representation of this proto.
228
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
229
- * Optional fields that are not set will be set to undefined.
230
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
231
- * For the list of reserved names please see:
232
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
233
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
234
- * JSPB instance for transitional soy proto support:
235
- * http://goto/soy-param-migration
236
- * @return {!Object}
237
- */
238
- proto.bet.PingRequest.prototype.toObject = function(opt_includeInstance) {
239
- return proto.bet.PingRequest.toObject(opt_includeInstance, this);
240
- };
241
-
242
-
243
- /**
244
- * Static version of the {@see toObject} method.
245
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
246
- * the JSPB instance for transitional soy proto support:
247
- * http://goto/soy-param-migration
248
- * @param {!proto.bet.PingRequest} msg The msg instance to transform.
249
- * @return {!Object}
250
- * @suppress {unusedLocalVariables} f is only used for nested messages
251
- */
252
- proto.bet.PingRequest.toObject = function(includeInstance, msg) {
253
- var f, obj = {
254
- ping: jspb.Message.getFieldWithDefault(msg, 1, "")
255
- };
256
-
257
- if (includeInstance) {
258
- obj.$jspbMessageInstance = msg;
259
- }
260
- return obj;
261
- };
262
- }
263
-
264
-
265
- /**
266
- * Deserializes binary data (in protobuf wire format).
267
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
268
- * @return {!proto.bet.PingRequest}
269
- */
270
- proto.bet.PingRequest.deserializeBinary = function(bytes) {
271
- var reader = new jspb.BinaryReader(bytes);
272
- var msg = new proto.bet.PingRequest;
273
- return proto.bet.PingRequest.deserializeBinaryFromReader(msg, reader);
274
- };
275
-
276
-
277
- /**
278
- * Deserializes binary data (in protobuf wire format) from the
279
- * given reader into the given message object.
280
- * @param {!proto.bet.PingRequest} msg The message object to deserialize into.
281
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
282
- * @return {!proto.bet.PingRequest}
283
- */
284
- proto.bet.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
285
- while (reader.nextField()) {
286
- if (reader.isEndGroup()) {
287
- break;
288
- }
289
- var field = reader.getFieldNumber();
290
- switch (field) {
291
- case 1:
292
- var value = /** @type {string} */ (reader.readString());
293
- msg.setPing(value);
294
- break;
295
- default:
296
- reader.skipField();
297
- break;
298
- }
299
- }
300
- return msg;
301
- };
302
-
303
-
304
- /**
305
- * Serializes the message to binary data (in protobuf wire format).
306
- * @return {!Uint8Array}
307
- */
308
- proto.bet.PingRequest.prototype.serializeBinary = function() {
309
- var writer = new jspb.BinaryWriter();
310
- proto.bet.PingRequest.serializeBinaryToWriter(this, writer);
311
- return writer.getResultBuffer();
312
- };
313
-
314
-
315
- /**
316
- * Serializes the given message to binary data (in protobuf wire
317
- * format), writing to the given BinaryWriter.
318
- * @param {!proto.bet.PingRequest} message
319
- * @param {!jspb.BinaryWriter} writer
320
- * @suppress {unusedLocalVariables} f is only used for nested messages
321
- */
322
- proto.bet.PingRequest.serializeBinaryToWriter = function(message, writer) {
323
- var f = undefined;
324
- f = message.getPing();
325
- if (f.length > 0) {
326
- writer.writeString(
327
- 1,
328
- f
329
- );
330
- }
331
- };
332
-
333
-
334
- /**
335
- * optional string ping = 1;
336
- * @return {string}
337
- */
338
- proto.bet.PingRequest.prototype.getPing = function() {
339
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
340
- };
341
-
342
-
343
- /**
344
- * @param {string} value
345
- * @return {!proto.bet.PingRequest} returns this
346
- */
347
- proto.bet.PingRequest.prototype.setPing = function(value) {
348
- return jspb.Message.setProto3StringField(this, 1, value);
349
- };
350
-
351
-
352
-
353
-
354
-
355
- if (jspb.Message.GENERATE_TO_OBJECT) {
356
- /**
357
- * Creates an object representation of this proto.
358
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
359
- * Optional fields that are not set will be set to undefined.
360
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
361
- * For the list of reserved names please see:
362
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
363
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
364
- * JSPB instance for transitional soy proto support:
365
- * http://goto/soy-param-migration
366
- * @return {!Object}
367
- */
368
- proto.bet.PongResponse.prototype.toObject = function(opt_includeInstance) {
369
- return proto.bet.PongResponse.toObject(opt_includeInstance, this);
370
- };
371
-
372
-
373
- /**
374
- * Static version of the {@see toObject} method.
375
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
376
- * the JSPB instance for transitional soy proto support:
377
- * http://goto/soy-param-migration
378
- * @param {!proto.bet.PongResponse} msg The msg instance to transform.
379
- * @return {!Object}
380
- * @suppress {unusedLocalVariables} f is only used for nested messages
381
- */
382
- proto.bet.PongResponse.toObject = function(includeInstance, msg) {
383
- var f, obj = {
384
- pong: jspb.Message.getFieldWithDefault(msg, 1, "")
385
- };
386
-
387
- if (includeInstance) {
388
- obj.$jspbMessageInstance = msg;
389
- }
390
- return obj;
391
- };
392
- }
393
-
394
-
395
- /**
396
- * Deserializes binary data (in protobuf wire format).
397
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
398
- * @return {!proto.bet.PongResponse}
399
- */
400
- proto.bet.PongResponse.deserializeBinary = function(bytes) {
401
- var reader = new jspb.BinaryReader(bytes);
402
- var msg = new proto.bet.PongResponse;
403
- return proto.bet.PongResponse.deserializeBinaryFromReader(msg, reader);
404
- };
405
-
406
-
407
- /**
408
- * Deserializes binary data (in protobuf wire format) from the
409
- * given reader into the given message object.
410
- * @param {!proto.bet.PongResponse} msg The message object to deserialize into.
411
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
412
- * @return {!proto.bet.PongResponse}
413
- */
414
- proto.bet.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
415
- while (reader.nextField()) {
416
- if (reader.isEndGroup()) {
417
- break;
418
- }
419
- var field = reader.getFieldNumber();
420
- switch (field) {
421
- case 1:
422
- var value = /** @type {string} */ (reader.readString());
423
- msg.setPong(value);
424
- break;
425
- default:
426
- reader.skipField();
427
- break;
428
- }
429
- }
430
- return msg;
431
- };
432
-
433
-
434
- /**
435
- * Serializes the message to binary data (in protobuf wire format).
436
- * @return {!Uint8Array}
437
- */
438
- proto.bet.PongResponse.prototype.serializeBinary = function() {
439
- var writer = new jspb.BinaryWriter();
440
- proto.bet.PongResponse.serializeBinaryToWriter(this, writer);
441
- return writer.getResultBuffer();
442
- };
443
-
444
-
445
- /**
446
- * Serializes the given message to binary data (in protobuf wire
447
- * format), writing to the given BinaryWriter.
448
- * @param {!proto.bet.PongResponse} message
449
- * @param {!jspb.BinaryWriter} writer
450
- * @suppress {unusedLocalVariables} f is only used for nested messages
451
- */
452
- proto.bet.PongResponse.serializeBinaryToWriter = function(message, writer) {
453
- var f = undefined;
454
- f = message.getPong();
455
- if (f.length > 0) {
456
- writer.writeString(
457
- 1,
458
- f
459
- );
460
- }
461
- };
462
-
463
-
464
- /**
465
- * optional string pong = 1;
466
- * @return {string}
467
- */
468
- proto.bet.PongResponse.prototype.getPong = function() {
469
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
470
- };
471
-
472
-
473
- /**
474
- * @param {string} value
475
- * @return {!proto.bet.PongResponse} returns this
476
- */
477
- proto.bet.PongResponse.prototype.setPong = function(value) {
478
- return jspb.Message.setProto3StringField(this, 1, value);
479
- };
480
-
481
-
482
-
483
-
484
-
485
- if (jspb.Message.GENERATE_TO_OBJECT) {
486
- /**
487
- * Creates an object representation of this proto.
488
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
489
- * Optional fields that are not set will be set to undefined.
490
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
491
- * For the list of reserved names please see:
492
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
493
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
494
- * JSPB instance for transitional soy proto support:
495
- * http://goto/soy-param-migration
496
- * @return {!Object}
497
- */
498
- proto.bet.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
499
- return proto.bet.PaginationRequest.toObject(opt_includeInstance, this);
500
- };
501
-
502
-
503
- /**
504
- * Static version of the {@see toObject} method.
505
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
506
- * the JSPB instance for transitional soy proto support:
507
- * http://goto/soy-param-migration
508
- * @param {!proto.bet.PaginationRequest} msg The msg instance to transform.
509
- * @return {!Object}
510
- * @suppress {unusedLocalVariables} f is only used for nested messages
511
- */
512
- proto.bet.PaginationRequest.toObject = function(includeInstance, msg) {
513
- var f, obj = {
514
- limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
515
- offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
516
- userSearchParams: (f = msg.getUserSearchParams()) && proto.bet.UserSearchRequest.toObject(includeInstance, f)
517
- };
518
-
519
- if (includeInstance) {
520
- obj.$jspbMessageInstance = msg;
521
- }
522
- return obj;
523
- };
524
- }
525
-
526
-
527
- /**
528
- * Deserializes binary data (in protobuf wire format).
529
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
530
- * @return {!proto.bet.PaginationRequest}
531
- */
532
- proto.bet.PaginationRequest.deserializeBinary = function(bytes) {
533
- var reader = new jspb.BinaryReader(bytes);
534
- var msg = new proto.bet.PaginationRequest;
535
- return proto.bet.PaginationRequest.deserializeBinaryFromReader(msg, reader);
536
- };
537
-
538
-
539
- /**
540
- * Deserializes binary data (in protobuf wire format) from the
541
- * given reader into the given message object.
542
- * @param {!proto.bet.PaginationRequest} msg The message object to deserialize into.
543
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
544
- * @return {!proto.bet.PaginationRequest}
545
- */
546
- proto.bet.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
547
- while (reader.nextField()) {
548
- if (reader.isEndGroup()) {
549
- break;
550
- }
551
- var field = reader.getFieldNumber();
552
- switch (field) {
553
- case 1:
554
- var value = /** @type {number} */ (reader.readInt32());
555
- msg.setLimit(value);
556
- break;
557
- case 2:
558
- var value = /** @type {number} */ (reader.readInt32());
559
- msg.setOffset(value);
560
- break;
561
- case 3:
562
- var value = new proto.bet.UserSearchRequest;
563
- reader.readMessage(value,proto.bet.UserSearchRequest.deserializeBinaryFromReader);
564
- msg.setUserSearchParams(value);
565
- break;
566
- default:
567
- reader.skipField();
568
- break;
569
- }
570
- }
571
- return msg;
572
- };
573
-
574
-
575
- /**
576
- * Serializes the message to binary data (in protobuf wire format).
577
- * @return {!Uint8Array}
578
- */
579
- proto.bet.PaginationRequest.prototype.serializeBinary = function() {
580
- var writer = new jspb.BinaryWriter();
581
- proto.bet.PaginationRequest.serializeBinaryToWriter(this, writer);
582
- return writer.getResultBuffer();
583
- };
584
-
585
-
586
- /**
587
- * Serializes the given message to binary data (in protobuf wire
588
- * format), writing to the given BinaryWriter.
589
- * @param {!proto.bet.PaginationRequest} message
590
- * @param {!jspb.BinaryWriter} writer
591
- * @suppress {unusedLocalVariables} f is only used for nested messages
592
- */
593
- proto.bet.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
594
- var f = undefined;
595
- f = message.getLimit();
596
- if (f !== 0) {
597
- writer.writeInt32(
598
- 1,
599
- f
600
- );
601
- }
602
- f = message.getOffset();
603
- if (f !== 0) {
604
- writer.writeInt32(
605
- 2,
606
- f
607
- );
608
- }
609
- f = message.getUserSearchParams();
610
- if (f != null) {
611
- writer.writeMessage(
612
- 3,
613
- f,
614
- proto.bet.UserSearchRequest.serializeBinaryToWriter
615
- );
616
- }
617
- };
618
-
619
-
620
- /**
621
- * optional int32 limit = 1;
622
- * @return {number}
623
- */
624
- proto.bet.PaginationRequest.prototype.getLimit = function() {
625
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
626
- };
627
-
628
-
629
- /**
630
- * @param {number} value
631
- * @return {!proto.bet.PaginationRequest} returns this
632
- */
633
- proto.bet.PaginationRequest.prototype.setLimit = function(value) {
634
- return jspb.Message.setProto3IntField(this, 1, value);
635
- };
636
-
637
-
638
- /**
639
- * optional int32 offset = 2;
640
- * @return {number}
641
- */
642
- proto.bet.PaginationRequest.prototype.getOffset = function() {
643
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
644
- };
645
-
646
-
647
- /**
648
- * @param {number} value
649
- * @return {!proto.bet.PaginationRequest} returns this
650
- */
651
- proto.bet.PaginationRequest.prototype.setOffset = function(value) {
652
- return jspb.Message.setProto3IntField(this, 2, value);
653
- };
654
-
655
-
656
- /**
657
- * optional UserSearchRequest user_search_params = 3;
658
- * @return {?proto.bet.UserSearchRequest}
659
- */
660
- proto.bet.PaginationRequest.prototype.getUserSearchParams = function() {
661
- return /** @type{?proto.bet.UserSearchRequest} */ (
662
- jspb.Message.getWrapperField(this, proto.bet.UserSearchRequest, 3));
663
- };
664
-
665
-
666
- /**
667
- * @param {?proto.bet.UserSearchRequest|undefined} value
668
- * @return {!proto.bet.PaginationRequest} returns this
669
- */
670
- proto.bet.PaginationRequest.prototype.setUserSearchParams = function(value) {
671
- return jspb.Message.setWrapperField(this, 3, value);
672
- };
673
-
674
-
675
- /**
676
- * Clears the message field making it undefined.
677
- * @return {!proto.bet.PaginationRequest} returns this
678
- */
679
- proto.bet.PaginationRequest.prototype.clearUserSearchParams = function() {
680
- return this.setUserSearchParams(undefined);
681
- };
682
-
683
-
684
- /**
685
- * Returns whether this field is set.
686
- * @return {boolean}
687
- */
688
- proto.bet.PaginationRequest.prototype.hasUserSearchParams = function() {
689
- return jspb.Message.getField(this, 3) != null;
690
- };
691
-
692
-
693
-
694
-
695
-
696
- if (jspb.Message.GENERATE_TO_OBJECT) {
697
- /**
698
- * Creates an object representation of this proto.
699
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
700
- * Optional fields that are not set will be set to undefined.
701
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
702
- * For the list of reserved names please see:
703
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
704
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
705
- * JSPB instance for transitional soy proto support:
706
- * http://goto/soy-param-migration
707
- * @return {!Object}
708
- */
709
- proto.bet.UserSearchRequest.prototype.toObject = function(opt_includeInstance) {
710
- return proto.bet.UserSearchRequest.toObject(opt_includeInstance, this);
711
- };
712
-
713
-
714
- /**
715
- * Static version of the {@see toObject} method.
716
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
717
- * the JSPB instance for transitional soy proto support:
718
- * http://goto/soy-param-migration
719
- * @param {!proto.bet.UserSearchRequest} msg The msg instance to transform.
720
- * @return {!Object}
721
- * @suppress {unusedLocalVariables} f is only used for nested messages
722
- */
723
- proto.bet.UserSearchRequest.toObject = function(includeInstance, msg) {
724
- var f, obj = {
725
- userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
726
- balanceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
727
- currency: jspb.Message.getFieldWithDefault(msg, 3, "")
728
- };
729
-
730
- if (includeInstance) {
731
- obj.$jspbMessageInstance = msg;
732
- }
733
- return obj;
734
- };
735
- }
736
-
737
-
738
- /**
739
- * Deserializes binary data (in protobuf wire format).
740
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
741
- * @return {!proto.bet.UserSearchRequest}
742
- */
743
- proto.bet.UserSearchRequest.deserializeBinary = function(bytes) {
744
- var reader = new jspb.BinaryReader(bytes);
745
- var msg = new proto.bet.UserSearchRequest;
746
- return proto.bet.UserSearchRequest.deserializeBinaryFromReader(msg, reader);
747
- };
748
-
749
-
750
- /**
751
- * Deserializes binary data (in protobuf wire format) from the
752
- * given reader into the given message object.
753
- * @param {!proto.bet.UserSearchRequest} msg The message object to deserialize into.
754
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
755
- * @return {!proto.bet.UserSearchRequest}
756
- */
757
- proto.bet.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
758
- while (reader.nextField()) {
759
- if (reader.isEndGroup()) {
760
- break;
761
- }
762
- var field = reader.getFieldNumber();
763
- switch (field) {
764
- case 1:
765
- var value = /** @type {number} */ (reader.readInt32());
766
- msg.setUserId(value);
767
- break;
768
- case 2:
769
- var value = /** @type {string} */ (reader.readString());
770
- msg.setBalanceType(value);
771
- break;
772
- case 3:
773
- var value = /** @type {string} */ (reader.readString());
774
- msg.setCurrency(value);
775
- break;
776
- default:
777
- reader.skipField();
778
- break;
779
- }
780
- }
781
- return msg;
782
- };
783
-
784
-
785
- /**
786
- * Serializes the message to binary data (in protobuf wire format).
787
- * @return {!Uint8Array}
788
- */
789
- proto.bet.UserSearchRequest.prototype.serializeBinary = function() {
790
- var writer = new jspb.BinaryWriter();
791
- proto.bet.UserSearchRequest.serializeBinaryToWriter(this, writer);
792
- return writer.getResultBuffer();
793
- };
794
-
795
-
796
- /**
797
- * Serializes the given message to binary data (in protobuf wire
798
- * format), writing to the given BinaryWriter.
799
- * @param {!proto.bet.UserSearchRequest} message
800
- * @param {!jspb.BinaryWriter} writer
801
- * @suppress {unusedLocalVariables} f is only used for nested messages
802
- */
803
- proto.bet.UserSearchRequest.serializeBinaryToWriter = function(message, writer) {
804
- var f = undefined;
805
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
806
- if (f != null) {
807
- writer.writeInt32(
808
- 1,
809
- f
810
- );
811
- }
812
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
813
- if (f != null) {
814
- writer.writeString(
815
- 2,
816
- f
817
- );
818
- }
819
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
820
- if (f != null) {
821
- writer.writeString(
822
- 3,
823
- f
824
- );
825
- }
826
- };
827
-
828
-
829
- /**
830
- * optional int32 user_id = 1;
831
- * @return {number}
832
- */
833
- proto.bet.UserSearchRequest.prototype.getUserId = function() {
834
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
835
- };
836
-
837
-
838
- /**
839
- * @param {number} value
840
- * @return {!proto.bet.UserSearchRequest} returns this
841
- */
842
- proto.bet.UserSearchRequest.prototype.setUserId = function(value) {
843
- return jspb.Message.setField(this, 1, value);
844
- };
845
-
846
-
847
- /**
848
- * Clears the field making it undefined.
849
- * @return {!proto.bet.UserSearchRequest} returns this
850
- */
851
- proto.bet.UserSearchRequest.prototype.clearUserId = function() {
852
- return jspb.Message.setField(this, 1, undefined);
853
- };
854
-
855
-
856
- /**
857
- * Returns whether this field is set.
858
- * @return {boolean}
859
- */
860
- proto.bet.UserSearchRequest.prototype.hasUserId = function() {
861
- return jspb.Message.getField(this, 1) != null;
862
- };
863
-
864
-
865
- /**
866
- * optional string balance_type = 2;
867
- * @return {string}
868
- */
869
- proto.bet.UserSearchRequest.prototype.getBalanceType = function() {
870
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
871
- };
872
-
873
-
874
- /**
875
- * @param {string} value
876
- * @return {!proto.bet.UserSearchRequest} returns this
877
- */
878
- proto.bet.UserSearchRequest.prototype.setBalanceType = function(value) {
879
- return jspb.Message.setField(this, 2, value);
880
- };
881
-
882
-
883
- /**
884
- * Clears the field making it undefined.
885
- * @return {!proto.bet.UserSearchRequest} returns this
886
- */
887
- proto.bet.UserSearchRequest.prototype.clearBalanceType = function() {
888
- return jspb.Message.setField(this, 2, undefined);
889
- };
890
-
891
-
892
- /**
893
- * Returns whether this field is set.
894
- * @return {boolean}
895
- */
896
- proto.bet.UserSearchRequest.prototype.hasBalanceType = function() {
897
- return jspb.Message.getField(this, 2) != null;
898
- };
899
-
900
-
901
- /**
902
- * optional string currency = 3;
903
- * @return {string}
904
- */
905
- proto.bet.UserSearchRequest.prototype.getCurrency = function() {
906
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
907
- };
908
-
909
-
910
- /**
911
- * @param {string} value
912
- * @return {!proto.bet.UserSearchRequest} returns this
913
- */
914
- proto.bet.UserSearchRequest.prototype.setCurrency = function(value) {
915
- return jspb.Message.setField(this, 3, value);
916
- };
917
-
918
-
919
- /**
920
- * Clears the field making it undefined.
921
- * @return {!proto.bet.UserSearchRequest} returns this
922
- */
923
- proto.bet.UserSearchRequest.prototype.clearCurrency = function() {
924
- return jspb.Message.setField(this, 3, undefined);
925
- };
926
-
927
-
928
- /**
929
- * Returns whether this field is set.
930
- * @return {boolean}
931
- */
932
- proto.bet.UserSearchRequest.prototype.hasCurrency = function() {
933
- return jspb.Message.getField(this, 3) != null;
934
- };
935
-
936
-
937
-
938
-
939
-
940
- if (jspb.Message.GENERATE_TO_OBJECT) {
941
- /**
942
- * Creates an object representation of this proto.
943
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
944
- * Optional fields that are not set will be set to undefined.
945
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
946
- * For the list of reserved names please see:
947
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
948
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
949
- * JSPB instance for transitional soy proto support:
950
- * http://goto/soy-param-migration
951
- * @return {!Object}
952
- */
953
- proto.bet.DashboardRequest.prototype.toObject = function(opt_includeInstance) {
954
- return proto.bet.DashboardRequest.toObject(opt_includeInstance, this);
955
- };
956
-
957
-
958
- /**
959
- * Static version of the {@see toObject} method.
960
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
961
- * the JSPB instance for transitional soy proto support:
962
- * http://goto/soy-param-migration
963
- * @param {!proto.bet.DashboardRequest} msg The msg instance to transform.
964
- * @return {!Object}
965
- * @suppress {unusedLocalVariables} f is only used for nested messages
966
- */
967
- proto.bet.DashboardRequest.toObject = function(includeInstance, msg) {
968
- var f, obj = {
969
- startDate: jspb.Message.getFieldWithDefault(msg, 1, ""),
970
- endDate: jspb.Message.getFieldWithDefault(msg, 2, "")
971
- };
972
-
973
- if (includeInstance) {
974
- obj.$jspbMessageInstance = msg;
975
- }
976
- return obj;
977
- };
978
- }
979
-
980
-
981
- /**
982
- * Deserializes binary data (in protobuf wire format).
983
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
984
- * @return {!proto.bet.DashboardRequest}
985
- */
986
- proto.bet.DashboardRequest.deserializeBinary = function(bytes) {
987
- var reader = new jspb.BinaryReader(bytes);
988
- var msg = new proto.bet.DashboardRequest;
989
- return proto.bet.DashboardRequest.deserializeBinaryFromReader(msg, reader);
990
- };
991
-
992
-
993
- /**
994
- * Deserializes binary data (in protobuf wire format) from the
995
- * given reader into the given message object.
996
- * @param {!proto.bet.DashboardRequest} msg The message object to deserialize into.
997
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
998
- * @return {!proto.bet.DashboardRequest}
999
- */
1000
- proto.bet.DashboardRequest.deserializeBinaryFromReader = function(msg, reader) {
1001
- while (reader.nextField()) {
1002
- if (reader.isEndGroup()) {
1003
- break;
1004
- }
1005
- var field = reader.getFieldNumber();
1006
- switch (field) {
1007
- case 1:
1008
- var value = /** @type {string} */ (reader.readString());
1009
- msg.setStartDate(value);
1010
- break;
1011
- case 2:
1012
- var value = /** @type {string} */ (reader.readString());
1013
- msg.setEndDate(value);
1014
- break;
1015
- default:
1016
- reader.skipField();
1017
- break;
1018
- }
1019
- }
1020
- return msg;
1021
- };
1022
-
1023
-
1024
- /**
1025
- * Serializes the message to binary data (in protobuf wire format).
1026
- * @return {!Uint8Array}
1027
- */
1028
- proto.bet.DashboardRequest.prototype.serializeBinary = function() {
1029
- var writer = new jspb.BinaryWriter();
1030
- proto.bet.DashboardRequest.serializeBinaryToWriter(this, writer);
1031
- return writer.getResultBuffer();
1032
- };
1033
-
1034
-
1035
- /**
1036
- * Serializes the given message to binary data (in protobuf wire
1037
- * format), writing to the given BinaryWriter.
1038
- * @param {!proto.bet.DashboardRequest} message
1039
- * @param {!jspb.BinaryWriter} writer
1040
- * @suppress {unusedLocalVariables} f is only used for nested messages
1041
- */
1042
- proto.bet.DashboardRequest.serializeBinaryToWriter = function(message, writer) {
1043
- var f = undefined;
1044
- f = message.getStartDate();
1045
- if (f.length > 0) {
1046
- writer.writeString(
1047
- 1,
1048
- f
1049
- );
1050
- }
1051
- f = message.getEndDate();
1052
- if (f.length > 0) {
1053
- writer.writeString(
1054
- 2,
1055
- f
1056
- );
1057
- }
1058
- };
1059
-
1060
-
1061
- /**
1062
- * optional string start_date = 1;
1063
- * @return {string}
1064
- */
1065
- proto.bet.DashboardRequest.prototype.getStartDate = function() {
1066
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1067
- };
1068
-
1069
-
1070
- /**
1071
- * @param {string} value
1072
- * @return {!proto.bet.DashboardRequest} returns this
1073
- */
1074
- proto.bet.DashboardRequest.prototype.setStartDate = function(value) {
1075
- return jspb.Message.setProto3StringField(this, 1, value);
1076
- };
1077
-
1078
-
1079
- /**
1080
- * optional string end_date = 2;
1081
- * @return {string}
1082
- */
1083
- proto.bet.DashboardRequest.prototype.getEndDate = function() {
1084
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1085
- };
1086
-
1087
-
1088
- /**
1089
- * @param {string} value
1090
- * @return {!proto.bet.DashboardRequest} returns this
1091
- */
1092
- proto.bet.DashboardRequest.prototype.setEndDate = function(value) {
1093
- return jspb.Message.setProto3StringField(this, 2, value);
1094
- };
1095
-
1096
-
1097
-
1098
-
1099
-
1100
- if (jspb.Message.GENERATE_TO_OBJECT) {
1101
- /**
1102
- * Creates an object representation of this proto.
1103
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1104
- * Optional fields that are not set will be set to undefined.
1105
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1106
- * For the list of reserved names please see:
1107
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1108
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1109
- * JSPB instance for transitional soy proto support:
1110
- * http://goto/soy-param-migration
1111
- * @return {!Object}
1112
- */
1113
- proto.bet.DashboardGameInfo.prototype.toObject = function(opt_includeInstance) {
1114
- return proto.bet.DashboardGameInfo.toObject(opt_includeInstance, this);
1115
- };
1116
-
1117
-
1118
- /**
1119
- * Static version of the {@see toObject} method.
1120
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1121
- * the JSPB instance for transitional soy proto support:
1122
- * http://goto/soy-param-migration
1123
- * @param {!proto.bet.DashboardGameInfo} msg The msg instance to transform.
1124
- * @return {!Object}
1125
- * @suppress {unusedLocalVariables} f is only used for nested messages
1126
- */
1127
- proto.bet.DashboardGameInfo.toObject = function(includeInstance, msg) {
1128
- var f, obj = {
1129
- title: jspb.Message.getFieldWithDefault(msg, 1, ""),
1130
- calculatedValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
1131
- slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
1132
- image: jspb.Message.getFieldWithDefault(msg, 4, "")
1133
- };
1134
-
1135
- if (includeInstance) {
1136
- obj.$jspbMessageInstance = msg;
1137
- }
1138
- return obj;
1139
- };
1140
- }
1141
-
1142
-
1143
- /**
1144
- * Deserializes binary data (in protobuf wire format).
1145
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1146
- * @return {!proto.bet.DashboardGameInfo}
1147
- */
1148
- proto.bet.DashboardGameInfo.deserializeBinary = function(bytes) {
1149
- var reader = new jspb.BinaryReader(bytes);
1150
- var msg = new proto.bet.DashboardGameInfo;
1151
- return proto.bet.DashboardGameInfo.deserializeBinaryFromReader(msg, reader);
1152
- };
1153
-
1154
-
1155
- /**
1156
- * Deserializes binary data (in protobuf wire format) from the
1157
- * given reader into the given message object.
1158
- * @param {!proto.bet.DashboardGameInfo} msg The message object to deserialize into.
1159
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1160
- * @return {!proto.bet.DashboardGameInfo}
1161
- */
1162
- proto.bet.DashboardGameInfo.deserializeBinaryFromReader = function(msg, reader) {
1163
- while (reader.nextField()) {
1164
- if (reader.isEndGroup()) {
1165
- break;
1166
- }
1167
- var field = reader.getFieldNumber();
1168
- switch (field) {
1169
- case 1:
1170
- var value = /** @type {string} */ (reader.readString());
1171
- msg.setTitle(value);
1172
- break;
1173
- case 2:
1174
- var value = /** @type {number} */ (reader.readFloat());
1175
- msg.setCalculatedValue(value);
1176
- break;
1177
- case 3:
1178
- var value = /** @type {string} */ (reader.readString());
1179
- msg.setSlug(value);
1180
- break;
1181
- case 4:
1182
- var value = /** @type {string} */ (reader.readString());
1183
- msg.setImage(value);
1184
- break;
1185
- default:
1186
- reader.skipField();
1187
- break;
1188
- }
1189
- }
1190
- return msg;
1191
- };
1192
-
1193
-
1194
- /**
1195
- * Serializes the message to binary data (in protobuf wire format).
1196
- * @return {!Uint8Array}
1197
- */
1198
- proto.bet.DashboardGameInfo.prototype.serializeBinary = function() {
1199
- var writer = new jspb.BinaryWriter();
1200
- proto.bet.DashboardGameInfo.serializeBinaryToWriter(this, writer);
1201
- return writer.getResultBuffer();
1202
- };
1203
-
1204
-
1205
- /**
1206
- * Serializes the given message to binary data (in protobuf wire
1207
- * format), writing to the given BinaryWriter.
1208
- * @param {!proto.bet.DashboardGameInfo} message
1209
- * @param {!jspb.BinaryWriter} writer
1210
- * @suppress {unusedLocalVariables} f is only used for nested messages
1211
- */
1212
- proto.bet.DashboardGameInfo.serializeBinaryToWriter = function(message, writer) {
1213
- var f = undefined;
1214
- f = message.getTitle();
1215
- if (f.length > 0) {
1216
- writer.writeString(
1217
- 1,
1218
- f
1219
- );
1220
- }
1221
- f = message.getCalculatedValue();
1222
- if (f !== 0.0) {
1223
- writer.writeFloat(
1224
- 2,
1225
- f
1226
- );
1227
- }
1228
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
1229
- if (f != null) {
1230
- writer.writeString(
1231
- 3,
1232
- f
1233
- );
1234
- }
1235
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
1236
- if (f != null) {
1237
- writer.writeString(
1238
- 4,
1239
- f
1240
- );
1241
- }
1242
- };
1243
-
1244
-
1245
- /**
1246
- * optional string title = 1;
1247
- * @return {string}
1248
- */
1249
- proto.bet.DashboardGameInfo.prototype.getTitle = function() {
1250
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1251
- };
1252
-
1253
-
1254
- /**
1255
- * @param {string} value
1256
- * @return {!proto.bet.DashboardGameInfo} returns this
1257
- */
1258
- proto.bet.DashboardGameInfo.prototype.setTitle = function(value) {
1259
- return jspb.Message.setProto3StringField(this, 1, value);
1260
- };
1261
-
1262
-
1263
- /**
1264
- * optional float calculated_value = 2;
1265
- * @return {number}
1266
- */
1267
- proto.bet.DashboardGameInfo.prototype.getCalculatedValue = function() {
1268
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
1269
- };
1270
-
1271
-
1272
- /**
1273
- * @param {number} value
1274
- * @return {!proto.bet.DashboardGameInfo} returns this
1275
- */
1276
- proto.bet.DashboardGameInfo.prototype.setCalculatedValue = function(value) {
1277
- return jspb.Message.setProto3FloatField(this, 2, value);
1278
- };
1279
-
1280
-
1281
- /**
1282
- * optional string slug = 3;
1283
- * @return {string}
1284
- */
1285
- proto.bet.DashboardGameInfo.prototype.getSlug = function() {
1286
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1287
- };
1288
-
1289
-
1290
- /**
1291
- * @param {string} value
1292
- * @return {!proto.bet.DashboardGameInfo} returns this
1293
- */
1294
- proto.bet.DashboardGameInfo.prototype.setSlug = function(value) {
1295
- return jspb.Message.setField(this, 3, value);
1296
- };
1297
-
1298
-
1299
- /**
1300
- * Clears the field making it undefined.
1301
- * @return {!proto.bet.DashboardGameInfo} returns this
1302
- */
1303
- proto.bet.DashboardGameInfo.prototype.clearSlug = function() {
1304
- return jspb.Message.setField(this, 3, undefined);
1305
- };
1306
-
1307
-
1308
- /**
1309
- * Returns whether this field is set.
1310
- * @return {boolean}
1311
- */
1312
- proto.bet.DashboardGameInfo.prototype.hasSlug = function() {
1313
- return jspb.Message.getField(this, 3) != null;
1314
- };
1315
-
1316
-
1317
- /**
1318
- * optional string image = 4;
1319
- * @return {string}
1320
- */
1321
- proto.bet.DashboardGameInfo.prototype.getImage = function() {
1322
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1323
- };
1324
-
1325
-
1326
- /**
1327
- * @param {string} value
1328
- * @return {!proto.bet.DashboardGameInfo} returns this
1329
- */
1330
- proto.bet.DashboardGameInfo.prototype.setImage = function(value) {
1331
- return jspb.Message.setField(this, 4, value);
1332
- };
1333
-
1334
-
1335
- /**
1336
- * Clears the field making it undefined.
1337
- * @return {!proto.bet.DashboardGameInfo} returns this
1338
- */
1339
- proto.bet.DashboardGameInfo.prototype.clearImage = function() {
1340
- return jspb.Message.setField(this, 4, undefined);
1341
- };
1342
-
1343
-
1344
- /**
1345
- * Returns whether this field is set.
1346
- * @return {boolean}
1347
- */
1348
- proto.bet.DashboardGameInfo.prototype.hasImage = function() {
1349
- return jspb.Message.getField(this, 4) != null;
1350
- };
1351
-
1352
-
1353
-
1354
- /**
1355
- * List of repeated fields within this message type.
1356
- * @private {!Array<number>}
1357
- * @const
1358
- */
1359
- proto.bet.DashboardResponse.repeatedFields_ = [16,17,18,19];
1360
-
1361
-
1362
-
1363
- if (jspb.Message.GENERATE_TO_OBJECT) {
1364
- /**
1365
- * Creates an object representation of this proto.
1366
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1367
- * Optional fields that are not set will be set to undefined.
1368
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1369
- * For the list of reserved names please see:
1370
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1371
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1372
- * JSPB instance for transitional soy proto support:
1373
- * http://goto/soy-param-migration
1374
- * @return {!Object}
1375
- */
1376
- proto.bet.DashboardResponse.prototype.toObject = function(opt_includeInstance) {
1377
- return proto.bet.DashboardResponse.toObject(opt_includeInstance, this);
1378
- };
1379
-
1380
-
1381
- /**
1382
- * Static version of the {@see toObject} method.
1383
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1384
- * the JSPB instance for transitional soy proto support:
1385
- * http://goto/soy-param-migration
1386
- * @param {!proto.bet.DashboardResponse} msg The msg instance to transform.
1387
- * @return {!Object}
1388
- * @suppress {unusedLocalVariables} f is only used for nested messages
1389
- */
1390
- proto.bet.DashboardResponse.toObject = function(includeInstance, msg) {
1391
- var f, obj = {
1392
- minBetReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
1393
- minBetBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
1394
- maxBetReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
1395
- maxBetBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
1396
- averageBetReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
1397
- averageBetBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
1398
- maxWinReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
1399
- maxWinBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
1400
- averageWinReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
1401
- averageWinBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
1402
- turnoverReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
1403
- turnoverBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
1404
- ggrTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
1405
- ggrReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 14, 0.0),
1406
- ggrBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
1407
- topGamesCountBetRealList: jspb.Message.toObjectList(msg.getTopGamesCountBetRealList(),
1408
- proto.bet.DashboardGameInfo.toObject, includeInstance),
1409
- topGamesCountBetBonusList: jspb.Message.toObjectList(msg.getTopGamesCountBetBonusList(),
1410
- proto.bet.DashboardGameInfo.toObject, includeInstance),
1411
- topGamesSumBetRealList: jspb.Message.toObjectList(msg.getTopGamesSumBetRealList(),
1412
- proto.bet.DashboardGameInfo.toObject, includeInstance),
1413
- topGamesSumBetBonusList: jspb.Message.toObjectList(msg.getTopGamesSumBetBonusList(),
1414
- proto.bet.DashboardGameInfo.toObject, includeInstance)
1415
- };
1416
-
1417
- if (includeInstance) {
1418
- obj.$jspbMessageInstance = msg;
1419
- }
1420
- return obj;
1421
- };
1422
- }
1423
-
1424
-
1425
- /**
1426
- * Deserializes binary data (in protobuf wire format).
1427
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1428
- * @return {!proto.bet.DashboardResponse}
1429
- */
1430
- proto.bet.DashboardResponse.deserializeBinary = function(bytes) {
1431
- var reader = new jspb.BinaryReader(bytes);
1432
- var msg = new proto.bet.DashboardResponse;
1433
- return proto.bet.DashboardResponse.deserializeBinaryFromReader(msg, reader);
1434
- };
1435
-
1436
-
1437
- /**
1438
- * Deserializes binary data (in protobuf wire format) from the
1439
- * given reader into the given message object.
1440
- * @param {!proto.bet.DashboardResponse} msg The message object to deserialize into.
1441
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1442
- * @return {!proto.bet.DashboardResponse}
1443
- */
1444
- proto.bet.DashboardResponse.deserializeBinaryFromReader = function(msg, reader) {
1445
- while (reader.nextField()) {
1446
- if (reader.isEndGroup()) {
1447
- break;
1448
- }
1449
- var field = reader.getFieldNumber();
1450
- switch (field) {
1451
- case 1:
1452
- var value = /** @type {number} */ (reader.readFloat());
1453
- msg.setMinBetReal(value);
1454
- break;
1455
- case 2:
1456
- var value = /** @type {number} */ (reader.readFloat());
1457
- msg.setMinBetBonus(value);
1458
- break;
1459
- case 3:
1460
- var value = /** @type {number} */ (reader.readFloat());
1461
- msg.setMaxBetReal(value);
1462
- break;
1463
- case 4:
1464
- var value = /** @type {number} */ (reader.readFloat());
1465
- msg.setMaxBetBonus(value);
1466
- break;
1467
- case 5:
1468
- var value = /** @type {number} */ (reader.readFloat());
1469
- msg.setAverageBetReal(value);
1470
- break;
1471
- case 6:
1472
- var value = /** @type {number} */ (reader.readFloat());
1473
- msg.setAverageBetBonus(value);
1474
- break;
1475
- case 7:
1476
- var value = /** @type {number} */ (reader.readFloat());
1477
- msg.setMaxWinReal(value);
1478
- break;
1479
- case 8:
1480
- var value = /** @type {number} */ (reader.readFloat());
1481
- msg.setMaxWinBonus(value);
1482
- break;
1483
- case 9:
1484
- var value = /** @type {number} */ (reader.readFloat());
1485
- msg.setAverageWinReal(value);
1486
- break;
1487
- case 10:
1488
- var value = /** @type {number} */ (reader.readFloat());
1489
- msg.setAverageWinBonus(value);
1490
- break;
1491
- case 11:
1492
- var value = /** @type {number} */ (reader.readFloat());
1493
- msg.setTurnoverReal(value);
1494
- break;
1495
- case 12:
1496
- var value = /** @type {number} */ (reader.readFloat());
1497
- msg.setTurnoverBonus(value);
1498
- break;
1499
- case 13:
1500
- var value = /** @type {number} */ (reader.readFloat());
1501
- msg.setGgrTotal(value);
1502
- break;
1503
- case 14:
1504
- var value = /** @type {number} */ (reader.readFloat());
1505
- msg.setGgrReal(value);
1506
- break;
1507
- case 15:
1508
- var value = /** @type {number} */ (reader.readFloat());
1509
- msg.setGgrBonus(value);
1510
- break;
1511
- case 16:
1512
- var value = new proto.bet.DashboardGameInfo;
1513
- reader.readMessage(value,proto.bet.DashboardGameInfo.deserializeBinaryFromReader);
1514
- msg.addTopGamesCountBetReal(value);
1515
- break;
1516
- case 17:
1517
- var value = new proto.bet.DashboardGameInfo;
1518
- reader.readMessage(value,proto.bet.DashboardGameInfo.deserializeBinaryFromReader);
1519
- msg.addTopGamesCountBetBonus(value);
1520
- break;
1521
- case 18:
1522
- var value = new proto.bet.DashboardGameInfo;
1523
- reader.readMessage(value,proto.bet.DashboardGameInfo.deserializeBinaryFromReader);
1524
- msg.addTopGamesSumBetReal(value);
1525
- break;
1526
- case 19:
1527
- var value = new proto.bet.DashboardGameInfo;
1528
- reader.readMessage(value,proto.bet.DashboardGameInfo.deserializeBinaryFromReader);
1529
- msg.addTopGamesSumBetBonus(value);
1530
- break;
1531
- default:
1532
- reader.skipField();
1533
- break;
1534
- }
1535
- }
1536
- return msg;
1537
- };
1538
-
1539
-
1540
- /**
1541
- * Serializes the message to binary data (in protobuf wire format).
1542
- * @return {!Uint8Array}
1543
- */
1544
- proto.bet.DashboardResponse.prototype.serializeBinary = function() {
1545
- var writer = new jspb.BinaryWriter();
1546
- proto.bet.DashboardResponse.serializeBinaryToWriter(this, writer);
1547
- return writer.getResultBuffer();
1548
- };
1549
-
1550
-
1551
- /**
1552
- * Serializes the given message to binary data (in protobuf wire
1553
- * format), writing to the given BinaryWriter.
1554
- * @param {!proto.bet.DashboardResponse} message
1555
- * @param {!jspb.BinaryWriter} writer
1556
- * @suppress {unusedLocalVariables} f is only used for nested messages
1557
- */
1558
- proto.bet.DashboardResponse.serializeBinaryToWriter = function(message, writer) {
1559
- var f = undefined;
1560
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
1561
- if (f != null) {
1562
- writer.writeFloat(
1563
- 1,
1564
- f
1565
- );
1566
- }
1567
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
1568
- if (f != null) {
1569
- writer.writeFloat(
1570
- 2,
1571
- f
1572
- );
1573
- }
1574
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
1575
- if (f != null) {
1576
- writer.writeFloat(
1577
- 3,
1578
- f
1579
- );
1580
- }
1581
- f = /** @type {number} */ (jspb.Message.getField(message, 4));
1582
- if (f != null) {
1583
- writer.writeFloat(
1584
- 4,
1585
- f
1586
- );
1587
- }
1588
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
1589
- if (f != null) {
1590
- writer.writeFloat(
1591
- 5,
1592
- f
1593
- );
1594
- }
1595
- f = /** @type {number} */ (jspb.Message.getField(message, 6));
1596
- if (f != null) {
1597
- writer.writeFloat(
1598
- 6,
1599
- f
1600
- );
1601
- }
1602
- f = /** @type {number} */ (jspb.Message.getField(message, 7));
1603
- if (f != null) {
1604
- writer.writeFloat(
1605
- 7,
1606
- f
1607
- );
1608
- }
1609
- f = /** @type {number} */ (jspb.Message.getField(message, 8));
1610
- if (f != null) {
1611
- writer.writeFloat(
1612
- 8,
1613
- f
1614
- );
1615
- }
1616
- f = /** @type {number} */ (jspb.Message.getField(message, 9));
1617
- if (f != null) {
1618
- writer.writeFloat(
1619
- 9,
1620
- f
1621
- );
1622
- }
1623
- f = /** @type {number} */ (jspb.Message.getField(message, 10));
1624
- if (f != null) {
1625
- writer.writeFloat(
1626
- 10,
1627
- f
1628
- );
1629
- }
1630
- f = /** @type {number} */ (jspb.Message.getField(message, 11));
1631
- if (f != null) {
1632
- writer.writeFloat(
1633
- 11,
1634
- f
1635
- );
1636
- }
1637
- f = /** @type {number} */ (jspb.Message.getField(message, 12));
1638
- if (f != null) {
1639
- writer.writeFloat(
1640
- 12,
1641
- f
1642
- );
1643
- }
1644
- f = /** @type {number} */ (jspb.Message.getField(message, 13));
1645
- if (f != null) {
1646
- writer.writeFloat(
1647
- 13,
1648
- f
1649
- );
1650
- }
1651
- f = /** @type {number} */ (jspb.Message.getField(message, 14));
1652
- if (f != null) {
1653
- writer.writeFloat(
1654
- 14,
1655
- f
1656
- );
1657
- }
1658
- f = /** @type {number} */ (jspb.Message.getField(message, 15));
1659
- if (f != null) {
1660
- writer.writeFloat(
1661
- 15,
1662
- f
1663
- );
1664
- }
1665
- f = message.getTopGamesCountBetRealList();
1666
- if (f.length > 0) {
1667
- writer.writeRepeatedMessage(
1668
- 16,
1669
- f,
1670
- proto.bet.DashboardGameInfo.serializeBinaryToWriter
1671
- );
1672
- }
1673
- f = message.getTopGamesCountBetBonusList();
1674
- if (f.length > 0) {
1675
- writer.writeRepeatedMessage(
1676
- 17,
1677
- f,
1678
- proto.bet.DashboardGameInfo.serializeBinaryToWriter
1679
- );
1680
- }
1681
- f = message.getTopGamesSumBetRealList();
1682
- if (f.length > 0) {
1683
- writer.writeRepeatedMessage(
1684
- 18,
1685
- f,
1686
- proto.bet.DashboardGameInfo.serializeBinaryToWriter
1687
- );
1688
- }
1689
- f = message.getTopGamesSumBetBonusList();
1690
- if (f.length > 0) {
1691
- writer.writeRepeatedMessage(
1692
- 19,
1693
- f,
1694
- proto.bet.DashboardGameInfo.serializeBinaryToWriter
1695
- );
1696
- }
1697
- };
1698
-
1699
-
1700
- /**
1701
- * optional float min_bet_real = 1;
1702
- * @return {number}
1703
- */
1704
- proto.bet.DashboardResponse.prototype.getMinBetReal = function() {
1705
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
1706
- };
1707
-
1708
-
1709
- /**
1710
- * @param {number} value
1711
- * @return {!proto.bet.DashboardResponse} returns this
1712
- */
1713
- proto.bet.DashboardResponse.prototype.setMinBetReal = function(value) {
1714
- return jspb.Message.setField(this, 1, value);
1715
- };
1716
-
1717
-
1718
- /**
1719
- * Clears the field making it undefined.
1720
- * @return {!proto.bet.DashboardResponse} returns this
1721
- */
1722
- proto.bet.DashboardResponse.prototype.clearMinBetReal = function() {
1723
- return jspb.Message.setField(this, 1, undefined);
1724
- };
1725
-
1726
-
1727
- /**
1728
- * Returns whether this field is set.
1729
- * @return {boolean}
1730
- */
1731
- proto.bet.DashboardResponse.prototype.hasMinBetReal = function() {
1732
- return jspb.Message.getField(this, 1) != null;
1733
- };
1734
-
1735
-
1736
- /**
1737
- * optional float min_bet_bonus = 2;
1738
- * @return {number}
1739
- */
1740
- proto.bet.DashboardResponse.prototype.getMinBetBonus = function() {
1741
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
1742
- };
1743
-
1744
-
1745
- /**
1746
- * @param {number} value
1747
- * @return {!proto.bet.DashboardResponse} returns this
1748
- */
1749
- proto.bet.DashboardResponse.prototype.setMinBetBonus = function(value) {
1750
- return jspb.Message.setField(this, 2, value);
1751
- };
1752
-
1753
-
1754
- /**
1755
- * Clears the field making it undefined.
1756
- * @return {!proto.bet.DashboardResponse} returns this
1757
- */
1758
- proto.bet.DashboardResponse.prototype.clearMinBetBonus = function() {
1759
- return jspb.Message.setField(this, 2, undefined);
1760
- };
1761
-
1762
-
1763
- /**
1764
- * Returns whether this field is set.
1765
- * @return {boolean}
1766
- */
1767
- proto.bet.DashboardResponse.prototype.hasMinBetBonus = function() {
1768
- return jspb.Message.getField(this, 2) != null;
1769
- };
1770
-
1771
-
1772
- /**
1773
- * optional float max_bet_real = 3;
1774
- * @return {number}
1775
- */
1776
- proto.bet.DashboardResponse.prototype.getMaxBetReal = function() {
1777
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
1778
- };
1779
-
1780
-
1781
- /**
1782
- * @param {number} value
1783
- * @return {!proto.bet.DashboardResponse} returns this
1784
- */
1785
- proto.bet.DashboardResponse.prototype.setMaxBetReal = function(value) {
1786
- return jspb.Message.setField(this, 3, value);
1787
- };
1788
-
1789
-
1790
- /**
1791
- * Clears the field making it undefined.
1792
- * @return {!proto.bet.DashboardResponse} returns this
1793
- */
1794
- proto.bet.DashboardResponse.prototype.clearMaxBetReal = function() {
1795
- return jspb.Message.setField(this, 3, undefined);
1796
- };
1797
-
1798
-
1799
- /**
1800
- * Returns whether this field is set.
1801
- * @return {boolean}
1802
- */
1803
- proto.bet.DashboardResponse.prototype.hasMaxBetReal = function() {
1804
- return jspb.Message.getField(this, 3) != null;
1805
- };
1806
-
1807
-
1808
- /**
1809
- * optional float max_bet_bonus = 4;
1810
- * @return {number}
1811
- */
1812
- proto.bet.DashboardResponse.prototype.getMaxBetBonus = function() {
1813
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
1814
- };
1815
-
1816
-
1817
- /**
1818
- * @param {number} value
1819
- * @return {!proto.bet.DashboardResponse} returns this
1820
- */
1821
- proto.bet.DashboardResponse.prototype.setMaxBetBonus = function(value) {
1822
- return jspb.Message.setField(this, 4, value);
1823
- };
1824
-
1825
-
1826
- /**
1827
- * Clears the field making it undefined.
1828
- * @return {!proto.bet.DashboardResponse} returns this
1829
- */
1830
- proto.bet.DashboardResponse.prototype.clearMaxBetBonus = function() {
1831
- return jspb.Message.setField(this, 4, undefined);
1832
- };
1833
-
1834
-
1835
- /**
1836
- * Returns whether this field is set.
1837
- * @return {boolean}
1838
- */
1839
- proto.bet.DashboardResponse.prototype.hasMaxBetBonus = function() {
1840
- return jspb.Message.getField(this, 4) != null;
1841
- };
1842
-
1843
-
1844
- /**
1845
- * optional float average_bet_real = 5;
1846
- * @return {number}
1847
- */
1848
- proto.bet.DashboardResponse.prototype.getAverageBetReal = function() {
1849
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
1850
- };
1851
-
1852
-
1853
- /**
1854
- * @param {number} value
1855
- * @return {!proto.bet.DashboardResponse} returns this
1856
- */
1857
- proto.bet.DashboardResponse.prototype.setAverageBetReal = function(value) {
1858
- return jspb.Message.setField(this, 5, value);
1859
- };
1860
-
1861
-
1862
- /**
1863
- * Clears the field making it undefined.
1864
- * @return {!proto.bet.DashboardResponse} returns this
1865
- */
1866
- proto.bet.DashboardResponse.prototype.clearAverageBetReal = function() {
1867
- return jspb.Message.setField(this, 5, undefined);
1868
- };
1869
-
1870
-
1871
- /**
1872
- * Returns whether this field is set.
1873
- * @return {boolean}
1874
- */
1875
- proto.bet.DashboardResponse.prototype.hasAverageBetReal = function() {
1876
- return jspb.Message.getField(this, 5) != null;
1877
- };
1878
-
1879
-
1880
- /**
1881
- * optional float average_bet_bonus = 6;
1882
- * @return {number}
1883
- */
1884
- proto.bet.DashboardResponse.prototype.getAverageBetBonus = function() {
1885
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
1886
- };
1887
-
1888
-
1889
- /**
1890
- * @param {number} value
1891
- * @return {!proto.bet.DashboardResponse} returns this
1892
- */
1893
- proto.bet.DashboardResponse.prototype.setAverageBetBonus = function(value) {
1894
- return jspb.Message.setField(this, 6, value);
1895
- };
1896
-
1897
-
1898
- /**
1899
- * Clears the field making it undefined.
1900
- * @return {!proto.bet.DashboardResponse} returns this
1901
- */
1902
- proto.bet.DashboardResponse.prototype.clearAverageBetBonus = function() {
1903
- return jspb.Message.setField(this, 6, undefined);
1904
- };
1905
-
1906
-
1907
- /**
1908
- * Returns whether this field is set.
1909
- * @return {boolean}
1910
- */
1911
- proto.bet.DashboardResponse.prototype.hasAverageBetBonus = function() {
1912
- return jspb.Message.getField(this, 6) != null;
1913
- };
1914
-
1915
-
1916
- /**
1917
- * optional float max_win_real = 7;
1918
- * @return {number}
1919
- */
1920
- proto.bet.DashboardResponse.prototype.getMaxWinReal = function() {
1921
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
1922
- };
1923
-
1924
-
1925
- /**
1926
- * @param {number} value
1927
- * @return {!proto.bet.DashboardResponse} returns this
1928
- */
1929
- proto.bet.DashboardResponse.prototype.setMaxWinReal = function(value) {
1930
- return jspb.Message.setField(this, 7, value);
1931
- };
1932
-
1933
-
1934
- /**
1935
- * Clears the field making it undefined.
1936
- * @return {!proto.bet.DashboardResponse} returns this
1937
- */
1938
- proto.bet.DashboardResponse.prototype.clearMaxWinReal = function() {
1939
- return jspb.Message.setField(this, 7, undefined);
1940
- };
1941
-
1942
-
1943
- /**
1944
- * Returns whether this field is set.
1945
- * @return {boolean}
1946
- */
1947
- proto.bet.DashboardResponse.prototype.hasMaxWinReal = function() {
1948
- return jspb.Message.getField(this, 7) != null;
1949
- };
1950
-
1951
-
1952
- /**
1953
- * optional float max_win_bonus = 8;
1954
- * @return {number}
1955
- */
1956
- proto.bet.DashboardResponse.prototype.getMaxWinBonus = function() {
1957
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
1958
- };
1959
-
1960
-
1961
- /**
1962
- * @param {number} value
1963
- * @return {!proto.bet.DashboardResponse} returns this
1964
- */
1965
- proto.bet.DashboardResponse.prototype.setMaxWinBonus = function(value) {
1966
- return jspb.Message.setField(this, 8, value);
1967
- };
1968
-
1969
-
1970
- /**
1971
- * Clears the field making it undefined.
1972
- * @return {!proto.bet.DashboardResponse} returns this
1973
- */
1974
- proto.bet.DashboardResponse.prototype.clearMaxWinBonus = function() {
1975
- return jspb.Message.setField(this, 8, undefined);
1976
- };
1977
-
1978
-
1979
- /**
1980
- * Returns whether this field is set.
1981
- * @return {boolean}
1982
- */
1983
- proto.bet.DashboardResponse.prototype.hasMaxWinBonus = function() {
1984
- return jspb.Message.getField(this, 8) != null;
1985
- };
1986
-
1987
-
1988
- /**
1989
- * optional float average_win_real = 9;
1990
- * @return {number}
1991
- */
1992
- proto.bet.DashboardResponse.prototype.getAverageWinReal = function() {
1993
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
1994
- };
1995
-
1996
-
1997
- /**
1998
- * @param {number} value
1999
- * @return {!proto.bet.DashboardResponse} returns this
2000
- */
2001
- proto.bet.DashboardResponse.prototype.setAverageWinReal = function(value) {
2002
- return jspb.Message.setField(this, 9, value);
2003
- };
2004
-
2005
-
2006
- /**
2007
- * Clears the field making it undefined.
2008
- * @return {!proto.bet.DashboardResponse} returns this
2009
- */
2010
- proto.bet.DashboardResponse.prototype.clearAverageWinReal = function() {
2011
- return jspb.Message.setField(this, 9, undefined);
2012
- };
2013
-
2014
-
2015
- /**
2016
- * Returns whether this field is set.
2017
- * @return {boolean}
2018
- */
2019
- proto.bet.DashboardResponse.prototype.hasAverageWinReal = function() {
2020
- return jspb.Message.getField(this, 9) != null;
2021
- };
2022
-
2023
-
2024
- /**
2025
- * optional float average_win_bonus = 10;
2026
- * @return {number}
2027
- */
2028
- proto.bet.DashboardResponse.prototype.getAverageWinBonus = function() {
2029
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
2030
- };
2031
-
2032
-
2033
- /**
2034
- * @param {number} value
2035
- * @return {!proto.bet.DashboardResponse} returns this
2036
- */
2037
- proto.bet.DashboardResponse.prototype.setAverageWinBonus = function(value) {
2038
- return jspb.Message.setField(this, 10, value);
2039
- };
2040
-
2041
-
2042
- /**
2043
- * Clears the field making it undefined.
2044
- * @return {!proto.bet.DashboardResponse} returns this
2045
- */
2046
- proto.bet.DashboardResponse.prototype.clearAverageWinBonus = function() {
2047
- return jspb.Message.setField(this, 10, undefined);
2048
- };
2049
-
2050
-
2051
- /**
2052
- * Returns whether this field is set.
2053
- * @return {boolean}
2054
- */
2055
- proto.bet.DashboardResponse.prototype.hasAverageWinBonus = function() {
2056
- return jspb.Message.getField(this, 10) != null;
2057
- };
2058
-
2059
-
2060
- /**
2061
- * optional float turnover_real = 11;
2062
- * @return {number}
2063
- */
2064
- proto.bet.DashboardResponse.prototype.getTurnoverReal = function() {
2065
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
2066
- };
2067
-
2068
-
2069
- /**
2070
- * @param {number} value
2071
- * @return {!proto.bet.DashboardResponse} returns this
2072
- */
2073
- proto.bet.DashboardResponse.prototype.setTurnoverReal = function(value) {
2074
- return jspb.Message.setField(this, 11, value);
2075
- };
2076
-
2077
-
2078
- /**
2079
- * Clears the field making it undefined.
2080
- * @return {!proto.bet.DashboardResponse} returns this
2081
- */
2082
- proto.bet.DashboardResponse.prototype.clearTurnoverReal = function() {
2083
- return jspb.Message.setField(this, 11, undefined);
2084
- };
2085
-
2086
-
2087
- /**
2088
- * Returns whether this field is set.
2089
- * @return {boolean}
2090
- */
2091
- proto.bet.DashboardResponse.prototype.hasTurnoverReal = function() {
2092
- return jspb.Message.getField(this, 11) != null;
2093
- };
2094
-
2095
-
2096
- /**
2097
- * optional float turnover_bonus = 12;
2098
- * @return {number}
2099
- */
2100
- proto.bet.DashboardResponse.prototype.getTurnoverBonus = function() {
2101
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
2102
- };
2103
-
2104
-
2105
- /**
2106
- * @param {number} value
2107
- * @return {!proto.bet.DashboardResponse} returns this
2108
- */
2109
- proto.bet.DashboardResponse.prototype.setTurnoverBonus = function(value) {
2110
- return jspb.Message.setField(this, 12, value);
2111
- };
2112
-
2113
-
2114
- /**
2115
- * Clears the field making it undefined.
2116
- * @return {!proto.bet.DashboardResponse} returns this
2117
- */
2118
- proto.bet.DashboardResponse.prototype.clearTurnoverBonus = function() {
2119
- return jspb.Message.setField(this, 12, undefined);
2120
- };
2121
-
2122
-
2123
- /**
2124
- * Returns whether this field is set.
2125
- * @return {boolean}
2126
- */
2127
- proto.bet.DashboardResponse.prototype.hasTurnoverBonus = function() {
2128
- return jspb.Message.getField(this, 12) != null;
2129
- };
2130
-
2131
-
2132
- /**
2133
- * optional float ggr_total = 13;
2134
- * @return {number}
2135
- */
2136
- proto.bet.DashboardResponse.prototype.getGgrTotal = function() {
2137
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
2138
- };
2139
-
2140
-
2141
- /**
2142
- * @param {number} value
2143
- * @return {!proto.bet.DashboardResponse} returns this
2144
- */
2145
- proto.bet.DashboardResponse.prototype.setGgrTotal = function(value) {
2146
- return jspb.Message.setField(this, 13, value);
2147
- };
2148
-
2149
-
2150
- /**
2151
- * Clears the field making it undefined.
2152
- * @return {!proto.bet.DashboardResponse} returns this
2153
- */
2154
- proto.bet.DashboardResponse.prototype.clearGgrTotal = function() {
2155
- return jspb.Message.setField(this, 13, undefined);
2156
- };
2157
-
2158
-
2159
- /**
2160
- * Returns whether this field is set.
2161
- * @return {boolean}
2162
- */
2163
- proto.bet.DashboardResponse.prototype.hasGgrTotal = function() {
2164
- return jspb.Message.getField(this, 13) != null;
2165
- };
2166
-
2167
-
2168
- /**
2169
- * optional float ggr_real = 14;
2170
- * @return {number}
2171
- */
2172
- proto.bet.DashboardResponse.prototype.getGgrReal = function() {
2173
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 14, 0.0));
2174
- };
2175
-
2176
-
2177
- /**
2178
- * @param {number} value
2179
- * @return {!proto.bet.DashboardResponse} returns this
2180
- */
2181
- proto.bet.DashboardResponse.prototype.setGgrReal = function(value) {
2182
- return jspb.Message.setField(this, 14, value);
2183
- };
2184
-
2185
-
2186
- /**
2187
- * Clears the field making it undefined.
2188
- * @return {!proto.bet.DashboardResponse} returns this
2189
- */
2190
- proto.bet.DashboardResponse.prototype.clearGgrReal = function() {
2191
- return jspb.Message.setField(this, 14, undefined);
2192
- };
2193
-
2194
-
2195
- /**
2196
- * Returns whether this field is set.
2197
- * @return {boolean}
2198
- */
2199
- proto.bet.DashboardResponse.prototype.hasGgrReal = function() {
2200
- return jspb.Message.getField(this, 14) != null;
2201
- };
2202
-
2203
-
2204
- /**
2205
- * optional float ggr_bonus = 15;
2206
- * @return {number}
2207
- */
2208
- proto.bet.DashboardResponse.prototype.getGgrBonus = function() {
2209
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 15, 0.0));
2210
- };
2211
-
2212
-
2213
- /**
2214
- * @param {number} value
2215
- * @return {!proto.bet.DashboardResponse} returns this
2216
- */
2217
- proto.bet.DashboardResponse.prototype.setGgrBonus = function(value) {
2218
- return jspb.Message.setField(this, 15, value);
2219
- };
2220
-
2221
-
2222
- /**
2223
- * Clears the field making it undefined.
2224
- * @return {!proto.bet.DashboardResponse} returns this
2225
- */
2226
- proto.bet.DashboardResponse.prototype.clearGgrBonus = function() {
2227
- return jspb.Message.setField(this, 15, undefined);
2228
- };
2229
-
2230
-
2231
- /**
2232
- * Returns whether this field is set.
2233
- * @return {boolean}
2234
- */
2235
- proto.bet.DashboardResponse.prototype.hasGgrBonus = function() {
2236
- return jspb.Message.getField(this, 15) != null;
2237
- };
2238
-
2239
-
2240
- /**
2241
- * repeated DashboardGameInfo top_games_count_bet_real = 16;
2242
- * @return {!Array<!proto.bet.DashboardGameInfo>}
2243
- */
2244
- proto.bet.DashboardResponse.prototype.getTopGamesCountBetRealList = function() {
2245
- return /** @type{!Array<!proto.bet.DashboardGameInfo>} */ (
2246
- jspb.Message.getRepeatedWrapperField(this, proto.bet.DashboardGameInfo, 16));
2247
- };
2248
-
2249
-
2250
- /**
2251
- * @param {!Array<!proto.bet.DashboardGameInfo>} value
2252
- * @return {!proto.bet.DashboardResponse} returns this
2253
- */
2254
- proto.bet.DashboardResponse.prototype.setTopGamesCountBetRealList = function(value) {
2255
- return jspb.Message.setRepeatedWrapperField(this, 16, value);
2256
- };
2257
-
2258
-
2259
- /**
2260
- * @param {!proto.bet.DashboardGameInfo=} opt_value
2261
- * @param {number=} opt_index
2262
- * @return {!proto.bet.DashboardGameInfo}
2263
- */
2264
- proto.bet.DashboardResponse.prototype.addTopGamesCountBetReal = function(opt_value, opt_index) {
2265
- return jspb.Message.addToRepeatedWrapperField(this, 16, opt_value, proto.bet.DashboardGameInfo, opt_index);
2266
- };
2267
-
2268
-
2269
- /**
2270
- * Clears the list making it empty but non-null.
2271
- * @return {!proto.bet.DashboardResponse} returns this
2272
- */
2273
- proto.bet.DashboardResponse.prototype.clearTopGamesCountBetRealList = function() {
2274
- return this.setTopGamesCountBetRealList([]);
2275
- };
2276
-
2277
-
2278
- /**
2279
- * repeated DashboardGameInfo top_games_count_bet_bonus = 17;
2280
- * @return {!Array<!proto.bet.DashboardGameInfo>}
2281
- */
2282
- proto.bet.DashboardResponse.prototype.getTopGamesCountBetBonusList = function() {
2283
- return /** @type{!Array<!proto.bet.DashboardGameInfo>} */ (
2284
- jspb.Message.getRepeatedWrapperField(this, proto.bet.DashboardGameInfo, 17));
2285
- };
2286
-
2287
-
2288
- /**
2289
- * @param {!Array<!proto.bet.DashboardGameInfo>} value
2290
- * @return {!proto.bet.DashboardResponse} returns this
2291
- */
2292
- proto.bet.DashboardResponse.prototype.setTopGamesCountBetBonusList = function(value) {
2293
- return jspb.Message.setRepeatedWrapperField(this, 17, value);
2294
- };
2295
-
2296
-
2297
- /**
2298
- * @param {!proto.bet.DashboardGameInfo=} opt_value
2299
- * @param {number=} opt_index
2300
- * @return {!proto.bet.DashboardGameInfo}
2301
- */
2302
- proto.bet.DashboardResponse.prototype.addTopGamesCountBetBonus = function(opt_value, opt_index) {
2303
- return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.bet.DashboardGameInfo, opt_index);
2304
- };
2305
-
2306
-
2307
- /**
2308
- * Clears the list making it empty but non-null.
2309
- * @return {!proto.bet.DashboardResponse} returns this
2310
- */
2311
- proto.bet.DashboardResponse.prototype.clearTopGamesCountBetBonusList = function() {
2312
- return this.setTopGamesCountBetBonusList([]);
2313
- };
2314
-
2315
-
2316
- /**
2317
- * repeated DashboardGameInfo top_games_sum_bet_real = 18;
2318
- * @return {!Array<!proto.bet.DashboardGameInfo>}
2319
- */
2320
- proto.bet.DashboardResponse.prototype.getTopGamesSumBetRealList = function() {
2321
- return /** @type{!Array<!proto.bet.DashboardGameInfo>} */ (
2322
- jspb.Message.getRepeatedWrapperField(this, proto.bet.DashboardGameInfo, 18));
2323
- };
2324
-
2325
-
2326
- /**
2327
- * @param {!Array<!proto.bet.DashboardGameInfo>} value
2328
- * @return {!proto.bet.DashboardResponse} returns this
2329
- */
2330
- proto.bet.DashboardResponse.prototype.setTopGamesSumBetRealList = function(value) {
2331
- return jspb.Message.setRepeatedWrapperField(this, 18, value);
2332
- };
2333
-
2334
-
2335
- /**
2336
- * @param {!proto.bet.DashboardGameInfo=} opt_value
2337
- * @param {number=} opt_index
2338
- * @return {!proto.bet.DashboardGameInfo}
2339
- */
2340
- proto.bet.DashboardResponse.prototype.addTopGamesSumBetReal = function(opt_value, opt_index) {
2341
- return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.bet.DashboardGameInfo, opt_index);
2342
- };
2343
-
2344
-
2345
- /**
2346
- * Clears the list making it empty but non-null.
2347
- * @return {!proto.bet.DashboardResponse} returns this
2348
- */
2349
- proto.bet.DashboardResponse.prototype.clearTopGamesSumBetRealList = function() {
2350
- return this.setTopGamesSumBetRealList([]);
2351
- };
2352
-
2353
-
2354
- /**
2355
- * repeated DashboardGameInfo top_games_sum_bet_bonus = 19;
2356
- * @return {!Array<!proto.bet.DashboardGameInfo>}
2357
- */
2358
- proto.bet.DashboardResponse.prototype.getTopGamesSumBetBonusList = function() {
2359
- return /** @type{!Array<!proto.bet.DashboardGameInfo>} */ (
2360
- jspb.Message.getRepeatedWrapperField(this, proto.bet.DashboardGameInfo, 19));
2361
- };
2362
-
2363
-
2364
- /**
2365
- * @param {!Array<!proto.bet.DashboardGameInfo>} value
2366
- * @return {!proto.bet.DashboardResponse} returns this
2367
- */
2368
- proto.bet.DashboardResponse.prototype.setTopGamesSumBetBonusList = function(value) {
2369
- return jspb.Message.setRepeatedWrapperField(this, 19, value);
2370
- };
2371
-
2372
-
2373
- /**
2374
- * @param {!proto.bet.DashboardGameInfo=} opt_value
2375
- * @param {number=} opt_index
2376
- * @return {!proto.bet.DashboardGameInfo}
2377
- */
2378
- proto.bet.DashboardResponse.prototype.addTopGamesSumBetBonus = function(opt_value, opt_index) {
2379
- return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.bet.DashboardGameInfo, opt_index);
2380
- };
2381
-
2382
-
2383
- /**
2384
- * Clears the list making it empty but non-null.
2385
- * @return {!proto.bet.DashboardResponse} returns this
2386
- */
2387
- proto.bet.DashboardResponse.prototype.clearTopGamesSumBetBonusList = function() {
2388
- return this.setTopGamesSumBetBonusList([]);
2389
- };
2390
-
2391
-
2392
-
2393
-
2394
-
2395
- if (jspb.Message.GENERATE_TO_OBJECT) {
2396
- /**
2397
- * Creates an object representation of this proto.
2398
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2399
- * Optional fields that are not set will be set to undefined.
2400
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2401
- * For the list of reserved names please see:
2402
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2403
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2404
- * JSPB instance for transitional soy proto support:
2405
- * http://goto/soy-param-migration
2406
- * @return {!Object}
2407
- */
2408
- proto.bet.UserBetItem.prototype.toObject = function(opt_includeInstance) {
2409
- return proto.bet.UserBetItem.toObject(opt_includeInstance, this);
2410
- };
2411
-
2412
-
2413
- /**
2414
- * Static version of the {@see toObject} method.
2415
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2416
- * the JSPB instance for transitional soy proto support:
2417
- * http://goto/soy-param-migration
2418
- * @param {!proto.bet.UserBetItem} msg The msg instance to transform.
2419
- * @return {!Object}
2420
- * @suppress {unusedLocalVariables} f is only used for nested messages
2421
- */
2422
- proto.bet.UserBetItem.toObject = function(includeInstance, msg) {
2423
- var f, obj = {
2424
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2425
- gameTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
2426
- gameProvider: jspb.Message.getFieldWithDefault(msg, 3, ""),
2427
- action: jspb.Message.getFieldWithDefault(msg, 4, ""),
2428
- balanceType: jspb.Message.getFieldWithDefault(msg, 5, ""),
2429
- balanceReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
2430
- balanceBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
2431
- amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
2432
- type: jspb.Message.getFieldWithDefault(msg, 9, ""),
2433
- currency: jspb.Message.getFieldWithDefault(msg, 10, ""),
2434
- transactionId: jspb.Message.getFieldWithDefault(msg, 11, ""),
2435
- sessionId: jspb.Message.getFieldWithDefault(msg, 12, ""),
2436
- roundId: jspb.Message.getFieldWithDefault(msg, 13, ""),
2437
- created: jspb.Message.getFieldWithDefault(msg, 14, ""),
2438
- userDevice: jspb.Message.getFieldWithDefault(msg, 15, "")
2439
- };
2440
-
2441
- if (includeInstance) {
2442
- obj.$jspbMessageInstance = msg;
2443
- }
2444
- return obj;
2445
- };
2446
- }
2447
-
2448
-
2449
- /**
2450
- * Deserializes binary data (in protobuf wire format).
2451
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2452
- * @return {!proto.bet.UserBetItem}
2453
- */
2454
- proto.bet.UserBetItem.deserializeBinary = function(bytes) {
2455
- var reader = new jspb.BinaryReader(bytes);
2456
- var msg = new proto.bet.UserBetItem;
2457
- return proto.bet.UserBetItem.deserializeBinaryFromReader(msg, reader);
2458
- };
2459
-
2460
-
2461
- /**
2462
- * Deserializes binary data (in protobuf wire format) from the
2463
- * given reader into the given message object.
2464
- * @param {!proto.bet.UserBetItem} msg The message object to deserialize into.
2465
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2466
- * @return {!proto.bet.UserBetItem}
2467
- */
2468
- proto.bet.UserBetItem.deserializeBinaryFromReader = function(msg, reader) {
2469
- while (reader.nextField()) {
2470
- if (reader.isEndGroup()) {
2471
- break;
2472
- }
2473
- var field = reader.getFieldNumber();
2474
- switch (field) {
2475
- case 1:
2476
- var value = /** @type {number} */ (reader.readInt32());
2477
- msg.setId(value);
2478
- break;
2479
- case 2:
2480
- var value = /** @type {string} */ (reader.readString());
2481
- msg.setGameTitle(value);
2482
- break;
2483
- case 3:
2484
- var value = /** @type {string} */ (reader.readString());
2485
- msg.setGameProvider(value);
2486
- break;
2487
- case 4:
2488
- var value = /** @type {string} */ (reader.readString());
2489
- msg.setAction(value);
2490
- break;
2491
- case 5:
2492
- var value = /** @type {string} */ (reader.readString());
2493
- msg.setBalanceType(value);
2494
- break;
2495
- case 6:
2496
- var value = /** @type {number} */ (reader.readFloat());
2497
- msg.setBalanceReal(value);
2498
- break;
2499
- case 7:
2500
- var value = /** @type {number} */ (reader.readFloat());
2501
- msg.setBalanceBonus(value);
2502
- break;
2503
- case 8:
2504
- var value = /** @type {number} */ (reader.readFloat());
2505
- msg.setAmount(value);
2506
- break;
2507
- case 9:
2508
- var value = /** @type {string} */ (reader.readString());
2509
- msg.setType(value);
2510
- break;
2511
- case 10:
2512
- var value = /** @type {string} */ (reader.readString());
2513
- msg.setCurrency(value);
2514
- break;
2515
- case 11:
2516
- var value = /** @type {string} */ (reader.readString());
2517
- msg.setTransactionId(value);
2518
- break;
2519
- case 12:
2520
- var value = /** @type {string} */ (reader.readString());
2521
- msg.setSessionId(value);
2522
- break;
2523
- case 13:
2524
- var value = /** @type {string} */ (reader.readString());
2525
- msg.setRoundId(value);
2526
- break;
2527
- case 14:
2528
- var value = /** @type {string} */ (reader.readString());
2529
- msg.setCreated(value);
2530
- break;
2531
- case 15:
2532
- var value = /** @type {string} */ (reader.readString());
2533
- msg.setUserDevice(value);
2534
- break;
2535
- default:
2536
- reader.skipField();
2537
- break;
2538
- }
2539
- }
2540
- return msg;
2541
- };
2542
-
2543
-
2544
- /**
2545
- * Serializes the message to binary data (in protobuf wire format).
2546
- * @return {!Uint8Array}
2547
- */
2548
- proto.bet.UserBetItem.prototype.serializeBinary = function() {
2549
- var writer = new jspb.BinaryWriter();
2550
- proto.bet.UserBetItem.serializeBinaryToWriter(this, writer);
2551
- return writer.getResultBuffer();
2552
- };
2553
-
2554
-
2555
- /**
2556
- * Serializes the given message to binary data (in protobuf wire
2557
- * format), writing to the given BinaryWriter.
2558
- * @param {!proto.bet.UserBetItem} message
2559
- * @param {!jspb.BinaryWriter} writer
2560
- * @suppress {unusedLocalVariables} f is only used for nested messages
2561
- */
2562
- proto.bet.UserBetItem.serializeBinaryToWriter = function(message, writer) {
2563
- var f = undefined;
2564
- f = message.getId();
2565
- if (f !== 0) {
2566
- writer.writeInt32(
2567
- 1,
2568
- f
2569
- );
2570
- }
2571
- f = message.getGameTitle();
2572
- if (f.length > 0) {
2573
- writer.writeString(
2574
- 2,
2575
- f
2576
- );
2577
- }
2578
- f = message.getGameProvider();
2579
- if (f.length > 0) {
2580
- writer.writeString(
2581
- 3,
2582
- f
2583
- );
2584
- }
2585
- f = message.getAction();
2586
- if (f.length > 0) {
2587
- writer.writeString(
2588
- 4,
2589
- f
2590
- );
2591
- }
2592
- f = message.getBalanceType();
2593
- if (f.length > 0) {
2594
- writer.writeString(
2595
- 5,
2596
- f
2597
- );
2598
- }
2599
- f = message.getBalanceReal();
2600
- if (f !== 0.0) {
2601
- writer.writeFloat(
2602
- 6,
2603
- f
2604
- );
2605
- }
2606
- f = message.getBalanceBonus();
2607
- if (f !== 0.0) {
2608
- writer.writeFloat(
2609
- 7,
2610
- f
2611
- );
2612
- }
2613
- f = message.getAmount();
2614
- if (f !== 0.0) {
2615
- writer.writeFloat(
2616
- 8,
2617
- f
2618
- );
2619
- }
2620
- f = message.getType();
2621
- if (f.length > 0) {
2622
- writer.writeString(
2623
- 9,
2624
- f
2625
- );
2626
- }
2627
- f = /** @type {string} */ (jspb.Message.getField(message, 10));
2628
- if (f != null) {
2629
- writer.writeString(
2630
- 10,
2631
- f
2632
- );
2633
- }
2634
- f = /** @type {string} */ (jspb.Message.getField(message, 11));
2635
- if (f != null) {
2636
- writer.writeString(
2637
- 11,
2638
- f
2639
- );
2640
- }
2641
- f = /** @type {string} */ (jspb.Message.getField(message, 12));
2642
- if (f != null) {
2643
- writer.writeString(
2644
- 12,
2645
- f
2646
- );
2647
- }
2648
- f = /** @type {string} */ (jspb.Message.getField(message, 13));
2649
- if (f != null) {
2650
- writer.writeString(
2651
- 13,
2652
- f
2653
- );
2654
- }
2655
- f = /** @type {string} */ (jspb.Message.getField(message, 14));
2656
- if (f != null) {
2657
- writer.writeString(
2658
- 14,
2659
- f
2660
- );
2661
- }
2662
- f = /** @type {string} */ (jspb.Message.getField(message, 15));
2663
- if (f != null) {
2664
- writer.writeString(
2665
- 15,
2666
- f
2667
- );
2668
- }
2669
- };
2670
-
2671
-
2672
- /**
2673
- * optional int32 id = 1;
2674
- * @return {number}
2675
- */
2676
- proto.bet.UserBetItem.prototype.getId = function() {
2677
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2678
- };
2679
-
2680
-
2681
- /**
2682
- * @param {number} value
2683
- * @return {!proto.bet.UserBetItem} returns this
2684
- */
2685
- proto.bet.UserBetItem.prototype.setId = function(value) {
2686
- return jspb.Message.setProto3IntField(this, 1, value);
2687
- };
2688
-
2689
-
2690
- /**
2691
- * optional string game_title = 2;
2692
- * @return {string}
2693
- */
2694
- proto.bet.UserBetItem.prototype.getGameTitle = function() {
2695
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2696
- };
2697
-
2698
-
2699
- /**
2700
- * @param {string} value
2701
- * @return {!proto.bet.UserBetItem} returns this
2702
- */
2703
- proto.bet.UserBetItem.prototype.setGameTitle = function(value) {
2704
- return jspb.Message.setProto3StringField(this, 2, value);
2705
- };
2706
-
2707
-
2708
- /**
2709
- * optional string game_provider = 3;
2710
- * @return {string}
2711
- */
2712
- proto.bet.UserBetItem.prototype.getGameProvider = function() {
2713
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2714
- };
2715
-
2716
-
2717
- /**
2718
- * @param {string} value
2719
- * @return {!proto.bet.UserBetItem} returns this
2720
- */
2721
- proto.bet.UserBetItem.prototype.setGameProvider = function(value) {
2722
- return jspb.Message.setProto3StringField(this, 3, value);
2723
- };
2724
-
2725
-
2726
- /**
2727
- * optional string action = 4;
2728
- * @return {string}
2729
- */
2730
- proto.bet.UserBetItem.prototype.getAction = function() {
2731
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2732
- };
2733
-
2734
-
2735
- /**
2736
- * @param {string} value
2737
- * @return {!proto.bet.UserBetItem} returns this
2738
- */
2739
- proto.bet.UserBetItem.prototype.setAction = function(value) {
2740
- return jspb.Message.setProto3StringField(this, 4, value);
2741
- };
2742
-
2743
-
2744
- /**
2745
- * optional string balance_type = 5;
2746
- * @return {string}
2747
- */
2748
- proto.bet.UserBetItem.prototype.getBalanceType = function() {
2749
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2750
- };
2751
-
2752
-
2753
- /**
2754
- * @param {string} value
2755
- * @return {!proto.bet.UserBetItem} returns this
2756
- */
2757
- proto.bet.UserBetItem.prototype.setBalanceType = function(value) {
2758
- return jspb.Message.setProto3StringField(this, 5, value);
2759
- };
2760
-
2761
-
2762
- /**
2763
- * optional float balance_real = 6;
2764
- * @return {number}
2765
- */
2766
- proto.bet.UserBetItem.prototype.getBalanceReal = function() {
2767
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
2768
- };
2769
-
2770
-
2771
- /**
2772
- * @param {number} value
2773
- * @return {!proto.bet.UserBetItem} returns this
2774
- */
2775
- proto.bet.UserBetItem.prototype.setBalanceReal = function(value) {
2776
- return jspb.Message.setProto3FloatField(this, 6, value);
2777
- };
2778
-
2779
-
2780
- /**
2781
- * optional float balance_bonus = 7;
2782
- * @return {number}
2783
- */
2784
- proto.bet.UserBetItem.prototype.getBalanceBonus = function() {
2785
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
2786
- };
2787
-
2788
-
2789
- /**
2790
- * @param {number} value
2791
- * @return {!proto.bet.UserBetItem} returns this
2792
- */
2793
- proto.bet.UserBetItem.prototype.setBalanceBonus = function(value) {
2794
- return jspb.Message.setProto3FloatField(this, 7, value);
2795
- };
2796
-
2797
-
2798
- /**
2799
- * optional float amount = 8;
2800
- * @return {number}
2801
- */
2802
- proto.bet.UserBetItem.prototype.getAmount = function() {
2803
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
2804
- };
2805
-
2806
-
2807
- /**
2808
- * @param {number} value
2809
- * @return {!proto.bet.UserBetItem} returns this
2810
- */
2811
- proto.bet.UserBetItem.prototype.setAmount = function(value) {
2812
- return jspb.Message.setProto3FloatField(this, 8, value);
2813
- };
2814
-
2815
-
2816
- /**
2817
- * optional string type = 9;
2818
- * @return {string}
2819
- */
2820
- proto.bet.UserBetItem.prototype.getType = function() {
2821
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2822
- };
2823
-
2824
-
2825
- /**
2826
- * @param {string} value
2827
- * @return {!proto.bet.UserBetItem} returns this
2828
- */
2829
- proto.bet.UserBetItem.prototype.setType = function(value) {
2830
- return jspb.Message.setProto3StringField(this, 9, value);
2831
- };
2832
-
2833
-
2834
- /**
2835
- * optional string currency = 10;
2836
- * @return {string}
2837
- */
2838
- proto.bet.UserBetItem.prototype.getCurrency = function() {
2839
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2840
- };
2841
-
2842
-
2843
- /**
2844
- * @param {string} value
2845
- * @return {!proto.bet.UserBetItem} returns this
2846
- */
2847
- proto.bet.UserBetItem.prototype.setCurrency = function(value) {
2848
- return jspb.Message.setField(this, 10, value);
2849
- };
2850
-
2851
-
2852
- /**
2853
- * Clears the field making it undefined.
2854
- * @return {!proto.bet.UserBetItem} returns this
2855
- */
2856
- proto.bet.UserBetItem.prototype.clearCurrency = function() {
2857
- return jspb.Message.setField(this, 10, undefined);
2858
- };
2859
-
2860
-
2861
- /**
2862
- * Returns whether this field is set.
2863
- * @return {boolean}
2864
- */
2865
- proto.bet.UserBetItem.prototype.hasCurrency = function() {
2866
- return jspb.Message.getField(this, 10) != null;
2867
- };
2868
-
2869
-
2870
- /**
2871
- * optional string transaction_id = 11;
2872
- * @return {string}
2873
- */
2874
- proto.bet.UserBetItem.prototype.getTransactionId = function() {
2875
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2876
- };
2877
-
2878
-
2879
- /**
2880
- * @param {string} value
2881
- * @return {!proto.bet.UserBetItem} returns this
2882
- */
2883
- proto.bet.UserBetItem.prototype.setTransactionId = function(value) {
2884
- return jspb.Message.setField(this, 11, value);
2885
- };
2886
-
2887
-
2888
- /**
2889
- * Clears the field making it undefined.
2890
- * @return {!proto.bet.UserBetItem} returns this
2891
- */
2892
- proto.bet.UserBetItem.prototype.clearTransactionId = function() {
2893
- return jspb.Message.setField(this, 11, undefined);
2894
- };
2895
-
2896
-
2897
- /**
2898
- * Returns whether this field is set.
2899
- * @return {boolean}
2900
- */
2901
- proto.bet.UserBetItem.prototype.hasTransactionId = function() {
2902
- return jspb.Message.getField(this, 11) != null;
2903
- };
2904
-
2905
-
2906
- /**
2907
- * optional string session_id = 12;
2908
- * @return {string}
2909
- */
2910
- proto.bet.UserBetItem.prototype.getSessionId = function() {
2911
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2912
- };
2913
-
2914
-
2915
- /**
2916
- * @param {string} value
2917
- * @return {!proto.bet.UserBetItem} returns this
2918
- */
2919
- proto.bet.UserBetItem.prototype.setSessionId = function(value) {
2920
- return jspb.Message.setField(this, 12, value);
2921
- };
2922
-
2923
-
2924
- /**
2925
- * Clears the field making it undefined.
2926
- * @return {!proto.bet.UserBetItem} returns this
2927
- */
2928
- proto.bet.UserBetItem.prototype.clearSessionId = function() {
2929
- return jspb.Message.setField(this, 12, undefined);
2930
- };
2931
-
2932
-
2933
- /**
2934
- * Returns whether this field is set.
2935
- * @return {boolean}
2936
- */
2937
- proto.bet.UserBetItem.prototype.hasSessionId = function() {
2938
- return jspb.Message.getField(this, 12) != null;
2939
- };
2940
-
2941
-
2942
- /**
2943
- * optional string round_id = 13;
2944
- * @return {string}
2945
- */
2946
- proto.bet.UserBetItem.prototype.getRoundId = function() {
2947
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
2948
- };
2949
-
2950
-
2951
- /**
2952
- * @param {string} value
2953
- * @return {!proto.bet.UserBetItem} returns this
2954
- */
2955
- proto.bet.UserBetItem.prototype.setRoundId = function(value) {
2956
- return jspb.Message.setField(this, 13, value);
2957
- };
2958
-
2959
-
2960
- /**
2961
- * Clears the field making it undefined.
2962
- * @return {!proto.bet.UserBetItem} returns this
2963
- */
2964
- proto.bet.UserBetItem.prototype.clearRoundId = function() {
2965
- return jspb.Message.setField(this, 13, undefined);
2966
- };
2967
-
2968
-
2969
- /**
2970
- * Returns whether this field is set.
2971
- * @return {boolean}
2972
- */
2973
- proto.bet.UserBetItem.prototype.hasRoundId = function() {
2974
- return jspb.Message.getField(this, 13) != null;
2975
- };
2976
-
2977
-
2978
- /**
2979
- * optional string created = 14;
2980
- * @return {string}
2981
- */
2982
- proto.bet.UserBetItem.prototype.getCreated = function() {
2983
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
2984
- };
2985
-
2986
-
2987
- /**
2988
- * @param {string} value
2989
- * @return {!proto.bet.UserBetItem} returns this
2990
- */
2991
- proto.bet.UserBetItem.prototype.setCreated = function(value) {
2992
- return jspb.Message.setField(this, 14, value);
2993
- };
2994
-
2995
-
2996
- /**
2997
- * Clears the field making it undefined.
2998
- * @return {!proto.bet.UserBetItem} returns this
2999
- */
3000
- proto.bet.UserBetItem.prototype.clearCreated = function() {
3001
- return jspb.Message.setField(this, 14, undefined);
3002
- };
3003
-
3004
-
3005
- /**
3006
- * Returns whether this field is set.
3007
- * @return {boolean}
3008
- */
3009
- proto.bet.UserBetItem.prototype.hasCreated = function() {
3010
- return jspb.Message.getField(this, 14) != null;
3011
- };
3012
-
3013
-
3014
- /**
3015
- * optional string user_device = 15;
3016
- * @return {string}
3017
- */
3018
- proto.bet.UserBetItem.prototype.getUserDevice = function() {
3019
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3020
- };
3021
-
3022
-
3023
- /**
3024
- * @param {string} value
3025
- * @return {!proto.bet.UserBetItem} returns this
3026
- */
3027
- proto.bet.UserBetItem.prototype.setUserDevice = function(value) {
3028
- return jspb.Message.setField(this, 15, value);
3029
- };
3030
-
3031
-
3032
- /**
3033
- * Clears the field making it undefined.
3034
- * @return {!proto.bet.UserBetItem} returns this
3035
- */
3036
- proto.bet.UserBetItem.prototype.clearUserDevice = function() {
3037
- return jspb.Message.setField(this, 15, undefined);
3038
- };
3039
-
3040
-
3041
- /**
3042
- * Returns whether this field is set.
3043
- * @return {boolean}
3044
- */
3045
- proto.bet.UserBetItem.prototype.hasUserDevice = function() {
3046
- return jspb.Message.getField(this, 15) != null;
3047
- };
3048
-
3049
-
3050
-
3051
- /**
3052
- * List of repeated fields within this message type.
3053
- * @private {!Array<number>}
3054
- * @const
3055
- */
3056
- proto.bet.BetsHistoryResponse.repeatedFields_ = [1];
3057
-
3058
-
3059
-
3060
- if (jspb.Message.GENERATE_TO_OBJECT) {
3061
- /**
3062
- * Creates an object representation of this proto.
3063
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3064
- * Optional fields that are not set will be set to undefined.
3065
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3066
- * For the list of reserved names please see:
3067
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3068
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3069
- * JSPB instance for transitional soy proto support:
3070
- * http://goto/soy-param-migration
3071
- * @return {!Object}
3072
- */
3073
- proto.bet.BetsHistoryResponse.prototype.toObject = function(opt_includeInstance) {
3074
- return proto.bet.BetsHistoryResponse.toObject(opt_includeInstance, this);
3075
- };
3076
-
3077
-
3078
- /**
3079
- * Static version of the {@see toObject} method.
3080
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3081
- * the JSPB instance for transitional soy proto support:
3082
- * http://goto/soy-param-migration
3083
- * @param {!proto.bet.BetsHistoryResponse} msg The msg instance to transform.
3084
- * @return {!Object}
3085
- * @suppress {unusedLocalVariables} f is only used for nested messages
3086
- */
3087
- proto.bet.BetsHistoryResponse.toObject = function(includeInstance, msg) {
3088
- var f, obj = {
3089
- itemsList: jspb.Message.toObjectList(msg.getItemsList(),
3090
- proto.bet.UserBetItem.toObject, includeInstance),
3091
- totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
3092
- totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
3093
- };
3094
-
3095
- if (includeInstance) {
3096
- obj.$jspbMessageInstance = msg;
3097
- }
3098
- return obj;
3099
- };
3100
- }
3101
-
3102
-
3103
- /**
3104
- * Deserializes binary data (in protobuf wire format).
3105
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3106
- * @return {!proto.bet.BetsHistoryResponse}
3107
- */
3108
- proto.bet.BetsHistoryResponse.deserializeBinary = function(bytes) {
3109
- var reader = new jspb.BinaryReader(bytes);
3110
- var msg = new proto.bet.BetsHistoryResponse;
3111
- return proto.bet.BetsHistoryResponse.deserializeBinaryFromReader(msg, reader);
3112
- };
3113
-
3114
-
3115
- /**
3116
- * Deserializes binary data (in protobuf wire format) from the
3117
- * given reader into the given message object.
3118
- * @param {!proto.bet.BetsHistoryResponse} msg The message object to deserialize into.
3119
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3120
- * @return {!proto.bet.BetsHistoryResponse}
3121
- */
3122
- proto.bet.BetsHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
3123
- while (reader.nextField()) {
3124
- if (reader.isEndGroup()) {
3125
- break;
3126
- }
3127
- var field = reader.getFieldNumber();
3128
- switch (field) {
3129
- case 1:
3130
- var value = new proto.bet.UserBetItem;
3131
- reader.readMessage(value,proto.bet.UserBetItem.deserializeBinaryFromReader);
3132
- msg.addItems(value);
3133
- break;
3134
- case 2:
3135
- var value = /** @type {number} */ (reader.readInt32());
3136
- msg.setTotalPages(value);
3137
- break;
3138
- case 3:
3139
- var value = /** @type {number} */ (reader.readInt32());
3140
- msg.setTotalItems(value);
3141
- break;
3142
- default:
3143
- reader.skipField();
3144
- break;
3145
- }
3146
- }
3147
- return msg;
3148
- };
3149
-
3150
-
3151
- /**
3152
- * Serializes the message to binary data (in protobuf wire format).
3153
- * @return {!Uint8Array}
3154
- */
3155
- proto.bet.BetsHistoryResponse.prototype.serializeBinary = function() {
3156
- var writer = new jspb.BinaryWriter();
3157
- proto.bet.BetsHistoryResponse.serializeBinaryToWriter(this, writer);
3158
- return writer.getResultBuffer();
3159
- };
3160
-
3161
-
3162
- /**
3163
- * Serializes the given message to binary data (in protobuf wire
3164
- * format), writing to the given BinaryWriter.
3165
- * @param {!proto.bet.BetsHistoryResponse} message
3166
- * @param {!jspb.BinaryWriter} writer
3167
- * @suppress {unusedLocalVariables} f is only used for nested messages
3168
- */
3169
- proto.bet.BetsHistoryResponse.serializeBinaryToWriter = function(message, writer) {
3170
- var f = undefined;
3171
- f = message.getItemsList();
3172
- if (f.length > 0) {
3173
- writer.writeRepeatedMessage(
3174
- 1,
3175
- f,
3176
- proto.bet.UserBetItem.serializeBinaryToWriter
3177
- );
3178
- }
3179
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
3180
- if (f != null) {
3181
- writer.writeInt32(
3182
- 2,
3183
- f
3184
- );
3185
- }
3186
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
3187
- if (f != null) {
3188
- writer.writeInt32(
3189
- 3,
3190
- f
3191
- );
3192
- }
3193
- };
3194
-
3195
-
3196
- /**
3197
- * repeated UserBetItem items = 1;
3198
- * @return {!Array<!proto.bet.UserBetItem>}
3199
- */
3200
- proto.bet.BetsHistoryResponse.prototype.getItemsList = function() {
3201
- return /** @type{!Array<!proto.bet.UserBetItem>} */ (
3202
- jspb.Message.getRepeatedWrapperField(this, proto.bet.UserBetItem, 1));
3203
- };
3204
-
3205
-
3206
- /**
3207
- * @param {!Array<!proto.bet.UserBetItem>} value
3208
- * @return {!proto.bet.BetsHistoryResponse} returns this
3209
- */
3210
- proto.bet.BetsHistoryResponse.prototype.setItemsList = function(value) {
3211
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3212
- };
3213
-
3214
-
3215
- /**
3216
- * @param {!proto.bet.UserBetItem=} opt_value
3217
- * @param {number=} opt_index
3218
- * @return {!proto.bet.UserBetItem}
3219
- */
3220
- proto.bet.BetsHistoryResponse.prototype.addItems = function(opt_value, opt_index) {
3221
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.UserBetItem, opt_index);
3222
- };
3223
-
3224
-
3225
- /**
3226
- * Clears the list making it empty but non-null.
3227
- * @return {!proto.bet.BetsHistoryResponse} returns this
3228
- */
3229
- proto.bet.BetsHistoryResponse.prototype.clearItemsList = function() {
3230
- return this.setItemsList([]);
3231
- };
3232
-
3233
-
3234
- /**
3235
- * optional int32 total_pages = 2;
3236
- * @return {number}
3237
- */
3238
- proto.bet.BetsHistoryResponse.prototype.getTotalPages = function() {
3239
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3240
- };
3241
-
3242
-
3243
- /**
3244
- * @param {number} value
3245
- * @return {!proto.bet.BetsHistoryResponse} returns this
3246
- */
3247
- proto.bet.BetsHistoryResponse.prototype.setTotalPages = function(value) {
3248
- return jspb.Message.setField(this, 2, value);
3249
- };
3250
-
3251
-
3252
- /**
3253
- * Clears the field making it undefined.
3254
- * @return {!proto.bet.BetsHistoryResponse} returns this
3255
- */
3256
- proto.bet.BetsHistoryResponse.prototype.clearTotalPages = function() {
3257
- return jspb.Message.setField(this, 2, undefined);
3258
- };
3259
-
3260
-
3261
- /**
3262
- * Returns whether this field is set.
3263
- * @return {boolean}
3264
- */
3265
- proto.bet.BetsHistoryResponse.prototype.hasTotalPages = function() {
3266
- return jspb.Message.getField(this, 2) != null;
3267
- };
3268
-
3269
-
3270
- /**
3271
- * optional int32 total_items = 3;
3272
- * @return {number}
3273
- */
3274
- proto.bet.BetsHistoryResponse.prototype.getTotalItems = function() {
3275
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3276
- };
3277
-
3278
-
3279
- /**
3280
- * @param {number} value
3281
- * @return {!proto.bet.BetsHistoryResponse} returns this
3282
- */
3283
- proto.bet.BetsHistoryResponse.prototype.setTotalItems = function(value) {
3284
- return jspb.Message.setField(this, 3, value);
3285
- };
3286
-
3287
-
3288
- /**
3289
- * Clears the field making it undefined.
3290
- * @return {!proto.bet.BetsHistoryResponse} returns this
3291
- */
3292
- proto.bet.BetsHistoryResponse.prototype.clearTotalItems = function() {
3293
- return jspb.Message.setField(this, 3, undefined);
3294
- };
3295
-
3296
-
3297
- /**
3298
- * Returns whether this field is set.
3299
- * @return {boolean}
3300
- */
3301
- proto.bet.BetsHistoryResponse.prototype.hasTotalItems = function() {
3302
- return jspb.Message.getField(this, 3) != null;
3303
- };
3304
-
3305
-
3306
- goog.object.extend(exports, proto.bet);