protobuf-platform 1.2.69 → 1.2.71
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/config/config.proto +7 -0
- package/config/config_grpc_pb.js +33 -0
- package/config/config_pb.js +330 -0
- package/game/game.proto +4 -0
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +152 -0
- package/package.json +1 -1
package/config/config.proto
CHANGED
|
@@ -20,6 +20,7 @@ service Config {
|
|
|
20
20
|
rpc getCountries(CommonCountriesRequest) returns (CommonCountriesResponse);
|
|
21
21
|
//File Uploads: R2
|
|
22
22
|
rpc uploadR2File(R2FileRequest) returns (R2FileResponse);
|
|
23
|
+
rpc getR2FilesList(R2FileListRequest) returns (R2FileListResponse);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
message PingRequest { string ping = 1; }
|
|
@@ -115,4 +116,10 @@ message R2FileRequest {
|
|
|
115
116
|
message R2FileResponse {
|
|
116
117
|
string key = 1;
|
|
117
118
|
string url = 2;
|
|
119
|
+
}
|
|
120
|
+
message R2FileListRequest {
|
|
121
|
+
string directory = 1;
|
|
122
|
+
}
|
|
123
|
+
message R2FileListResponse {
|
|
124
|
+
repeated string filename = 1;
|
|
118
125
|
}
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -158,6 +158,28 @@ function deserialize_config_PromptRequest(buffer_arg) {
|
|
|
158
158
|
return config_pb.PromptRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
function serialize_config_R2FileListRequest(arg) {
|
|
162
|
+
if (!(arg instanceof config_pb.R2FileListRequest)) {
|
|
163
|
+
throw new Error('Expected argument of type config.R2FileListRequest');
|
|
164
|
+
}
|
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function deserialize_config_R2FileListRequest(buffer_arg) {
|
|
169
|
+
return config_pb.R2FileListRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function serialize_config_R2FileListResponse(arg) {
|
|
173
|
+
if (!(arg instanceof config_pb.R2FileListResponse)) {
|
|
174
|
+
throw new Error('Expected argument of type config.R2FileListResponse');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_config_R2FileListResponse(buffer_arg) {
|
|
180
|
+
return config_pb.R2FileListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
161
183
|
function serialize_config_R2FileRequest(arg) {
|
|
162
184
|
if (!(arg instanceof config_pb.R2FileRequest)) {
|
|
163
185
|
throw new Error('Expected argument of type config.R2FileRequest');
|
|
@@ -321,6 +343,17 @@ uploadR2File: {
|
|
|
321
343
|
responseSerialize: serialize_config_R2FileResponse,
|
|
322
344
|
responseDeserialize: deserialize_config_R2FileResponse,
|
|
323
345
|
},
|
|
346
|
+
getR2FilesList: {
|
|
347
|
+
path: '/config.Config/getR2FilesList',
|
|
348
|
+
requestStream: false,
|
|
349
|
+
responseStream: false,
|
|
350
|
+
requestType: config_pb.R2FileListRequest,
|
|
351
|
+
responseType: config_pb.R2FileListResponse,
|
|
352
|
+
requestSerialize: serialize_config_R2FileListRequest,
|
|
353
|
+
requestDeserialize: deserialize_config_R2FileListRequest,
|
|
354
|
+
responseSerialize: serialize_config_R2FileListResponse,
|
|
355
|
+
responseDeserialize: deserialize_config_R2FileListResponse,
|
|
356
|
+
},
|
|
324
357
|
};
|
|
325
358
|
|
|
326
359
|
exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
|
package/config/config_pb.js
CHANGED
|
@@ -36,6 +36,8 @@ goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
|
|
|
36
36
|
goog.exportSymbol('proto.config.PingRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.config.PongResponse', null, global);
|
|
38
38
|
goog.exportSymbol('proto.config.PromptRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.config.R2FileListRequest', null, global);
|
|
40
|
+
goog.exportSymbol('proto.config.R2FileListResponse', null, global);
|
|
39
41
|
goog.exportSymbol('proto.config.R2FileRequest', null, global);
|
|
40
42
|
goog.exportSymbol('proto.config.R2FileResponse', null, global);
|
|
41
43
|
goog.exportSymbol('proto.config.SettingsRequest', null, global);
|
|
@@ -439,6 +441,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
439
441
|
*/
|
|
440
442
|
proto.config.R2FileResponse.displayName = 'proto.config.R2FileResponse';
|
|
441
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
* Generated by JsPbCodeGenerator.
|
|
446
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
447
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
448
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
449
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
450
|
+
* valid.
|
|
451
|
+
* @extends {jspb.Message}
|
|
452
|
+
* @constructor
|
|
453
|
+
*/
|
|
454
|
+
proto.config.R2FileListRequest = function(opt_data) {
|
|
455
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
456
|
+
};
|
|
457
|
+
goog.inherits(proto.config.R2FileListRequest, jspb.Message);
|
|
458
|
+
if (goog.DEBUG && !COMPILED) {
|
|
459
|
+
/**
|
|
460
|
+
* @public
|
|
461
|
+
* @override
|
|
462
|
+
*/
|
|
463
|
+
proto.config.R2FileListRequest.displayName = 'proto.config.R2FileListRequest';
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Generated by JsPbCodeGenerator.
|
|
467
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
468
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
469
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
470
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
471
|
+
* valid.
|
|
472
|
+
* @extends {jspb.Message}
|
|
473
|
+
* @constructor
|
|
474
|
+
*/
|
|
475
|
+
proto.config.R2FileListResponse = function(opt_data) {
|
|
476
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.config.R2FileListResponse.repeatedFields_, null);
|
|
477
|
+
};
|
|
478
|
+
goog.inherits(proto.config.R2FileListResponse, jspb.Message);
|
|
479
|
+
if (goog.DEBUG && !COMPILED) {
|
|
480
|
+
/**
|
|
481
|
+
* @public
|
|
482
|
+
* @override
|
|
483
|
+
*/
|
|
484
|
+
proto.config.R2FileListResponse.displayName = 'proto.config.R2FileListResponse';
|
|
485
|
+
}
|
|
442
486
|
|
|
443
487
|
|
|
444
488
|
|
|
@@ -4306,4 +4350,290 @@ proto.config.R2FileResponse.prototype.setUrl = function(value) {
|
|
|
4306
4350
|
};
|
|
4307
4351
|
|
|
4308
4352
|
|
|
4353
|
+
|
|
4354
|
+
|
|
4355
|
+
|
|
4356
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4357
|
+
/**
|
|
4358
|
+
* Creates an object representation of this proto.
|
|
4359
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4360
|
+
* Optional fields that are not set will be set to undefined.
|
|
4361
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4362
|
+
* For the list of reserved names please see:
|
|
4363
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4364
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4365
|
+
* JSPB instance for transitional soy proto support:
|
|
4366
|
+
* http://goto/soy-param-migration
|
|
4367
|
+
* @return {!Object}
|
|
4368
|
+
*/
|
|
4369
|
+
proto.config.R2FileListRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4370
|
+
return proto.config.R2FileListRequest.toObject(opt_includeInstance, this);
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4373
|
+
|
|
4374
|
+
/**
|
|
4375
|
+
* Static version of the {@see toObject} method.
|
|
4376
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4377
|
+
* the JSPB instance for transitional soy proto support:
|
|
4378
|
+
* http://goto/soy-param-migration
|
|
4379
|
+
* @param {!proto.config.R2FileListRequest} msg The msg instance to transform.
|
|
4380
|
+
* @return {!Object}
|
|
4381
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4382
|
+
*/
|
|
4383
|
+
proto.config.R2FileListRequest.toObject = function(includeInstance, msg) {
|
|
4384
|
+
var f, obj = {
|
|
4385
|
+
directory: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4386
|
+
};
|
|
4387
|
+
|
|
4388
|
+
if (includeInstance) {
|
|
4389
|
+
obj.$jspbMessageInstance = msg;
|
|
4390
|
+
}
|
|
4391
|
+
return obj;
|
|
4392
|
+
};
|
|
4393
|
+
}
|
|
4394
|
+
|
|
4395
|
+
|
|
4396
|
+
/**
|
|
4397
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4398
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4399
|
+
* @return {!proto.config.R2FileListRequest}
|
|
4400
|
+
*/
|
|
4401
|
+
proto.config.R2FileListRequest.deserializeBinary = function(bytes) {
|
|
4402
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4403
|
+
var msg = new proto.config.R2FileListRequest;
|
|
4404
|
+
return proto.config.R2FileListRequest.deserializeBinaryFromReader(msg, reader);
|
|
4405
|
+
};
|
|
4406
|
+
|
|
4407
|
+
|
|
4408
|
+
/**
|
|
4409
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4410
|
+
* given reader into the given message object.
|
|
4411
|
+
* @param {!proto.config.R2FileListRequest} msg The message object to deserialize into.
|
|
4412
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4413
|
+
* @return {!proto.config.R2FileListRequest}
|
|
4414
|
+
*/
|
|
4415
|
+
proto.config.R2FileListRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4416
|
+
while (reader.nextField()) {
|
|
4417
|
+
if (reader.isEndGroup()) {
|
|
4418
|
+
break;
|
|
4419
|
+
}
|
|
4420
|
+
var field = reader.getFieldNumber();
|
|
4421
|
+
switch (field) {
|
|
4422
|
+
case 1:
|
|
4423
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4424
|
+
msg.setDirectory(value);
|
|
4425
|
+
break;
|
|
4426
|
+
default:
|
|
4427
|
+
reader.skipField();
|
|
4428
|
+
break;
|
|
4429
|
+
}
|
|
4430
|
+
}
|
|
4431
|
+
return msg;
|
|
4432
|
+
};
|
|
4433
|
+
|
|
4434
|
+
|
|
4435
|
+
/**
|
|
4436
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4437
|
+
* @return {!Uint8Array}
|
|
4438
|
+
*/
|
|
4439
|
+
proto.config.R2FileListRequest.prototype.serializeBinary = function() {
|
|
4440
|
+
var writer = new jspb.BinaryWriter();
|
|
4441
|
+
proto.config.R2FileListRequest.serializeBinaryToWriter(this, writer);
|
|
4442
|
+
return writer.getResultBuffer();
|
|
4443
|
+
};
|
|
4444
|
+
|
|
4445
|
+
|
|
4446
|
+
/**
|
|
4447
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4448
|
+
* format), writing to the given BinaryWriter.
|
|
4449
|
+
* @param {!proto.config.R2FileListRequest} message
|
|
4450
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4451
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4452
|
+
*/
|
|
4453
|
+
proto.config.R2FileListRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4454
|
+
var f = undefined;
|
|
4455
|
+
f = message.getDirectory();
|
|
4456
|
+
if (f.length > 0) {
|
|
4457
|
+
writer.writeString(
|
|
4458
|
+
1,
|
|
4459
|
+
f
|
|
4460
|
+
);
|
|
4461
|
+
}
|
|
4462
|
+
};
|
|
4463
|
+
|
|
4464
|
+
|
|
4465
|
+
/**
|
|
4466
|
+
* optional string directory = 1;
|
|
4467
|
+
* @return {string}
|
|
4468
|
+
*/
|
|
4469
|
+
proto.config.R2FileListRequest.prototype.getDirectory = function() {
|
|
4470
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4471
|
+
};
|
|
4472
|
+
|
|
4473
|
+
|
|
4474
|
+
/**
|
|
4475
|
+
* @param {string} value
|
|
4476
|
+
* @return {!proto.config.R2FileListRequest} returns this
|
|
4477
|
+
*/
|
|
4478
|
+
proto.config.R2FileListRequest.prototype.setDirectory = function(value) {
|
|
4479
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4480
|
+
};
|
|
4481
|
+
|
|
4482
|
+
|
|
4483
|
+
|
|
4484
|
+
/**
|
|
4485
|
+
* List of repeated fields within this message type.
|
|
4486
|
+
* @private {!Array<number>}
|
|
4487
|
+
* @const
|
|
4488
|
+
*/
|
|
4489
|
+
proto.config.R2FileListResponse.repeatedFields_ = [1];
|
|
4490
|
+
|
|
4491
|
+
|
|
4492
|
+
|
|
4493
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4494
|
+
/**
|
|
4495
|
+
* Creates an object representation of this proto.
|
|
4496
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4497
|
+
* Optional fields that are not set will be set to undefined.
|
|
4498
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4499
|
+
* For the list of reserved names please see:
|
|
4500
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4501
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4502
|
+
* JSPB instance for transitional soy proto support:
|
|
4503
|
+
* http://goto/soy-param-migration
|
|
4504
|
+
* @return {!Object}
|
|
4505
|
+
*/
|
|
4506
|
+
proto.config.R2FileListResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4507
|
+
return proto.config.R2FileListResponse.toObject(opt_includeInstance, this);
|
|
4508
|
+
};
|
|
4509
|
+
|
|
4510
|
+
|
|
4511
|
+
/**
|
|
4512
|
+
* Static version of the {@see toObject} method.
|
|
4513
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4514
|
+
* the JSPB instance for transitional soy proto support:
|
|
4515
|
+
* http://goto/soy-param-migration
|
|
4516
|
+
* @param {!proto.config.R2FileListResponse} msg The msg instance to transform.
|
|
4517
|
+
* @return {!Object}
|
|
4518
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4519
|
+
*/
|
|
4520
|
+
proto.config.R2FileListResponse.toObject = function(includeInstance, msg) {
|
|
4521
|
+
var f, obj = {
|
|
4522
|
+
filenameList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
4523
|
+
};
|
|
4524
|
+
|
|
4525
|
+
if (includeInstance) {
|
|
4526
|
+
obj.$jspbMessageInstance = msg;
|
|
4527
|
+
}
|
|
4528
|
+
return obj;
|
|
4529
|
+
};
|
|
4530
|
+
}
|
|
4531
|
+
|
|
4532
|
+
|
|
4533
|
+
/**
|
|
4534
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4535
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4536
|
+
* @return {!proto.config.R2FileListResponse}
|
|
4537
|
+
*/
|
|
4538
|
+
proto.config.R2FileListResponse.deserializeBinary = function(bytes) {
|
|
4539
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4540
|
+
var msg = new proto.config.R2FileListResponse;
|
|
4541
|
+
return proto.config.R2FileListResponse.deserializeBinaryFromReader(msg, reader);
|
|
4542
|
+
};
|
|
4543
|
+
|
|
4544
|
+
|
|
4545
|
+
/**
|
|
4546
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4547
|
+
* given reader into the given message object.
|
|
4548
|
+
* @param {!proto.config.R2FileListResponse} msg The message object to deserialize into.
|
|
4549
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4550
|
+
* @return {!proto.config.R2FileListResponse}
|
|
4551
|
+
*/
|
|
4552
|
+
proto.config.R2FileListResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4553
|
+
while (reader.nextField()) {
|
|
4554
|
+
if (reader.isEndGroup()) {
|
|
4555
|
+
break;
|
|
4556
|
+
}
|
|
4557
|
+
var field = reader.getFieldNumber();
|
|
4558
|
+
switch (field) {
|
|
4559
|
+
case 1:
|
|
4560
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4561
|
+
msg.addFilename(value);
|
|
4562
|
+
break;
|
|
4563
|
+
default:
|
|
4564
|
+
reader.skipField();
|
|
4565
|
+
break;
|
|
4566
|
+
}
|
|
4567
|
+
}
|
|
4568
|
+
return msg;
|
|
4569
|
+
};
|
|
4570
|
+
|
|
4571
|
+
|
|
4572
|
+
/**
|
|
4573
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4574
|
+
* @return {!Uint8Array}
|
|
4575
|
+
*/
|
|
4576
|
+
proto.config.R2FileListResponse.prototype.serializeBinary = function() {
|
|
4577
|
+
var writer = new jspb.BinaryWriter();
|
|
4578
|
+
proto.config.R2FileListResponse.serializeBinaryToWriter(this, writer);
|
|
4579
|
+
return writer.getResultBuffer();
|
|
4580
|
+
};
|
|
4581
|
+
|
|
4582
|
+
|
|
4583
|
+
/**
|
|
4584
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4585
|
+
* format), writing to the given BinaryWriter.
|
|
4586
|
+
* @param {!proto.config.R2FileListResponse} message
|
|
4587
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4588
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4589
|
+
*/
|
|
4590
|
+
proto.config.R2FileListResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4591
|
+
var f = undefined;
|
|
4592
|
+
f = message.getFilenameList();
|
|
4593
|
+
if (f.length > 0) {
|
|
4594
|
+
writer.writeRepeatedString(
|
|
4595
|
+
1,
|
|
4596
|
+
f
|
|
4597
|
+
);
|
|
4598
|
+
}
|
|
4599
|
+
};
|
|
4600
|
+
|
|
4601
|
+
|
|
4602
|
+
/**
|
|
4603
|
+
* repeated string filename = 1;
|
|
4604
|
+
* @return {!Array<string>}
|
|
4605
|
+
*/
|
|
4606
|
+
proto.config.R2FileListResponse.prototype.getFilenameList = function() {
|
|
4607
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
4608
|
+
};
|
|
4609
|
+
|
|
4610
|
+
|
|
4611
|
+
/**
|
|
4612
|
+
* @param {!Array<string>} value
|
|
4613
|
+
* @return {!proto.config.R2FileListResponse} returns this
|
|
4614
|
+
*/
|
|
4615
|
+
proto.config.R2FileListResponse.prototype.setFilenameList = function(value) {
|
|
4616
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
4617
|
+
};
|
|
4618
|
+
|
|
4619
|
+
|
|
4620
|
+
/**
|
|
4621
|
+
* @param {string} value
|
|
4622
|
+
* @param {number=} opt_index
|
|
4623
|
+
* @return {!proto.config.R2FileListResponse} returns this
|
|
4624
|
+
*/
|
|
4625
|
+
proto.config.R2FileListResponse.prototype.addFilename = function(value, opt_index) {
|
|
4626
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
4627
|
+
};
|
|
4628
|
+
|
|
4629
|
+
|
|
4630
|
+
/**
|
|
4631
|
+
* Clears the list making it empty but non-null.
|
|
4632
|
+
* @return {!proto.config.R2FileListResponse} returns this
|
|
4633
|
+
*/
|
|
4634
|
+
proto.config.R2FileListResponse.prototype.clearFilenameList = function() {
|
|
4635
|
+
return this.setFilenameList([]);
|
|
4636
|
+
};
|
|
4637
|
+
|
|
4638
|
+
|
|
4309
4639
|
goog.object.extend(exports, proto.config);
|
package/game/game.proto
CHANGED
|
@@ -43,6 +43,7 @@ service Game {
|
|
|
43
43
|
rpc deleteSingleProvider(GetProviderRequest) returns (ProviderStatusResponse);
|
|
44
44
|
rpc readListProviders(PaginationRequest) returns (ProviderItemsResponse);
|
|
45
45
|
rpc updateProvidersInBunch(ItemsBunchRequest) returns (ProviderStatusResponse);
|
|
46
|
+
rpc syncProvidersImages(SyncImagesRequest) returns (ProviderStatusResponse);
|
|
46
47
|
//Games
|
|
47
48
|
rpc parseGames(ParseGamesRequest) returns (ParseGamesResponse);
|
|
48
49
|
rpc readSingleGame(GetGameRequest) returns (GameResponse);
|
|
@@ -179,6 +180,9 @@ message ItemsBunchRequest {
|
|
|
179
180
|
repeated int32 ids = 1;
|
|
180
181
|
optional int32 is_active = 2;
|
|
181
182
|
}
|
|
183
|
+
message SyncImagesRequest {
|
|
184
|
+
string type = 1;
|
|
185
|
+
}
|
|
182
186
|
//Media
|
|
183
187
|
message File { bytes media = 1; }
|
|
184
188
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -807,6 +807,17 @@ function deserialize_game_SegmentedUserResponse(buffer_arg) {
|
|
|
807
807
|
return game_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
+
function serialize_game_SyncImagesRequest(arg) {
|
|
811
|
+
if (!(arg instanceof game_pb.SyncImagesRequest)) {
|
|
812
|
+
throw new Error('Expected argument of type game.SyncImagesRequest');
|
|
813
|
+
}
|
|
814
|
+
return Buffer.from(arg.serializeBinary());
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
function deserialize_game_SyncImagesRequest(buffer_arg) {
|
|
818
|
+
return game_pb.SyncImagesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
819
|
+
}
|
|
820
|
+
|
|
810
821
|
function serialize_game_TagGamesRequest(arg) {
|
|
811
822
|
if (!(arg instanceof game_pb.TagGamesRequest)) {
|
|
812
823
|
throw new Error('Expected argument of type game.TagGamesRequest');
|
|
@@ -1332,6 +1343,17 @@ createSingleProvider: {
|
|
|
1332
1343
|
responseSerialize: serialize_game_ProviderStatusResponse,
|
|
1333
1344
|
responseDeserialize: deserialize_game_ProviderStatusResponse,
|
|
1334
1345
|
},
|
|
1346
|
+
syncProvidersImages: {
|
|
1347
|
+
path: '/game.Game/syncProvidersImages',
|
|
1348
|
+
requestStream: false,
|
|
1349
|
+
responseStream: false,
|
|
1350
|
+
requestType: game_pb.SyncImagesRequest,
|
|
1351
|
+
responseType: game_pb.ProviderStatusResponse,
|
|
1352
|
+
requestSerialize: serialize_game_SyncImagesRequest,
|
|
1353
|
+
requestDeserialize: deserialize_game_SyncImagesRequest,
|
|
1354
|
+
responseSerialize: serialize_game_ProviderStatusResponse,
|
|
1355
|
+
responseDeserialize: deserialize_game_ProviderStatusResponse,
|
|
1356
|
+
},
|
|
1335
1357
|
// Games
|
|
1336
1358
|
parseGames: {
|
|
1337
1359
|
path: '/game.Game/parseGames',
|
package/game/game_pb.js
CHANGED
|
@@ -115,6 +115,7 @@ goog.exportSymbol('proto.game.SearchGamesIntoProvidersRequest', null, global);
|
|
|
115
115
|
goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
|
|
116
116
|
goog.exportSymbol('proto.game.SegmentedUserRequest', null, global);
|
|
117
117
|
goog.exportSymbol('proto.game.SegmentedUserResponse', null, global);
|
|
118
|
+
goog.exportSymbol('proto.game.SyncImagesRequest', null, global);
|
|
118
119
|
goog.exportSymbol('proto.game.TagGamesRequest', null, global);
|
|
119
120
|
goog.exportSymbol('proto.game.TagItem', null, global);
|
|
120
121
|
goog.exportSymbol('proto.game.TagItemRequest', null, global);
|
|
@@ -387,6 +388,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
387
388
|
*/
|
|
388
389
|
proto.game.ItemsBunchRequest.displayName = 'proto.game.ItemsBunchRequest';
|
|
389
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Generated by JsPbCodeGenerator.
|
|
393
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
394
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
395
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
396
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
397
|
+
* valid.
|
|
398
|
+
* @extends {jspb.Message}
|
|
399
|
+
* @constructor
|
|
400
|
+
*/
|
|
401
|
+
proto.game.SyncImagesRequest = function(opt_data) {
|
|
402
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
403
|
+
};
|
|
404
|
+
goog.inherits(proto.game.SyncImagesRequest, jspb.Message);
|
|
405
|
+
if (goog.DEBUG && !COMPILED) {
|
|
406
|
+
/**
|
|
407
|
+
* @public
|
|
408
|
+
* @override
|
|
409
|
+
*/
|
|
410
|
+
proto.game.SyncImagesRequest.displayName = 'proto.game.SyncImagesRequest';
|
|
411
|
+
}
|
|
390
412
|
/**
|
|
391
413
|
* Generated by JsPbCodeGenerator.
|
|
392
414
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6087,6 +6109,136 @@ proto.game.ItemsBunchRequest.prototype.hasIsActive = function() {
|
|
|
6087
6109
|
|
|
6088
6110
|
|
|
6089
6111
|
|
|
6112
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6113
|
+
/**
|
|
6114
|
+
* Creates an object representation of this proto.
|
|
6115
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6116
|
+
* Optional fields that are not set will be set to undefined.
|
|
6117
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6118
|
+
* For the list of reserved names please see:
|
|
6119
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6120
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6121
|
+
* JSPB instance for transitional soy proto support:
|
|
6122
|
+
* http://goto/soy-param-migration
|
|
6123
|
+
* @return {!Object}
|
|
6124
|
+
*/
|
|
6125
|
+
proto.game.SyncImagesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6126
|
+
return proto.game.SyncImagesRequest.toObject(opt_includeInstance, this);
|
|
6127
|
+
};
|
|
6128
|
+
|
|
6129
|
+
|
|
6130
|
+
/**
|
|
6131
|
+
* Static version of the {@see toObject} method.
|
|
6132
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6133
|
+
* the JSPB instance for transitional soy proto support:
|
|
6134
|
+
* http://goto/soy-param-migration
|
|
6135
|
+
* @param {!proto.game.SyncImagesRequest} msg The msg instance to transform.
|
|
6136
|
+
* @return {!Object}
|
|
6137
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6138
|
+
*/
|
|
6139
|
+
proto.game.SyncImagesRequest.toObject = function(includeInstance, msg) {
|
|
6140
|
+
var f, obj = {
|
|
6141
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
6142
|
+
};
|
|
6143
|
+
|
|
6144
|
+
if (includeInstance) {
|
|
6145
|
+
obj.$jspbMessageInstance = msg;
|
|
6146
|
+
}
|
|
6147
|
+
return obj;
|
|
6148
|
+
};
|
|
6149
|
+
}
|
|
6150
|
+
|
|
6151
|
+
|
|
6152
|
+
/**
|
|
6153
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6154
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6155
|
+
* @return {!proto.game.SyncImagesRequest}
|
|
6156
|
+
*/
|
|
6157
|
+
proto.game.SyncImagesRequest.deserializeBinary = function(bytes) {
|
|
6158
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6159
|
+
var msg = new proto.game.SyncImagesRequest;
|
|
6160
|
+
return proto.game.SyncImagesRequest.deserializeBinaryFromReader(msg, reader);
|
|
6161
|
+
};
|
|
6162
|
+
|
|
6163
|
+
|
|
6164
|
+
/**
|
|
6165
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6166
|
+
* given reader into the given message object.
|
|
6167
|
+
* @param {!proto.game.SyncImagesRequest} msg The message object to deserialize into.
|
|
6168
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6169
|
+
* @return {!proto.game.SyncImagesRequest}
|
|
6170
|
+
*/
|
|
6171
|
+
proto.game.SyncImagesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6172
|
+
while (reader.nextField()) {
|
|
6173
|
+
if (reader.isEndGroup()) {
|
|
6174
|
+
break;
|
|
6175
|
+
}
|
|
6176
|
+
var field = reader.getFieldNumber();
|
|
6177
|
+
switch (field) {
|
|
6178
|
+
case 1:
|
|
6179
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6180
|
+
msg.setType(value);
|
|
6181
|
+
break;
|
|
6182
|
+
default:
|
|
6183
|
+
reader.skipField();
|
|
6184
|
+
break;
|
|
6185
|
+
}
|
|
6186
|
+
}
|
|
6187
|
+
return msg;
|
|
6188
|
+
};
|
|
6189
|
+
|
|
6190
|
+
|
|
6191
|
+
/**
|
|
6192
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6193
|
+
* @return {!Uint8Array}
|
|
6194
|
+
*/
|
|
6195
|
+
proto.game.SyncImagesRequest.prototype.serializeBinary = function() {
|
|
6196
|
+
var writer = new jspb.BinaryWriter();
|
|
6197
|
+
proto.game.SyncImagesRequest.serializeBinaryToWriter(this, writer);
|
|
6198
|
+
return writer.getResultBuffer();
|
|
6199
|
+
};
|
|
6200
|
+
|
|
6201
|
+
|
|
6202
|
+
/**
|
|
6203
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6204
|
+
* format), writing to the given BinaryWriter.
|
|
6205
|
+
* @param {!proto.game.SyncImagesRequest} message
|
|
6206
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6207
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6208
|
+
*/
|
|
6209
|
+
proto.game.SyncImagesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6210
|
+
var f = undefined;
|
|
6211
|
+
f = message.getType();
|
|
6212
|
+
if (f.length > 0) {
|
|
6213
|
+
writer.writeString(
|
|
6214
|
+
1,
|
|
6215
|
+
f
|
|
6216
|
+
);
|
|
6217
|
+
}
|
|
6218
|
+
};
|
|
6219
|
+
|
|
6220
|
+
|
|
6221
|
+
/**
|
|
6222
|
+
* optional string type = 1;
|
|
6223
|
+
* @return {string}
|
|
6224
|
+
*/
|
|
6225
|
+
proto.game.SyncImagesRequest.prototype.getType = function() {
|
|
6226
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6227
|
+
};
|
|
6228
|
+
|
|
6229
|
+
|
|
6230
|
+
/**
|
|
6231
|
+
* @param {string} value
|
|
6232
|
+
* @return {!proto.game.SyncImagesRequest} returns this
|
|
6233
|
+
*/
|
|
6234
|
+
proto.game.SyncImagesRequest.prototype.setType = function(value) {
|
|
6235
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6236
|
+
};
|
|
6237
|
+
|
|
6238
|
+
|
|
6239
|
+
|
|
6240
|
+
|
|
6241
|
+
|
|
6090
6242
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6091
6243
|
/**
|
|
6092
6244
|
* Creates an object representation of this proto.
|