protobuf-platform 1.2.11 → 1.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bet/bet.proto CHANGED
@@ -14,6 +14,8 @@ service Bet {
14
14
  //Axiom
15
15
  rpc axiomGetAuthHash(AxiomGetHashRequest) returns (AxiomAuthHashResponse);
16
16
  rpc axiomCheckSession(AxiomCheckSessionRequest) returns (AxiomCheckSessionResponse);
17
+ rpc axiomGetBets(AxiomGetBetsRequest) returns (AxiomBetsResponse);
18
+ rpc axiomCreateBet(AxiomCreateBetRequest) returns (AxiomBetStatusResponse);
17
19
  }
18
20
 
19
21
  message PingRequest { string ping = 1; }
@@ -121,4 +123,20 @@ message AxiomCheckSessionRequest {
121
123
  }
122
124
  message AxiomCheckSessionResponse {
123
125
  repeated string user_groups = 1;
126
+ }
127
+ message AxiomGetBetsRequest {}
128
+ message AxiomBetsResponse {
129
+ repeated string bid = 1;
130
+ }
131
+ message AxiomCreateBetRequest {
132
+ float amount = 1;
133
+ string currency = 2;
134
+ string bid = 3;
135
+ int32 user_id = 4;
136
+ float odds = 5;
137
+ optional string freebet_transaction_id = 6;
138
+ optional string bonus_type = 7;
139
+ }
140
+ message AxiomBetStatusResponse {
141
+ string status = 1;
124
142
  }
@@ -15,6 +15,28 @@ function deserialize_bet_AxiomAuthHashResponse(buffer_arg) {
15
15
  return bet_pb.AxiomAuthHashResponse.deserializeBinary(new Uint8Array(buffer_arg));
16
16
  }
17
17
 
18
+ function serialize_bet_AxiomBetStatusResponse(arg) {
19
+ if (!(arg instanceof bet_pb.AxiomBetStatusResponse)) {
20
+ throw new Error('Expected argument of type bet.AxiomBetStatusResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_bet_AxiomBetStatusResponse(buffer_arg) {
26
+ return bet_pb.AxiomBetStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_bet_AxiomBetsResponse(arg) {
30
+ if (!(arg instanceof bet_pb.AxiomBetsResponse)) {
31
+ throw new Error('Expected argument of type bet.AxiomBetsResponse');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_bet_AxiomBetsResponse(buffer_arg) {
37
+ return bet_pb.AxiomBetsResponse.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
18
40
  function serialize_bet_AxiomCheckSessionRequest(arg) {
19
41
  if (!(arg instanceof bet_pb.AxiomCheckSessionRequest)) {
20
42
  throw new Error('Expected argument of type bet.AxiomCheckSessionRequest');
@@ -37,6 +59,28 @@ function deserialize_bet_AxiomCheckSessionResponse(buffer_arg) {
37
59
  return bet_pb.AxiomCheckSessionResponse.deserializeBinary(new Uint8Array(buffer_arg));
38
60
  }
39
61
 
62
+ function serialize_bet_AxiomCreateBetRequest(arg) {
63
+ if (!(arg instanceof bet_pb.AxiomCreateBetRequest)) {
64
+ throw new Error('Expected argument of type bet.AxiomCreateBetRequest');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_bet_AxiomCreateBetRequest(buffer_arg) {
70
+ return bet_pb.AxiomCreateBetRequest.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
73
+ function serialize_bet_AxiomGetBetsRequest(arg) {
74
+ if (!(arg instanceof bet_pb.AxiomGetBetsRequest)) {
75
+ throw new Error('Expected argument of type bet.AxiomGetBetsRequest');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_bet_AxiomGetBetsRequest(buffer_arg) {
81
+ return bet_pb.AxiomGetBetsRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
40
84
  function serialize_bet_AxiomGetHashRequest(arg) {
41
85
  if (!(arg instanceof bet_pb.AxiomGetHashRequest)) {
42
86
  throw new Error('Expected argument of type bet.AxiomGetHashRequest');
@@ -209,6 +253,28 @@ axiomGetAuthHash: {
209
253
  responseSerialize: serialize_bet_AxiomCheckSessionResponse,
210
254
  responseDeserialize: deserialize_bet_AxiomCheckSessionResponse,
211
255
  },
256
+ axiomGetBets: {
257
+ path: '/bet.Bet/axiomGetBets',
258
+ requestStream: false,
259
+ responseStream: false,
260
+ requestType: bet_pb.AxiomGetBetsRequest,
261
+ responseType: bet_pb.AxiomBetsResponse,
262
+ requestSerialize: serialize_bet_AxiomGetBetsRequest,
263
+ requestDeserialize: deserialize_bet_AxiomGetBetsRequest,
264
+ responseSerialize: serialize_bet_AxiomBetsResponse,
265
+ responseDeserialize: deserialize_bet_AxiomBetsResponse,
266
+ },
267
+ axiomCreateBet: {
268
+ path: '/bet.Bet/axiomCreateBet',
269
+ requestStream: false,
270
+ responseStream: false,
271
+ requestType: bet_pb.AxiomCreateBetRequest,
272
+ responseType: bet_pb.AxiomBetStatusResponse,
273
+ requestSerialize: serialize_bet_AxiomCreateBetRequest,
274
+ requestDeserialize: deserialize_bet_AxiomCreateBetRequest,
275
+ responseSerialize: serialize_bet_AxiomBetStatusResponse,
276
+ responseDeserialize: deserialize_bet_AxiomBetStatusResponse,
277
+ },
212
278
  };
213
279
 
214
280
  exports.BetClient = grpc.makeGenericClientConstructor(BetService, 'Bet');
package/bet/bet_pb.js CHANGED
@@ -22,8 +22,12 @@ var global = (function() {
22
22
  }.call(null));
23
23
 
24
24
  goog.exportSymbol('proto.bet.AxiomAuthHashResponse', null, global);
25
+ goog.exportSymbol('proto.bet.AxiomBetStatusResponse', null, global);
26
+ goog.exportSymbol('proto.bet.AxiomBetsResponse', null, global);
25
27
  goog.exportSymbol('proto.bet.AxiomCheckSessionRequest', null, global);
26
28
  goog.exportSymbol('proto.bet.AxiomCheckSessionResponse', null, global);
29
+ goog.exportSymbol('proto.bet.AxiomCreateBetRequest', null, global);
30
+ goog.exportSymbol('proto.bet.AxiomGetBetsRequest', null, global);
27
31
  goog.exportSymbol('proto.bet.AxiomGetHashRequest', null, global);
28
32
  goog.exportSymbol('proto.bet.BetsHistoryResponse', null, global);
29
33
  goog.exportSymbol('proto.bet.DashboardGameInfo', null, global);
@@ -351,6 +355,90 @@ if (goog.DEBUG && !COMPILED) {
351
355
  */
352
356
  proto.bet.AxiomCheckSessionResponse.displayName = 'proto.bet.AxiomCheckSessionResponse';
353
357
  }
358
+ /**
359
+ * Generated by JsPbCodeGenerator.
360
+ * @param {Array=} opt_data Optional initial data array, typically from a
361
+ * server response, or constructed directly in Javascript. The array is used
362
+ * in place and becomes part of the constructed object. It is not cloned.
363
+ * If no data is provided, the constructed object will be empty, but still
364
+ * valid.
365
+ * @extends {jspb.Message}
366
+ * @constructor
367
+ */
368
+ proto.bet.AxiomGetBetsRequest = function(opt_data) {
369
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
370
+ };
371
+ goog.inherits(proto.bet.AxiomGetBetsRequest, jspb.Message);
372
+ if (goog.DEBUG && !COMPILED) {
373
+ /**
374
+ * @public
375
+ * @override
376
+ */
377
+ proto.bet.AxiomGetBetsRequest.displayName = 'proto.bet.AxiomGetBetsRequest';
378
+ }
379
+ /**
380
+ * Generated by JsPbCodeGenerator.
381
+ * @param {Array=} opt_data Optional initial data array, typically from a
382
+ * server response, or constructed directly in Javascript. The array is used
383
+ * in place and becomes part of the constructed object. It is not cloned.
384
+ * If no data is provided, the constructed object will be empty, but still
385
+ * valid.
386
+ * @extends {jspb.Message}
387
+ * @constructor
388
+ */
389
+ proto.bet.AxiomBetsResponse = function(opt_data) {
390
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.AxiomBetsResponse.repeatedFields_, null);
391
+ };
392
+ goog.inherits(proto.bet.AxiomBetsResponse, jspb.Message);
393
+ if (goog.DEBUG && !COMPILED) {
394
+ /**
395
+ * @public
396
+ * @override
397
+ */
398
+ proto.bet.AxiomBetsResponse.displayName = 'proto.bet.AxiomBetsResponse';
399
+ }
400
+ /**
401
+ * Generated by JsPbCodeGenerator.
402
+ * @param {Array=} opt_data Optional initial data array, typically from a
403
+ * server response, or constructed directly in Javascript. The array is used
404
+ * in place and becomes part of the constructed object. It is not cloned.
405
+ * If no data is provided, the constructed object will be empty, but still
406
+ * valid.
407
+ * @extends {jspb.Message}
408
+ * @constructor
409
+ */
410
+ proto.bet.AxiomCreateBetRequest = function(opt_data) {
411
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
412
+ };
413
+ goog.inherits(proto.bet.AxiomCreateBetRequest, jspb.Message);
414
+ if (goog.DEBUG && !COMPILED) {
415
+ /**
416
+ * @public
417
+ * @override
418
+ */
419
+ proto.bet.AxiomCreateBetRequest.displayName = 'proto.bet.AxiomCreateBetRequest';
420
+ }
421
+ /**
422
+ * Generated by JsPbCodeGenerator.
423
+ * @param {Array=} opt_data Optional initial data array, typically from a
424
+ * server response, or constructed directly in Javascript. The array is used
425
+ * in place and becomes part of the constructed object. It is not cloned.
426
+ * If no data is provided, the constructed object will be empty, but still
427
+ * valid.
428
+ * @extends {jspb.Message}
429
+ * @constructor
430
+ */
431
+ proto.bet.AxiomBetStatusResponse = function(opt_data) {
432
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
433
+ };
434
+ goog.inherits(proto.bet.AxiomBetStatusResponse, jspb.Message);
435
+ if (goog.DEBUG && !COMPILED) {
436
+ /**
437
+ * @public
438
+ * @override
439
+ */
440
+ proto.bet.AxiomBetStatusResponse.displayName = 'proto.bet.AxiomBetStatusResponse';
441
+ }
354
442
 
355
443
 
356
444
 
@@ -5373,4 +5461,737 @@ proto.bet.AxiomCheckSessionResponse.prototype.clearUserGroupsList = function() {
5373
5461
  };
5374
5462
 
5375
5463
 
5464
+
5465
+
5466
+
5467
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5468
+ /**
5469
+ * Creates an object representation of this proto.
5470
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5471
+ * Optional fields that are not set will be set to undefined.
5472
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5473
+ * For the list of reserved names please see:
5474
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5475
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5476
+ * JSPB instance for transitional soy proto support:
5477
+ * http://goto/soy-param-migration
5478
+ * @return {!Object}
5479
+ */
5480
+ proto.bet.AxiomGetBetsRequest.prototype.toObject = function(opt_includeInstance) {
5481
+ return proto.bet.AxiomGetBetsRequest.toObject(opt_includeInstance, this);
5482
+ };
5483
+
5484
+
5485
+ /**
5486
+ * Static version of the {@see toObject} method.
5487
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5488
+ * the JSPB instance for transitional soy proto support:
5489
+ * http://goto/soy-param-migration
5490
+ * @param {!proto.bet.AxiomGetBetsRequest} msg The msg instance to transform.
5491
+ * @return {!Object}
5492
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5493
+ */
5494
+ proto.bet.AxiomGetBetsRequest.toObject = function(includeInstance, msg) {
5495
+ var f, obj = {
5496
+
5497
+ };
5498
+
5499
+ if (includeInstance) {
5500
+ obj.$jspbMessageInstance = msg;
5501
+ }
5502
+ return obj;
5503
+ };
5504
+ }
5505
+
5506
+
5507
+ /**
5508
+ * Deserializes binary data (in protobuf wire format).
5509
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5510
+ * @return {!proto.bet.AxiomGetBetsRequest}
5511
+ */
5512
+ proto.bet.AxiomGetBetsRequest.deserializeBinary = function(bytes) {
5513
+ var reader = new jspb.BinaryReader(bytes);
5514
+ var msg = new proto.bet.AxiomGetBetsRequest;
5515
+ return proto.bet.AxiomGetBetsRequest.deserializeBinaryFromReader(msg, reader);
5516
+ };
5517
+
5518
+
5519
+ /**
5520
+ * Deserializes binary data (in protobuf wire format) from the
5521
+ * given reader into the given message object.
5522
+ * @param {!proto.bet.AxiomGetBetsRequest} msg The message object to deserialize into.
5523
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5524
+ * @return {!proto.bet.AxiomGetBetsRequest}
5525
+ */
5526
+ proto.bet.AxiomGetBetsRequest.deserializeBinaryFromReader = function(msg, reader) {
5527
+ while (reader.nextField()) {
5528
+ if (reader.isEndGroup()) {
5529
+ break;
5530
+ }
5531
+ var field = reader.getFieldNumber();
5532
+ switch (field) {
5533
+ default:
5534
+ reader.skipField();
5535
+ break;
5536
+ }
5537
+ }
5538
+ return msg;
5539
+ };
5540
+
5541
+
5542
+ /**
5543
+ * Serializes the message to binary data (in protobuf wire format).
5544
+ * @return {!Uint8Array}
5545
+ */
5546
+ proto.bet.AxiomGetBetsRequest.prototype.serializeBinary = function() {
5547
+ var writer = new jspb.BinaryWriter();
5548
+ proto.bet.AxiomGetBetsRequest.serializeBinaryToWriter(this, writer);
5549
+ return writer.getResultBuffer();
5550
+ };
5551
+
5552
+
5553
+ /**
5554
+ * Serializes the given message to binary data (in protobuf wire
5555
+ * format), writing to the given BinaryWriter.
5556
+ * @param {!proto.bet.AxiomGetBetsRequest} message
5557
+ * @param {!jspb.BinaryWriter} writer
5558
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5559
+ */
5560
+ proto.bet.AxiomGetBetsRequest.serializeBinaryToWriter = function(message, writer) {
5561
+ var f = undefined;
5562
+ };
5563
+
5564
+
5565
+
5566
+ /**
5567
+ * List of repeated fields within this message type.
5568
+ * @private {!Array<number>}
5569
+ * @const
5570
+ */
5571
+ proto.bet.AxiomBetsResponse.repeatedFields_ = [1];
5572
+
5573
+
5574
+
5575
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5576
+ /**
5577
+ * Creates an object representation of this proto.
5578
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5579
+ * Optional fields that are not set will be set to undefined.
5580
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5581
+ * For the list of reserved names please see:
5582
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5583
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5584
+ * JSPB instance for transitional soy proto support:
5585
+ * http://goto/soy-param-migration
5586
+ * @return {!Object}
5587
+ */
5588
+ proto.bet.AxiomBetsResponse.prototype.toObject = function(opt_includeInstance) {
5589
+ return proto.bet.AxiomBetsResponse.toObject(opt_includeInstance, this);
5590
+ };
5591
+
5592
+
5593
+ /**
5594
+ * Static version of the {@see toObject} method.
5595
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5596
+ * the JSPB instance for transitional soy proto support:
5597
+ * http://goto/soy-param-migration
5598
+ * @param {!proto.bet.AxiomBetsResponse} msg The msg instance to transform.
5599
+ * @return {!Object}
5600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5601
+ */
5602
+ proto.bet.AxiomBetsResponse.toObject = function(includeInstance, msg) {
5603
+ var f, obj = {
5604
+ bidList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
5605
+ };
5606
+
5607
+ if (includeInstance) {
5608
+ obj.$jspbMessageInstance = msg;
5609
+ }
5610
+ return obj;
5611
+ };
5612
+ }
5613
+
5614
+
5615
+ /**
5616
+ * Deserializes binary data (in protobuf wire format).
5617
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5618
+ * @return {!proto.bet.AxiomBetsResponse}
5619
+ */
5620
+ proto.bet.AxiomBetsResponse.deserializeBinary = function(bytes) {
5621
+ var reader = new jspb.BinaryReader(bytes);
5622
+ var msg = new proto.bet.AxiomBetsResponse;
5623
+ return proto.bet.AxiomBetsResponse.deserializeBinaryFromReader(msg, reader);
5624
+ };
5625
+
5626
+
5627
+ /**
5628
+ * Deserializes binary data (in protobuf wire format) from the
5629
+ * given reader into the given message object.
5630
+ * @param {!proto.bet.AxiomBetsResponse} msg The message object to deserialize into.
5631
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5632
+ * @return {!proto.bet.AxiomBetsResponse}
5633
+ */
5634
+ proto.bet.AxiomBetsResponse.deserializeBinaryFromReader = function(msg, reader) {
5635
+ while (reader.nextField()) {
5636
+ if (reader.isEndGroup()) {
5637
+ break;
5638
+ }
5639
+ var field = reader.getFieldNumber();
5640
+ switch (field) {
5641
+ case 1:
5642
+ var value = /** @type {string} */ (reader.readString());
5643
+ msg.addBid(value);
5644
+ break;
5645
+ default:
5646
+ reader.skipField();
5647
+ break;
5648
+ }
5649
+ }
5650
+ return msg;
5651
+ };
5652
+
5653
+
5654
+ /**
5655
+ * Serializes the message to binary data (in protobuf wire format).
5656
+ * @return {!Uint8Array}
5657
+ */
5658
+ proto.bet.AxiomBetsResponse.prototype.serializeBinary = function() {
5659
+ var writer = new jspb.BinaryWriter();
5660
+ proto.bet.AxiomBetsResponse.serializeBinaryToWriter(this, writer);
5661
+ return writer.getResultBuffer();
5662
+ };
5663
+
5664
+
5665
+ /**
5666
+ * Serializes the given message to binary data (in protobuf wire
5667
+ * format), writing to the given BinaryWriter.
5668
+ * @param {!proto.bet.AxiomBetsResponse} message
5669
+ * @param {!jspb.BinaryWriter} writer
5670
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5671
+ */
5672
+ proto.bet.AxiomBetsResponse.serializeBinaryToWriter = function(message, writer) {
5673
+ var f = undefined;
5674
+ f = message.getBidList();
5675
+ if (f.length > 0) {
5676
+ writer.writeRepeatedString(
5677
+ 1,
5678
+ f
5679
+ );
5680
+ }
5681
+ };
5682
+
5683
+
5684
+ /**
5685
+ * repeated string bid = 1;
5686
+ * @return {!Array<string>}
5687
+ */
5688
+ proto.bet.AxiomBetsResponse.prototype.getBidList = function() {
5689
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
5690
+ };
5691
+
5692
+
5693
+ /**
5694
+ * @param {!Array<string>} value
5695
+ * @return {!proto.bet.AxiomBetsResponse} returns this
5696
+ */
5697
+ proto.bet.AxiomBetsResponse.prototype.setBidList = function(value) {
5698
+ return jspb.Message.setField(this, 1, value || []);
5699
+ };
5700
+
5701
+
5702
+ /**
5703
+ * @param {string} value
5704
+ * @param {number=} opt_index
5705
+ * @return {!proto.bet.AxiomBetsResponse} returns this
5706
+ */
5707
+ proto.bet.AxiomBetsResponse.prototype.addBid = function(value, opt_index) {
5708
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
5709
+ };
5710
+
5711
+
5712
+ /**
5713
+ * Clears the list making it empty but non-null.
5714
+ * @return {!proto.bet.AxiomBetsResponse} returns this
5715
+ */
5716
+ proto.bet.AxiomBetsResponse.prototype.clearBidList = function() {
5717
+ return this.setBidList([]);
5718
+ };
5719
+
5720
+
5721
+
5722
+
5723
+
5724
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5725
+ /**
5726
+ * Creates an object representation of this proto.
5727
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5728
+ * Optional fields that are not set will be set to undefined.
5729
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5730
+ * For the list of reserved names please see:
5731
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5732
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5733
+ * JSPB instance for transitional soy proto support:
5734
+ * http://goto/soy-param-migration
5735
+ * @return {!Object}
5736
+ */
5737
+ proto.bet.AxiomCreateBetRequest.prototype.toObject = function(opt_includeInstance) {
5738
+ return proto.bet.AxiomCreateBetRequest.toObject(opt_includeInstance, this);
5739
+ };
5740
+
5741
+
5742
+ /**
5743
+ * Static version of the {@see toObject} method.
5744
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5745
+ * the JSPB instance for transitional soy proto support:
5746
+ * http://goto/soy-param-migration
5747
+ * @param {!proto.bet.AxiomCreateBetRequest} msg The msg instance to transform.
5748
+ * @return {!Object}
5749
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5750
+ */
5751
+ proto.bet.AxiomCreateBetRequest.toObject = function(includeInstance, msg) {
5752
+ var f, obj = {
5753
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
5754
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
5755
+ bid: jspb.Message.getFieldWithDefault(msg, 3, ""),
5756
+ userId: jspb.Message.getFieldWithDefault(msg, 4, 0),
5757
+ odds: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
5758
+ freebetTransactionId: jspb.Message.getFieldWithDefault(msg, 6, ""),
5759
+ bonusType: jspb.Message.getFieldWithDefault(msg, 7, "")
5760
+ };
5761
+
5762
+ if (includeInstance) {
5763
+ obj.$jspbMessageInstance = msg;
5764
+ }
5765
+ return obj;
5766
+ };
5767
+ }
5768
+
5769
+
5770
+ /**
5771
+ * Deserializes binary data (in protobuf wire format).
5772
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5773
+ * @return {!proto.bet.AxiomCreateBetRequest}
5774
+ */
5775
+ proto.bet.AxiomCreateBetRequest.deserializeBinary = function(bytes) {
5776
+ var reader = new jspb.BinaryReader(bytes);
5777
+ var msg = new proto.bet.AxiomCreateBetRequest;
5778
+ return proto.bet.AxiomCreateBetRequest.deserializeBinaryFromReader(msg, reader);
5779
+ };
5780
+
5781
+
5782
+ /**
5783
+ * Deserializes binary data (in protobuf wire format) from the
5784
+ * given reader into the given message object.
5785
+ * @param {!proto.bet.AxiomCreateBetRequest} msg The message object to deserialize into.
5786
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5787
+ * @return {!proto.bet.AxiomCreateBetRequest}
5788
+ */
5789
+ proto.bet.AxiomCreateBetRequest.deserializeBinaryFromReader = function(msg, reader) {
5790
+ while (reader.nextField()) {
5791
+ if (reader.isEndGroup()) {
5792
+ break;
5793
+ }
5794
+ var field = reader.getFieldNumber();
5795
+ switch (field) {
5796
+ case 1:
5797
+ var value = /** @type {number} */ (reader.readFloat());
5798
+ msg.setAmount(value);
5799
+ break;
5800
+ case 2:
5801
+ var value = /** @type {string} */ (reader.readString());
5802
+ msg.setCurrency(value);
5803
+ break;
5804
+ case 3:
5805
+ var value = /** @type {string} */ (reader.readString());
5806
+ msg.setBid(value);
5807
+ break;
5808
+ case 4:
5809
+ var value = /** @type {number} */ (reader.readInt32());
5810
+ msg.setUserId(value);
5811
+ break;
5812
+ case 5:
5813
+ var value = /** @type {number} */ (reader.readFloat());
5814
+ msg.setOdds(value);
5815
+ break;
5816
+ case 6:
5817
+ var value = /** @type {string} */ (reader.readString());
5818
+ msg.setFreebetTransactionId(value);
5819
+ break;
5820
+ case 7:
5821
+ var value = /** @type {string} */ (reader.readString());
5822
+ msg.setBonusType(value);
5823
+ break;
5824
+ default:
5825
+ reader.skipField();
5826
+ break;
5827
+ }
5828
+ }
5829
+ return msg;
5830
+ };
5831
+
5832
+
5833
+ /**
5834
+ * Serializes the message to binary data (in protobuf wire format).
5835
+ * @return {!Uint8Array}
5836
+ */
5837
+ proto.bet.AxiomCreateBetRequest.prototype.serializeBinary = function() {
5838
+ var writer = new jspb.BinaryWriter();
5839
+ proto.bet.AxiomCreateBetRequest.serializeBinaryToWriter(this, writer);
5840
+ return writer.getResultBuffer();
5841
+ };
5842
+
5843
+
5844
+ /**
5845
+ * Serializes the given message to binary data (in protobuf wire
5846
+ * format), writing to the given BinaryWriter.
5847
+ * @param {!proto.bet.AxiomCreateBetRequest} message
5848
+ * @param {!jspb.BinaryWriter} writer
5849
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5850
+ */
5851
+ proto.bet.AxiomCreateBetRequest.serializeBinaryToWriter = function(message, writer) {
5852
+ var f = undefined;
5853
+ f = message.getAmount();
5854
+ if (f !== 0.0) {
5855
+ writer.writeFloat(
5856
+ 1,
5857
+ f
5858
+ );
5859
+ }
5860
+ f = message.getCurrency();
5861
+ if (f.length > 0) {
5862
+ writer.writeString(
5863
+ 2,
5864
+ f
5865
+ );
5866
+ }
5867
+ f = message.getBid();
5868
+ if (f.length > 0) {
5869
+ writer.writeString(
5870
+ 3,
5871
+ f
5872
+ );
5873
+ }
5874
+ f = message.getUserId();
5875
+ if (f !== 0) {
5876
+ writer.writeInt32(
5877
+ 4,
5878
+ f
5879
+ );
5880
+ }
5881
+ f = message.getOdds();
5882
+ if (f !== 0.0) {
5883
+ writer.writeFloat(
5884
+ 5,
5885
+ f
5886
+ );
5887
+ }
5888
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5889
+ if (f != null) {
5890
+ writer.writeString(
5891
+ 6,
5892
+ f
5893
+ );
5894
+ }
5895
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
5896
+ if (f != null) {
5897
+ writer.writeString(
5898
+ 7,
5899
+ f
5900
+ );
5901
+ }
5902
+ };
5903
+
5904
+
5905
+ /**
5906
+ * optional float amount = 1;
5907
+ * @return {number}
5908
+ */
5909
+ proto.bet.AxiomCreateBetRequest.prototype.getAmount = function() {
5910
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
5911
+ };
5912
+
5913
+
5914
+ /**
5915
+ * @param {number} value
5916
+ * @return {!proto.bet.AxiomCreateBetRequest} returns this
5917
+ */
5918
+ proto.bet.AxiomCreateBetRequest.prototype.setAmount = function(value) {
5919
+ return jspb.Message.setProto3FloatField(this, 1, value);
5920
+ };
5921
+
5922
+
5923
+ /**
5924
+ * optional string currency = 2;
5925
+ * @return {string}
5926
+ */
5927
+ proto.bet.AxiomCreateBetRequest.prototype.getCurrency = function() {
5928
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5929
+ };
5930
+
5931
+
5932
+ /**
5933
+ * @param {string} value
5934
+ * @return {!proto.bet.AxiomCreateBetRequest} returns this
5935
+ */
5936
+ proto.bet.AxiomCreateBetRequest.prototype.setCurrency = function(value) {
5937
+ return jspb.Message.setProto3StringField(this, 2, value);
5938
+ };
5939
+
5940
+
5941
+ /**
5942
+ * optional string bid = 3;
5943
+ * @return {string}
5944
+ */
5945
+ proto.bet.AxiomCreateBetRequest.prototype.getBid = function() {
5946
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5947
+ };
5948
+
5949
+
5950
+ /**
5951
+ * @param {string} value
5952
+ * @return {!proto.bet.AxiomCreateBetRequest} returns this
5953
+ */
5954
+ proto.bet.AxiomCreateBetRequest.prototype.setBid = function(value) {
5955
+ return jspb.Message.setProto3StringField(this, 3, value);
5956
+ };
5957
+
5958
+
5959
+ /**
5960
+ * optional int32 user_id = 4;
5961
+ * @return {number}
5962
+ */
5963
+ proto.bet.AxiomCreateBetRequest.prototype.getUserId = function() {
5964
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
5965
+ };
5966
+
5967
+
5968
+ /**
5969
+ * @param {number} value
5970
+ * @return {!proto.bet.AxiomCreateBetRequest} returns this
5971
+ */
5972
+ proto.bet.AxiomCreateBetRequest.prototype.setUserId = function(value) {
5973
+ return jspb.Message.setProto3IntField(this, 4, value);
5974
+ };
5975
+
5976
+
5977
+ /**
5978
+ * optional float odds = 5;
5979
+ * @return {number}
5980
+ */
5981
+ proto.bet.AxiomCreateBetRequest.prototype.getOdds = function() {
5982
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
5983
+ };
5984
+
5985
+
5986
+ /**
5987
+ * @param {number} value
5988
+ * @return {!proto.bet.AxiomCreateBetRequest} returns this
5989
+ */
5990
+ proto.bet.AxiomCreateBetRequest.prototype.setOdds = function(value) {
5991
+ return jspb.Message.setProto3FloatField(this, 5, value);
5992
+ };
5993
+
5994
+
5995
+ /**
5996
+ * optional string freebet_transaction_id = 6;
5997
+ * @return {string}
5998
+ */
5999
+ proto.bet.AxiomCreateBetRequest.prototype.getFreebetTransactionId = function() {
6000
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6001
+ };
6002
+
6003
+
6004
+ /**
6005
+ * @param {string} value
6006
+ * @return {!proto.bet.AxiomCreateBetRequest} returns this
6007
+ */
6008
+ proto.bet.AxiomCreateBetRequest.prototype.setFreebetTransactionId = function(value) {
6009
+ return jspb.Message.setField(this, 6, value);
6010
+ };
6011
+
6012
+
6013
+ /**
6014
+ * Clears the field making it undefined.
6015
+ * @return {!proto.bet.AxiomCreateBetRequest} returns this
6016
+ */
6017
+ proto.bet.AxiomCreateBetRequest.prototype.clearFreebetTransactionId = function() {
6018
+ return jspb.Message.setField(this, 6, undefined);
6019
+ };
6020
+
6021
+
6022
+ /**
6023
+ * Returns whether this field is set.
6024
+ * @return {boolean}
6025
+ */
6026
+ proto.bet.AxiomCreateBetRequest.prototype.hasFreebetTransactionId = function() {
6027
+ return jspb.Message.getField(this, 6) != null;
6028
+ };
6029
+
6030
+
6031
+ /**
6032
+ * optional string bonus_type = 7;
6033
+ * @return {string}
6034
+ */
6035
+ proto.bet.AxiomCreateBetRequest.prototype.getBonusType = function() {
6036
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
6037
+ };
6038
+
6039
+
6040
+ /**
6041
+ * @param {string} value
6042
+ * @return {!proto.bet.AxiomCreateBetRequest} returns this
6043
+ */
6044
+ proto.bet.AxiomCreateBetRequest.prototype.setBonusType = function(value) {
6045
+ return jspb.Message.setField(this, 7, value);
6046
+ };
6047
+
6048
+
6049
+ /**
6050
+ * Clears the field making it undefined.
6051
+ * @return {!proto.bet.AxiomCreateBetRequest} returns this
6052
+ */
6053
+ proto.bet.AxiomCreateBetRequest.prototype.clearBonusType = function() {
6054
+ return jspb.Message.setField(this, 7, undefined);
6055
+ };
6056
+
6057
+
6058
+ /**
6059
+ * Returns whether this field is set.
6060
+ * @return {boolean}
6061
+ */
6062
+ proto.bet.AxiomCreateBetRequest.prototype.hasBonusType = function() {
6063
+ return jspb.Message.getField(this, 7) != null;
6064
+ };
6065
+
6066
+
6067
+
6068
+
6069
+
6070
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6071
+ /**
6072
+ * Creates an object representation of this proto.
6073
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6074
+ * Optional fields that are not set will be set to undefined.
6075
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6076
+ * For the list of reserved names please see:
6077
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6078
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6079
+ * JSPB instance for transitional soy proto support:
6080
+ * http://goto/soy-param-migration
6081
+ * @return {!Object}
6082
+ */
6083
+ proto.bet.AxiomBetStatusResponse.prototype.toObject = function(opt_includeInstance) {
6084
+ return proto.bet.AxiomBetStatusResponse.toObject(opt_includeInstance, this);
6085
+ };
6086
+
6087
+
6088
+ /**
6089
+ * Static version of the {@see toObject} method.
6090
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6091
+ * the JSPB instance for transitional soy proto support:
6092
+ * http://goto/soy-param-migration
6093
+ * @param {!proto.bet.AxiomBetStatusResponse} msg The msg instance to transform.
6094
+ * @return {!Object}
6095
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6096
+ */
6097
+ proto.bet.AxiomBetStatusResponse.toObject = function(includeInstance, msg) {
6098
+ var f, obj = {
6099
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
6100
+ };
6101
+
6102
+ if (includeInstance) {
6103
+ obj.$jspbMessageInstance = msg;
6104
+ }
6105
+ return obj;
6106
+ };
6107
+ }
6108
+
6109
+
6110
+ /**
6111
+ * Deserializes binary data (in protobuf wire format).
6112
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6113
+ * @return {!proto.bet.AxiomBetStatusResponse}
6114
+ */
6115
+ proto.bet.AxiomBetStatusResponse.deserializeBinary = function(bytes) {
6116
+ var reader = new jspb.BinaryReader(bytes);
6117
+ var msg = new proto.bet.AxiomBetStatusResponse;
6118
+ return proto.bet.AxiomBetStatusResponse.deserializeBinaryFromReader(msg, reader);
6119
+ };
6120
+
6121
+
6122
+ /**
6123
+ * Deserializes binary data (in protobuf wire format) from the
6124
+ * given reader into the given message object.
6125
+ * @param {!proto.bet.AxiomBetStatusResponse} msg The message object to deserialize into.
6126
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6127
+ * @return {!proto.bet.AxiomBetStatusResponse}
6128
+ */
6129
+ proto.bet.AxiomBetStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
6130
+ while (reader.nextField()) {
6131
+ if (reader.isEndGroup()) {
6132
+ break;
6133
+ }
6134
+ var field = reader.getFieldNumber();
6135
+ switch (field) {
6136
+ case 1:
6137
+ var value = /** @type {string} */ (reader.readString());
6138
+ msg.setStatus(value);
6139
+ break;
6140
+ default:
6141
+ reader.skipField();
6142
+ break;
6143
+ }
6144
+ }
6145
+ return msg;
6146
+ };
6147
+
6148
+
6149
+ /**
6150
+ * Serializes the message to binary data (in protobuf wire format).
6151
+ * @return {!Uint8Array}
6152
+ */
6153
+ proto.bet.AxiomBetStatusResponse.prototype.serializeBinary = function() {
6154
+ var writer = new jspb.BinaryWriter();
6155
+ proto.bet.AxiomBetStatusResponse.serializeBinaryToWriter(this, writer);
6156
+ return writer.getResultBuffer();
6157
+ };
6158
+
6159
+
6160
+ /**
6161
+ * Serializes the given message to binary data (in protobuf wire
6162
+ * format), writing to the given BinaryWriter.
6163
+ * @param {!proto.bet.AxiomBetStatusResponse} message
6164
+ * @param {!jspb.BinaryWriter} writer
6165
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6166
+ */
6167
+ proto.bet.AxiomBetStatusResponse.serializeBinaryToWriter = function(message, writer) {
6168
+ var f = undefined;
6169
+ f = message.getStatus();
6170
+ if (f.length > 0) {
6171
+ writer.writeString(
6172
+ 1,
6173
+ f
6174
+ );
6175
+ }
6176
+ };
6177
+
6178
+
6179
+ /**
6180
+ * optional string status = 1;
6181
+ * @return {string}
6182
+ */
6183
+ proto.bet.AxiomBetStatusResponse.prototype.getStatus = function() {
6184
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6185
+ };
6186
+
6187
+
6188
+ /**
6189
+ * @param {string} value
6190
+ * @return {!proto.bet.AxiomBetStatusResponse} returns this
6191
+ */
6192
+ proto.bet.AxiomBetStatusResponse.prototype.setStatus = function(value) {
6193
+ return jspb.Message.setProto3StringField(this, 1, value);
6194
+ };
6195
+
6196
+
5376
6197
  goog.object.extend(exports, proto.bet);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {