protobuf-platform 1.2.19 → 1.2.20
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 +4 -2
- package/bet/bet_pb.js +65 -36
- package/package.json +1 -1
package/bet/bet.proto
CHANGED
@@ -125,10 +125,12 @@ message AxiomCheckSessionRequest {
|
|
125
125
|
message AxiomCheckSessionResponse {
|
126
126
|
repeated string user_groups = 1;
|
127
127
|
}
|
128
|
-
message AxiomGetBetsRequest {
|
129
|
-
message AxiomBetsResponse {
|
128
|
+
message AxiomGetBetsRequest {
|
130
129
|
repeated string bid = 1;
|
131
130
|
}
|
131
|
+
message AxiomBetsResponse {
|
132
|
+
string bets = 1;
|
133
|
+
}
|
132
134
|
message AxiomCreateBetRequest {
|
133
135
|
float amount = 1;
|
134
136
|
string currency = 2;
|
package/bet/bet_pb.js
CHANGED
@@ -367,7 +367,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
367
367
|
* @constructor
|
368
368
|
*/
|
369
369
|
proto.bet.AxiomGetBetsRequest = function(opt_data) {
|
370
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
370
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.AxiomGetBetsRequest.repeatedFields_, null);
|
371
371
|
};
|
372
372
|
goog.inherits(proto.bet.AxiomGetBetsRequest, jspb.Message);
|
373
373
|
if (goog.DEBUG && !COMPILED) {
|
@@ -388,7 +388,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
388
388
|
* @constructor
|
389
389
|
*/
|
390
390
|
proto.bet.AxiomBetsResponse = function(opt_data) {
|
391
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
391
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
392
392
|
};
|
393
393
|
goog.inherits(proto.bet.AxiomBetsResponse, jspb.Message);
|
394
394
|
if (goog.DEBUG && !COMPILED) {
|
@@ -5484,6 +5484,13 @@ proto.bet.AxiomCheckSessionResponse.prototype.clearUserGroupsList = function() {
|
|
5484
5484
|
|
5485
5485
|
|
5486
5486
|
|
5487
|
+
/**
|
5488
|
+
* List of repeated fields within this message type.
|
5489
|
+
* @private {!Array<number>}
|
5490
|
+
* @const
|
5491
|
+
*/
|
5492
|
+
proto.bet.AxiomGetBetsRequest.repeatedFields_ = [1];
|
5493
|
+
|
5487
5494
|
|
5488
5495
|
|
5489
5496
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -5515,7 +5522,7 @@ proto.bet.AxiomGetBetsRequest.prototype.toObject = function(opt_includeInstance)
|
|
5515
5522
|
*/
|
5516
5523
|
proto.bet.AxiomGetBetsRequest.toObject = function(includeInstance, msg) {
|
5517
5524
|
var f, obj = {
|
5518
|
-
|
5525
|
+
bidList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
5519
5526
|
};
|
5520
5527
|
|
5521
5528
|
if (includeInstance) {
|
@@ -5552,6 +5559,10 @@ proto.bet.AxiomGetBetsRequest.deserializeBinaryFromReader = function(msg, reader
|
|
5552
5559
|
}
|
5553
5560
|
var field = reader.getFieldNumber();
|
5554
5561
|
switch (field) {
|
5562
|
+
case 1:
|
5563
|
+
var value = /** @type {string} */ (reader.readString());
|
5564
|
+
msg.addBid(value);
|
5565
|
+
break;
|
5555
5566
|
default:
|
5556
5567
|
reader.skipField();
|
5557
5568
|
break;
|
@@ -5581,16 +5592,53 @@ proto.bet.AxiomGetBetsRequest.prototype.serializeBinary = function() {
|
|
5581
5592
|
*/
|
5582
5593
|
proto.bet.AxiomGetBetsRequest.serializeBinaryToWriter = function(message, writer) {
|
5583
5594
|
var f = undefined;
|
5595
|
+
f = message.getBidList();
|
5596
|
+
if (f.length > 0) {
|
5597
|
+
writer.writeRepeatedString(
|
5598
|
+
1,
|
5599
|
+
f
|
5600
|
+
);
|
5601
|
+
}
|
5584
5602
|
};
|
5585
5603
|
|
5586
5604
|
|
5605
|
+
/**
|
5606
|
+
* repeated string bid = 1;
|
5607
|
+
* @return {!Array<string>}
|
5608
|
+
*/
|
5609
|
+
proto.bet.AxiomGetBetsRequest.prototype.getBidList = function() {
|
5610
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
5611
|
+
};
|
5612
|
+
|
5587
5613
|
|
5588
5614
|
/**
|
5589
|
-
*
|
5590
|
-
* @
|
5591
|
-
|
5615
|
+
* @param {!Array<string>} value
|
5616
|
+
* @return {!proto.bet.AxiomGetBetsRequest} returns this
|
5617
|
+
*/
|
5618
|
+
proto.bet.AxiomGetBetsRequest.prototype.setBidList = function(value) {
|
5619
|
+
return jspb.Message.setField(this, 1, value || []);
|
5620
|
+
};
|
5621
|
+
|
5622
|
+
|
5623
|
+
/**
|
5624
|
+
* @param {string} value
|
5625
|
+
* @param {number=} opt_index
|
5626
|
+
* @return {!proto.bet.AxiomGetBetsRequest} returns this
|
5592
5627
|
*/
|
5593
|
-
proto.bet.
|
5628
|
+
proto.bet.AxiomGetBetsRequest.prototype.addBid = function(value, opt_index) {
|
5629
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
5630
|
+
};
|
5631
|
+
|
5632
|
+
|
5633
|
+
/**
|
5634
|
+
* Clears the list making it empty but non-null.
|
5635
|
+
* @return {!proto.bet.AxiomGetBetsRequest} returns this
|
5636
|
+
*/
|
5637
|
+
proto.bet.AxiomGetBetsRequest.prototype.clearBidList = function() {
|
5638
|
+
return this.setBidList([]);
|
5639
|
+
};
|
5640
|
+
|
5641
|
+
|
5594
5642
|
|
5595
5643
|
|
5596
5644
|
|
@@ -5623,7 +5671,7 @@ proto.bet.AxiomBetsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5623
5671
|
*/
|
5624
5672
|
proto.bet.AxiomBetsResponse.toObject = function(includeInstance, msg) {
|
5625
5673
|
var f, obj = {
|
5626
|
-
|
5674
|
+
bets: jspb.Message.getFieldWithDefault(msg, 1, "")
|
5627
5675
|
};
|
5628
5676
|
|
5629
5677
|
if (includeInstance) {
|
@@ -5662,7 +5710,7 @@ proto.bet.AxiomBetsResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
5662
5710
|
switch (field) {
|
5663
5711
|
case 1:
|
5664
5712
|
var value = /** @type {string} */ (reader.readString());
|
5665
|
-
msg.
|
5713
|
+
msg.setBets(value);
|
5666
5714
|
break;
|
5667
5715
|
default:
|
5668
5716
|
reader.skipField();
|
@@ -5693,9 +5741,9 @@ proto.bet.AxiomBetsResponse.prototype.serializeBinary = function() {
|
|
5693
5741
|
*/
|
5694
5742
|
proto.bet.AxiomBetsResponse.serializeBinaryToWriter = function(message, writer) {
|
5695
5743
|
var f = undefined;
|
5696
|
-
f = message.
|
5744
|
+
f = message.getBets();
|
5697
5745
|
if (f.length > 0) {
|
5698
|
-
writer.
|
5746
|
+
writer.writeString(
|
5699
5747
|
1,
|
5700
5748
|
f
|
5701
5749
|
);
|
@@ -5704,39 +5752,20 @@ proto.bet.AxiomBetsResponse.serializeBinaryToWriter = function(message, writer)
|
|
5704
5752
|
|
5705
5753
|
|
5706
5754
|
/**
|
5707
|
-
*
|
5708
|
-
* @return {
|
5709
|
-
*/
|
5710
|
-
proto.bet.AxiomBetsResponse.prototype.getBidList = function() {
|
5711
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
5712
|
-
};
|
5713
|
-
|
5714
|
-
|
5715
|
-
/**
|
5716
|
-
* @param {!Array<string>} value
|
5717
|
-
* @return {!proto.bet.AxiomBetsResponse} returns this
|
5755
|
+
* optional string bets = 1;
|
5756
|
+
* @return {string}
|
5718
5757
|
*/
|
5719
|
-
proto.bet.AxiomBetsResponse.prototype.
|
5720
|
-
return jspb.Message.
|
5758
|
+
proto.bet.AxiomBetsResponse.prototype.getBets = function() {
|
5759
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
5721
5760
|
};
|
5722
5761
|
|
5723
5762
|
|
5724
5763
|
/**
|
5725
5764
|
* @param {string} value
|
5726
|
-
* @param {number=} opt_index
|
5727
5765
|
* @return {!proto.bet.AxiomBetsResponse} returns this
|
5728
5766
|
*/
|
5729
|
-
proto.bet.AxiomBetsResponse.prototype.
|
5730
|
-
return jspb.Message.
|
5731
|
-
};
|
5732
|
-
|
5733
|
-
|
5734
|
-
/**
|
5735
|
-
* Clears the list making it empty but non-null.
|
5736
|
-
* @return {!proto.bet.AxiomBetsResponse} returns this
|
5737
|
-
*/
|
5738
|
-
proto.bet.AxiomBetsResponse.prototype.clearBidList = function() {
|
5739
|
-
return this.setBidList([]);
|
5767
|
+
proto.bet.AxiomBetsResponse.prototype.setBets = function(value) {
|
5768
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
5740
5769
|
};
|
5741
5770
|
|
5742
5771
|
|