core-3nweb-client-lib 0.27.4 → 0.27.6

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 (86) 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/ipc.d.ts +1 -0
  31. package/build/ipc.js +3 -1
  32. package/build/lib-client/3nstorage/xsp-fs/common.js +2 -0
  33. package/build/lib-client/3nstorage/xsp-fs/file-node.js +0 -17
  34. package/build/lib-client/3nstorage/xsp-fs/file.d.ts +1 -1
  35. package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +1 -1
  36. package/build/lib-client/3nstorage/xsp-fs/folder-node.js +13 -7
  37. package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +1 -1
  38. package/build/lib-client/3nstorage/xsp-fs/fs.js +1 -1
  39. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +2 -2
  40. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +7 -3
  41. package/build/lib-client/3nstorage/xsp-fs/node-persistence.d.ts +1 -0
  42. package/build/lib-client/3nstorage/xsp-fs/node-persistence.js +7 -5
  43. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v1.js +3 -4
  44. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v2.js +20 -15
  45. package/build/lib-client/cryptor/cryptor-in-worker.js +37 -47
  46. package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
  47. package/build/lib-client/cryptor/cryptor.wasm +0 -0
  48. package/build/lib-client/cryptor/in-proc-js.js +15 -12
  49. package/build/lib-client/cryptor/in-proc-wasm.js +11 -8
  50. package/build/lib-client/cryptor/serialization-for-wasm.d.ts +36 -0
  51. package/build/lib-client/cryptor/serialization-for-wasm.js +58 -0
  52. package/build/lib-client/cryptor-work-labels.d.ts +26 -0
  53. package/build/lib-client/cryptor-work-labels.js +152 -0
  54. package/build/lib-client/fs-sync-utils.d.ts +7 -1
  55. package/build/lib-client/fs-sync-utils.js +18 -7
  56. package/build/lib-client/local-files/dev-file-src.d.ts +2 -1
  57. package/build/lib-client/local-files/dev-file-src.js +5 -1
  58. package/build/lib-client/local-files/device-fs.js +2 -1
  59. package/build/lib-client/objs-on-disk/obj-on-disk.js +5 -1
  60. package/build/lib-client/request-utils.js +14 -14
  61. package/build/lib-common/async-cryptor-wrap.d.ts +9 -9
  62. package/build/lib-common/async-cryptor-wrap.js +13 -13
  63. package/build/lib-common/byte-streaming/pipe.d.ts +1 -1
  64. package/build/lib-common/byte-streaming/pipe.js +3 -3
  65. package/build/lib-common/byte-streaming/wrapping.js +4 -2
  66. package/build/lib-common/json-utils.js +0 -3
  67. package/build/lib-common/processes/synced.js +0 -184
  68. package/build/lib-sqlite-on-3nstorage/index.d.ts +32 -0
  69. package/build/lib-sqlite-on-3nstorage/index.js +117 -0
  70. package/build/lib-sqlite-on-3nstorage/sqljs.d.ts +279 -0
  71. package/build/lib-sqlite-on-3nstorage/sqljs.js +223 -0
  72. package/build/protos/asmail.proto.js +3748 -1121
  73. package/build/protos/bytes.proto.js +731 -204
  74. package/build/protos/common.proto.js +192 -44
  75. package/build/protos/cryptor.proto.js +184 -61
  76. package/build/protos/file.proto.js +1336 -324
  77. package/build/protos/fs.proto.js +3099 -846
  78. package/build/protos/ipc.proto.js +244 -61
  79. package/build/protos/logger.proto.js +219 -53
  80. package/build/protos/mailerid.proto.js +230 -50
  81. package/build/protos/startup.proto.js +341 -77
  82. package/build/protos/storage.proto.js +276 -62
  83. package/package.json +8 -7
  84. package/protos/bytes.proto +13 -4
  85. package/protos/file.proto +4 -1
  86. package/protos/fs.proto +4 -1
@@ -121,12 +121,14 @@ $root.startup = (function() {
121
121
  while (reader.pos < end) {
122
122
  var tag = reader.uint32();
123
123
  switch (tag >>> 3) {
124
- case 1:
125
- message.name = reader.string();
126
- break;
127
- case 2:
128
- message.token = $root.common.StringValue.decode(reader, reader.uint32());
129
- break;
124
+ case 1: {
125
+ message.name = reader.string();
126
+ break;
127
+ }
128
+ case 2: {
129
+ message.token = $root.common.StringValue.decode(reader, reader.uint32());
130
+ break;
131
+ }
130
132
  default:
131
133
  reader.skipType(tag & 7);
132
134
  break;
@@ -230,6 +232,21 @@ $root.startup = (function() {
230
232
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
231
233
  };
232
234
 
235
+ /**
236
+ * Gets the default type url for GetAvailableAddressesRequestBody
237
+ * @function getTypeUrl
238
+ * @memberof startup.GetAvailableAddressesRequestBody
239
+ * @static
240
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
241
+ * @returns {string} The default type url
242
+ */
243
+ GetAvailableAddressesRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
244
+ if (typeUrlPrefix === undefined) {
245
+ typeUrlPrefix = "type.googleapis.com";
246
+ }
247
+ return typeUrlPrefix + "/startup.GetAvailableAddressesRequestBody";
248
+ };
249
+
233
250
  return GetAvailableAddressesRequestBody;
234
251
  })();
235
252
 
@@ -336,12 +353,14 @@ $root.startup = (function() {
336
353
  while (reader.pos < end) {
337
354
  var tag = reader.uint32();
338
355
  switch (tag >>> 3) {
339
- case 1:
340
- message.userId = reader.string();
341
- break;
342
- case 2:
343
- message.token = $root.common.StringValue.decode(reader, reader.uint32());
344
- break;
356
+ case 1: {
357
+ message.userId = reader.string();
358
+ break;
359
+ }
360
+ case 2: {
361
+ message.token = $root.common.StringValue.decode(reader, reader.uint32());
362
+ break;
363
+ }
345
364
  default:
346
365
  reader.skipType(tag & 7);
347
366
  break;
@@ -445,6 +464,21 @@ $root.startup = (function() {
445
464
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
446
465
  };
447
466
 
467
+ /**
468
+ * Gets the default type url for AddUserRequestBody
469
+ * @function getTypeUrl
470
+ * @memberof startup.AddUserRequestBody
471
+ * @static
472
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
473
+ * @returns {string} The default type url
474
+ */
475
+ AddUserRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
476
+ if (typeUrlPrefix === undefined) {
477
+ typeUrlPrefix = "type.googleapis.com";
478
+ }
479
+ return typeUrlPrefix + "/startup.AddUserRequestBody";
480
+ };
481
+
448
482
  return AddUserRequestBody;
449
483
  })();
450
484
 
@@ -540,9 +574,10 @@ $root.startup = (function() {
540
574
  while (reader.pos < end) {
541
575
  var tag = reader.uint32();
542
576
  switch (tag >>> 3) {
543
- case 1:
544
- message.userId = reader.string();
545
- break;
577
+ case 1: {
578
+ message.userId = reader.string();
579
+ break;
580
+ }
546
581
  default:
547
582
  reader.skipType(tag & 7);
548
583
  break;
@@ -632,6 +667,21 @@ $root.startup = (function() {
632
667
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
633
668
  };
634
669
 
670
+ /**
671
+ * Gets the default type url for IsActivatedRequestBody
672
+ * @function getTypeUrl
673
+ * @memberof startup.IsActivatedRequestBody
674
+ * @static
675
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
676
+ * @returns {string} The default type url
677
+ */
678
+ IsActivatedRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
679
+ if (typeUrlPrefix === undefined) {
680
+ typeUrlPrefix = "type.googleapis.com";
681
+ }
682
+ return typeUrlPrefix + "/startup.IsActivatedRequestBody";
683
+ };
684
+
635
685
  return IsActivatedRequestBody;
636
686
  })();
637
687
 
@@ -727,9 +777,10 @@ $root.startup = (function() {
727
777
  while (reader.pos < end) {
728
778
  var tag = reader.uint32();
729
779
  switch (tag >>> 3) {
730
- case 1:
731
- message.pass = reader.string();
732
- break;
780
+ case 1: {
781
+ message.pass = reader.string();
782
+ break;
783
+ }
733
784
  default:
734
785
  reader.skipType(tag & 7);
735
786
  break;
@@ -819,6 +870,21 @@ $root.startup = (function() {
819
870
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
820
871
  };
821
872
 
873
+ /**
874
+ * Gets the default type url for PassOnlyRequestBody
875
+ * @function getTypeUrl
876
+ * @memberof startup.PassOnlyRequestBody
877
+ * @static
878
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
879
+ * @returns {string} The default type url
880
+ */
881
+ PassOnlyRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
882
+ if (typeUrlPrefix === undefined) {
883
+ typeUrlPrefix = "type.googleapis.com";
884
+ }
885
+ return typeUrlPrefix + "/startup.PassOnlyRequestBody";
886
+ };
887
+
822
888
  return PassOnlyRequestBody;
823
889
  })();
824
890
 
@@ -914,9 +980,10 @@ $root.startup = (function() {
914
980
  while (reader.pos < end) {
915
981
  var tag = reader.uint32();
916
982
  switch (tag >>> 3) {
917
- case 1:
918
- message.address = reader.string();
919
- break;
983
+ case 1: {
984
+ message.address = reader.string();
985
+ break;
986
+ }
920
987
  default:
921
988
  reader.skipType(tag & 7);
922
989
  break;
@@ -1006,6 +1073,21 @@ $root.startup = (function() {
1006
1073
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1007
1074
  };
1008
1075
 
1076
+ /**
1077
+ * Gets the default type url for StartLoginToRemoteStorageRequestBody
1078
+ * @function getTypeUrl
1079
+ * @memberof startup.StartLoginToRemoteStorageRequestBody
1080
+ * @static
1081
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1082
+ * @returns {string} The default type url
1083
+ */
1084
+ StartLoginToRemoteStorageRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1085
+ if (typeUrlPrefix === undefined) {
1086
+ typeUrlPrefix = "type.googleapis.com";
1087
+ }
1088
+ return typeUrlPrefix + "/startup.StartLoginToRemoteStorageRequestBody";
1089
+ };
1090
+
1009
1091
  return StartLoginToRemoteStorageRequestBody;
1010
1092
  })();
1011
1093
 
@@ -1112,12 +1194,14 @@ $root.startup = (function() {
1112
1194
  while (reader.pos < end) {
1113
1195
  var tag = reader.uint32();
1114
1196
  switch (tag >>> 3) {
1115
- case 1:
1116
- message.p = reader.float();
1117
- break;
1118
- case 2:
1119
- message.decrResult = $root.common.BooleanValue.decode(reader, reader.uint32());
1120
- break;
1197
+ case 1: {
1198
+ message.p = reader.float();
1199
+ break;
1200
+ }
1201
+ case 2: {
1202
+ message.decrResult = $root.common.BooleanValue.decode(reader, reader.uint32());
1203
+ break;
1204
+ }
1121
1205
  default:
1122
1206
  reader.skipType(tag & 7);
1123
1207
  break;
@@ -1221,6 +1305,21 @@ $root.startup = (function() {
1221
1305
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1222
1306
  };
1223
1307
 
1308
+ /**
1309
+ * Gets the default type url for ProgressValue
1310
+ * @function getTypeUrl
1311
+ * @memberof startup.ProgressValue
1312
+ * @static
1313
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1314
+ * @returns {string} The default type url
1315
+ */
1316
+ ProgressValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1317
+ if (typeUrlPrefix === undefined) {
1318
+ typeUrlPrefix = "type.googleapis.com";
1319
+ }
1320
+ return typeUrlPrefix + "/startup.ProgressValue";
1321
+ };
1322
+
1224
1323
  return ProgressValue;
1225
1324
  })();
1226
1325
 
@@ -1327,12 +1426,14 @@ $root.startup = (function() {
1327
1426
  while (reader.pos < end) {
1328
1427
  var tag = reader.uint32();
1329
1428
  switch (tag >>> 3) {
1330
- case 1:
1331
- message.address = reader.string();
1332
- break;
1333
- case 2:
1334
- message.pass = reader.string();
1335
- break;
1429
+ case 1: {
1430
+ message.address = reader.string();
1431
+ break;
1432
+ }
1433
+ case 2: {
1434
+ message.pass = reader.string();
1435
+ break;
1436
+ }
1336
1437
  default:
1337
1438
  reader.skipType(tag & 7);
1338
1439
  break;
@@ -1431,6 +1532,21 @@ $root.startup = (function() {
1431
1532
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1432
1533
  };
1433
1534
 
1535
+ /**
1536
+ * Gets the default type url for UseExistingStorageRequestBody
1537
+ * @function getTypeUrl
1538
+ * @memberof startup.UseExistingStorageRequestBody
1539
+ * @static
1540
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1541
+ * @returns {string} The default type url
1542
+ */
1543
+ UseExistingStorageRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1544
+ if (typeUrlPrefix === undefined) {
1545
+ typeUrlPrefix = "type.googleapis.com";
1546
+ }
1547
+ return typeUrlPrefix + "/startup.UseExistingStorageRequestBody";
1548
+ };
1549
+
1434
1550
  return UseExistingStorageRequestBody;
1435
1551
  })();
1436
1552
 
@@ -1551,14 +1667,16 @@ $root.common = (function() {
1551
1667
  while (reader.pos < end) {
1552
1668
  var tag = reader.uint32();
1553
1669
  switch (tag >>> 3) {
1554
- case 1:
1555
- message.objType = reader.string();
1556
- break;
1557
- case 2:
1558
- if (!(message.path && message.path.length))
1559
- message.path = [];
1560
- message.path.push(reader.string());
1561
- break;
1670
+ case 1: {
1671
+ message.objType = reader.string();
1672
+ break;
1673
+ }
1674
+ case 2: {
1675
+ if (!(message.path && message.path.length))
1676
+ message.path = [];
1677
+ message.path.push(reader.string());
1678
+ break;
1679
+ }
1562
1680
  default:
1563
1681
  reader.skipType(tag & 7);
1564
1682
  break;
@@ -1669,6 +1787,21 @@ $root.common = (function() {
1669
1787
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1670
1788
  };
1671
1789
 
1790
+ /**
1791
+ * Gets the default type url for ObjectReference
1792
+ * @function getTypeUrl
1793
+ * @memberof common.ObjectReference
1794
+ * @static
1795
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1796
+ * @returns {string} The default type url
1797
+ */
1798
+ ObjectReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1799
+ if (typeUrlPrefix === undefined) {
1800
+ typeUrlPrefix = "type.googleapis.com";
1801
+ }
1802
+ return typeUrlPrefix + "/common.ObjectReference";
1803
+ };
1804
+
1672
1805
  return ObjectReference;
1673
1806
  })();
1674
1807
 
@@ -1764,9 +1897,10 @@ $root.common = (function() {
1764
1897
  while (reader.pos < end) {
1765
1898
  var tag = reader.uint32();
1766
1899
  switch (tag >>> 3) {
1767
- case 1:
1768
- message.value = reader.bool();
1769
- break;
1900
+ case 1: {
1901
+ message.value = reader.bool();
1902
+ break;
1903
+ }
1770
1904
  default:
1771
1905
  reader.skipType(tag & 7);
1772
1906
  break;
@@ -1856,6 +1990,21 @@ $root.common = (function() {
1856
1990
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1857
1991
  };
1858
1992
 
1993
+ /**
1994
+ * Gets the default type url for BooleanValue
1995
+ * @function getTypeUrl
1996
+ * @memberof common.BooleanValue
1997
+ * @static
1998
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1999
+ * @returns {string} The default type url
2000
+ */
2001
+ BooleanValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2002
+ if (typeUrlPrefix === undefined) {
2003
+ typeUrlPrefix = "type.googleapis.com";
2004
+ }
2005
+ return typeUrlPrefix + "/common.BooleanValue";
2006
+ };
2007
+
1859
2008
  return BooleanValue;
1860
2009
  })();
1861
2010
 
@@ -1953,11 +2102,12 @@ $root.common = (function() {
1953
2102
  while (reader.pos < end) {
1954
2103
  var tag = reader.uint32();
1955
2104
  switch (tag >>> 3) {
1956
- case 1:
1957
- if (!(message.values && message.values.length))
1958
- message.values = [];
1959
- message.values.push(reader.string());
1960
- break;
2105
+ case 1: {
2106
+ if (!(message.values && message.values.length))
2107
+ message.values = [];
2108
+ message.values.push(reader.string());
2109
+ break;
2110
+ }
1961
2111
  default:
1962
2112
  reader.skipType(tag & 7);
1963
2113
  break;
@@ -2059,6 +2209,21 @@ $root.common = (function() {
2059
2209
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2060
2210
  };
2061
2211
 
2212
+ /**
2213
+ * Gets the default type url for StringArrayValue
2214
+ * @function getTypeUrl
2215
+ * @memberof common.StringArrayValue
2216
+ * @static
2217
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2218
+ * @returns {string} The default type url
2219
+ */
2220
+ StringArrayValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2221
+ if (typeUrlPrefix === undefined) {
2222
+ typeUrlPrefix = "type.googleapis.com";
2223
+ }
2224
+ return typeUrlPrefix + "/common.StringArrayValue";
2225
+ };
2226
+
2062
2227
  return StringArrayValue;
2063
2228
  })();
2064
2229
 
@@ -2154,9 +2319,10 @@ $root.common = (function() {
2154
2319
  while (reader.pos < end) {
2155
2320
  var tag = reader.uint32();
2156
2321
  switch (tag >>> 3) {
2157
- case 1:
2158
- message.value = reader.uint64();
2159
- break;
2322
+ case 1: {
2323
+ message.value = reader.uint64();
2324
+ break;
2325
+ }
2160
2326
  default:
2161
2327
  reader.skipType(tag & 7);
2162
2328
  break;
@@ -2260,6 +2426,21 @@ $root.common = (function() {
2260
2426
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2261
2427
  };
2262
2428
 
2429
+ /**
2430
+ * Gets the default type url for UInt64Value
2431
+ * @function getTypeUrl
2432
+ * @memberof common.UInt64Value
2433
+ * @static
2434
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2435
+ * @returns {string} The default type url
2436
+ */
2437
+ UInt64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2438
+ if (typeUrlPrefix === undefined) {
2439
+ typeUrlPrefix = "type.googleapis.com";
2440
+ }
2441
+ return typeUrlPrefix + "/common.UInt64Value";
2442
+ };
2443
+
2263
2444
  return UInt64Value;
2264
2445
  })();
2265
2446
 
@@ -2355,9 +2536,10 @@ $root.common = (function() {
2355
2536
  while (reader.pos < end) {
2356
2537
  var tag = reader.uint32();
2357
2538
  switch (tag >>> 3) {
2358
- case 1:
2359
- message.value = reader.uint32();
2360
- break;
2539
+ case 1: {
2540
+ message.value = reader.uint32();
2541
+ break;
2542
+ }
2361
2543
  default:
2362
2544
  reader.skipType(tag & 7);
2363
2545
  break;
@@ -2447,6 +2629,21 @@ $root.common = (function() {
2447
2629
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2448
2630
  };
2449
2631
 
2632
+ /**
2633
+ * Gets the default type url for UInt32Value
2634
+ * @function getTypeUrl
2635
+ * @memberof common.UInt32Value
2636
+ * @static
2637
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2638
+ * @returns {string} The default type url
2639
+ */
2640
+ UInt32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2641
+ if (typeUrlPrefix === undefined) {
2642
+ typeUrlPrefix = "type.googleapis.com";
2643
+ }
2644
+ return typeUrlPrefix + "/common.UInt32Value";
2645
+ };
2646
+
2450
2647
  return UInt32Value;
2451
2648
  })();
2452
2649
 
@@ -2542,9 +2739,10 @@ $root.common = (function() {
2542
2739
  while (reader.pos < end) {
2543
2740
  var tag = reader.uint32();
2544
2741
  switch (tag >>> 3) {
2545
- case 1:
2546
- message.value = reader.string();
2547
- break;
2742
+ case 1: {
2743
+ message.value = reader.string();
2744
+ break;
2745
+ }
2548
2746
  default:
2549
2747
  reader.skipType(tag & 7);
2550
2748
  break;
@@ -2634,6 +2832,21 @@ $root.common = (function() {
2634
2832
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2635
2833
  };
2636
2834
 
2835
+ /**
2836
+ * Gets the default type url for StringValue
2837
+ * @function getTypeUrl
2838
+ * @memberof common.StringValue
2839
+ * @static
2840
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2841
+ * @returns {string} The default type url
2842
+ */
2843
+ StringValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2844
+ if (typeUrlPrefix === undefined) {
2845
+ typeUrlPrefix = "type.googleapis.com";
2846
+ }
2847
+ return typeUrlPrefix + "/common.StringValue";
2848
+ };
2849
+
2637
2850
  return StringValue;
2638
2851
  })();
2639
2852
 
@@ -2729,9 +2942,10 @@ $root.common = (function() {
2729
2942
  while (reader.pos < end) {
2730
2943
  var tag = reader.uint32();
2731
2944
  switch (tag >>> 3) {
2732
- case 1:
2733
- message.value = reader.bytes();
2734
- break;
2945
+ case 1: {
2946
+ message.value = reader.bytes();
2947
+ break;
2948
+ }
2735
2949
  default:
2736
2950
  reader.skipType(tag & 7);
2737
2951
  break;
@@ -2788,7 +3002,7 @@ $root.common = (function() {
2788
3002
  if (object.value != null)
2789
3003
  if (typeof object.value === "string")
2790
3004
  $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
2791
- else if (object.value.length)
3005
+ else if (object.value.length >= 0)
2792
3006
  message.value = object.value;
2793
3007
  return message;
2794
3008
  };
@@ -2830,6 +3044,21 @@ $root.common = (function() {
2830
3044
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2831
3045
  };
2832
3046
 
3047
+ /**
3048
+ * Gets the default type url for BytesValue
3049
+ * @function getTypeUrl
3050
+ * @memberof common.BytesValue
3051
+ * @static
3052
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3053
+ * @returns {string} The default type url
3054
+ */
3055
+ BytesValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3056
+ if (typeUrlPrefix === undefined) {
3057
+ typeUrlPrefix = "type.googleapis.com";
3058
+ }
3059
+ return typeUrlPrefix + "/common.BytesValue";
3060
+ };
3061
+
2833
3062
  return BytesValue;
2834
3063
  })();
2835
3064
 
@@ -2936,12 +3165,14 @@ $root.common = (function() {
2936
3165
  while (reader.pos < end) {
2937
3166
  var tag = reader.uint32();
2938
3167
  switch (tag >>> 3) {
2939
- case 1:
2940
- message.runtimeExcJson = reader.string();
2941
- break;
2942
- case 2:
2943
- message.err = reader.string();
2944
- break;
3168
+ case 1: {
3169
+ message.runtimeExcJson = reader.string();
3170
+ break;
3171
+ }
3172
+ case 2: {
3173
+ message.err = reader.string();
3174
+ break;
3175
+ }
2945
3176
  default:
2946
3177
  reader.skipType(tag & 7);
2947
3178
  break;
@@ -3040,6 +3271,21 @@ $root.common = (function() {
3040
3271
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3041
3272
  };
3042
3273
 
3274
+ /**
3275
+ * Gets the default type url for ErrorValue
3276
+ * @function getTypeUrl
3277
+ * @memberof common.ErrorValue
3278
+ * @static
3279
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3280
+ * @returns {string} The default type url
3281
+ */
3282
+ ErrorValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3283
+ if (typeUrlPrefix === undefined) {
3284
+ typeUrlPrefix = "type.googleapis.com";
3285
+ }
3286
+ return typeUrlPrefix + "/common.ErrorValue";
3287
+ };
3288
+
3043
3289
  return ErrorValue;
3044
3290
  })();
3045
3291
 
@@ -3157,15 +3403,18 @@ $root.common = (function() {
3157
3403
  while (reader.pos < end) {
3158
3404
  var tag = reader.uint32();
3159
3405
  switch (tag >>> 3) {
3160
- case 1:
3161
- message.type = reader.string();
3162
- break;
3163
- case 2:
3164
- message.json = $root.common.StringValue.decode(reader, reader.uint32());
3165
- break;
3166
- case 3:
3167
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
3168
- break;
3406
+ case 1: {
3407
+ message.type = reader.string();
3408
+ break;
3409
+ }
3410
+ case 2: {
3411
+ message.json = $root.common.StringValue.decode(reader, reader.uint32());
3412
+ break;
3413
+ }
3414
+ case 3: {
3415
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
3416
+ break;
3417
+ }
3169
3418
  default:
3170
3419
  reader.skipType(tag & 7);
3171
3420
  break;
@@ -3282,6 +3531,21 @@ $root.common = (function() {
3282
3531
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3283
3532
  };
3284
3533
 
3534
+ /**
3535
+ * Gets the default type url for AnyValue
3536
+ * @function getTypeUrl
3537
+ * @memberof common.AnyValue
3538
+ * @static
3539
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3540
+ * @returns {string} The default type url
3541
+ */
3542
+ AnyValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3543
+ if (typeUrlPrefix === undefined) {
3544
+ typeUrlPrefix = "type.googleapis.com";
3545
+ }
3546
+ return typeUrlPrefix + "/common.AnyValue";
3547
+ };
3548
+
3285
3549
  return AnyValue;
3286
3550
  })();
3287
3551