core-3nweb-client-lib 0.27.3 → 0.27.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/build/api-defs/files.d.ts +92 -29
  2. package/build/core/asmail/config/index.d.ts +2 -2
  3. package/build/core/asmail/config/index.js +2 -2
  4. package/build/core/asmail/config/invitations-anon.d.ts +10 -24
  5. package/build/core/asmail/config/invitations-anon.js +43 -31
  6. package/build/core/asmail/config/published-intro-key.d.ts +11 -22
  7. package/build/core/asmail/config/published-intro-key.js +47 -38
  8. package/build/core/asmail/delivery/per-recipient-wip.js +2 -2
  9. package/build/core/asmail/inbox/inbox-events.js +10 -5
  10. package/build/core/asmail/inbox/index.d.ts +3 -2
  11. package/build/core/asmail/inbox/index.js +15 -11
  12. package/build/core/asmail/inbox/msg-indexing.d.ts +17 -64
  13. package/build/core/asmail/inbox/msg-indexing.js +440 -311
  14. package/build/core/asmail/inbox/msg-on-disk.js +2 -1
  15. package/build/core/asmail/index.d.ts +1 -1
  16. package/build/core/asmail/index.js +5 -4
  17. package/build/core/asmail/keyring/correspondent-keys.d.ts +2 -2
  18. package/build/core/asmail/keyring/correspondent-keys.js +4 -2
  19. package/build/core/asmail/keyring/index.d.ts +10 -33
  20. package/build/core/asmail/keyring/index.js +88 -75
  21. package/build/core/asmail/msg/opener.js +4 -3
  22. package/build/core/asmail/msg/packer.d.ts +1 -0
  23. package/build/core/asmail/msg/packer.js +8 -4
  24. package/build/core/index.js +3 -5
  25. package/build/core/sign-in.js +1 -1
  26. package/build/core/storage/local/obj-files.js +2 -1
  27. package/build/core/storage/synced/obj-files.d.ts +2 -0
  28. package/build/core/storage/synced/obj-files.js +18 -1
  29. package/build/core/storage/synced/obj-status.d.ts +1 -0
  30. package/build/core/storage/synced/obj-status.js +10 -0
  31. package/build/core/storage/synced/storage.js +7 -23
  32. package/build/core/storage/synced/upload-header-file.js +4 -2
  33. package/build/core/storage/synced/upsyncer.js +3 -5
  34. package/build/ipc-via-protobuf/asmail-cap.js +14 -15
  35. package/build/ipc-via-protobuf/bytes.js +42 -18
  36. package/build/ipc-via-protobuf/file.d.ts +7 -0
  37. package/build/ipc-via-protobuf/file.js +103 -66
  38. package/build/ipc-via-protobuf/fs.js +127 -105
  39. package/build/ipc-via-protobuf/mailerid.js +2 -2
  40. package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -0
  41. package/build/ipc-via-protobuf/protobuf-msg.js +5 -1
  42. package/build/ipc-via-protobuf/startup-cap.js +8 -8
  43. package/build/ipc-via-protobuf/storage-cap.js +4 -4
  44. package/build/lib-client/3nstorage/xsp-fs/common.js +2 -0
  45. package/build/lib-client/3nstorage/xsp-fs/file-node.d.ts +5 -10
  46. package/build/lib-client/3nstorage/xsp-fs/file-node.js +26 -45
  47. package/build/lib-client/3nstorage/xsp-fs/file.d.ts +8 -7
  48. package/build/lib-client/3nstorage/xsp-fs/file.js +12 -18
  49. package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +6 -1
  50. package/build/lib-client/3nstorage/xsp-fs/folder-node.js +20 -8
  51. package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +19 -18
  52. package/build/lib-client/3nstorage/xsp-fs/fs.js +18 -19
  53. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +13 -4
  54. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +63 -8
  55. package/build/lib-client/3nstorage/xsp-fs/node-persistence.d.ts +1 -0
  56. package/build/lib-client/3nstorage/xsp-fs/node-persistence.js +7 -5
  57. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v1.js +3 -4
  58. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v2.js +20 -15
  59. package/build/lib-client/cryptor/cryptor-in-worker.js +37 -47
  60. package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
  61. package/build/lib-client/cryptor/cryptor.wasm +0 -0
  62. package/build/lib-client/cryptor/in-proc-js.js +15 -12
  63. package/build/lib-client/cryptor/in-proc-wasm.js +11 -8
  64. package/build/lib-client/cryptor/serialization-for-wasm.d.ts +36 -0
  65. package/build/lib-client/cryptor/serialization-for-wasm.js +58 -0
  66. package/build/lib-client/cryptor-work-labels.d.ts +26 -0
  67. package/build/lib-client/cryptor-work-labels.js +152 -0
  68. package/build/lib-client/fs-sync-utils.d.ts +7 -1
  69. package/build/lib-client/fs-sync-utils.js +18 -7
  70. package/build/lib-client/local-files/dev-file-src.d.ts +2 -1
  71. package/build/lib-client/local-files/dev-file-src.js +5 -1
  72. package/build/lib-client/local-files/device-fs.js +2 -1
  73. package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +5 -2
  74. package/build/lib-client/objs-on-disk/obj-on-disk.js +21 -2
  75. package/build/lib-client/request-utils.js +14 -14
  76. package/build/lib-common/async-cryptor-wrap.d.ts +9 -9
  77. package/build/lib-common/async-cryptor-wrap.js +13 -13
  78. package/build/lib-common/byte-streaming/pipe.d.ts +1 -1
  79. package/build/lib-common/byte-streaming/pipe.js +3 -3
  80. package/build/lib-common/byte-streaming/wrapping.js +4 -2
  81. package/build/lib-common/json-utils.js +0 -3
  82. package/build/lib-common/objs-on-disk/file-layout.js +1 -1
  83. package/build/lib-common/processes/synced.js +0 -184
  84. package/build/lib-sqlite-on-3nstorage/index.d.ts +32 -0
  85. package/build/lib-sqlite-on-3nstorage/index.js +117 -0
  86. package/build/lib-sqlite-on-3nstorage/sqljs.d.ts +279 -0
  87. package/build/lib-sqlite-on-3nstorage/sqljs.js +223 -0
  88. package/build/protos/asmail.proto.js +10145 -5923
  89. package/build/protos/bytes.proto.js +731 -204
  90. package/build/protos/common.proto.js +192 -44
  91. package/build/protos/cryptor.proto.js +184 -61
  92. package/build/protos/file.proto.js +2388 -502
  93. package/build/protos/fs.proto.js +9894 -6046
  94. package/build/protos/ipc.proto.js +244 -61
  95. package/build/protos/logger.proto.js +219 -53
  96. package/build/protos/mailerid.proto.js +230 -50
  97. package/build/protos/startup.proto.js +341 -77
  98. package/build/protos/storage.proto.js +276 -62
  99. package/package.json +8 -7
  100. package/protos/bytes.proto +13 -4
  101. package/protos/file.proto +27 -8
  102. package/protos/fs.proto +31 -14
@@ -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,30 +2615,43 @@ $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
 
2465
- file.VersionedGetXAttrReplyBody = (function() {
2636
+ file.VersionedReadFlags = (function() {
2466
2637
 
2467
2638
  /**
2468
- * Properties of a VersionedGetXAttrReplyBody.
2639
+ * Properties of a VersionedReadFlags.
2469
2640
  * @memberof file
2470
- * @interface IVersionedGetXAttrReplyBody
2471
- * @property {number|Long|null} [version] VersionedGetXAttrReplyBody version
2472
- * @property {common.IStringValue|null} [str] VersionedGetXAttrReplyBody str
2473
- * @property {common.IStringValue|null} [json] VersionedGetXAttrReplyBody json
2474
- * @property {common.IBytesValue|null} [bytes] VersionedGetXAttrReplyBody bytes
2641
+ * @interface IVersionedReadFlags
2642
+ * @property {common.IUInt64Value|null} [archivedVersion] VersionedReadFlags archivedVersion
2643
+ * @property {common.IUInt64Value|null} [remoteVersion] VersionedReadFlags remoteVersion
2475
2644
  */
2476
2645
 
2477
2646
  /**
2478
- * Constructs a new VersionedGetXAttrReplyBody.
2647
+ * Constructs a new VersionedReadFlags.
2479
2648
  * @memberof file
2480
- * @classdesc Represents a VersionedGetXAttrReplyBody.
2481
- * @implements IVersionedGetXAttrReplyBody
2649
+ * @classdesc Represents a VersionedReadFlags.
2650
+ * @implements IVersionedReadFlags
2482
2651
  * @constructor
2483
- * @param {file.IVersionedGetXAttrReplyBody=} [properties] Properties to set
2652
+ * @param {file.IVersionedReadFlags=} [properties] Properties to set
2484
2653
  */
2485
- function VersionedGetXAttrReplyBody(properties) {
2654
+ function VersionedReadFlags(properties) {
2486
2655
  if (properties)
2487
2656
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2488
2657
  if (properties[keys[i]] != null)
@@ -2490,115 +2659,91 @@ $root.file = (function() {
2490
2659
  }
2491
2660
 
2492
2661
  /**
2493
- * VersionedGetXAttrReplyBody version.
2494
- * @member {number|Long} version
2495
- * @memberof file.VersionedGetXAttrReplyBody
2496
- * @instance
2497
- */
2498
- VersionedGetXAttrReplyBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
2499
-
2500
- /**
2501
- * VersionedGetXAttrReplyBody str.
2502
- * @member {common.IStringValue|null|undefined} str
2503
- * @memberof file.VersionedGetXAttrReplyBody
2504
- * @instance
2505
- */
2506
- VersionedGetXAttrReplyBody.prototype.str = null;
2507
-
2508
- /**
2509
- * VersionedGetXAttrReplyBody json.
2510
- * @member {common.IStringValue|null|undefined} json
2511
- * @memberof file.VersionedGetXAttrReplyBody
2662
+ * VersionedReadFlags archivedVersion.
2663
+ * @member {common.IUInt64Value|null|undefined} archivedVersion
2664
+ * @memberof file.VersionedReadFlags
2512
2665
  * @instance
2513
2666
  */
2514
- VersionedGetXAttrReplyBody.prototype.json = null;
2667
+ VersionedReadFlags.prototype.archivedVersion = null;
2515
2668
 
2516
2669
  /**
2517
- * VersionedGetXAttrReplyBody bytes.
2518
- * @member {common.IBytesValue|null|undefined} bytes
2519
- * @memberof file.VersionedGetXAttrReplyBody
2670
+ * VersionedReadFlags remoteVersion.
2671
+ * @member {common.IUInt64Value|null|undefined} remoteVersion
2672
+ * @memberof file.VersionedReadFlags
2520
2673
  * @instance
2521
2674
  */
2522
- VersionedGetXAttrReplyBody.prototype.bytes = null;
2675
+ VersionedReadFlags.prototype.remoteVersion = null;
2523
2676
 
2524
2677
  /**
2525
- * Creates a new VersionedGetXAttrReplyBody instance using the specified properties.
2678
+ * Creates a new VersionedReadFlags instance using the specified properties.
2526
2679
  * @function create
2527
- * @memberof file.VersionedGetXAttrReplyBody
2680
+ * @memberof file.VersionedReadFlags
2528
2681
  * @static
2529
- * @param {file.IVersionedGetXAttrReplyBody=} [properties] Properties to set
2530
- * @returns {file.VersionedGetXAttrReplyBody} VersionedGetXAttrReplyBody instance
2682
+ * @param {file.IVersionedReadFlags=} [properties] Properties to set
2683
+ * @returns {file.VersionedReadFlags} VersionedReadFlags instance
2531
2684
  */
2532
- VersionedGetXAttrReplyBody.create = function create(properties) {
2533
- return new VersionedGetXAttrReplyBody(properties);
2685
+ VersionedReadFlags.create = function create(properties) {
2686
+ return new VersionedReadFlags(properties);
2534
2687
  };
2535
2688
 
2536
2689
  /**
2537
- * Encodes the specified VersionedGetXAttrReplyBody message. Does not implicitly {@link file.VersionedGetXAttrReplyBody.verify|verify} messages.
2690
+ * Encodes the specified VersionedReadFlags message. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
2538
2691
  * @function encode
2539
- * @memberof file.VersionedGetXAttrReplyBody
2692
+ * @memberof file.VersionedReadFlags
2540
2693
  * @static
2541
- * @param {file.IVersionedGetXAttrReplyBody} message VersionedGetXAttrReplyBody message or plain object to encode
2694
+ * @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
2542
2695
  * @param {$protobuf.Writer} [writer] Writer to encode to
2543
2696
  * @returns {$protobuf.Writer} Writer
2544
2697
  */
2545
- VersionedGetXAttrReplyBody.encode = function encode(message, writer) {
2698
+ VersionedReadFlags.encode = function encode(message, writer) {
2546
2699
  if (!writer)
2547
2700
  writer = $Writer.create();
2548
- if (message.version != null && Object.hasOwnProperty.call(message, "version"))
2549
- writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.version);
2550
- if (message.str != null && Object.hasOwnProperty.call(message, "str"))
2551
- $root.common.StringValue.encode(message.str, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
2552
- if (message.json != null && Object.hasOwnProperty.call(message, "json"))
2553
- $root.common.StringValue.encode(message.json, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
2554
- if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
2555
- $root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
2701
+ if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
2702
+ $root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
2703
+ if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
2704
+ $root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
2556
2705
  return writer;
2557
2706
  };
2558
2707
 
2559
2708
  /**
2560
- * Encodes the specified VersionedGetXAttrReplyBody message, length delimited. Does not implicitly {@link file.VersionedGetXAttrReplyBody.verify|verify} messages.
2709
+ * Encodes the specified VersionedReadFlags message, length delimited. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
2561
2710
  * @function encodeDelimited
2562
- * @memberof file.VersionedGetXAttrReplyBody
2711
+ * @memberof file.VersionedReadFlags
2563
2712
  * @static
2564
- * @param {file.IVersionedGetXAttrReplyBody} message VersionedGetXAttrReplyBody message or plain object to encode
2713
+ * @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
2565
2714
  * @param {$protobuf.Writer} [writer] Writer to encode to
2566
2715
  * @returns {$protobuf.Writer} Writer
2567
2716
  */
2568
- VersionedGetXAttrReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
2717
+ VersionedReadFlags.encodeDelimited = function encodeDelimited(message, writer) {
2569
2718
  return this.encode(message, writer).ldelim();
2570
2719
  };
2571
2720
 
2572
2721
  /**
2573
- * Decodes a VersionedGetXAttrReplyBody message from the specified reader or buffer.
2722
+ * Decodes a VersionedReadFlags message from the specified reader or buffer.
2574
2723
  * @function decode
2575
- * @memberof file.VersionedGetXAttrReplyBody
2724
+ * @memberof file.VersionedReadFlags
2576
2725
  * @static
2577
2726
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2578
2727
  * @param {number} [length] Message length if known beforehand
2579
- * @returns {file.VersionedGetXAttrReplyBody} VersionedGetXAttrReplyBody
2728
+ * @returns {file.VersionedReadFlags} VersionedReadFlags
2580
2729
  * @throws {Error} If the payload is not a reader or valid buffer
2581
2730
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2582
2731
  */
2583
- VersionedGetXAttrReplyBody.decode = function decode(reader, length) {
2732
+ VersionedReadFlags.decode = function decode(reader, length) {
2584
2733
  if (!(reader instanceof $Reader))
2585
2734
  reader = $Reader.create(reader);
2586
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedGetXAttrReplyBody();
2735
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedReadFlags();
2587
2736
  while (reader.pos < end) {
2588
2737
  var tag = reader.uint32();
2589
2738
  switch (tag >>> 3) {
2590
- case 1:
2591
- message.version = reader.uint64();
2592
- break;
2593
- case 2:
2594
- message.str = $root.common.StringValue.decode(reader, reader.uint32());
2595
- break;
2596
- case 3:
2597
- message.json = $root.common.StringValue.decode(reader, reader.uint32());
2598
- break;
2599
- case 4:
2600
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
2601
- 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
+ }
2602
2747
  default:
2603
2748
  reader.skipType(tag & 7);
2604
2749
  break;
@@ -2608,125 +2753,832 @@ $root.file = (function() {
2608
2753
  };
2609
2754
 
2610
2755
  /**
2611
- * Decodes a VersionedGetXAttrReplyBody message from the specified reader or buffer, length delimited.
2756
+ * Decodes a VersionedReadFlags message from the specified reader or buffer, length delimited.
2612
2757
  * @function decodeDelimited
2613
- * @memberof file.VersionedGetXAttrReplyBody
2758
+ * @memberof file.VersionedReadFlags
2614
2759
  * @static
2615
2760
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2616
- * @returns {file.VersionedGetXAttrReplyBody} VersionedGetXAttrReplyBody
2761
+ * @returns {file.VersionedReadFlags} VersionedReadFlags
2617
2762
  * @throws {Error} If the payload is not a reader or valid buffer
2618
2763
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2619
2764
  */
2620
- VersionedGetXAttrReplyBody.decodeDelimited = function decodeDelimited(reader) {
2765
+ VersionedReadFlags.decodeDelimited = function decodeDelimited(reader) {
2621
2766
  if (!(reader instanceof $Reader))
2622
2767
  reader = new $Reader(reader);
2623
2768
  return this.decode(reader, reader.uint32());
2624
2769
  };
2625
2770
 
2626
2771
  /**
2627
- * Verifies a VersionedGetXAttrReplyBody message.
2772
+ * Verifies a VersionedReadFlags message.
2628
2773
  * @function verify
2629
- * @memberof file.VersionedGetXAttrReplyBody
2774
+ * @memberof file.VersionedReadFlags
2630
2775
  * @static
2631
2776
  * @param {Object.<string,*>} message Plain object to verify
2632
2777
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
2633
2778
  */
2634
- VersionedGetXAttrReplyBody.verify = function verify(message) {
2779
+ VersionedReadFlags.verify = function verify(message) {
2635
2780
  if (typeof message !== "object" || message === null)
2636
2781
  return "object expected";
2637
- if (message.version != null && message.hasOwnProperty("version"))
2638
- if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
2639
- return "version: integer|Long expected";
2640
- if (message.str != null && message.hasOwnProperty("str")) {
2641
- var error = $root.common.StringValue.verify(message.str);
2642
- if (error)
2643
- return "str." + error;
2644
- }
2645
- if (message.json != null && message.hasOwnProperty("json")) {
2646
- var error = $root.common.StringValue.verify(message.json);
2782
+ if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
2783
+ var error = $root.common.UInt64Value.verify(message.archivedVersion);
2647
2784
  if (error)
2648
- return "json." + error;
2785
+ return "archivedVersion." + error;
2649
2786
  }
2650
- if (message.bytes != null && message.hasOwnProperty("bytes")) {
2651
- var error = $root.common.BytesValue.verify(message.bytes);
2787
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
2788
+ var error = $root.common.UInt64Value.verify(message.remoteVersion);
2652
2789
  if (error)
2653
- return "bytes." + error;
2790
+ return "remoteVersion." + error;
2654
2791
  }
2655
2792
  return null;
2656
2793
  };
2657
2794
 
2658
2795
  /**
2659
- * Creates a VersionedGetXAttrReplyBody message from a plain object. Also converts values to their respective internal types.
2796
+ * Creates a VersionedReadFlags message from a plain object. Also converts values to their respective internal types.
2660
2797
  * @function fromObject
2661
- * @memberof file.VersionedGetXAttrReplyBody
2798
+ * @memberof file.VersionedReadFlags
2662
2799
  * @static
2663
2800
  * @param {Object.<string,*>} object Plain object
2664
- * @returns {file.VersionedGetXAttrReplyBody} VersionedGetXAttrReplyBody
2801
+ * @returns {file.VersionedReadFlags} VersionedReadFlags
2665
2802
  */
2666
- VersionedGetXAttrReplyBody.fromObject = function fromObject(object) {
2667
- if (object instanceof $root.file.VersionedGetXAttrReplyBody)
2803
+ VersionedReadFlags.fromObject = function fromObject(object) {
2804
+ if (object instanceof $root.file.VersionedReadFlags)
2668
2805
  return object;
2669
- var message = new $root.file.VersionedGetXAttrReplyBody();
2670
- if (object.version != null)
2671
- if ($util.Long)
2672
- (message.version = $util.Long.fromValue(object.version)).unsigned = true;
2673
- else if (typeof object.version === "string")
2674
- message.version = parseInt(object.version, 10);
2675
- else if (typeof object.version === "number")
2676
- message.version = object.version;
2677
- else if (typeof object.version === "object")
2678
- message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
2679
- if (object.str != null) {
2680
- if (typeof object.str !== "object")
2681
- throw TypeError(".file.VersionedGetXAttrReplyBody.str: object expected");
2682
- message.str = $root.common.StringValue.fromObject(object.str);
2683
- }
2684
- if (object.json != null) {
2685
- if (typeof object.json !== "object")
2686
- throw TypeError(".file.VersionedGetXAttrReplyBody.json: object expected");
2687
- message.json = $root.common.StringValue.fromObject(object.json);
2806
+ var message = new $root.file.VersionedReadFlags();
2807
+ if (object.archivedVersion != null) {
2808
+ if (typeof object.archivedVersion !== "object")
2809
+ throw TypeError(".file.VersionedReadFlags.archivedVersion: object expected");
2810
+ message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
2688
2811
  }
2689
- if (object.bytes != null) {
2690
- if (typeof object.bytes !== "object")
2691
- throw TypeError(".file.VersionedGetXAttrReplyBody.bytes: object expected");
2692
- message.bytes = $root.common.BytesValue.fromObject(object.bytes);
2812
+ if (object.remoteVersion != null) {
2813
+ if (typeof object.remoteVersion !== "object")
2814
+ throw TypeError(".file.VersionedReadFlags.remoteVersion: object expected");
2815
+ message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
2693
2816
  }
2694
2817
  return message;
2695
2818
  };
2696
2819
 
2697
2820
  /**
2698
- * Creates a plain object from a VersionedGetXAttrReplyBody message. Also converts values to other types if specified.
2821
+ * Creates a plain object from a VersionedReadFlags message. Also converts values to other types if specified.
2699
2822
  * @function toObject
2700
- * @memberof file.VersionedGetXAttrReplyBody
2823
+ * @memberof file.VersionedReadFlags
2701
2824
  * @static
2702
- * @param {file.VersionedGetXAttrReplyBody} message VersionedGetXAttrReplyBody
2825
+ * @param {file.VersionedReadFlags} message VersionedReadFlags
2703
2826
  * @param {$protobuf.IConversionOptions} [options] Conversion options
2704
2827
  * @returns {Object.<string,*>} Plain object
2705
2828
  */
2706
- VersionedGetXAttrReplyBody.toObject = function toObject(message, options) {
2829
+ VersionedReadFlags.toObject = function toObject(message, options) {
2707
2830
  if (!options)
2708
2831
  options = {};
2709
2832
  var object = {};
2710
2833
  if (options.defaults) {
2711
- if ($util.Long) {
2712
- var long = new $util.Long(0, 0, true);
2713
- object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
2714
- } else
2715
- object.version = options.longs === String ? "0" : 0;
2716
- object.str = null;
2717
- object.json = null;
2718
- object.bytes = null;
2834
+ object.archivedVersion = null;
2835
+ object.remoteVersion = null;
2719
2836
  }
2720
- if (message.version != null && message.hasOwnProperty("version"))
2721
- if (typeof message.version === "number")
2722
- object.version = options.longs === String ? String(message.version) : message.version;
2723
- else
2724
- object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
2725
- if (message.str != null && message.hasOwnProperty("str"))
2726
- object.str = $root.common.StringValue.toObject(message.str, options);
2727
- if (message.json != null && message.hasOwnProperty("json"))
2728
- object.json = $root.common.StringValue.toObject(message.json, options);
2729
- if (message.bytes != null && message.hasOwnProperty("bytes"))
2837
+ if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
2838
+ object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
2839
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
2840
+ object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
2841
+ return object;
2842
+ };
2843
+
2844
+ /**
2845
+ * Converts this VersionedReadFlags to JSON.
2846
+ * @function toJSON
2847
+ * @memberof file.VersionedReadFlags
2848
+ * @instance
2849
+ * @returns {Object.<string,*>} JSON object
2850
+ */
2851
+ VersionedReadFlags.prototype.toJSON = function toJSON() {
2852
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2853
+ };
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
+
2870
+ return VersionedReadFlags;
2871
+ })();
2872
+
2873
+ file.RequestWithVersionedReadFlags = (function() {
2874
+
2875
+ /**
2876
+ * Properties of a RequestWithVersionedReadFlags.
2877
+ * @memberof file
2878
+ * @interface IRequestWithVersionedReadFlags
2879
+ * @property {file.IVersionedReadFlags|null} [flags] RequestWithVersionedReadFlags flags
2880
+ */
2881
+
2882
+ /**
2883
+ * Constructs a new RequestWithVersionedReadFlags.
2884
+ * @memberof file
2885
+ * @classdesc Represents a RequestWithVersionedReadFlags.
2886
+ * @implements IRequestWithVersionedReadFlags
2887
+ * @constructor
2888
+ * @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
2889
+ */
2890
+ function RequestWithVersionedReadFlags(properties) {
2891
+ if (properties)
2892
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2893
+ if (properties[keys[i]] != null)
2894
+ this[keys[i]] = properties[keys[i]];
2895
+ }
2896
+
2897
+ /**
2898
+ * RequestWithVersionedReadFlags flags.
2899
+ * @member {file.IVersionedReadFlags|null|undefined} flags
2900
+ * @memberof file.RequestWithVersionedReadFlags
2901
+ * @instance
2902
+ */
2903
+ RequestWithVersionedReadFlags.prototype.flags = null;
2904
+
2905
+ /**
2906
+ * Creates a new RequestWithVersionedReadFlags instance using the specified properties.
2907
+ * @function create
2908
+ * @memberof file.RequestWithVersionedReadFlags
2909
+ * @static
2910
+ * @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
2911
+ * @returns {file.RequestWithVersionedReadFlags} RequestWithVersionedReadFlags instance
2912
+ */
2913
+ RequestWithVersionedReadFlags.create = function create(properties) {
2914
+ return new RequestWithVersionedReadFlags(properties);
2915
+ };
2916
+
2917
+ /**
2918
+ * Encodes the specified RequestWithVersionedReadFlags message. Does not implicitly {@link file.RequestWithVersionedReadFlags.verify|verify} messages.
2919
+ * @function encode
2920
+ * @memberof file.RequestWithVersionedReadFlags
2921
+ * @static
2922
+ * @param {file.IRequestWithVersionedReadFlags} message RequestWithVersionedReadFlags message or plain object to encode
2923
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2924
+ * @returns {$protobuf.Writer} Writer
2925
+ */
2926
+ RequestWithVersionedReadFlags.encode = function encode(message, writer) {
2927
+ if (!writer)
2928
+ writer = $Writer.create();
2929
+ if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
2930
+ $root.file.VersionedReadFlags.encode(message.flags, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
2931
+ return writer;
2932
+ };
2933
+
2934
+ /**
2935
+ * Encodes the specified RequestWithVersionedReadFlags message, length delimited. Does not implicitly {@link file.RequestWithVersionedReadFlags.verify|verify} messages.
2936
+ * @function encodeDelimited
2937
+ * @memberof file.RequestWithVersionedReadFlags
2938
+ * @static
2939
+ * @param {file.IRequestWithVersionedReadFlags} message RequestWithVersionedReadFlags message or plain object to encode
2940
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2941
+ * @returns {$protobuf.Writer} Writer
2942
+ */
2943
+ RequestWithVersionedReadFlags.encodeDelimited = function encodeDelimited(message, writer) {
2944
+ return this.encode(message, writer).ldelim();
2945
+ };
2946
+
2947
+ /**
2948
+ * Decodes a RequestWithVersionedReadFlags message from the specified reader or buffer.
2949
+ * @function decode
2950
+ * @memberof file.RequestWithVersionedReadFlags
2951
+ * @static
2952
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2953
+ * @param {number} [length] Message length if known beforehand
2954
+ * @returns {file.RequestWithVersionedReadFlags} RequestWithVersionedReadFlags
2955
+ * @throws {Error} If the payload is not a reader or valid buffer
2956
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2957
+ */
2958
+ RequestWithVersionedReadFlags.decode = function decode(reader, length) {
2959
+ if (!(reader instanceof $Reader))
2960
+ reader = $Reader.create(reader);
2961
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.RequestWithVersionedReadFlags();
2962
+ while (reader.pos < end) {
2963
+ var tag = reader.uint32();
2964
+ switch (tag >>> 3) {
2965
+ case 1: {
2966
+ message.flags = $root.file.VersionedReadFlags.decode(reader, reader.uint32());
2967
+ break;
2968
+ }
2969
+ default:
2970
+ reader.skipType(tag & 7);
2971
+ break;
2972
+ }
2973
+ }
2974
+ return message;
2975
+ };
2976
+
2977
+ /**
2978
+ * Decodes a RequestWithVersionedReadFlags message from the specified reader or buffer, length delimited.
2979
+ * @function decodeDelimited
2980
+ * @memberof file.RequestWithVersionedReadFlags
2981
+ * @static
2982
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2983
+ * @returns {file.RequestWithVersionedReadFlags} RequestWithVersionedReadFlags
2984
+ * @throws {Error} If the payload is not a reader or valid buffer
2985
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2986
+ */
2987
+ RequestWithVersionedReadFlags.decodeDelimited = function decodeDelimited(reader) {
2988
+ if (!(reader instanceof $Reader))
2989
+ reader = new $Reader(reader);
2990
+ return this.decode(reader, reader.uint32());
2991
+ };
2992
+
2993
+ /**
2994
+ * Verifies a RequestWithVersionedReadFlags message.
2995
+ * @function verify
2996
+ * @memberof file.RequestWithVersionedReadFlags
2997
+ * @static
2998
+ * @param {Object.<string,*>} message Plain object to verify
2999
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
3000
+ */
3001
+ RequestWithVersionedReadFlags.verify = function verify(message) {
3002
+ if (typeof message !== "object" || message === null)
3003
+ return "object expected";
3004
+ if (message.flags != null && message.hasOwnProperty("flags")) {
3005
+ var error = $root.file.VersionedReadFlags.verify(message.flags);
3006
+ if (error)
3007
+ return "flags." + error;
3008
+ }
3009
+ return null;
3010
+ };
3011
+
3012
+ /**
3013
+ * Creates a RequestWithVersionedReadFlags message from a plain object. Also converts values to their respective internal types.
3014
+ * @function fromObject
3015
+ * @memberof file.RequestWithVersionedReadFlags
3016
+ * @static
3017
+ * @param {Object.<string,*>} object Plain object
3018
+ * @returns {file.RequestWithVersionedReadFlags} RequestWithVersionedReadFlags
3019
+ */
3020
+ RequestWithVersionedReadFlags.fromObject = function fromObject(object) {
3021
+ if (object instanceof $root.file.RequestWithVersionedReadFlags)
3022
+ return object;
3023
+ var message = new $root.file.RequestWithVersionedReadFlags();
3024
+ if (object.flags != null) {
3025
+ if (typeof object.flags !== "object")
3026
+ throw TypeError(".file.RequestWithVersionedReadFlags.flags: object expected");
3027
+ message.flags = $root.file.VersionedReadFlags.fromObject(object.flags);
3028
+ }
3029
+ return message;
3030
+ };
3031
+
3032
+ /**
3033
+ * Creates a plain object from a RequestWithVersionedReadFlags message. Also converts values to other types if specified.
3034
+ * @function toObject
3035
+ * @memberof file.RequestWithVersionedReadFlags
3036
+ * @static
3037
+ * @param {file.RequestWithVersionedReadFlags} message RequestWithVersionedReadFlags
3038
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
3039
+ * @returns {Object.<string,*>} Plain object
3040
+ */
3041
+ RequestWithVersionedReadFlags.toObject = function toObject(message, options) {
3042
+ if (!options)
3043
+ options = {};
3044
+ var object = {};
3045
+ if (options.defaults)
3046
+ object.flags = null;
3047
+ if (message.flags != null && message.hasOwnProperty("flags"))
3048
+ object.flags = $root.file.VersionedReadFlags.toObject(message.flags, options);
3049
+ return object;
3050
+ };
3051
+
3052
+ /**
3053
+ * Converts this RequestWithVersionedReadFlags to JSON.
3054
+ * @function toJSON
3055
+ * @memberof file.RequestWithVersionedReadFlags
3056
+ * @instance
3057
+ * @returns {Object.<string,*>} JSON object
3058
+ */
3059
+ RequestWithVersionedReadFlags.prototype.toJSON = function toJSON() {
3060
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3061
+ };
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
+
3078
+ return RequestWithVersionedReadFlags;
3079
+ })();
3080
+
3081
+ file.VersionedGetXAttrRequestBody = (function() {
3082
+
3083
+ /**
3084
+ * Properties of a VersionedGetXAttrRequestBody.
3085
+ * @memberof file
3086
+ * @interface IVersionedGetXAttrRequestBody
3087
+ * @property {string|null} [xaName] VersionedGetXAttrRequestBody xaName
3088
+ * @property {file.IVersionedReadFlags|null} [flags] VersionedGetXAttrRequestBody flags
3089
+ */
3090
+
3091
+ /**
3092
+ * Constructs a new VersionedGetXAttrRequestBody.
3093
+ * @memberof file
3094
+ * @classdesc Represents a VersionedGetXAttrRequestBody.
3095
+ * @implements IVersionedGetXAttrRequestBody
3096
+ * @constructor
3097
+ * @param {file.IVersionedGetXAttrRequestBody=} [properties] Properties to set
3098
+ */
3099
+ function VersionedGetXAttrRequestBody(properties) {
3100
+ if (properties)
3101
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3102
+ if (properties[keys[i]] != null)
3103
+ this[keys[i]] = properties[keys[i]];
3104
+ }
3105
+
3106
+ /**
3107
+ * VersionedGetXAttrRequestBody xaName.
3108
+ * @member {string} xaName
3109
+ * @memberof file.VersionedGetXAttrRequestBody
3110
+ * @instance
3111
+ */
3112
+ VersionedGetXAttrRequestBody.prototype.xaName = "";
3113
+
3114
+ /**
3115
+ * VersionedGetXAttrRequestBody flags.
3116
+ * @member {file.IVersionedReadFlags|null|undefined} flags
3117
+ * @memberof file.VersionedGetXAttrRequestBody
3118
+ * @instance
3119
+ */
3120
+ VersionedGetXAttrRequestBody.prototype.flags = null;
3121
+
3122
+ /**
3123
+ * Creates a new VersionedGetXAttrRequestBody instance using the specified properties.
3124
+ * @function create
3125
+ * @memberof file.VersionedGetXAttrRequestBody
3126
+ * @static
3127
+ * @param {file.IVersionedGetXAttrRequestBody=} [properties] Properties to set
3128
+ * @returns {file.VersionedGetXAttrRequestBody} VersionedGetXAttrRequestBody instance
3129
+ */
3130
+ VersionedGetXAttrRequestBody.create = function create(properties) {
3131
+ return new VersionedGetXAttrRequestBody(properties);
3132
+ };
3133
+
3134
+ /**
3135
+ * Encodes the specified VersionedGetXAttrRequestBody message. Does not implicitly {@link file.VersionedGetXAttrRequestBody.verify|verify} messages.
3136
+ * @function encode
3137
+ * @memberof file.VersionedGetXAttrRequestBody
3138
+ * @static
3139
+ * @param {file.IVersionedGetXAttrRequestBody} message VersionedGetXAttrRequestBody message or plain object to encode
3140
+ * @param {$protobuf.Writer} [writer] Writer to encode to
3141
+ * @returns {$protobuf.Writer} Writer
3142
+ */
3143
+ VersionedGetXAttrRequestBody.encode = function encode(message, writer) {
3144
+ if (!writer)
3145
+ writer = $Writer.create();
3146
+ if (message.xaName != null && Object.hasOwnProperty.call(message, "xaName"))
3147
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.xaName);
3148
+ if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
3149
+ $root.file.VersionedReadFlags.encode(message.flags, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
3150
+ return writer;
3151
+ };
3152
+
3153
+ /**
3154
+ * Encodes the specified VersionedGetXAttrRequestBody message, length delimited. Does not implicitly {@link file.VersionedGetXAttrRequestBody.verify|verify} messages.
3155
+ * @function encodeDelimited
3156
+ * @memberof file.VersionedGetXAttrRequestBody
3157
+ * @static
3158
+ * @param {file.IVersionedGetXAttrRequestBody} message VersionedGetXAttrRequestBody message or plain object to encode
3159
+ * @param {$protobuf.Writer} [writer] Writer to encode to
3160
+ * @returns {$protobuf.Writer} Writer
3161
+ */
3162
+ VersionedGetXAttrRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
3163
+ return this.encode(message, writer).ldelim();
3164
+ };
3165
+
3166
+ /**
3167
+ * Decodes a VersionedGetXAttrRequestBody message from the specified reader or buffer.
3168
+ * @function decode
3169
+ * @memberof file.VersionedGetXAttrRequestBody
3170
+ * @static
3171
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3172
+ * @param {number} [length] Message length if known beforehand
3173
+ * @returns {file.VersionedGetXAttrRequestBody} VersionedGetXAttrRequestBody
3174
+ * @throws {Error} If the payload is not a reader or valid buffer
3175
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3176
+ */
3177
+ VersionedGetXAttrRequestBody.decode = function decode(reader, length) {
3178
+ if (!(reader instanceof $Reader))
3179
+ reader = $Reader.create(reader);
3180
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedGetXAttrRequestBody();
3181
+ while (reader.pos < end) {
3182
+ var tag = reader.uint32();
3183
+ switch (tag >>> 3) {
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
+ }
3192
+ default:
3193
+ reader.skipType(tag & 7);
3194
+ break;
3195
+ }
3196
+ }
3197
+ return message;
3198
+ };
3199
+
3200
+ /**
3201
+ * Decodes a VersionedGetXAttrRequestBody message from the specified reader or buffer, length delimited.
3202
+ * @function decodeDelimited
3203
+ * @memberof file.VersionedGetXAttrRequestBody
3204
+ * @static
3205
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3206
+ * @returns {file.VersionedGetXAttrRequestBody} VersionedGetXAttrRequestBody
3207
+ * @throws {Error} If the payload is not a reader or valid buffer
3208
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3209
+ */
3210
+ VersionedGetXAttrRequestBody.decodeDelimited = function decodeDelimited(reader) {
3211
+ if (!(reader instanceof $Reader))
3212
+ reader = new $Reader(reader);
3213
+ return this.decode(reader, reader.uint32());
3214
+ };
3215
+
3216
+ /**
3217
+ * Verifies a VersionedGetXAttrRequestBody message.
3218
+ * @function verify
3219
+ * @memberof file.VersionedGetXAttrRequestBody
3220
+ * @static
3221
+ * @param {Object.<string,*>} message Plain object to verify
3222
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
3223
+ */
3224
+ VersionedGetXAttrRequestBody.verify = function verify(message) {
3225
+ if (typeof message !== "object" || message === null)
3226
+ return "object expected";
3227
+ if (message.xaName != null && message.hasOwnProperty("xaName"))
3228
+ if (!$util.isString(message.xaName))
3229
+ return "xaName: string expected";
3230
+ if (message.flags != null && message.hasOwnProperty("flags")) {
3231
+ var error = $root.file.VersionedReadFlags.verify(message.flags);
3232
+ if (error)
3233
+ return "flags." + error;
3234
+ }
3235
+ return null;
3236
+ };
3237
+
3238
+ /**
3239
+ * Creates a VersionedGetXAttrRequestBody message from a plain object. Also converts values to their respective internal types.
3240
+ * @function fromObject
3241
+ * @memberof file.VersionedGetXAttrRequestBody
3242
+ * @static
3243
+ * @param {Object.<string,*>} object Plain object
3244
+ * @returns {file.VersionedGetXAttrRequestBody} VersionedGetXAttrRequestBody
3245
+ */
3246
+ VersionedGetXAttrRequestBody.fromObject = function fromObject(object) {
3247
+ if (object instanceof $root.file.VersionedGetXAttrRequestBody)
3248
+ return object;
3249
+ var message = new $root.file.VersionedGetXAttrRequestBody();
3250
+ if (object.xaName != null)
3251
+ message.xaName = String(object.xaName);
3252
+ if (object.flags != null) {
3253
+ if (typeof object.flags !== "object")
3254
+ throw TypeError(".file.VersionedGetXAttrRequestBody.flags: object expected");
3255
+ message.flags = $root.file.VersionedReadFlags.fromObject(object.flags);
3256
+ }
3257
+ return message;
3258
+ };
3259
+
3260
+ /**
3261
+ * Creates a plain object from a VersionedGetXAttrRequestBody message. Also converts values to other types if specified.
3262
+ * @function toObject
3263
+ * @memberof file.VersionedGetXAttrRequestBody
3264
+ * @static
3265
+ * @param {file.VersionedGetXAttrRequestBody} message VersionedGetXAttrRequestBody
3266
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
3267
+ * @returns {Object.<string,*>} Plain object
3268
+ */
3269
+ VersionedGetXAttrRequestBody.toObject = function toObject(message, options) {
3270
+ if (!options)
3271
+ options = {};
3272
+ var object = {};
3273
+ if (options.defaults) {
3274
+ object.xaName = "";
3275
+ object.flags = null;
3276
+ }
3277
+ if (message.xaName != null && message.hasOwnProperty("xaName"))
3278
+ object.xaName = message.xaName;
3279
+ if (message.flags != null && message.hasOwnProperty("flags"))
3280
+ object.flags = $root.file.VersionedReadFlags.toObject(message.flags, options);
3281
+ return object;
3282
+ };
3283
+
3284
+ /**
3285
+ * Converts this VersionedGetXAttrRequestBody to JSON.
3286
+ * @function toJSON
3287
+ * @memberof file.VersionedGetXAttrRequestBody
3288
+ * @instance
3289
+ * @returns {Object.<string,*>} JSON object
3290
+ */
3291
+ VersionedGetXAttrRequestBody.prototype.toJSON = function toJSON() {
3292
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3293
+ };
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
+
3310
+ return VersionedGetXAttrRequestBody;
3311
+ })();
3312
+
3313
+ file.VersionedGetXAttrReplyBody = (function() {
3314
+
3315
+ /**
3316
+ * Properties of a VersionedGetXAttrReplyBody.
3317
+ * @memberof file
3318
+ * @interface IVersionedGetXAttrReplyBody
3319
+ * @property {number|Long|null} [version] VersionedGetXAttrReplyBody version
3320
+ * @property {common.IStringValue|null} [str] VersionedGetXAttrReplyBody str
3321
+ * @property {common.IStringValue|null} [json] VersionedGetXAttrReplyBody json
3322
+ * @property {common.IBytesValue|null} [bytes] VersionedGetXAttrReplyBody bytes
3323
+ */
3324
+
3325
+ /**
3326
+ * Constructs a new VersionedGetXAttrReplyBody.
3327
+ * @memberof file
3328
+ * @classdesc Represents a VersionedGetXAttrReplyBody.
3329
+ * @implements IVersionedGetXAttrReplyBody
3330
+ * @constructor
3331
+ * @param {file.IVersionedGetXAttrReplyBody=} [properties] Properties to set
3332
+ */
3333
+ function VersionedGetXAttrReplyBody(properties) {
3334
+ if (properties)
3335
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3336
+ if (properties[keys[i]] != null)
3337
+ this[keys[i]] = properties[keys[i]];
3338
+ }
3339
+
3340
+ /**
3341
+ * VersionedGetXAttrReplyBody version.
3342
+ * @member {number|Long} version
3343
+ * @memberof file.VersionedGetXAttrReplyBody
3344
+ * @instance
3345
+ */
3346
+ VersionedGetXAttrReplyBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3347
+
3348
+ /**
3349
+ * VersionedGetXAttrReplyBody str.
3350
+ * @member {common.IStringValue|null|undefined} str
3351
+ * @memberof file.VersionedGetXAttrReplyBody
3352
+ * @instance
3353
+ */
3354
+ VersionedGetXAttrReplyBody.prototype.str = null;
3355
+
3356
+ /**
3357
+ * VersionedGetXAttrReplyBody json.
3358
+ * @member {common.IStringValue|null|undefined} json
3359
+ * @memberof file.VersionedGetXAttrReplyBody
3360
+ * @instance
3361
+ */
3362
+ VersionedGetXAttrReplyBody.prototype.json = null;
3363
+
3364
+ /**
3365
+ * VersionedGetXAttrReplyBody bytes.
3366
+ * @member {common.IBytesValue|null|undefined} bytes
3367
+ * @memberof file.VersionedGetXAttrReplyBody
3368
+ * @instance
3369
+ */
3370
+ VersionedGetXAttrReplyBody.prototype.bytes = null;
3371
+
3372
+ /**
3373
+ * Creates a new VersionedGetXAttrReplyBody instance using the specified properties.
3374
+ * @function create
3375
+ * @memberof file.VersionedGetXAttrReplyBody
3376
+ * @static
3377
+ * @param {file.IVersionedGetXAttrReplyBody=} [properties] Properties to set
3378
+ * @returns {file.VersionedGetXAttrReplyBody} VersionedGetXAttrReplyBody instance
3379
+ */
3380
+ VersionedGetXAttrReplyBody.create = function create(properties) {
3381
+ return new VersionedGetXAttrReplyBody(properties);
3382
+ };
3383
+
3384
+ /**
3385
+ * Encodes the specified VersionedGetXAttrReplyBody message. Does not implicitly {@link file.VersionedGetXAttrReplyBody.verify|verify} messages.
3386
+ * @function encode
3387
+ * @memberof file.VersionedGetXAttrReplyBody
3388
+ * @static
3389
+ * @param {file.IVersionedGetXAttrReplyBody} message VersionedGetXAttrReplyBody message or plain object to encode
3390
+ * @param {$protobuf.Writer} [writer] Writer to encode to
3391
+ * @returns {$protobuf.Writer} Writer
3392
+ */
3393
+ VersionedGetXAttrReplyBody.encode = function encode(message, writer) {
3394
+ if (!writer)
3395
+ writer = $Writer.create();
3396
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
3397
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.version);
3398
+ if (message.str != null && Object.hasOwnProperty.call(message, "str"))
3399
+ $root.common.StringValue.encode(message.str, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
3400
+ if (message.json != null && Object.hasOwnProperty.call(message, "json"))
3401
+ $root.common.StringValue.encode(message.json, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
3402
+ if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
3403
+ $root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
3404
+ return writer;
3405
+ };
3406
+
3407
+ /**
3408
+ * Encodes the specified VersionedGetXAttrReplyBody message, length delimited. Does not implicitly {@link file.VersionedGetXAttrReplyBody.verify|verify} messages.
3409
+ * @function encodeDelimited
3410
+ * @memberof file.VersionedGetXAttrReplyBody
3411
+ * @static
3412
+ * @param {file.IVersionedGetXAttrReplyBody} message VersionedGetXAttrReplyBody message or plain object to encode
3413
+ * @param {$protobuf.Writer} [writer] Writer to encode to
3414
+ * @returns {$protobuf.Writer} Writer
3415
+ */
3416
+ VersionedGetXAttrReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
3417
+ return this.encode(message, writer).ldelim();
3418
+ };
3419
+
3420
+ /**
3421
+ * Decodes a VersionedGetXAttrReplyBody message from the specified reader or buffer.
3422
+ * @function decode
3423
+ * @memberof file.VersionedGetXAttrReplyBody
3424
+ * @static
3425
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3426
+ * @param {number} [length] Message length if known beforehand
3427
+ * @returns {file.VersionedGetXAttrReplyBody} VersionedGetXAttrReplyBody
3428
+ * @throws {Error} If the payload is not a reader or valid buffer
3429
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3430
+ */
3431
+ VersionedGetXAttrReplyBody.decode = function decode(reader, length) {
3432
+ if (!(reader instanceof $Reader))
3433
+ reader = $Reader.create(reader);
3434
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedGetXAttrReplyBody();
3435
+ while (reader.pos < end) {
3436
+ var tag = reader.uint32();
3437
+ switch (tag >>> 3) {
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
+ }
3454
+ default:
3455
+ reader.skipType(tag & 7);
3456
+ break;
3457
+ }
3458
+ }
3459
+ return message;
3460
+ };
3461
+
3462
+ /**
3463
+ * Decodes a VersionedGetXAttrReplyBody message from the specified reader or buffer, length delimited.
3464
+ * @function decodeDelimited
3465
+ * @memberof file.VersionedGetXAttrReplyBody
3466
+ * @static
3467
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3468
+ * @returns {file.VersionedGetXAttrReplyBody} VersionedGetXAttrReplyBody
3469
+ * @throws {Error} If the payload is not a reader or valid buffer
3470
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3471
+ */
3472
+ VersionedGetXAttrReplyBody.decodeDelimited = function decodeDelimited(reader) {
3473
+ if (!(reader instanceof $Reader))
3474
+ reader = new $Reader(reader);
3475
+ return this.decode(reader, reader.uint32());
3476
+ };
3477
+
3478
+ /**
3479
+ * Verifies a VersionedGetXAttrReplyBody message.
3480
+ * @function verify
3481
+ * @memberof file.VersionedGetXAttrReplyBody
3482
+ * @static
3483
+ * @param {Object.<string,*>} message Plain object to verify
3484
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
3485
+ */
3486
+ VersionedGetXAttrReplyBody.verify = function verify(message) {
3487
+ if (typeof message !== "object" || message === null)
3488
+ return "object expected";
3489
+ if (message.version != null && message.hasOwnProperty("version"))
3490
+ if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
3491
+ return "version: integer|Long expected";
3492
+ if (message.str != null && message.hasOwnProperty("str")) {
3493
+ var error = $root.common.StringValue.verify(message.str);
3494
+ if (error)
3495
+ return "str." + error;
3496
+ }
3497
+ if (message.json != null && message.hasOwnProperty("json")) {
3498
+ var error = $root.common.StringValue.verify(message.json);
3499
+ if (error)
3500
+ return "json." + error;
3501
+ }
3502
+ if (message.bytes != null && message.hasOwnProperty("bytes")) {
3503
+ var error = $root.common.BytesValue.verify(message.bytes);
3504
+ if (error)
3505
+ return "bytes." + error;
3506
+ }
3507
+ return null;
3508
+ };
3509
+
3510
+ /**
3511
+ * Creates a VersionedGetXAttrReplyBody message from a plain object. Also converts values to their respective internal types.
3512
+ * @function fromObject
3513
+ * @memberof file.VersionedGetXAttrReplyBody
3514
+ * @static
3515
+ * @param {Object.<string,*>} object Plain object
3516
+ * @returns {file.VersionedGetXAttrReplyBody} VersionedGetXAttrReplyBody
3517
+ */
3518
+ VersionedGetXAttrReplyBody.fromObject = function fromObject(object) {
3519
+ if (object instanceof $root.file.VersionedGetXAttrReplyBody)
3520
+ return object;
3521
+ var message = new $root.file.VersionedGetXAttrReplyBody();
3522
+ if (object.version != null)
3523
+ if ($util.Long)
3524
+ (message.version = $util.Long.fromValue(object.version)).unsigned = true;
3525
+ else if (typeof object.version === "string")
3526
+ message.version = parseInt(object.version, 10);
3527
+ else if (typeof object.version === "number")
3528
+ message.version = object.version;
3529
+ else if (typeof object.version === "object")
3530
+ message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
3531
+ if (object.str != null) {
3532
+ if (typeof object.str !== "object")
3533
+ throw TypeError(".file.VersionedGetXAttrReplyBody.str: object expected");
3534
+ message.str = $root.common.StringValue.fromObject(object.str);
3535
+ }
3536
+ if (object.json != null) {
3537
+ if (typeof object.json !== "object")
3538
+ throw TypeError(".file.VersionedGetXAttrReplyBody.json: object expected");
3539
+ message.json = $root.common.StringValue.fromObject(object.json);
3540
+ }
3541
+ if (object.bytes != null) {
3542
+ if (typeof object.bytes !== "object")
3543
+ throw TypeError(".file.VersionedGetXAttrReplyBody.bytes: object expected");
3544
+ message.bytes = $root.common.BytesValue.fromObject(object.bytes);
3545
+ }
3546
+ return message;
3547
+ };
3548
+
3549
+ /**
3550
+ * Creates a plain object from a VersionedGetXAttrReplyBody message. Also converts values to other types if specified.
3551
+ * @function toObject
3552
+ * @memberof file.VersionedGetXAttrReplyBody
3553
+ * @static
3554
+ * @param {file.VersionedGetXAttrReplyBody} message VersionedGetXAttrReplyBody
3555
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
3556
+ * @returns {Object.<string,*>} Plain object
3557
+ */
3558
+ VersionedGetXAttrReplyBody.toObject = function toObject(message, options) {
3559
+ if (!options)
3560
+ options = {};
3561
+ var object = {};
3562
+ if (options.defaults) {
3563
+ if ($util.Long) {
3564
+ var long = new $util.Long(0, 0, true);
3565
+ object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
3566
+ } else
3567
+ object.version = options.longs === String ? "0" : 0;
3568
+ object.str = null;
3569
+ object.json = null;
3570
+ object.bytes = null;
3571
+ }
3572
+ if (message.version != null && message.hasOwnProperty("version"))
3573
+ if (typeof message.version === "number")
3574
+ object.version = options.longs === String ? String(message.version) : message.version;
3575
+ else
3576
+ object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
3577
+ if (message.str != null && message.hasOwnProperty("str"))
3578
+ object.str = $root.common.StringValue.toObject(message.str, options);
3579
+ if (message.json != null && message.hasOwnProperty("json"))
3580
+ object.json = $root.common.StringValue.toObject(message.json, options);
3581
+ if (message.bytes != null && message.hasOwnProperty("bytes"))
2730
3582
  object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
2731
3583
  return object;
2732
3584
  };
@@ -2742,6 +3594,21 @@ $root.file = (function() {
2742
3594
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2743
3595
  };
2744
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
+
2745
3612
  return VersionedGetXAttrReplyBody;
2746
3613
  })();
2747
3614
 
@@ -2820,44 +3687,314 @@ $root.file = (function() {
2820
3687
  };
2821
3688
 
2822
3689
  /**
2823
- * Encodes the specified VersionedListXAttrsReplyBody message, length delimited. Does not implicitly {@link file.VersionedListXAttrsReplyBody.verify|verify} messages.
3690
+ * Encodes the specified VersionedListXAttrsReplyBody message, length delimited. Does not implicitly {@link file.VersionedListXAttrsReplyBody.verify|verify} messages.
3691
+ * @function encodeDelimited
3692
+ * @memberof file.VersionedListXAttrsReplyBody
3693
+ * @static
3694
+ * @param {file.IVersionedListXAttrsReplyBody} message VersionedListXAttrsReplyBody message or plain object to encode
3695
+ * @param {$protobuf.Writer} [writer] Writer to encode to
3696
+ * @returns {$protobuf.Writer} Writer
3697
+ */
3698
+ VersionedListXAttrsReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
3699
+ return this.encode(message, writer).ldelim();
3700
+ };
3701
+
3702
+ /**
3703
+ * Decodes a VersionedListXAttrsReplyBody message from the specified reader or buffer.
3704
+ * @function decode
3705
+ * @memberof file.VersionedListXAttrsReplyBody
3706
+ * @static
3707
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3708
+ * @param {number} [length] Message length if known beforehand
3709
+ * @returns {file.VersionedListXAttrsReplyBody} VersionedListXAttrsReplyBody
3710
+ * @throws {Error} If the payload is not a reader or valid buffer
3711
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3712
+ */
3713
+ VersionedListXAttrsReplyBody.decode = function decode(reader, length) {
3714
+ if (!(reader instanceof $Reader))
3715
+ reader = $Reader.create(reader);
3716
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedListXAttrsReplyBody();
3717
+ while (reader.pos < end) {
3718
+ var tag = reader.uint32();
3719
+ switch (tag >>> 3) {
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
+ }
3730
+ default:
3731
+ reader.skipType(tag & 7);
3732
+ break;
3733
+ }
3734
+ }
3735
+ return message;
3736
+ };
3737
+
3738
+ /**
3739
+ * Decodes a VersionedListXAttrsReplyBody message from the specified reader or buffer, length delimited.
3740
+ * @function decodeDelimited
3741
+ * @memberof file.VersionedListXAttrsReplyBody
3742
+ * @static
3743
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3744
+ * @returns {file.VersionedListXAttrsReplyBody} VersionedListXAttrsReplyBody
3745
+ * @throws {Error} If the payload is not a reader or valid buffer
3746
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3747
+ */
3748
+ VersionedListXAttrsReplyBody.decodeDelimited = function decodeDelimited(reader) {
3749
+ if (!(reader instanceof $Reader))
3750
+ reader = new $Reader(reader);
3751
+ return this.decode(reader, reader.uint32());
3752
+ };
3753
+
3754
+ /**
3755
+ * Verifies a VersionedListXAttrsReplyBody message.
3756
+ * @function verify
3757
+ * @memberof file.VersionedListXAttrsReplyBody
3758
+ * @static
3759
+ * @param {Object.<string,*>} message Plain object to verify
3760
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
3761
+ */
3762
+ VersionedListXAttrsReplyBody.verify = function verify(message) {
3763
+ if (typeof message !== "object" || message === null)
3764
+ return "object expected";
3765
+ if (message.version != null && message.hasOwnProperty("version"))
3766
+ if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
3767
+ return "version: integer|Long expected";
3768
+ if (message.xaNames != null && message.hasOwnProperty("xaNames")) {
3769
+ if (!Array.isArray(message.xaNames))
3770
+ return "xaNames: array expected";
3771
+ for (var i = 0; i < message.xaNames.length; ++i)
3772
+ if (!$util.isString(message.xaNames[i]))
3773
+ return "xaNames: string[] expected";
3774
+ }
3775
+ return null;
3776
+ };
3777
+
3778
+ /**
3779
+ * Creates a VersionedListXAttrsReplyBody message from a plain object. Also converts values to their respective internal types.
3780
+ * @function fromObject
3781
+ * @memberof file.VersionedListXAttrsReplyBody
3782
+ * @static
3783
+ * @param {Object.<string,*>} object Plain object
3784
+ * @returns {file.VersionedListXAttrsReplyBody} VersionedListXAttrsReplyBody
3785
+ */
3786
+ VersionedListXAttrsReplyBody.fromObject = function fromObject(object) {
3787
+ if (object instanceof $root.file.VersionedListXAttrsReplyBody)
3788
+ return object;
3789
+ var message = new $root.file.VersionedListXAttrsReplyBody();
3790
+ if (object.version != null)
3791
+ if ($util.Long)
3792
+ (message.version = $util.Long.fromValue(object.version)).unsigned = true;
3793
+ else if (typeof object.version === "string")
3794
+ message.version = parseInt(object.version, 10);
3795
+ else if (typeof object.version === "number")
3796
+ message.version = object.version;
3797
+ else if (typeof object.version === "object")
3798
+ message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
3799
+ if (object.xaNames) {
3800
+ if (!Array.isArray(object.xaNames))
3801
+ throw TypeError(".file.VersionedListXAttrsReplyBody.xaNames: array expected");
3802
+ message.xaNames = [];
3803
+ for (var i = 0; i < object.xaNames.length; ++i)
3804
+ message.xaNames[i] = String(object.xaNames[i]);
3805
+ }
3806
+ return message;
3807
+ };
3808
+
3809
+ /**
3810
+ * Creates a plain object from a VersionedListXAttrsReplyBody message. Also converts values to other types if specified.
3811
+ * @function toObject
3812
+ * @memberof file.VersionedListXAttrsReplyBody
3813
+ * @static
3814
+ * @param {file.VersionedListXAttrsReplyBody} message VersionedListXAttrsReplyBody
3815
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
3816
+ * @returns {Object.<string,*>} Plain object
3817
+ */
3818
+ VersionedListXAttrsReplyBody.toObject = function toObject(message, options) {
3819
+ if (!options)
3820
+ options = {};
3821
+ var object = {};
3822
+ if (options.arrays || options.defaults)
3823
+ object.xaNames = [];
3824
+ if (options.defaults)
3825
+ if ($util.Long) {
3826
+ var long = new $util.Long(0, 0, true);
3827
+ object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
3828
+ } else
3829
+ object.version = options.longs === String ? "0" : 0;
3830
+ if (message.version != null && message.hasOwnProperty("version"))
3831
+ if (typeof message.version === "number")
3832
+ object.version = options.longs === String ? String(message.version) : message.version;
3833
+ else
3834
+ object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
3835
+ if (message.xaNames && message.xaNames.length) {
3836
+ object.xaNames = [];
3837
+ for (var j = 0; j < message.xaNames.length; ++j)
3838
+ object.xaNames[j] = message.xaNames[j];
3839
+ }
3840
+ return object;
3841
+ };
3842
+
3843
+ /**
3844
+ * Converts this VersionedListXAttrsReplyBody to JSON.
3845
+ * @function toJSON
3846
+ * @memberof file.VersionedListXAttrsReplyBody
3847
+ * @instance
3848
+ * @returns {Object.<string,*>} JSON object
3849
+ */
3850
+ VersionedListXAttrsReplyBody.prototype.toJSON = function toJSON() {
3851
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3852
+ };
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
+
3869
+ return VersionedListXAttrsReplyBody;
3870
+ })();
3871
+
3872
+ file.VersionedReadBytesRequestBody = (function() {
3873
+
3874
+ /**
3875
+ * Properties of a VersionedReadBytesRequestBody.
3876
+ * @memberof file
3877
+ * @interface IVersionedReadBytesRequestBody
3878
+ * @property {common.IUInt64Value|null} [start] VersionedReadBytesRequestBody start
3879
+ * @property {common.IUInt64Value|null} [end] VersionedReadBytesRequestBody end
3880
+ * @property {file.IVersionedReadFlags|null} [flags] VersionedReadBytesRequestBody flags
3881
+ */
3882
+
3883
+ /**
3884
+ * Constructs a new VersionedReadBytesRequestBody.
3885
+ * @memberof file
3886
+ * @classdesc Represents a VersionedReadBytesRequestBody.
3887
+ * @implements IVersionedReadBytesRequestBody
3888
+ * @constructor
3889
+ * @param {file.IVersionedReadBytesRequestBody=} [properties] Properties to set
3890
+ */
3891
+ function VersionedReadBytesRequestBody(properties) {
3892
+ if (properties)
3893
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3894
+ if (properties[keys[i]] != null)
3895
+ this[keys[i]] = properties[keys[i]];
3896
+ }
3897
+
3898
+ /**
3899
+ * VersionedReadBytesRequestBody start.
3900
+ * @member {common.IUInt64Value|null|undefined} start
3901
+ * @memberof file.VersionedReadBytesRequestBody
3902
+ * @instance
3903
+ */
3904
+ VersionedReadBytesRequestBody.prototype.start = null;
3905
+
3906
+ /**
3907
+ * VersionedReadBytesRequestBody end.
3908
+ * @member {common.IUInt64Value|null|undefined} end
3909
+ * @memberof file.VersionedReadBytesRequestBody
3910
+ * @instance
3911
+ */
3912
+ VersionedReadBytesRequestBody.prototype.end = null;
3913
+
3914
+ /**
3915
+ * VersionedReadBytesRequestBody flags.
3916
+ * @member {file.IVersionedReadFlags|null|undefined} flags
3917
+ * @memberof file.VersionedReadBytesRequestBody
3918
+ * @instance
3919
+ */
3920
+ VersionedReadBytesRequestBody.prototype.flags = null;
3921
+
3922
+ /**
3923
+ * Creates a new VersionedReadBytesRequestBody instance using the specified properties.
3924
+ * @function create
3925
+ * @memberof file.VersionedReadBytesRequestBody
3926
+ * @static
3927
+ * @param {file.IVersionedReadBytesRequestBody=} [properties] Properties to set
3928
+ * @returns {file.VersionedReadBytesRequestBody} VersionedReadBytesRequestBody instance
3929
+ */
3930
+ VersionedReadBytesRequestBody.create = function create(properties) {
3931
+ return new VersionedReadBytesRequestBody(properties);
3932
+ };
3933
+
3934
+ /**
3935
+ * Encodes the specified VersionedReadBytesRequestBody message. Does not implicitly {@link file.VersionedReadBytesRequestBody.verify|verify} messages.
3936
+ * @function encode
3937
+ * @memberof file.VersionedReadBytesRequestBody
3938
+ * @static
3939
+ * @param {file.IVersionedReadBytesRequestBody} message VersionedReadBytesRequestBody message or plain object to encode
3940
+ * @param {$protobuf.Writer} [writer] Writer to encode to
3941
+ * @returns {$protobuf.Writer} Writer
3942
+ */
3943
+ VersionedReadBytesRequestBody.encode = function encode(message, writer) {
3944
+ if (!writer)
3945
+ writer = $Writer.create();
3946
+ if (message.start != null && Object.hasOwnProperty.call(message, "start"))
3947
+ $root.common.UInt64Value.encode(message.start, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
3948
+ if (message.end != null && Object.hasOwnProperty.call(message, "end"))
3949
+ $root.common.UInt64Value.encode(message.end, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
3950
+ if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
3951
+ $root.file.VersionedReadFlags.encode(message.flags, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
3952
+ return writer;
3953
+ };
3954
+
3955
+ /**
3956
+ * Encodes the specified VersionedReadBytesRequestBody message, length delimited. Does not implicitly {@link file.VersionedReadBytesRequestBody.verify|verify} messages.
2824
3957
  * @function encodeDelimited
2825
- * @memberof file.VersionedListXAttrsReplyBody
3958
+ * @memberof file.VersionedReadBytesRequestBody
2826
3959
  * @static
2827
- * @param {file.IVersionedListXAttrsReplyBody} message VersionedListXAttrsReplyBody message or plain object to encode
3960
+ * @param {file.IVersionedReadBytesRequestBody} message VersionedReadBytesRequestBody message or plain object to encode
2828
3961
  * @param {$protobuf.Writer} [writer] Writer to encode to
2829
3962
  * @returns {$protobuf.Writer} Writer
2830
3963
  */
2831
- VersionedListXAttrsReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
3964
+ VersionedReadBytesRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
2832
3965
  return this.encode(message, writer).ldelim();
2833
3966
  };
2834
3967
 
2835
3968
  /**
2836
- * Decodes a VersionedListXAttrsReplyBody message from the specified reader or buffer.
3969
+ * Decodes a VersionedReadBytesRequestBody message from the specified reader or buffer.
2837
3970
  * @function decode
2838
- * @memberof file.VersionedListXAttrsReplyBody
3971
+ * @memberof file.VersionedReadBytesRequestBody
2839
3972
  * @static
2840
3973
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2841
3974
  * @param {number} [length] Message length if known beforehand
2842
- * @returns {file.VersionedListXAttrsReplyBody} VersionedListXAttrsReplyBody
3975
+ * @returns {file.VersionedReadBytesRequestBody} VersionedReadBytesRequestBody
2843
3976
  * @throws {Error} If the payload is not a reader or valid buffer
2844
3977
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2845
3978
  */
2846
- VersionedListXAttrsReplyBody.decode = function decode(reader, length) {
3979
+ VersionedReadBytesRequestBody.decode = function decode(reader, length) {
2847
3980
  if (!(reader instanceof $Reader))
2848
3981
  reader = $Reader.create(reader);
2849
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedListXAttrsReplyBody();
3982
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedReadBytesRequestBody();
2850
3983
  while (reader.pos < end) {
2851
3984
  var tag = reader.uint32();
2852
3985
  switch (tag >>> 3) {
2853
- case 1:
2854
- message.version = reader.uint64();
2855
- break;
2856
- case 2:
2857
- if (!(message.xaNames && message.xaNames.length))
2858
- message.xaNames = [];
2859
- message.xaNames.push(reader.string());
2860
- 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
+ }
2861
3998
  default:
2862
3999
  reader.skipType(tag & 7);
2863
4000
  break;
@@ -2867,122 +4004,134 @@ $root.file = (function() {
2867
4004
  };
2868
4005
 
2869
4006
  /**
2870
- * Decodes a VersionedListXAttrsReplyBody message from the specified reader or buffer, length delimited.
4007
+ * Decodes a VersionedReadBytesRequestBody message from the specified reader or buffer, length delimited.
2871
4008
  * @function decodeDelimited
2872
- * @memberof file.VersionedListXAttrsReplyBody
4009
+ * @memberof file.VersionedReadBytesRequestBody
2873
4010
  * @static
2874
4011
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2875
- * @returns {file.VersionedListXAttrsReplyBody} VersionedListXAttrsReplyBody
4012
+ * @returns {file.VersionedReadBytesRequestBody} VersionedReadBytesRequestBody
2876
4013
  * @throws {Error} If the payload is not a reader or valid buffer
2877
4014
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2878
4015
  */
2879
- VersionedListXAttrsReplyBody.decodeDelimited = function decodeDelimited(reader) {
4016
+ VersionedReadBytesRequestBody.decodeDelimited = function decodeDelimited(reader) {
2880
4017
  if (!(reader instanceof $Reader))
2881
4018
  reader = new $Reader(reader);
2882
4019
  return this.decode(reader, reader.uint32());
2883
4020
  };
2884
4021
 
2885
4022
  /**
2886
- * Verifies a VersionedListXAttrsReplyBody message.
4023
+ * Verifies a VersionedReadBytesRequestBody message.
2887
4024
  * @function verify
2888
- * @memberof file.VersionedListXAttrsReplyBody
4025
+ * @memberof file.VersionedReadBytesRequestBody
2889
4026
  * @static
2890
4027
  * @param {Object.<string,*>} message Plain object to verify
2891
4028
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
2892
4029
  */
2893
- VersionedListXAttrsReplyBody.verify = function verify(message) {
4030
+ VersionedReadBytesRequestBody.verify = function verify(message) {
2894
4031
  if (typeof message !== "object" || message === null)
2895
4032
  return "object expected";
2896
- if (message.version != null && message.hasOwnProperty("version"))
2897
- if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
2898
- return "version: integer|Long expected";
2899
- if (message.xaNames != null && message.hasOwnProperty("xaNames")) {
2900
- if (!Array.isArray(message.xaNames))
2901
- return "xaNames: array expected";
2902
- for (var i = 0; i < message.xaNames.length; ++i)
2903
- if (!$util.isString(message.xaNames[i]))
2904
- return "xaNames: string[] expected";
4033
+ if (message.start != null && message.hasOwnProperty("start")) {
4034
+ var error = $root.common.UInt64Value.verify(message.start);
4035
+ if (error)
4036
+ return "start." + error;
4037
+ }
4038
+ if (message.end != null && message.hasOwnProperty("end")) {
4039
+ var error = $root.common.UInt64Value.verify(message.end);
4040
+ if (error)
4041
+ return "end." + error;
4042
+ }
4043
+ if (message.flags != null && message.hasOwnProperty("flags")) {
4044
+ var error = $root.file.VersionedReadFlags.verify(message.flags);
4045
+ if (error)
4046
+ return "flags." + error;
2905
4047
  }
2906
4048
  return null;
2907
4049
  };
2908
4050
 
2909
4051
  /**
2910
- * Creates a VersionedListXAttrsReplyBody message from a plain object. Also converts values to their respective internal types.
4052
+ * Creates a VersionedReadBytesRequestBody message from a plain object. Also converts values to their respective internal types.
2911
4053
  * @function fromObject
2912
- * @memberof file.VersionedListXAttrsReplyBody
4054
+ * @memberof file.VersionedReadBytesRequestBody
2913
4055
  * @static
2914
4056
  * @param {Object.<string,*>} object Plain object
2915
- * @returns {file.VersionedListXAttrsReplyBody} VersionedListXAttrsReplyBody
4057
+ * @returns {file.VersionedReadBytesRequestBody} VersionedReadBytesRequestBody
2916
4058
  */
2917
- VersionedListXAttrsReplyBody.fromObject = function fromObject(object) {
2918
- if (object instanceof $root.file.VersionedListXAttrsReplyBody)
4059
+ VersionedReadBytesRequestBody.fromObject = function fromObject(object) {
4060
+ if (object instanceof $root.file.VersionedReadBytesRequestBody)
2919
4061
  return object;
2920
- var message = new $root.file.VersionedListXAttrsReplyBody();
2921
- if (object.version != null)
2922
- if ($util.Long)
2923
- (message.version = $util.Long.fromValue(object.version)).unsigned = true;
2924
- else if (typeof object.version === "string")
2925
- message.version = parseInt(object.version, 10);
2926
- else if (typeof object.version === "number")
2927
- message.version = object.version;
2928
- else if (typeof object.version === "object")
2929
- message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
2930
- if (object.xaNames) {
2931
- if (!Array.isArray(object.xaNames))
2932
- throw TypeError(".file.VersionedListXAttrsReplyBody.xaNames: array expected");
2933
- message.xaNames = [];
2934
- for (var i = 0; i < object.xaNames.length; ++i)
2935
- message.xaNames[i] = String(object.xaNames[i]);
4062
+ var message = new $root.file.VersionedReadBytesRequestBody();
4063
+ if (object.start != null) {
4064
+ if (typeof object.start !== "object")
4065
+ throw TypeError(".file.VersionedReadBytesRequestBody.start: object expected");
4066
+ message.start = $root.common.UInt64Value.fromObject(object.start);
4067
+ }
4068
+ if (object.end != null) {
4069
+ if (typeof object.end !== "object")
4070
+ throw TypeError(".file.VersionedReadBytesRequestBody.end: object expected");
4071
+ message.end = $root.common.UInt64Value.fromObject(object.end);
4072
+ }
4073
+ if (object.flags != null) {
4074
+ if (typeof object.flags !== "object")
4075
+ throw TypeError(".file.VersionedReadBytesRequestBody.flags: object expected");
4076
+ message.flags = $root.file.VersionedReadFlags.fromObject(object.flags);
2936
4077
  }
2937
4078
  return message;
2938
4079
  };
2939
4080
 
2940
4081
  /**
2941
- * Creates a plain object from a VersionedListXAttrsReplyBody message. Also converts values to other types if specified.
4082
+ * Creates a plain object from a VersionedReadBytesRequestBody message. Also converts values to other types if specified.
2942
4083
  * @function toObject
2943
- * @memberof file.VersionedListXAttrsReplyBody
4084
+ * @memberof file.VersionedReadBytesRequestBody
2944
4085
  * @static
2945
- * @param {file.VersionedListXAttrsReplyBody} message VersionedListXAttrsReplyBody
4086
+ * @param {file.VersionedReadBytesRequestBody} message VersionedReadBytesRequestBody
2946
4087
  * @param {$protobuf.IConversionOptions} [options] Conversion options
2947
4088
  * @returns {Object.<string,*>} Plain object
2948
4089
  */
2949
- VersionedListXAttrsReplyBody.toObject = function toObject(message, options) {
4090
+ VersionedReadBytesRequestBody.toObject = function toObject(message, options) {
2950
4091
  if (!options)
2951
4092
  options = {};
2952
4093
  var object = {};
2953
- if (options.arrays || options.defaults)
2954
- object.xaNames = [];
2955
- if (options.defaults)
2956
- if ($util.Long) {
2957
- var long = new $util.Long(0, 0, true);
2958
- object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
2959
- } else
2960
- object.version = options.longs === String ? "0" : 0;
2961
- if (message.version != null && message.hasOwnProperty("version"))
2962
- if (typeof message.version === "number")
2963
- object.version = options.longs === String ? String(message.version) : message.version;
2964
- else
2965
- object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
2966
- if (message.xaNames && message.xaNames.length) {
2967
- object.xaNames = [];
2968
- for (var j = 0; j < message.xaNames.length; ++j)
2969
- object.xaNames[j] = message.xaNames[j];
4094
+ if (options.defaults) {
4095
+ object.start = null;
4096
+ object.end = null;
4097
+ object.flags = null;
2970
4098
  }
4099
+ if (message.start != null && message.hasOwnProperty("start"))
4100
+ object.start = $root.common.UInt64Value.toObject(message.start, options);
4101
+ if (message.end != null && message.hasOwnProperty("end"))
4102
+ object.end = $root.common.UInt64Value.toObject(message.end, options);
4103
+ if (message.flags != null && message.hasOwnProperty("flags"))
4104
+ object.flags = $root.file.VersionedReadFlags.toObject(message.flags, options);
2971
4105
  return object;
2972
4106
  };
2973
4107
 
2974
4108
  /**
2975
- * Converts this VersionedListXAttrsReplyBody to JSON.
4109
+ * Converts this VersionedReadBytesRequestBody to JSON.
2976
4110
  * @function toJSON
2977
- * @memberof file.VersionedListXAttrsReplyBody
4111
+ * @memberof file.VersionedReadBytesRequestBody
2978
4112
  * @instance
2979
4113
  * @returns {Object.<string,*>} JSON object
2980
4114
  */
2981
- VersionedListXAttrsReplyBody.prototype.toJSON = function toJSON() {
4115
+ VersionedReadBytesRequestBody.prototype.toJSON = function toJSON() {
2982
4116
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2983
4117
  };
2984
4118
 
2985
- return VersionedListXAttrsReplyBody;
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
+
4134
+ return VersionedReadBytesRequestBody;
2986
4135
  })();
2987
4136
 
2988
4137
  file.VersionedReadBytesReplyBody = (function() {
@@ -3088,12 +4237,14 @@ $root.file = (function() {
3088
4237
  while (reader.pos < end) {
3089
4238
  var tag = reader.uint32();
3090
4239
  switch (tag >>> 3) {
3091
- case 1:
3092
- message.version = reader.uint64();
3093
- break;
3094
- case 2:
3095
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
3096
- 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
+ }
3097
4248
  default:
3098
4249
  reader.skipType(tag & 7);
3099
4250
  break;
@@ -3211,6 +4362,21 @@ $root.file = (function() {
3211
4362
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3212
4363
  };
3213
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
+
3214
4380
  return VersionedReadBytesReplyBody;
3215
4381
  })();
3216
4382
 
@@ -3317,12 +4483,14 @@ $root.file = (function() {
3317
4483
  while (reader.pos < end) {
3318
4484
  var tag = reader.uint32();
3319
4485
  switch (tag >>> 3) {
3320
- case 1:
3321
- message.version = reader.uint64();
3322
- break;
3323
- case 2:
3324
- message.txt = reader.string();
3325
- break;
4486
+ case 1: {
4487
+ message.version = reader.uint64();
4488
+ break;
4489
+ }
4490
+ case 2: {
4491
+ message.txt = reader.string();
4492
+ break;
4493
+ }
3326
4494
  default:
3327
4495
  reader.skipType(tag & 7);
3328
4496
  break;
@@ -3435,6 +4603,21 @@ $root.file = (function() {
3435
4603
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3436
4604
  };
3437
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
+
3438
4621
  return VersionedReadTxtReplyBody;
3439
4622
  })();
3440
4623
 
@@ -3541,12 +4724,14 @@ $root.file = (function() {
3541
4724
  while (reader.pos < end) {
3542
4725
  var tag = reader.uint32();
3543
4726
  switch (tag >>> 3) {
3544
- case 1:
3545
- message.version = reader.uint64();
3546
- break;
3547
- case 2:
3548
- message.json = reader.string();
3549
- break;
4727
+ case 1: {
4728
+ message.version = reader.uint64();
4729
+ break;
4730
+ }
4731
+ case 2: {
4732
+ message.json = reader.string();
4733
+ break;
4734
+ }
3550
4735
  default:
3551
4736
  reader.skipType(tag & 7);
3552
4737
  break;
@@ -3659,6 +4844,21 @@ $root.file = (function() {
3659
4844
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3660
4845
  };
3661
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
+
3662
4862
  return VersionedReadJsonReplyBody;
3663
4863
  })();
3664
4864
 
@@ -3765,12 +4965,14 @@ $root.file = (function() {
3765
4965
  while (reader.pos < end) {
3766
4966
  var tag = reader.uint32();
3767
4967
  switch (tag >>> 3) {
3768
- case 1:
3769
- message.version = reader.uint64();
3770
- break;
3771
- case 2:
3772
- message.src = $root.common.ObjectReference.decode(reader, reader.uint32());
3773
- 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
+ }
3774
4976
  default:
3775
4977
  reader.skipType(tag & 7);
3776
4978
  break;
@@ -3888,6 +5090,21 @@ $root.file = (function() {
3888
5090
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3889
5091
  };
3890
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
+
3891
5108
  return VersionedGetByteSourceReplyBody;
3892
5109
  })();
3893
5110
 
@@ -3999,19 +5216,21 @@ $root.file = (function() {
3999
5216
  while (reader.pos < end) {
4000
5217
  var tag = reader.uint32();
4001
5218
  switch (tag >>> 3) {
4002
- case 1:
4003
- message.current = $root.common.UInt64Value.decode(reader, reader.uint32());
4004
- break;
4005
- case 2:
4006
- if (!(message.archived && message.archived.length))
4007
- message.archived = [];
4008
- if ((tag & 7) === 2) {
4009
- var end2 = reader.uint32() + reader.pos;
4010
- 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
4011
5231
  message.archived.push(reader.uint64());
4012
- } else
4013
- message.archived.push(reader.uint64());
4014
- break;
5232
+ break;
5233
+ }
4015
5234
  default:
4016
5235
  reader.skipType(tag & 7);
4017
5236
  break;
@@ -4137,6 +5356,21 @@ $root.file = (function() {
4137
5356
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4138
5357
  };
4139
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
+
4140
5374
  return ListVersionsReplyBody;
4141
5375
  })();
4142
5376
 
@@ -4232,9 +5466,10 @@ $root.file = (function() {
4232
5466
  while (reader.pos < end) {
4233
5467
  var tag = reader.uint32();
4234
5468
  switch (tag >>> 3) {
4235
- case 1:
4236
- message.changes = $root.file.XAttrsChanges.decode(reader, reader.uint32());
4237
- break;
5469
+ case 1: {
5470
+ message.changes = $root.file.XAttrsChanges.decode(reader, reader.uint32());
5471
+ break;
5472
+ }
4238
5473
  default:
4239
5474
  reader.skipType(tag & 7);
4240
5475
  break;
@@ -4329,6 +5564,21 @@ $root.file = (function() {
4329
5564
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4330
5565
  };
4331
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
+
4332
5582
  return UpdateXAttrsRequestBody;
4333
5583
  })();
4334
5584
 
@@ -4457,18 +5707,22 @@ $root.file = (function() {
4457
5707
  while (reader.pos < end) {
4458
5708
  var tag = reader.uint32();
4459
5709
  switch (tag >>> 3) {
4460
- case 1:
4461
- message.xaName = reader.string();
4462
- break;
4463
- case 2:
4464
- message.str = $root.common.StringValue.decode(reader, reader.uint32());
4465
- break;
4466
- case 3:
4467
- message.json = $root.common.StringValue.decode(reader, reader.uint32());
4468
- break;
4469
- case 4:
4470
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
4471
- 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
+ }
4472
5726
  default:
4473
5727
  reader.skipType(tag & 7);
4474
5728
  break;
@@ -4598,6 +5852,21 @@ $root.file = (function() {
4598
5852
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4599
5853
  };
4600
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
+
4601
5870
  return NameAndXAttrValue;
4602
5871
  })();
4603
5872
 
@@ -4708,16 +5977,18 @@ $root.file = (function() {
4708
5977
  while (reader.pos < end) {
4709
5978
  var tag = reader.uint32();
4710
5979
  switch (tag >>> 3) {
4711
- case 1:
4712
- if (!(message.set && message.set.length))
4713
- message.set = [];
4714
- message.set.push($root.file.NameAndXAttrValue.decode(reader, reader.uint32()));
4715
- break;
4716
- case 2:
4717
- if (!(message.remove && message.remove.length))
4718
- message.remove = [];
4719
- message.remove.push(reader.string());
4720
- 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
+ }
4721
5992
  default:
4722
5993
  reader.skipType(tag & 7);
4723
5994
  break;
@@ -4845,6 +6116,21 @@ $root.file = (function() {
4845
6116
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4846
6117
  };
4847
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
+
4848
6134
  return XAttrsChanges;
4849
6135
  })();
4850
6136
 
@@ -4940,9 +6226,10 @@ $root.file = (function() {
4940
6226
  while (reader.pos < end) {
4941
6227
  var tag = reader.uint32();
4942
6228
  switch (tag >>> 3) {
4943
- case 1:
4944
- message.bytes = reader.bytes();
4945
- break;
6229
+ case 1: {
6230
+ message.bytes = reader.bytes();
6231
+ break;
6232
+ }
4946
6233
  default:
4947
6234
  reader.skipType(tag & 7);
4948
6235
  break;
@@ -4999,7 +6286,7 @@ $root.file = (function() {
4999
6286
  if (object.bytes != null)
5000
6287
  if (typeof object.bytes === "string")
5001
6288
  $util.base64.decode(object.bytes, message.bytes = $util.newBuffer($util.base64.length(object.bytes)), 0);
5002
- else if (object.bytes.length)
6289
+ else if (object.bytes.length >= 0)
5003
6290
  message.bytes = object.bytes;
5004
6291
  return message;
5005
6292
  };
@@ -5041,6 +6328,21 @@ $root.file = (function() {
5041
6328
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5042
6329
  };
5043
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
+
5044
6346
  return WriteBytesRequestBody;
5045
6347
  })();
5046
6348
 
@@ -5136,9 +6438,10 @@ $root.file = (function() {
5136
6438
  while (reader.pos < end) {
5137
6439
  var tag = reader.uint32();
5138
6440
  switch (tag >>> 3) {
5139
- case 1:
5140
- message.txt = reader.string();
5141
- break;
6441
+ case 1: {
6442
+ message.txt = reader.string();
6443
+ break;
6444
+ }
5142
6445
  default:
5143
6446
  reader.skipType(tag & 7);
5144
6447
  break;
@@ -5228,6 +6531,21 @@ $root.file = (function() {
5228
6531
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5229
6532
  };
5230
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
+
5231
6549
  return WriteTxtRequestBody;
5232
6550
  })();
5233
6551
 
@@ -5323,9 +6641,10 @@ $root.file = (function() {
5323
6641
  while (reader.pos < end) {
5324
6642
  var tag = reader.uint32();
5325
6643
  switch (tag >>> 3) {
5326
- case 1:
5327
- message.json = reader.string();
5328
- break;
6644
+ case 1: {
6645
+ message.json = reader.string();
6646
+ break;
6647
+ }
5329
6648
  default:
5330
6649
  reader.skipType(tag & 7);
5331
6650
  break;
@@ -5415,6 +6734,21 @@ $root.file = (function() {
5415
6734
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5416
6735
  };
5417
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
+
5418
6752
  return WriteJsonRequestBody;
5419
6753
  })();
5420
6754
 
@@ -5510,9 +6844,10 @@ $root.file = (function() {
5510
6844
  while (reader.pos < end) {
5511
6845
  var tag = reader.uint32();
5512
6846
  switch (tag >>> 3) {
5513
- case 1:
5514
- message.truncateFile = $root.common.BooleanValue.decode(reader, reader.uint32());
5515
- break;
6847
+ case 1: {
6848
+ message.truncateFile = $root.common.BooleanValue.decode(reader, reader.uint32());
6849
+ break;
6850
+ }
5516
6851
  default:
5517
6852
  reader.skipType(tag & 7);
5518
6853
  break;
@@ -5607,6 +6942,21 @@ $root.file = (function() {
5607
6942
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5608
6943
  };
5609
6944
 
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
+
5610
6960
  return GetByteSinkRequestBody;
5611
6961
  })();
5612
6962
 
@@ -5702,9 +7052,10 @@ $root.file = (function() {
5702
7052
  while (reader.pos < end) {
5703
7053
  var tag = reader.uint32();
5704
7054
  switch (tag >>> 3) {
5705
- case 1:
5706
- message.file = $root.common.ObjectReference.decode(reader, reader.uint32());
5707
- break;
7055
+ case 1: {
7056
+ message.file = $root.common.ObjectReference.decode(reader, reader.uint32());
7057
+ break;
7058
+ }
5708
7059
  default:
5709
7060
  reader.skipType(tag & 7);
5710
7061
  break;
@@ -5799,6 +7150,21 @@ $root.file = (function() {
5799
7150
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5800
7151
  };
5801
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
+
5802
7168
  return CopyRequestBody;
5803
7169
  })();
5804
7170
 
@@ -5905,12 +7271,14 @@ $root.file = (function() {
5905
7271
  while (reader.pos < end) {
5906
7272
  var tag = reader.uint32();
5907
7273
  switch (tag >>> 3) {
5908
- case 1:
5909
- message.truncateFile = $root.common.BooleanValue.decode(reader, reader.uint32());
5910
- break;
5911
- case 2:
5912
- message.currentVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
5913
- 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
+ }
5914
7282
  default:
5915
7283
  reader.skipType(tag & 7);
5916
7284
  break;
@@ -6019,6 +7387,21 @@ $root.file = (function() {
6019
7387
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6020
7388
  };
6021
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
+
6022
7405
  return VersionedGetByteSinkRequestBody;
6023
7406
  })();
6024
7407
 
@@ -6125,12 +7508,14 @@ $root.file = (function() {
6125
7508
  while (reader.pos < end) {
6126
7509
  var tag = reader.uint32();
6127
7510
  switch (tag >>> 3) {
6128
- case 1:
6129
- message.version = reader.uint64();
6130
- break;
6131
- case 2:
6132
- message.sink = $root.common.ObjectReference.decode(reader, reader.uint32());
6133
- 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
+ }
6134
7519
  default:
6135
7520
  reader.skipType(tag & 7);
6136
7521
  break;
@@ -6248,6 +7633,21 @@ $root.file = (function() {
6248
7633
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6249
7634
  };
6250
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
+
6251
7651
  return VersionedGetByteSinkReplyBody;
6252
7652
  })();
6253
7653
 
@@ -6343,9 +7743,10 @@ $root.file = (function() {
6343
7743
  while (reader.pos < end) {
6344
7744
  var tag = reader.uint32();
6345
7745
  switch (tag >>> 3) {
6346
- case 1:
6347
- message.version = $root.common.UInt64Value.decode(reader, reader.uint32());
6348
- break;
7746
+ case 1: {
7747
+ message.version = $root.common.UInt64Value.decode(reader, reader.uint32());
7748
+ break;
7749
+ }
6349
7750
  default:
6350
7751
  reader.skipType(tag & 7);
6351
7752
  break;
@@ -6440,6 +7841,21 @@ $root.file = (function() {
6440
7841
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6441
7842
  };
6442
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
+
6443
7859
  return ArchiveCurrentRequestBody;
6444
7860
  })();
6445
7861
 
@@ -6535,9 +7951,10 @@ $root.file = (function() {
6535
7951
  while (reader.pos < end) {
6536
7952
  var tag = reader.uint32();
6537
7953
  switch (tag >>> 3) {
6538
- case 1:
6539
- message.version = reader.uint64();
6540
- break;
7954
+ case 1: {
7955
+ message.version = reader.uint64();
7956
+ break;
7957
+ }
6541
7958
  default:
6542
7959
  reader.skipType(tag & 7);
6543
7960
  break;
@@ -6641,6 +8058,21 @@ $root.file = (function() {
6641
8058
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6642
8059
  };
6643
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
+
6644
8076
  return FileSyncIsOnDiskRequestBody;
6645
8077
  })();
6646
8078
 
@@ -6736,9 +8168,10 @@ $root.file = (function() {
6736
8168
  while (reader.pos < end) {
6737
8169
  var tag = reader.uint32();
6738
8170
  switch (tag >>> 3) {
6739
- case 1:
6740
- message.status = reader.string();
6741
- break;
8171
+ case 1: {
8172
+ message.status = reader.string();
8173
+ break;
8174
+ }
6742
8175
  default:
6743
8176
  reader.skipType(tag & 7);
6744
8177
  break;
@@ -6828,6 +8261,21 @@ $root.file = (function() {
6828
8261
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6829
8262
  };
6830
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
+
6831
8279
  return FileSyncIsOnDiskReplyBody;
6832
8280
  })();
6833
8281
 
@@ -6923,9 +8371,10 @@ $root.file = (function() {
6923
8371
  while (reader.pos < end) {
6924
8372
  var tag = reader.uint32();
6925
8373
  switch (tag >>> 3) {
6926
- case 1:
6927
- message.version = reader.uint64();
6928
- break;
8374
+ case 1: {
8375
+ message.version = reader.uint64();
8376
+ break;
8377
+ }
6929
8378
  default:
6930
8379
  reader.skipType(tag & 7);
6931
8380
  break;
@@ -7029,6 +8478,21 @@ $root.file = (function() {
7029
8478
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7030
8479
  };
7031
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
+
7032
8496
  return FileSyncDownloadRequestBody;
7033
8497
  })();
7034
8498
 
@@ -7124,9 +8588,10 @@ $root.file = (function() {
7124
8588
  while (reader.pos < end) {
7125
8589
  var tag = reader.uint32();
7126
8590
  switch (tag >>> 3) {
7127
- case 1:
7128
- message.opts = $root.file.OptionsToAdopteRemote.decode(reader, reader.uint32());
7129
- break;
8591
+ case 1: {
8592
+ message.opts = $root.file.OptionsToAdopteRemote.decode(reader, reader.uint32());
8593
+ break;
8594
+ }
7130
8595
  default:
7131
8596
  reader.skipType(tag & 7);
7132
8597
  break;
@@ -7221,6 +8686,21 @@ $root.file = (function() {
7221
8686
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7222
8687
  };
7223
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
+
7224
8704
  return AdoptRemoteRequestBody;
7225
8705
  })();
7226
8706
 
@@ -7327,12 +8807,14 @@ $root.file = (function() {
7327
8807
  while (reader.pos < end) {
7328
8808
  var tag = reader.uint32();
7329
8809
  switch (tag >>> 3) {
7330
- case 1:
7331
- message.dropLocalVer = $root.common.BooleanValue.decode(reader, reader.uint32());
7332
- break;
7333
- case 2:
7334
- message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
7335
- 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
+ }
7336
8818
  default:
7337
8819
  reader.skipType(tag & 7);
7338
8820
  break;
@@ -7441,6 +8923,21 @@ $root.file = (function() {
7441
8923
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7442
8924
  };
7443
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
+
7444
8941
  return OptionsToAdopteRemote;
7445
8942
  })();
7446
8943
 
@@ -7536,9 +9033,10 @@ $root.file = (function() {
7536
9033
  while (reader.pos < end) {
7537
9034
  var tag = reader.uint32();
7538
9035
  switch (tag >>> 3) {
7539
- case 1:
7540
- message.opts = $root.file.OptionsToUploadLocal.decode(reader, reader.uint32());
7541
- break;
9036
+ case 1: {
9037
+ message.opts = $root.file.OptionsToUploadLocal.decode(reader, reader.uint32());
9038
+ break;
9039
+ }
7542
9040
  default:
7543
9041
  reader.skipType(tag & 7);
7544
9042
  break;
@@ -7633,9 +9131,232 @@ $root.file = (function() {
7633
9131
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7634
9132
  };
7635
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
+
7636
9149
  return FileSyncUploadRequestBody;
7637
9150
  })();
7638
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
+
7639
9360
  file.OptionsToUploadLocal = (function() {
7640
9361
 
7641
9362
  /**
@@ -7739,12 +9460,14 @@ $root.file = (function() {
7739
9460
  while (reader.pos < end) {
7740
9461
  var tag = reader.uint32();
7741
9462
  switch (tag >>> 3) {
7742
- case 1:
7743
- message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
7744
- break;
7745
- case 2:
7746
- message.uploadVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
7747
- 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
+ }
7748
9471
  default:
7749
9472
  reader.skipType(tag & 7);
7750
9473
  break;
@@ -7853,6 +9576,21 @@ $root.file = (function() {
7853
9576
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7854
9577
  };
7855
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
+
7856
9594
  return OptionsToUploadLocal;
7857
9595
  })();
7858
9596
 
@@ -7973,14 +9711,16 @@ $root.common = (function() {
7973
9711
  while (reader.pos < end) {
7974
9712
  var tag = reader.uint32();
7975
9713
  switch (tag >>> 3) {
7976
- case 1:
7977
- message.objType = reader.string();
7978
- break;
7979
- case 2:
7980
- if (!(message.path && message.path.length))
7981
- message.path = [];
7982
- message.path.push(reader.string());
7983
- 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
+ }
7984
9724
  default:
7985
9725
  reader.skipType(tag & 7);
7986
9726
  break;
@@ -8091,6 +9831,21 @@ $root.common = (function() {
8091
9831
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8092
9832
  };
8093
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
+
8094
9849
  return ObjectReference;
8095
9850
  })();
8096
9851
 
@@ -8186,9 +9941,10 @@ $root.common = (function() {
8186
9941
  while (reader.pos < end) {
8187
9942
  var tag = reader.uint32();
8188
9943
  switch (tag >>> 3) {
8189
- case 1:
8190
- message.value = reader.bool();
8191
- break;
9944
+ case 1: {
9945
+ message.value = reader.bool();
9946
+ break;
9947
+ }
8192
9948
  default:
8193
9949
  reader.skipType(tag & 7);
8194
9950
  break;
@@ -8278,6 +10034,21 @@ $root.common = (function() {
8278
10034
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8279
10035
  };
8280
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
+
8281
10052
  return BooleanValue;
8282
10053
  })();
8283
10054
 
@@ -8375,11 +10146,12 @@ $root.common = (function() {
8375
10146
  while (reader.pos < end) {
8376
10147
  var tag = reader.uint32();
8377
10148
  switch (tag >>> 3) {
8378
- case 1:
8379
- if (!(message.values && message.values.length))
8380
- message.values = [];
8381
- message.values.push(reader.string());
8382
- break;
10149
+ case 1: {
10150
+ if (!(message.values && message.values.length))
10151
+ message.values = [];
10152
+ message.values.push(reader.string());
10153
+ break;
10154
+ }
8383
10155
  default:
8384
10156
  reader.skipType(tag & 7);
8385
10157
  break;
@@ -8481,6 +10253,21 @@ $root.common = (function() {
8481
10253
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8482
10254
  };
8483
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
+
8484
10271
  return StringArrayValue;
8485
10272
  })();
8486
10273
 
@@ -8576,9 +10363,10 @@ $root.common = (function() {
8576
10363
  while (reader.pos < end) {
8577
10364
  var tag = reader.uint32();
8578
10365
  switch (tag >>> 3) {
8579
- case 1:
8580
- message.value = reader.uint64();
8581
- break;
10366
+ case 1: {
10367
+ message.value = reader.uint64();
10368
+ break;
10369
+ }
8582
10370
  default:
8583
10371
  reader.skipType(tag & 7);
8584
10372
  break;
@@ -8682,6 +10470,21 @@ $root.common = (function() {
8682
10470
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8683
10471
  };
8684
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
+
8685
10488
  return UInt64Value;
8686
10489
  })();
8687
10490
 
@@ -8777,9 +10580,10 @@ $root.common = (function() {
8777
10580
  while (reader.pos < end) {
8778
10581
  var tag = reader.uint32();
8779
10582
  switch (tag >>> 3) {
8780
- case 1:
8781
- message.value = reader.uint32();
8782
- break;
10583
+ case 1: {
10584
+ message.value = reader.uint32();
10585
+ break;
10586
+ }
8783
10587
  default:
8784
10588
  reader.skipType(tag & 7);
8785
10589
  break;
@@ -8869,6 +10673,21 @@ $root.common = (function() {
8869
10673
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8870
10674
  };
8871
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
+
8872
10691
  return UInt32Value;
8873
10692
  })();
8874
10693
 
@@ -8964,9 +10783,10 @@ $root.common = (function() {
8964
10783
  while (reader.pos < end) {
8965
10784
  var tag = reader.uint32();
8966
10785
  switch (tag >>> 3) {
8967
- case 1:
8968
- message.value = reader.string();
8969
- break;
10786
+ case 1: {
10787
+ message.value = reader.string();
10788
+ break;
10789
+ }
8970
10790
  default:
8971
10791
  reader.skipType(tag & 7);
8972
10792
  break;
@@ -9056,6 +10876,21 @@ $root.common = (function() {
9056
10876
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9057
10877
  };
9058
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
+
9059
10894
  return StringValue;
9060
10895
  })();
9061
10896
 
@@ -9151,9 +10986,10 @@ $root.common = (function() {
9151
10986
  while (reader.pos < end) {
9152
10987
  var tag = reader.uint32();
9153
10988
  switch (tag >>> 3) {
9154
- case 1:
9155
- message.value = reader.bytes();
9156
- break;
10989
+ case 1: {
10990
+ message.value = reader.bytes();
10991
+ break;
10992
+ }
9157
10993
  default:
9158
10994
  reader.skipType(tag & 7);
9159
10995
  break;
@@ -9210,7 +11046,7 @@ $root.common = (function() {
9210
11046
  if (object.value != null)
9211
11047
  if (typeof object.value === "string")
9212
11048
  $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
9213
- else if (object.value.length)
11049
+ else if (object.value.length >= 0)
9214
11050
  message.value = object.value;
9215
11051
  return message;
9216
11052
  };
@@ -9252,6 +11088,21 @@ $root.common = (function() {
9252
11088
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9253
11089
  };
9254
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
+
9255
11106
  return BytesValue;
9256
11107
  })();
9257
11108
 
@@ -9358,12 +11209,14 @@ $root.common = (function() {
9358
11209
  while (reader.pos < end) {
9359
11210
  var tag = reader.uint32();
9360
11211
  switch (tag >>> 3) {
9361
- case 1:
9362
- message.runtimeExcJson = reader.string();
9363
- break;
9364
- case 2:
9365
- message.err = reader.string();
9366
- break;
11212
+ case 1: {
11213
+ message.runtimeExcJson = reader.string();
11214
+ break;
11215
+ }
11216
+ case 2: {
11217
+ message.err = reader.string();
11218
+ break;
11219
+ }
9367
11220
  default:
9368
11221
  reader.skipType(tag & 7);
9369
11222
  break;
@@ -9462,6 +11315,21 @@ $root.common = (function() {
9462
11315
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9463
11316
  };
9464
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
+
9465
11333
  return ErrorValue;
9466
11334
  })();
9467
11335
 
@@ -9579,15 +11447,18 @@ $root.common = (function() {
9579
11447
  while (reader.pos < end) {
9580
11448
  var tag = reader.uint32();
9581
11449
  switch (tag >>> 3) {
9582
- case 1:
9583
- message.type = reader.string();
9584
- break;
9585
- case 2:
9586
- message.json = $root.common.StringValue.decode(reader, reader.uint32());
9587
- break;
9588
- case 3:
9589
- message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
9590
- 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
+ }
9591
11462
  default:
9592
11463
  reader.skipType(tag & 7);
9593
11464
  break;
@@ -9704,6 +11575,21 @@ $root.common = (function() {
9704
11575
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9705
11576
  };
9706
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
+
9707
11593
  return AnyValue;
9708
11594
  })();
9709
11595