core-3nweb-client-lib 0.27.4 → 0.27.5

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.
Files changed (84) hide show
  1. package/build/api-defs/files.d.ts +40 -10
  2. package/build/core/asmail/delivery/per-recipient-wip.js +2 -2
  3. package/build/core/asmail/inbox/inbox-events.js +10 -5
  4. package/build/core/asmail/inbox/index.d.ts +3 -2
  5. package/build/core/asmail/inbox/index.js +14 -10
  6. package/build/core/asmail/inbox/msg-indexing.d.ts +17 -64
  7. package/build/core/asmail/inbox/msg-indexing.js +440 -311
  8. package/build/core/asmail/inbox/msg-on-disk.js +2 -1
  9. package/build/core/asmail/index.js +3 -2
  10. package/build/core/asmail/keyring/correspondent-keys.js +3 -1
  11. package/build/core/asmail/keyring/index.d.ts +1 -4
  12. package/build/core/asmail/keyring/index.js +6 -6
  13. package/build/core/asmail/msg/opener.js +4 -3
  14. package/build/core/asmail/msg/packer.d.ts +1 -0
  15. package/build/core/asmail/msg/packer.js +8 -4
  16. package/build/core/index.js +2 -3
  17. package/build/core/storage/local/obj-files.js +2 -1
  18. package/build/core/storage/synced/storage.js +3 -2
  19. package/build/core/storage/synced/upload-header-file.js +4 -2
  20. package/build/core/storage/synced/upsyncer.js +3 -5
  21. package/build/ipc-via-protobuf/asmail-cap.js +14 -15
  22. package/build/ipc-via-protobuf/bytes.js +42 -18
  23. package/build/ipc-via-protobuf/file.js +43 -39
  24. package/build/ipc-via-protobuf/fs.js +72 -67
  25. package/build/ipc-via-protobuf/mailerid.js +2 -2
  26. package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -0
  27. package/build/ipc-via-protobuf/protobuf-msg.js +5 -1
  28. package/build/ipc-via-protobuf/startup-cap.js +8 -8
  29. package/build/ipc-via-protobuf/storage-cap.js +4 -4
  30. package/build/lib-client/3nstorage/xsp-fs/common.js +2 -0
  31. package/build/lib-client/3nstorage/xsp-fs/file-node.js +0 -17
  32. package/build/lib-client/3nstorage/xsp-fs/file.d.ts +1 -1
  33. package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +1 -1
  34. package/build/lib-client/3nstorage/xsp-fs/folder-node.js +13 -7
  35. package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +1 -1
  36. package/build/lib-client/3nstorage/xsp-fs/fs.js +1 -1
  37. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +2 -2
  38. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +7 -3
  39. package/build/lib-client/3nstorage/xsp-fs/node-persistence.d.ts +1 -0
  40. package/build/lib-client/3nstorage/xsp-fs/node-persistence.js +7 -5
  41. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v1.js +3 -4
  42. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v2.js +20 -15
  43. package/build/lib-client/cryptor/cryptor-in-worker.js +37 -47
  44. package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
  45. package/build/lib-client/cryptor/cryptor.wasm +0 -0
  46. package/build/lib-client/cryptor/in-proc-js.js +15 -12
  47. package/build/lib-client/cryptor/in-proc-wasm.js +11 -8
  48. package/build/lib-client/cryptor/serialization-for-wasm.d.ts +36 -0
  49. package/build/lib-client/cryptor/serialization-for-wasm.js +58 -0
  50. package/build/lib-client/cryptor-work-labels.d.ts +26 -0
  51. package/build/lib-client/cryptor-work-labels.js +152 -0
  52. package/build/lib-client/fs-sync-utils.d.ts +7 -1
  53. package/build/lib-client/fs-sync-utils.js +18 -7
  54. package/build/lib-client/local-files/dev-file-src.d.ts +2 -1
  55. package/build/lib-client/local-files/dev-file-src.js +5 -1
  56. package/build/lib-client/local-files/device-fs.js +2 -1
  57. package/build/lib-client/objs-on-disk/obj-on-disk.js +5 -1
  58. package/build/lib-client/request-utils.js +14 -14
  59. package/build/lib-common/async-cryptor-wrap.d.ts +9 -9
  60. package/build/lib-common/async-cryptor-wrap.js +13 -13
  61. package/build/lib-common/byte-streaming/pipe.d.ts +1 -1
  62. package/build/lib-common/byte-streaming/pipe.js +3 -3
  63. package/build/lib-common/byte-streaming/wrapping.js +4 -2
  64. package/build/lib-common/json-utils.js +0 -3
  65. package/build/lib-common/processes/synced.js +0 -184
  66. package/build/lib-sqlite-on-3nstorage/index.d.ts +32 -0
  67. package/build/lib-sqlite-on-3nstorage/index.js +117 -0
  68. package/build/lib-sqlite-on-3nstorage/sqljs.d.ts +279 -0
  69. package/build/lib-sqlite-on-3nstorage/sqljs.js +223 -0
  70. package/build/protos/asmail.proto.js +3748 -1121
  71. package/build/protos/bytes.proto.js +731 -204
  72. package/build/protos/common.proto.js +192 -44
  73. package/build/protos/cryptor.proto.js +184 -61
  74. package/build/protos/file.proto.js +1336 -324
  75. package/build/protos/fs.proto.js +3099 -846
  76. package/build/protos/ipc.proto.js +244 -61
  77. package/build/protos/logger.proto.js +219 -53
  78. package/build/protos/mailerid.proto.js +230 -50
  79. package/build/protos/startup.proto.js +341 -77
  80. package/build/protos/storage.proto.js +276 -62
  81. package/package.json +8 -7
  82. package/protos/bytes.proto +13 -4
  83. package/protos/file.proto +4 -1
  84. package/protos/fs.proto +4 -1
@@ -132,15 +132,18 @@ $root.bytes = (function() {
132
132
  while (reader.pos < end) {
133
133
  var tag = reader.uint32();
134
134
  switch (tag >>> 3) {
135
- case 1:
136
- message.pos = reader.uint64();
137
- break;
138
- case 2:
139
- message.del = reader.uint64();
140
- break;
141
- case 3:
142
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
143
- break;
135
+ case 1: {
136
+ message.pos = reader.uint64();
137
+ break;
138
+ }
139
+ case 2: {
140
+ message.del = reader.uint64();
141
+ break;
142
+ }
143
+ case 3: {
144
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
145
+ break;
146
+ }
144
147
  default:
145
148
  reader.skipType(tag & 7);
146
149
  break;
@@ -280,6 +283,21 @@ $root.bytes = (function() {
280
283
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
281
284
  };
282
285
 
286
+ /**
287
+ * Gets the default type url for SpliceRequestBody
288
+ * @function getTypeUrl
289
+ * @memberof bytes.SpliceRequestBody
290
+ * @static
291
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
292
+ * @returns {string} The default type url
293
+ */
294
+ SpliceRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
295
+ if (typeUrlPrefix === undefined) {
296
+ typeUrlPrefix = "type.googleapis.com";
297
+ }
298
+ return typeUrlPrefix + "/bytes.SpliceRequestBody";
299
+ };
300
+
283
301
  return SpliceRequestBody;
284
302
  })();
285
303
 
@@ -375,9 +393,10 @@ $root.bytes = (function() {
375
393
  while (reader.pos < end) {
376
394
  var tag = reader.uint32();
377
395
  switch (tag >>> 3) {
378
- case 1:
379
- message.size = reader.uint64();
380
- break;
396
+ case 1: {
397
+ message.size = reader.uint64();
398
+ break;
399
+ }
381
400
  default:
382
401
  reader.skipType(tag & 7);
383
402
  break;
@@ -481,6 +500,21 @@ $root.bytes = (function() {
481
500
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
482
501
  };
483
502
 
503
+ /**
504
+ * Gets the default type url for TruncateRequestBody
505
+ * @function getTypeUrl
506
+ * @memberof bytes.TruncateRequestBody
507
+ * @static
508
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
509
+ * @returns {string} The default type url
510
+ */
511
+ TruncateRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
512
+ if (typeUrlPrefix === undefined) {
513
+ typeUrlPrefix = "type.googleapis.com";
514
+ }
515
+ return typeUrlPrefix + "/bytes.TruncateRequestBody";
516
+ };
517
+
484
518
  return TruncateRequestBody;
485
519
  })();
486
520
 
@@ -589,14 +623,16 @@ $root.bytes = (function() {
589
623
  while (reader.pos < end) {
590
624
  var tag = reader.uint32();
591
625
  switch (tag >>> 3) {
592
- case 1:
593
- message.base = $root.common.UInt64Value.decode(reader, reader.uint32());
594
- break;
595
- case 2:
596
- if (!(message.sections && message.sections.length))
597
- message.sections = [];
598
- message.sections.push($root.bytes.FileLayoutMsg.LayoutSection.decode(reader, reader.uint32()));
599
- break;
626
+ case 1: {
627
+ message.base = $root.common.UInt64Value.decode(reader, reader.uint32());
628
+ break;
629
+ }
630
+ case 2: {
631
+ if (!(message.sections && message.sections.length))
632
+ message.sections = [];
633
+ message.sections.push($root.bytes.FileLayoutMsg.LayoutSection.decode(reader, reader.uint32()));
634
+ break;
635
+ }
600
636
  default:
601
637
  reader.skipType(tag & 7);
602
638
  break;
@@ -717,6 +753,21 @@ $root.bytes = (function() {
717
753
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
718
754
  };
719
755
 
756
+ /**
757
+ * Gets the default type url for FileLayoutMsg
758
+ * @function getTypeUrl
759
+ * @memberof bytes.FileLayoutMsg
760
+ * @static
761
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
762
+ * @returns {string} The default type url
763
+ */
764
+ FileLayoutMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
765
+ if (typeUrlPrefix === undefined) {
766
+ typeUrlPrefix = "type.googleapis.com";
767
+ }
768
+ return typeUrlPrefix + "/bytes.FileLayoutMsg";
769
+ };
770
+
720
771
  FileLayoutMsg.LayoutSection = (function() {
721
772
 
722
773
  /**
@@ -831,15 +882,18 @@ $root.bytes = (function() {
831
882
  while (reader.pos < end) {
832
883
  var tag = reader.uint32();
833
884
  switch (tag >>> 3) {
834
- case 1:
835
- message.src = reader.string();
836
- break;
837
- case 2:
838
- message.ofs = reader.uint64();
839
- break;
840
- case 3:
841
- message.len = reader.uint64();
842
- break;
885
+ case 1: {
886
+ message.src = reader.string();
887
+ break;
888
+ }
889
+ case 2: {
890
+ message.ofs = reader.uint64();
891
+ break;
892
+ }
893
+ case 3: {
894
+ message.len = reader.uint64();
895
+ break;
896
+ }
843
897
  default:
844
898
  reader.skipType(tag & 7);
845
899
  break;
@@ -974,6 +1028,21 @@ $root.bytes = (function() {
974
1028
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
975
1029
  };
976
1030
 
1031
+ /**
1032
+ * Gets the default type url for LayoutSection
1033
+ * @function getTypeUrl
1034
+ * @memberof bytes.FileLayoutMsg.LayoutSection
1035
+ * @static
1036
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1037
+ * @returns {string} The default type url
1038
+ */
1039
+ LayoutSection.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1040
+ if (typeUrlPrefix === undefined) {
1041
+ typeUrlPrefix = "type.googleapis.com";
1042
+ }
1043
+ return typeUrlPrefix + "/bytes.FileLayoutMsg.LayoutSection";
1044
+ };
1045
+
977
1046
  return LayoutSection;
978
1047
  })();
979
1048
 
@@ -1072,9 +1141,10 @@ $root.bytes = (function() {
1072
1141
  while (reader.pos < end) {
1073
1142
  var tag = reader.uint32();
1074
1143
  switch (tag >>> 3) {
1075
- case 1:
1076
- message.err = $root.common.ErrorValue.decode(reader, reader.uint32());
1077
- break;
1144
+ case 1: {
1145
+ message.err = $root.common.ErrorValue.decode(reader, reader.uint32());
1146
+ break;
1147
+ }
1078
1148
  default:
1079
1149
  reader.skipType(tag & 7);
1080
1150
  break;
@@ -1169,27 +1239,42 @@ $root.bytes = (function() {
1169
1239
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1170
1240
  };
1171
1241
 
1242
+ /**
1243
+ * Gets the default type url for DoneRequestBody
1244
+ * @function getTypeUrl
1245
+ * @memberof bytes.DoneRequestBody
1246
+ * @static
1247
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1248
+ * @returns {string} The default type url
1249
+ */
1250
+ DoneRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1251
+ if (typeUrlPrefix === undefined) {
1252
+ typeUrlPrefix = "type.googleapis.com";
1253
+ }
1254
+ return typeUrlPrefix + "/bytes.DoneRequestBody";
1255
+ };
1256
+
1172
1257
  return DoneRequestBody;
1173
1258
  })();
1174
1259
 
1175
- bytes.ReadRequestBody = (function() {
1260
+ bytes.ReadReplyBody = (function() {
1176
1261
 
1177
1262
  /**
1178
- * Properties of a ReadRequestBody.
1263
+ * Properties of a ReadReplyBody.
1179
1264
  * @memberof bytes
1180
- * @interface IReadRequestBody
1181
- * @property {common.IUInt64Value|null} [len] ReadRequestBody len
1265
+ * @interface IReadReplyBody
1266
+ * @property {common.IBytesValue|null} [bytes] ReadReplyBody bytes
1182
1267
  */
1183
1268
 
1184
1269
  /**
1185
- * Constructs a new ReadRequestBody.
1270
+ * Constructs a new ReadReplyBody.
1186
1271
  * @memberof bytes
1187
- * @classdesc Represents a ReadRequestBody.
1188
- * @implements IReadRequestBody
1272
+ * @classdesc Represents a ReadReplyBody.
1273
+ * @implements IReadReplyBody
1189
1274
  * @constructor
1190
- * @param {bytes.IReadRequestBody=} [properties] Properties to set
1275
+ * @param {bytes.IReadReplyBody=} [properties] Properties to set
1191
1276
  */
1192
- function ReadRequestBody(properties) {
1277
+ function ReadReplyBody(properties) {
1193
1278
  if (properties)
1194
1279
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1195
1280
  if (properties[keys[i]] != null)
@@ -1197,35 +1282,243 @@ $root.bytes = (function() {
1197
1282
  }
1198
1283
 
1199
1284
  /**
1200
- * ReadRequestBody len.
1285
+ * ReadReplyBody bytes.
1286
+ * @member {common.IBytesValue|null|undefined} bytes
1287
+ * @memberof bytes.ReadReplyBody
1288
+ * @instance
1289
+ */
1290
+ ReadReplyBody.prototype.bytes = null;
1291
+
1292
+ /**
1293
+ * Creates a new ReadReplyBody instance using the specified properties.
1294
+ * @function create
1295
+ * @memberof bytes.ReadReplyBody
1296
+ * @static
1297
+ * @param {bytes.IReadReplyBody=} [properties] Properties to set
1298
+ * @returns {bytes.ReadReplyBody} ReadReplyBody instance
1299
+ */
1300
+ ReadReplyBody.create = function create(properties) {
1301
+ return new ReadReplyBody(properties);
1302
+ };
1303
+
1304
+ /**
1305
+ * Encodes the specified ReadReplyBody message. Does not implicitly {@link bytes.ReadReplyBody.verify|verify} messages.
1306
+ * @function encode
1307
+ * @memberof bytes.ReadReplyBody
1308
+ * @static
1309
+ * @param {bytes.IReadReplyBody} message ReadReplyBody message or plain object to encode
1310
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1311
+ * @returns {$protobuf.Writer} Writer
1312
+ */
1313
+ ReadReplyBody.encode = function encode(message, writer) {
1314
+ if (!writer)
1315
+ writer = $Writer.create();
1316
+ if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
1317
+ $root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
1318
+ return writer;
1319
+ };
1320
+
1321
+ /**
1322
+ * Encodes the specified ReadReplyBody message, length delimited. Does not implicitly {@link bytes.ReadReplyBody.verify|verify} messages.
1323
+ * @function encodeDelimited
1324
+ * @memberof bytes.ReadReplyBody
1325
+ * @static
1326
+ * @param {bytes.IReadReplyBody} message ReadReplyBody message or plain object to encode
1327
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1328
+ * @returns {$protobuf.Writer} Writer
1329
+ */
1330
+ ReadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
1331
+ return this.encode(message, writer).ldelim();
1332
+ };
1333
+
1334
+ /**
1335
+ * Decodes a ReadReplyBody message from the specified reader or buffer.
1336
+ * @function decode
1337
+ * @memberof bytes.ReadReplyBody
1338
+ * @static
1339
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1340
+ * @param {number} [length] Message length if known beforehand
1341
+ * @returns {bytes.ReadReplyBody} ReadReplyBody
1342
+ * @throws {Error} If the payload is not a reader or valid buffer
1343
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1344
+ */
1345
+ ReadReplyBody.decode = function decode(reader, length) {
1346
+ if (!(reader instanceof $Reader))
1347
+ reader = $Reader.create(reader);
1348
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.ReadReplyBody();
1349
+ while (reader.pos < end) {
1350
+ var tag = reader.uint32();
1351
+ switch (tag >>> 3) {
1352
+ case 1: {
1353
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
1354
+ break;
1355
+ }
1356
+ default:
1357
+ reader.skipType(tag & 7);
1358
+ break;
1359
+ }
1360
+ }
1361
+ return message;
1362
+ };
1363
+
1364
+ /**
1365
+ * Decodes a ReadReplyBody message from the specified reader or buffer, length delimited.
1366
+ * @function decodeDelimited
1367
+ * @memberof bytes.ReadReplyBody
1368
+ * @static
1369
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1370
+ * @returns {bytes.ReadReplyBody} ReadReplyBody
1371
+ * @throws {Error} If the payload is not a reader or valid buffer
1372
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1373
+ */
1374
+ ReadReplyBody.decodeDelimited = function decodeDelimited(reader) {
1375
+ if (!(reader instanceof $Reader))
1376
+ reader = new $Reader(reader);
1377
+ return this.decode(reader, reader.uint32());
1378
+ };
1379
+
1380
+ /**
1381
+ * Verifies a ReadReplyBody message.
1382
+ * @function verify
1383
+ * @memberof bytes.ReadReplyBody
1384
+ * @static
1385
+ * @param {Object.<string,*>} message Plain object to verify
1386
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1387
+ */
1388
+ ReadReplyBody.verify = function verify(message) {
1389
+ if (typeof message !== "object" || message === null)
1390
+ return "object expected";
1391
+ if (message.bytes != null && message.hasOwnProperty("bytes")) {
1392
+ var error = $root.common.BytesValue.verify(message.bytes);
1393
+ if (error)
1394
+ return "bytes." + error;
1395
+ }
1396
+ return null;
1397
+ };
1398
+
1399
+ /**
1400
+ * Creates a ReadReplyBody message from a plain object. Also converts values to their respective internal types.
1401
+ * @function fromObject
1402
+ * @memberof bytes.ReadReplyBody
1403
+ * @static
1404
+ * @param {Object.<string,*>} object Plain object
1405
+ * @returns {bytes.ReadReplyBody} ReadReplyBody
1406
+ */
1407
+ ReadReplyBody.fromObject = function fromObject(object) {
1408
+ if (object instanceof $root.bytes.ReadReplyBody)
1409
+ return object;
1410
+ var message = new $root.bytes.ReadReplyBody();
1411
+ if (object.bytes != null) {
1412
+ if (typeof object.bytes !== "object")
1413
+ throw TypeError(".bytes.ReadReplyBody.bytes: object expected");
1414
+ message.bytes = $root.common.BytesValue.fromObject(object.bytes);
1415
+ }
1416
+ return message;
1417
+ };
1418
+
1419
+ /**
1420
+ * Creates a plain object from a ReadReplyBody message. Also converts values to other types if specified.
1421
+ * @function toObject
1422
+ * @memberof bytes.ReadReplyBody
1423
+ * @static
1424
+ * @param {bytes.ReadReplyBody} message ReadReplyBody
1425
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1426
+ * @returns {Object.<string,*>} Plain object
1427
+ */
1428
+ ReadReplyBody.toObject = function toObject(message, options) {
1429
+ if (!options)
1430
+ options = {};
1431
+ var object = {};
1432
+ if (options.defaults)
1433
+ object.bytes = null;
1434
+ if (message.bytes != null && message.hasOwnProperty("bytes"))
1435
+ object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
1436
+ return object;
1437
+ };
1438
+
1439
+ /**
1440
+ * Converts this ReadReplyBody to JSON.
1441
+ * @function toJSON
1442
+ * @memberof bytes.ReadReplyBody
1443
+ * @instance
1444
+ * @returns {Object.<string,*>} JSON object
1445
+ */
1446
+ ReadReplyBody.prototype.toJSON = function toJSON() {
1447
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1448
+ };
1449
+
1450
+ /**
1451
+ * Gets the default type url for ReadReplyBody
1452
+ * @function getTypeUrl
1453
+ * @memberof bytes.ReadReplyBody
1454
+ * @static
1455
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1456
+ * @returns {string} The default type url
1457
+ */
1458
+ ReadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1459
+ if (typeUrlPrefix === undefined) {
1460
+ typeUrlPrefix = "type.googleapis.com";
1461
+ }
1462
+ return typeUrlPrefix + "/bytes.ReadReplyBody";
1463
+ };
1464
+
1465
+ return ReadReplyBody;
1466
+ })();
1467
+
1468
+ bytes.ReadNextRequestBody = (function() {
1469
+
1470
+ /**
1471
+ * Properties of a ReadNextRequestBody.
1472
+ * @memberof bytes
1473
+ * @interface IReadNextRequestBody
1474
+ * @property {common.IUInt64Value|null} [len] ReadNextRequestBody len
1475
+ */
1476
+
1477
+ /**
1478
+ * Constructs a new ReadNextRequestBody.
1479
+ * @memberof bytes
1480
+ * @classdesc Represents a ReadNextRequestBody.
1481
+ * @implements IReadNextRequestBody
1482
+ * @constructor
1483
+ * @param {bytes.IReadNextRequestBody=} [properties] Properties to set
1484
+ */
1485
+ function ReadNextRequestBody(properties) {
1486
+ if (properties)
1487
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1488
+ if (properties[keys[i]] != null)
1489
+ this[keys[i]] = properties[keys[i]];
1490
+ }
1491
+
1492
+ /**
1493
+ * ReadNextRequestBody len.
1201
1494
  * @member {common.IUInt64Value|null|undefined} len
1202
- * @memberof bytes.ReadRequestBody
1495
+ * @memberof bytes.ReadNextRequestBody
1203
1496
  * @instance
1204
1497
  */
1205
- ReadRequestBody.prototype.len = null;
1498
+ ReadNextRequestBody.prototype.len = null;
1206
1499
 
1207
1500
  /**
1208
- * Creates a new ReadRequestBody instance using the specified properties.
1501
+ * Creates a new ReadNextRequestBody instance using the specified properties.
1209
1502
  * @function create
1210
- * @memberof bytes.ReadRequestBody
1503
+ * @memberof bytes.ReadNextRequestBody
1211
1504
  * @static
1212
- * @param {bytes.IReadRequestBody=} [properties] Properties to set
1213
- * @returns {bytes.ReadRequestBody} ReadRequestBody instance
1505
+ * @param {bytes.IReadNextRequestBody=} [properties] Properties to set
1506
+ * @returns {bytes.ReadNextRequestBody} ReadNextRequestBody instance
1214
1507
  */
1215
- ReadRequestBody.create = function create(properties) {
1216
- return new ReadRequestBody(properties);
1508
+ ReadNextRequestBody.create = function create(properties) {
1509
+ return new ReadNextRequestBody(properties);
1217
1510
  };
1218
1511
 
1219
1512
  /**
1220
- * Encodes the specified ReadRequestBody message. Does not implicitly {@link bytes.ReadRequestBody.verify|verify} messages.
1513
+ * Encodes the specified ReadNextRequestBody message. Does not implicitly {@link bytes.ReadNextRequestBody.verify|verify} messages.
1221
1514
  * @function encode
1222
- * @memberof bytes.ReadRequestBody
1515
+ * @memberof bytes.ReadNextRequestBody
1223
1516
  * @static
1224
- * @param {bytes.IReadRequestBody} message ReadRequestBody message or plain object to encode
1517
+ * @param {bytes.IReadNextRequestBody} message ReadNextRequestBody message or plain object to encode
1225
1518
  * @param {$protobuf.Writer} [writer] Writer to encode to
1226
1519
  * @returns {$protobuf.Writer} Writer
1227
1520
  */
1228
- ReadRequestBody.encode = function encode(message, writer) {
1521
+ ReadNextRequestBody.encode = function encode(message, writer) {
1229
1522
  if (!writer)
1230
1523
  writer = $Writer.create();
1231
1524
  if (message.len != null && Object.hasOwnProperty.call(message, "len"))
@@ -1234,39 +1527,40 @@ $root.bytes = (function() {
1234
1527
  };
1235
1528
 
1236
1529
  /**
1237
- * Encodes the specified ReadRequestBody message, length delimited. Does not implicitly {@link bytes.ReadRequestBody.verify|verify} messages.
1530
+ * Encodes the specified ReadNextRequestBody message, length delimited. Does not implicitly {@link bytes.ReadNextRequestBody.verify|verify} messages.
1238
1531
  * @function encodeDelimited
1239
- * @memberof bytes.ReadRequestBody
1532
+ * @memberof bytes.ReadNextRequestBody
1240
1533
  * @static
1241
- * @param {bytes.IReadRequestBody} message ReadRequestBody message or plain object to encode
1534
+ * @param {bytes.IReadNextRequestBody} message ReadNextRequestBody message or plain object to encode
1242
1535
  * @param {$protobuf.Writer} [writer] Writer to encode to
1243
1536
  * @returns {$protobuf.Writer} Writer
1244
1537
  */
1245
- ReadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
1538
+ ReadNextRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
1246
1539
  return this.encode(message, writer).ldelim();
1247
1540
  };
1248
1541
 
1249
1542
  /**
1250
- * Decodes a ReadRequestBody message from the specified reader or buffer.
1543
+ * Decodes a ReadNextRequestBody message from the specified reader or buffer.
1251
1544
  * @function decode
1252
- * @memberof bytes.ReadRequestBody
1545
+ * @memberof bytes.ReadNextRequestBody
1253
1546
  * @static
1254
1547
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1255
1548
  * @param {number} [length] Message length if known beforehand
1256
- * @returns {bytes.ReadRequestBody} ReadRequestBody
1549
+ * @returns {bytes.ReadNextRequestBody} ReadNextRequestBody
1257
1550
  * @throws {Error} If the payload is not a reader or valid buffer
1258
1551
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1259
1552
  */
1260
- ReadRequestBody.decode = function decode(reader, length) {
1553
+ ReadNextRequestBody.decode = function decode(reader, length) {
1261
1554
  if (!(reader instanceof $Reader))
1262
1555
  reader = $Reader.create(reader);
1263
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.ReadRequestBody();
1556
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.ReadNextRequestBody();
1264
1557
  while (reader.pos < end) {
1265
1558
  var tag = reader.uint32();
1266
1559
  switch (tag >>> 3) {
1267
- case 1:
1268
- message.len = $root.common.UInt64Value.decode(reader, reader.uint32());
1269
- break;
1560
+ case 1: {
1561
+ message.len = $root.common.UInt64Value.decode(reader, reader.uint32());
1562
+ break;
1563
+ }
1270
1564
  default:
1271
1565
  reader.skipType(tag & 7);
1272
1566
  break;
@@ -1276,30 +1570,30 @@ $root.bytes = (function() {
1276
1570
  };
1277
1571
 
1278
1572
  /**
1279
- * Decodes a ReadRequestBody message from the specified reader or buffer, length delimited.
1573
+ * Decodes a ReadNextRequestBody message from the specified reader or buffer, length delimited.
1280
1574
  * @function decodeDelimited
1281
- * @memberof bytes.ReadRequestBody
1575
+ * @memberof bytes.ReadNextRequestBody
1282
1576
  * @static
1283
1577
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1284
- * @returns {bytes.ReadRequestBody} ReadRequestBody
1578
+ * @returns {bytes.ReadNextRequestBody} ReadNextRequestBody
1285
1579
  * @throws {Error} If the payload is not a reader or valid buffer
1286
1580
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1287
1581
  */
1288
- ReadRequestBody.decodeDelimited = function decodeDelimited(reader) {
1582
+ ReadNextRequestBody.decodeDelimited = function decodeDelimited(reader) {
1289
1583
  if (!(reader instanceof $Reader))
1290
1584
  reader = new $Reader(reader);
1291
1585
  return this.decode(reader, reader.uint32());
1292
1586
  };
1293
1587
 
1294
1588
  /**
1295
- * Verifies a ReadRequestBody message.
1589
+ * Verifies a ReadNextRequestBody message.
1296
1590
  * @function verify
1297
- * @memberof bytes.ReadRequestBody
1591
+ * @memberof bytes.ReadNextRequestBody
1298
1592
  * @static
1299
1593
  * @param {Object.<string,*>} message Plain object to verify
1300
1594
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
1301
1595
  */
1302
- ReadRequestBody.verify = function verify(message) {
1596
+ ReadNextRequestBody.verify = function verify(message) {
1303
1597
  if (typeof message !== "object" || message === null)
1304
1598
  return "object expected";
1305
1599
  if (message.len != null && message.hasOwnProperty("len")) {
@@ -1311,35 +1605,35 @@ $root.bytes = (function() {
1311
1605
  };
1312
1606
 
1313
1607
  /**
1314
- * Creates a ReadRequestBody message from a plain object. Also converts values to their respective internal types.
1608
+ * Creates a ReadNextRequestBody message from a plain object. Also converts values to their respective internal types.
1315
1609
  * @function fromObject
1316
- * @memberof bytes.ReadRequestBody
1610
+ * @memberof bytes.ReadNextRequestBody
1317
1611
  * @static
1318
1612
  * @param {Object.<string,*>} object Plain object
1319
- * @returns {bytes.ReadRequestBody} ReadRequestBody
1613
+ * @returns {bytes.ReadNextRequestBody} ReadNextRequestBody
1320
1614
  */
1321
- ReadRequestBody.fromObject = function fromObject(object) {
1322
- if (object instanceof $root.bytes.ReadRequestBody)
1615
+ ReadNextRequestBody.fromObject = function fromObject(object) {
1616
+ if (object instanceof $root.bytes.ReadNextRequestBody)
1323
1617
  return object;
1324
- var message = new $root.bytes.ReadRequestBody();
1618
+ var message = new $root.bytes.ReadNextRequestBody();
1325
1619
  if (object.len != null) {
1326
1620
  if (typeof object.len !== "object")
1327
- throw TypeError(".bytes.ReadRequestBody.len: object expected");
1621
+ throw TypeError(".bytes.ReadNextRequestBody.len: object expected");
1328
1622
  message.len = $root.common.UInt64Value.fromObject(object.len);
1329
1623
  }
1330
1624
  return message;
1331
1625
  };
1332
1626
 
1333
1627
  /**
1334
- * Creates a plain object from a ReadRequestBody message. Also converts values to other types if specified.
1628
+ * Creates a plain object from a ReadNextRequestBody message. Also converts values to other types if specified.
1335
1629
  * @function toObject
1336
- * @memberof bytes.ReadRequestBody
1630
+ * @memberof bytes.ReadNextRequestBody
1337
1631
  * @static
1338
- * @param {bytes.ReadRequestBody} message ReadRequestBody
1632
+ * @param {bytes.ReadNextRequestBody} message ReadNextRequestBody
1339
1633
  * @param {$protobuf.IConversionOptions} [options] Conversion options
1340
1634
  * @returns {Object.<string,*>} Plain object
1341
1635
  */
1342
- ReadRequestBody.toObject = function toObject(message, options) {
1636
+ ReadNextRequestBody.toObject = function toObject(message, options) {
1343
1637
  if (!options)
1344
1638
  options = {};
1345
1639
  var object = {};
@@ -1351,37 +1645,53 @@ $root.bytes = (function() {
1351
1645
  };
1352
1646
 
1353
1647
  /**
1354
- * Converts this ReadRequestBody to JSON.
1648
+ * Converts this ReadNextRequestBody to JSON.
1355
1649
  * @function toJSON
1356
- * @memberof bytes.ReadRequestBody
1650
+ * @memberof bytes.ReadNextRequestBody
1357
1651
  * @instance
1358
1652
  * @returns {Object.<string,*>} JSON object
1359
1653
  */
1360
- ReadRequestBody.prototype.toJSON = function toJSON() {
1654
+ ReadNextRequestBody.prototype.toJSON = function toJSON() {
1361
1655
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1362
1656
  };
1363
1657
 
1364
- return ReadRequestBody;
1658
+ /**
1659
+ * Gets the default type url for ReadNextRequestBody
1660
+ * @function getTypeUrl
1661
+ * @memberof bytes.ReadNextRequestBody
1662
+ * @static
1663
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1664
+ * @returns {string} The default type url
1665
+ */
1666
+ ReadNextRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1667
+ if (typeUrlPrefix === undefined) {
1668
+ typeUrlPrefix = "type.googleapis.com";
1669
+ }
1670
+ return typeUrlPrefix + "/bytes.ReadNextRequestBody";
1671
+ };
1672
+
1673
+ return ReadNextRequestBody;
1365
1674
  })();
1366
1675
 
1367
- bytes.ReadReplyBody = (function() {
1676
+ bytes.ReadAtRequestBody = (function() {
1368
1677
 
1369
1678
  /**
1370
- * Properties of a ReadReplyBody.
1679
+ * Properties of a ReadAtRequestBody.
1371
1680
  * @memberof bytes
1372
- * @interface IReadReplyBody
1373
- * @property {common.IBytesValue|null} [bytes] ReadReplyBody bytes
1681
+ * @interface IReadAtRequestBody
1682
+ * @property {number|Long|null} [pos] ReadAtRequestBody pos
1683
+ * @property {common.IUInt64Value|null} [len] ReadAtRequestBody len
1374
1684
  */
1375
1685
 
1376
1686
  /**
1377
- * Constructs a new ReadReplyBody.
1687
+ * Constructs a new ReadAtRequestBody.
1378
1688
  * @memberof bytes
1379
- * @classdesc Represents a ReadReplyBody.
1380
- * @implements IReadReplyBody
1689
+ * @classdesc Represents a ReadAtRequestBody.
1690
+ * @implements IReadAtRequestBody
1381
1691
  * @constructor
1382
- * @param {bytes.IReadReplyBody=} [properties] Properties to set
1692
+ * @param {bytes.IReadAtRequestBody=} [properties] Properties to set
1383
1693
  */
1384
- function ReadReplyBody(properties) {
1694
+ function ReadAtRequestBody(properties) {
1385
1695
  if (properties)
1386
1696
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1387
1697
  if (properties[keys[i]] != null)
@@ -1389,76 +1699,91 @@ $root.bytes = (function() {
1389
1699
  }
1390
1700
 
1391
1701
  /**
1392
- * ReadReplyBody bytes.
1393
- * @member {common.IBytesValue|null|undefined} bytes
1394
- * @memberof bytes.ReadReplyBody
1702
+ * ReadAtRequestBody pos.
1703
+ * @member {number|Long} pos
1704
+ * @memberof bytes.ReadAtRequestBody
1395
1705
  * @instance
1396
1706
  */
1397
- ReadReplyBody.prototype.bytes = null;
1707
+ ReadAtRequestBody.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1398
1708
 
1399
1709
  /**
1400
- * Creates a new ReadReplyBody instance using the specified properties.
1710
+ * ReadAtRequestBody len.
1711
+ * @member {common.IUInt64Value|null|undefined} len
1712
+ * @memberof bytes.ReadAtRequestBody
1713
+ * @instance
1714
+ */
1715
+ ReadAtRequestBody.prototype.len = null;
1716
+
1717
+ /**
1718
+ * Creates a new ReadAtRequestBody instance using the specified properties.
1401
1719
  * @function create
1402
- * @memberof bytes.ReadReplyBody
1720
+ * @memberof bytes.ReadAtRequestBody
1403
1721
  * @static
1404
- * @param {bytes.IReadReplyBody=} [properties] Properties to set
1405
- * @returns {bytes.ReadReplyBody} ReadReplyBody instance
1722
+ * @param {bytes.IReadAtRequestBody=} [properties] Properties to set
1723
+ * @returns {bytes.ReadAtRequestBody} ReadAtRequestBody instance
1406
1724
  */
1407
- ReadReplyBody.create = function create(properties) {
1408
- return new ReadReplyBody(properties);
1725
+ ReadAtRequestBody.create = function create(properties) {
1726
+ return new ReadAtRequestBody(properties);
1409
1727
  };
1410
1728
 
1411
1729
  /**
1412
- * Encodes the specified ReadReplyBody message. Does not implicitly {@link bytes.ReadReplyBody.verify|verify} messages.
1730
+ * Encodes the specified ReadAtRequestBody message. Does not implicitly {@link bytes.ReadAtRequestBody.verify|verify} messages.
1413
1731
  * @function encode
1414
- * @memberof bytes.ReadReplyBody
1732
+ * @memberof bytes.ReadAtRequestBody
1415
1733
  * @static
1416
- * @param {bytes.IReadReplyBody} message ReadReplyBody message or plain object to encode
1734
+ * @param {bytes.IReadAtRequestBody} message ReadAtRequestBody message or plain object to encode
1417
1735
  * @param {$protobuf.Writer} [writer] Writer to encode to
1418
1736
  * @returns {$protobuf.Writer} Writer
1419
1737
  */
1420
- ReadReplyBody.encode = function encode(message, writer) {
1738
+ ReadAtRequestBody.encode = function encode(message, writer) {
1421
1739
  if (!writer)
1422
1740
  writer = $Writer.create();
1423
- if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
1424
- $root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
1741
+ if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
1742
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.pos);
1743
+ if (message.len != null && Object.hasOwnProperty.call(message, "len"))
1744
+ $root.common.UInt64Value.encode(message.len, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
1425
1745
  return writer;
1426
1746
  };
1427
1747
 
1428
1748
  /**
1429
- * Encodes the specified ReadReplyBody message, length delimited. Does not implicitly {@link bytes.ReadReplyBody.verify|verify} messages.
1749
+ * Encodes the specified ReadAtRequestBody message, length delimited. Does not implicitly {@link bytes.ReadAtRequestBody.verify|verify} messages.
1430
1750
  * @function encodeDelimited
1431
- * @memberof bytes.ReadReplyBody
1751
+ * @memberof bytes.ReadAtRequestBody
1432
1752
  * @static
1433
- * @param {bytes.IReadReplyBody} message ReadReplyBody message or plain object to encode
1753
+ * @param {bytes.IReadAtRequestBody} message ReadAtRequestBody message or plain object to encode
1434
1754
  * @param {$protobuf.Writer} [writer] Writer to encode to
1435
1755
  * @returns {$protobuf.Writer} Writer
1436
1756
  */
1437
- ReadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
1757
+ ReadAtRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
1438
1758
  return this.encode(message, writer).ldelim();
1439
1759
  };
1440
1760
 
1441
1761
  /**
1442
- * Decodes a ReadReplyBody message from the specified reader or buffer.
1762
+ * Decodes a ReadAtRequestBody message from the specified reader or buffer.
1443
1763
  * @function decode
1444
- * @memberof bytes.ReadReplyBody
1764
+ * @memberof bytes.ReadAtRequestBody
1445
1765
  * @static
1446
1766
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1447
1767
  * @param {number} [length] Message length if known beforehand
1448
- * @returns {bytes.ReadReplyBody} ReadReplyBody
1768
+ * @returns {bytes.ReadAtRequestBody} ReadAtRequestBody
1449
1769
  * @throws {Error} If the payload is not a reader or valid buffer
1450
1770
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1451
1771
  */
1452
- ReadReplyBody.decode = function decode(reader, length) {
1772
+ ReadAtRequestBody.decode = function decode(reader, length) {
1453
1773
  if (!(reader instanceof $Reader))
1454
1774
  reader = $Reader.create(reader);
1455
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.ReadReplyBody();
1775
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.ReadAtRequestBody();
1456
1776
  while (reader.pos < end) {
1457
1777
  var tag = reader.uint32();
1458
1778
  switch (tag >>> 3) {
1459
- case 1:
1460
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
1461
- break;
1779
+ case 1: {
1780
+ message.pos = reader.uint64();
1781
+ break;
1782
+ }
1783
+ case 2: {
1784
+ message.len = $root.common.UInt64Value.decode(reader, reader.uint32());
1785
+ break;
1786
+ }
1462
1787
  default:
1463
1788
  reader.skipType(tag & 7);
1464
1789
  break;
@@ -1468,92 +1793,130 @@ $root.bytes = (function() {
1468
1793
  };
1469
1794
 
1470
1795
  /**
1471
- * Decodes a ReadReplyBody message from the specified reader or buffer, length delimited.
1796
+ * Decodes a ReadAtRequestBody message from the specified reader or buffer, length delimited.
1472
1797
  * @function decodeDelimited
1473
- * @memberof bytes.ReadReplyBody
1798
+ * @memberof bytes.ReadAtRequestBody
1474
1799
  * @static
1475
1800
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1476
- * @returns {bytes.ReadReplyBody} ReadReplyBody
1801
+ * @returns {bytes.ReadAtRequestBody} ReadAtRequestBody
1477
1802
  * @throws {Error} If the payload is not a reader or valid buffer
1478
1803
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1479
1804
  */
1480
- ReadReplyBody.decodeDelimited = function decodeDelimited(reader) {
1805
+ ReadAtRequestBody.decodeDelimited = function decodeDelimited(reader) {
1481
1806
  if (!(reader instanceof $Reader))
1482
1807
  reader = new $Reader(reader);
1483
1808
  return this.decode(reader, reader.uint32());
1484
1809
  };
1485
1810
 
1486
1811
  /**
1487
- * Verifies a ReadReplyBody message.
1812
+ * Verifies a ReadAtRequestBody message.
1488
1813
  * @function verify
1489
- * @memberof bytes.ReadReplyBody
1814
+ * @memberof bytes.ReadAtRequestBody
1490
1815
  * @static
1491
1816
  * @param {Object.<string,*>} message Plain object to verify
1492
1817
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
1493
1818
  */
1494
- ReadReplyBody.verify = function verify(message) {
1819
+ ReadAtRequestBody.verify = function verify(message) {
1495
1820
  if (typeof message !== "object" || message === null)
1496
1821
  return "object expected";
1497
- if (message.bytes != null && message.hasOwnProperty("bytes")) {
1498
- var error = $root.common.BytesValue.verify(message.bytes);
1822
+ if (message.pos != null && message.hasOwnProperty("pos"))
1823
+ if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
1824
+ return "pos: integer|Long expected";
1825
+ if (message.len != null && message.hasOwnProperty("len")) {
1826
+ var error = $root.common.UInt64Value.verify(message.len);
1499
1827
  if (error)
1500
- return "bytes." + error;
1828
+ return "len." + error;
1501
1829
  }
1502
1830
  return null;
1503
1831
  };
1504
1832
 
1505
1833
  /**
1506
- * Creates a ReadReplyBody message from a plain object. Also converts values to their respective internal types.
1834
+ * Creates a ReadAtRequestBody message from a plain object. Also converts values to their respective internal types.
1507
1835
  * @function fromObject
1508
- * @memberof bytes.ReadReplyBody
1836
+ * @memberof bytes.ReadAtRequestBody
1509
1837
  * @static
1510
1838
  * @param {Object.<string,*>} object Plain object
1511
- * @returns {bytes.ReadReplyBody} ReadReplyBody
1839
+ * @returns {bytes.ReadAtRequestBody} ReadAtRequestBody
1512
1840
  */
1513
- ReadReplyBody.fromObject = function fromObject(object) {
1514
- if (object instanceof $root.bytes.ReadReplyBody)
1841
+ ReadAtRequestBody.fromObject = function fromObject(object) {
1842
+ if (object instanceof $root.bytes.ReadAtRequestBody)
1515
1843
  return object;
1516
- var message = new $root.bytes.ReadReplyBody();
1517
- if (object.bytes != null) {
1518
- if (typeof object.bytes !== "object")
1519
- throw TypeError(".bytes.ReadReplyBody.bytes: object expected");
1520
- message.bytes = $root.common.BytesValue.fromObject(object.bytes);
1844
+ var message = new $root.bytes.ReadAtRequestBody();
1845
+ if (object.pos != null)
1846
+ if ($util.Long)
1847
+ (message.pos = $util.Long.fromValue(object.pos)).unsigned = true;
1848
+ else if (typeof object.pos === "string")
1849
+ message.pos = parseInt(object.pos, 10);
1850
+ else if (typeof object.pos === "number")
1851
+ message.pos = object.pos;
1852
+ else if (typeof object.pos === "object")
1853
+ message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber(true);
1854
+ if (object.len != null) {
1855
+ if (typeof object.len !== "object")
1856
+ throw TypeError(".bytes.ReadAtRequestBody.len: object expected");
1857
+ message.len = $root.common.UInt64Value.fromObject(object.len);
1521
1858
  }
1522
1859
  return message;
1523
1860
  };
1524
1861
 
1525
1862
  /**
1526
- * Creates a plain object from a ReadReplyBody message. Also converts values to other types if specified.
1863
+ * Creates a plain object from a ReadAtRequestBody message. Also converts values to other types if specified.
1527
1864
  * @function toObject
1528
- * @memberof bytes.ReadReplyBody
1865
+ * @memberof bytes.ReadAtRequestBody
1529
1866
  * @static
1530
- * @param {bytes.ReadReplyBody} message ReadReplyBody
1867
+ * @param {bytes.ReadAtRequestBody} message ReadAtRequestBody
1531
1868
  * @param {$protobuf.IConversionOptions} [options] Conversion options
1532
1869
  * @returns {Object.<string,*>} Plain object
1533
1870
  */
1534
- ReadReplyBody.toObject = function toObject(message, options) {
1871
+ ReadAtRequestBody.toObject = function toObject(message, options) {
1535
1872
  if (!options)
1536
1873
  options = {};
1537
1874
  var object = {};
1538
- if (options.defaults)
1539
- object.bytes = null;
1540
- if (message.bytes != null && message.hasOwnProperty("bytes"))
1541
- object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
1875
+ if (options.defaults) {
1876
+ if ($util.Long) {
1877
+ var long = new $util.Long(0, 0, true);
1878
+ object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1879
+ } else
1880
+ object.pos = options.longs === String ? "0" : 0;
1881
+ object.len = null;
1882
+ }
1883
+ if (message.pos != null && message.hasOwnProperty("pos"))
1884
+ if (typeof message.pos === "number")
1885
+ object.pos = options.longs === String ? String(message.pos) : message.pos;
1886
+ else
1887
+ object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber(true) : message.pos;
1888
+ if (message.len != null && message.hasOwnProperty("len"))
1889
+ object.len = $root.common.UInt64Value.toObject(message.len, options);
1542
1890
  return object;
1543
1891
  };
1544
1892
 
1545
1893
  /**
1546
- * Converts this ReadReplyBody to JSON.
1894
+ * Converts this ReadAtRequestBody to JSON.
1547
1895
  * @function toJSON
1548
- * @memberof bytes.ReadReplyBody
1896
+ * @memberof bytes.ReadAtRequestBody
1549
1897
  * @instance
1550
1898
  * @returns {Object.<string,*>} JSON object
1551
1899
  */
1552
- ReadReplyBody.prototype.toJSON = function toJSON() {
1900
+ ReadAtRequestBody.prototype.toJSON = function toJSON() {
1553
1901
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1554
1902
  };
1555
1903
 
1556
- return ReadReplyBody;
1904
+ /**
1905
+ * Gets the default type url for ReadAtRequestBody
1906
+ * @function getTypeUrl
1907
+ * @memberof bytes.ReadAtRequestBody
1908
+ * @static
1909
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1910
+ * @returns {string} The default type url
1911
+ */
1912
+ ReadAtRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1913
+ if (typeUrlPrefix === undefined) {
1914
+ typeUrlPrefix = "type.googleapis.com";
1915
+ }
1916
+ return typeUrlPrefix + "/bytes.ReadAtRequestBody";
1917
+ };
1918
+
1919
+ return ReadAtRequestBody;
1557
1920
  })();
1558
1921
 
1559
1922
  bytes.SeekRequestBody = (function() {
@@ -1648,9 +2011,10 @@ $root.bytes = (function() {
1648
2011
  while (reader.pos < end) {
1649
2012
  var tag = reader.uint32();
1650
2013
  switch (tag >>> 3) {
1651
- case 1:
1652
- message.offset = reader.uint64();
1653
- break;
2014
+ case 1: {
2015
+ message.offset = reader.uint64();
2016
+ break;
2017
+ }
1654
2018
  default:
1655
2019
  reader.skipType(tag & 7);
1656
2020
  break;
@@ -1754,6 +2118,21 @@ $root.bytes = (function() {
1754
2118
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1755
2119
  };
1756
2120
 
2121
+ /**
2122
+ * Gets the default type url for SeekRequestBody
2123
+ * @function getTypeUrl
2124
+ * @memberof bytes.SeekRequestBody
2125
+ * @static
2126
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2127
+ * @returns {string} The default type url
2128
+ */
2129
+ SeekRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2130
+ if (typeUrlPrefix === undefined) {
2131
+ typeUrlPrefix = "type.googleapis.com";
2132
+ }
2133
+ return typeUrlPrefix + "/bytes.SeekRequestBody";
2134
+ };
2135
+
1757
2136
  return SeekRequestBody;
1758
2137
  })();
1759
2138
 
@@ -1874,14 +2253,16 @@ $root.common = (function() {
1874
2253
  while (reader.pos < end) {
1875
2254
  var tag = reader.uint32();
1876
2255
  switch (tag >>> 3) {
1877
- case 1:
1878
- message.objType = reader.string();
1879
- break;
1880
- case 2:
1881
- if (!(message.path && message.path.length))
1882
- message.path = [];
1883
- message.path.push(reader.string());
1884
- break;
2256
+ case 1: {
2257
+ message.objType = reader.string();
2258
+ break;
2259
+ }
2260
+ case 2: {
2261
+ if (!(message.path && message.path.length))
2262
+ message.path = [];
2263
+ message.path.push(reader.string());
2264
+ break;
2265
+ }
1885
2266
  default:
1886
2267
  reader.skipType(tag & 7);
1887
2268
  break;
@@ -1992,6 +2373,21 @@ $root.common = (function() {
1992
2373
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1993
2374
  };
1994
2375
 
2376
+ /**
2377
+ * Gets the default type url for ObjectReference
2378
+ * @function getTypeUrl
2379
+ * @memberof common.ObjectReference
2380
+ * @static
2381
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2382
+ * @returns {string} The default type url
2383
+ */
2384
+ ObjectReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2385
+ if (typeUrlPrefix === undefined) {
2386
+ typeUrlPrefix = "type.googleapis.com";
2387
+ }
2388
+ return typeUrlPrefix + "/common.ObjectReference";
2389
+ };
2390
+
1995
2391
  return ObjectReference;
1996
2392
  })();
1997
2393
 
@@ -2087,9 +2483,10 @@ $root.common = (function() {
2087
2483
  while (reader.pos < end) {
2088
2484
  var tag = reader.uint32();
2089
2485
  switch (tag >>> 3) {
2090
- case 1:
2091
- message.value = reader.bool();
2092
- break;
2486
+ case 1: {
2487
+ message.value = reader.bool();
2488
+ break;
2489
+ }
2093
2490
  default:
2094
2491
  reader.skipType(tag & 7);
2095
2492
  break;
@@ -2179,6 +2576,21 @@ $root.common = (function() {
2179
2576
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2180
2577
  };
2181
2578
 
2579
+ /**
2580
+ * Gets the default type url for BooleanValue
2581
+ * @function getTypeUrl
2582
+ * @memberof common.BooleanValue
2583
+ * @static
2584
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2585
+ * @returns {string} The default type url
2586
+ */
2587
+ BooleanValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2588
+ if (typeUrlPrefix === undefined) {
2589
+ typeUrlPrefix = "type.googleapis.com";
2590
+ }
2591
+ return typeUrlPrefix + "/common.BooleanValue";
2592
+ };
2593
+
2182
2594
  return BooleanValue;
2183
2595
  })();
2184
2596
 
@@ -2276,11 +2688,12 @@ $root.common = (function() {
2276
2688
  while (reader.pos < end) {
2277
2689
  var tag = reader.uint32();
2278
2690
  switch (tag >>> 3) {
2279
- case 1:
2280
- if (!(message.values && message.values.length))
2281
- message.values = [];
2282
- message.values.push(reader.string());
2283
- break;
2691
+ case 1: {
2692
+ if (!(message.values && message.values.length))
2693
+ message.values = [];
2694
+ message.values.push(reader.string());
2695
+ break;
2696
+ }
2284
2697
  default:
2285
2698
  reader.skipType(tag & 7);
2286
2699
  break;
@@ -2382,6 +2795,21 @@ $root.common = (function() {
2382
2795
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2383
2796
  };
2384
2797
 
2798
+ /**
2799
+ * Gets the default type url for StringArrayValue
2800
+ * @function getTypeUrl
2801
+ * @memberof common.StringArrayValue
2802
+ * @static
2803
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2804
+ * @returns {string} The default type url
2805
+ */
2806
+ StringArrayValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2807
+ if (typeUrlPrefix === undefined) {
2808
+ typeUrlPrefix = "type.googleapis.com";
2809
+ }
2810
+ return typeUrlPrefix + "/common.StringArrayValue";
2811
+ };
2812
+
2385
2813
  return StringArrayValue;
2386
2814
  })();
2387
2815
 
@@ -2477,9 +2905,10 @@ $root.common = (function() {
2477
2905
  while (reader.pos < end) {
2478
2906
  var tag = reader.uint32();
2479
2907
  switch (tag >>> 3) {
2480
- case 1:
2481
- message.value = reader.uint64();
2482
- break;
2908
+ case 1: {
2909
+ message.value = reader.uint64();
2910
+ break;
2911
+ }
2483
2912
  default:
2484
2913
  reader.skipType(tag & 7);
2485
2914
  break;
@@ -2583,6 +3012,21 @@ $root.common = (function() {
2583
3012
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2584
3013
  };
2585
3014
 
3015
+ /**
3016
+ * Gets the default type url for UInt64Value
3017
+ * @function getTypeUrl
3018
+ * @memberof common.UInt64Value
3019
+ * @static
3020
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3021
+ * @returns {string} The default type url
3022
+ */
3023
+ UInt64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3024
+ if (typeUrlPrefix === undefined) {
3025
+ typeUrlPrefix = "type.googleapis.com";
3026
+ }
3027
+ return typeUrlPrefix + "/common.UInt64Value";
3028
+ };
3029
+
2586
3030
  return UInt64Value;
2587
3031
  })();
2588
3032
 
@@ -2678,9 +3122,10 @@ $root.common = (function() {
2678
3122
  while (reader.pos < end) {
2679
3123
  var tag = reader.uint32();
2680
3124
  switch (tag >>> 3) {
2681
- case 1:
2682
- message.value = reader.uint32();
2683
- break;
3125
+ case 1: {
3126
+ message.value = reader.uint32();
3127
+ break;
3128
+ }
2684
3129
  default:
2685
3130
  reader.skipType(tag & 7);
2686
3131
  break;
@@ -2770,6 +3215,21 @@ $root.common = (function() {
2770
3215
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2771
3216
  };
2772
3217
 
3218
+ /**
3219
+ * Gets the default type url for UInt32Value
3220
+ * @function getTypeUrl
3221
+ * @memberof common.UInt32Value
3222
+ * @static
3223
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3224
+ * @returns {string} The default type url
3225
+ */
3226
+ UInt32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3227
+ if (typeUrlPrefix === undefined) {
3228
+ typeUrlPrefix = "type.googleapis.com";
3229
+ }
3230
+ return typeUrlPrefix + "/common.UInt32Value";
3231
+ };
3232
+
2773
3233
  return UInt32Value;
2774
3234
  })();
2775
3235
 
@@ -2865,9 +3325,10 @@ $root.common = (function() {
2865
3325
  while (reader.pos < end) {
2866
3326
  var tag = reader.uint32();
2867
3327
  switch (tag >>> 3) {
2868
- case 1:
2869
- message.value = reader.string();
2870
- break;
3328
+ case 1: {
3329
+ message.value = reader.string();
3330
+ break;
3331
+ }
2871
3332
  default:
2872
3333
  reader.skipType(tag & 7);
2873
3334
  break;
@@ -2957,6 +3418,21 @@ $root.common = (function() {
2957
3418
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2958
3419
  };
2959
3420
 
3421
+ /**
3422
+ * Gets the default type url for StringValue
3423
+ * @function getTypeUrl
3424
+ * @memberof common.StringValue
3425
+ * @static
3426
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3427
+ * @returns {string} The default type url
3428
+ */
3429
+ StringValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3430
+ if (typeUrlPrefix === undefined) {
3431
+ typeUrlPrefix = "type.googleapis.com";
3432
+ }
3433
+ return typeUrlPrefix + "/common.StringValue";
3434
+ };
3435
+
2960
3436
  return StringValue;
2961
3437
  })();
2962
3438
 
@@ -3052,9 +3528,10 @@ $root.common = (function() {
3052
3528
  while (reader.pos < end) {
3053
3529
  var tag = reader.uint32();
3054
3530
  switch (tag >>> 3) {
3055
- case 1:
3056
- message.value = reader.bytes();
3057
- break;
3531
+ case 1: {
3532
+ message.value = reader.bytes();
3533
+ break;
3534
+ }
3058
3535
  default:
3059
3536
  reader.skipType(tag & 7);
3060
3537
  break;
@@ -3111,7 +3588,7 @@ $root.common = (function() {
3111
3588
  if (object.value != null)
3112
3589
  if (typeof object.value === "string")
3113
3590
  $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
3114
- else if (object.value.length)
3591
+ else if (object.value.length >= 0)
3115
3592
  message.value = object.value;
3116
3593
  return message;
3117
3594
  };
@@ -3153,6 +3630,21 @@ $root.common = (function() {
3153
3630
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3154
3631
  };
3155
3632
 
3633
+ /**
3634
+ * Gets the default type url for BytesValue
3635
+ * @function getTypeUrl
3636
+ * @memberof common.BytesValue
3637
+ * @static
3638
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3639
+ * @returns {string} The default type url
3640
+ */
3641
+ BytesValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3642
+ if (typeUrlPrefix === undefined) {
3643
+ typeUrlPrefix = "type.googleapis.com";
3644
+ }
3645
+ return typeUrlPrefix + "/common.BytesValue";
3646
+ };
3647
+
3156
3648
  return BytesValue;
3157
3649
  })();
3158
3650
 
@@ -3259,12 +3751,14 @@ $root.common = (function() {
3259
3751
  while (reader.pos < end) {
3260
3752
  var tag = reader.uint32();
3261
3753
  switch (tag >>> 3) {
3262
- case 1:
3263
- message.runtimeExcJson = reader.string();
3264
- break;
3265
- case 2:
3266
- message.err = reader.string();
3267
- break;
3754
+ case 1: {
3755
+ message.runtimeExcJson = reader.string();
3756
+ break;
3757
+ }
3758
+ case 2: {
3759
+ message.err = reader.string();
3760
+ break;
3761
+ }
3268
3762
  default:
3269
3763
  reader.skipType(tag & 7);
3270
3764
  break;
@@ -3363,6 +3857,21 @@ $root.common = (function() {
3363
3857
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3364
3858
  };
3365
3859
 
3860
+ /**
3861
+ * Gets the default type url for ErrorValue
3862
+ * @function getTypeUrl
3863
+ * @memberof common.ErrorValue
3864
+ * @static
3865
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3866
+ * @returns {string} The default type url
3867
+ */
3868
+ ErrorValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3869
+ if (typeUrlPrefix === undefined) {
3870
+ typeUrlPrefix = "type.googleapis.com";
3871
+ }
3872
+ return typeUrlPrefix + "/common.ErrorValue";
3873
+ };
3874
+
3366
3875
  return ErrorValue;
3367
3876
  })();
3368
3877
 
@@ -3480,15 +3989,18 @@ $root.common = (function() {
3480
3989
  while (reader.pos < end) {
3481
3990
  var tag = reader.uint32();
3482
3991
  switch (tag >>> 3) {
3483
- case 1:
3484
- message.type = reader.string();
3485
- break;
3486
- case 2:
3487
- message.json = $root.common.StringValue.decode(reader, reader.uint32());
3488
- break;
3489
- case 3:
3490
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
3491
- break;
3992
+ case 1: {
3993
+ message.type = reader.string();
3994
+ break;
3995
+ }
3996
+ case 2: {
3997
+ message.json = $root.common.StringValue.decode(reader, reader.uint32());
3998
+ break;
3999
+ }
4000
+ case 3: {
4001
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
4002
+ break;
4003
+ }
3492
4004
  default:
3493
4005
  reader.skipType(tag & 7);
3494
4006
  break;
@@ -3605,6 +4117,21 @@ $root.common = (function() {
3605
4117
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3606
4118
  };
3607
4119
 
4120
+ /**
4121
+ * Gets the default type url for AnyValue
4122
+ * @function getTypeUrl
4123
+ * @memberof common.AnyValue
4124
+ * @static
4125
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4126
+ * @returns {string} The default type url
4127
+ */
4128
+ AnyValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4129
+ if (typeUrlPrefix === undefined) {
4130
+ typeUrlPrefix = "type.googleapis.com";
4131
+ }
4132
+ return typeUrlPrefix + "/common.AnyValue";
4133
+ };
4134
+
3608
4135
  return AnyValue;
3609
4136
  })();
3610
4137