protobuf-platform 1.2.69 → 1.2.70
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/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);
|