protobuf-platform 1.2.7 → 1.2.9

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
@@ -10,6 +10,10 @@ service Bet {
10
10
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
11
11
  //Segmentation
12
12
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
13
+ //Sports
14
+ //Axiom
15
+ rpc axiomGetAuthHash(AxiomGetHashRequest) returns (AxiomAuthHashResponse);
16
+ rpc axiomCheckSession(AxiomCheckSessionRequest) returns (AxiomCheckSessionResponse);
13
17
  }
14
18
 
15
19
  message PingRequest { string ping = 1; }
@@ -102,4 +106,19 @@ message SegmentedUserRequest {
102
106
  }
103
107
  message SegmentedUserResponse {
104
108
  repeated int32 user_ids = 1;
109
+ }
110
+ //SPORTS
111
+ //Axiom
112
+ message AxiomGetHashRequest {
113
+ int32 user_id = 1;
114
+ string user_session_id = 2;
115
+ }
116
+ message AxiomAuthHashResponse {
117
+ string hash = 1;
118
+ }
119
+ message AxiomCheckSessionRequest {
120
+ string hash = 1;
121
+ }
122
+ message AxiomCheckSessionResponse {
123
+
105
124
  }
@@ -4,6 +4,50 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var bet_pb = require('./bet_pb.js');
6
6
 
7
+ function serialize_bet_AxiomAuthHashResponse(arg) {
8
+ if (!(arg instanceof bet_pb.AxiomAuthHashResponse)) {
9
+ throw new Error('Expected argument of type bet.AxiomAuthHashResponse');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_bet_AxiomAuthHashResponse(buffer_arg) {
15
+ return bet_pb.AxiomAuthHashResponse.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_bet_AxiomCheckSessionRequest(arg) {
19
+ if (!(arg instanceof bet_pb.AxiomCheckSessionRequest)) {
20
+ throw new Error('Expected argument of type bet.AxiomCheckSessionRequest');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_bet_AxiomCheckSessionRequest(buffer_arg) {
26
+ return bet_pb.AxiomCheckSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_bet_AxiomCheckSessionResponse(arg) {
30
+ if (!(arg instanceof bet_pb.AxiomCheckSessionResponse)) {
31
+ throw new Error('Expected argument of type bet.AxiomCheckSessionResponse');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_bet_AxiomCheckSessionResponse(buffer_arg) {
37
+ return bet_pb.AxiomCheckSessionResponse.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_bet_AxiomGetHashRequest(arg) {
41
+ if (!(arg instanceof bet_pb.AxiomGetHashRequest)) {
42
+ throw new Error('Expected argument of type bet.AxiomGetHashRequest');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_bet_AxiomGetHashRequest(buffer_arg) {
48
+ return bet_pb.AxiomGetHashRequest.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
7
51
  function serialize_bet_BetsHistoryResponse(arg) {
8
52
  if (!(arg instanceof bet_pb.BetsHistoryResponse)) {
9
53
  throw new Error('Expected argument of type bet.BetsHistoryResponse');
@@ -141,6 +185,30 @@ getSegmentedUsers: {
141
185
  responseSerialize: serialize_bet_SegmentedUserResponse,
142
186
  responseDeserialize: deserialize_bet_SegmentedUserResponse,
143
187
  },
188
+ // Sports
189
+ // Axiom
190
+ axiomGetAuthHash: {
191
+ path: '/bet.Bet/axiomGetAuthHash',
192
+ requestStream: false,
193
+ responseStream: false,
194
+ requestType: bet_pb.AxiomGetHashRequest,
195
+ responseType: bet_pb.AxiomAuthHashResponse,
196
+ requestSerialize: serialize_bet_AxiomGetHashRequest,
197
+ requestDeserialize: deserialize_bet_AxiomGetHashRequest,
198
+ responseSerialize: serialize_bet_AxiomAuthHashResponse,
199
+ responseDeserialize: deserialize_bet_AxiomAuthHashResponse,
200
+ },
201
+ axiomCheckSession: {
202
+ path: '/bet.Bet/axiomCheckSession',
203
+ requestStream: false,
204
+ responseStream: false,
205
+ requestType: bet_pb.AxiomCheckSessionRequest,
206
+ responseType: bet_pb.AxiomCheckSessionResponse,
207
+ requestSerialize: serialize_bet_AxiomCheckSessionRequest,
208
+ requestDeserialize: deserialize_bet_AxiomCheckSessionRequest,
209
+ responseSerialize: serialize_bet_AxiomCheckSessionResponse,
210
+ responseDeserialize: deserialize_bet_AxiomCheckSessionResponse,
211
+ },
144
212
  };
145
213
 
146
214
  exports.BetClient = grpc.makeGenericClientConstructor(BetService, 'Bet');
package/bet/bet_pb.js CHANGED
@@ -21,6 +21,10 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.bet.AxiomAuthHashResponse', null, global);
25
+ goog.exportSymbol('proto.bet.AxiomCheckSessionRequest', null, global);
26
+ goog.exportSymbol('proto.bet.AxiomCheckSessionResponse', null, global);
27
+ goog.exportSymbol('proto.bet.AxiomGetHashRequest', null, global);
24
28
  goog.exportSymbol('proto.bet.BetsHistoryResponse', null, global);
25
29
  goog.exportSymbol('proto.bet.DashboardGameInfo', null, global);
26
30
  goog.exportSymbol('proto.bet.DashboardRequest', null, global);
@@ -263,6 +267,90 @@ if (goog.DEBUG && !COMPILED) {
263
267
  */
264
268
  proto.bet.SegmentedUserResponse.displayName = 'proto.bet.SegmentedUserResponse';
265
269
  }
270
+ /**
271
+ * Generated by JsPbCodeGenerator.
272
+ * @param {Array=} opt_data Optional initial data array, typically from a
273
+ * server response, or constructed directly in Javascript. The array is used
274
+ * in place and becomes part of the constructed object. It is not cloned.
275
+ * If no data is provided, the constructed object will be empty, but still
276
+ * valid.
277
+ * @extends {jspb.Message}
278
+ * @constructor
279
+ */
280
+ proto.bet.AxiomGetHashRequest = function(opt_data) {
281
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
282
+ };
283
+ goog.inherits(proto.bet.AxiomGetHashRequest, jspb.Message);
284
+ if (goog.DEBUG && !COMPILED) {
285
+ /**
286
+ * @public
287
+ * @override
288
+ */
289
+ proto.bet.AxiomGetHashRequest.displayName = 'proto.bet.AxiomGetHashRequest';
290
+ }
291
+ /**
292
+ * Generated by JsPbCodeGenerator.
293
+ * @param {Array=} opt_data Optional initial data array, typically from a
294
+ * server response, or constructed directly in Javascript. The array is used
295
+ * in place and becomes part of the constructed object. It is not cloned.
296
+ * If no data is provided, the constructed object will be empty, but still
297
+ * valid.
298
+ * @extends {jspb.Message}
299
+ * @constructor
300
+ */
301
+ proto.bet.AxiomAuthHashResponse = function(opt_data) {
302
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
303
+ };
304
+ goog.inherits(proto.bet.AxiomAuthHashResponse, jspb.Message);
305
+ if (goog.DEBUG && !COMPILED) {
306
+ /**
307
+ * @public
308
+ * @override
309
+ */
310
+ proto.bet.AxiomAuthHashResponse.displayName = 'proto.bet.AxiomAuthHashResponse';
311
+ }
312
+ /**
313
+ * Generated by JsPbCodeGenerator.
314
+ * @param {Array=} opt_data Optional initial data array, typically from a
315
+ * server response, or constructed directly in Javascript. The array is used
316
+ * in place and becomes part of the constructed object. It is not cloned.
317
+ * If no data is provided, the constructed object will be empty, but still
318
+ * valid.
319
+ * @extends {jspb.Message}
320
+ * @constructor
321
+ */
322
+ proto.bet.AxiomCheckSessionRequest = function(opt_data) {
323
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
324
+ };
325
+ goog.inherits(proto.bet.AxiomCheckSessionRequest, jspb.Message);
326
+ if (goog.DEBUG && !COMPILED) {
327
+ /**
328
+ * @public
329
+ * @override
330
+ */
331
+ proto.bet.AxiomCheckSessionRequest.displayName = 'proto.bet.AxiomCheckSessionRequest';
332
+ }
333
+ /**
334
+ * Generated by JsPbCodeGenerator.
335
+ * @param {Array=} opt_data Optional initial data array, typically from a
336
+ * server response, or constructed directly in Javascript. The array is used
337
+ * in place and becomes part of the constructed object. It is not cloned.
338
+ * If no data is provided, the constructed object will be empty, but still
339
+ * valid.
340
+ * @extends {jspb.Message}
341
+ * @constructor
342
+ */
343
+ proto.bet.AxiomCheckSessionResponse = function(opt_data) {
344
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
345
+ };
346
+ goog.inherits(proto.bet.AxiomCheckSessionResponse, jspb.Message);
347
+ if (goog.DEBUG && !COMPILED) {
348
+ /**
349
+ * @public
350
+ * @override
351
+ */
352
+ proto.bet.AxiomCheckSessionResponse.displayName = 'proto.bet.AxiomCheckSessionResponse';
353
+ }
266
354
 
267
355
 
268
356
 
@@ -4709,4 +4797,525 @@ proto.bet.SegmentedUserResponse.prototype.clearUserIdsList = function() {
4709
4797
  };
4710
4798
 
4711
4799
 
4800
+
4801
+
4802
+
4803
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4804
+ /**
4805
+ * Creates an object representation of this proto.
4806
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4807
+ * Optional fields that are not set will be set to undefined.
4808
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4809
+ * For the list of reserved names please see:
4810
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4811
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4812
+ * JSPB instance for transitional soy proto support:
4813
+ * http://goto/soy-param-migration
4814
+ * @return {!Object}
4815
+ */
4816
+ proto.bet.AxiomGetHashRequest.prototype.toObject = function(opt_includeInstance) {
4817
+ return proto.bet.AxiomGetHashRequest.toObject(opt_includeInstance, this);
4818
+ };
4819
+
4820
+
4821
+ /**
4822
+ * Static version of the {@see toObject} method.
4823
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4824
+ * the JSPB instance for transitional soy proto support:
4825
+ * http://goto/soy-param-migration
4826
+ * @param {!proto.bet.AxiomGetHashRequest} msg The msg instance to transform.
4827
+ * @return {!Object}
4828
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4829
+ */
4830
+ proto.bet.AxiomGetHashRequest.toObject = function(includeInstance, msg) {
4831
+ var f, obj = {
4832
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4833
+ userSessionId: jspb.Message.getFieldWithDefault(msg, 2, "")
4834
+ };
4835
+
4836
+ if (includeInstance) {
4837
+ obj.$jspbMessageInstance = msg;
4838
+ }
4839
+ return obj;
4840
+ };
4841
+ }
4842
+
4843
+
4844
+ /**
4845
+ * Deserializes binary data (in protobuf wire format).
4846
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4847
+ * @return {!proto.bet.AxiomGetHashRequest}
4848
+ */
4849
+ proto.bet.AxiomGetHashRequest.deserializeBinary = function(bytes) {
4850
+ var reader = new jspb.BinaryReader(bytes);
4851
+ var msg = new proto.bet.AxiomGetHashRequest;
4852
+ return proto.bet.AxiomGetHashRequest.deserializeBinaryFromReader(msg, reader);
4853
+ };
4854
+
4855
+
4856
+ /**
4857
+ * Deserializes binary data (in protobuf wire format) from the
4858
+ * given reader into the given message object.
4859
+ * @param {!proto.bet.AxiomGetHashRequest} msg The message object to deserialize into.
4860
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4861
+ * @return {!proto.bet.AxiomGetHashRequest}
4862
+ */
4863
+ proto.bet.AxiomGetHashRequest.deserializeBinaryFromReader = function(msg, reader) {
4864
+ while (reader.nextField()) {
4865
+ if (reader.isEndGroup()) {
4866
+ break;
4867
+ }
4868
+ var field = reader.getFieldNumber();
4869
+ switch (field) {
4870
+ case 1:
4871
+ var value = /** @type {number} */ (reader.readInt32());
4872
+ msg.setUserId(value);
4873
+ break;
4874
+ case 2:
4875
+ var value = /** @type {string} */ (reader.readString());
4876
+ msg.setUserSessionId(value);
4877
+ break;
4878
+ default:
4879
+ reader.skipField();
4880
+ break;
4881
+ }
4882
+ }
4883
+ return msg;
4884
+ };
4885
+
4886
+
4887
+ /**
4888
+ * Serializes the message to binary data (in protobuf wire format).
4889
+ * @return {!Uint8Array}
4890
+ */
4891
+ proto.bet.AxiomGetHashRequest.prototype.serializeBinary = function() {
4892
+ var writer = new jspb.BinaryWriter();
4893
+ proto.bet.AxiomGetHashRequest.serializeBinaryToWriter(this, writer);
4894
+ return writer.getResultBuffer();
4895
+ };
4896
+
4897
+
4898
+ /**
4899
+ * Serializes the given message to binary data (in protobuf wire
4900
+ * format), writing to the given BinaryWriter.
4901
+ * @param {!proto.bet.AxiomGetHashRequest} message
4902
+ * @param {!jspb.BinaryWriter} writer
4903
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4904
+ */
4905
+ proto.bet.AxiomGetHashRequest.serializeBinaryToWriter = function(message, writer) {
4906
+ var f = undefined;
4907
+ f = message.getUserId();
4908
+ if (f !== 0) {
4909
+ writer.writeInt32(
4910
+ 1,
4911
+ f
4912
+ );
4913
+ }
4914
+ f = message.getUserSessionId();
4915
+ if (f.length > 0) {
4916
+ writer.writeString(
4917
+ 2,
4918
+ f
4919
+ );
4920
+ }
4921
+ };
4922
+
4923
+
4924
+ /**
4925
+ * optional int32 user_id = 1;
4926
+ * @return {number}
4927
+ */
4928
+ proto.bet.AxiomGetHashRequest.prototype.getUserId = function() {
4929
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4930
+ };
4931
+
4932
+
4933
+ /**
4934
+ * @param {number} value
4935
+ * @return {!proto.bet.AxiomGetHashRequest} returns this
4936
+ */
4937
+ proto.bet.AxiomGetHashRequest.prototype.setUserId = function(value) {
4938
+ return jspb.Message.setProto3IntField(this, 1, value);
4939
+ };
4940
+
4941
+
4942
+ /**
4943
+ * optional string user_session_id = 2;
4944
+ * @return {string}
4945
+ */
4946
+ proto.bet.AxiomGetHashRequest.prototype.getUserSessionId = function() {
4947
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4948
+ };
4949
+
4950
+
4951
+ /**
4952
+ * @param {string} value
4953
+ * @return {!proto.bet.AxiomGetHashRequest} returns this
4954
+ */
4955
+ proto.bet.AxiomGetHashRequest.prototype.setUserSessionId = function(value) {
4956
+ return jspb.Message.setProto3StringField(this, 2, value);
4957
+ };
4958
+
4959
+
4960
+
4961
+
4962
+
4963
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4964
+ /**
4965
+ * Creates an object representation of this proto.
4966
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4967
+ * Optional fields that are not set will be set to undefined.
4968
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4969
+ * For the list of reserved names please see:
4970
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4971
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4972
+ * JSPB instance for transitional soy proto support:
4973
+ * http://goto/soy-param-migration
4974
+ * @return {!Object}
4975
+ */
4976
+ proto.bet.AxiomAuthHashResponse.prototype.toObject = function(opt_includeInstance) {
4977
+ return proto.bet.AxiomAuthHashResponse.toObject(opt_includeInstance, this);
4978
+ };
4979
+
4980
+
4981
+ /**
4982
+ * Static version of the {@see toObject} method.
4983
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4984
+ * the JSPB instance for transitional soy proto support:
4985
+ * http://goto/soy-param-migration
4986
+ * @param {!proto.bet.AxiomAuthHashResponse} msg The msg instance to transform.
4987
+ * @return {!Object}
4988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4989
+ */
4990
+ proto.bet.AxiomAuthHashResponse.toObject = function(includeInstance, msg) {
4991
+ var f, obj = {
4992
+ hash: jspb.Message.getFieldWithDefault(msg, 1, "")
4993
+ };
4994
+
4995
+ if (includeInstance) {
4996
+ obj.$jspbMessageInstance = msg;
4997
+ }
4998
+ return obj;
4999
+ };
5000
+ }
5001
+
5002
+
5003
+ /**
5004
+ * Deserializes binary data (in protobuf wire format).
5005
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5006
+ * @return {!proto.bet.AxiomAuthHashResponse}
5007
+ */
5008
+ proto.bet.AxiomAuthHashResponse.deserializeBinary = function(bytes) {
5009
+ var reader = new jspb.BinaryReader(bytes);
5010
+ var msg = new proto.bet.AxiomAuthHashResponse;
5011
+ return proto.bet.AxiomAuthHashResponse.deserializeBinaryFromReader(msg, reader);
5012
+ };
5013
+
5014
+
5015
+ /**
5016
+ * Deserializes binary data (in protobuf wire format) from the
5017
+ * given reader into the given message object.
5018
+ * @param {!proto.bet.AxiomAuthHashResponse} msg The message object to deserialize into.
5019
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5020
+ * @return {!proto.bet.AxiomAuthHashResponse}
5021
+ */
5022
+ proto.bet.AxiomAuthHashResponse.deserializeBinaryFromReader = function(msg, reader) {
5023
+ while (reader.nextField()) {
5024
+ if (reader.isEndGroup()) {
5025
+ break;
5026
+ }
5027
+ var field = reader.getFieldNumber();
5028
+ switch (field) {
5029
+ case 1:
5030
+ var value = /** @type {string} */ (reader.readString());
5031
+ msg.setHash(value);
5032
+ break;
5033
+ default:
5034
+ reader.skipField();
5035
+ break;
5036
+ }
5037
+ }
5038
+ return msg;
5039
+ };
5040
+
5041
+
5042
+ /**
5043
+ * Serializes the message to binary data (in protobuf wire format).
5044
+ * @return {!Uint8Array}
5045
+ */
5046
+ proto.bet.AxiomAuthHashResponse.prototype.serializeBinary = function() {
5047
+ var writer = new jspb.BinaryWriter();
5048
+ proto.bet.AxiomAuthHashResponse.serializeBinaryToWriter(this, writer);
5049
+ return writer.getResultBuffer();
5050
+ };
5051
+
5052
+
5053
+ /**
5054
+ * Serializes the given message to binary data (in protobuf wire
5055
+ * format), writing to the given BinaryWriter.
5056
+ * @param {!proto.bet.AxiomAuthHashResponse} message
5057
+ * @param {!jspb.BinaryWriter} writer
5058
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5059
+ */
5060
+ proto.bet.AxiomAuthHashResponse.serializeBinaryToWriter = function(message, writer) {
5061
+ var f = undefined;
5062
+ f = message.getHash();
5063
+ if (f.length > 0) {
5064
+ writer.writeString(
5065
+ 1,
5066
+ f
5067
+ );
5068
+ }
5069
+ };
5070
+
5071
+
5072
+ /**
5073
+ * optional string hash = 1;
5074
+ * @return {string}
5075
+ */
5076
+ proto.bet.AxiomAuthHashResponse.prototype.getHash = function() {
5077
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5078
+ };
5079
+
5080
+
5081
+ /**
5082
+ * @param {string} value
5083
+ * @return {!proto.bet.AxiomAuthHashResponse} returns this
5084
+ */
5085
+ proto.bet.AxiomAuthHashResponse.prototype.setHash = function(value) {
5086
+ return jspb.Message.setProto3StringField(this, 1, value);
5087
+ };
5088
+
5089
+
5090
+
5091
+
5092
+
5093
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5094
+ /**
5095
+ * Creates an object representation of this proto.
5096
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5097
+ * Optional fields that are not set will be set to undefined.
5098
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5099
+ * For the list of reserved names please see:
5100
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5101
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5102
+ * JSPB instance for transitional soy proto support:
5103
+ * http://goto/soy-param-migration
5104
+ * @return {!Object}
5105
+ */
5106
+ proto.bet.AxiomCheckSessionRequest.prototype.toObject = function(opt_includeInstance) {
5107
+ return proto.bet.AxiomCheckSessionRequest.toObject(opt_includeInstance, this);
5108
+ };
5109
+
5110
+
5111
+ /**
5112
+ * Static version of the {@see toObject} method.
5113
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5114
+ * the JSPB instance for transitional soy proto support:
5115
+ * http://goto/soy-param-migration
5116
+ * @param {!proto.bet.AxiomCheckSessionRequest} msg The msg instance to transform.
5117
+ * @return {!Object}
5118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5119
+ */
5120
+ proto.bet.AxiomCheckSessionRequest.toObject = function(includeInstance, msg) {
5121
+ var f, obj = {
5122
+ hash: jspb.Message.getFieldWithDefault(msg, 1, "")
5123
+ };
5124
+
5125
+ if (includeInstance) {
5126
+ obj.$jspbMessageInstance = msg;
5127
+ }
5128
+ return obj;
5129
+ };
5130
+ }
5131
+
5132
+
5133
+ /**
5134
+ * Deserializes binary data (in protobuf wire format).
5135
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5136
+ * @return {!proto.bet.AxiomCheckSessionRequest}
5137
+ */
5138
+ proto.bet.AxiomCheckSessionRequest.deserializeBinary = function(bytes) {
5139
+ var reader = new jspb.BinaryReader(bytes);
5140
+ var msg = new proto.bet.AxiomCheckSessionRequest;
5141
+ return proto.bet.AxiomCheckSessionRequest.deserializeBinaryFromReader(msg, reader);
5142
+ };
5143
+
5144
+
5145
+ /**
5146
+ * Deserializes binary data (in protobuf wire format) from the
5147
+ * given reader into the given message object.
5148
+ * @param {!proto.bet.AxiomCheckSessionRequest} msg The message object to deserialize into.
5149
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5150
+ * @return {!proto.bet.AxiomCheckSessionRequest}
5151
+ */
5152
+ proto.bet.AxiomCheckSessionRequest.deserializeBinaryFromReader = function(msg, reader) {
5153
+ while (reader.nextField()) {
5154
+ if (reader.isEndGroup()) {
5155
+ break;
5156
+ }
5157
+ var field = reader.getFieldNumber();
5158
+ switch (field) {
5159
+ case 1:
5160
+ var value = /** @type {string} */ (reader.readString());
5161
+ msg.setHash(value);
5162
+ break;
5163
+ default:
5164
+ reader.skipField();
5165
+ break;
5166
+ }
5167
+ }
5168
+ return msg;
5169
+ };
5170
+
5171
+
5172
+ /**
5173
+ * Serializes the message to binary data (in protobuf wire format).
5174
+ * @return {!Uint8Array}
5175
+ */
5176
+ proto.bet.AxiomCheckSessionRequest.prototype.serializeBinary = function() {
5177
+ var writer = new jspb.BinaryWriter();
5178
+ proto.bet.AxiomCheckSessionRequest.serializeBinaryToWriter(this, writer);
5179
+ return writer.getResultBuffer();
5180
+ };
5181
+
5182
+
5183
+ /**
5184
+ * Serializes the given message to binary data (in protobuf wire
5185
+ * format), writing to the given BinaryWriter.
5186
+ * @param {!proto.bet.AxiomCheckSessionRequest} message
5187
+ * @param {!jspb.BinaryWriter} writer
5188
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5189
+ */
5190
+ proto.bet.AxiomCheckSessionRequest.serializeBinaryToWriter = function(message, writer) {
5191
+ var f = undefined;
5192
+ f = message.getHash();
5193
+ if (f.length > 0) {
5194
+ writer.writeString(
5195
+ 1,
5196
+ f
5197
+ );
5198
+ }
5199
+ };
5200
+
5201
+
5202
+ /**
5203
+ * optional string hash = 1;
5204
+ * @return {string}
5205
+ */
5206
+ proto.bet.AxiomCheckSessionRequest.prototype.getHash = function() {
5207
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5208
+ };
5209
+
5210
+
5211
+ /**
5212
+ * @param {string} value
5213
+ * @return {!proto.bet.AxiomCheckSessionRequest} returns this
5214
+ */
5215
+ proto.bet.AxiomCheckSessionRequest.prototype.setHash = function(value) {
5216
+ return jspb.Message.setProto3StringField(this, 1, value);
5217
+ };
5218
+
5219
+
5220
+
5221
+
5222
+
5223
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5224
+ /**
5225
+ * Creates an object representation of this proto.
5226
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5227
+ * Optional fields that are not set will be set to undefined.
5228
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5229
+ * For the list of reserved names please see:
5230
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5231
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5232
+ * JSPB instance for transitional soy proto support:
5233
+ * http://goto/soy-param-migration
5234
+ * @return {!Object}
5235
+ */
5236
+ proto.bet.AxiomCheckSessionResponse.prototype.toObject = function(opt_includeInstance) {
5237
+ return proto.bet.AxiomCheckSessionResponse.toObject(opt_includeInstance, this);
5238
+ };
5239
+
5240
+
5241
+ /**
5242
+ * Static version of the {@see toObject} method.
5243
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5244
+ * the JSPB instance for transitional soy proto support:
5245
+ * http://goto/soy-param-migration
5246
+ * @param {!proto.bet.AxiomCheckSessionResponse} msg The msg instance to transform.
5247
+ * @return {!Object}
5248
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5249
+ */
5250
+ proto.bet.AxiomCheckSessionResponse.toObject = function(includeInstance, msg) {
5251
+ var f, obj = {
5252
+
5253
+ };
5254
+
5255
+ if (includeInstance) {
5256
+ obj.$jspbMessageInstance = msg;
5257
+ }
5258
+ return obj;
5259
+ };
5260
+ }
5261
+
5262
+
5263
+ /**
5264
+ * Deserializes binary data (in protobuf wire format).
5265
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5266
+ * @return {!proto.bet.AxiomCheckSessionResponse}
5267
+ */
5268
+ proto.bet.AxiomCheckSessionResponse.deserializeBinary = function(bytes) {
5269
+ var reader = new jspb.BinaryReader(bytes);
5270
+ var msg = new proto.bet.AxiomCheckSessionResponse;
5271
+ return proto.bet.AxiomCheckSessionResponse.deserializeBinaryFromReader(msg, reader);
5272
+ };
5273
+
5274
+
5275
+ /**
5276
+ * Deserializes binary data (in protobuf wire format) from the
5277
+ * given reader into the given message object.
5278
+ * @param {!proto.bet.AxiomCheckSessionResponse} msg The message object to deserialize into.
5279
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5280
+ * @return {!proto.bet.AxiomCheckSessionResponse}
5281
+ */
5282
+ proto.bet.AxiomCheckSessionResponse.deserializeBinaryFromReader = function(msg, reader) {
5283
+ while (reader.nextField()) {
5284
+ if (reader.isEndGroup()) {
5285
+ break;
5286
+ }
5287
+ var field = reader.getFieldNumber();
5288
+ switch (field) {
5289
+ default:
5290
+ reader.skipField();
5291
+ break;
5292
+ }
5293
+ }
5294
+ return msg;
5295
+ };
5296
+
5297
+
5298
+ /**
5299
+ * Serializes the message to binary data (in protobuf wire format).
5300
+ * @return {!Uint8Array}
5301
+ */
5302
+ proto.bet.AxiomCheckSessionResponse.prototype.serializeBinary = function() {
5303
+ var writer = new jspb.BinaryWriter();
5304
+ proto.bet.AxiomCheckSessionResponse.serializeBinaryToWriter(this, writer);
5305
+ return writer.getResultBuffer();
5306
+ };
5307
+
5308
+
5309
+ /**
5310
+ * Serializes the given message to binary data (in protobuf wire
5311
+ * format), writing to the given BinaryWriter.
5312
+ * @param {!proto.bet.AxiomCheckSessionResponse} message
5313
+ * @param {!jspb.BinaryWriter} writer
5314
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5315
+ */
5316
+ proto.bet.AxiomCheckSessionResponse.serializeBinaryToWriter = function(message, writer) {
5317
+ var f = undefined;
5318
+ };
5319
+
5320
+
4712
5321
  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.7",
3
+ "version": "1.2.9",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -131,6 +131,7 @@ message LoggedInResponse {
131
131
  optional string first_name = 8;
132
132
  optional string last_name = 9;
133
133
  optional string session_id = 10;
134
+ optional string axiom_session_hash = 11;
134
135
  }
135
136
  message LoginRequest {
136
137
  string email = 1;
package/user/user_pb.js CHANGED
@@ -4596,7 +4596,8 @@ proto.user.LoggedInResponse.toObject = function(includeInstance, msg) {
4596
4596
  locale: jspb.Message.getFieldWithDefault(msg, 7, ""),
4597
4597
  firstName: jspb.Message.getFieldWithDefault(msg, 8, ""),
4598
4598
  lastName: jspb.Message.getFieldWithDefault(msg, 9, ""),
4599
- sessionId: jspb.Message.getFieldWithDefault(msg, 10, "")
4599
+ sessionId: jspb.Message.getFieldWithDefault(msg, 10, ""),
4600
+ axiomSessionHash: jspb.Message.getFieldWithDefault(msg, 11, "")
4600
4601
  };
4601
4602
 
4602
4603
  if (includeInstance) {
@@ -4673,6 +4674,10 @@ proto.user.LoggedInResponse.deserializeBinaryFromReader = function(msg, reader)
4673
4674
  var value = /** @type {string} */ (reader.readString());
4674
4675
  msg.setSessionId(value);
4675
4676
  break;
4677
+ case 11:
4678
+ var value = /** @type {string} */ (reader.readString());
4679
+ msg.setAxiomSessionHash(value);
4680
+ break;
4676
4681
  default:
4677
4682
  reader.skipField();
4678
4683
  break;
@@ -4772,6 +4777,13 @@ proto.user.LoggedInResponse.serializeBinaryToWriter = function(message, writer)
4772
4777
  f
4773
4778
  );
4774
4779
  }
4780
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
4781
+ if (f != null) {
4782
+ writer.writeString(
4783
+ 11,
4784
+ f
4785
+ );
4786
+ }
4775
4787
  };
4776
4788
 
4777
4789
 
@@ -5009,6 +5021,42 @@ proto.user.LoggedInResponse.prototype.hasSessionId = function() {
5009
5021
  };
5010
5022
 
5011
5023
 
5024
+ /**
5025
+ * optional string axiom_session_hash = 11;
5026
+ * @return {string}
5027
+ */
5028
+ proto.user.LoggedInResponse.prototype.getAxiomSessionHash = function() {
5029
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
5030
+ };
5031
+
5032
+
5033
+ /**
5034
+ * @param {string} value
5035
+ * @return {!proto.user.LoggedInResponse} returns this
5036
+ */
5037
+ proto.user.LoggedInResponse.prototype.setAxiomSessionHash = function(value) {
5038
+ return jspb.Message.setField(this, 11, value);
5039
+ };
5040
+
5041
+
5042
+ /**
5043
+ * Clears the field making it undefined.
5044
+ * @return {!proto.user.LoggedInResponse} returns this
5045
+ */
5046
+ proto.user.LoggedInResponse.prototype.clearAxiomSessionHash = function() {
5047
+ return jspb.Message.setField(this, 11, undefined);
5048
+ };
5049
+
5050
+
5051
+ /**
5052
+ * Returns whether this field is set.
5053
+ * @return {boolean}
5054
+ */
5055
+ proto.user.LoggedInResponse.prototype.hasAxiomSessionHash = function() {
5056
+ return jspb.Message.getField(this, 11) != null;
5057
+ };
5058
+
5059
+
5012
5060
 
5013
5061
 
5014
5062