protobuf-platform 1.2.12 → 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
@@ -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,16 @@ 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
+ optional string freebet_transaction_id = 6;
138
+ optional string bonus_type = 7;
139
+ }
140
+ message AxiomBetStatusResponse {
141
+ string status = 1;
129
142
  }
@@ -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,480 @@ 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
+ 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
+
5677
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.12",
3
+ "version": "1.2.13",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {