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
@@ -165,24 +165,30 @@ $root.file = (function() {
165
165
  while (reader.pos < end) {
166
166
  var tag = reader.uint32();
167
167
  switch (tag >>> 3) {
168
- case 1:
169
- message.writable = reader.bool();
170
- break;
171
- case 2:
172
- message.isVersioned = reader.bool();
173
- break;
174
- case 3:
175
- message.name = reader.string();
176
- break;
177
- case 4:
178
- message.isNew = reader.bool();
179
- break;
180
- case 5:
181
- message.impl = $root.common.ObjectReference.decode(reader, reader.uint32());
182
- break;
183
- case 6:
184
- message.isSynced = reader.bool();
185
- break;
168
+ case 1: {
169
+ message.writable = reader.bool();
170
+ break;
171
+ }
172
+ case 2: {
173
+ message.isVersioned = reader.bool();
174
+ break;
175
+ }
176
+ case 3: {
177
+ message.name = reader.string();
178
+ break;
179
+ }
180
+ case 4: {
181
+ message.isNew = reader.bool();
182
+ break;
183
+ }
184
+ case 5: {
185
+ message.impl = $root.common.ObjectReference.decode(reader, reader.uint32());
186
+ break;
187
+ }
188
+ case 6: {
189
+ message.isSynced = reader.bool();
190
+ break;
191
+ }
186
192
  default:
187
193
  reader.skipType(tag & 7);
188
194
  break;
@@ -318,6 +324,21 @@ $root.file = (function() {
318
324
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
319
325
  };
320
326
 
327
+ /**
328
+ * Gets the default type url for File
329
+ * @function getTypeUrl
330
+ * @memberof file.File
331
+ * @static
332
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
333
+ * @returns {string} The default type url
334
+ */
335
+ File.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
336
+ if (typeUrlPrefix === undefined) {
337
+ typeUrlPrefix = "type.googleapis.com";
338
+ }
339
+ return typeUrlPrefix + "/file.File";
340
+ };
341
+
321
342
  return File;
322
343
  })();
323
344
 
@@ -457,21 +478,26 @@ $root.file = (function() {
457
478
  while (reader.pos < end) {
458
479
  var tag = reader.uint32();
459
480
  switch (tag >>> 3) {
460
- case 1:
461
- message.state = reader.string();
462
- break;
463
- case 2:
464
- message.local = $root.file.SyncVersionsBranchMsg.decode(reader, reader.uint32());
465
- break;
466
- case 3:
467
- message.synced = $root.file.SyncVersionsBranchMsg.decode(reader, reader.uint32());
468
- break;
469
- case 4:
470
- message.remote = $root.file.SyncVersionsBranchMsg.decode(reader, reader.uint32());
471
- break;
472
- case 5:
473
- message.existsInSyncedParent = $root.common.BooleanValue.decode(reader, reader.uint32());
474
- break;
481
+ case 1: {
482
+ message.state = reader.string();
483
+ break;
484
+ }
485
+ case 2: {
486
+ message.local = $root.file.SyncVersionsBranchMsg.decode(reader, reader.uint32());
487
+ break;
488
+ }
489
+ case 3: {
490
+ message.synced = $root.file.SyncVersionsBranchMsg.decode(reader, reader.uint32());
491
+ break;
492
+ }
493
+ case 4: {
494
+ message.remote = $root.file.SyncVersionsBranchMsg.decode(reader, reader.uint32());
495
+ break;
496
+ }
497
+ case 5: {
498
+ message.existsInSyncedParent = $root.common.BooleanValue.decode(reader, reader.uint32());
499
+ break;
500
+ }
475
501
  default:
476
502
  reader.skipType(tag & 7);
477
503
  break;
@@ -614,6 +640,21 @@ $root.file = (function() {
614
640
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
615
641
  };
616
642
 
643
+ /**
644
+ * Gets the default type url for SyncStatusMsg
645
+ * @function getTypeUrl
646
+ * @memberof file.SyncStatusMsg
647
+ * @static
648
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
649
+ * @returns {string} The default type url
650
+ */
651
+ SyncStatusMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
652
+ if (typeUrlPrefix === undefined) {
653
+ typeUrlPrefix = "type.googleapis.com";
654
+ }
655
+ return typeUrlPrefix + "/file.SyncStatusMsg";
656
+ };
657
+
617
658
  return SyncStatusMsg;
618
659
  })();
619
660
 
@@ -736,22 +777,25 @@ $root.file = (function() {
736
777
  while (reader.pos < end) {
737
778
  var tag = reader.uint32();
738
779
  switch (tag >>> 3) {
739
- case 1:
740
- message.latest = $root.common.UInt64Value.decode(reader, reader.uint32());
741
- break;
742
- case 2:
743
- if (!(message.archived && message.archived.length))
744
- message.archived = [];
745
- if ((tag & 7) === 2) {
746
- var end2 = reader.uint32() + reader.pos;
747
- while (reader.pos < end2)
780
+ case 1: {
781
+ message.latest = $root.common.UInt64Value.decode(reader, reader.uint32());
782
+ break;
783
+ }
784
+ case 2: {
785
+ if (!(message.archived && message.archived.length))
786
+ message.archived = [];
787
+ if ((tag & 7) === 2) {
788
+ var end2 = reader.uint32() + reader.pos;
789
+ while (reader.pos < end2)
790
+ message.archived.push(reader.uint64());
791
+ } else
748
792
  message.archived.push(reader.uint64());
749
- } else
750
- message.archived.push(reader.uint64());
751
- break;
752
- case 3:
753
- message.isArchived = $root.common.BooleanValue.decode(reader, reader.uint32());
754
- break;
793
+ break;
794
+ }
795
+ case 3: {
796
+ message.isArchived = $root.common.BooleanValue.decode(reader, reader.uint32());
797
+ break;
798
+ }
755
799
  default:
756
800
  reader.skipType(tag & 7);
757
801
  break;
@@ -891,6 +935,21 @@ $root.file = (function() {
891
935
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
892
936
  };
893
937
 
938
+ /**
939
+ * Gets the default type url for SyncVersionsBranchMsg
940
+ * @function getTypeUrl
941
+ * @memberof file.SyncVersionsBranchMsg
942
+ * @static
943
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
944
+ * @returns {string} The default type url
945
+ */
946
+ SyncVersionsBranchMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
947
+ if (typeUrlPrefix === undefined) {
948
+ typeUrlPrefix = "type.googleapis.com";
949
+ }
950
+ return typeUrlPrefix + "/file.SyncVersionsBranchMsg";
951
+ };
952
+
894
953
  return SyncVersionsBranchMsg;
895
954
  })();
896
955
 
@@ -1074,33 +1133,42 @@ $root.file = (function() {
1074
1133
  while (reader.pos < end) {
1075
1134
  var tag = reader.uint32();
1076
1135
  switch (tag >>> 3) {
1077
- case 1:
1078
- message.isFile = $root.common.BooleanValue.decode(reader, reader.uint32());
1079
- break;
1080
- case 2:
1081
- message.isFolder = $root.common.BooleanValue.decode(reader, reader.uint32());
1082
- break;
1083
- case 3:
1084
- message.isLink = $root.common.BooleanValue.decode(reader, reader.uint32());
1085
- break;
1086
- case 4:
1087
- message.writable = reader.bool();
1088
- break;
1089
- case 5:
1090
- message.size = $root.common.UInt64Value.decode(reader, reader.uint32());
1091
- break;
1092
- case 6:
1093
- message.mtime = $root.common.UInt64Value.decode(reader, reader.uint32());
1094
- break;
1095
- case 7:
1096
- message.ctime = $root.common.UInt64Value.decode(reader, reader.uint32());
1097
- break;
1098
- case 8:
1099
- message.version = $root.common.UInt64Value.decode(reader, reader.uint32());
1100
- break;
1101
- case 9:
1102
- message.sync = $root.file.SyncStatusMsg.decode(reader, reader.uint32());
1103
- break;
1136
+ case 1: {
1137
+ message.isFile = $root.common.BooleanValue.decode(reader, reader.uint32());
1138
+ break;
1139
+ }
1140
+ case 2: {
1141
+ message.isFolder = $root.common.BooleanValue.decode(reader, reader.uint32());
1142
+ break;
1143
+ }
1144
+ case 3: {
1145
+ message.isLink = $root.common.BooleanValue.decode(reader, reader.uint32());
1146
+ break;
1147
+ }
1148
+ case 4: {
1149
+ message.writable = reader.bool();
1150
+ break;
1151
+ }
1152
+ case 5: {
1153
+ message.size = $root.common.UInt64Value.decode(reader, reader.uint32());
1154
+ break;
1155
+ }
1156
+ case 6: {
1157
+ message.mtime = $root.common.UInt64Value.decode(reader, reader.uint32());
1158
+ break;
1159
+ }
1160
+ case 7: {
1161
+ message.ctime = $root.common.UInt64Value.decode(reader, reader.uint32());
1162
+ break;
1163
+ }
1164
+ case 8: {
1165
+ message.version = $root.common.UInt64Value.decode(reader, reader.uint32());
1166
+ break;
1167
+ }
1168
+ case 9: {
1169
+ message.sync = $root.file.SyncStatusMsg.decode(reader, reader.uint32());
1170
+ break;
1171
+ }
1104
1172
  default:
1105
1173
  reader.skipType(tag & 7);
1106
1174
  break;
@@ -1295,6 +1363,21 @@ $root.file = (function() {
1295
1363
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1296
1364
  };
1297
1365
 
1366
+ /**
1367
+ * Gets the default type url for StatsMsg
1368
+ * @function getTypeUrl
1369
+ * @memberof file.StatsMsg
1370
+ * @static
1371
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1372
+ * @returns {string} The default type url
1373
+ */
1374
+ StatsMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1375
+ if (typeUrlPrefix === undefined) {
1376
+ typeUrlPrefix = "type.googleapis.com";
1377
+ }
1378
+ return typeUrlPrefix + "/file.StatsMsg";
1379
+ };
1380
+
1298
1381
  return StatsMsg;
1299
1382
  })();
1300
1383
 
@@ -1390,9 +1473,10 @@ $root.file = (function() {
1390
1473
  while (reader.pos < end) {
1391
1474
  var tag = reader.uint32();
1392
1475
  switch (tag >>> 3) {
1393
- case 1:
1394
- message.xaName = reader.string();
1395
- break;
1476
+ case 1: {
1477
+ message.xaName = reader.string();
1478
+ break;
1479
+ }
1396
1480
  default:
1397
1481
  reader.skipType(tag & 7);
1398
1482
  break;
@@ -1482,6 +1566,21 @@ $root.file = (function() {
1482
1566
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1483
1567
  };
1484
1568
 
1569
+ /**
1570
+ * Gets the default type url for GetXAttrRequestBody
1571
+ * @function getTypeUrl
1572
+ * @memberof file.GetXAttrRequestBody
1573
+ * @static
1574
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1575
+ * @returns {string} The default type url
1576
+ */
1577
+ GetXAttrRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1578
+ if (typeUrlPrefix === undefined) {
1579
+ typeUrlPrefix = "type.googleapis.com";
1580
+ }
1581
+ return typeUrlPrefix + "/file.GetXAttrRequestBody";
1582
+ };
1583
+
1485
1584
  return GetXAttrRequestBody;
1486
1585
  })();
1487
1586
 
@@ -1599,15 +1698,18 @@ $root.file = (function() {
1599
1698
  while (reader.pos < end) {
1600
1699
  var tag = reader.uint32();
1601
1700
  switch (tag >>> 3) {
1602
- case 1:
1603
- message.str = $root.common.StringValue.decode(reader, reader.uint32());
1604
- break;
1605
- case 2:
1606
- message.json = $root.common.StringValue.decode(reader, reader.uint32());
1607
- break;
1608
- case 3:
1609
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
1610
- break;
1701
+ case 1: {
1702
+ message.str = $root.common.StringValue.decode(reader, reader.uint32());
1703
+ break;
1704
+ }
1705
+ case 2: {
1706
+ message.json = $root.common.StringValue.decode(reader, reader.uint32());
1707
+ break;
1708
+ }
1709
+ case 3: {
1710
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
1711
+ break;
1712
+ }
1611
1713
  default:
1612
1714
  reader.skipType(tag & 7);
1613
1715
  break;
@@ -1729,6 +1831,21 @@ $root.file = (function() {
1729
1831
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1730
1832
  };
1731
1833
 
1834
+ /**
1835
+ * Gets the default type url for XAttrValue
1836
+ * @function getTypeUrl
1837
+ * @memberof file.XAttrValue
1838
+ * @static
1839
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1840
+ * @returns {string} The default type url
1841
+ */
1842
+ XAttrValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1843
+ if (typeUrlPrefix === undefined) {
1844
+ typeUrlPrefix = "type.googleapis.com";
1845
+ }
1846
+ return typeUrlPrefix + "/file.XAttrValue";
1847
+ };
1848
+
1732
1849
  return XAttrValue;
1733
1850
  })();
1734
1851
 
@@ -1835,12 +1952,14 @@ $root.file = (function() {
1835
1952
  while (reader.pos < end) {
1836
1953
  var tag = reader.uint32();
1837
1954
  switch (tag >>> 3) {
1838
- case 1:
1839
- message.start = $root.common.UInt64Value.decode(reader, reader.uint32());
1840
- break;
1841
- case 2:
1842
- message.end = $root.common.UInt64Value.decode(reader, reader.uint32());
1843
- break;
1955
+ case 1: {
1956
+ message.start = $root.common.UInt64Value.decode(reader, reader.uint32());
1957
+ break;
1958
+ }
1959
+ case 2: {
1960
+ message.end = $root.common.UInt64Value.decode(reader, reader.uint32());
1961
+ break;
1962
+ }
1844
1963
  default:
1845
1964
  reader.skipType(tag & 7);
1846
1965
  break;
@@ -1949,6 +2068,21 @@ $root.file = (function() {
1949
2068
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1950
2069
  };
1951
2070
 
2071
+ /**
2072
+ * Gets the default type url for ReadBytesRequestBody
2073
+ * @function getTypeUrl
2074
+ * @memberof file.ReadBytesRequestBody
2075
+ * @static
2076
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2077
+ * @returns {string} The default type url
2078
+ */
2079
+ ReadBytesRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2080
+ if (typeUrlPrefix === undefined) {
2081
+ typeUrlPrefix = "type.googleapis.com";
2082
+ }
2083
+ return typeUrlPrefix + "/file.ReadBytesRequestBody";
2084
+ };
2085
+
1952
2086
  return ReadBytesRequestBody;
1953
2087
  })();
1954
2088
 
@@ -2044,9 +2178,10 @@ $root.file = (function() {
2044
2178
  while (reader.pos < end) {
2045
2179
  var tag = reader.uint32();
2046
2180
  switch (tag >>> 3) {
2047
- case 1:
2048
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
2049
- break;
2181
+ case 1: {
2182
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
2183
+ break;
2184
+ }
2050
2185
  default:
2051
2186
  reader.skipType(tag & 7);
2052
2187
  break;
@@ -2141,6 +2276,21 @@ $root.file = (function() {
2141
2276
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2142
2277
  };
2143
2278
 
2279
+ /**
2280
+ * Gets the default type url for ReadBytesReplyBody
2281
+ * @function getTypeUrl
2282
+ * @memberof file.ReadBytesReplyBody
2283
+ * @static
2284
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2285
+ * @returns {string} The default type url
2286
+ */
2287
+ ReadBytesReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2288
+ if (typeUrlPrefix === undefined) {
2289
+ typeUrlPrefix = "type.googleapis.com";
2290
+ }
2291
+ return typeUrlPrefix + "/file.ReadBytesReplyBody";
2292
+ };
2293
+
2144
2294
  return ReadBytesReplyBody;
2145
2295
  })();
2146
2296
 
@@ -2291,24 +2441,30 @@ $root.file = (function() {
2291
2441
  while (reader.pos < end) {
2292
2442
  var tag = reader.uint32();
2293
2443
  switch (tag >>> 3) {
2294
- case 1:
2295
- message.type = reader.string();
2296
- break;
2297
- case 2:
2298
- message.path = reader.string();
2299
- break;
2300
- case 3:
2301
- message.src = $root.common.StringValue.decode(reader, reader.uint32());
2302
- break;
2303
- case 4:
2304
- message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2305
- break;
2306
- case 5:
2307
- message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
2308
- break;
2309
- case 6:
2310
- message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2311
- break;
2444
+ case 1: {
2445
+ message.type = reader.string();
2446
+ break;
2447
+ }
2448
+ case 2: {
2449
+ message.path = reader.string();
2450
+ break;
2451
+ }
2452
+ case 3: {
2453
+ message.src = $root.common.StringValue.decode(reader, reader.uint32());
2454
+ break;
2455
+ }
2456
+ case 4: {
2457
+ message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2458
+ break;
2459
+ }
2460
+ case 5: {
2461
+ message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
2462
+ break;
2463
+ }
2464
+ case 6: {
2465
+ message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2466
+ break;
2467
+ }
2312
2468
  default:
2313
2469
  reader.skipType(tag & 7);
2314
2470
  break;
@@ -2459,6 +2615,21 @@ $root.file = (function() {
2459
2615
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2460
2616
  };
2461
2617
 
2618
+ /**
2619
+ * Gets the default type url for FileEventMsg
2620
+ * @function getTypeUrl
2621
+ * @memberof file.FileEventMsg
2622
+ * @static
2623
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2624
+ * @returns {string} The default type url
2625
+ */
2626
+ FileEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2627
+ if (typeUrlPrefix === undefined) {
2628
+ typeUrlPrefix = "type.googleapis.com";
2629
+ }
2630
+ return typeUrlPrefix + "/file.FileEventMsg";
2631
+ };
2632
+
2462
2633
  return FileEventMsg;
2463
2634
  })();
2464
2635
 
@@ -2565,12 +2736,14 @@ $root.file = (function() {
2565
2736
  while (reader.pos < end) {
2566
2737
  var tag = reader.uint32();
2567
2738
  switch (tag >>> 3) {
2568
- case 1:
2569
- message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2570
- break;
2571
- case 2:
2572
- message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2573
- break;
2739
+ case 1: {
2740
+ message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2741
+ break;
2742
+ }
2743
+ case 2: {
2744
+ message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2745
+ break;
2746
+ }
2574
2747
  default:
2575
2748
  reader.skipType(tag & 7);
2576
2749
  break;
@@ -2679,6 +2852,21 @@ $root.file = (function() {
2679
2852
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2680
2853
  };
2681
2854
 
2855
+ /**
2856
+ * Gets the default type url for VersionedReadFlags
2857
+ * @function getTypeUrl
2858
+ * @memberof file.VersionedReadFlags
2859
+ * @static
2860
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2861
+ * @returns {string} The default type url
2862
+ */
2863
+ VersionedReadFlags.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2864
+ if (typeUrlPrefix === undefined) {
2865
+ typeUrlPrefix = "type.googleapis.com";
2866
+ }
2867
+ return typeUrlPrefix + "/file.VersionedReadFlags";
2868
+ };
2869
+
2682
2870
  return VersionedReadFlags;
2683
2871
  })();
2684
2872
 
@@ -2774,9 +2962,10 @@ $root.file = (function() {
2774
2962
  while (reader.pos < end) {
2775
2963
  var tag = reader.uint32();
2776
2964
  switch (tag >>> 3) {
2777
- case 1:
2778
- message.flags = $root.file.VersionedReadFlags.decode(reader, reader.uint32());
2779
- break;
2965
+ case 1: {
2966
+ message.flags = $root.file.VersionedReadFlags.decode(reader, reader.uint32());
2967
+ break;
2968
+ }
2780
2969
  default:
2781
2970
  reader.skipType(tag & 7);
2782
2971
  break;
@@ -2871,6 +3060,21 @@ $root.file = (function() {
2871
3060
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2872
3061
  };
2873
3062
 
3063
+ /**
3064
+ * Gets the default type url for RequestWithVersionedReadFlags
3065
+ * @function getTypeUrl
3066
+ * @memberof file.RequestWithVersionedReadFlags
3067
+ * @static
3068
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3069
+ * @returns {string} The default type url
3070
+ */
3071
+ RequestWithVersionedReadFlags.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3072
+ if (typeUrlPrefix === undefined) {
3073
+ typeUrlPrefix = "type.googleapis.com";
3074
+ }
3075
+ return typeUrlPrefix + "/file.RequestWithVersionedReadFlags";
3076
+ };
3077
+
2874
3078
  return RequestWithVersionedReadFlags;
2875
3079
  })();
2876
3080
 
@@ -2977,12 +3181,14 @@ $root.file = (function() {
2977
3181
  while (reader.pos < end) {
2978
3182
  var tag = reader.uint32();
2979
3183
  switch (tag >>> 3) {
2980
- case 1:
2981
- message.xaName = reader.string();
2982
- break;
2983
- case 2:
2984
- message.flags = $root.file.VersionedReadFlags.decode(reader, reader.uint32());
2985
- break;
3184
+ case 1: {
3185
+ message.xaName = reader.string();
3186
+ break;
3187
+ }
3188
+ case 2: {
3189
+ message.flags = $root.file.VersionedReadFlags.decode(reader, reader.uint32());
3190
+ break;
3191
+ }
2986
3192
  default:
2987
3193
  reader.skipType(tag & 7);
2988
3194
  break;
@@ -3086,6 +3292,21 @@ $root.file = (function() {
3086
3292
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3087
3293
  };
3088
3294
 
3295
+ /**
3296
+ * Gets the default type url for VersionedGetXAttrRequestBody
3297
+ * @function getTypeUrl
3298
+ * @memberof file.VersionedGetXAttrRequestBody
3299
+ * @static
3300
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3301
+ * @returns {string} The default type url
3302
+ */
3303
+ VersionedGetXAttrRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3304
+ if (typeUrlPrefix === undefined) {
3305
+ typeUrlPrefix = "type.googleapis.com";
3306
+ }
3307
+ return typeUrlPrefix + "/file.VersionedGetXAttrRequestBody";
3308
+ };
3309
+
3089
3310
  return VersionedGetXAttrRequestBody;
3090
3311
  })();
3091
3312
 
@@ -3214,18 +3435,22 @@ $root.file = (function() {
3214
3435
  while (reader.pos < end) {
3215
3436
  var tag = reader.uint32();
3216
3437
  switch (tag >>> 3) {
3217
- case 1:
3218
- message.version = reader.uint64();
3219
- break;
3220
- case 2:
3221
- message.str = $root.common.StringValue.decode(reader, reader.uint32());
3222
- break;
3223
- case 3:
3224
- message.json = $root.common.StringValue.decode(reader, reader.uint32());
3225
- break;
3226
- case 4:
3227
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
3228
- break;
3438
+ case 1: {
3439
+ message.version = reader.uint64();
3440
+ break;
3441
+ }
3442
+ case 2: {
3443
+ message.str = $root.common.StringValue.decode(reader, reader.uint32());
3444
+ break;
3445
+ }
3446
+ case 3: {
3447
+ message.json = $root.common.StringValue.decode(reader, reader.uint32());
3448
+ break;
3449
+ }
3450
+ case 4: {
3451
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
3452
+ break;
3453
+ }
3229
3454
  default:
3230
3455
  reader.skipType(tag & 7);
3231
3456
  break;
@@ -3369,6 +3594,21 @@ $root.file = (function() {
3369
3594
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3370
3595
  };
3371
3596
 
3597
+ /**
3598
+ * Gets the default type url for VersionedGetXAttrReplyBody
3599
+ * @function getTypeUrl
3600
+ * @memberof file.VersionedGetXAttrReplyBody
3601
+ * @static
3602
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3603
+ * @returns {string} The default type url
3604
+ */
3605
+ VersionedGetXAttrReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3606
+ if (typeUrlPrefix === undefined) {
3607
+ typeUrlPrefix = "type.googleapis.com";
3608
+ }
3609
+ return typeUrlPrefix + "/file.VersionedGetXAttrReplyBody";
3610
+ };
3611
+
3372
3612
  return VersionedGetXAttrReplyBody;
3373
3613
  })();
3374
3614
 
@@ -3477,14 +3717,16 @@ $root.file = (function() {
3477
3717
  while (reader.pos < end) {
3478
3718
  var tag = reader.uint32();
3479
3719
  switch (tag >>> 3) {
3480
- case 1:
3481
- message.version = reader.uint64();
3482
- break;
3483
- case 2:
3484
- if (!(message.xaNames && message.xaNames.length))
3485
- message.xaNames = [];
3486
- message.xaNames.push(reader.string());
3487
- break;
3720
+ case 1: {
3721
+ message.version = reader.uint64();
3722
+ break;
3723
+ }
3724
+ case 2: {
3725
+ if (!(message.xaNames && message.xaNames.length))
3726
+ message.xaNames = [];
3727
+ message.xaNames.push(reader.string());
3728
+ break;
3729
+ }
3488
3730
  default:
3489
3731
  reader.skipType(tag & 7);
3490
3732
  break;
@@ -3609,6 +3851,21 @@ $root.file = (function() {
3609
3851
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3610
3852
  };
3611
3853
 
3854
+ /**
3855
+ * Gets the default type url for VersionedListXAttrsReplyBody
3856
+ * @function getTypeUrl
3857
+ * @memberof file.VersionedListXAttrsReplyBody
3858
+ * @static
3859
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3860
+ * @returns {string} The default type url
3861
+ */
3862
+ VersionedListXAttrsReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3863
+ if (typeUrlPrefix === undefined) {
3864
+ typeUrlPrefix = "type.googleapis.com";
3865
+ }
3866
+ return typeUrlPrefix + "/file.VersionedListXAttrsReplyBody";
3867
+ };
3868
+
3612
3869
  return VersionedListXAttrsReplyBody;
3613
3870
  })();
3614
3871
 
@@ -3726,15 +3983,18 @@ $root.file = (function() {
3726
3983
  while (reader.pos < end) {
3727
3984
  var tag = reader.uint32();
3728
3985
  switch (tag >>> 3) {
3729
- case 1:
3730
- message.start = $root.common.UInt64Value.decode(reader, reader.uint32());
3731
- break;
3732
- case 2:
3733
- message.end = $root.common.UInt64Value.decode(reader, reader.uint32());
3734
- break;
3735
- case 10:
3736
- message.flags = $root.file.VersionedReadFlags.decode(reader, reader.uint32());
3737
- break;
3986
+ case 1: {
3987
+ message.start = $root.common.UInt64Value.decode(reader, reader.uint32());
3988
+ break;
3989
+ }
3990
+ case 2: {
3991
+ message.end = $root.common.UInt64Value.decode(reader, reader.uint32());
3992
+ break;
3993
+ }
3994
+ case 10: {
3995
+ message.flags = $root.file.VersionedReadFlags.decode(reader, reader.uint32());
3996
+ break;
3997
+ }
3738
3998
  default:
3739
3999
  reader.skipType(tag & 7);
3740
4000
  break;
@@ -3856,6 +4116,21 @@ $root.file = (function() {
3856
4116
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3857
4117
  };
3858
4118
 
4119
+ /**
4120
+ * Gets the default type url for VersionedReadBytesRequestBody
4121
+ * @function getTypeUrl
4122
+ * @memberof file.VersionedReadBytesRequestBody
4123
+ * @static
4124
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4125
+ * @returns {string} The default type url
4126
+ */
4127
+ VersionedReadBytesRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4128
+ if (typeUrlPrefix === undefined) {
4129
+ typeUrlPrefix = "type.googleapis.com";
4130
+ }
4131
+ return typeUrlPrefix + "/file.VersionedReadBytesRequestBody";
4132
+ };
4133
+
3859
4134
  return VersionedReadBytesRequestBody;
3860
4135
  })();
3861
4136
 
@@ -3962,12 +4237,14 @@ $root.file = (function() {
3962
4237
  while (reader.pos < end) {
3963
4238
  var tag = reader.uint32();
3964
4239
  switch (tag >>> 3) {
3965
- case 1:
3966
- message.version = reader.uint64();
3967
- break;
3968
- case 2:
3969
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
3970
- break;
4240
+ case 1: {
4241
+ message.version = reader.uint64();
4242
+ break;
4243
+ }
4244
+ case 2: {
4245
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
4246
+ break;
4247
+ }
3971
4248
  default:
3972
4249
  reader.skipType(tag & 7);
3973
4250
  break;
@@ -4085,6 +4362,21 @@ $root.file = (function() {
4085
4362
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4086
4363
  };
4087
4364
 
4365
+ /**
4366
+ * Gets the default type url for VersionedReadBytesReplyBody
4367
+ * @function getTypeUrl
4368
+ * @memberof file.VersionedReadBytesReplyBody
4369
+ * @static
4370
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4371
+ * @returns {string} The default type url
4372
+ */
4373
+ VersionedReadBytesReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4374
+ if (typeUrlPrefix === undefined) {
4375
+ typeUrlPrefix = "type.googleapis.com";
4376
+ }
4377
+ return typeUrlPrefix + "/file.VersionedReadBytesReplyBody";
4378
+ };
4379
+
4088
4380
  return VersionedReadBytesReplyBody;
4089
4381
  })();
4090
4382
 
@@ -4191,12 +4483,14 @@ $root.file = (function() {
4191
4483
  while (reader.pos < end) {
4192
4484
  var tag = reader.uint32();
4193
4485
  switch (tag >>> 3) {
4194
- case 1:
4195
- message.version = reader.uint64();
4196
- break;
4197
- case 2:
4198
- message.txt = reader.string();
4199
- break;
4486
+ case 1: {
4487
+ message.version = reader.uint64();
4488
+ break;
4489
+ }
4490
+ case 2: {
4491
+ message.txt = reader.string();
4492
+ break;
4493
+ }
4200
4494
  default:
4201
4495
  reader.skipType(tag & 7);
4202
4496
  break;
@@ -4309,6 +4603,21 @@ $root.file = (function() {
4309
4603
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4310
4604
  };
4311
4605
 
4606
+ /**
4607
+ * Gets the default type url for VersionedReadTxtReplyBody
4608
+ * @function getTypeUrl
4609
+ * @memberof file.VersionedReadTxtReplyBody
4610
+ * @static
4611
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4612
+ * @returns {string} The default type url
4613
+ */
4614
+ VersionedReadTxtReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4615
+ if (typeUrlPrefix === undefined) {
4616
+ typeUrlPrefix = "type.googleapis.com";
4617
+ }
4618
+ return typeUrlPrefix + "/file.VersionedReadTxtReplyBody";
4619
+ };
4620
+
4312
4621
  return VersionedReadTxtReplyBody;
4313
4622
  })();
4314
4623
 
@@ -4415,12 +4724,14 @@ $root.file = (function() {
4415
4724
  while (reader.pos < end) {
4416
4725
  var tag = reader.uint32();
4417
4726
  switch (tag >>> 3) {
4418
- case 1:
4419
- message.version = reader.uint64();
4420
- break;
4421
- case 2:
4422
- message.json = reader.string();
4423
- break;
4727
+ case 1: {
4728
+ message.version = reader.uint64();
4729
+ break;
4730
+ }
4731
+ case 2: {
4732
+ message.json = reader.string();
4733
+ break;
4734
+ }
4424
4735
  default:
4425
4736
  reader.skipType(tag & 7);
4426
4737
  break;
@@ -4533,6 +4844,21 @@ $root.file = (function() {
4533
4844
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4534
4845
  };
4535
4846
 
4847
+ /**
4848
+ * Gets the default type url for VersionedReadJsonReplyBody
4849
+ * @function getTypeUrl
4850
+ * @memberof file.VersionedReadJsonReplyBody
4851
+ * @static
4852
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4853
+ * @returns {string} The default type url
4854
+ */
4855
+ VersionedReadJsonReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4856
+ if (typeUrlPrefix === undefined) {
4857
+ typeUrlPrefix = "type.googleapis.com";
4858
+ }
4859
+ return typeUrlPrefix + "/file.VersionedReadJsonReplyBody";
4860
+ };
4861
+
4536
4862
  return VersionedReadJsonReplyBody;
4537
4863
  })();
4538
4864
 
@@ -4639,12 +4965,14 @@ $root.file = (function() {
4639
4965
  while (reader.pos < end) {
4640
4966
  var tag = reader.uint32();
4641
4967
  switch (tag >>> 3) {
4642
- case 1:
4643
- message.version = reader.uint64();
4644
- break;
4645
- case 2:
4646
- message.src = $root.common.ObjectReference.decode(reader, reader.uint32());
4647
- break;
4968
+ case 1: {
4969
+ message.version = reader.uint64();
4970
+ break;
4971
+ }
4972
+ case 2: {
4973
+ message.src = $root.common.ObjectReference.decode(reader, reader.uint32());
4974
+ break;
4975
+ }
4648
4976
  default:
4649
4977
  reader.skipType(tag & 7);
4650
4978
  break;
@@ -4762,6 +5090,21 @@ $root.file = (function() {
4762
5090
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4763
5091
  };
4764
5092
 
5093
+ /**
5094
+ * Gets the default type url for VersionedGetByteSourceReplyBody
5095
+ * @function getTypeUrl
5096
+ * @memberof file.VersionedGetByteSourceReplyBody
5097
+ * @static
5098
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5099
+ * @returns {string} The default type url
5100
+ */
5101
+ VersionedGetByteSourceReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5102
+ if (typeUrlPrefix === undefined) {
5103
+ typeUrlPrefix = "type.googleapis.com";
5104
+ }
5105
+ return typeUrlPrefix + "/file.VersionedGetByteSourceReplyBody";
5106
+ };
5107
+
4765
5108
  return VersionedGetByteSourceReplyBody;
4766
5109
  })();
4767
5110
 
@@ -4873,19 +5216,21 @@ $root.file = (function() {
4873
5216
  while (reader.pos < end) {
4874
5217
  var tag = reader.uint32();
4875
5218
  switch (tag >>> 3) {
4876
- case 1:
4877
- message.current = $root.common.UInt64Value.decode(reader, reader.uint32());
4878
- break;
4879
- case 2:
4880
- if (!(message.archived && message.archived.length))
4881
- message.archived = [];
4882
- if ((tag & 7) === 2) {
4883
- var end2 = reader.uint32() + reader.pos;
4884
- while (reader.pos < end2)
5219
+ case 1: {
5220
+ message.current = $root.common.UInt64Value.decode(reader, reader.uint32());
5221
+ break;
5222
+ }
5223
+ case 2: {
5224
+ if (!(message.archived && message.archived.length))
5225
+ message.archived = [];
5226
+ if ((tag & 7) === 2) {
5227
+ var end2 = reader.uint32() + reader.pos;
5228
+ while (reader.pos < end2)
5229
+ message.archived.push(reader.uint64());
5230
+ } else
4885
5231
  message.archived.push(reader.uint64());
4886
- } else
4887
- message.archived.push(reader.uint64());
4888
- break;
5232
+ break;
5233
+ }
4889
5234
  default:
4890
5235
  reader.skipType(tag & 7);
4891
5236
  break;
@@ -5011,6 +5356,21 @@ $root.file = (function() {
5011
5356
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5012
5357
  };
5013
5358
 
5359
+ /**
5360
+ * Gets the default type url for ListVersionsReplyBody
5361
+ * @function getTypeUrl
5362
+ * @memberof file.ListVersionsReplyBody
5363
+ * @static
5364
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5365
+ * @returns {string} The default type url
5366
+ */
5367
+ ListVersionsReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5368
+ if (typeUrlPrefix === undefined) {
5369
+ typeUrlPrefix = "type.googleapis.com";
5370
+ }
5371
+ return typeUrlPrefix + "/file.ListVersionsReplyBody";
5372
+ };
5373
+
5014
5374
  return ListVersionsReplyBody;
5015
5375
  })();
5016
5376
 
@@ -5106,9 +5466,10 @@ $root.file = (function() {
5106
5466
  while (reader.pos < end) {
5107
5467
  var tag = reader.uint32();
5108
5468
  switch (tag >>> 3) {
5109
- case 1:
5110
- message.changes = $root.file.XAttrsChanges.decode(reader, reader.uint32());
5111
- break;
5469
+ case 1: {
5470
+ message.changes = $root.file.XAttrsChanges.decode(reader, reader.uint32());
5471
+ break;
5472
+ }
5112
5473
  default:
5113
5474
  reader.skipType(tag & 7);
5114
5475
  break;
@@ -5203,6 +5564,21 @@ $root.file = (function() {
5203
5564
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5204
5565
  };
5205
5566
 
5567
+ /**
5568
+ * Gets the default type url for UpdateXAttrsRequestBody
5569
+ * @function getTypeUrl
5570
+ * @memberof file.UpdateXAttrsRequestBody
5571
+ * @static
5572
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5573
+ * @returns {string} The default type url
5574
+ */
5575
+ UpdateXAttrsRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5576
+ if (typeUrlPrefix === undefined) {
5577
+ typeUrlPrefix = "type.googleapis.com";
5578
+ }
5579
+ return typeUrlPrefix + "/file.UpdateXAttrsRequestBody";
5580
+ };
5581
+
5206
5582
  return UpdateXAttrsRequestBody;
5207
5583
  })();
5208
5584
 
@@ -5331,18 +5707,22 @@ $root.file = (function() {
5331
5707
  while (reader.pos < end) {
5332
5708
  var tag = reader.uint32();
5333
5709
  switch (tag >>> 3) {
5334
- case 1:
5335
- message.xaName = reader.string();
5336
- break;
5337
- case 2:
5338
- message.str = $root.common.StringValue.decode(reader, reader.uint32());
5339
- break;
5340
- case 3:
5341
- message.json = $root.common.StringValue.decode(reader, reader.uint32());
5342
- break;
5343
- case 4:
5344
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
5345
- break;
5710
+ case 1: {
5711
+ message.xaName = reader.string();
5712
+ break;
5713
+ }
5714
+ case 2: {
5715
+ message.str = $root.common.StringValue.decode(reader, reader.uint32());
5716
+ break;
5717
+ }
5718
+ case 3: {
5719
+ message.json = $root.common.StringValue.decode(reader, reader.uint32());
5720
+ break;
5721
+ }
5722
+ case 4: {
5723
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
5724
+ break;
5725
+ }
5346
5726
  default:
5347
5727
  reader.skipType(tag & 7);
5348
5728
  break;
@@ -5472,6 +5852,21 @@ $root.file = (function() {
5472
5852
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5473
5853
  };
5474
5854
 
5855
+ /**
5856
+ * Gets the default type url for NameAndXAttrValue
5857
+ * @function getTypeUrl
5858
+ * @memberof file.NameAndXAttrValue
5859
+ * @static
5860
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5861
+ * @returns {string} The default type url
5862
+ */
5863
+ NameAndXAttrValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5864
+ if (typeUrlPrefix === undefined) {
5865
+ typeUrlPrefix = "type.googleapis.com";
5866
+ }
5867
+ return typeUrlPrefix + "/file.NameAndXAttrValue";
5868
+ };
5869
+
5475
5870
  return NameAndXAttrValue;
5476
5871
  })();
5477
5872
 
@@ -5582,16 +5977,18 @@ $root.file = (function() {
5582
5977
  while (reader.pos < end) {
5583
5978
  var tag = reader.uint32();
5584
5979
  switch (tag >>> 3) {
5585
- case 1:
5586
- if (!(message.set && message.set.length))
5587
- message.set = [];
5588
- message.set.push($root.file.NameAndXAttrValue.decode(reader, reader.uint32()));
5589
- break;
5590
- case 2:
5591
- if (!(message.remove && message.remove.length))
5592
- message.remove = [];
5593
- message.remove.push(reader.string());
5594
- break;
5980
+ case 1: {
5981
+ if (!(message.set && message.set.length))
5982
+ message.set = [];
5983
+ message.set.push($root.file.NameAndXAttrValue.decode(reader, reader.uint32()));
5984
+ break;
5985
+ }
5986
+ case 2: {
5987
+ if (!(message.remove && message.remove.length))
5988
+ message.remove = [];
5989
+ message.remove.push(reader.string());
5990
+ break;
5991
+ }
5595
5992
  default:
5596
5993
  reader.skipType(tag & 7);
5597
5994
  break;
@@ -5719,6 +6116,21 @@ $root.file = (function() {
5719
6116
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5720
6117
  };
5721
6118
 
6119
+ /**
6120
+ * Gets the default type url for XAttrsChanges
6121
+ * @function getTypeUrl
6122
+ * @memberof file.XAttrsChanges
6123
+ * @static
6124
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6125
+ * @returns {string} The default type url
6126
+ */
6127
+ XAttrsChanges.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6128
+ if (typeUrlPrefix === undefined) {
6129
+ typeUrlPrefix = "type.googleapis.com";
6130
+ }
6131
+ return typeUrlPrefix + "/file.XAttrsChanges";
6132
+ };
6133
+
5722
6134
  return XAttrsChanges;
5723
6135
  })();
5724
6136
 
@@ -5814,9 +6226,10 @@ $root.file = (function() {
5814
6226
  while (reader.pos < end) {
5815
6227
  var tag = reader.uint32();
5816
6228
  switch (tag >>> 3) {
5817
- case 1:
5818
- message.bytes = reader.bytes();
5819
- break;
6229
+ case 1: {
6230
+ message.bytes = reader.bytes();
6231
+ break;
6232
+ }
5820
6233
  default:
5821
6234
  reader.skipType(tag & 7);
5822
6235
  break;
@@ -5873,7 +6286,7 @@ $root.file = (function() {
5873
6286
  if (object.bytes != null)
5874
6287
  if (typeof object.bytes === "string")
5875
6288
  $util.base64.decode(object.bytes, message.bytes = $util.newBuffer($util.base64.length(object.bytes)), 0);
5876
- else if (object.bytes.length)
6289
+ else if (object.bytes.length >= 0)
5877
6290
  message.bytes = object.bytes;
5878
6291
  return message;
5879
6292
  };
@@ -5915,6 +6328,21 @@ $root.file = (function() {
5915
6328
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5916
6329
  };
5917
6330
 
6331
+ /**
6332
+ * Gets the default type url for WriteBytesRequestBody
6333
+ * @function getTypeUrl
6334
+ * @memberof file.WriteBytesRequestBody
6335
+ * @static
6336
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6337
+ * @returns {string} The default type url
6338
+ */
6339
+ WriteBytesRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6340
+ if (typeUrlPrefix === undefined) {
6341
+ typeUrlPrefix = "type.googleapis.com";
6342
+ }
6343
+ return typeUrlPrefix + "/file.WriteBytesRequestBody";
6344
+ };
6345
+
5918
6346
  return WriteBytesRequestBody;
5919
6347
  })();
5920
6348
 
@@ -6010,9 +6438,10 @@ $root.file = (function() {
6010
6438
  while (reader.pos < end) {
6011
6439
  var tag = reader.uint32();
6012
6440
  switch (tag >>> 3) {
6013
- case 1:
6014
- message.txt = reader.string();
6015
- break;
6441
+ case 1: {
6442
+ message.txt = reader.string();
6443
+ break;
6444
+ }
6016
6445
  default:
6017
6446
  reader.skipType(tag & 7);
6018
6447
  break;
@@ -6102,6 +6531,21 @@ $root.file = (function() {
6102
6531
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6103
6532
  };
6104
6533
 
6534
+ /**
6535
+ * Gets the default type url for WriteTxtRequestBody
6536
+ * @function getTypeUrl
6537
+ * @memberof file.WriteTxtRequestBody
6538
+ * @static
6539
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6540
+ * @returns {string} The default type url
6541
+ */
6542
+ WriteTxtRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6543
+ if (typeUrlPrefix === undefined) {
6544
+ typeUrlPrefix = "type.googleapis.com";
6545
+ }
6546
+ return typeUrlPrefix + "/file.WriteTxtRequestBody";
6547
+ };
6548
+
6105
6549
  return WriteTxtRequestBody;
6106
6550
  })();
6107
6551
 
@@ -6197,9 +6641,10 @@ $root.file = (function() {
6197
6641
  while (reader.pos < end) {
6198
6642
  var tag = reader.uint32();
6199
6643
  switch (tag >>> 3) {
6200
- case 1:
6201
- message.json = reader.string();
6202
- break;
6644
+ case 1: {
6645
+ message.json = reader.string();
6646
+ break;
6647
+ }
6203
6648
  default:
6204
6649
  reader.skipType(tag & 7);
6205
6650
  break;
@@ -6289,6 +6734,21 @@ $root.file = (function() {
6289
6734
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6290
6735
  };
6291
6736
 
6737
+ /**
6738
+ * Gets the default type url for WriteJsonRequestBody
6739
+ * @function getTypeUrl
6740
+ * @memberof file.WriteJsonRequestBody
6741
+ * @static
6742
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6743
+ * @returns {string} The default type url
6744
+ */
6745
+ WriteJsonRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6746
+ if (typeUrlPrefix === undefined) {
6747
+ typeUrlPrefix = "type.googleapis.com";
6748
+ }
6749
+ return typeUrlPrefix + "/file.WriteJsonRequestBody";
6750
+ };
6751
+
6292
6752
  return WriteJsonRequestBody;
6293
6753
  })();
6294
6754
 
@@ -6384,9 +6844,10 @@ $root.file = (function() {
6384
6844
  while (reader.pos < end) {
6385
6845
  var tag = reader.uint32();
6386
6846
  switch (tag >>> 3) {
6387
- case 1:
6388
- message.truncateFile = $root.common.BooleanValue.decode(reader, reader.uint32());
6389
- break;
6847
+ case 1: {
6848
+ message.truncateFile = $root.common.BooleanValue.decode(reader, reader.uint32());
6849
+ break;
6850
+ }
6390
6851
  default:
6391
6852
  reader.skipType(tag & 7);
6392
6853
  break;
@@ -6481,9 +6942,24 @@ $root.file = (function() {
6481
6942
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6482
6943
  };
6483
6944
 
6484
- return GetByteSinkRequestBody;
6485
- })();
6486
-
6945
+ /**
6946
+ * Gets the default type url for GetByteSinkRequestBody
6947
+ * @function getTypeUrl
6948
+ * @memberof file.GetByteSinkRequestBody
6949
+ * @static
6950
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6951
+ * @returns {string} The default type url
6952
+ */
6953
+ GetByteSinkRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6954
+ if (typeUrlPrefix === undefined) {
6955
+ typeUrlPrefix = "type.googleapis.com";
6956
+ }
6957
+ return typeUrlPrefix + "/file.GetByteSinkRequestBody";
6958
+ };
6959
+
6960
+ return GetByteSinkRequestBody;
6961
+ })();
6962
+
6487
6963
  file.CopyRequestBody = (function() {
6488
6964
 
6489
6965
  /**
@@ -6576,9 +7052,10 @@ $root.file = (function() {
6576
7052
  while (reader.pos < end) {
6577
7053
  var tag = reader.uint32();
6578
7054
  switch (tag >>> 3) {
6579
- case 1:
6580
- message.file = $root.common.ObjectReference.decode(reader, reader.uint32());
6581
- break;
7055
+ case 1: {
7056
+ message.file = $root.common.ObjectReference.decode(reader, reader.uint32());
7057
+ break;
7058
+ }
6582
7059
  default:
6583
7060
  reader.skipType(tag & 7);
6584
7061
  break;
@@ -6673,6 +7150,21 @@ $root.file = (function() {
6673
7150
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6674
7151
  };
6675
7152
 
7153
+ /**
7154
+ * Gets the default type url for CopyRequestBody
7155
+ * @function getTypeUrl
7156
+ * @memberof file.CopyRequestBody
7157
+ * @static
7158
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7159
+ * @returns {string} The default type url
7160
+ */
7161
+ CopyRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7162
+ if (typeUrlPrefix === undefined) {
7163
+ typeUrlPrefix = "type.googleapis.com";
7164
+ }
7165
+ return typeUrlPrefix + "/file.CopyRequestBody";
7166
+ };
7167
+
6676
7168
  return CopyRequestBody;
6677
7169
  })();
6678
7170
 
@@ -6779,12 +7271,14 @@ $root.file = (function() {
6779
7271
  while (reader.pos < end) {
6780
7272
  var tag = reader.uint32();
6781
7273
  switch (tag >>> 3) {
6782
- case 1:
6783
- message.truncateFile = $root.common.BooleanValue.decode(reader, reader.uint32());
6784
- break;
6785
- case 2:
6786
- message.currentVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
6787
- break;
7274
+ case 1: {
7275
+ message.truncateFile = $root.common.BooleanValue.decode(reader, reader.uint32());
7276
+ break;
7277
+ }
7278
+ case 2: {
7279
+ message.currentVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
7280
+ break;
7281
+ }
6788
7282
  default:
6789
7283
  reader.skipType(tag & 7);
6790
7284
  break;
@@ -6893,6 +7387,21 @@ $root.file = (function() {
6893
7387
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6894
7388
  };
6895
7389
 
7390
+ /**
7391
+ * Gets the default type url for VersionedGetByteSinkRequestBody
7392
+ * @function getTypeUrl
7393
+ * @memberof file.VersionedGetByteSinkRequestBody
7394
+ * @static
7395
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7396
+ * @returns {string} The default type url
7397
+ */
7398
+ VersionedGetByteSinkRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7399
+ if (typeUrlPrefix === undefined) {
7400
+ typeUrlPrefix = "type.googleapis.com";
7401
+ }
7402
+ return typeUrlPrefix + "/file.VersionedGetByteSinkRequestBody";
7403
+ };
7404
+
6896
7405
  return VersionedGetByteSinkRequestBody;
6897
7406
  })();
6898
7407
 
@@ -6999,12 +7508,14 @@ $root.file = (function() {
6999
7508
  while (reader.pos < end) {
7000
7509
  var tag = reader.uint32();
7001
7510
  switch (tag >>> 3) {
7002
- case 1:
7003
- message.version = reader.uint64();
7004
- break;
7005
- case 2:
7006
- message.sink = $root.common.ObjectReference.decode(reader, reader.uint32());
7007
- break;
7511
+ case 1: {
7512
+ message.version = reader.uint64();
7513
+ break;
7514
+ }
7515
+ case 2: {
7516
+ message.sink = $root.common.ObjectReference.decode(reader, reader.uint32());
7517
+ break;
7518
+ }
7008
7519
  default:
7009
7520
  reader.skipType(tag & 7);
7010
7521
  break;
@@ -7122,6 +7633,21 @@ $root.file = (function() {
7122
7633
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7123
7634
  };
7124
7635
 
7636
+ /**
7637
+ * Gets the default type url for VersionedGetByteSinkReplyBody
7638
+ * @function getTypeUrl
7639
+ * @memberof file.VersionedGetByteSinkReplyBody
7640
+ * @static
7641
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7642
+ * @returns {string} The default type url
7643
+ */
7644
+ VersionedGetByteSinkReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7645
+ if (typeUrlPrefix === undefined) {
7646
+ typeUrlPrefix = "type.googleapis.com";
7647
+ }
7648
+ return typeUrlPrefix + "/file.VersionedGetByteSinkReplyBody";
7649
+ };
7650
+
7125
7651
  return VersionedGetByteSinkReplyBody;
7126
7652
  })();
7127
7653
 
@@ -7217,9 +7743,10 @@ $root.file = (function() {
7217
7743
  while (reader.pos < end) {
7218
7744
  var tag = reader.uint32();
7219
7745
  switch (tag >>> 3) {
7220
- case 1:
7221
- message.version = $root.common.UInt64Value.decode(reader, reader.uint32());
7222
- break;
7746
+ case 1: {
7747
+ message.version = $root.common.UInt64Value.decode(reader, reader.uint32());
7748
+ break;
7749
+ }
7223
7750
  default:
7224
7751
  reader.skipType(tag & 7);
7225
7752
  break;
@@ -7314,6 +7841,21 @@ $root.file = (function() {
7314
7841
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7315
7842
  };
7316
7843
 
7844
+ /**
7845
+ * Gets the default type url for ArchiveCurrentRequestBody
7846
+ * @function getTypeUrl
7847
+ * @memberof file.ArchiveCurrentRequestBody
7848
+ * @static
7849
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7850
+ * @returns {string} The default type url
7851
+ */
7852
+ ArchiveCurrentRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7853
+ if (typeUrlPrefix === undefined) {
7854
+ typeUrlPrefix = "type.googleapis.com";
7855
+ }
7856
+ return typeUrlPrefix + "/file.ArchiveCurrentRequestBody";
7857
+ };
7858
+
7317
7859
  return ArchiveCurrentRequestBody;
7318
7860
  })();
7319
7861
 
@@ -7409,9 +7951,10 @@ $root.file = (function() {
7409
7951
  while (reader.pos < end) {
7410
7952
  var tag = reader.uint32();
7411
7953
  switch (tag >>> 3) {
7412
- case 1:
7413
- message.version = reader.uint64();
7414
- break;
7954
+ case 1: {
7955
+ message.version = reader.uint64();
7956
+ break;
7957
+ }
7415
7958
  default:
7416
7959
  reader.skipType(tag & 7);
7417
7960
  break;
@@ -7515,6 +8058,21 @@ $root.file = (function() {
7515
8058
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7516
8059
  };
7517
8060
 
8061
+ /**
8062
+ * Gets the default type url for FileSyncIsOnDiskRequestBody
8063
+ * @function getTypeUrl
8064
+ * @memberof file.FileSyncIsOnDiskRequestBody
8065
+ * @static
8066
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8067
+ * @returns {string} The default type url
8068
+ */
8069
+ FileSyncIsOnDiskRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8070
+ if (typeUrlPrefix === undefined) {
8071
+ typeUrlPrefix = "type.googleapis.com";
8072
+ }
8073
+ return typeUrlPrefix + "/file.FileSyncIsOnDiskRequestBody";
8074
+ };
8075
+
7518
8076
  return FileSyncIsOnDiskRequestBody;
7519
8077
  })();
7520
8078
 
@@ -7610,9 +8168,10 @@ $root.file = (function() {
7610
8168
  while (reader.pos < end) {
7611
8169
  var tag = reader.uint32();
7612
8170
  switch (tag >>> 3) {
7613
- case 1:
7614
- message.status = reader.string();
7615
- break;
8171
+ case 1: {
8172
+ message.status = reader.string();
8173
+ break;
8174
+ }
7616
8175
  default:
7617
8176
  reader.skipType(tag & 7);
7618
8177
  break;
@@ -7702,6 +8261,21 @@ $root.file = (function() {
7702
8261
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7703
8262
  };
7704
8263
 
8264
+ /**
8265
+ * Gets the default type url for FileSyncIsOnDiskReplyBody
8266
+ * @function getTypeUrl
8267
+ * @memberof file.FileSyncIsOnDiskReplyBody
8268
+ * @static
8269
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8270
+ * @returns {string} The default type url
8271
+ */
8272
+ FileSyncIsOnDiskReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8273
+ if (typeUrlPrefix === undefined) {
8274
+ typeUrlPrefix = "type.googleapis.com";
8275
+ }
8276
+ return typeUrlPrefix + "/file.FileSyncIsOnDiskReplyBody";
8277
+ };
8278
+
7705
8279
  return FileSyncIsOnDiskReplyBody;
7706
8280
  })();
7707
8281
 
@@ -7797,9 +8371,10 @@ $root.file = (function() {
7797
8371
  while (reader.pos < end) {
7798
8372
  var tag = reader.uint32();
7799
8373
  switch (tag >>> 3) {
7800
- case 1:
7801
- message.version = reader.uint64();
7802
- break;
8374
+ case 1: {
8375
+ message.version = reader.uint64();
8376
+ break;
8377
+ }
7803
8378
  default:
7804
8379
  reader.skipType(tag & 7);
7805
8380
  break;
@@ -7903,6 +8478,21 @@ $root.file = (function() {
7903
8478
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7904
8479
  };
7905
8480
 
8481
+ /**
8482
+ * Gets the default type url for FileSyncDownloadRequestBody
8483
+ * @function getTypeUrl
8484
+ * @memberof file.FileSyncDownloadRequestBody
8485
+ * @static
8486
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8487
+ * @returns {string} The default type url
8488
+ */
8489
+ FileSyncDownloadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8490
+ if (typeUrlPrefix === undefined) {
8491
+ typeUrlPrefix = "type.googleapis.com";
8492
+ }
8493
+ return typeUrlPrefix + "/file.FileSyncDownloadRequestBody";
8494
+ };
8495
+
7906
8496
  return FileSyncDownloadRequestBody;
7907
8497
  })();
7908
8498
 
@@ -7998,9 +8588,10 @@ $root.file = (function() {
7998
8588
  while (reader.pos < end) {
7999
8589
  var tag = reader.uint32();
8000
8590
  switch (tag >>> 3) {
8001
- case 1:
8002
- message.opts = $root.file.OptionsToAdopteRemote.decode(reader, reader.uint32());
8003
- break;
8591
+ case 1: {
8592
+ message.opts = $root.file.OptionsToAdopteRemote.decode(reader, reader.uint32());
8593
+ break;
8594
+ }
8004
8595
  default:
8005
8596
  reader.skipType(tag & 7);
8006
8597
  break;
@@ -8095,6 +8686,21 @@ $root.file = (function() {
8095
8686
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8096
8687
  };
8097
8688
 
8689
+ /**
8690
+ * Gets the default type url for AdoptRemoteRequestBody
8691
+ * @function getTypeUrl
8692
+ * @memberof file.AdoptRemoteRequestBody
8693
+ * @static
8694
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8695
+ * @returns {string} The default type url
8696
+ */
8697
+ AdoptRemoteRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8698
+ if (typeUrlPrefix === undefined) {
8699
+ typeUrlPrefix = "type.googleapis.com";
8700
+ }
8701
+ return typeUrlPrefix + "/file.AdoptRemoteRequestBody";
8702
+ };
8703
+
8098
8704
  return AdoptRemoteRequestBody;
8099
8705
  })();
8100
8706
 
@@ -8201,12 +8807,14 @@ $root.file = (function() {
8201
8807
  while (reader.pos < end) {
8202
8808
  var tag = reader.uint32();
8203
8809
  switch (tag >>> 3) {
8204
- case 1:
8205
- message.dropLocalVer = $root.common.BooleanValue.decode(reader, reader.uint32());
8206
- break;
8207
- case 2:
8208
- message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
8209
- break;
8810
+ case 1: {
8811
+ message.dropLocalVer = $root.common.BooleanValue.decode(reader, reader.uint32());
8812
+ break;
8813
+ }
8814
+ case 2: {
8815
+ message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
8816
+ break;
8817
+ }
8210
8818
  default:
8211
8819
  reader.skipType(tag & 7);
8212
8820
  break;
@@ -8315,6 +8923,21 @@ $root.file = (function() {
8315
8923
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8316
8924
  };
8317
8925
 
8926
+ /**
8927
+ * Gets the default type url for OptionsToAdopteRemote
8928
+ * @function getTypeUrl
8929
+ * @memberof file.OptionsToAdopteRemote
8930
+ * @static
8931
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8932
+ * @returns {string} The default type url
8933
+ */
8934
+ OptionsToAdopteRemote.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8935
+ if (typeUrlPrefix === undefined) {
8936
+ typeUrlPrefix = "type.googleapis.com";
8937
+ }
8938
+ return typeUrlPrefix + "/file.OptionsToAdopteRemote";
8939
+ };
8940
+
8318
8941
  return OptionsToAdopteRemote;
8319
8942
  })();
8320
8943
 
@@ -8410,9 +9033,10 @@ $root.file = (function() {
8410
9033
  while (reader.pos < end) {
8411
9034
  var tag = reader.uint32();
8412
9035
  switch (tag >>> 3) {
8413
- case 1:
8414
- message.opts = $root.file.OptionsToUploadLocal.decode(reader, reader.uint32());
8415
- break;
9036
+ case 1: {
9037
+ message.opts = $root.file.OptionsToUploadLocal.decode(reader, reader.uint32());
9038
+ break;
9039
+ }
8416
9040
  default:
8417
9041
  reader.skipType(tag & 7);
8418
9042
  break;
@@ -8507,9 +9131,232 @@ $root.file = (function() {
8507
9131
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8508
9132
  };
8509
9133
 
9134
+ /**
9135
+ * Gets the default type url for FileSyncUploadRequestBody
9136
+ * @function getTypeUrl
9137
+ * @memberof file.FileSyncUploadRequestBody
9138
+ * @static
9139
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9140
+ * @returns {string} The default type url
9141
+ */
9142
+ FileSyncUploadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9143
+ if (typeUrlPrefix === undefined) {
9144
+ typeUrlPrefix = "type.googleapis.com";
9145
+ }
9146
+ return typeUrlPrefix + "/file.FileSyncUploadRequestBody";
9147
+ };
9148
+
8510
9149
  return FileSyncUploadRequestBody;
8511
9150
  })();
8512
9151
 
9152
+ file.FileSyncUploadReplyBody = (function() {
9153
+
9154
+ /**
9155
+ * Properties of a FileSyncUploadReplyBody.
9156
+ * @memberof file
9157
+ * @interface IFileSyncUploadReplyBody
9158
+ * @property {common.IUInt64Value|null} [uploadedVersion] FileSyncUploadReplyBody uploadedVersion
9159
+ */
9160
+
9161
+ /**
9162
+ * Constructs a new FileSyncUploadReplyBody.
9163
+ * @memberof file
9164
+ * @classdesc Represents a FileSyncUploadReplyBody.
9165
+ * @implements IFileSyncUploadReplyBody
9166
+ * @constructor
9167
+ * @param {file.IFileSyncUploadReplyBody=} [properties] Properties to set
9168
+ */
9169
+ function FileSyncUploadReplyBody(properties) {
9170
+ if (properties)
9171
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9172
+ if (properties[keys[i]] != null)
9173
+ this[keys[i]] = properties[keys[i]];
9174
+ }
9175
+
9176
+ /**
9177
+ * FileSyncUploadReplyBody uploadedVersion.
9178
+ * @member {common.IUInt64Value|null|undefined} uploadedVersion
9179
+ * @memberof file.FileSyncUploadReplyBody
9180
+ * @instance
9181
+ */
9182
+ FileSyncUploadReplyBody.prototype.uploadedVersion = null;
9183
+
9184
+ /**
9185
+ * Creates a new FileSyncUploadReplyBody instance using the specified properties.
9186
+ * @function create
9187
+ * @memberof file.FileSyncUploadReplyBody
9188
+ * @static
9189
+ * @param {file.IFileSyncUploadReplyBody=} [properties] Properties to set
9190
+ * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody instance
9191
+ */
9192
+ FileSyncUploadReplyBody.create = function create(properties) {
9193
+ return new FileSyncUploadReplyBody(properties);
9194
+ };
9195
+
9196
+ /**
9197
+ * Encodes the specified FileSyncUploadReplyBody message. Does not implicitly {@link file.FileSyncUploadReplyBody.verify|verify} messages.
9198
+ * @function encode
9199
+ * @memberof file.FileSyncUploadReplyBody
9200
+ * @static
9201
+ * @param {file.IFileSyncUploadReplyBody} message FileSyncUploadReplyBody message or plain object to encode
9202
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9203
+ * @returns {$protobuf.Writer} Writer
9204
+ */
9205
+ FileSyncUploadReplyBody.encode = function encode(message, writer) {
9206
+ if (!writer)
9207
+ writer = $Writer.create();
9208
+ if (message.uploadedVersion != null && Object.hasOwnProperty.call(message, "uploadedVersion"))
9209
+ $root.common.UInt64Value.encode(message.uploadedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9210
+ return writer;
9211
+ };
9212
+
9213
+ /**
9214
+ * Encodes the specified FileSyncUploadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncUploadReplyBody.verify|verify} messages.
9215
+ * @function encodeDelimited
9216
+ * @memberof file.FileSyncUploadReplyBody
9217
+ * @static
9218
+ * @param {file.IFileSyncUploadReplyBody} message FileSyncUploadReplyBody message or plain object to encode
9219
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9220
+ * @returns {$protobuf.Writer} Writer
9221
+ */
9222
+ FileSyncUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
9223
+ return this.encode(message, writer).ldelim();
9224
+ };
9225
+
9226
+ /**
9227
+ * Decodes a FileSyncUploadReplyBody message from the specified reader or buffer.
9228
+ * @function decode
9229
+ * @memberof file.FileSyncUploadReplyBody
9230
+ * @static
9231
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9232
+ * @param {number} [length] Message length if known beforehand
9233
+ * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody
9234
+ * @throws {Error} If the payload is not a reader or valid buffer
9235
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9236
+ */
9237
+ FileSyncUploadReplyBody.decode = function decode(reader, length) {
9238
+ if (!(reader instanceof $Reader))
9239
+ reader = $Reader.create(reader);
9240
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncUploadReplyBody();
9241
+ while (reader.pos < end) {
9242
+ var tag = reader.uint32();
9243
+ switch (tag >>> 3) {
9244
+ case 1: {
9245
+ message.uploadedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
9246
+ break;
9247
+ }
9248
+ default:
9249
+ reader.skipType(tag & 7);
9250
+ break;
9251
+ }
9252
+ }
9253
+ return message;
9254
+ };
9255
+
9256
+ /**
9257
+ * Decodes a FileSyncUploadReplyBody message from the specified reader or buffer, length delimited.
9258
+ * @function decodeDelimited
9259
+ * @memberof file.FileSyncUploadReplyBody
9260
+ * @static
9261
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9262
+ * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody
9263
+ * @throws {Error} If the payload is not a reader or valid buffer
9264
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9265
+ */
9266
+ FileSyncUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
9267
+ if (!(reader instanceof $Reader))
9268
+ reader = new $Reader(reader);
9269
+ return this.decode(reader, reader.uint32());
9270
+ };
9271
+
9272
+ /**
9273
+ * Verifies a FileSyncUploadReplyBody message.
9274
+ * @function verify
9275
+ * @memberof file.FileSyncUploadReplyBody
9276
+ * @static
9277
+ * @param {Object.<string,*>} message Plain object to verify
9278
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9279
+ */
9280
+ FileSyncUploadReplyBody.verify = function verify(message) {
9281
+ if (typeof message !== "object" || message === null)
9282
+ return "object expected";
9283
+ if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion")) {
9284
+ var error = $root.common.UInt64Value.verify(message.uploadedVersion);
9285
+ if (error)
9286
+ return "uploadedVersion." + error;
9287
+ }
9288
+ return null;
9289
+ };
9290
+
9291
+ /**
9292
+ * Creates a FileSyncUploadReplyBody message from a plain object. Also converts values to their respective internal types.
9293
+ * @function fromObject
9294
+ * @memberof file.FileSyncUploadReplyBody
9295
+ * @static
9296
+ * @param {Object.<string,*>} object Plain object
9297
+ * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody
9298
+ */
9299
+ FileSyncUploadReplyBody.fromObject = function fromObject(object) {
9300
+ if (object instanceof $root.file.FileSyncUploadReplyBody)
9301
+ return object;
9302
+ var message = new $root.file.FileSyncUploadReplyBody();
9303
+ if (object.uploadedVersion != null) {
9304
+ if (typeof object.uploadedVersion !== "object")
9305
+ throw TypeError(".file.FileSyncUploadReplyBody.uploadedVersion: object expected");
9306
+ message.uploadedVersion = $root.common.UInt64Value.fromObject(object.uploadedVersion);
9307
+ }
9308
+ return message;
9309
+ };
9310
+
9311
+ /**
9312
+ * Creates a plain object from a FileSyncUploadReplyBody message. Also converts values to other types if specified.
9313
+ * @function toObject
9314
+ * @memberof file.FileSyncUploadReplyBody
9315
+ * @static
9316
+ * @param {file.FileSyncUploadReplyBody} message FileSyncUploadReplyBody
9317
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9318
+ * @returns {Object.<string,*>} Plain object
9319
+ */
9320
+ FileSyncUploadReplyBody.toObject = function toObject(message, options) {
9321
+ if (!options)
9322
+ options = {};
9323
+ var object = {};
9324
+ if (options.defaults)
9325
+ object.uploadedVersion = null;
9326
+ if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion"))
9327
+ object.uploadedVersion = $root.common.UInt64Value.toObject(message.uploadedVersion, options);
9328
+ return object;
9329
+ };
9330
+
9331
+ /**
9332
+ * Converts this FileSyncUploadReplyBody to JSON.
9333
+ * @function toJSON
9334
+ * @memberof file.FileSyncUploadReplyBody
9335
+ * @instance
9336
+ * @returns {Object.<string,*>} JSON object
9337
+ */
9338
+ FileSyncUploadReplyBody.prototype.toJSON = function toJSON() {
9339
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9340
+ };
9341
+
9342
+ /**
9343
+ * Gets the default type url for FileSyncUploadReplyBody
9344
+ * @function getTypeUrl
9345
+ * @memberof file.FileSyncUploadReplyBody
9346
+ * @static
9347
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9348
+ * @returns {string} The default type url
9349
+ */
9350
+ FileSyncUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9351
+ if (typeUrlPrefix === undefined) {
9352
+ typeUrlPrefix = "type.googleapis.com";
9353
+ }
9354
+ return typeUrlPrefix + "/file.FileSyncUploadReplyBody";
9355
+ };
9356
+
9357
+ return FileSyncUploadReplyBody;
9358
+ })();
9359
+
8513
9360
  file.OptionsToUploadLocal = (function() {
8514
9361
 
8515
9362
  /**
@@ -8613,12 +9460,14 @@ $root.file = (function() {
8613
9460
  while (reader.pos < end) {
8614
9461
  var tag = reader.uint32();
8615
9462
  switch (tag >>> 3) {
8616
- case 1:
8617
- message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
8618
- break;
8619
- case 2:
8620
- message.uploadVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
8621
- break;
9463
+ case 1: {
9464
+ message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
9465
+ break;
9466
+ }
9467
+ case 2: {
9468
+ message.uploadVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
9469
+ break;
9470
+ }
8622
9471
  default:
8623
9472
  reader.skipType(tag & 7);
8624
9473
  break;
@@ -8727,6 +9576,21 @@ $root.file = (function() {
8727
9576
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8728
9577
  };
8729
9578
 
9579
+ /**
9580
+ * Gets the default type url for OptionsToUploadLocal
9581
+ * @function getTypeUrl
9582
+ * @memberof file.OptionsToUploadLocal
9583
+ * @static
9584
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9585
+ * @returns {string} The default type url
9586
+ */
9587
+ OptionsToUploadLocal.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9588
+ if (typeUrlPrefix === undefined) {
9589
+ typeUrlPrefix = "type.googleapis.com";
9590
+ }
9591
+ return typeUrlPrefix + "/file.OptionsToUploadLocal";
9592
+ };
9593
+
8730
9594
  return OptionsToUploadLocal;
8731
9595
  })();
8732
9596
 
@@ -8847,14 +9711,16 @@ $root.common = (function() {
8847
9711
  while (reader.pos < end) {
8848
9712
  var tag = reader.uint32();
8849
9713
  switch (tag >>> 3) {
8850
- case 1:
8851
- message.objType = reader.string();
8852
- break;
8853
- case 2:
8854
- if (!(message.path && message.path.length))
8855
- message.path = [];
8856
- message.path.push(reader.string());
8857
- break;
9714
+ case 1: {
9715
+ message.objType = reader.string();
9716
+ break;
9717
+ }
9718
+ case 2: {
9719
+ if (!(message.path && message.path.length))
9720
+ message.path = [];
9721
+ message.path.push(reader.string());
9722
+ break;
9723
+ }
8858
9724
  default:
8859
9725
  reader.skipType(tag & 7);
8860
9726
  break;
@@ -8965,6 +9831,21 @@ $root.common = (function() {
8965
9831
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8966
9832
  };
8967
9833
 
9834
+ /**
9835
+ * Gets the default type url for ObjectReference
9836
+ * @function getTypeUrl
9837
+ * @memberof common.ObjectReference
9838
+ * @static
9839
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9840
+ * @returns {string} The default type url
9841
+ */
9842
+ ObjectReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9843
+ if (typeUrlPrefix === undefined) {
9844
+ typeUrlPrefix = "type.googleapis.com";
9845
+ }
9846
+ return typeUrlPrefix + "/common.ObjectReference";
9847
+ };
9848
+
8968
9849
  return ObjectReference;
8969
9850
  })();
8970
9851
 
@@ -9060,9 +9941,10 @@ $root.common = (function() {
9060
9941
  while (reader.pos < end) {
9061
9942
  var tag = reader.uint32();
9062
9943
  switch (tag >>> 3) {
9063
- case 1:
9064
- message.value = reader.bool();
9065
- break;
9944
+ case 1: {
9945
+ message.value = reader.bool();
9946
+ break;
9947
+ }
9066
9948
  default:
9067
9949
  reader.skipType(tag & 7);
9068
9950
  break;
@@ -9152,6 +10034,21 @@ $root.common = (function() {
9152
10034
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9153
10035
  };
9154
10036
 
10037
+ /**
10038
+ * Gets the default type url for BooleanValue
10039
+ * @function getTypeUrl
10040
+ * @memberof common.BooleanValue
10041
+ * @static
10042
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10043
+ * @returns {string} The default type url
10044
+ */
10045
+ BooleanValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10046
+ if (typeUrlPrefix === undefined) {
10047
+ typeUrlPrefix = "type.googleapis.com";
10048
+ }
10049
+ return typeUrlPrefix + "/common.BooleanValue";
10050
+ };
10051
+
9155
10052
  return BooleanValue;
9156
10053
  })();
9157
10054
 
@@ -9249,11 +10146,12 @@ $root.common = (function() {
9249
10146
  while (reader.pos < end) {
9250
10147
  var tag = reader.uint32();
9251
10148
  switch (tag >>> 3) {
9252
- case 1:
9253
- if (!(message.values && message.values.length))
9254
- message.values = [];
9255
- message.values.push(reader.string());
9256
- break;
10149
+ case 1: {
10150
+ if (!(message.values && message.values.length))
10151
+ message.values = [];
10152
+ message.values.push(reader.string());
10153
+ break;
10154
+ }
9257
10155
  default:
9258
10156
  reader.skipType(tag & 7);
9259
10157
  break;
@@ -9355,6 +10253,21 @@ $root.common = (function() {
9355
10253
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9356
10254
  };
9357
10255
 
10256
+ /**
10257
+ * Gets the default type url for StringArrayValue
10258
+ * @function getTypeUrl
10259
+ * @memberof common.StringArrayValue
10260
+ * @static
10261
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10262
+ * @returns {string} The default type url
10263
+ */
10264
+ StringArrayValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10265
+ if (typeUrlPrefix === undefined) {
10266
+ typeUrlPrefix = "type.googleapis.com";
10267
+ }
10268
+ return typeUrlPrefix + "/common.StringArrayValue";
10269
+ };
10270
+
9358
10271
  return StringArrayValue;
9359
10272
  })();
9360
10273
 
@@ -9450,9 +10363,10 @@ $root.common = (function() {
9450
10363
  while (reader.pos < end) {
9451
10364
  var tag = reader.uint32();
9452
10365
  switch (tag >>> 3) {
9453
- case 1:
9454
- message.value = reader.uint64();
9455
- break;
10366
+ case 1: {
10367
+ message.value = reader.uint64();
10368
+ break;
10369
+ }
9456
10370
  default:
9457
10371
  reader.skipType(tag & 7);
9458
10372
  break;
@@ -9556,6 +10470,21 @@ $root.common = (function() {
9556
10470
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9557
10471
  };
9558
10472
 
10473
+ /**
10474
+ * Gets the default type url for UInt64Value
10475
+ * @function getTypeUrl
10476
+ * @memberof common.UInt64Value
10477
+ * @static
10478
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10479
+ * @returns {string} The default type url
10480
+ */
10481
+ UInt64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10482
+ if (typeUrlPrefix === undefined) {
10483
+ typeUrlPrefix = "type.googleapis.com";
10484
+ }
10485
+ return typeUrlPrefix + "/common.UInt64Value";
10486
+ };
10487
+
9559
10488
  return UInt64Value;
9560
10489
  })();
9561
10490
 
@@ -9651,9 +10580,10 @@ $root.common = (function() {
9651
10580
  while (reader.pos < end) {
9652
10581
  var tag = reader.uint32();
9653
10582
  switch (tag >>> 3) {
9654
- case 1:
9655
- message.value = reader.uint32();
9656
- break;
10583
+ case 1: {
10584
+ message.value = reader.uint32();
10585
+ break;
10586
+ }
9657
10587
  default:
9658
10588
  reader.skipType(tag & 7);
9659
10589
  break;
@@ -9743,6 +10673,21 @@ $root.common = (function() {
9743
10673
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9744
10674
  };
9745
10675
 
10676
+ /**
10677
+ * Gets the default type url for UInt32Value
10678
+ * @function getTypeUrl
10679
+ * @memberof common.UInt32Value
10680
+ * @static
10681
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10682
+ * @returns {string} The default type url
10683
+ */
10684
+ UInt32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10685
+ if (typeUrlPrefix === undefined) {
10686
+ typeUrlPrefix = "type.googleapis.com";
10687
+ }
10688
+ return typeUrlPrefix + "/common.UInt32Value";
10689
+ };
10690
+
9746
10691
  return UInt32Value;
9747
10692
  })();
9748
10693
 
@@ -9838,9 +10783,10 @@ $root.common = (function() {
9838
10783
  while (reader.pos < end) {
9839
10784
  var tag = reader.uint32();
9840
10785
  switch (tag >>> 3) {
9841
- case 1:
9842
- message.value = reader.string();
9843
- break;
10786
+ case 1: {
10787
+ message.value = reader.string();
10788
+ break;
10789
+ }
9844
10790
  default:
9845
10791
  reader.skipType(tag & 7);
9846
10792
  break;
@@ -9930,6 +10876,21 @@ $root.common = (function() {
9930
10876
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9931
10877
  };
9932
10878
 
10879
+ /**
10880
+ * Gets the default type url for StringValue
10881
+ * @function getTypeUrl
10882
+ * @memberof common.StringValue
10883
+ * @static
10884
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10885
+ * @returns {string} The default type url
10886
+ */
10887
+ StringValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10888
+ if (typeUrlPrefix === undefined) {
10889
+ typeUrlPrefix = "type.googleapis.com";
10890
+ }
10891
+ return typeUrlPrefix + "/common.StringValue";
10892
+ };
10893
+
9933
10894
  return StringValue;
9934
10895
  })();
9935
10896
 
@@ -10025,9 +10986,10 @@ $root.common = (function() {
10025
10986
  while (reader.pos < end) {
10026
10987
  var tag = reader.uint32();
10027
10988
  switch (tag >>> 3) {
10028
- case 1:
10029
- message.value = reader.bytes();
10030
- break;
10989
+ case 1: {
10990
+ message.value = reader.bytes();
10991
+ break;
10992
+ }
10031
10993
  default:
10032
10994
  reader.skipType(tag & 7);
10033
10995
  break;
@@ -10084,7 +11046,7 @@ $root.common = (function() {
10084
11046
  if (object.value != null)
10085
11047
  if (typeof object.value === "string")
10086
11048
  $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
10087
- else if (object.value.length)
11049
+ else if (object.value.length >= 0)
10088
11050
  message.value = object.value;
10089
11051
  return message;
10090
11052
  };
@@ -10126,6 +11088,21 @@ $root.common = (function() {
10126
11088
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10127
11089
  };
10128
11090
 
11091
+ /**
11092
+ * Gets the default type url for BytesValue
11093
+ * @function getTypeUrl
11094
+ * @memberof common.BytesValue
11095
+ * @static
11096
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11097
+ * @returns {string} The default type url
11098
+ */
11099
+ BytesValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11100
+ if (typeUrlPrefix === undefined) {
11101
+ typeUrlPrefix = "type.googleapis.com";
11102
+ }
11103
+ return typeUrlPrefix + "/common.BytesValue";
11104
+ };
11105
+
10129
11106
  return BytesValue;
10130
11107
  })();
10131
11108
 
@@ -10232,12 +11209,14 @@ $root.common = (function() {
10232
11209
  while (reader.pos < end) {
10233
11210
  var tag = reader.uint32();
10234
11211
  switch (tag >>> 3) {
10235
- case 1:
10236
- message.runtimeExcJson = reader.string();
10237
- break;
10238
- case 2:
10239
- message.err = reader.string();
10240
- break;
11212
+ case 1: {
11213
+ message.runtimeExcJson = reader.string();
11214
+ break;
11215
+ }
11216
+ case 2: {
11217
+ message.err = reader.string();
11218
+ break;
11219
+ }
10241
11220
  default:
10242
11221
  reader.skipType(tag & 7);
10243
11222
  break;
@@ -10336,6 +11315,21 @@ $root.common = (function() {
10336
11315
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10337
11316
  };
10338
11317
 
11318
+ /**
11319
+ * Gets the default type url for ErrorValue
11320
+ * @function getTypeUrl
11321
+ * @memberof common.ErrorValue
11322
+ * @static
11323
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11324
+ * @returns {string} The default type url
11325
+ */
11326
+ ErrorValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11327
+ if (typeUrlPrefix === undefined) {
11328
+ typeUrlPrefix = "type.googleapis.com";
11329
+ }
11330
+ return typeUrlPrefix + "/common.ErrorValue";
11331
+ };
11332
+
10339
11333
  return ErrorValue;
10340
11334
  })();
10341
11335
 
@@ -10453,15 +11447,18 @@ $root.common = (function() {
10453
11447
  while (reader.pos < end) {
10454
11448
  var tag = reader.uint32();
10455
11449
  switch (tag >>> 3) {
10456
- case 1:
10457
- message.type = reader.string();
10458
- break;
10459
- case 2:
10460
- message.json = $root.common.StringValue.decode(reader, reader.uint32());
10461
- break;
10462
- case 3:
10463
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
10464
- break;
11450
+ case 1: {
11451
+ message.type = reader.string();
11452
+ break;
11453
+ }
11454
+ case 2: {
11455
+ message.json = $root.common.StringValue.decode(reader, reader.uint32());
11456
+ break;
11457
+ }
11458
+ case 3: {
11459
+ message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
11460
+ break;
11461
+ }
10465
11462
  default:
10466
11463
  reader.skipType(tag & 7);
10467
11464
  break;
@@ -10578,6 +11575,21 @@ $root.common = (function() {
10578
11575
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10579
11576
  };
10580
11577
 
11578
+ /**
11579
+ * Gets the default type url for AnyValue
11580
+ * @function getTypeUrl
11581
+ * @memberof common.AnyValue
11582
+ * @static
11583
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11584
+ * @returns {string} The default type url
11585
+ */
11586
+ AnyValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11587
+ if (typeUrlPrefix === undefined) {
11588
+ typeUrlPrefix = "type.googleapis.com";
11589
+ }
11590
+ return typeUrlPrefix + "/common.AnyValue";
11591
+ };
11592
+
10581
11593
  return AnyValue;
10582
11594
  })();
10583
11595