protobuf-platform 1.0.82 → 1.0.84

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 ADDED
@@ -0,0 +1,10 @@
1
+ syntax = "proto3";
2
+
3
+ package bet;
4
+
5
+ service Bet {
6
+ rpc checkConnection(PingRequest) returns (PongResponse);
7
+ }
8
+
9
+ message PingRequest { string ping = 1; }
10
+ message PongResponse { string pong = 1; }
@@ -0,0 +1,44 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var bet_pb = require('./bet_pb.js');
6
+
7
+ function serialize_bet_PingRequest(arg) {
8
+ if (!(arg instanceof bet_pb.PingRequest)) {
9
+ throw new Error('Expected argument of type bet.PingRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_bet_PingRequest(buffer_arg) {
15
+ return bet_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_bet_PongResponse(arg) {
19
+ if (!(arg instanceof bet_pb.PongResponse)) {
20
+ throw new Error('Expected argument of type bet.PongResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_bet_PongResponse(buffer_arg) {
26
+ return bet_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+
30
+ var BetService = exports.BetService = {
31
+ checkConnection: {
32
+ path: '/bet.Bet/checkConnection',
33
+ requestStream: false,
34
+ responseStream: false,
35
+ requestType: bet_pb.PingRequest,
36
+ responseType: bet_pb.PongResponse,
37
+ requestSerialize: serialize_bet_PingRequest,
38
+ requestDeserialize: deserialize_bet_PingRequest,
39
+ responseSerialize: serialize_bet_PongResponse,
40
+ responseDeserialize: deserialize_bet_PongResponse,
41
+ },
42
+ };
43
+
44
+ exports.BetClient = grpc.makeGenericClientConstructor(BetService);
package/bet/bet_pb.js ADDED
@@ -0,0 +1,328 @@
1
+ // source: bet.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.bet.PingRequest', null, global);
25
+ goog.exportSymbol('proto.bet.PongResponse', null, global);
26
+ /**
27
+ * Generated by JsPbCodeGenerator.
28
+ * @param {Array=} opt_data Optional initial data array, typically from a
29
+ * server response, or constructed directly in Javascript. The array is used
30
+ * in place and becomes part of the constructed object. It is not cloned.
31
+ * If no data is provided, the constructed object will be empty, but still
32
+ * valid.
33
+ * @extends {jspb.Message}
34
+ * @constructor
35
+ */
36
+ proto.bet.PingRequest = function(opt_data) {
37
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
38
+ };
39
+ goog.inherits(proto.bet.PingRequest, jspb.Message);
40
+ if (goog.DEBUG && !COMPILED) {
41
+ /**
42
+ * @public
43
+ * @override
44
+ */
45
+ proto.bet.PingRequest.displayName = 'proto.bet.PingRequest';
46
+ }
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.bet.PongResponse = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.bet.PongResponse, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.bet.PongResponse.displayName = 'proto.bet.PongResponse';
67
+ }
68
+
69
+
70
+
71
+ if (jspb.Message.GENERATE_TO_OBJECT) {
72
+ /**
73
+ * Creates an object representation of this proto.
74
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
75
+ * Optional fields that are not set will be set to undefined.
76
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77
+ * For the list of reserved names please see:
78
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
80
+ * JSPB instance for transitional soy proto support:
81
+ * http://goto/soy-param-migration
82
+ * @return {!Object}
83
+ */
84
+ proto.bet.PingRequest.prototype.toObject = function(opt_includeInstance) {
85
+ return proto.bet.PingRequest.toObject(opt_includeInstance, this);
86
+ };
87
+
88
+
89
+ /**
90
+ * Static version of the {@see toObject} method.
91
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
92
+ * the JSPB instance for transitional soy proto support:
93
+ * http://goto/soy-param-migration
94
+ * @param {!proto.bet.PingRequest} msg The msg instance to transform.
95
+ * @return {!Object}
96
+ * @suppress {unusedLocalVariables} f is only used for nested messages
97
+ */
98
+ proto.bet.PingRequest.toObject = function(includeInstance, msg) {
99
+ var f, obj = {
100
+ ping: jspb.Message.getFieldWithDefault(msg, 1, "")
101
+ };
102
+
103
+ if (includeInstance) {
104
+ obj.$jspbMessageInstance = msg;
105
+ }
106
+ return obj;
107
+ };
108
+ }
109
+
110
+
111
+ /**
112
+ * Deserializes binary data (in protobuf wire format).
113
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
114
+ * @return {!proto.bet.PingRequest}
115
+ */
116
+ proto.bet.PingRequest.deserializeBinary = function(bytes) {
117
+ var reader = new jspb.BinaryReader(bytes);
118
+ var msg = new proto.bet.PingRequest;
119
+ return proto.bet.PingRequest.deserializeBinaryFromReader(msg, reader);
120
+ };
121
+
122
+
123
+ /**
124
+ * Deserializes binary data (in protobuf wire format) from the
125
+ * given reader into the given message object.
126
+ * @param {!proto.bet.PingRequest} msg The message object to deserialize into.
127
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
128
+ * @return {!proto.bet.PingRequest}
129
+ */
130
+ proto.bet.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
131
+ while (reader.nextField()) {
132
+ if (reader.isEndGroup()) {
133
+ break;
134
+ }
135
+ var field = reader.getFieldNumber();
136
+ switch (field) {
137
+ case 1:
138
+ var value = /** @type {string} */ (reader.readString());
139
+ msg.setPing(value);
140
+ break;
141
+ default:
142
+ reader.skipField();
143
+ break;
144
+ }
145
+ }
146
+ return msg;
147
+ };
148
+
149
+
150
+ /**
151
+ * Serializes the message to binary data (in protobuf wire format).
152
+ * @return {!Uint8Array}
153
+ */
154
+ proto.bet.PingRequest.prototype.serializeBinary = function() {
155
+ var writer = new jspb.BinaryWriter();
156
+ proto.bet.PingRequest.serializeBinaryToWriter(this, writer);
157
+ return writer.getResultBuffer();
158
+ };
159
+
160
+
161
+ /**
162
+ * Serializes the given message to binary data (in protobuf wire
163
+ * format), writing to the given BinaryWriter.
164
+ * @param {!proto.bet.PingRequest} message
165
+ * @param {!jspb.BinaryWriter} writer
166
+ * @suppress {unusedLocalVariables} f is only used for nested messages
167
+ */
168
+ proto.bet.PingRequest.serializeBinaryToWriter = function(message, writer) {
169
+ var f = undefined;
170
+ f = message.getPing();
171
+ if (f.length > 0) {
172
+ writer.writeString(
173
+ 1,
174
+ f
175
+ );
176
+ }
177
+ };
178
+
179
+
180
+ /**
181
+ * optional string ping = 1;
182
+ * @return {string}
183
+ */
184
+ proto.bet.PingRequest.prototype.getPing = function() {
185
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
186
+ };
187
+
188
+
189
+ /**
190
+ * @param {string} value
191
+ * @return {!proto.bet.PingRequest} returns this
192
+ */
193
+ proto.bet.PingRequest.prototype.setPing = function(value) {
194
+ return jspb.Message.setProto3StringField(this, 1, value);
195
+ };
196
+
197
+
198
+
199
+
200
+
201
+ if (jspb.Message.GENERATE_TO_OBJECT) {
202
+ /**
203
+ * Creates an object representation of this proto.
204
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
205
+ * Optional fields that are not set will be set to undefined.
206
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
207
+ * For the list of reserved names please see:
208
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
209
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
210
+ * JSPB instance for transitional soy proto support:
211
+ * http://goto/soy-param-migration
212
+ * @return {!Object}
213
+ */
214
+ proto.bet.PongResponse.prototype.toObject = function(opt_includeInstance) {
215
+ return proto.bet.PongResponse.toObject(opt_includeInstance, this);
216
+ };
217
+
218
+
219
+ /**
220
+ * Static version of the {@see toObject} method.
221
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
222
+ * the JSPB instance for transitional soy proto support:
223
+ * http://goto/soy-param-migration
224
+ * @param {!proto.bet.PongResponse} msg The msg instance to transform.
225
+ * @return {!Object}
226
+ * @suppress {unusedLocalVariables} f is only used for nested messages
227
+ */
228
+ proto.bet.PongResponse.toObject = function(includeInstance, msg) {
229
+ var f, obj = {
230
+ pong: jspb.Message.getFieldWithDefault(msg, 1, "")
231
+ };
232
+
233
+ if (includeInstance) {
234
+ obj.$jspbMessageInstance = msg;
235
+ }
236
+ return obj;
237
+ };
238
+ }
239
+
240
+
241
+ /**
242
+ * Deserializes binary data (in protobuf wire format).
243
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
244
+ * @return {!proto.bet.PongResponse}
245
+ */
246
+ proto.bet.PongResponse.deserializeBinary = function(bytes) {
247
+ var reader = new jspb.BinaryReader(bytes);
248
+ var msg = new proto.bet.PongResponse;
249
+ return proto.bet.PongResponse.deserializeBinaryFromReader(msg, reader);
250
+ };
251
+
252
+
253
+ /**
254
+ * Deserializes binary data (in protobuf wire format) from the
255
+ * given reader into the given message object.
256
+ * @param {!proto.bet.PongResponse} msg The message object to deserialize into.
257
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
258
+ * @return {!proto.bet.PongResponse}
259
+ */
260
+ proto.bet.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
261
+ while (reader.nextField()) {
262
+ if (reader.isEndGroup()) {
263
+ break;
264
+ }
265
+ var field = reader.getFieldNumber();
266
+ switch (field) {
267
+ case 1:
268
+ var value = /** @type {string} */ (reader.readString());
269
+ msg.setPong(value);
270
+ break;
271
+ default:
272
+ reader.skipField();
273
+ break;
274
+ }
275
+ }
276
+ return msg;
277
+ };
278
+
279
+
280
+ /**
281
+ * Serializes the message to binary data (in protobuf wire format).
282
+ * @return {!Uint8Array}
283
+ */
284
+ proto.bet.PongResponse.prototype.serializeBinary = function() {
285
+ var writer = new jspb.BinaryWriter();
286
+ proto.bet.PongResponse.serializeBinaryToWriter(this, writer);
287
+ return writer.getResultBuffer();
288
+ };
289
+
290
+
291
+ /**
292
+ * Serializes the given message to binary data (in protobuf wire
293
+ * format), writing to the given BinaryWriter.
294
+ * @param {!proto.bet.PongResponse} message
295
+ * @param {!jspb.BinaryWriter} writer
296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
297
+ */
298
+ proto.bet.PongResponse.serializeBinaryToWriter = function(message, writer) {
299
+ var f = undefined;
300
+ f = message.getPong();
301
+ if (f.length > 0) {
302
+ writer.writeString(
303
+ 1,
304
+ f
305
+ );
306
+ }
307
+ };
308
+
309
+
310
+ /**
311
+ * optional string pong = 1;
312
+ * @return {string}
313
+ */
314
+ proto.bet.PongResponse.prototype.getPong = function() {
315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
316
+ };
317
+
318
+
319
+ /**
320
+ * @param {string} value
321
+ * @return {!proto.bet.PongResponse} returns this
322
+ */
323
+ proto.bet.PongResponse.prototype.setPong = function(value) {
324
+ return jspb.Message.setProto3StringField(this, 1, value);
325
+ };
326
+
327
+
328
+ goog.object.extend(exports, proto.bet);
package/game/game.proto CHANGED
@@ -48,6 +48,7 @@ service Game {
48
48
  //Vendor
49
49
  rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
50
50
  rpc getIntegratorSettings(IntegratorSettingsRequest) returns (IntegratorSettingsResponse);
51
+ rpc vendorSelfValidation(IntegratorSelfValidationRequest) returns (IntegratorSelfValidationResponse);
51
52
  }
52
53
 
53
54
  message PingRequest { string ping = 1; }
@@ -245,6 +246,8 @@ message ParseGamesRequest { string vendor = 1; }
245
246
  message ParseGamesResponse { string data = 1; }
246
247
  message IntegratorSettingsRequest { string route = 1; }
247
248
  message IntegratorSettingsResponse { string data = 1; }
249
+ message IntegratorSelfValidationRequest { string vendor = 1; }
250
+ message IntegratorSelfValidationResponse { string data = 1; }
248
251
  //Game CRUD
249
252
  message GameItem {
250
253
  optional int32 id = 1;
@@ -268,6 +268,28 @@ function deserialize_game_InitGameSessionResponse(buffer_arg) {
268
268
  return game_pb.InitGameSessionResponse.deserializeBinary(new Uint8Array(buffer_arg));
269
269
  }
270
270
 
271
+ function serialize_game_IntegratorSelfValidationRequest(arg) {
272
+ if (!(arg instanceof game_pb.IntegratorSelfValidationRequest)) {
273
+ throw new Error('Expected argument of type game.IntegratorSelfValidationRequest');
274
+ }
275
+ return Buffer.from(arg.serializeBinary());
276
+ }
277
+
278
+ function deserialize_game_IntegratorSelfValidationRequest(buffer_arg) {
279
+ return game_pb.IntegratorSelfValidationRequest.deserializeBinary(new Uint8Array(buffer_arg));
280
+ }
281
+
282
+ function serialize_game_IntegratorSelfValidationResponse(arg) {
283
+ if (!(arg instanceof game_pb.IntegratorSelfValidationResponse)) {
284
+ throw new Error('Expected argument of type game.IntegratorSelfValidationResponse');
285
+ }
286
+ return Buffer.from(arg.serializeBinary());
287
+ }
288
+
289
+ function deserialize_game_IntegratorSelfValidationResponse(buffer_arg) {
290
+ return game_pb.IntegratorSelfValidationResponse.deserializeBinary(new Uint8Array(buffer_arg));
291
+ }
292
+
271
293
  function serialize_game_IntegratorSettingsRequest(arg) {
272
294
  if (!(arg instanceof game_pb.IntegratorSettingsRequest)) {
273
295
  throw new Error('Expected argument of type game.IntegratorSettingsRequest');
@@ -925,6 +947,17 @@ processedVendorActionCallback: {
925
947
  responseSerialize: serialize_game_IntegratorSettingsResponse,
926
948
  responseDeserialize: deserialize_game_IntegratorSettingsResponse,
927
949
  },
950
+ vendorSelfValidation: {
951
+ path: '/game.Game/vendorSelfValidation',
952
+ requestStream: false,
953
+ responseStream: false,
954
+ requestType: game_pb.IntegratorSelfValidationRequest,
955
+ responseType: game_pb.IntegratorSelfValidationResponse,
956
+ requestSerialize: serialize_game_IntegratorSelfValidationRequest,
957
+ requestDeserialize: deserialize_game_IntegratorSelfValidationRequest,
958
+ responseSerialize: serialize_game_IntegratorSelfValidationResponse,
959
+ responseDeserialize: deserialize_game_IntegratorSelfValidationResponse,
960
+ },
928
961
  };
929
962
 
930
963
  exports.GameClient = grpc.makeGenericClientConstructor(GameService);
package/game/game_pb.js CHANGED
@@ -55,6 +55,8 @@ goog.exportSymbol('proto.game.GetTagRequest', null, global);
55
55
  goog.exportSymbol('proto.game.InitDemoGameSessionRequest', null, global);
56
56
  goog.exportSymbol('proto.game.InitGameSessionRequest', null, global);
57
57
  goog.exportSymbol('proto.game.InitGameSessionResponse', null, global);
58
+ goog.exportSymbol('proto.game.IntegratorSelfValidationRequest', null, global);
59
+ goog.exportSymbol('proto.game.IntegratorSelfValidationResponse', null, global);
58
60
  goog.exportSymbol('proto.game.IntegratorSettingsRequest', null, global);
59
61
  goog.exportSymbol('proto.game.IntegratorSettingsResponse', null, global);
60
62
  goog.exportSymbol('proto.game.PaginationRequest', null, global);
@@ -922,6 +924,48 @@ if (goog.DEBUG && !COMPILED) {
922
924
  */
923
925
  proto.game.IntegratorSettingsResponse.displayName = 'proto.game.IntegratorSettingsResponse';
924
926
  }
927
+ /**
928
+ * Generated by JsPbCodeGenerator.
929
+ * @param {Array=} opt_data Optional initial data array, typically from a
930
+ * server response, or constructed directly in Javascript. The array is used
931
+ * in place and becomes part of the constructed object. It is not cloned.
932
+ * If no data is provided, the constructed object will be empty, but still
933
+ * valid.
934
+ * @extends {jspb.Message}
935
+ * @constructor
936
+ */
937
+ proto.game.IntegratorSelfValidationRequest = function(opt_data) {
938
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
939
+ };
940
+ goog.inherits(proto.game.IntegratorSelfValidationRequest, jspb.Message);
941
+ if (goog.DEBUG && !COMPILED) {
942
+ /**
943
+ * @public
944
+ * @override
945
+ */
946
+ proto.game.IntegratorSelfValidationRequest.displayName = 'proto.game.IntegratorSelfValidationRequest';
947
+ }
948
+ /**
949
+ * Generated by JsPbCodeGenerator.
950
+ * @param {Array=} opt_data Optional initial data array, typically from a
951
+ * server response, or constructed directly in Javascript. The array is used
952
+ * in place and becomes part of the constructed object. It is not cloned.
953
+ * If no data is provided, the constructed object will be empty, but still
954
+ * valid.
955
+ * @extends {jspb.Message}
956
+ * @constructor
957
+ */
958
+ proto.game.IntegratorSelfValidationResponse = function(opt_data) {
959
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
960
+ };
961
+ goog.inherits(proto.game.IntegratorSelfValidationResponse, jspb.Message);
962
+ if (goog.DEBUG && !COMPILED) {
963
+ /**
964
+ * @public
965
+ * @override
966
+ */
967
+ proto.game.IntegratorSelfValidationResponse.displayName = 'proto.game.IntegratorSelfValidationResponse';
968
+ }
925
969
  /**
926
970
  * Generated by JsPbCodeGenerator.
927
971
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -10345,6 +10389,266 @@ proto.game.IntegratorSettingsResponse.prototype.setData = function(value) {
10345
10389
 
10346
10390
 
10347
10391
 
10392
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10393
+ /**
10394
+ * Creates an object representation of this proto.
10395
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10396
+ * Optional fields that are not set will be set to undefined.
10397
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10398
+ * For the list of reserved names please see:
10399
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10400
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10401
+ * JSPB instance for transitional soy proto support:
10402
+ * http://goto/soy-param-migration
10403
+ * @return {!Object}
10404
+ */
10405
+ proto.game.IntegratorSelfValidationRequest.prototype.toObject = function(opt_includeInstance) {
10406
+ return proto.game.IntegratorSelfValidationRequest.toObject(opt_includeInstance, this);
10407
+ };
10408
+
10409
+
10410
+ /**
10411
+ * Static version of the {@see toObject} method.
10412
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10413
+ * the JSPB instance for transitional soy proto support:
10414
+ * http://goto/soy-param-migration
10415
+ * @param {!proto.game.IntegratorSelfValidationRequest} msg The msg instance to transform.
10416
+ * @return {!Object}
10417
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10418
+ */
10419
+ proto.game.IntegratorSelfValidationRequest.toObject = function(includeInstance, msg) {
10420
+ var f, obj = {
10421
+ vendor: jspb.Message.getFieldWithDefault(msg, 1, "")
10422
+ };
10423
+
10424
+ if (includeInstance) {
10425
+ obj.$jspbMessageInstance = msg;
10426
+ }
10427
+ return obj;
10428
+ };
10429
+ }
10430
+
10431
+
10432
+ /**
10433
+ * Deserializes binary data (in protobuf wire format).
10434
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10435
+ * @return {!proto.game.IntegratorSelfValidationRequest}
10436
+ */
10437
+ proto.game.IntegratorSelfValidationRequest.deserializeBinary = function(bytes) {
10438
+ var reader = new jspb.BinaryReader(bytes);
10439
+ var msg = new proto.game.IntegratorSelfValidationRequest;
10440
+ return proto.game.IntegratorSelfValidationRequest.deserializeBinaryFromReader(msg, reader);
10441
+ };
10442
+
10443
+
10444
+ /**
10445
+ * Deserializes binary data (in protobuf wire format) from the
10446
+ * given reader into the given message object.
10447
+ * @param {!proto.game.IntegratorSelfValidationRequest} msg The message object to deserialize into.
10448
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10449
+ * @return {!proto.game.IntegratorSelfValidationRequest}
10450
+ */
10451
+ proto.game.IntegratorSelfValidationRequest.deserializeBinaryFromReader = function(msg, reader) {
10452
+ while (reader.nextField()) {
10453
+ if (reader.isEndGroup()) {
10454
+ break;
10455
+ }
10456
+ var field = reader.getFieldNumber();
10457
+ switch (field) {
10458
+ case 1:
10459
+ var value = /** @type {string} */ (reader.readString());
10460
+ msg.setVendor(value);
10461
+ break;
10462
+ default:
10463
+ reader.skipField();
10464
+ break;
10465
+ }
10466
+ }
10467
+ return msg;
10468
+ };
10469
+
10470
+
10471
+ /**
10472
+ * Serializes the message to binary data (in protobuf wire format).
10473
+ * @return {!Uint8Array}
10474
+ */
10475
+ proto.game.IntegratorSelfValidationRequest.prototype.serializeBinary = function() {
10476
+ var writer = new jspb.BinaryWriter();
10477
+ proto.game.IntegratorSelfValidationRequest.serializeBinaryToWriter(this, writer);
10478
+ return writer.getResultBuffer();
10479
+ };
10480
+
10481
+
10482
+ /**
10483
+ * Serializes the given message to binary data (in protobuf wire
10484
+ * format), writing to the given BinaryWriter.
10485
+ * @param {!proto.game.IntegratorSelfValidationRequest} message
10486
+ * @param {!jspb.BinaryWriter} writer
10487
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10488
+ */
10489
+ proto.game.IntegratorSelfValidationRequest.serializeBinaryToWriter = function(message, writer) {
10490
+ var f = undefined;
10491
+ f = message.getVendor();
10492
+ if (f.length > 0) {
10493
+ writer.writeString(
10494
+ 1,
10495
+ f
10496
+ );
10497
+ }
10498
+ };
10499
+
10500
+
10501
+ /**
10502
+ * optional string vendor = 1;
10503
+ * @return {string}
10504
+ */
10505
+ proto.game.IntegratorSelfValidationRequest.prototype.getVendor = function() {
10506
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10507
+ };
10508
+
10509
+
10510
+ /**
10511
+ * @param {string} value
10512
+ * @return {!proto.game.IntegratorSelfValidationRequest} returns this
10513
+ */
10514
+ proto.game.IntegratorSelfValidationRequest.prototype.setVendor = function(value) {
10515
+ return jspb.Message.setProto3StringField(this, 1, value);
10516
+ };
10517
+
10518
+
10519
+
10520
+
10521
+
10522
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10523
+ /**
10524
+ * Creates an object representation of this proto.
10525
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10526
+ * Optional fields that are not set will be set to undefined.
10527
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10528
+ * For the list of reserved names please see:
10529
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10530
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10531
+ * JSPB instance for transitional soy proto support:
10532
+ * http://goto/soy-param-migration
10533
+ * @return {!Object}
10534
+ */
10535
+ proto.game.IntegratorSelfValidationResponse.prototype.toObject = function(opt_includeInstance) {
10536
+ return proto.game.IntegratorSelfValidationResponse.toObject(opt_includeInstance, this);
10537
+ };
10538
+
10539
+
10540
+ /**
10541
+ * Static version of the {@see toObject} method.
10542
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10543
+ * the JSPB instance for transitional soy proto support:
10544
+ * http://goto/soy-param-migration
10545
+ * @param {!proto.game.IntegratorSelfValidationResponse} msg The msg instance to transform.
10546
+ * @return {!Object}
10547
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10548
+ */
10549
+ proto.game.IntegratorSelfValidationResponse.toObject = function(includeInstance, msg) {
10550
+ var f, obj = {
10551
+ data: jspb.Message.getFieldWithDefault(msg, 1, "")
10552
+ };
10553
+
10554
+ if (includeInstance) {
10555
+ obj.$jspbMessageInstance = msg;
10556
+ }
10557
+ return obj;
10558
+ };
10559
+ }
10560
+
10561
+
10562
+ /**
10563
+ * Deserializes binary data (in protobuf wire format).
10564
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10565
+ * @return {!proto.game.IntegratorSelfValidationResponse}
10566
+ */
10567
+ proto.game.IntegratorSelfValidationResponse.deserializeBinary = function(bytes) {
10568
+ var reader = new jspb.BinaryReader(bytes);
10569
+ var msg = new proto.game.IntegratorSelfValidationResponse;
10570
+ return proto.game.IntegratorSelfValidationResponse.deserializeBinaryFromReader(msg, reader);
10571
+ };
10572
+
10573
+
10574
+ /**
10575
+ * Deserializes binary data (in protobuf wire format) from the
10576
+ * given reader into the given message object.
10577
+ * @param {!proto.game.IntegratorSelfValidationResponse} msg The message object to deserialize into.
10578
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10579
+ * @return {!proto.game.IntegratorSelfValidationResponse}
10580
+ */
10581
+ proto.game.IntegratorSelfValidationResponse.deserializeBinaryFromReader = function(msg, reader) {
10582
+ while (reader.nextField()) {
10583
+ if (reader.isEndGroup()) {
10584
+ break;
10585
+ }
10586
+ var field = reader.getFieldNumber();
10587
+ switch (field) {
10588
+ case 1:
10589
+ var value = /** @type {string} */ (reader.readString());
10590
+ msg.setData(value);
10591
+ break;
10592
+ default:
10593
+ reader.skipField();
10594
+ break;
10595
+ }
10596
+ }
10597
+ return msg;
10598
+ };
10599
+
10600
+
10601
+ /**
10602
+ * Serializes the message to binary data (in protobuf wire format).
10603
+ * @return {!Uint8Array}
10604
+ */
10605
+ proto.game.IntegratorSelfValidationResponse.prototype.serializeBinary = function() {
10606
+ var writer = new jspb.BinaryWriter();
10607
+ proto.game.IntegratorSelfValidationResponse.serializeBinaryToWriter(this, writer);
10608
+ return writer.getResultBuffer();
10609
+ };
10610
+
10611
+
10612
+ /**
10613
+ * Serializes the given message to binary data (in protobuf wire
10614
+ * format), writing to the given BinaryWriter.
10615
+ * @param {!proto.game.IntegratorSelfValidationResponse} message
10616
+ * @param {!jspb.BinaryWriter} writer
10617
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10618
+ */
10619
+ proto.game.IntegratorSelfValidationResponse.serializeBinaryToWriter = function(message, writer) {
10620
+ var f = undefined;
10621
+ f = message.getData();
10622
+ if (f.length > 0) {
10623
+ writer.writeString(
10624
+ 1,
10625
+ f
10626
+ );
10627
+ }
10628
+ };
10629
+
10630
+
10631
+ /**
10632
+ * optional string data = 1;
10633
+ * @return {string}
10634
+ */
10635
+ proto.game.IntegratorSelfValidationResponse.prototype.getData = function() {
10636
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10637
+ };
10638
+
10639
+
10640
+ /**
10641
+ * @param {string} value
10642
+ * @return {!proto.game.IntegratorSelfValidationResponse} returns this
10643
+ */
10644
+ proto.game.IntegratorSelfValidationResponse.prototype.setData = function(value) {
10645
+ return jspb.Message.setProto3StringField(this, 1, value);
10646
+ };
10647
+
10648
+
10649
+
10650
+
10651
+
10348
10652
  if (jspb.Message.GENERATE_TO_OBJECT) {
10349
10653
  /**
10350
10654
  * Creates an object representation of this proto.
package/index.js CHANGED
@@ -11,6 +11,8 @@ const GameService = require('./game/game_grpc_pb');
11
11
  const GameServiceMessages = require('./game/game_pb');
12
12
  const FileService = require('./file/file_grpc_pb');
13
13
  const FileServiceMessages = require('./file/file_pb');
14
+ const BetService = require('./bet/bet_grpc_pb');
15
+ const BetServiceMessages = require('./bet/bet_pb');
14
16
  module.exports = {
15
17
  gRPC: gRPC,
16
18
  maxSendMessageLength: 10388608,
@@ -36,4 +38,8 @@ module.exports = {
36
38
  service: FileService,
37
39
  messages: FileServiceMessages
38
40
  },
41
+ bet: {
42
+ service: BetService,
43
+ messages: BetServiceMessages
44
+ },
39
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,4 +4,5 @@ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:config --grpc_out=g
4
4
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:user --grpc_out=grpc_js:user --proto_path=./user ./user/*.proto &&
5
5
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:log --grpc_out=grpc_js:log --proto_path=./log ./log/*.proto &&
6
6
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:game --grpc_out=grpc_js:game --proto_path=./game ./game/*.proto &&
7
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:file --grpc_out=grpc_js:file --proto_path=./file ./file/*.proto
7
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:file --grpc_out=grpc_js:file --proto_path=./file ./file/*.proto &&
8
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:bet --grpc_out=grpc_js:bet --proto_path=./bet ./bet/*.proto