protobuf-platform 1.2.116 → 1.2.118

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/index.js CHANGED
@@ -33,6 +33,8 @@ const AnalyticService = require('./analytic/analytic_grpc_pb');
33
33
  const AnalyticServiceMessages = require('./analytic/analytic_pb');
34
34
  const SchedulerService = require('./scheduler/scheduler_grpc_pb');
35
35
  const SchedulerServiceMessages = require('./scheduler/scheduler_pb');
36
+ const SportService = require('./sport/sport_grpc_pb');
37
+ const SportServiceMessage = require('./sport/sport_pb');
36
38
  module.exports = {
37
39
  gRPC: gRPC,
38
40
  maxSendMessageLength: 10388608,
@@ -102,4 +104,8 @@ module.exports = {
102
104
  service: SchedulerService,
103
105
  messages: SchedulerServiceMessages
104
106
  },
107
+ sport: {
108
+ service: SportService,
109
+ messages: SportServiceMessage
110
+ },
105
111
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.116",
3
+ "version": "1.2.118",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,45 @@
1
+ syntax = "proto3";
2
+
3
+ package sport;
4
+
5
+ service Sport {
6
+ rpc checkConnection(PingRequest) returns (PongResponse);
7
+ // Launch Betby sportsbook widget for user or guest.
8
+ rpc launchBetby(LaunchBetbyRequest) returns (LaunchBetbyResponse);
9
+ }
10
+ message PingRequest { string ping = 1; }
11
+ message PongResponse { string pong = 1; }
12
+ message PaginationRequest {
13
+ int32 limit = 1;
14
+ int32 offset = 2;
15
+ optional string order = 3;
16
+ }
17
+ // Launch request for Betby sportsbook.
18
+ message LaunchBetbyRequest {
19
+ // Optional: internal user identifier, empty for guest.
20
+ optional string user_id = 1;
21
+
22
+ // Player currency, e.g. "EUR".
23
+ optional string currency = 2;
24
+
25
+ // Player language, e.g. "en-US".
26
+ optional string language = 3;
27
+
28
+ // URL to return player after sportsbook session end.
29
+ optional string return_url = 4;
30
+
31
+ // Client IP address for Betby (X-Client-Ip).
32
+ optional string client_ip = 5;
33
+ }
34
+
35
+ // Launch response with rendered Betby widget.
36
+ message LaunchBetbyResponse {
37
+ // Rendered HTML snippet to inject on frontend.
38
+ string html = 1;
39
+
40
+ // Launch mode: "guest" or "player".
41
+ optional string mode = 2;
42
+
43
+ // Internal sportsbook session identifier on our side.
44
+ optional string session_id = 3;
45
+ }
@@ -0,0 +1,78 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var sport_pb = require('./sport_pb.js');
6
+
7
+ function serialize_sport_LaunchBetbyRequest(arg) {
8
+ if (!(arg instanceof sport_pb.LaunchBetbyRequest)) {
9
+ throw new Error('Expected argument of type sport.LaunchBetbyRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_sport_LaunchBetbyRequest(buffer_arg) {
15
+ return sport_pb.LaunchBetbyRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_sport_LaunchBetbyResponse(arg) {
19
+ if (!(arg instanceof sport_pb.LaunchBetbyResponse)) {
20
+ throw new Error('Expected argument of type sport.LaunchBetbyResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_sport_LaunchBetbyResponse(buffer_arg) {
26
+ return sport_pb.LaunchBetbyResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_sport_PingRequest(arg) {
30
+ if (!(arg instanceof sport_pb.PingRequest)) {
31
+ throw new Error('Expected argument of type sport.PingRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_sport_PingRequest(buffer_arg) {
37
+ return sport_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_sport_PongResponse(arg) {
41
+ if (!(arg instanceof sport_pb.PongResponse)) {
42
+ throw new Error('Expected argument of type sport.PongResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_sport_PongResponse(buffer_arg) {
48
+ return sport_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
51
+
52
+ var SportService = exports.SportService = {
53
+ checkConnection: {
54
+ path: '/sport.Sport/checkConnection',
55
+ requestStream: false,
56
+ responseStream: false,
57
+ requestType: sport_pb.PingRequest,
58
+ responseType: sport_pb.PongResponse,
59
+ requestSerialize: serialize_sport_PingRequest,
60
+ requestDeserialize: deserialize_sport_PingRequest,
61
+ responseSerialize: serialize_sport_PongResponse,
62
+ responseDeserialize: deserialize_sport_PongResponse,
63
+ },
64
+ // Launch Betby sportsbook widget for user or guest.
65
+ launchBetby: {
66
+ path: '/sport.Sport/launchBetby',
67
+ requestStream: false,
68
+ responseStream: false,
69
+ requestType: sport_pb.LaunchBetbyRequest,
70
+ responseType: sport_pb.LaunchBetbyResponse,
71
+ requestSerialize: serialize_sport_LaunchBetbyRequest,
72
+ requestDeserialize: deserialize_sport_LaunchBetbyRequest,
73
+ responseSerialize: serialize_sport_LaunchBetbyResponse,
74
+ responseDeserialize: deserialize_sport_LaunchBetbyResponse,
75
+ },
76
+ };
77
+
78
+ exports.SportClient = grpc.makeGenericClientConstructor(SportService, 'Sport');
@@ -0,0 +1,1168 @@
1
+ // source: sport.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.sport.LaunchBetbyRequest', null, global);
25
+ goog.exportSymbol('proto.sport.LaunchBetbyResponse', null, global);
26
+ goog.exportSymbol('proto.sport.PaginationRequest', null, global);
27
+ goog.exportSymbol('proto.sport.PingRequest', null, global);
28
+ goog.exportSymbol('proto.sport.PongResponse', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.sport.PingRequest = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
41
+ };
42
+ goog.inherits(proto.sport.PingRequest, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.sport.PingRequest.displayName = 'proto.sport.PingRequest';
49
+ }
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.sport.PongResponse = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
62
+ };
63
+ goog.inherits(proto.sport.PongResponse, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.sport.PongResponse.displayName = 'proto.sport.PongResponse';
70
+ }
71
+ /**
72
+ * Generated by JsPbCodeGenerator.
73
+ * @param {Array=} opt_data Optional initial data array, typically from a
74
+ * server response, or constructed directly in Javascript. The array is used
75
+ * in place and becomes part of the constructed object. It is not cloned.
76
+ * If no data is provided, the constructed object will be empty, but still
77
+ * valid.
78
+ * @extends {jspb.Message}
79
+ * @constructor
80
+ */
81
+ proto.sport.PaginationRequest = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
83
+ };
84
+ goog.inherits(proto.sport.PaginationRequest, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.sport.PaginationRequest.displayName = 'proto.sport.PaginationRequest';
91
+ }
92
+ /**
93
+ * Generated by JsPbCodeGenerator.
94
+ * @param {Array=} opt_data Optional initial data array, typically from a
95
+ * server response, or constructed directly in Javascript. The array is used
96
+ * in place and becomes part of the constructed object. It is not cloned.
97
+ * If no data is provided, the constructed object will be empty, but still
98
+ * valid.
99
+ * @extends {jspb.Message}
100
+ * @constructor
101
+ */
102
+ proto.sport.LaunchBetbyRequest = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ };
105
+ goog.inherits(proto.sport.LaunchBetbyRequest, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.sport.LaunchBetbyRequest.displayName = 'proto.sport.LaunchBetbyRequest';
112
+ }
113
+ /**
114
+ * Generated by JsPbCodeGenerator.
115
+ * @param {Array=} opt_data Optional initial data array, typically from a
116
+ * server response, or constructed directly in Javascript. The array is used
117
+ * in place and becomes part of the constructed object. It is not cloned.
118
+ * If no data is provided, the constructed object will be empty, but still
119
+ * valid.
120
+ * @extends {jspb.Message}
121
+ * @constructor
122
+ */
123
+ proto.sport.LaunchBetbyResponse = function(opt_data) {
124
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
125
+ };
126
+ goog.inherits(proto.sport.LaunchBetbyResponse, jspb.Message);
127
+ if (goog.DEBUG && !COMPILED) {
128
+ /**
129
+ * @public
130
+ * @override
131
+ */
132
+ proto.sport.LaunchBetbyResponse.displayName = 'proto.sport.LaunchBetbyResponse';
133
+ }
134
+
135
+
136
+
137
+ if (jspb.Message.GENERATE_TO_OBJECT) {
138
+ /**
139
+ * Creates an object representation of this proto.
140
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
141
+ * Optional fields that are not set will be set to undefined.
142
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
143
+ * For the list of reserved names please see:
144
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
145
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
146
+ * JSPB instance for transitional soy proto support:
147
+ * http://goto/soy-param-migration
148
+ * @return {!Object}
149
+ */
150
+ proto.sport.PingRequest.prototype.toObject = function(opt_includeInstance) {
151
+ return proto.sport.PingRequest.toObject(opt_includeInstance, this);
152
+ };
153
+
154
+
155
+ /**
156
+ * Static version of the {@see toObject} method.
157
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
158
+ * the JSPB instance for transitional soy proto support:
159
+ * http://goto/soy-param-migration
160
+ * @param {!proto.sport.PingRequest} msg The msg instance to transform.
161
+ * @return {!Object}
162
+ * @suppress {unusedLocalVariables} f is only used for nested messages
163
+ */
164
+ proto.sport.PingRequest.toObject = function(includeInstance, msg) {
165
+ var f, obj = {
166
+ ping: jspb.Message.getFieldWithDefault(msg, 1, "")
167
+ };
168
+
169
+ if (includeInstance) {
170
+ obj.$jspbMessageInstance = msg;
171
+ }
172
+ return obj;
173
+ };
174
+ }
175
+
176
+
177
+ /**
178
+ * Deserializes binary data (in protobuf wire format).
179
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
180
+ * @return {!proto.sport.PingRequest}
181
+ */
182
+ proto.sport.PingRequest.deserializeBinary = function(bytes) {
183
+ var reader = new jspb.BinaryReader(bytes);
184
+ var msg = new proto.sport.PingRequest;
185
+ return proto.sport.PingRequest.deserializeBinaryFromReader(msg, reader);
186
+ };
187
+
188
+
189
+ /**
190
+ * Deserializes binary data (in protobuf wire format) from the
191
+ * given reader into the given message object.
192
+ * @param {!proto.sport.PingRequest} msg The message object to deserialize into.
193
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
194
+ * @return {!proto.sport.PingRequest}
195
+ */
196
+ proto.sport.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
197
+ while (reader.nextField()) {
198
+ if (reader.isEndGroup()) {
199
+ break;
200
+ }
201
+ var field = reader.getFieldNumber();
202
+ switch (field) {
203
+ case 1:
204
+ var value = /** @type {string} */ (reader.readString());
205
+ msg.setPing(value);
206
+ break;
207
+ default:
208
+ reader.skipField();
209
+ break;
210
+ }
211
+ }
212
+ return msg;
213
+ };
214
+
215
+
216
+ /**
217
+ * Serializes the message to binary data (in protobuf wire format).
218
+ * @return {!Uint8Array}
219
+ */
220
+ proto.sport.PingRequest.prototype.serializeBinary = function() {
221
+ var writer = new jspb.BinaryWriter();
222
+ proto.sport.PingRequest.serializeBinaryToWriter(this, writer);
223
+ return writer.getResultBuffer();
224
+ };
225
+
226
+
227
+ /**
228
+ * Serializes the given message to binary data (in protobuf wire
229
+ * format), writing to the given BinaryWriter.
230
+ * @param {!proto.sport.PingRequest} message
231
+ * @param {!jspb.BinaryWriter} writer
232
+ * @suppress {unusedLocalVariables} f is only used for nested messages
233
+ */
234
+ proto.sport.PingRequest.serializeBinaryToWriter = function(message, writer) {
235
+ var f = undefined;
236
+ f = message.getPing();
237
+ if (f.length > 0) {
238
+ writer.writeString(
239
+ 1,
240
+ f
241
+ );
242
+ }
243
+ };
244
+
245
+
246
+ /**
247
+ * optional string ping = 1;
248
+ * @return {string}
249
+ */
250
+ proto.sport.PingRequest.prototype.getPing = function() {
251
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
252
+ };
253
+
254
+
255
+ /**
256
+ * @param {string} value
257
+ * @return {!proto.sport.PingRequest} returns this
258
+ */
259
+ proto.sport.PingRequest.prototype.setPing = function(value) {
260
+ return jspb.Message.setProto3StringField(this, 1, value);
261
+ };
262
+
263
+
264
+
265
+
266
+
267
+ if (jspb.Message.GENERATE_TO_OBJECT) {
268
+ /**
269
+ * Creates an object representation of this proto.
270
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
271
+ * Optional fields that are not set will be set to undefined.
272
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
273
+ * For the list of reserved names please see:
274
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
275
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
276
+ * JSPB instance for transitional soy proto support:
277
+ * http://goto/soy-param-migration
278
+ * @return {!Object}
279
+ */
280
+ proto.sport.PongResponse.prototype.toObject = function(opt_includeInstance) {
281
+ return proto.sport.PongResponse.toObject(opt_includeInstance, this);
282
+ };
283
+
284
+
285
+ /**
286
+ * Static version of the {@see toObject} method.
287
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
288
+ * the JSPB instance for transitional soy proto support:
289
+ * http://goto/soy-param-migration
290
+ * @param {!proto.sport.PongResponse} msg The msg instance to transform.
291
+ * @return {!Object}
292
+ * @suppress {unusedLocalVariables} f is only used for nested messages
293
+ */
294
+ proto.sport.PongResponse.toObject = function(includeInstance, msg) {
295
+ var f, obj = {
296
+ pong: jspb.Message.getFieldWithDefault(msg, 1, "")
297
+ };
298
+
299
+ if (includeInstance) {
300
+ obj.$jspbMessageInstance = msg;
301
+ }
302
+ return obj;
303
+ };
304
+ }
305
+
306
+
307
+ /**
308
+ * Deserializes binary data (in protobuf wire format).
309
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
310
+ * @return {!proto.sport.PongResponse}
311
+ */
312
+ proto.sport.PongResponse.deserializeBinary = function(bytes) {
313
+ var reader = new jspb.BinaryReader(bytes);
314
+ var msg = new proto.sport.PongResponse;
315
+ return proto.sport.PongResponse.deserializeBinaryFromReader(msg, reader);
316
+ };
317
+
318
+
319
+ /**
320
+ * Deserializes binary data (in protobuf wire format) from the
321
+ * given reader into the given message object.
322
+ * @param {!proto.sport.PongResponse} msg The message object to deserialize into.
323
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
324
+ * @return {!proto.sport.PongResponse}
325
+ */
326
+ proto.sport.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
327
+ while (reader.nextField()) {
328
+ if (reader.isEndGroup()) {
329
+ break;
330
+ }
331
+ var field = reader.getFieldNumber();
332
+ switch (field) {
333
+ case 1:
334
+ var value = /** @type {string} */ (reader.readString());
335
+ msg.setPong(value);
336
+ break;
337
+ default:
338
+ reader.skipField();
339
+ break;
340
+ }
341
+ }
342
+ return msg;
343
+ };
344
+
345
+
346
+ /**
347
+ * Serializes the message to binary data (in protobuf wire format).
348
+ * @return {!Uint8Array}
349
+ */
350
+ proto.sport.PongResponse.prototype.serializeBinary = function() {
351
+ var writer = new jspb.BinaryWriter();
352
+ proto.sport.PongResponse.serializeBinaryToWriter(this, writer);
353
+ return writer.getResultBuffer();
354
+ };
355
+
356
+
357
+ /**
358
+ * Serializes the given message to binary data (in protobuf wire
359
+ * format), writing to the given BinaryWriter.
360
+ * @param {!proto.sport.PongResponse} message
361
+ * @param {!jspb.BinaryWriter} writer
362
+ * @suppress {unusedLocalVariables} f is only used for nested messages
363
+ */
364
+ proto.sport.PongResponse.serializeBinaryToWriter = function(message, writer) {
365
+ var f = undefined;
366
+ f = message.getPong();
367
+ if (f.length > 0) {
368
+ writer.writeString(
369
+ 1,
370
+ f
371
+ );
372
+ }
373
+ };
374
+
375
+
376
+ /**
377
+ * optional string pong = 1;
378
+ * @return {string}
379
+ */
380
+ proto.sport.PongResponse.prototype.getPong = function() {
381
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
382
+ };
383
+
384
+
385
+ /**
386
+ * @param {string} value
387
+ * @return {!proto.sport.PongResponse} returns this
388
+ */
389
+ proto.sport.PongResponse.prototype.setPong = function(value) {
390
+ return jspb.Message.setProto3StringField(this, 1, value);
391
+ };
392
+
393
+
394
+
395
+
396
+
397
+ if (jspb.Message.GENERATE_TO_OBJECT) {
398
+ /**
399
+ * Creates an object representation of this proto.
400
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
401
+ * Optional fields that are not set will be set to undefined.
402
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
403
+ * For the list of reserved names please see:
404
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
405
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
406
+ * JSPB instance for transitional soy proto support:
407
+ * http://goto/soy-param-migration
408
+ * @return {!Object}
409
+ */
410
+ proto.sport.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
411
+ return proto.sport.PaginationRequest.toObject(opt_includeInstance, this);
412
+ };
413
+
414
+
415
+ /**
416
+ * Static version of the {@see toObject} method.
417
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
418
+ * the JSPB instance for transitional soy proto support:
419
+ * http://goto/soy-param-migration
420
+ * @param {!proto.sport.PaginationRequest} msg The msg instance to transform.
421
+ * @return {!Object}
422
+ * @suppress {unusedLocalVariables} f is only used for nested messages
423
+ */
424
+ proto.sport.PaginationRequest.toObject = function(includeInstance, msg) {
425
+ var f, obj = {
426
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
427
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
428
+ order: jspb.Message.getFieldWithDefault(msg, 3, "")
429
+ };
430
+
431
+ if (includeInstance) {
432
+ obj.$jspbMessageInstance = msg;
433
+ }
434
+ return obj;
435
+ };
436
+ }
437
+
438
+
439
+ /**
440
+ * Deserializes binary data (in protobuf wire format).
441
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
442
+ * @return {!proto.sport.PaginationRequest}
443
+ */
444
+ proto.sport.PaginationRequest.deserializeBinary = function(bytes) {
445
+ var reader = new jspb.BinaryReader(bytes);
446
+ var msg = new proto.sport.PaginationRequest;
447
+ return proto.sport.PaginationRequest.deserializeBinaryFromReader(msg, reader);
448
+ };
449
+
450
+
451
+ /**
452
+ * Deserializes binary data (in protobuf wire format) from the
453
+ * given reader into the given message object.
454
+ * @param {!proto.sport.PaginationRequest} msg The message object to deserialize into.
455
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
456
+ * @return {!proto.sport.PaginationRequest}
457
+ */
458
+ proto.sport.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
459
+ while (reader.nextField()) {
460
+ if (reader.isEndGroup()) {
461
+ break;
462
+ }
463
+ var field = reader.getFieldNumber();
464
+ switch (field) {
465
+ case 1:
466
+ var value = /** @type {number} */ (reader.readInt32());
467
+ msg.setLimit(value);
468
+ break;
469
+ case 2:
470
+ var value = /** @type {number} */ (reader.readInt32());
471
+ msg.setOffset(value);
472
+ break;
473
+ case 3:
474
+ var value = /** @type {string} */ (reader.readString());
475
+ msg.setOrder(value);
476
+ break;
477
+ default:
478
+ reader.skipField();
479
+ break;
480
+ }
481
+ }
482
+ return msg;
483
+ };
484
+
485
+
486
+ /**
487
+ * Serializes the message to binary data (in protobuf wire format).
488
+ * @return {!Uint8Array}
489
+ */
490
+ proto.sport.PaginationRequest.prototype.serializeBinary = function() {
491
+ var writer = new jspb.BinaryWriter();
492
+ proto.sport.PaginationRequest.serializeBinaryToWriter(this, writer);
493
+ return writer.getResultBuffer();
494
+ };
495
+
496
+
497
+ /**
498
+ * Serializes the given message to binary data (in protobuf wire
499
+ * format), writing to the given BinaryWriter.
500
+ * @param {!proto.sport.PaginationRequest} message
501
+ * @param {!jspb.BinaryWriter} writer
502
+ * @suppress {unusedLocalVariables} f is only used for nested messages
503
+ */
504
+ proto.sport.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
505
+ var f = undefined;
506
+ f = message.getLimit();
507
+ if (f !== 0) {
508
+ writer.writeInt32(
509
+ 1,
510
+ f
511
+ );
512
+ }
513
+ f = message.getOffset();
514
+ if (f !== 0) {
515
+ writer.writeInt32(
516
+ 2,
517
+ f
518
+ );
519
+ }
520
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
521
+ if (f != null) {
522
+ writer.writeString(
523
+ 3,
524
+ f
525
+ );
526
+ }
527
+ };
528
+
529
+
530
+ /**
531
+ * optional int32 limit = 1;
532
+ * @return {number}
533
+ */
534
+ proto.sport.PaginationRequest.prototype.getLimit = function() {
535
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
536
+ };
537
+
538
+
539
+ /**
540
+ * @param {number} value
541
+ * @return {!proto.sport.PaginationRequest} returns this
542
+ */
543
+ proto.sport.PaginationRequest.prototype.setLimit = function(value) {
544
+ return jspb.Message.setProto3IntField(this, 1, value);
545
+ };
546
+
547
+
548
+ /**
549
+ * optional int32 offset = 2;
550
+ * @return {number}
551
+ */
552
+ proto.sport.PaginationRequest.prototype.getOffset = function() {
553
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
554
+ };
555
+
556
+
557
+ /**
558
+ * @param {number} value
559
+ * @return {!proto.sport.PaginationRequest} returns this
560
+ */
561
+ proto.sport.PaginationRequest.prototype.setOffset = function(value) {
562
+ return jspb.Message.setProto3IntField(this, 2, value);
563
+ };
564
+
565
+
566
+ /**
567
+ * optional string order = 3;
568
+ * @return {string}
569
+ */
570
+ proto.sport.PaginationRequest.prototype.getOrder = function() {
571
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
572
+ };
573
+
574
+
575
+ /**
576
+ * @param {string} value
577
+ * @return {!proto.sport.PaginationRequest} returns this
578
+ */
579
+ proto.sport.PaginationRequest.prototype.setOrder = function(value) {
580
+ return jspb.Message.setField(this, 3, value);
581
+ };
582
+
583
+
584
+ /**
585
+ * Clears the field making it undefined.
586
+ * @return {!proto.sport.PaginationRequest} returns this
587
+ */
588
+ proto.sport.PaginationRequest.prototype.clearOrder = function() {
589
+ return jspb.Message.setField(this, 3, undefined);
590
+ };
591
+
592
+
593
+ /**
594
+ * Returns whether this field is set.
595
+ * @return {boolean}
596
+ */
597
+ proto.sport.PaginationRequest.prototype.hasOrder = function() {
598
+ return jspb.Message.getField(this, 3) != null;
599
+ };
600
+
601
+
602
+
603
+
604
+
605
+ if (jspb.Message.GENERATE_TO_OBJECT) {
606
+ /**
607
+ * Creates an object representation of this proto.
608
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
609
+ * Optional fields that are not set will be set to undefined.
610
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
611
+ * For the list of reserved names please see:
612
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
613
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
614
+ * JSPB instance for transitional soy proto support:
615
+ * http://goto/soy-param-migration
616
+ * @return {!Object}
617
+ */
618
+ proto.sport.LaunchBetbyRequest.prototype.toObject = function(opt_includeInstance) {
619
+ return proto.sport.LaunchBetbyRequest.toObject(opt_includeInstance, this);
620
+ };
621
+
622
+
623
+ /**
624
+ * Static version of the {@see toObject} method.
625
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
626
+ * the JSPB instance for transitional soy proto support:
627
+ * http://goto/soy-param-migration
628
+ * @param {!proto.sport.LaunchBetbyRequest} msg The msg instance to transform.
629
+ * @return {!Object}
630
+ * @suppress {unusedLocalVariables} f is only used for nested messages
631
+ */
632
+ proto.sport.LaunchBetbyRequest.toObject = function(includeInstance, msg) {
633
+ var f, obj = {
634
+ userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
635
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
636
+ language: jspb.Message.getFieldWithDefault(msg, 3, ""),
637
+ returnUrl: jspb.Message.getFieldWithDefault(msg, 4, ""),
638
+ clientIp: jspb.Message.getFieldWithDefault(msg, 5, "")
639
+ };
640
+
641
+ if (includeInstance) {
642
+ obj.$jspbMessageInstance = msg;
643
+ }
644
+ return obj;
645
+ };
646
+ }
647
+
648
+
649
+ /**
650
+ * Deserializes binary data (in protobuf wire format).
651
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
652
+ * @return {!proto.sport.LaunchBetbyRequest}
653
+ */
654
+ proto.sport.LaunchBetbyRequest.deserializeBinary = function(bytes) {
655
+ var reader = new jspb.BinaryReader(bytes);
656
+ var msg = new proto.sport.LaunchBetbyRequest;
657
+ return proto.sport.LaunchBetbyRequest.deserializeBinaryFromReader(msg, reader);
658
+ };
659
+
660
+
661
+ /**
662
+ * Deserializes binary data (in protobuf wire format) from the
663
+ * given reader into the given message object.
664
+ * @param {!proto.sport.LaunchBetbyRequest} msg The message object to deserialize into.
665
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
666
+ * @return {!proto.sport.LaunchBetbyRequest}
667
+ */
668
+ proto.sport.LaunchBetbyRequest.deserializeBinaryFromReader = function(msg, reader) {
669
+ while (reader.nextField()) {
670
+ if (reader.isEndGroup()) {
671
+ break;
672
+ }
673
+ var field = reader.getFieldNumber();
674
+ switch (field) {
675
+ case 1:
676
+ var value = /** @type {string} */ (reader.readString());
677
+ msg.setUserId(value);
678
+ break;
679
+ case 2:
680
+ var value = /** @type {string} */ (reader.readString());
681
+ msg.setCurrency(value);
682
+ break;
683
+ case 3:
684
+ var value = /** @type {string} */ (reader.readString());
685
+ msg.setLanguage(value);
686
+ break;
687
+ case 4:
688
+ var value = /** @type {string} */ (reader.readString());
689
+ msg.setReturnUrl(value);
690
+ break;
691
+ case 5:
692
+ var value = /** @type {string} */ (reader.readString());
693
+ msg.setClientIp(value);
694
+ break;
695
+ default:
696
+ reader.skipField();
697
+ break;
698
+ }
699
+ }
700
+ return msg;
701
+ };
702
+
703
+
704
+ /**
705
+ * Serializes the message to binary data (in protobuf wire format).
706
+ * @return {!Uint8Array}
707
+ */
708
+ proto.sport.LaunchBetbyRequest.prototype.serializeBinary = function() {
709
+ var writer = new jspb.BinaryWriter();
710
+ proto.sport.LaunchBetbyRequest.serializeBinaryToWriter(this, writer);
711
+ return writer.getResultBuffer();
712
+ };
713
+
714
+
715
+ /**
716
+ * Serializes the given message to binary data (in protobuf wire
717
+ * format), writing to the given BinaryWriter.
718
+ * @param {!proto.sport.LaunchBetbyRequest} message
719
+ * @param {!jspb.BinaryWriter} writer
720
+ * @suppress {unusedLocalVariables} f is only used for nested messages
721
+ */
722
+ proto.sport.LaunchBetbyRequest.serializeBinaryToWriter = function(message, writer) {
723
+ var f = undefined;
724
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
725
+ if (f != null) {
726
+ writer.writeString(
727
+ 1,
728
+ f
729
+ );
730
+ }
731
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
732
+ if (f != null) {
733
+ writer.writeString(
734
+ 2,
735
+ f
736
+ );
737
+ }
738
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
739
+ if (f != null) {
740
+ writer.writeString(
741
+ 3,
742
+ f
743
+ );
744
+ }
745
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
746
+ if (f != null) {
747
+ writer.writeString(
748
+ 4,
749
+ f
750
+ );
751
+ }
752
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
753
+ if (f != null) {
754
+ writer.writeString(
755
+ 5,
756
+ f
757
+ );
758
+ }
759
+ };
760
+
761
+
762
+ /**
763
+ * optional string user_id = 1;
764
+ * @return {string}
765
+ */
766
+ proto.sport.LaunchBetbyRequest.prototype.getUserId = function() {
767
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
768
+ };
769
+
770
+
771
+ /**
772
+ * @param {string} value
773
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
774
+ */
775
+ proto.sport.LaunchBetbyRequest.prototype.setUserId = function(value) {
776
+ return jspb.Message.setField(this, 1, value);
777
+ };
778
+
779
+
780
+ /**
781
+ * Clears the field making it undefined.
782
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
783
+ */
784
+ proto.sport.LaunchBetbyRequest.prototype.clearUserId = function() {
785
+ return jspb.Message.setField(this, 1, undefined);
786
+ };
787
+
788
+
789
+ /**
790
+ * Returns whether this field is set.
791
+ * @return {boolean}
792
+ */
793
+ proto.sport.LaunchBetbyRequest.prototype.hasUserId = function() {
794
+ return jspb.Message.getField(this, 1) != null;
795
+ };
796
+
797
+
798
+ /**
799
+ * optional string currency = 2;
800
+ * @return {string}
801
+ */
802
+ proto.sport.LaunchBetbyRequest.prototype.getCurrency = function() {
803
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
804
+ };
805
+
806
+
807
+ /**
808
+ * @param {string} value
809
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
810
+ */
811
+ proto.sport.LaunchBetbyRequest.prototype.setCurrency = function(value) {
812
+ return jspb.Message.setField(this, 2, value);
813
+ };
814
+
815
+
816
+ /**
817
+ * Clears the field making it undefined.
818
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
819
+ */
820
+ proto.sport.LaunchBetbyRequest.prototype.clearCurrency = function() {
821
+ return jspb.Message.setField(this, 2, undefined);
822
+ };
823
+
824
+
825
+ /**
826
+ * Returns whether this field is set.
827
+ * @return {boolean}
828
+ */
829
+ proto.sport.LaunchBetbyRequest.prototype.hasCurrency = function() {
830
+ return jspb.Message.getField(this, 2) != null;
831
+ };
832
+
833
+
834
+ /**
835
+ * optional string language = 3;
836
+ * @return {string}
837
+ */
838
+ proto.sport.LaunchBetbyRequest.prototype.getLanguage = function() {
839
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
840
+ };
841
+
842
+
843
+ /**
844
+ * @param {string} value
845
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
846
+ */
847
+ proto.sport.LaunchBetbyRequest.prototype.setLanguage = function(value) {
848
+ return jspb.Message.setField(this, 3, value);
849
+ };
850
+
851
+
852
+ /**
853
+ * Clears the field making it undefined.
854
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
855
+ */
856
+ proto.sport.LaunchBetbyRequest.prototype.clearLanguage = function() {
857
+ return jspb.Message.setField(this, 3, undefined);
858
+ };
859
+
860
+
861
+ /**
862
+ * Returns whether this field is set.
863
+ * @return {boolean}
864
+ */
865
+ proto.sport.LaunchBetbyRequest.prototype.hasLanguage = function() {
866
+ return jspb.Message.getField(this, 3) != null;
867
+ };
868
+
869
+
870
+ /**
871
+ * optional string return_url = 4;
872
+ * @return {string}
873
+ */
874
+ proto.sport.LaunchBetbyRequest.prototype.getReturnUrl = function() {
875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
876
+ };
877
+
878
+
879
+ /**
880
+ * @param {string} value
881
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
882
+ */
883
+ proto.sport.LaunchBetbyRequest.prototype.setReturnUrl = function(value) {
884
+ return jspb.Message.setField(this, 4, value);
885
+ };
886
+
887
+
888
+ /**
889
+ * Clears the field making it undefined.
890
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
891
+ */
892
+ proto.sport.LaunchBetbyRequest.prototype.clearReturnUrl = function() {
893
+ return jspb.Message.setField(this, 4, undefined);
894
+ };
895
+
896
+
897
+ /**
898
+ * Returns whether this field is set.
899
+ * @return {boolean}
900
+ */
901
+ proto.sport.LaunchBetbyRequest.prototype.hasReturnUrl = function() {
902
+ return jspb.Message.getField(this, 4) != null;
903
+ };
904
+
905
+
906
+ /**
907
+ * optional string client_ip = 5;
908
+ * @return {string}
909
+ */
910
+ proto.sport.LaunchBetbyRequest.prototype.getClientIp = function() {
911
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
912
+ };
913
+
914
+
915
+ /**
916
+ * @param {string} value
917
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
918
+ */
919
+ proto.sport.LaunchBetbyRequest.prototype.setClientIp = function(value) {
920
+ return jspb.Message.setField(this, 5, value);
921
+ };
922
+
923
+
924
+ /**
925
+ * Clears the field making it undefined.
926
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
927
+ */
928
+ proto.sport.LaunchBetbyRequest.prototype.clearClientIp = function() {
929
+ return jspb.Message.setField(this, 5, undefined);
930
+ };
931
+
932
+
933
+ /**
934
+ * Returns whether this field is set.
935
+ * @return {boolean}
936
+ */
937
+ proto.sport.LaunchBetbyRequest.prototype.hasClientIp = function() {
938
+ return jspb.Message.getField(this, 5) != null;
939
+ };
940
+
941
+
942
+
943
+
944
+
945
+ if (jspb.Message.GENERATE_TO_OBJECT) {
946
+ /**
947
+ * Creates an object representation of this proto.
948
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
949
+ * Optional fields that are not set will be set to undefined.
950
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
951
+ * For the list of reserved names please see:
952
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
953
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
954
+ * JSPB instance for transitional soy proto support:
955
+ * http://goto/soy-param-migration
956
+ * @return {!Object}
957
+ */
958
+ proto.sport.LaunchBetbyResponse.prototype.toObject = function(opt_includeInstance) {
959
+ return proto.sport.LaunchBetbyResponse.toObject(opt_includeInstance, this);
960
+ };
961
+
962
+
963
+ /**
964
+ * Static version of the {@see toObject} method.
965
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
966
+ * the JSPB instance for transitional soy proto support:
967
+ * http://goto/soy-param-migration
968
+ * @param {!proto.sport.LaunchBetbyResponse} msg The msg instance to transform.
969
+ * @return {!Object}
970
+ * @suppress {unusedLocalVariables} f is only used for nested messages
971
+ */
972
+ proto.sport.LaunchBetbyResponse.toObject = function(includeInstance, msg) {
973
+ var f, obj = {
974
+ html: jspb.Message.getFieldWithDefault(msg, 1, ""),
975
+ mode: jspb.Message.getFieldWithDefault(msg, 2, ""),
976
+ sessionId: jspb.Message.getFieldWithDefault(msg, 3, "")
977
+ };
978
+
979
+ if (includeInstance) {
980
+ obj.$jspbMessageInstance = msg;
981
+ }
982
+ return obj;
983
+ };
984
+ }
985
+
986
+
987
+ /**
988
+ * Deserializes binary data (in protobuf wire format).
989
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
990
+ * @return {!proto.sport.LaunchBetbyResponse}
991
+ */
992
+ proto.sport.LaunchBetbyResponse.deserializeBinary = function(bytes) {
993
+ var reader = new jspb.BinaryReader(bytes);
994
+ var msg = new proto.sport.LaunchBetbyResponse;
995
+ return proto.sport.LaunchBetbyResponse.deserializeBinaryFromReader(msg, reader);
996
+ };
997
+
998
+
999
+ /**
1000
+ * Deserializes binary data (in protobuf wire format) from the
1001
+ * given reader into the given message object.
1002
+ * @param {!proto.sport.LaunchBetbyResponse} msg The message object to deserialize into.
1003
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1004
+ * @return {!proto.sport.LaunchBetbyResponse}
1005
+ */
1006
+ proto.sport.LaunchBetbyResponse.deserializeBinaryFromReader = function(msg, reader) {
1007
+ while (reader.nextField()) {
1008
+ if (reader.isEndGroup()) {
1009
+ break;
1010
+ }
1011
+ var field = reader.getFieldNumber();
1012
+ switch (field) {
1013
+ case 1:
1014
+ var value = /** @type {string} */ (reader.readString());
1015
+ msg.setHtml(value);
1016
+ break;
1017
+ case 2:
1018
+ var value = /** @type {string} */ (reader.readString());
1019
+ msg.setMode(value);
1020
+ break;
1021
+ case 3:
1022
+ var value = /** @type {string} */ (reader.readString());
1023
+ msg.setSessionId(value);
1024
+ break;
1025
+ default:
1026
+ reader.skipField();
1027
+ break;
1028
+ }
1029
+ }
1030
+ return msg;
1031
+ };
1032
+
1033
+
1034
+ /**
1035
+ * Serializes the message to binary data (in protobuf wire format).
1036
+ * @return {!Uint8Array}
1037
+ */
1038
+ proto.sport.LaunchBetbyResponse.prototype.serializeBinary = function() {
1039
+ var writer = new jspb.BinaryWriter();
1040
+ proto.sport.LaunchBetbyResponse.serializeBinaryToWriter(this, writer);
1041
+ return writer.getResultBuffer();
1042
+ };
1043
+
1044
+
1045
+ /**
1046
+ * Serializes the given message to binary data (in protobuf wire
1047
+ * format), writing to the given BinaryWriter.
1048
+ * @param {!proto.sport.LaunchBetbyResponse} message
1049
+ * @param {!jspb.BinaryWriter} writer
1050
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1051
+ */
1052
+ proto.sport.LaunchBetbyResponse.serializeBinaryToWriter = function(message, writer) {
1053
+ var f = undefined;
1054
+ f = message.getHtml();
1055
+ if (f.length > 0) {
1056
+ writer.writeString(
1057
+ 1,
1058
+ f
1059
+ );
1060
+ }
1061
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1062
+ if (f != null) {
1063
+ writer.writeString(
1064
+ 2,
1065
+ f
1066
+ );
1067
+ }
1068
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1069
+ if (f != null) {
1070
+ writer.writeString(
1071
+ 3,
1072
+ f
1073
+ );
1074
+ }
1075
+ };
1076
+
1077
+
1078
+ /**
1079
+ * optional string html = 1;
1080
+ * @return {string}
1081
+ */
1082
+ proto.sport.LaunchBetbyResponse.prototype.getHtml = function() {
1083
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1084
+ };
1085
+
1086
+
1087
+ /**
1088
+ * @param {string} value
1089
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1090
+ */
1091
+ proto.sport.LaunchBetbyResponse.prototype.setHtml = function(value) {
1092
+ return jspb.Message.setProto3StringField(this, 1, value);
1093
+ };
1094
+
1095
+
1096
+ /**
1097
+ * optional string mode = 2;
1098
+ * @return {string}
1099
+ */
1100
+ proto.sport.LaunchBetbyResponse.prototype.getMode = function() {
1101
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1102
+ };
1103
+
1104
+
1105
+ /**
1106
+ * @param {string} value
1107
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1108
+ */
1109
+ proto.sport.LaunchBetbyResponse.prototype.setMode = function(value) {
1110
+ return jspb.Message.setField(this, 2, value);
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * Clears the field making it undefined.
1116
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1117
+ */
1118
+ proto.sport.LaunchBetbyResponse.prototype.clearMode = function() {
1119
+ return jspb.Message.setField(this, 2, undefined);
1120
+ };
1121
+
1122
+
1123
+ /**
1124
+ * Returns whether this field is set.
1125
+ * @return {boolean}
1126
+ */
1127
+ proto.sport.LaunchBetbyResponse.prototype.hasMode = function() {
1128
+ return jspb.Message.getField(this, 2) != null;
1129
+ };
1130
+
1131
+
1132
+ /**
1133
+ * optional string session_id = 3;
1134
+ * @return {string}
1135
+ */
1136
+ proto.sport.LaunchBetbyResponse.prototype.getSessionId = function() {
1137
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1138
+ };
1139
+
1140
+
1141
+ /**
1142
+ * @param {string} value
1143
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1144
+ */
1145
+ proto.sport.LaunchBetbyResponse.prototype.setSessionId = function(value) {
1146
+ return jspb.Message.setField(this, 3, value);
1147
+ };
1148
+
1149
+
1150
+ /**
1151
+ * Clears the field making it undefined.
1152
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1153
+ */
1154
+ proto.sport.LaunchBetbyResponse.prototype.clearSessionId = function() {
1155
+ return jspb.Message.setField(this, 3, undefined);
1156
+ };
1157
+
1158
+
1159
+ /**
1160
+ * Returns whether this field is set.
1161
+ * @return {boolean}
1162
+ */
1163
+ proto.sport.LaunchBetbyResponse.prototype.hasSessionId = function() {
1164
+ return jspb.Message.getField(this, 3) != null;
1165
+ };
1166
+
1167
+
1168
+ goog.object.extend(exports, proto.sport);
@@ -15,4 +15,5 @@ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cashback --grpc_out
15
15
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:promocode --grpc_out=grpc_js:promocode --proto_path=./promocode ./promocode/*.proto &&
16
16
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:tournament --grpc_out=grpc_js:tournament --proto_path=./tournament ./tournament/*.proto &&
17
17
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:analytic --grpc_out=grpc_js:analytic --proto_path=./analytic ./analytic/*.proto &&
18
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:scheduler --grpc_out=grpc_js:scheduler --proto_path=./scheduler ./scheduler/*.proto
18
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:scheduler --grpc_out=grpc_js:scheduler --proto_path=./scheduler ./scheduler/*.proto &&
19
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:sport --grpc_out=grpc_js:sport --proto_path=./sport ./sport/*.proto