protobuf-platform 1.0.90 → 1.0.92
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/cms/cms.proto +10 -0
- package/cms/cms_grpc_pb.js +44 -0
- package/cms/cms_pb.js +328 -0
- package/game/game.proto +8 -5
- package/game/game_pb.js +155 -59
- package/index.js +6 -0
- package/package.json +1 -1
- package/update_protobuf.sh +2 -1
package/cms/cms.proto
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
2
|
+
|
3
|
+
'use strict';
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
5
|
+
var cms_pb = require('./cms_pb.js');
|
6
|
+
|
7
|
+
function serialize_cms_PingRequest(arg) {
|
8
|
+
if (!(arg instanceof cms_pb.PingRequest)) {
|
9
|
+
throw new Error('Expected argument of type cms.PingRequest');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_cms_PingRequest(buffer_arg) {
|
15
|
+
return cms_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_cms_PongResponse(arg) {
|
19
|
+
if (!(arg instanceof cms_pb.PongResponse)) {
|
20
|
+
throw new Error('Expected argument of type cms.PongResponse');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_cms_PongResponse(buffer_arg) {
|
26
|
+
return cms_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
var CMSService = exports.CMSService = {
|
31
|
+
checkConnection: {
|
32
|
+
path: '/cms.CMS/checkConnection',
|
33
|
+
requestStream: false,
|
34
|
+
responseStream: false,
|
35
|
+
requestType: cms_pb.PingRequest,
|
36
|
+
responseType: cms_pb.PongResponse,
|
37
|
+
requestSerialize: serialize_cms_PingRequest,
|
38
|
+
requestDeserialize: deserialize_cms_PingRequest,
|
39
|
+
responseSerialize: serialize_cms_PongResponse,
|
40
|
+
responseDeserialize: deserialize_cms_PongResponse,
|
41
|
+
},
|
42
|
+
};
|
43
|
+
|
44
|
+
exports.CMSClient = grpc.makeGenericClientConstructor(CMSService);
|
package/cms/cms_pb.js
ADDED
@@ -0,0 +1,328 @@
|
|
1
|
+
// source: cms.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.cms.PingRequest', null, global);
|
25
|
+
goog.exportSymbol('proto.cms.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.cms.PingRequest = function(opt_data) {
|
37
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
38
|
+
};
|
39
|
+
goog.inherits(proto.cms.PingRequest, jspb.Message);
|
40
|
+
if (goog.DEBUG && !COMPILED) {
|
41
|
+
/**
|
42
|
+
* @public
|
43
|
+
* @override
|
44
|
+
*/
|
45
|
+
proto.cms.PingRequest.displayName = 'proto.cms.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.cms.PongResponse = function(opt_data) {
|
58
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
59
|
+
};
|
60
|
+
goog.inherits(proto.cms.PongResponse, jspb.Message);
|
61
|
+
if (goog.DEBUG && !COMPILED) {
|
62
|
+
/**
|
63
|
+
* @public
|
64
|
+
* @override
|
65
|
+
*/
|
66
|
+
proto.cms.PongResponse.displayName = 'proto.cms.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.cms.PingRequest.prototype.toObject = function(opt_includeInstance) {
|
85
|
+
return proto.cms.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.cms.PingRequest} msg The msg instance to transform.
|
95
|
+
* @return {!Object}
|
96
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
97
|
+
*/
|
98
|
+
proto.cms.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.cms.PingRequest}
|
115
|
+
*/
|
116
|
+
proto.cms.PingRequest.deserializeBinary = function(bytes) {
|
117
|
+
var reader = new jspb.BinaryReader(bytes);
|
118
|
+
var msg = new proto.cms.PingRequest;
|
119
|
+
return proto.cms.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.cms.PingRequest} msg The message object to deserialize into.
|
127
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
128
|
+
* @return {!proto.cms.PingRequest}
|
129
|
+
*/
|
130
|
+
proto.cms.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.cms.PingRequest.prototype.serializeBinary = function() {
|
155
|
+
var writer = new jspb.BinaryWriter();
|
156
|
+
proto.cms.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.cms.PingRequest} message
|
165
|
+
* @param {!jspb.BinaryWriter} writer
|
166
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
167
|
+
*/
|
168
|
+
proto.cms.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.cms.PingRequest.prototype.getPing = function() {
|
185
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
186
|
+
};
|
187
|
+
|
188
|
+
|
189
|
+
/**
|
190
|
+
* @param {string} value
|
191
|
+
* @return {!proto.cms.PingRequest} returns this
|
192
|
+
*/
|
193
|
+
proto.cms.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.cms.PongResponse.prototype.toObject = function(opt_includeInstance) {
|
215
|
+
return proto.cms.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.cms.PongResponse} msg The msg instance to transform.
|
225
|
+
* @return {!Object}
|
226
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
227
|
+
*/
|
228
|
+
proto.cms.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.cms.PongResponse}
|
245
|
+
*/
|
246
|
+
proto.cms.PongResponse.deserializeBinary = function(bytes) {
|
247
|
+
var reader = new jspb.BinaryReader(bytes);
|
248
|
+
var msg = new proto.cms.PongResponse;
|
249
|
+
return proto.cms.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.cms.PongResponse} msg The message object to deserialize into.
|
257
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
258
|
+
* @return {!proto.cms.PongResponse}
|
259
|
+
*/
|
260
|
+
proto.cms.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.cms.PongResponse.prototype.serializeBinary = function() {
|
285
|
+
var writer = new jspb.BinaryWriter();
|
286
|
+
proto.cms.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.cms.PongResponse} message
|
295
|
+
* @param {!jspb.BinaryWriter} writer
|
296
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
297
|
+
*/
|
298
|
+
proto.cms.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.cms.PongResponse.prototype.getPong = function() {
|
315
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
316
|
+
};
|
317
|
+
|
318
|
+
|
319
|
+
/**
|
320
|
+
* @param {string} value
|
321
|
+
* @return {!proto.cms.PongResponse} returns this
|
322
|
+
*/
|
323
|
+
proto.cms.PongResponse.prototype.setPong = function(value) {
|
324
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
325
|
+
};
|
326
|
+
|
327
|
+
|
328
|
+
goog.object.extend(exports, proto.cms);
|
package/game/game.proto
CHANGED
@@ -287,11 +287,14 @@ message GameItemRequest {
|
|
287
287
|
optional string slug = 4;
|
288
288
|
optional string description = 5;
|
289
289
|
optional int32 is_active = 6;
|
290
|
-
optional
|
291
|
-
optional
|
292
|
-
optional
|
293
|
-
optional int32
|
294
|
-
optional
|
290
|
+
optional int32 is_mobile = 7;
|
291
|
+
optional int32 is_deactivated = 8;
|
292
|
+
optional int32 has_demo = 9;
|
293
|
+
optional int32 has_free_spins = 10;
|
294
|
+
optional string type = 11;
|
295
|
+
optional string file_name = 12;
|
296
|
+
optional string file_type = 13;
|
297
|
+
|
295
298
|
}
|
296
299
|
message GetGameRequest {
|
297
300
|
int32 id = 1;
|
package/game/game_pb.js
CHANGED
@@ -12019,11 +12019,13 @@ proto.game.GameItemRequest.toObject = function(includeInstance, msg) {
|
|
12019
12019
|
slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
12020
12020
|
description: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
12021
12021
|
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
12022
|
-
|
12023
|
-
|
12024
|
-
|
12025
|
-
|
12026
|
-
|
12022
|
+
isMobile: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
12023
|
+
isDeactivated: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
12024
|
+
hasDemo: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
12025
|
+
hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
12026
|
+
type: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
12027
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
12028
|
+
fileType: jspb.Message.getFieldWithDefault(msg, 13, "")
|
12027
12029
|
};
|
12028
12030
|
|
12029
12031
|
if (includeInstance) {
|
@@ -12086,24 +12088,32 @@ proto.game.GameItemRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
12086
12088
|
msg.setIsActive(value);
|
12087
12089
|
break;
|
12088
12090
|
case 7:
|
12089
|
-
var value = /** @type {
|
12090
|
-
msg.
|
12091
|
+
var value = /** @type {number} */ (reader.readInt32());
|
12092
|
+
msg.setIsMobile(value);
|
12091
12093
|
break;
|
12092
12094
|
case 8:
|
12093
|
-
var value = /** @type {
|
12094
|
-
msg.
|
12095
|
+
var value = /** @type {number} */ (reader.readInt32());
|
12096
|
+
msg.setIsDeactivated(value);
|
12095
12097
|
break;
|
12096
12098
|
case 9:
|
12097
|
-
var value = /** @type {
|
12098
|
-
msg.
|
12099
|
+
var value = /** @type {number} */ (reader.readInt32());
|
12100
|
+
msg.setHasDemo(value);
|
12099
12101
|
break;
|
12100
12102
|
case 10:
|
12101
12103
|
var value = /** @type {number} */ (reader.readInt32());
|
12102
|
-
msg.
|
12104
|
+
msg.setHasFreeSpins(value);
|
12103
12105
|
break;
|
12104
12106
|
case 11:
|
12105
|
-
var value = /** @type {
|
12106
|
-
msg.
|
12107
|
+
var value = /** @type {string} */ (reader.readString());
|
12108
|
+
msg.setType(value);
|
12109
|
+
break;
|
12110
|
+
case 12:
|
12111
|
+
var value = /** @type {string} */ (reader.readString());
|
12112
|
+
msg.setFileName(value);
|
12113
|
+
break;
|
12114
|
+
case 13:
|
12115
|
+
var value = /** @type {string} */ (reader.readString());
|
12116
|
+
msg.setFileType(value);
|
12107
12117
|
break;
|
12108
12118
|
default:
|
12109
12119
|
reader.skipField();
|
@@ -12177,23 +12187,23 @@ proto.game.GameItemRequest.serializeBinaryToWriter = function(message, writer) {
|
|
12177
12187
|
f
|
12178
12188
|
);
|
12179
12189
|
}
|
12180
|
-
f = /** @type {
|
12190
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
12181
12191
|
if (f != null) {
|
12182
|
-
writer.
|
12192
|
+
writer.writeInt32(
|
12183
12193
|
7,
|
12184
12194
|
f
|
12185
12195
|
);
|
12186
12196
|
}
|
12187
|
-
f = /** @type {
|
12197
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
12188
12198
|
if (f != null) {
|
12189
|
-
writer.
|
12199
|
+
writer.writeInt32(
|
12190
12200
|
8,
|
12191
12201
|
f
|
12192
12202
|
);
|
12193
12203
|
}
|
12194
|
-
f = /** @type {
|
12204
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
12195
12205
|
if (f != null) {
|
12196
|
-
writer.
|
12206
|
+
writer.writeInt32(
|
12197
12207
|
9,
|
12198
12208
|
f
|
12199
12209
|
);
|
@@ -12205,13 +12215,27 @@ proto.game.GameItemRequest.serializeBinaryToWriter = function(message, writer) {
|
|
12205
12215
|
f
|
12206
12216
|
);
|
12207
12217
|
}
|
12208
|
-
f = /** @type {
|
12218
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
12209
12219
|
if (f != null) {
|
12210
|
-
writer.
|
12220
|
+
writer.writeString(
|
12211
12221
|
11,
|
12212
12222
|
f
|
12213
12223
|
);
|
12214
12224
|
}
|
12225
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 12));
|
12226
|
+
if (f != null) {
|
12227
|
+
writer.writeString(
|
12228
|
+
12,
|
12229
|
+
f
|
12230
|
+
);
|
12231
|
+
}
|
12232
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 13));
|
12233
|
+
if (f != null) {
|
12234
|
+
writer.writeString(
|
12235
|
+
13,
|
12236
|
+
f
|
12237
|
+
);
|
12238
|
+
}
|
12215
12239
|
};
|
12216
12240
|
|
12217
12241
|
|
@@ -12433,19 +12457,19 @@ proto.game.GameItemRequest.prototype.hasIsActive = function() {
|
|
12433
12457
|
|
12434
12458
|
|
12435
12459
|
/**
|
12436
|
-
* optional
|
12437
|
-
* @return {
|
12460
|
+
* optional int32 is_mobile = 7;
|
12461
|
+
* @return {number}
|
12438
12462
|
*/
|
12439
|
-
proto.game.GameItemRequest.prototype.
|
12440
|
-
return /** @type {
|
12463
|
+
proto.game.GameItemRequest.prototype.getIsMobile = function() {
|
12464
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
12441
12465
|
};
|
12442
12466
|
|
12443
12467
|
|
12444
12468
|
/**
|
12445
|
-
* @param {
|
12469
|
+
* @param {number} value
|
12446
12470
|
* @return {!proto.game.GameItemRequest} returns this
|
12447
12471
|
*/
|
12448
|
-
proto.game.GameItemRequest.prototype.
|
12472
|
+
proto.game.GameItemRequest.prototype.setIsMobile = function(value) {
|
12449
12473
|
return jspb.Message.setField(this, 7, value);
|
12450
12474
|
};
|
12451
12475
|
|
@@ -12454,7 +12478,7 @@ proto.game.GameItemRequest.prototype.setFileName = function(value) {
|
|
12454
12478
|
* Clears the field making it undefined.
|
12455
12479
|
* @return {!proto.game.GameItemRequest} returns this
|
12456
12480
|
*/
|
12457
|
-
proto.game.GameItemRequest.prototype.
|
12481
|
+
proto.game.GameItemRequest.prototype.clearIsMobile = function() {
|
12458
12482
|
return jspb.Message.setField(this, 7, undefined);
|
12459
12483
|
};
|
12460
12484
|
|
@@ -12463,25 +12487,25 @@ proto.game.GameItemRequest.prototype.clearFileName = function() {
|
|
12463
12487
|
* Returns whether this field is set.
|
12464
12488
|
* @return {boolean}
|
12465
12489
|
*/
|
12466
|
-
proto.game.GameItemRequest.prototype.
|
12490
|
+
proto.game.GameItemRequest.prototype.hasIsMobile = function() {
|
12467
12491
|
return jspb.Message.getField(this, 7) != null;
|
12468
12492
|
};
|
12469
12493
|
|
12470
12494
|
|
12471
12495
|
/**
|
12472
|
-
* optional
|
12473
|
-
* @return {
|
12496
|
+
* optional int32 is_deactivated = 8;
|
12497
|
+
* @return {number}
|
12474
12498
|
*/
|
12475
|
-
proto.game.GameItemRequest.prototype.
|
12476
|
-
return /** @type {
|
12499
|
+
proto.game.GameItemRequest.prototype.getIsDeactivated = function() {
|
12500
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
12477
12501
|
};
|
12478
12502
|
|
12479
12503
|
|
12480
12504
|
/**
|
12481
|
-
* @param {
|
12505
|
+
* @param {number} value
|
12482
12506
|
* @return {!proto.game.GameItemRequest} returns this
|
12483
12507
|
*/
|
12484
|
-
proto.game.GameItemRequest.prototype.
|
12508
|
+
proto.game.GameItemRequest.prototype.setIsDeactivated = function(value) {
|
12485
12509
|
return jspb.Message.setField(this, 8, value);
|
12486
12510
|
};
|
12487
12511
|
|
@@ -12490,7 +12514,7 @@ proto.game.GameItemRequest.prototype.setFileType = function(value) {
|
|
12490
12514
|
* Clears the field making it undefined.
|
12491
12515
|
* @return {!proto.game.GameItemRequest} returns this
|
12492
12516
|
*/
|
12493
|
-
proto.game.GameItemRequest.prototype.
|
12517
|
+
proto.game.GameItemRequest.prototype.clearIsDeactivated = function() {
|
12494
12518
|
return jspb.Message.setField(this, 8, undefined);
|
12495
12519
|
};
|
12496
12520
|
|
@@ -12499,25 +12523,25 @@ proto.game.GameItemRequest.prototype.clearFileType = function() {
|
|
12499
12523
|
* Returns whether this field is set.
|
12500
12524
|
* @return {boolean}
|
12501
12525
|
*/
|
12502
|
-
proto.game.GameItemRequest.prototype.
|
12526
|
+
proto.game.GameItemRequest.prototype.hasIsDeactivated = function() {
|
12503
12527
|
return jspb.Message.getField(this, 8) != null;
|
12504
12528
|
};
|
12505
12529
|
|
12506
12530
|
|
12507
12531
|
/**
|
12508
|
-
* optional
|
12509
|
-
* @return {
|
12532
|
+
* optional int32 has_demo = 9;
|
12533
|
+
* @return {number}
|
12510
12534
|
*/
|
12511
|
-
proto.game.GameItemRequest.prototype.
|
12512
|
-
return /** @type {
|
12535
|
+
proto.game.GameItemRequest.prototype.getHasDemo = function() {
|
12536
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
12513
12537
|
};
|
12514
12538
|
|
12515
12539
|
|
12516
12540
|
/**
|
12517
|
-
* @param {
|
12541
|
+
* @param {number} value
|
12518
12542
|
* @return {!proto.game.GameItemRequest} returns this
|
12519
12543
|
*/
|
12520
|
-
proto.game.GameItemRequest.prototype.
|
12544
|
+
proto.game.GameItemRequest.prototype.setHasDemo = function(value) {
|
12521
12545
|
return jspb.Message.setField(this, 9, value);
|
12522
12546
|
};
|
12523
12547
|
|
@@ -12526,7 +12550,7 @@ proto.game.GameItemRequest.prototype.setType = function(value) {
|
|
12526
12550
|
* Clears the field making it undefined.
|
12527
12551
|
* @return {!proto.game.GameItemRequest} returns this
|
12528
12552
|
*/
|
12529
|
-
proto.game.GameItemRequest.prototype.
|
12553
|
+
proto.game.GameItemRequest.prototype.clearHasDemo = function() {
|
12530
12554
|
return jspb.Message.setField(this, 9, undefined);
|
12531
12555
|
};
|
12532
12556
|
|
@@ -12535,16 +12559,16 @@ proto.game.GameItemRequest.prototype.clearType = function() {
|
|
12535
12559
|
* Returns whether this field is set.
|
12536
12560
|
* @return {boolean}
|
12537
12561
|
*/
|
12538
|
-
proto.game.GameItemRequest.prototype.
|
12562
|
+
proto.game.GameItemRequest.prototype.hasHasDemo = function() {
|
12539
12563
|
return jspb.Message.getField(this, 9) != null;
|
12540
12564
|
};
|
12541
12565
|
|
12542
12566
|
|
12543
12567
|
/**
|
12544
|
-
* optional int32
|
12568
|
+
* optional int32 has_free_spins = 10;
|
12545
12569
|
* @return {number}
|
12546
12570
|
*/
|
12547
|
-
proto.game.GameItemRequest.prototype.
|
12571
|
+
proto.game.GameItemRequest.prototype.getHasFreeSpins = function() {
|
12548
12572
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
12549
12573
|
};
|
12550
12574
|
|
@@ -12553,7 +12577,7 @@ proto.game.GameItemRequest.prototype.getIsMobile = function() {
|
|
12553
12577
|
* @param {number} value
|
12554
12578
|
* @return {!proto.game.GameItemRequest} returns this
|
12555
12579
|
*/
|
12556
|
-
proto.game.GameItemRequest.prototype.
|
12580
|
+
proto.game.GameItemRequest.prototype.setHasFreeSpins = function(value) {
|
12557
12581
|
return jspb.Message.setField(this, 10, value);
|
12558
12582
|
};
|
12559
12583
|
|
@@ -12562,7 +12586,7 @@ proto.game.GameItemRequest.prototype.setIsMobile = function(value) {
|
|
12562
12586
|
* Clears the field making it undefined.
|
12563
12587
|
* @return {!proto.game.GameItemRequest} returns this
|
12564
12588
|
*/
|
12565
|
-
proto.game.GameItemRequest.prototype.
|
12589
|
+
proto.game.GameItemRequest.prototype.clearHasFreeSpins = function() {
|
12566
12590
|
return jspb.Message.setField(this, 10, undefined);
|
12567
12591
|
};
|
12568
12592
|
|
@@ -12571,25 +12595,25 @@ proto.game.GameItemRequest.prototype.clearIsMobile = function() {
|
|
12571
12595
|
* Returns whether this field is set.
|
12572
12596
|
* @return {boolean}
|
12573
12597
|
*/
|
12574
|
-
proto.game.GameItemRequest.prototype.
|
12598
|
+
proto.game.GameItemRequest.prototype.hasHasFreeSpins = function() {
|
12575
12599
|
return jspb.Message.getField(this, 10) != null;
|
12576
12600
|
};
|
12577
12601
|
|
12578
12602
|
|
12579
12603
|
/**
|
12580
|
-
* optional
|
12581
|
-
* @return {
|
12604
|
+
* optional string type = 11;
|
12605
|
+
* @return {string}
|
12582
12606
|
*/
|
12583
|
-
proto.game.GameItemRequest.prototype.
|
12584
|
-
return /** @type {
|
12607
|
+
proto.game.GameItemRequest.prototype.getType = function() {
|
12608
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
12585
12609
|
};
|
12586
12610
|
|
12587
12611
|
|
12588
12612
|
/**
|
12589
|
-
* @param {
|
12613
|
+
* @param {string} value
|
12590
12614
|
* @return {!proto.game.GameItemRequest} returns this
|
12591
12615
|
*/
|
12592
|
-
proto.game.GameItemRequest.prototype.
|
12616
|
+
proto.game.GameItemRequest.prototype.setType = function(value) {
|
12593
12617
|
return jspb.Message.setField(this, 11, value);
|
12594
12618
|
};
|
12595
12619
|
|
@@ -12598,7 +12622,7 @@ proto.game.GameItemRequest.prototype.setHasFreeSpins = function(value) {
|
|
12598
12622
|
* Clears the field making it undefined.
|
12599
12623
|
* @return {!proto.game.GameItemRequest} returns this
|
12600
12624
|
*/
|
12601
|
-
proto.game.GameItemRequest.prototype.
|
12625
|
+
proto.game.GameItemRequest.prototype.clearType = function() {
|
12602
12626
|
return jspb.Message.setField(this, 11, undefined);
|
12603
12627
|
};
|
12604
12628
|
|
@@ -12607,11 +12631,83 @@ proto.game.GameItemRequest.prototype.clearHasFreeSpins = function() {
|
|
12607
12631
|
* Returns whether this field is set.
|
12608
12632
|
* @return {boolean}
|
12609
12633
|
*/
|
12610
|
-
proto.game.GameItemRequest.prototype.
|
12634
|
+
proto.game.GameItemRequest.prototype.hasType = function() {
|
12611
12635
|
return jspb.Message.getField(this, 11) != null;
|
12612
12636
|
};
|
12613
12637
|
|
12614
12638
|
|
12639
|
+
/**
|
12640
|
+
* optional string file_name = 12;
|
12641
|
+
* @return {string}
|
12642
|
+
*/
|
12643
|
+
proto.game.GameItemRequest.prototype.getFileName = function() {
|
12644
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
12645
|
+
};
|
12646
|
+
|
12647
|
+
|
12648
|
+
/**
|
12649
|
+
* @param {string} value
|
12650
|
+
* @return {!proto.game.GameItemRequest} returns this
|
12651
|
+
*/
|
12652
|
+
proto.game.GameItemRequest.prototype.setFileName = function(value) {
|
12653
|
+
return jspb.Message.setField(this, 12, value);
|
12654
|
+
};
|
12655
|
+
|
12656
|
+
|
12657
|
+
/**
|
12658
|
+
* Clears the field making it undefined.
|
12659
|
+
* @return {!proto.game.GameItemRequest} returns this
|
12660
|
+
*/
|
12661
|
+
proto.game.GameItemRequest.prototype.clearFileName = function() {
|
12662
|
+
return jspb.Message.setField(this, 12, undefined);
|
12663
|
+
};
|
12664
|
+
|
12665
|
+
|
12666
|
+
/**
|
12667
|
+
* Returns whether this field is set.
|
12668
|
+
* @return {boolean}
|
12669
|
+
*/
|
12670
|
+
proto.game.GameItemRequest.prototype.hasFileName = function() {
|
12671
|
+
return jspb.Message.getField(this, 12) != null;
|
12672
|
+
};
|
12673
|
+
|
12674
|
+
|
12675
|
+
/**
|
12676
|
+
* optional string file_type = 13;
|
12677
|
+
* @return {string}
|
12678
|
+
*/
|
12679
|
+
proto.game.GameItemRequest.prototype.getFileType = function() {
|
12680
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
12681
|
+
};
|
12682
|
+
|
12683
|
+
|
12684
|
+
/**
|
12685
|
+
* @param {string} value
|
12686
|
+
* @return {!proto.game.GameItemRequest} returns this
|
12687
|
+
*/
|
12688
|
+
proto.game.GameItemRequest.prototype.setFileType = function(value) {
|
12689
|
+
return jspb.Message.setField(this, 13, value);
|
12690
|
+
};
|
12691
|
+
|
12692
|
+
|
12693
|
+
/**
|
12694
|
+
* Clears the field making it undefined.
|
12695
|
+
* @return {!proto.game.GameItemRequest} returns this
|
12696
|
+
*/
|
12697
|
+
proto.game.GameItemRequest.prototype.clearFileType = function() {
|
12698
|
+
return jspb.Message.setField(this, 13, undefined);
|
12699
|
+
};
|
12700
|
+
|
12701
|
+
|
12702
|
+
/**
|
12703
|
+
* Returns whether this field is set.
|
12704
|
+
* @return {boolean}
|
12705
|
+
*/
|
12706
|
+
proto.game.GameItemRequest.prototype.hasFileType = function() {
|
12707
|
+
return jspb.Message.getField(this, 13) != null;
|
12708
|
+
};
|
12709
|
+
|
12710
|
+
|
12615
12711
|
|
12616
12712
|
|
12617
12713
|
|
package/index.js
CHANGED
@@ -13,6 +13,8 @@ const FileService = require('./file/file_grpc_pb');
|
|
13
13
|
const FileServiceMessages = require('./file/file_pb');
|
14
14
|
const BetService = require('./bet/bet_grpc_pb');
|
15
15
|
const BetServiceMessages = require('./bet/bet_pb');
|
16
|
+
const CMSService = require('./cms/cms_grpc_pb');
|
17
|
+
const CMSServiceMessages = require('./cms/cms_pb');
|
16
18
|
module.exports = {
|
17
19
|
gRPC: gRPC,
|
18
20
|
maxSendMessageLength: 10388608,
|
@@ -42,4 +44,8 @@ module.exports = {
|
|
42
44
|
service: BetService,
|
43
45
|
messages: BetServiceMessages
|
44
46
|
},
|
47
|
+
cms: {
|
48
|
+
service: CMSService,
|
49
|
+
messages: CMSServiceMessages
|
50
|
+
},
|
45
51
|
};
|
package/package.json
CHANGED
package/update_protobuf.sh
CHANGED
@@ -5,4 +5,5 @@ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:user --grpc_out=grp
|
|
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
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
|
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
|