@lockerpm/desktop-service 2.1.2 → 2.1.3

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 (64) hide show
  1. package/lib/cjs/abstractions/crypto.service.js +18 -0
  2. package/lib/cjs/abstractions/errors.js +11 -13
  3. package/lib/cjs/index.js +109 -127
  4. package/lib/cjs/proto/google/api/http.js +12 -21
  5. package/lib/cjs/proto/google/protobuf/descriptor.js +60 -103
  6. package/lib/cjs/proto/locker-service-grpc.js +120 -143
  7. package/lib/cjs/services/api.service.js +180 -183
  8. package/lib/cjs/services/cache.service.js +11 -9
  9. package/lib/cjs/services/core-crypto.service.js +127 -158
  10. package/lib/cjs/services/crypto.service.js +40 -58
  11. package/lib/cjs/services/event.service.js +10 -8
  12. package/lib/cjs/services/fido.service.js +40 -37
  13. package/lib/cjs/services/grpc.service.js +87 -97
  14. package/lib/cjs/services/log.service.js +1 -0
  15. package/lib/cjs/services/pairing.service.js +70 -85
  16. package/lib/cjs/services/socket.service.js +152 -167
  17. package/lib/cjs/services/user.service.js +52 -70
  18. package/lib/cjs/types/index.d.ts +1 -4
  19. package/lib/cjs/types/index.d.ts.map +1 -1
  20. package/lib/cjs/types/services/api.service.d.ts +1 -2
  21. package/lib/cjs/types/services/api.service.d.ts.map +1 -1
  22. package/lib/cjs/types/services/cache.service.d.ts +1 -2
  23. package/lib/cjs/types/services/cache.service.d.ts.map +1 -1
  24. package/lib/cjs/types/services/event.service.d.ts +1 -2
  25. package/lib/cjs/types/services/event.service.d.ts.map +1 -1
  26. package/lib/cjs/types/services/fido.service.d.ts +1 -3
  27. package/lib/cjs/types/services/fido.service.d.ts.map +1 -1
  28. package/lib/cjs/types/services/grpc.service.d.ts +1 -12
  29. package/lib/cjs/types/services/grpc.service.d.ts.map +1 -1
  30. package/lib/cjs/types/services/pairing.service.d.ts +1 -9
  31. package/lib/cjs/types/services/pairing.service.d.ts.map +1 -1
  32. package/lib/cjs/types/services/socket.service.d.ts +1 -12
  33. package/lib/cjs/types/services/socket.service.d.ts.map +1 -1
  34. package/lib/cjs/types/services/user.service.d.ts +1 -9
  35. package/lib/cjs/types/services/user.service.d.ts.map +1 -1
  36. package/lib/cjs/usecases/fido.js +240 -270
  37. package/lib/esm/index.mjs +28 -28
  38. package/lib/esm/services/api.service.js +11 -11
  39. package/lib/esm/services/cache.service.js +10 -10
  40. package/lib/esm/services/event.service.js +10 -10
  41. package/lib/esm/services/fido.service.js +33 -33
  42. package/lib/esm/services/grpc.service.js +34 -34
  43. package/lib/esm/services/pairing.service.js +37 -37
  44. package/lib/esm/services/socket.service.js +70 -70
  45. package/lib/esm/services/user.service.js +30 -30
  46. package/lib/esm/types/index.d.ts +1 -4
  47. package/lib/esm/types/index.d.ts.map +1 -1
  48. package/lib/esm/types/services/api.service.d.ts +1 -2
  49. package/lib/esm/types/services/api.service.d.ts.map +1 -1
  50. package/lib/esm/types/services/cache.service.d.ts +1 -2
  51. package/lib/esm/types/services/cache.service.d.ts.map +1 -1
  52. package/lib/esm/types/services/event.service.d.ts +1 -2
  53. package/lib/esm/types/services/event.service.d.ts.map +1 -1
  54. package/lib/esm/types/services/fido.service.d.ts +1 -3
  55. package/lib/esm/types/services/fido.service.d.ts.map +1 -1
  56. package/lib/esm/types/services/grpc.service.d.ts +1 -12
  57. package/lib/esm/types/services/grpc.service.d.ts.map +1 -1
  58. package/lib/esm/types/services/pairing.service.d.ts +1 -9
  59. package/lib/esm/types/services/pairing.service.d.ts.map +1 -1
  60. package/lib/esm/types/services/socket.service.d.ts +1 -12
  61. package/lib/esm/types/services/socket.service.d.ts.map +1 -1
  62. package/lib/esm/types/services/user.service.d.ts +1 -9
  63. package/lib/esm/types/services/user.service.d.ts.map +1 -1
  64. package/package.json +4 -4
@@ -22,11 +22,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
26
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
27
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
28
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
29
- };
30
25
  Object.defineProperty(exports, "__esModule", { value: true });
31
26
  exports.google = void 0;
32
27
  // @ts-nocheck
@@ -40,12 +35,11 @@ var google;
40
35
  (function (google) {
41
36
  var protobuf;
42
37
  (function (protobuf) {
43
- var _FileDescriptorSet_one_of_decls, _FileDescriptorProto_one_of_decls, _DescriptorProto_one_of_decls, _ExtensionRangeOptions_one_of_decls, _FieldDescriptorProto_one_of_decls, _OneofDescriptorProto_one_of_decls, _EnumDescriptorProto_one_of_decls, _EnumValueDescriptorProto_one_of_decls, _ServiceDescriptorProto_one_of_decls, _MethodDescriptorProto_one_of_decls, _FileOptions_one_of_decls, _MessageOptions_one_of_decls, _FieldOptions_one_of_decls, _OneofOptions_one_of_decls, _EnumOptions_one_of_decls, _EnumValueOptions_one_of_decls, _ServiceOptions_one_of_decls, _MethodOptions_one_of_decls, _UninterpretedOption_one_of_decls, _FeatureSet_one_of_decls, _SourceCodeInfo_one_of_decls, _GeneratedCodeInfo_one_of_decls;
44
38
  class FileDescriptorSet extends pb_1.Message {
39
+ #one_of_decls = [];
45
40
  constructor(data) {
46
41
  super();
47
- _FileDescriptorSet_one_of_decls.set(this, []);
48
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], __classPrivateFieldGet(this, _FileDescriptorSet_one_of_decls, "f"));
42
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
49
43
  if (!Array.isArray(data) && typeof data == 'object') {
50
44
  this.file = data.file;
51
45
  }
@@ -98,13 +92,12 @@ var google;
98
92
  return FileDescriptorSet.deserialize(bytes);
99
93
  }
100
94
  }
101
- _FileDescriptorSet_one_of_decls = new WeakMap();
102
95
  protobuf.FileDescriptorSet = FileDescriptorSet;
103
96
  class FileDescriptorProto extends pb_1.Message {
97
+ #one_of_decls = [];
104
98
  constructor(data) {
105
99
  super();
106
- _FileDescriptorProto_one_of_decls.set(this, []);
107
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 10, 11, 4, 5, 6, 7], __classPrivateFieldGet(this, _FileDescriptorProto_one_of_decls, "f"));
100
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 10, 11, 4, 5, 6, 7], this.#one_of_decls);
108
101
  if (!Array.isArray(data) && typeof data == 'object') {
109
102
  if ('name' in data && data.name != undefined) {
110
103
  this.name = data.name;
@@ -386,13 +379,12 @@ var google;
386
379
  return FileDescriptorProto.deserialize(bytes);
387
380
  }
388
381
  }
389
- _FileDescriptorProto_one_of_decls = new WeakMap();
390
382
  protobuf.FileDescriptorProto = FileDescriptorProto;
391
383
  class DescriptorProto extends pb_1.Message {
384
+ #one_of_decls = [];
392
385
  constructor(data) {
393
386
  super();
394
- _DescriptorProto_one_of_decls.set(this, []);
395
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 6, 3, 4, 5, 8, 9, 10], __classPrivateFieldGet(this, _DescriptorProto_one_of_decls, "f"));
387
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 6, 3, 4, 5, 8, 9, 10], this.#one_of_decls);
396
388
  if (!Array.isArray(data) && typeof data == 'object') {
397
389
  if ('name' in data && data.name != undefined) {
398
390
  this.name = data.name;
@@ -602,15 +594,13 @@ var google;
602
594
  return DescriptorProto.deserialize(bytes);
603
595
  }
604
596
  }
605
- _DescriptorProto_one_of_decls = new WeakMap();
606
597
  protobuf.DescriptorProto = DescriptorProto;
607
598
  (function (DescriptorProto) {
608
- var _ExtensionRange_one_of_decls, _ReservedRange_one_of_decls;
609
599
  class ExtensionRange extends pb_1.Message {
600
+ #one_of_decls = [];
610
601
  constructor(data) {
611
602
  super();
612
- _ExtensionRange_one_of_decls.set(this, []);
613
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _ExtensionRange_one_of_decls, "f"));
603
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
614
604
  if (!Array.isArray(data) && typeof data == 'object') {
615
605
  if ('start' in data && data.start != undefined) {
616
606
  this.start = data.start;
@@ -715,13 +705,12 @@ var google;
715
705
  return ExtensionRange.deserialize(bytes);
716
706
  }
717
707
  }
718
- _ExtensionRange_one_of_decls = new WeakMap();
719
708
  DescriptorProto.ExtensionRange = ExtensionRange;
720
709
  class ReservedRange extends pb_1.Message {
710
+ #one_of_decls = [];
721
711
  constructor(data) {
722
712
  super();
723
- _ReservedRange_one_of_decls.set(this, []);
724
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _ReservedRange_one_of_decls, "f"));
713
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
725
714
  if (!Array.isArray(data) && typeof data == 'object') {
726
715
  if ('start' in data && data.start != undefined) {
727
716
  this.start = data.start;
@@ -803,14 +792,13 @@ var google;
803
792
  return ReservedRange.deserialize(bytes);
804
793
  }
805
794
  }
806
- _ReservedRange_one_of_decls = new WeakMap();
807
795
  DescriptorProto.ReservedRange = ReservedRange;
808
796
  })(DescriptorProto = protobuf.DescriptorProto || (protobuf.DescriptorProto = {}));
809
797
  class ExtensionRangeOptions extends pb_1.Message {
798
+ #one_of_decls = [];
810
799
  constructor(data) {
811
800
  super();
812
- _ExtensionRangeOptions_one_of_decls.set(this, []);
813
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999, 2], __classPrivateFieldGet(this, _ExtensionRangeOptions_one_of_decls, "f"));
801
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999, 2], this.#one_of_decls);
814
802
  if (!Array.isArray(data) && typeof data == 'object') {
815
803
  this.uninterpreted_option = data.uninterpreted_option;
816
804
  this.declaration = data.declaration;
@@ -925,20 +913,18 @@ var google;
925
913
  return ExtensionRangeOptions.deserialize(bytes);
926
914
  }
927
915
  }
928
- _ExtensionRangeOptions_one_of_decls = new WeakMap();
929
916
  protobuf.ExtensionRangeOptions = ExtensionRangeOptions;
930
917
  (function (ExtensionRangeOptions) {
931
- var _Declaration_one_of_decls;
932
918
  let VerificationState;
933
919
  (function (VerificationState) {
934
920
  VerificationState[VerificationState["DECLARATION"] = 0] = "DECLARATION";
935
921
  VerificationState[VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED";
936
922
  })(VerificationState = ExtensionRangeOptions.VerificationState || (ExtensionRangeOptions.VerificationState = {}));
937
923
  class Declaration extends pb_1.Message {
924
+ #one_of_decls = [];
938
925
  constructor(data) {
939
926
  super();
940
- _Declaration_one_of_decls.set(this, []);
941
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _Declaration_one_of_decls, "f"));
927
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
942
928
  if (!Array.isArray(data) && typeof data == 'object') {
943
929
  if ('number' in data && data.number != undefined) {
944
930
  this.number = data.number;
@@ -1089,14 +1075,13 @@ var google;
1089
1075
  return Declaration.deserialize(bytes);
1090
1076
  }
1091
1077
  }
1092
- _Declaration_one_of_decls = new WeakMap();
1093
1078
  ExtensionRangeOptions.Declaration = Declaration;
1094
1079
  })(ExtensionRangeOptions = protobuf.ExtensionRangeOptions || (protobuf.ExtensionRangeOptions = {}));
1095
1080
  class FieldDescriptorProto extends pb_1.Message {
1081
+ #one_of_decls = [];
1096
1082
  constructor(data) {
1097
1083
  super();
1098
- _FieldDescriptorProto_one_of_decls.set(this, []);
1099
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _FieldDescriptorProto_one_of_decls, "f"));
1084
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
1100
1085
  if (!Array.isArray(data) && typeof data == 'object') {
1101
1086
  if ('name' in data && data.name != undefined) {
1102
1087
  this.name = data.name;
@@ -1385,7 +1370,6 @@ var google;
1385
1370
  return FieldDescriptorProto.deserialize(bytes);
1386
1371
  }
1387
1372
  }
1388
- _FieldDescriptorProto_one_of_decls = new WeakMap();
1389
1373
  protobuf.FieldDescriptorProto = FieldDescriptorProto;
1390
1374
  (function (FieldDescriptorProto) {
1391
1375
  let Type;
@@ -1417,10 +1401,10 @@ var google;
1417
1401
  })(Label = FieldDescriptorProto.Label || (FieldDescriptorProto.Label = {}));
1418
1402
  })(FieldDescriptorProto = protobuf.FieldDescriptorProto || (protobuf.FieldDescriptorProto = {}));
1419
1403
  class OneofDescriptorProto extends pb_1.Message {
1404
+ #one_of_decls = [];
1420
1405
  constructor(data) {
1421
1406
  super();
1422
- _OneofDescriptorProto_one_of_decls.set(this, []);
1423
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _OneofDescriptorProto_one_of_decls, "f"));
1407
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
1424
1408
  if (!Array.isArray(data) && typeof data == 'object') {
1425
1409
  if ('name' in data && data.name != undefined) {
1426
1410
  this.name = data.name;
@@ -1502,13 +1486,12 @@ var google;
1502
1486
  return OneofDescriptorProto.deserialize(bytes);
1503
1487
  }
1504
1488
  }
1505
- _OneofDescriptorProto_one_of_decls = new WeakMap();
1506
1489
  protobuf.OneofDescriptorProto = OneofDescriptorProto;
1507
1490
  class EnumDescriptorProto extends pb_1.Message {
1491
+ #one_of_decls = [];
1508
1492
  constructor(data) {
1509
1493
  super();
1510
- _EnumDescriptorProto_one_of_decls.set(this, []);
1511
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 4, 5], __classPrivateFieldGet(this, _EnumDescriptorProto_one_of_decls, "f"));
1494
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 4, 5], this.#one_of_decls);
1512
1495
  if (!Array.isArray(data) && typeof data == 'object') {
1513
1496
  if ('name' in data && data.name != undefined) {
1514
1497
  this.name = data.name;
@@ -1638,15 +1621,13 @@ var google;
1638
1621
  return EnumDescriptorProto.deserialize(bytes);
1639
1622
  }
1640
1623
  }
1641
- _EnumDescriptorProto_one_of_decls = new WeakMap();
1642
1624
  protobuf.EnumDescriptorProto = EnumDescriptorProto;
1643
1625
  (function (EnumDescriptorProto) {
1644
- var _EnumReservedRange_one_of_decls;
1645
1626
  class EnumReservedRange extends pb_1.Message {
1627
+ #one_of_decls = [];
1646
1628
  constructor(data) {
1647
1629
  super();
1648
- _EnumReservedRange_one_of_decls.set(this, []);
1649
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _EnumReservedRange_one_of_decls, "f"));
1630
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
1650
1631
  if (!Array.isArray(data) && typeof data == 'object') {
1651
1632
  if ('start' in data && data.start != undefined) {
1652
1633
  this.start = data.start;
@@ -1728,14 +1709,13 @@ var google;
1728
1709
  return EnumReservedRange.deserialize(bytes);
1729
1710
  }
1730
1711
  }
1731
- _EnumReservedRange_one_of_decls = new WeakMap();
1732
1712
  EnumDescriptorProto.EnumReservedRange = EnumReservedRange;
1733
1713
  })(EnumDescriptorProto = protobuf.EnumDescriptorProto || (protobuf.EnumDescriptorProto = {}));
1734
1714
  class EnumValueDescriptorProto extends pb_1.Message {
1715
+ #one_of_decls = [];
1735
1716
  constructor(data) {
1736
1717
  super();
1737
- _EnumValueDescriptorProto_one_of_decls.set(this, []);
1738
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _EnumValueDescriptorProto_one_of_decls, "f"));
1718
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
1739
1719
  if (!Array.isArray(data) && typeof data == 'object') {
1740
1720
  if ('name' in data && data.name != undefined) {
1741
1721
  this.name = data.name;
@@ -1840,13 +1820,12 @@ var google;
1840
1820
  return EnumValueDescriptorProto.deserialize(bytes);
1841
1821
  }
1842
1822
  }
1843
- _EnumValueDescriptorProto_one_of_decls = new WeakMap();
1844
1823
  protobuf.EnumValueDescriptorProto = EnumValueDescriptorProto;
1845
1824
  class ServiceDescriptorProto extends pb_1.Message {
1825
+ #one_of_decls = [];
1846
1826
  constructor(data) {
1847
1827
  super();
1848
- _ServiceDescriptorProto_one_of_decls.set(this, []);
1849
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], __classPrivateFieldGet(this, _ServiceDescriptorProto_one_of_decls, "f"));
1828
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
1850
1829
  if (!Array.isArray(data) && typeof data == 'object') {
1851
1830
  if ('name' in data && data.name != undefined) {
1852
1831
  this.name = data.name;
@@ -1945,13 +1924,12 @@ var google;
1945
1924
  return ServiceDescriptorProto.deserialize(bytes);
1946
1925
  }
1947
1926
  }
1948
- _ServiceDescriptorProto_one_of_decls = new WeakMap();
1949
1927
  protobuf.ServiceDescriptorProto = ServiceDescriptorProto;
1950
1928
  class MethodDescriptorProto extends pb_1.Message {
1929
+ #one_of_decls = [];
1951
1930
  constructor(data) {
1952
1931
  super();
1953
- _MethodDescriptorProto_one_of_decls.set(this, []);
1954
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _MethodDescriptorProto_one_of_decls, "f"));
1932
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
1955
1933
  if (!Array.isArray(data) && typeof data == 'object') {
1956
1934
  if ('name' in data && data.name != undefined) {
1957
1935
  this.name = data.name;
@@ -2125,13 +2103,12 @@ var google;
2125
2103
  return MethodDescriptorProto.deserialize(bytes);
2126
2104
  }
2127
2105
  }
2128
- _MethodDescriptorProto_one_of_decls = new WeakMap();
2129
2106
  protobuf.MethodDescriptorProto = MethodDescriptorProto;
2130
2107
  class FileOptions extends pb_1.Message {
2108
+ #one_of_decls = [];
2131
2109
  constructor(data) {
2132
2110
  super();
2133
- _FileOptions_one_of_decls.set(this, []);
2134
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], __classPrivateFieldGet(this, _FileOptions_one_of_decls, "f"));
2111
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], this.#one_of_decls);
2135
2112
  if (!Array.isArray(data) && typeof data == 'object') {
2136
2113
  if ('java_package' in data && data.java_package != undefined) {
2137
2114
  this.java_package = data.java_package;
@@ -2671,7 +2648,6 @@ var google;
2671
2648
  return FileOptions.deserialize(bytes);
2672
2649
  }
2673
2650
  }
2674
- _FileOptions_one_of_decls = new WeakMap();
2675
2651
  protobuf.FileOptions = FileOptions;
2676
2652
  (function (FileOptions) {
2677
2653
  let OptimizeMode;
@@ -2682,10 +2658,10 @@ var google;
2682
2658
  })(OptimizeMode = FileOptions.OptimizeMode || (FileOptions.OptimizeMode = {}));
2683
2659
  })(FileOptions = protobuf.FileOptions || (protobuf.FileOptions = {}));
2684
2660
  class MessageOptions extends pb_1.Message {
2661
+ #one_of_decls = [];
2685
2662
  constructor(data) {
2686
2663
  super();
2687
- _MessageOptions_one_of_decls.set(this, []);
2688
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], __classPrivateFieldGet(this, _MessageOptions_one_of_decls, "f"));
2664
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], this.#one_of_decls);
2689
2665
  if (!Array.isArray(data) && typeof data == 'object') {
2690
2666
  if ('message_set_wire_format' in data && data.message_set_wire_format != undefined) {
2691
2667
  this.message_set_wire_format = data.message_set_wire_format;
@@ -2881,13 +2857,12 @@ var google;
2881
2857
  return MessageOptions.deserialize(bytes);
2882
2858
  }
2883
2859
  }
2884
- _MessageOptions_one_of_decls = new WeakMap();
2885
2860
  protobuf.MessageOptions = MessageOptions;
2886
2861
  class FieldOptions extends pb_1.Message {
2862
+ #one_of_decls = [];
2887
2863
  constructor(data) {
2888
2864
  super();
2889
- _FieldOptions_one_of_decls.set(this, []);
2890
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [19, 20, 999], __classPrivateFieldGet(this, _FieldOptions_one_of_decls, "f"));
2865
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [19, 20, 999], this.#one_of_decls);
2891
2866
  if (!Array.isArray(data) && typeof data == 'object') {
2892
2867
  if ('ctype' in data && data.ctype != undefined) {
2893
2868
  this.ctype = data.ctype;
@@ -3201,10 +3176,8 @@ var google;
3201
3176
  return FieldOptions.deserialize(bytes);
3202
3177
  }
3203
3178
  }
3204
- _FieldOptions_one_of_decls = new WeakMap();
3205
3179
  protobuf.FieldOptions = FieldOptions;
3206
3180
  (function (FieldOptions) {
3207
- var _EditionDefault_one_of_decls;
3208
3181
  let CType;
3209
3182
  (function (CType) {
3210
3183
  CType[CType["STRING"] = 0] = "STRING";
@@ -3237,10 +3210,10 @@ var google;
3237
3210
  OptionTargetType[OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD";
3238
3211
  })(OptionTargetType = FieldOptions.OptionTargetType || (FieldOptions.OptionTargetType = {}));
3239
3212
  class EditionDefault extends pb_1.Message {
3213
+ #one_of_decls = [];
3240
3214
  constructor(data) {
3241
3215
  super();
3242
- _EditionDefault_one_of_decls.set(this, []);
3243
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _EditionDefault_one_of_decls, "f"));
3216
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
3244
3217
  if (!Array.isArray(data) && typeof data == 'object') {
3245
3218
  if ('edition' in data && data.edition != undefined) {
3246
3219
  this.edition = data.edition;
@@ -3322,14 +3295,13 @@ var google;
3322
3295
  return EditionDefault.deserialize(bytes);
3323
3296
  }
3324
3297
  }
3325
- _EditionDefault_one_of_decls = new WeakMap();
3326
3298
  FieldOptions.EditionDefault = EditionDefault;
3327
3299
  })(FieldOptions = protobuf.FieldOptions || (protobuf.FieldOptions = {}));
3328
3300
  class OneofOptions extends pb_1.Message {
3301
+ #one_of_decls = [];
3329
3302
  constructor(data) {
3330
3303
  super();
3331
- _OneofOptions_one_of_decls.set(this, []);
3332
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], __classPrivateFieldGet(this, _OneofOptions_one_of_decls, "f"));
3304
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], this.#one_of_decls);
3333
3305
  if (!Array.isArray(data) && typeof data == 'object') {
3334
3306
  if ('features' in data && data.features != undefined) {
3335
3307
  this.features = data.features;
@@ -3405,13 +3377,12 @@ var google;
3405
3377
  return OneofOptions.deserialize(bytes);
3406
3378
  }
3407
3379
  }
3408
- _OneofOptions_one_of_decls = new WeakMap();
3409
3380
  protobuf.OneofOptions = OneofOptions;
3410
3381
  class EnumOptions extends pb_1.Message {
3382
+ #one_of_decls = [];
3411
3383
  constructor(data) {
3412
3384
  super();
3413
- _EnumOptions_one_of_decls.set(this, []);
3414
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], __classPrivateFieldGet(this, _EnumOptions_one_of_decls, "f"));
3385
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], this.#one_of_decls);
3415
3386
  if (!Array.isArray(data) && typeof data == 'object') {
3416
3387
  if ('allow_alias' in data && data.allow_alias != undefined) {
3417
3388
  this.allow_alias = data.allow_alias;
@@ -3560,13 +3531,12 @@ var google;
3560
3531
  return EnumOptions.deserialize(bytes);
3561
3532
  }
3562
3533
  }
3563
- _EnumOptions_one_of_decls = new WeakMap();
3564
3534
  protobuf.EnumOptions = EnumOptions;
3565
3535
  class EnumValueOptions extends pb_1.Message {
3536
+ #one_of_decls = [];
3566
3537
  constructor(data) {
3567
3538
  super();
3568
- _EnumValueOptions_one_of_decls.set(this, []);
3569
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], __classPrivateFieldGet(this, _EnumValueOptions_one_of_decls, "f"));
3539
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], this.#one_of_decls);
3570
3540
  if (!Array.isArray(data) && typeof data == 'object') {
3571
3541
  if ('deprecated' in data && data.deprecated != undefined) {
3572
3542
  this.deprecated = data.deprecated;
@@ -3688,13 +3658,12 @@ var google;
3688
3658
  return EnumValueOptions.deserialize(bytes);
3689
3659
  }
3690
3660
  }
3691
- _EnumValueOptions_one_of_decls = new WeakMap();
3692
3661
  protobuf.EnumValueOptions = EnumValueOptions;
3693
3662
  class ServiceOptions extends pb_1.Message {
3663
+ #one_of_decls = [];
3694
3664
  constructor(data) {
3695
3665
  super();
3696
- _ServiceOptions_one_of_decls.set(this, []);
3697
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], __classPrivateFieldGet(this, _ServiceOptions_one_of_decls, "f"));
3666
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], this.#one_of_decls);
3698
3667
  if (!Array.isArray(data) && typeof data == 'object') {
3699
3668
  if ('features' in data && data.features != undefined) {
3700
3669
  this.features = data.features;
@@ -3793,13 +3762,12 @@ var google;
3793
3762
  return ServiceOptions.deserialize(bytes);
3794
3763
  }
3795
3764
  }
3796
- _ServiceOptions_one_of_decls = new WeakMap();
3797
3765
  protobuf.ServiceOptions = ServiceOptions;
3798
3766
  class MethodOptions extends pb_1.Message {
3767
+ #one_of_decls = [];
3799
3768
  constructor(data) {
3800
3769
  super();
3801
- _MethodOptions_one_of_decls.set(this, []);
3802
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], __classPrivateFieldGet(this, _MethodOptions_one_of_decls, "f"));
3770
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [999], this.#one_of_decls);
3803
3771
  if (!Array.isArray(data) && typeof data == 'object') {
3804
3772
  if ('deprecated' in data && data.deprecated != undefined) {
3805
3773
  this.deprecated = data.deprecated;
@@ -3921,7 +3889,6 @@ var google;
3921
3889
  return MethodOptions.deserialize(bytes);
3922
3890
  }
3923
3891
  }
3924
- _MethodOptions_one_of_decls = new WeakMap();
3925
3892
  protobuf.MethodOptions = MethodOptions;
3926
3893
  (function (MethodOptions) {
3927
3894
  let IdempotencyLevel;
@@ -3932,10 +3899,10 @@ var google;
3932
3899
  })(IdempotencyLevel = MethodOptions.IdempotencyLevel || (MethodOptions.IdempotencyLevel = {}));
3933
3900
  })(MethodOptions = protobuf.MethodOptions || (protobuf.MethodOptions = {}));
3934
3901
  class UninterpretedOption extends pb_1.Message {
3902
+ #one_of_decls = [];
3935
3903
  constructor(data) {
3936
3904
  super();
3937
- _UninterpretedOption_one_of_decls.set(this, []);
3938
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], __classPrivateFieldGet(this, _UninterpretedOption_one_of_decls, "f"));
3905
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
3939
3906
  if (!Array.isArray(data) && typeof data == 'object') {
3940
3907
  this.name = data.name;
3941
3908
  if ('identifier_value' in data && data.identifier_value != undefined) {
@@ -4126,15 +4093,13 @@ var google;
4126
4093
  return UninterpretedOption.deserialize(bytes);
4127
4094
  }
4128
4095
  }
4129
- _UninterpretedOption_one_of_decls = new WeakMap();
4130
4096
  protobuf.UninterpretedOption = UninterpretedOption;
4131
4097
  (function (UninterpretedOption) {
4132
- var _NamePart_one_of_decls;
4133
4098
  class NamePart extends pb_1.Message {
4099
+ #one_of_decls = [];
4134
4100
  constructor(data) {
4135
4101
  super();
4136
- _NamePart_one_of_decls.set(this, []);
4137
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _NamePart_one_of_decls, "f"));
4102
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
4138
4103
  if (!Array.isArray(data) && typeof data == 'object') {
4139
4104
  this.name_part = data.name_part;
4140
4105
  this.is_extension = data.is_extension;
@@ -4209,14 +4174,13 @@ var google;
4209
4174
  return NamePart.deserialize(bytes);
4210
4175
  }
4211
4176
  }
4212
- _NamePart_one_of_decls = new WeakMap();
4213
4177
  UninterpretedOption.NamePart = NamePart;
4214
4178
  })(UninterpretedOption = protobuf.UninterpretedOption || (protobuf.UninterpretedOption = {}));
4215
4179
  class FeatureSet extends pb_1.Message {
4180
+ #one_of_decls = [];
4216
4181
  constructor(data) {
4217
4182
  super();
4218
- _FeatureSet_one_of_decls.set(this, []);
4219
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _FeatureSet_one_of_decls, "f"));
4183
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
4220
4184
  if (!Array.isArray(data) && typeof data == 'object') {
4221
4185
  if ('field_presence' in data && data.field_presence != undefined) {
4222
4186
  this.field_presence = data.field_presence;
@@ -4413,7 +4377,6 @@ var google;
4413
4377
  return FeatureSet.deserialize(bytes);
4414
4378
  }
4415
4379
  }
4416
- _FeatureSet_one_of_decls = new WeakMap();
4417
4380
  protobuf.FeatureSet = FeatureSet;
4418
4381
  (function (FeatureSet) {
4419
4382
  let FieldPresence;
@@ -4456,10 +4419,10 @@ var google;
4456
4419
  })(JsonFormat = FeatureSet.JsonFormat || (FeatureSet.JsonFormat = {}));
4457
4420
  })(FeatureSet = protobuf.FeatureSet || (protobuf.FeatureSet = {}));
4458
4421
  class SourceCodeInfo extends pb_1.Message {
4422
+ #one_of_decls = [];
4459
4423
  constructor(data) {
4460
4424
  super();
4461
- _SourceCodeInfo_one_of_decls.set(this, []);
4462
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], __classPrivateFieldGet(this, _SourceCodeInfo_one_of_decls, "f"));
4425
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
4463
4426
  if (!Array.isArray(data) && typeof data == 'object') {
4464
4427
  this.location = data.location;
4465
4428
  }
@@ -4512,15 +4475,13 @@ var google;
4512
4475
  return SourceCodeInfo.deserialize(bytes);
4513
4476
  }
4514
4477
  }
4515
- _SourceCodeInfo_one_of_decls = new WeakMap();
4516
4478
  protobuf.SourceCodeInfo = SourceCodeInfo;
4517
4479
  (function (SourceCodeInfo) {
4518
- var _Location_one_of_decls;
4519
4480
  class Location extends pb_1.Message {
4481
+ #one_of_decls = [];
4520
4482
  constructor(data) {
4521
4483
  super();
4522
- _Location_one_of_decls.set(this, []);
4523
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 6], __classPrivateFieldGet(this, _Location_one_of_decls, "f"));
4484
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1, 2, 6], this.#one_of_decls);
4524
4485
  if (!Array.isArray(data) && typeof data == 'object') {
4525
4486
  this.path = data.path;
4526
4487
  this.span = data.span;
@@ -4646,14 +4607,13 @@ var google;
4646
4607
  return Location.deserialize(bytes);
4647
4608
  }
4648
4609
  }
4649
- _Location_one_of_decls = new WeakMap();
4650
4610
  SourceCodeInfo.Location = Location;
4651
4611
  })(SourceCodeInfo = protobuf.SourceCodeInfo || (protobuf.SourceCodeInfo = {}));
4652
4612
  class GeneratedCodeInfo extends pb_1.Message {
4613
+ #one_of_decls = [];
4653
4614
  constructor(data) {
4654
4615
  super();
4655
- _GeneratedCodeInfo_one_of_decls.set(this, []);
4656
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], __classPrivateFieldGet(this, _GeneratedCodeInfo_one_of_decls, "f"));
4616
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
4657
4617
  if (!Array.isArray(data) && typeof data == 'object') {
4658
4618
  this.annotation = data.annotation;
4659
4619
  }
@@ -4706,15 +4666,13 @@ var google;
4706
4666
  return GeneratedCodeInfo.deserialize(bytes);
4707
4667
  }
4708
4668
  }
4709
- _GeneratedCodeInfo_one_of_decls = new WeakMap();
4710
4669
  protobuf.GeneratedCodeInfo = GeneratedCodeInfo;
4711
4670
  (function (GeneratedCodeInfo) {
4712
- var _Annotation_one_of_decls;
4713
4671
  class Annotation extends pb_1.Message {
4672
+ #one_of_decls = [];
4714
4673
  constructor(data) {
4715
4674
  super();
4716
- _Annotation_one_of_decls.set(this, []);
4717
- pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], __classPrivateFieldGet(this, _Annotation_one_of_decls, "f"));
4675
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
4718
4676
  if (!Array.isArray(data) && typeof data == 'object') {
4719
4677
  this.path = data.path;
4720
4678
  if ('source_file' in data && data.source_file != undefined) {
@@ -4858,7 +4816,6 @@ var google;
4858
4816
  return Annotation.deserialize(bytes);
4859
4817
  }
4860
4818
  }
4861
- _Annotation_one_of_decls = new WeakMap();
4862
4819
  GeneratedCodeInfo.Annotation = Annotation;
4863
4820
  (function (Annotation) {
4864
4821
  let Semantic;