protobuf-platform 1.0.116 → 1.0.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/bonus/bonus.proto +10 -0
- package/bonus/bonus_grpc_pb.js +44 -0
- package/bonus/bonus_pb.js +328 -0
- package/game/game.proto +10 -0
- package/game/game_grpc_pb.js +34 -0
- package/game/game_pb.js +334 -0
- package/index.js +6 -0
- package/package.json +1 -1
- package/update_protobuf.sh +2 -1
@@ -0,0 +1,44 @@
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
2
|
+
|
3
|
+
'use strict';
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
5
|
+
var bonus_pb = require('./bonus_pb.js');
|
6
|
+
|
7
|
+
function serialize_bonus_PingRequest(arg) {
|
8
|
+
if (!(arg instanceof bonus_pb.PingRequest)) {
|
9
|
+
throw new Error('Expected argument of type bonus.PingRequest');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_bonus_PingRequest(buffer_arg) {
|
15
|
+
return bonus_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_bonus_PongResponse(arg) {
|
19
|
+
if (!(arg instanceof bonus_pb.PongResponse)) {
|
20
|
+
throw new Error('Expected argument of type bonus.PongResponse');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_bonus_PongResponse(buffer_arg) {
|
26
|
+
return bonus_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
var BonusService = exports.BonusService = {
|
31
|
+
checkConnection: {
|
32
|
+
path: '/bonus.Bonus/checkConnection',
|
33
|
+
requestStream: false,
|
34
|
+
responseStream: false,
|
35
|
+
requestType: bonus_pb.PingRequest,
|
36
|
+
responseType: bonus_pb.PongResponse,
|
37
|
+
requestSerialize: serialize_bonus_PingRequest,
|
38
|
+
requestDeserialize: deserialize_bonus_PingRequest,
|
39
|
+
responseSerialize: serialize_bonus_PongResponse,
|
40
|
+
responseDeserialize: deserialize_bonus_PongResponse,
|
41
|
+
},
|
42
|
+
};
|
43
|
+
|
44
|
+
exports.BonusClient = grpc.makeGenericClientConstructor(BonusService);
|
@@ -0,0 +1,328 @@
|
|
1
|
+
// source: bonus.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.bonus.PingRequest', null, global);
|
25
|
+
goog.exportSymbol('proto.bonus.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.bonus.PingRequest = function(opt_data) {
|
37
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
38
|
+
};
|
39
|
+
goog.inherits(proto.bonus.PingRequest, jspb.Message);
|
40
|
+
if (goog.DEBUG && !COMPILED) {
|
41
|
+
/**
|
42
|
+
* @public
|
43
|
+
* @override
|
44
|
+
*/
|
45
|
+
proto.bonus.PingRequest.displayName = 'proto.bonus.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.bonus.PongResponse = function(opt_data) {
|
58
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
59
|
+
};
|
60
|
+
goog.inherits(proto.bonus.PongResponse, jspb.Message);
|
61
|
+
if (goog.DEBUG && !COMPILED) {
|
62
|
+
/**
|
63
|
+
* @public
|
64
|
+
* @override
|
65
|
+
*/
|
66
|
+
proto.bonus.PongResponse.displayName = 'proto.bonus.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.bonus.PingRequest.prototype.toObject = function(opt_includeInstance) {
|
85
|
+
return proto.bonus.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.bonus.PingRequest} msg The msg instance to transform.
|
95
|
+
* @return {!Object}
|
96
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
97
|
+
*/
|
98
|
+
proto.bonus.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.bonus.PingRequest}
|
115
|
+
*/
|
116
|
+
proto.bonus.PingRequest.deserializeBinary = function(bytes) {
|
117
|
+
var reader = new jspb.BinaryReader(bytes);
|
118
|
+
var msg = new proto.bonus.PingRequest;
|
119
|
+
return proto.bonus.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.bonus.PingRequest} msg The message object to deserialize into.
|
127
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
128
|
+
* @return {!proto.bonus.PingRequest}
|
129
|
+
*/
|
130
|
+
proto.bonus.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.bonus.PingRequest.prototype.serializeBinary = function() {
|
155
|
+
var writer = new jspb.BinaryWriter();
|
156
|
+
proto.bonus.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.bonus.PingRequest} message
|
165
|
+
* @param {!jspb.BinaryWriter} writer
|
166
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
167
|
+
*/
|
168
|
+
proto.bonus.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.bonus.PingRequest.prototype.getPing = function() {
|
185
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
186
|
+
};
|
187
|
+
|
188
|
+
|
189
|
+
/**
|
190
|
+
* @param {string} value
|
191
|
+
* @return {!proto.bonus.PingRequest} returns this
|
192
|
+
*/
|
193
|
+
proto.bonus.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.bonus.PongResponse.prototype.toObject = function(opt_includeInstance) {
|
215
|
+
return proto.bonus.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.bonus.PongResponse} msg The msg instance to transform.
|
225
|
+
* @return {!Object}
|
226
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
227
|
+
*/
|
228
|
+
proto.bonus.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.bonus.PongResponse}
|
245
|
+
*/
|
246
|
+
proto.bonus.PongResponse.deserializeBinary = function(bytes) {
|
247
|
+
var reader = new jspb.BinaryReader(bytes);
|
248
|
+
var msg = new proto.bonus.PongResponse;
|
249
|
+
return proto.bonus.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.bonus.PongResponse} msg The message object to deserialize into.
|
257
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
258
|
+
* @return {!proto.bonus.PongResponse}
|
259
|
+
*/
|
260
|
+
proto.bonus.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.bonus.PongResponse.prototype.serializeBinary = function() {
|
285
|
+
var writer = new jspb.BinaryWriter();
|
286
|
+
proto.bonus.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.bonus.PongResponse} message
|
295
|
+
* @param {!jspb.BinaryWriter} writer
|
296
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
297
|
+
*/
|
298
|
+
proto.bonus.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.bonus.PongResponse.prototype.getPong = function() {
|
315
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
316
|
+
};
|
317
|
+
|
318
|
+
|
319
|
+
/**
|
320
|
+
* @param {string} value
|
321
|
+
* @return {!proto.bonus.PongResponse} returns this
|
322
|
+
*/
|
323
|
+
proto.bonus.PongResponse.prototype.setPong = function(value) {
|
324
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
325
|
+
};
|
326
|
+
|
327
|
+
|
328
|
+
goog.object.extend(exports, proto.bonus);
|
package/game/game.proto
CHANGED
@@ -49,6 +49,8 @@ service Game {
|
|
49
49
|
rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
|
50
50
|
rpc getIntegratorSettings(IntegratorSettingsRequest) returns (IntegratorSettingsResponse);
|
51
51
|
rpc vendorSelfValidation(IntegratorSelfValidationRequest) returns (IntegratorSelfValidationResponse);
|
52
|
+
//Free Spins
|
53
|
+
rpc getFreeSpinsSettings(FreeSpinSettingsRequest) returns (FreeSpinSettingsResponse);
|
52
54
|
//Cross Services
|
53
55
|
rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
|
54
56
|
rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
|
@@ -391,4 +393,12 @@ message ScopeRequest {
|
|
391
393
|
}
|
392
394
|
message ScopeResponse {
|
393
395
|
string data = 1;
|
396
|
+
}
|
397
|
+
//Free Spins
|
398
|
+
message FreeSpinSettingsRequest {
|
399
|
+
string game_uuid = 1;
|
400
|
+
string currency = 2;
|
401
|
+
}
|
402
|
+
message FreeSpinSettingsResponse {
|
403
|
+
string data = 1;
|
394
404
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -114,6 +114,28 @@ function deserialize_game_File(buffer_arg) {
|
|
114
114
|
return game_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
|
115
115
|
}
|
116
116
|
|
117
|
+
function serialize_game_FreeSpinSettingsRequest(arg) {
|
118
|
+
if (!(arg instanceof game_pb.FreeSpinSettingsRequest)) {
|
119
|
+
throw new Error('Expected argument of type game.FreeSpinSettingsRequest');
|
120
|
+
}
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
122
|
+
}
|
123
|
+
|
124
|
+
function deserialize_game_FreeSpinSettingsRequest(buffer_arg) {
|
125
|
+
return game_pb.FreeSpinSettingsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
126
|
+
}
|
127
|
+
|
128
|
+
function serialize_game_FreeSpinSettingsResponse(arg) {
|
129
|
+
if (!(arg instanceof game_pb.FreeSpinSettingsResponse)) {
|
130
|
+
throw new Error('Expected argument of type game.FreeSpinSettingsResponse');
|
131
|
+
}
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
133
|
+
}
|
134
|
+
|
135
|
+
function deserialize_game_FreeSpinSettingsResponse(buffer_arg) {
|
136
|
+
return game_pb.FreeSpinSettingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
137
|
+
}
|
138
|
+
|
117
139
|
function serialize_game_GameItemsResponse(arg) {
|
118
140
|
if (!(arg instanceof game_pb.GameItemsResponse)) {
|
119
141
|
throw new Error('Expected argument of type game.GameItemsResponse');
|
@@ -1002,6 +1024,18 @@ processedVendorActionCallback: {
|
|
1002
1024
|
responseSerialize: serialize_game_IntegratorSelfValidationResponse,
|
1003
1025
|
responseDeserialize: deserialize_game_IntegratorSelfValidationResponse,
|
1004
1026
|
},
|
1027
|
+
// Free Spins
|
1028
|
+
getFreeSpinsSettings: {
|
1029
|
+
path: '/game.Game/getFreeSpinsSettings',
|
1030
|
+
requestStream: false,
|
1031
|
+
responseStream: false,
|
1032
|
+
requestType: game_pb.FreeSpinSettingsRequest,
|
1033
|
+
responseType: game_pb.FreeSpinSettingsResponse,
|
1034
|
+
requestSerialize: serialize_game_FreeSpinSettingsRequest,
|
1035
|
+
requestDeserialize: deserialize_game_FreeSpinSettingsRequest,
|
1036
|
+
responseSerialize: serialize_game_FreeSpinSettingsResponse,
|
1037
|
+
responseDeserialize: deserialize_game_FreeSpinSettingsResponse,
|
1038
|
+
},
|
1005
1039
|
// Cross Services
|
1006
1040
|
getGamesByUuids: {
|
1007
1041
|
path: '/game.Game/getGamesByUuids',
|
package/game/game_pb.js
CHANGED
@@ -37,6 +37,8 @@ goog.exportSymbol('proto.game.CollectionRequest.RequestCase', null, global);
|
|
37
37
|
goog.exportSymbol('proto.game.CollectionResponse', null, global);
|
38
38
|
goog.exportSymbol('proto.game.CollectionStatusResponse', null, global);
|
39
39
|
goog.exportSymbol('proto.game.File', null, global);
|
40
|
+
goog.exportSymbol('proto.game.FreeSpinSettingsRequest', null, global);
|
41
|
+
goog.exportSymbol('proto.game.FreeSpinSettingsResponse', null, global);
|
40
42
|
goog.exportSymbol('proto.game.GameItem', null, global);
|
41
43
|
goog.exportSymbol('proto.game.GameItemRequest', null, global);
|
42
44
|
goog.exportSymbol('proto.game.GameItemsResponse', null, global);
|
@@ -1390,6 +1392,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
1390
1392
|
*/
|
1391
1393
|
proto.game.ScopeResponse.displayName = 'proto.game.ScopeResponse';
|
1392
1394
|
}
|
1395
|
+
/**
|
1396
|
+
* Generated by JsPbCodeGenerator.
|
1397
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1398
|
+
* server response, or constructed directly in Javascript. The array is used
|
1399
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1400
|
+
* If no data is provided, the constructed object will be empty, but still
|
1401
|
+
* valid.
|
1402
|
+
* @extends {jspb.Message}
|
1403
|
+
* @constructor
|
1404
|
+
*/
|
1405
|
+
proto.game.FreeSpinSettingsRequest = function(opt_data) {
|
1406
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1407
|
+
};
|
1408
|
+
goog.inherits(proto.game.FreeSpinSettingsRequest, jspb.Message);
|
1409
|
+
if (goog.DEBUG && !COMPILED) {
|
1410
|
+
/**
|
1411
|
+
* @public
|
1412
|
+
* @override
|
1413
|
+
*/
|
1414
|
+
proto.game.FreeSpinSettingsRequest.displayName = 'proto.game.FreeSpinSettingsRequest';
|
1415
|
+
}
|
1416
|
+
/**
|
1417
|
+
* Generated by JsPbCodeGenerator.
|
1418
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1419
|
+
* server response, or constructed directly in Javascript. The array is used
|
1420
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1421
|
+
* If no data is provided, the constructed object will be empty, but still
|
1422
|
+
* valid.
|
1423
|
+
* @extends {jspb.Message}
|
1424
|
+
* @constructor
|
1425
|
+
*/
|
1426
|
+
proto.game.FreeSpinSettingsResponse = function(opt_data) {
|
1427
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1428
|
+
};
|
1429
|
+
goog.inherits(proto.game.FreeSpinSettingsResponse, jspb.Message);
|
1430
|
+
if (goog.DEBUG && !COMPILED) {
|
1431
|
+
/**
|
1432
|
+
* @public
|
1433
|
+
* @override
|
1434
|
+
*/
|
1435
|
+
proto.game.FreeSpinSettingsResponse.displayName = 'proto.game.FreeSpinSettingsResponse';
|
1436
|
+
}
|
1393
1437
|
|
1394
1438
|
|
1395
1439
|
|
@@ -16761,4 +16805,294 @@ proto.game.ScopeResponse.prototype.setData = function(value) {
|
|
16761
16805
|
};
|
16762
16806
|
|
16763
16807
|
|
16808
|
+
|
16809
|
+
|
16810
|
+
|
16811
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
16812
|
+
/**
|
16813
|
+
* Creates an object representation of this proto.
|
16814
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
16815
|
+
* Optional fields that are not set will be set to undefined.
|
16816
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
16817
|
+
* For the list of reserved names please see:
|
16818
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
16819
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
16820
|
+
* JSPB instance for transitional soy proto support:
|
16821
|
+
* http://goto/soy-param-migration
|
16822
|
+
* @return {!Object}
|
16823
|
+
*/
|
16824
|
+
proto.game.FreeSpinSettingsRequest.prototype.toObject = function(opt_includeInstance) {
|
16825
|
+
return proto.game.FreeSpinSettingsRequest.toObject(opt_includeInstance, this);
|
16826
|
+
};
|
16827
|
+
|
16828
|
+
|
16829
|
+
/**
|
16830
|
+
* Static version of the {@see toObject} method.
|
16831
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
16832
|
+
* the JSPB instance for transitional soy proto support:
|
16833
|
+
* http://goto/soy-param-migration
|
16834
|
+
* @param {!proto.game.FreeSpinSettingsRequest} msg The msg instance to transform.
|
16835
|
+
* @return {!Object}
|
16836
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16837
|
+
*/
|
16838
|
+
proto.game.FreeSpinSettingsRequest.toObject = function(includeInstance, msg) {
|
16839
|
+
var f, obj = {
|
16840
|
+
gameUuid: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
16841
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, "")
|
16842
|
+
};
|
16843
|
+
|
16844
|
+
if (includeInstance) {
|
16845
|
+
obj.$jspbMessageInstance = msg;
|
16846
|
+
}
|
16847
|
+
return obj;
|
16848
|
+
};
|
16849
|
+
}
|
16850
|
+
|
16851
|
+
|
16852
|
+
/**
|
16853
|
+
* Deserializes binary data (in protobuf wire format).
|
16854
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
16855
|
+
* @return {!proto.game.FreeSpinSettingsRequest}
|
16856
|
+
*/
|
16857
|
+
proto.game.FreeSpinSettingsRequest.deserializeBinary = function(bytes) {
|
16858
|
+
var reader = new jspb.BinaryReader(bytes);
|
16859
|
+
var msg = new proto.game.FreeSpinSettingsRequest;
|
16860
|
+
return proto.game.FreeSpinSettingsRequest.deserializeBinaryFromReader(msg, reader);
|
16861
|
+
};
|
16862
|
+
|
16863
|
+
|
16864
|
+
/**
|
16865
|
+
* Deserializes binary data (in protobuf wire format) from the
|
16866
|
+
* given reader into the given message object.
|
16867
|
+
* @param {!proto.game.FreeSpinSettingsRequest} msg The message object to deserialize into.
|
16868
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
16869
|
+
* @return {!proto.game.FreeSpinSettingsRequest}
|
16870
|
+
*/
|
16871
|
+
proto.game.FreeSpinSettingsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
16872
|
+
while (reader.nextField()) {
|
16873
|
+
if (reader.isEndGroup()) {
|
16874
|
+
break;
|
16875
|
+
}
|
16876
|
+
var field = reader.getFieldNumber();
|
16877
|
+
switch (field) {
|
16878
|
+
case 1:
|
16879
|
+
var value = /** @type {string} */ (reader.readString());
|
16880
|
+
msg.setGameUuid(value);
|
16881
|
+
break;
|
16882
|
+
case 2:
|
16883
|
+
var value = /** @type {string} */ (reader.readString());
|
16884
|
+
msg.setCurrency(value);
|
16885
|
+
break;
|
16886
|
+
default:
|
16887
|
+
reader.skipField();
|
16888
|
+
break;
|
16889
|
+
}
|
16890
|
+
}
|
16891
|
+
return msg;
|
16892
|
+
};
|
16893
|
+
|
16894
|
+
|
16895
|
+
/**
|
16896
|
+
* Serializes the message to binary data (in protobuf wire format).
|
16897
|
+
* @return {!Uint8Array}
|
16898
|
+
*/
|
16899
|
+
proto.game.FreeSpinSettingsRequest.prototype.serializeBinary = function() {
|
16900
|
+
var writer = new jspb.BinaryWriter();
|
16901
|
+
proto.game.FreeSpinSettingsRequest.serializeBinaryToWriter(this, writer);
|
16902
|
+
return writer.getResultBuffer();
|
16903
|
+
};
|
16904
|
+
|
16905
|
+
|
16906
|
+
/**
|
16907
|
+
* Serializes the given message to binary data (in protobuf wire
|
16908
|
+
* format), writing to the given BinaryWriter.
|
16909
|
+
* @param {!proto.game.FreeSpinSettingsRequest} message
|
16910
|
+
* @param {!jspb.BinaryWriter} writer
|
16911
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16912
|
+
*/
|
16913
|
+
proto.game.FreeSpinSettingsRequest.serializeBinaryToWriter = function(message, writer) {
|
16914
|
+
var f = undefined;
|
16915
|
+
f = message.getGameUuid();
|
16916
|
+
if (f.length > 0) {
|
16917
|
+
writer.writeString(
|
16918
|
+
1,
|
16919
|
+
f
|
16920
|
+
);
|
16921
|
+
}
|
16922
|
+
f = message.getCurrency();
|
16923
|
+
if (f.length > 0) {
|
16924
|
+
writer.writeString(
|
16925
|
+
2,
|
16926
|
+
f
|
16927
|
+
);
|
16928
|
+
}
|
16929
|
+
};
|
16930
|
+
|
16931
|
+
|
16932
|
+
/**
|
16933
|
+
* optional string game_uuid = 1;
|
16934
|
+
* @return {string}
|
16935
|
+
*/
|
16936
|
+
proto.game.FreeSpinSettingsRequest.prototype.getGameUuid = function() {
|
16937
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
16938
|
+
};
|
16939
|
+
|
16940
|
+
|
16941
|
+
/**
|
16942
|
+
* @param {string} value
|
16943
|
+
* @return {!proto.game.FreeSpinSettingsRequest} returns this
|
16944
|
+
*/
|
16945
|
+
proto.game.FreeSpinSettingsRequest.prototype.setGameUuid = function(value) {
|
16946
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
16947
|
+
};
|
16948
|
+
|
16949
|
+
|
16950
|
+
/**
|
16951
|
+
* optional string currency = 2;
|
16952
|
+
* @return {string}
|
16953
|
+
*/
|
16954
|
+
proto.game.FreeSpinSettingsRequest.prototype.getCurrency = function() {
|
16955
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
16956
|
+
};
|
16957
|
+
|
16958
|
+
|
16959
|
+
/**
|
16960
|
+
* @param {string} value
|
16961
|
+
* @return {!proto.game.FreeSpinSettingsRequest} returns this
|
16962
|
+
*/
|
16963
|
+
proto.game.FreeSpinSettingsRequest.prototype.setCurrency = function(value) {
|
16964
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
16965
|
+
};
|
16966
|
+
|
16967
|
+
|
16968
|
+
|
16969
|
+
|
16970
|
+
|
16971
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
16972
|
+
/**
|
16973
|
+
* Creates an object representation of this proto.
|
16974
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
16975
|
+
* Optional fields that are not set will be set to undefined.
|
16976
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
16977
|
+
* For the list of reserved names please see:
|
16978
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
16979
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
16980
|
+
* JSPB instance for transitional soy proto support:
|
16981
|
+
* http://goto/soy-param-migration
|
16982
|
+
* @return {!Object}
|
16983
|
+
*/
|
16984
|
+
proto.game.FreeSpinSettingsResponse.prototype.toObject = function(opt_includeInstance) {
|
16985
|
+
return proto.game.FreeSpinSettingsResponse.toObject(opt_includeInstance, this);
|
16986
|
+
};
|
16987
|
+
|
16988
|
+
|
16989
|
+
/**
|
16990
|
+
* Static version of the {@see toObject} method.
|
16991
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
16992
|
+
* the JSPB instance for transitional soy proto support:
|
16993
|
+
* http://goto/soy-param-migration
|
16994
|
+
* @param {!proto.game.FreeSpinSettingsResponse} msg The msg instance to transform.
|
16995
|
+
* @return {!Object}
|
16996
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16997
|
+
*/
|
16998
|
+
proto.game.FreeSpinSettingsResponse.toObject = function(includeInstance, msg) {
|
16999
|
+
var f, obj = {
|
17000
|
+
data: jspb.Message.getFieldWithDefault(msg, 1, "")
|
17001
|
+
};
|
17002
|
+
|
17003
|
+
if (includeInstance) {
|
17004
|
+
obj.$jspbMessageInstance = msg;
|
17005
|
+
}
|
17006
|
+
return obj;
|
17007
|
+
};
|
17008
|
+
}
|
17009
|
+
|
17010
|
+
|
17011
|
+
/**
|
17012
|
+
* Deserializes binary data (in protobuf wire format).
|
17013
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
17014
|
+
* @return {!proto.game.FreeSpinSettingsResponse}
|
17015
|
+
*/
|
17016
|
+
proto.game.FreeSpinSettingsResponse.deserializeBinary = function(bytes) {
|
17017
|
+
var reader = new jspb.BinaryReader(bytes);
|
17018
|
+
var msg = new proto.game.FreeSpinSettingsResponse;
|
17019
|
+
return proto.game.FreeSpinSettingsResponse.deserializeBinaryFromReader(msg, reader);
|
17020
|
+
};
|
17021
|
+
|
17022
|
+
|
17023
|
+
/**
|
17024
|
+
* Deserializes binary data (in protobuf wire format) from the
|
17025
|
+
* given reader into the given message object.
|
17026
|
+
* @param {!proto.game.FreeSpinSettingsResponse} msg The message object to deserialize into.
|
17027
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
17028
|
+
* @return {!proto.game.FreeSpinSettingsResponse}
|
17029
|
+
*/
|
17030
|
+
proto.game.FreeSpinSettingsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
17031
|
+
while (reader.nextField()) {
|
17032
|
+
if (reader.isEndGroup()) {
|
17033
|
+
break;
|
17034
|
+
}
|
17035
|
+
var field = reader.getFieldNumber();
|
17036
|
+
switch (field) {
|
17037
|
+
case 1:
|
17038
|
+
var value = /** @type {string} */ (reader.readString());
|
17039
|
+
msg.setData(value);
|
17040
|
+
break;
|
17041
|
+
default:
|
17042
|
+
reader.skipField();
|
17043
|
+
break;
|
17044
|
+
}
|
17045
|
+
}
|
17046
|
+
return msg;
|
17047
|
+
};
|
17048
|
+
|
17049
|
+
|
17050
|
+
/**
|
17051
|
+
* Serializes the message to binary data (in protobuf wire format).
|
17052
|
+
* @return {!Uint8Array}
|
17053
|
+
*/
|
17054
|
+
proto.game.FreeSpinSettingsResponse.prototype.serializeBinary = function() {
|
17055
|
+
var writer = new jspb.BinaryWriter();
|
17056
|
+
proto.game.FreeSpinSettingsResponse.serializeBinaryToWriter(this, writer);
|
17057
|
+
return writer.getResultBuffer();
|
17058
|
+
};
|
17059
|
+
|
17060
|
+
|
17061
|
+
/**
|
17062
|
+
* Serializes the given message to binary data (in protobuf wire
|
17063
|
+
* format), writing to the given BinaryWriter.
|
17064
|
+
* @param {!proto.game.FreeSpinSettingsResponse} message
|
17065
|
+
* @param {!jspb.BinaryWriter} writer
|
17066
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17067
|
+
*/
|
17068
|
+
proto.game.FreeSpinSettingsResponse.serializeBinaryToWriter = function(message, writer) {
|
17069
|
+
var f = undefined;
|
17070
|
+
f = message.getData();
|
17071
|
+
if (f.length > 0) {
|
17072
|
+
writer.writeString(
|
17073
|
+
1,
|
17074
|
+
f
|
17075
|
+
);
|
17076
|
+
}
|
17077
|
+
};
|
17078
|
+
|
17079
|
+
|
17080
|
+
/**
|
17081
|
+
* optional string data = 1;
|
17082
|
+
* @return {string}
|
17083
|
+
*/
|
17084
|
+
proto.game.FreeSpinSettingsResponse.prototype.getData = function() {
|
17085
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
17086
|
+
};
|
17087
|
+
|
17088
|
+
|
17089
|
+
/**
|
17090
|
+
* @param {string} value
|
17091
|
+
* @return {!proto.game.FreeSpinSettingsResponse} returns this
|
17092
|
+
*/
|
17093
|
+
proto.game.FreeSpinSettingsResponse.prototype.setData = function(value) {
|
17094
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
17095
|
+
};
|
17096
|
+
|
17097
|
+
|
16764
17098
|
goog.object.extend(exports, proto.game);
|
package/index.js
CHANGED
@@ -15,6 +15,8 @@ const BetService = require('./bet/bet_grpc_pb');
|
|
15
15
|
const BetServiceMessages = require('./bet/bet_pb');
|
16
16
|
const CMSService = require('./cms/cms_grpc_pb');
|
17
17
|
const CMSServiceMessages = require('./cms/cms_pb');
|
18
|
+
const BonusService = require('./bonus/bonus_grpc_pb');
|
19
|
+
const BonusServiceMessages = require('./bonus/bonus_pb');
|
18
20
|
module.exports = {
|
19
21
|
gRPC: gRPC,
|
20
22
|
maxSendMessageLength: 10388608,
|
@@ -48,4 +50,8 @@ module.exports = {
|
|
48
50
|
service: CMSService,
|
49
51
|
messages: CMSServiceMessages
|
50
52
|
},
|
53
|
+
bonus: {
|
54
|
+
service: BonusService,
|
55
|
+
messages: BonusServiceMessages
|
56
|
+
},
|
51
57
|
};
|
package/package.json
CHANGED
package/update_protobuf.sh
CHANGED
@@ -6,4 +6,5 @@ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:log --grpc_out=grpc
|
|
6
6
|
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:game --grpc_out=grpc_js:game --proto_path=./game ./game/*.proto &&
|
7
7
|
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:file --grpc_out=grpc_js:file --proto_path=./file ./file/*.proto &&
|
8
8
|
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:bet --grpc_out=grpc_js:bet --proto_path=./bet ./bet/*.proto &&
|
9
|
-
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cms --grpc_out=grpc_js:cms --proto_path=./cms ./cms/*.proto
|
9
|
+
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cms --grpc_out=grpc_js:cms --proto_path=./cms ./cms/*.proto &&
|
10
|
+
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:bonus --grpc_out=grpc_js:bonus --proto_path=./bonus ./bonus/*.proto
|