protobuf-platform 1.2.12 → 1.2.14
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 +14 -0
- package/bet/bet_grpc_pb.js +33 -0
- package/bet/bet_pb.js +550 -0
- package/package.json +1 -1
package/bet/bet.proto
CHANGED
@@ -15,6 +15,7 @@ service Bet {
|
|
15
15
|
rpc axiomGetAuthHash(AxiomGetHashRequest) returns (AxiomAuthHashResponse);
|
16
16
|
rpc axiomCheckSession(AxiomCheckSessionRequest) returns (AxiomCheckSessionResponse);
|
17
17
|
rpc axiomGetBets(AxiomGetBetsRequest) returns (AxiomBetsResponse);
|
18
|
+
rpc axiomCreateBet(AxiomCreateBetRequest) returns (AxiomBetStatusResponse);
|
18
19
|
}
|
19
20
|
|
20
21
|
message PingRequest { string ping = 1; }
|
@@ -126,4 +127,17 @@ message AxiomCheckSessionResponse {
|
|
126
127
|
message AxiomGetBetsRequest {}
|
127
128
|
message AxiomBetsResponse {
|
128
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
|
+
string hash = 6;
|
138
|
+
optional string freebet_transaction_id = 7;
|
139
|
+
optional string bonus_type = 8;
|
140
|
+
}
|
141
|
+
message AxiomBetStatusResponse {
|
142
|
+
string status = 1;
|
129
143
|
}
|
package/bet/bet_grpc_pb.js
CHANGED
@@ -15,6 +15,17 @@ 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
|
+
|
18
29
|
function serialize_bet_AxiomBetsResponse(arg) {
|
19
30
|
if (!(arg instanceof bet_pb.AxiomBetsResponse)) {
|
20
31
|
throw new Error('Expected argument of type bet.AxiomBetsResponse');
|
@@ -48,6 +59,17 @@ function deserialize_bet_AxiomCheckSessionResponse(buffer_arg) {
|
|
48
59
|
return bet_pb.AxiomCheckSessionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
49
60
|
}
|
50
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
|
+
|
51
73
|
function serialize_bet_AxiomGetBetsRequest(arg) {
|
52
74
|
if (!(arg instanceof bet_pb.AxiomGetBetsRequest)) {
|
53
75
|
throw new Error('Expected argument of type bet.AxiomGetBetsRequest');
|
@@ -242,6 +264,17 @@ axiomGetAuthHash: {
|
|
242
264
|
responseSerialize: serialize_bet_AxiomBetsResponse,
|
243
265
|
responseDeserialize: deserialize_bet_AxiomBetsResponse,
|
244
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
|
+
},
|
245
278
|
};
|
246
279
|
|
247
280
|
exports.BetClient = grpc.makeGenericClientConstructor(BetService, 'Bet');
|
package/bet/bet_pb.js
CHANGED
@@ -22,9 +22,11 @@ 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);
|
25
26
|
goog.exportSymbol('proto.bet.AxiomBetsResponse', null, global);
|
26
27
|
goog.exportSymbol('proto.bet.AxiomCheckSessionRequest', null, global);
|
27
28
|
goog.exportSymbol('proto.bet.AxiomCheckSessionResponse', null, global);
|
29
|
+
goog.exportSymbol('proto.bet.AxiomCreateBetRequest', null, global);
|
28
30
|
goog.exportSymbol('proto.bet.AxiomGetBetsRequest', null, global);
|
29
31
|
goog.exportSymbol('proto.bet.AxiomGetHashRequest', null, global);
|
30
32
|
goog.exportSymbol('proto.bet.BetsHistoryResponse', null, global);
|
@@ -395,6 +397,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
395
397
|
*/
|
396
398
|
proto.bet.AxiomBetsResponse.displayName = 'proto.bet.AxiomBetsResponse';
|
397
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
|
+
}
|
398
442
|
|
399
443
|
|
400
444
|
|
@@ -5674,4 +5718,510 @@ proto.bet.AxiomBetsResponse.prototype.clearBidList = function() {
|
|
5674
5718
|
};
|
5675
5719
|
|
5676
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
|
+
hash: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
5759
|
+
freebetTransactionId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
5760
|
+
bonusType: jspb.Message.getFieldWithDefault(msg, 8, "")
|
5761
|
+
};
|
5762
|
+
|
5763
|
+
if (includeInstance) {
|
5764
|
+
obj.$jspbMessageInstance = msg;
|
5765
|
+
}
|
5766
|
+
return obj;
|
5767
|
+
};
|
5768
|
+
}
|
5769
|
+
|
5770
|
+
|
5771
|
+
/**
|
5772
|
+
* Deserializes binary data (in protobuf wire format).
|
5773
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5774
|
+
* @return {!proto.bet.AxiomCreateBetRequest}
|
5775
|
+
*/
|
5776
|
+
proto.bet.AxiomCreateBetRequest.deserializeBinary = function(bytes) {
|
5777
|
+
var reader = new jspb.BinaryReader(bytes);
|
5778
|
+
var msg = new proto.bet.AxiomCreateBetRequest;
|
5779
|
+
return proto.bet.AxiomCreateBetRequest.deserializeBinaryFromReader(msg, reader);
|
5780
|
+
};
|
5781
|
+
|
5782
|
+
|
5783
|
+
/**
|
5784
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5785
|
+
* given reader into the given message object.
|
5786
|
+
* @param {!proto.bet.AxiomCreateBetRequest} msg The message object to deserialize into.
|
5787
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5788
|
+
* @return {!proto.bet.AxiomCreateBetRequest}
|
5789
|
+
*/
|
5790
|
+
proto.bet.AxiomCreateBetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5791
|
+
while (reader.nextField()) {
|
5792
|
+
if (reader.isEndGroup()) {
|
5793
|
+
break;
|
5794
|
+
}
|
5795
|
+
var field = reader.getFieldNumber();
|
5796
|
+
switch (field) {
|
5797
|
+
case 1:
|
5798
|
+
var value = /** @type {number} */ (reader.readFloat());
|
5799
|
+
msg.setAmount(value);
|
5800
|
+
break;
|
5801
|
+
case 2:
|
5802
|
+
var value = /** @type {string} */ (reader.readString());
|
5803
|
+
msg.setCurrency(value);
|
5804
|
+
break;
|
5805
|
+
case 3:
|
5806
|
+
var value = /** @type {string} */ (reader.readString());
|
5807
|
+
msg.setBid(value);
|
5808
|
+
break;
|
5809
|
+
case 4:
|
5810
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5811
|
+
msg.setUserId(value);
|
5812
|
+
break;
|
5813
|
+
case 5:
|
5814
|
+
var value = /** @type {number} */ (reader.readFloat());
|
5815
|
+
msg.setOdds(value);
|
5816
|
+
break;
|
5817
|
+
case 6:
|
5818
|
+
var value = /** @type {string} */ (reader.readString());
|
5819
|
+
msg.setHash(value);
|
5820
|
+
break;
|
5821
|
+
case 7:
|
5822
|
+
var value = /** @type {string} */ (reader.readString());
|
5823
|
+
msg.setFreebetTransactionId(value);
|
5824
|
+
break;
|
5825
|
+
case 8:
|
5826
|
+
var value = /** @type {string} */ (reader.readString());
|
5827
|
+
msg.setBonusType(value);
|
5828
|
+
break;
|
5829
|
+
default:
|
5830
|
+
reader.skipField();
|
5831
|
+
break;
|
5832
|
+
}
|
5833
|
+
}
|
5834
|
+
return msg;
|
5835
|
+
};
|
5836
|
+
|
5837
|
+
|
5838
|
+
/**
|
5839
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5840
|
+
* @return {!Uint8Array}
|
5841
|
+
*/
|
5842
|
+
proto.bet.AxiomCreateBetRequest.prototype.serializeBinary = function() {
|
5843
|
+
var writer = new jspb.BinaryWriter();
|
5844
|
+
proto.bet.AxiomCreateBetRequest.serializeBinaryToWriter(this, writer);
|
5845
|
+
return writer.getResultBuffer();
|
5846
|
+
};
|
5847
|
+
|
5848
|
+
|
5849
|
+
/**
|
5850
|
+
* Serializes the given message to binary data (in protobuf wire
|
5851
|
+
* format), writing to the given BinaryWriter.
|
5852
|
+
* @param {!proto.bet.AxiomCreateBetRequest} message
|
5853
|
+
* @param {!jspb.BinaryWriter} writer
|
5854
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5855
|
+
*/
|
5856
|
+
proto.bet.AxiomCreateBetRequest.serializeBinaryToWriter = function(message, writer) {
|
5857
|
+
var f = undefined;
|
5858
|
+
f = message.getAmount();
|
5859
|
+
if (f !== 0.0) {
|
5860
|
+
writer.writeFloat(
|
5861
|
+
1,
|
5862
|
+
f
|
5863
|
+
);
|
5864
|
+
}
|
5865
|
+
f = message.getCurrency();
|
5866
|
+
if (f.length > 0) {
|
5867
|
+
writer.writeString(
|
5868
|
+
2,
|
5869
|
+
f
|
5870
|
+
);
|
5871
|
+
}
|
5872
|
+
f = message.getBid();
|
5873
|
+
if (f.length > 0) {
|
5874
|
+
writer.writeString(
|
5875
|
+
3,
|
5876
|
+
f
|
5877
|
+
);
|
5878
|
+
}
|
5879
|
+
f = message.getUserId();
|
5880
|
+
if (f !== 0) {
|
5881
|
+
writer.writeInt32(
|
5882
|
+
4,
|
5883
|
+
f
|
5884
|
+
);
|
5885
|
+
}
|
5886
|
+
f = message.getOdds();
|
5887
|
+
if (f !== 0.0) {
|
5888
|
+
writer.writeFloat(
|
5889
|
+
5,
|
5890
|
+
f
|
5891
|
+
);
|
5892
|
+
}
|
5893
|
+
f = message.getHash();
|
5894
|
+
if (f.length > 0) {
|
5895
|
+
writer.writeString(
|
5896
|
+
6,
|
5897
|
+
f
|
5898
|
+
);
|
5899
|
+
}
|
5900
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
5901
|
+
if (f != null) {
|
5902
|
+
writer.writeString(
|
5903
|
+
7,
|
5904
|
+
f
|
5905
|
+
);
|
5906
|
+
}
|
5907
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
5908
|
+
if (f != null) {
|
5909
|
+
writer.writeString(
|
5910
|
+
8,
|
5911
|
+
f
|
5912
|
+
);
|
5913
|
+
}
|
5914
|
+
};
|
5915
|
+
|
5916
|
+
|
5917
|
+
/**
|
5918
|
+
* optional float amount = 1;
|
5919
|
+
* @return {number}
|
5920
|
+
*/
|
5921
|
+
proto.bet.AxiomCreateBetRequest.prototype.getAmount = function() {
|
5922
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
5923
|
+
};
|
5924
|
+
|
5925
|
+
|
5926
|
+
/**
|
5927
|
+
* @param {number} value
|
5928
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
5929
|
+
*/
|
5930
|
+
proto.bet.AxiomCreateBetRequest.prototype.setAmount = function(value) {
|
5931
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
5932
|
+
};
|
5933
|
+
|
5934
|
+
|
5935
|
+
/**
|
5936
|
+
* optional string currency = 2;
|
5937
|
+
* @return {string}
|
5938
|
+
*/
|
5939
|
+
proto.bet.AxiomCreateBetRequest.prototype.getCurrency = function() {
|
5940
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5941
|
+
};
|
5942
|
+
|
5943
|
+
|
5944
|
+
/**
|
5945
|
+
* @param {string} value
|
5946
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
5947
|
+
*/
|
5948
|
+
proto.bet.AxiomCreateBetRequest.prototype.setCurrency = function(value) {
|
5949
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
5950
|
+
};
|
5951
|
+
|
5952
|
+
|
5953
|
+
/**
|
5954
|
+
* optional string bid = 3;
|
5955
|
+
* @return {string}
|
5956
|
+
*/
|
5957
|
+
proto.bet.AxiomCreateBetRequest.prototype.getBid = function() {
|
5958
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
5959
|
+
};
|
5960
|
+
|
5961
|
+
|
5962
|
+
/**
|
5963
|
+
* @param {string} value
|
5964
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
5965
|
+
*/
|
5966
|
+
proto.bet.AxiomCreateBetRequest.prototype.setBid = function(value) {
|
5967
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
5968
|
+
};
|
5969
|
+
|
5970
|
+
|
5971
|
+
/**
|
5972
|
+
* optional int32 user_id = 4;
|
5973
|
+
* @return {number}
|
5974
|
+
*/
|
5975
|
+
proto.bet.AxiomCreateBetRequest.prototype.getUserId = function() {
|
5976
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
5977
|
+
};
|
5978
|
+
|
5979
|
+
|
5980
|
+
/**
|
5981
|
+
* @param {number} value
|
5982
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
5983
|
+
*/
|
5984
|
+
proto.bet.AxiomCreateBetRequest.prototype.setUserId = function(value) {
|
5985
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
5986
|
+
};
|
5987
|
+
|
5988
|
+
|
5989
|
+
/**
|
5990
|
+
* optional float odds = 5;
|
5991
|
+
* @return {number}
|
5992
|
+
*/
|
5993
|
+
proto.bet.AxiomCreateBetRequest.prototype.getOdds = function() {
|
5994
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
5995
|
+
};
|
5996
|
+
|
5997
|
+
|
5998
|
+
/**
|
5999
|
+
* @param {number} value
|
6000
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
6001
|
+
*/
|
6002
|
+
proto.bet.AxiomCreateBetRequest.prototype.setOdds = function(value) {
|
6003
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
6004
|
+
};
|
6005
|
+
|
6006
|
+
|
6007
|
+
/**
|
6008
|
+
* optional string hash = 6;
|
6009
|
+
* @return {string}
|
6010
|
+
*/
|
6011
|
+
proto.bet.AxiomCreateBetRequest.prototype.getHash = function() {
|
6012
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
6013
|
+
};
|
6014
|
+
|
6015
|
+
|
6016
|
+
/**
|
6017
|
+
* @param {string} value
|
6018
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
6019
|
+
*/
|
6020
|
+
proto.bet.AxiomCreateBetRequest.prototype.setHash = function(value) {
|
6021
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
6022
|
+
};
|
6023
|
+
|
6024
|
+
|
6025
|
+
/**
|
6026
|
+
* optional string freebet_transaction_id = 7;
|
6027
|
+
* @return {string}
|
6028
|
+
*/
|
6029
|
+
proto.bet.AxiomCreateBetRequest.prototype.getFreebetTransactionId = function() {
|
6030
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
6031
|
+
};
|
6032
|
+
|
6033
|
+
|
6034
|
+
/**
|
6035
|
+
* @param {string} value
|
6036
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
6037
|
+
*/
|
6038
|
+
proto.bet.AxiomCreateBetRequest.prototype.setFreebetTransactionId = function(value) {
|
6039
|
+
return jspb.Message.setField(this, 7, value);
|
6040
|
+
};
|
6041
|
+
|
6042
|
+
|
6043
|
+
/**
|
6044
|
+
* Clears the field making it undefined.
|
6045
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
6046
|
+
*/
|
6047
|
+
proto.bet.AxiomCreateBetRequest.prototype.clearFreebetTransactionId = function() {
|
6048
|
+
return jspb.Message.setField(this, 7, undefined);
|
6049
|
+
};
|
6050
|
+
|
6051
|
+
|
6052
|
+
/**
|
6053
|
+
* Returns whether this field is set.
|
6054
|
+
* @return {boolean}
|
6055
|
+
*/
|
6056
|
+
proto.bet.AxiomCreateBetRequest.prototype.hasFreebetTransactionId = function() {
|
6057
|
+
return jspb.Message.getField(this, 7) != null;
|
6058
|
+
};
|
6059
|
+
|
6060
|
+
|
6061
|
+
/**
|
6062
|
+
* optional string bonus_type = 8;
|
6063
|
+
* @return {string}
|
6064
|
+
*/
|
6065
|
+
proto.bet.AxiomCreateBetRequest.prototype.getBonusType = function() {
|
6066
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
6067
|
+
};
|
6068
|
+
|
6069
|
+
|
6070
|
+
/**
|
6071
|
+
* @param {string} value
|
6072
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
6073
|
+
*/
|
6074
|
+
proto.bet.AxiomCreateBetRequest.prototype.setBonusType = function(value) {
|
6075
|
+
return jspb.Message.setField(this, 8, value);
|
6076
|
+
};
|
6077
|
+
|
6078
|
+
|
6079
|
+
/**
|
6080
|
+
* Clears the field making it undefined.
|
6081
|
+
* @return {!proto.bet.AxiomCreateBetRequest} returns this
|
6082
|
+
*/
|
6083
|
+
proto.bet.AxiomCreateBetRequest.prototype.clearBonusType = function() {
|
6084
|
+
return jspb.Message.setField(this, 8, undefined);
|
6085
|
+
};
|
6086
|
+
|
6087
|
+
|
6088
|
+
/**
|
6089
|
+
* Returns whether this field is set.
|
6090
|
+
* @return {boolean}
|
6091
|
+
*/
|
6092
|
+
proto.bet.AxiomCreateBetRequest.prototype.hasBonusType = function() {
|
6093
|
+
return jspb.Message.getField(this, 8) != null;
|
6094
|
+
};
|
6095
|
+
|
6096
|
+
|
6097
|
+
|
6098
|
+
|
6099
|
+
|
6100
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6101
|
+
/**
|
6102
|
+
* Creates an object representation of this proto.
|
6103
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6104
|
+
* Optional fields that are not set will be set to undefined.
|
6105
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6106
|
+
* For the list of reserved names please see:
|
6107
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6108
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6109
|
+
* JSPB instance for transitional soy proto support:
|
6110
|
+
* http://goto/soy-param-migration
|
6111
|
+
* @return {!Object}
|
6112
|
+
*/
|
6113
|
+
proto.bet.AxiomBetStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
6114
|
+
return proto.bet.AxiomBetStatusResponse.toObject(opt_includeInstance, this);
|
6115
|
+
};
|
6116
|
+
|
6117
|
+
|
6118
|
+
/**
|
6119
|
+
* Static version of the {@see toObject} method.
|
6120
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6121
|
+
* the JSPB instance for transitional soy proto support:
|
6122
|
+
* http://goto/soy-param-migration
|
6123
|
+
* @param {!proto.bet.AxiomBetStatusResponse} msg The msg instance to transform.
|
6124
|
+
* @return {!Object}
|
6125
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6126
|
+
*/
|
6127
|
+
proto.bet.AxiomBetStatusResponse.toObject = function(includeInstance, msg) {
|
6128
|
+
var f, obj = {
|
6129
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
6130
|
+
};
|
6131
|
+
|
6132
|
+
if (includeInstance) {
|
6133
|
+
obj.$jspbMessageInstance = msg;
|
6134
|
+
}
|
6135
|
+
return obj;
|
6136
|
+
};
|
6137
|
+
}
|
6138
|
+
|
6139
|
+
|
6140
|
+
/**
|
6141
|
+
* Deserializes binary data (in protobuf wire format).
|
6142
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6143
|
+
* @return {!proto.bet.AxiomBetStatusResponse}
|
6144
|
+
*/
|
6145
|
+
proto.bet.AxiomBetStatusResponse.deserializeBinary = function(bytes) {
|
6146
|
+
var reader = new jspb.BinaryReader(bytes);
|
6147
|
+
var msg = new proto.bet.AxiomBetStatusResponse;
|
6148
|
+
return proto.bet.AxiomBetStatusResponse.deserializeBinaryFromReader(msg, reader);
|
6149
|
+
};
|
6150
|
+
|
6151
|
+
|
6152
|
+
/**
|
6153
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6154
|
+
* given reader into the given message object.
|
6155
|
+
* @param {!proto.bet.AxiomBetStatusResponse} msg The message object to deserialize into.
|
6156
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6157
|
+
* @return {!proto.bet.AxiomBetStatusResponse}
|
6158
|
+
*/
|
6159
|
+
proto.bet.AxiomBetStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
6160
|
+
while (reader.nextField()) {
|
6161
|
+
if (reader.isEndGroup()) {
|
6162
|
+
break;
|
6163
|
+
}
|
6164
|
+
var field = reader.getFieldNumber();
|
6165
|
+
switch (field) {
|
6166
|
+
case 1:
|
6167
|
+
var value = /** @type {string} */ (reader.readString());
|
6168
|
+
msg.setStatus(value);
|
6169
|
+
break;
|
6170
|
+
default:
|
6171
|
+
reader.skipField();
|
6172
|
+
break;
|
6173
|
+
}
|
6174
|
+
}
|
6175
|
+
return msg;
|
6176
|
+
};
|
6177
|
+
|
6178
|
+
|
6179
|
+
/**
|
6180
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6181
|
+
* @return {!Uint8Array}
|
6182
|
+
*/
|
6183
|
+
proto.bet.AxiomBetStatusResponse.prototype.serializeBinary = function() {
|
6184
|
+
var writer = new jspb.BinaryWriter();
|
6185
|
+
proto.bet.AxiomBetStatusResponse.serializeBinaryToWriter(this, writer);
|
6186
|
+
return writer.getResultBuffer();
|
6187
|
+
};
|
6188
|
+
|
6189
|
+
|
6190
|
+
/**
|
6191
|
+
* Serializes the given message to binary data (in protobuf wire
|
6192
|
+
* format), writing to the given BinaryWriter.
|
6193
|
+
* @param {!proto.bet.AxiomBetStatusResponse} message
|
6194
|
+
* @param {!jspb.BinaryWriter} writer
|
6195
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6196
|
+
*/
|
6197
|
+
proto.bet.AxiomBetStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
6198
|
+
var f = undefined;
|
6199
|
+
f = message.getStatus();
|
6200
|
+
if (f.length > 0) {
|
6201
|
+
writer.writeString(
|
6202
|
+
1,
|
6203
|
+
f
|
6204
|
+
);
|
6205
|
+
}
|
6206
|
+
};
|
6207
|
+
|
6208
|
+
|
6209
|
+
/**
|
6210
|
+
* optional string status = 1;
|
6211
|
+
* @return {string}
|
6212
|
+
*/
|
6213
|
+
proto.bet.AxiomBetStatusResponse.prototype.getStatus = function() {
|
6214
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
6215
|
+
};
|
6216
|
+
|
6217
|
+
|
6218
|
+
/**
|
6219
|
+
* @param {string} value
|
6220
|
+
* @return {!proto.bet.AxiomBetStatusResponse} returns this
|
6221
|
+
*/
|
6222
|
+
proto.bet.AxiomBetStatusResponse.prototype.setStatus = function(value) {
|
6223
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
6224
|
+
};
|
6225
|
+
|
6226
|
+
|
5677
6227
|
goog.object.extend(exports, proto.bet);
|