@devvit/protos 0.10.21-next-2024-05-15-76d08d3fe.0 → 0.10.21-next-2024-05-15-85306358a.0
Sign up to get free protection for your applications and to get access to all the features.
- package/meta.min.json +48 -19
- package/package.json +5 -5
- package/protos.min.js +2 -2
- package/protos.min.js.map +3 -3
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +22 -22
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js +353 -79
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts +1 -1
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js +9 -3
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +1 -1
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js +9 -3
- package/types/google/protobuf/any.d.ts +5 -4
- package/types/google/protobuf/any.d.ts.map +1 -1
- package/types/google/protobuf/descriptor.d.ts +299 -36
- package/types/google/protobuf/descriptor.d.ts.map +1 -1
- package/types/google/protobuf/descriptor.js +1108 -49
- package/types/google/protobuf/struct.d.ts +1 -1
- package/types/google/protobuf/struct.js +1 -1
- package/types/google/protobuf/timestamp.d.ts +1 -1
@@ -7,6 +7,146 @@
|
|
7
7
|
import Long from "long";
|
8
8
|
import _m0 from 'protobufjs/minimal.js';
|
9
9
|
import { messageTypeRegistry } from '../../typeRegistry.js';
|
10
|
+
/** The full set of known editions. */
|
11
|
+
export var Edition;
|
12
|
+
(function (Edition) {
|
13
|
+
/** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
|
14
|
+
Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN";
|
15
|
+
/**
|
16
|
+
* EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like
|
17
|
+
* distinct editions. These can't be used to specify the edition of proto
|
18
|
+
* files, but feature definitions must supply proto2/proto3 defaults for
|
19
|
+
* backwards compatibility.
|
20
|
+
*/
|
21
|
+
Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2";
|
22
|
+
Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3";
|
23
|
+
/**
|
24
|
+
* EDITION_2023 - Editions that have been released. The specific values are arbitrary and
|
25
|
+
* should not be depended on, but they will always be time-ordered for easy
|
26
|
+
* comparison.
|
27
|
+
*/
|
28
|
+
Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
|
29
|
+
Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024";
|
30
|
+
/**
|
31
|
+
* EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
|
32
|
+
* used or relyed on outside of tests.
|
33
|
+
*/
|
34
|
+
Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY";
|
35
|
+
Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY";
|
36
|
+
Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY";
|
37
|
+
Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY";
|
38
|
+
Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY";
|
39
|
+
/**
|
40
|
+
* EDITION_MAX - Placeholder for specifying unbounded edition support. This should only
|
41
|
+
* ever be used by plugins that can expect to never require any changes to
|
42
|
+
* support a new edition.
|
43
|
+
*/
|
44
|
+
Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX";
|
45
|
+
Edition[Edition["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
46
|
+
})(Edition || (Edition = {}));
|
47
|
+
export function editionFromJSON(object) {
|
48
|
+
switch (object) {
|
49
|
+
case 0:
|
50
|
+
case "EDITION_UNKNOWN":
|
51
|
+
return Edition.EDITION_UNKNOWN;
|
52
|
+
case 998:
|
53
|
+
case "EDITION_PROTO2":
|
54
|
+
return Edition.EDITION_PROTO2;
|
55
|
+
case 999:
|
56
|
+
case "EDITION_PROTO3":
|
57
|
+
return Edition.EDITION_PROTO3;
|
58
|
+
case 1000:
|
59
|
+
case "EDITION_2023":
|
60
|
+
return Edition.EDITION_2023;
|
61
|
+
case 1001:
|
62
|
+
case "EDITION_2024":
|
63
|
+
return Edition.EDITION_2024;
|
64
|
+
case 1:
|
65
|
+
case "EDITION_1_TEST_ONLY":
|
66
|
+
return Edition.EDITION_1_TEST_ONLY;
|
67
|
+
case 2:
|
68
|
+
case "EDITION_2_TEST_ONLY":
|
69
|
+
return Edition.EDITION_2_TEST_ONLY;
|
70
|
+
case 99997:
|
71
|
+
case "EDITION_99997_TEST_ONLY":
|
72
|
+
return Edition.EDITION_99997_TEST_ONLY;
|
73
|
+
case 99998:
|
74
|
+
case "EDITION_99998_TEST_ONLY":
|
75
|
+
return Edition.EDITION_99998_TEST_ONLY;
|
76
|
+
case 99999:
|
77
|
+
case "EDITION_99999_TEST_ONLY":
|
78
|
+
return Edition.EDITION_99999_TEST_ONLY;
|
79
|
+
case 2147483647:
|
80
|
+
case "EDITION_MAX":
|
81
|
+
return Edition.EDITION_MAX;
|
82
|
+
case -1:
|
83
|
+
case "UNRECOGNIZED":
|
84
|
+
default:
|
85
|
+
return Edition.UNRECOGNIZED;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
export function editionToJSON(object) {
|
89
|
+
switch (object) {
|
90
|
+
case Edition.EDITION_UNKNOWN:
|
91
|
+
return 0;
|
92
|
+
case Edition.EDITION_PROTO2:
|
93
|
+
return 998;
|
94
|
+
case Edition.EDITION_PROTO3:
|
95
|
+
return 999;
|
96
|
+
case Edition.EDITION_2023:
|
97
|
+
return 1000;
|
98
|
+
case Edition.EDITION_2024:
|
99
|
+
return 1001;
|
100
|
+
case Edition.EDITION_1_TEST_ONLY:
|
101
|
+
return 1;
|
102
|
+
case Edition.EDITION_2_TEST_ONLY:
|
103
|
+
return 2;
|
104
|
+
case Edition.EDITION_99997_TEST_ONLY:
|
105
|
+
return 99997;
|
106
|
+
case Edition.EDITION_99998_TEST_ONLY:
|
107
|
+
return 99998;
|
108
|
+
case Edition.EDITION_99999_TEST_ONLY:
|
109
|
+
return 99999;
|
110
|
+
case Edition.EDITION_MAX:
|
111
|
+
return 2147483647;
|
112
|
+
case Edition.UNRECOGNIZED:
|
113
|
+
default:
|
114
|
+
return -1;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
/** The verification state of the extension range. */
|
118
|
+
export var ExtensionRangeOptions_VerificationState;
|
119
|
+
(function (ExtensionRangeOptions_VerificationState) {
|
120
|
+
/** DECLARATION - All the extensions of the range must be declared. */
|
121
|
+
ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION";
|
122
|
+
ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED";
|
123
|
+
ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
124
|
+
})(ExtensionRangeOptions_VerificationState || (ExtensionRangeOptions_VerificationState = {}));
|
125
|
+
export function extensionRangeOptions_VerificationStateFromJSON(object) {
|
126
|
+
switch (object) {
|
127
|
+
case 0:
|
128
|
+
case "DECLARATION":
|
129
|
+
return ExtensionRangeOptions_VerificationState.DECLARATION;
|
130
|
+
case 1:
|
131
|
+
case "UNVERIFIED":
|
132
|
+
return ExtensionRangeOptions_VerificationState.UNVERIFIED;
|
133
|
+
case -1:
|
134
|
+
case "UNRECOGNIZED":
|
135
|
+
default:
|
136
|
+
return ExtensionRangeOptions_VerificationState.UNRECOGNIZED;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
export function extensionRangeOptions_VerificationStateToJSON(object) {
|
140
|
+
switch (object) {
|
141
|
+
case ExtensionRangeOptions_VerificationState.DECLARATION:
|
142
|
+
return 0;
|
143
|
+
case ExtensionRangeOptions_VerificationState.UNVERIFIED:
|
144
|
+
return 1;
|
145
|
+
case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:
|
146
|
+
default:
|
147
|
+
return -1;
|
148
|
+
}
|
149
|
+
}
|
10
150
|
export var FieldDescriptorProto_Type;
|
11
151
|
(function (FieldDescriptorProto_Type) {
|
12
152
|
/**
|
@@ -32,9 +172,10 @@ export var FieldDescriptorProto_Type;
|
|
32
172
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING";
|
33
173
|
/**
|
34
174
|
* TYPE_GROUP - Tag-delimited aggregate.
|
35
|
-
* Group type is deprecated and not supported
|
175
|
+
* Group type is deprecated and not supported after google.protobuf. However, Proto3
|
36
176
|
* implementations should still be able to parse the group wire format and
|
37
|
-
* treat group fields as unknown fields.
|
177
|
+
* treat group fields as unknown fields. In Editions, the group wire format
|
178
|
+
* can be enabled via the `message_encoding` feature.
|
38
179
|
*/
|
39
180
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP";
|
40
181
|
/** TYPE_MESSAGE - Length-delimited aggregate. */
|
@@ -160,8 +301,13 @@ export var FieldDescriptorProto_Label;
|
|
160
301
|
(function (FieldDescriptorProto_Label) {
|
161
302
|
/** LABEL_OPTIONAL - 0 is reserved for errors */
|
162
303
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL";
|
163
|
-
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
|
164
304
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED";
|
305
|
+
/**
|
306
|
+
* LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
|
307
|
+
* it's explicitly prohibited. In Editions, the `field_presence` feature
|
308
|
+
* can be used to get this behavior.
|
309
|
+
*/
|
310
|
+
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
|
165
311
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
166
312
|
})(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {}));
|
167
313
|
export function fieldDescriptorProto_LabelFromJSON(object) {
|
@@ -169,12 +315,12 @@ export function fieldDescriptorProto_LabelFromJSON(object) {
|
|
169
315
|
case 1:
|
170
316
|
case "LABEL_OPTIONAL":
|
171
317
|
return FieldDescriptorProto_Label.LABEL_OPTIONAL;
|
172
|
-
case 2:
|
173
|
-
case "LABEL_REQUIRED":
|
174
|
-
return FieldDescriptorProto_Label.LABEL_REQUIRED;
|
175
318
|
case 3:
|
176
319
|
case "LABEL_REPEATED":
|
177
320
|
return FieldDescriptorProto_Label.LABEL_REPEATED;
|
321
|
+
case 2:
|
322
|
+
case "LABEL_REQUIRED":
|
323
|
+
return FieldDescriptorProto_Label.LABEL_REQUIRED;
|
178
324
|
case -1:
|
179
325
|
case "UNRECOGNIZED":
|
180
326
|
default:
|
@@ -185,10 +331,10 @@ export function fieldDescriptorProto_LabelToJSON(object) {
|
|
185
331
|
switch (object) {
|
186
332
|
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
|
187
333
|
return 1;
|
188
|
-
case FieldDescriptorProto_Label.LABEL_REQUIRED:
|
189
|
-
return 2;
|
190
334
|
case FieldDescriptorProto_Label.LABEL_REPEATED:
|
191
335
|
return 3;
|
336
|
+
case FieldDescriptorProto_Label.LABEL_REQUIRED:
|
337
|
+
return 2;
|
192
338
|
case FieldDescriptorProto_Label.UNRECOGNIZED:
|
193
339
|
default:
|
194
340
|
return -1;
|
@@ -239,6 +385,14 @@ export var FieldOptions_CType;
|
|
239
385
|
(function (FieldOptions_CType) {
|
240
386
|
/** STRING - Default mode. */
|
241
387
|
FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING";
|
388
|
+
/**
|
389
|
+
* CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
|
390
|
+
* "bytes". It indicates that in C++, the data should be stored in a Cord
|
391
|
+
* instead of a string. For very large strings, this may reduce memory
|
392
|
+
* fragmentation. It may also allow better performance when parsing from a
|
393
|
+
* Cord, or when parsing with aliasing enabled, as the parsed Cord may then
|
394
|
+
* alias the original buffer.
|
395
|
+
*/
|
242
396
|
FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD";
|
243
397
|
FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
|
244
398
|
FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
@@ -484,6 +638,234 @@ export function methodOptions_IdempotencyLevelToJSON(object) {
|
|
484
638
|
return -1;
|
485
639
|
}
|
486
640
|
}
|
641
|
+
export var FeatureSet_FieldPresence;
|
642
|
+
(function (FeatureSet_FieldPresence) {
|
643
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN";
|
644
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT";
|
645
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT";
|
646
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED";
|
647
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
648
|
+
})(FeatureSet_FieldPresence || (FeatureSet_FieldPresence = {}));
|
649
|
+
export function featureSet_FieldPresenceFromJSON(object) {
|
650
|
+
switch (object) {
|
651
|
+
case 0:
|
652
|
+
case "FIELD_PRESENCE_UNKNOWN":
|
653
|
+
return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;
|
654
|
+
case 1:
|
655
|
+
case "EXPLICIT":
|
656
|
+
return FeatureSet_FieldPresence.EXPLICIT;
|
657
|
+
case 2:
|
658
|
+
case "IMPLICIT":
|
659
|
+
return FeatureSet_FieldPresence.IMPLICIT;
|
660
|
+
case 3:
|
661
|
+
case "LEGACY_REQUIRED":
|
662
|
+
return FeatureSet_FieldPresence.LEGACY_REQUIRED;
|
663
|
+
case -1:
|
664
|
+
case "UNRECOGNIZED":
|
665
|
+
default:
|
666
|
+
return FeatureSet_FieldPresence.UNRECOGNIZED;
|
667
|
+
}
|
668
|
+
}
|
669
|
+
export function featureSet_FieldPresenceToJSON(object) {
|
670
|
+
switch (object) {
|
671
|
+
case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:
|
672
|
+
return 0;
|
673
|
+
case FeatureSet_FieldPresence.EXPLICIT:
|
674
|
+
return 1;
|
675
|
+
case FeatureSet_FieldPresence.IMPLICIT:
|
676
|
+
return 2;
|
677
|
+
case FeatureSet_FieldPresence.LEGACY_REQUIRED:
|
678
|
+
return 3;
|
679
|
+
case FeatureSet_FieldPresence.UNRECOGNIZED:
|
680
|
+
default:
|
681
|
+
return -1;
|
682
|
+
}
|
683
|
+
}
|
684
|
+
export var FeatureSet_EnumType;
|
685
|
+
(function (FeatureSet_EnumType) {
|
686
|
+
FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN";
|
687
|
+
FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN";
|
688
|
+
FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED";
|
689
|
+
FeatureSet_EnumType[FeatureSet_EnumType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
690
|
+
})(FeatureSet_EnumType || (FeatureSet_EnumType = {}));
|
691
|
+
export function featureSet_EnumTypeFromJSON(object) {
|
692
|
+
switch (object) {
|
693
|
+
case 0:
|
694
|
+
case "ENUM_TYPE_UNKNOWN":
|
695
|
+
return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;
|
696
|
+
case 1:
|
697
|
+
case "OPEN":
|
698
|
+
return FeatureSet_EnumType.OPEN;
|
699
|
+
case 2:
|
700
|
+
case "CLOSED":
|
701
|
+
return FeatureSet_EnumType.CLOSED;
|
702
|
+
case -1:
|
703
|
+
case "UNRECOGNIZED":
|
704
|
+
default:
|
705
|
+
return FeatureSet_EnumType.UNRECOGNIZED;
|
706
|
+
}
|
707
|
+
}
|
708
|
+
export function featureSet_EnumTypeToJSON(object) {
|
709
|
+
switch (object) {
|
710
|
+
case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:
|
711
|
+
return 0;
|
712
|
+
case FeatureSet_EnumType.OPEN:
|
713
|
+
return 1;
|
714
|
+
case FeatureSet_EnumType.CLOSED:
|
715
|
+
return 2;
|
716
|
+
case FeatureSet_EnumType.UNRECOGNIZED:
|
717
|
+
default:
|
718
|
+
return -1;
|
719
|
+
}
|
720
|
+
}
|
721
|
+
export var FeatureSet_RepeatedFieldEncoding;
|
722
|
+
(function (FeatureSet_RepeatedFieldEncoding) {
|
723
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN";
|
724
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED";
|
725
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED";
|
726
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
727
|
+
})(FeatureSet_RepeatedFieldEncoding || (FeatureSet_RepeatedFieldEncoding = {}));
|
728
|
+
export function featureSet_RepeatedFieldEncodingFromJSON(object) {
|
729
|
+
switch (object) {
|
730
|
+
case 0:
|
731
|
+
case "REPEATED_FIELD_ENCODING_UNKNOWN":
|
732
|
+
return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;
|
733
|
+
case 1:
|
734
|
+
case "PACKED":
|
735
|
+
return FeatureSet_RepeatedFieldEncoding.PACKED;
|
736
|
+
case 2:
|
737
|
+
case "EXPANDED":
|
738
|
+
return FeatureSet_RepeatedFieldEncoding.EXPANDED;
|
739
|
+
case -1:
|
740
|
+
case "UNRECOGNIZED":
|
741
|
+
default:
|
742
|
+
return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED;
|
743
|
+
}
|
744
|
+
}
|
745
|
+
export function featureSet_RepeatedFieldEncodingToJSON(object) {
|
746
|
+
switch (object) {
|
747
|
+
case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:
|
748
|
+
return 0;
|
749
|
+
case FeatureSet_RepeatedFieldEncoding.PACKED:
|
750
|
+
return 1;
|
751
|
+
case FeatureSet_RepeatedFieldEncoding.EXPANDED:
|
752
|
+
return 2;
|
753
|
+
case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:
|
754
|
+
default:
|
755
|
+
return -1;
|
756
|
+
}
|
757
|
+
}
|
758
|
+
export var FeatureSet_Utf8Validation;
|
759
|
+
(function (FeatureSet_Utf8Validation) {
|
760
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
|
761
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY";
|
762
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE";
|
763
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
764
|
+
})(FeatureSet_Utf8Validation || (FeatureSet_Utf8Validation = {}));
|
765
|
+
export function featureSet_Utf8ValidationFromJSON(object) {
|
766
|
+
switch (object) {
|
767
|
+
case 0:
|
768
|
+
case "UTF8_VALIDATION_UNKNOWN":
|
769
|
+
return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
|
770
|
+
case 2:
|
771
|
+
case "VERIFY":
|
772
|
+
return FeatureSet_Utf8Validation.VERIFY;
|
773
|
+
case 3:
|
774
|
+
case "NONE":
|
775
|
+
return FeatureSet_Utf8Validation.NONE;
|
776
|
+
case -1:
|
777
|
+
case "UNRECOGNIZED":
|
778
|
+
default:
|
779
|
+
return FeatureSet_Utf8Validation.UNRECOGNIZED;
|
780
|
+
}
|
781
|
+
}
|
782
|
+
export function featureSet_Utf8ValidationToJSON(object) {
|
783
|
+
switch (object) {
|
784
|
+
case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
|
785
|
+
return 0;
|
786
|
+
case FeatureSet_Utf8Validation.VERIFY:
|
787
|
+
return 2;
|
788
|
+
case FeatureSet_Utf8Validation.NONE:
|
789
|
+
return 3;
|
790
|
+
case FeatureSet_Utf8Validation.UNRECOGNIZED:
|
791
|
+
default:
|
792
|
+
return -1;
|
793
|
+
}
|
794
|
+
}
|
795
|
+
export var FeatureSet_MessageEncoding;
|
796
|
+
(function (FeatureSet_MessageEncoding) {
|
797
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN";
|
798
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED";
|
799
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED";
|
800
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
801
|
+
})(FeatureSet_MessageEncoding || (FeatureSet_MessageEncoding = {}));
|
802
|
+
export function featureSet_MessageEncodingFromJSON(object) {
|
803
|
+
switch (object) {
|
804
|
+
case 0:
|
805
|
+
case "MESSAGE_ENCODING_UNKNOWN":
|
806
|
+
return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;
|
807
|
+
case 1:
|
808
|
+
case "LENGTH_PREFIXED":
|
809
|
+
return FeatureSet_MessageEncoding.LENGTH_PREFIXED;
|
810
|
+
case 2:
|
811
|
+
case "DELIMITED":
|
812
|
+
return FeatureSet_MessageEncoding.DELIMITED;
|
813
|
+
case -1:
|
814
|
+
case "UNRECOGNIZED":
|
815
|
+
default:
|
816
|
+
return FeatureSet_MessageEncoding.UNRECOGNIZED;
|
817
|
+
}
|
818
|
+
}
|
819
|
+
export function featureSet_MessageEncodingToJSON(object) {
|
820
|
+
switch (object) {
|
821
|
+
case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:
|
822
|
+
return 0;
|
823
|
+
case FeatureSet_MessageEncoding.LENGTH_PREFIXED:
|
824
|
+
return 1;
|
825
|
+
case FeatureSet_MessageEncoding.DELIMITED:
|
826
|
+
return 2;
|
827
|
+
case FeatureSet_MessageEncoding.UNRECOGNIZED:
|
828
|
+
default:
|
829
|
+
return -1;
|
830
|
+
}
|
831
|
+
}
|
832
|
+
export var FeatureSet_JsonFormat;
|
833
|
+
(function (FeatureSet_JsonFormat) {
|
834
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN";
|
835
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW";
|
836
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT";
|
837
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
838
|
+
})(FeatureSet_JsonFormat || (FeatureSet_JsonFormat = {}));
|
839
|
+
export function featureSet_JsonFormatFromJSON(object) {
|
840
|
+
switch (object) {
|
841
|
+
case 0:
|
842
|
+
case "JSON_FORMAT_UNKNOWN":
|
843
|
+
return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;
|
844
|
+
case 1:
|
845
|
+
case "ALLOW":
|
846
|
+
return FeatureSet_JsonFormat.ALLOW;
|
847
|
+
case 2:
|
848
|
+
case "LEGACY_BEST_EFFORT":
|
849
|
+
return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT;
|
850
|
+
case -1:
|
851
|
+
case "UNRECOGNIZED":
|
852
|
+
default:
|
853
|
+
return FeatureSet_JsonFormat.UNRECOGNIZED;
|
854
|
+
}
|
855
|
+
}
|
856
|
+
export function featureSet_JsonFormatToJSON(object) {
|
857
|
+
switch (object) {
|
858
|
+
case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:
|
859
|
+
return 0;
|
860
|
+
case FeatureSet_JsonFormat.ALLOW:
|
861
|
+
return 1;
|
862
|
+
case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:
|
863
|
+
return 2;
|
864
|
+
case FeatureSet_JsonFormat.UNRECOGNIZED:
|
865
|
+
default:
|
866
|
+
return -1;
|
867
|
+
}
|
868
|
+
}
|
487
869
|
/**
|
488
870
|
* Represents the identified object's effect on the element in the original
|
489
871
|
* .proto file.
|
@@ -596,7 +978,7 @@ function createBaseFileDescriptorProto() {
|
|
596
978
|
options: undefined,
|
597
979
|
sourceCodeInfo: undefined,
|
598
980
|
syntax: "",
|
599
|
-
edition:
|
981
|
+
edition: 0,
|
600
982
|
};
|
601
983
|
}
|
602
984
|
export const FileDescriptorProto = {
|
@@ -642,8 +1024,8 @@ export const FileDescriptorProto = {
|
|
642
1024
|
if (message.syntax !== undefined && message.syntax !== "") {
|
643
1025
|
writer.uint32(98).string(message.syntax);
|
644
1026
|
}
|
645
|
-
if (message.edition !== undefined && message.edition !==
|
646
|
-
writer.uint32(
|
1027
|
+
if (message.edition !== undefined && message.edition !== 0) {
|
1028
|
+
writer.uint32(112).int32(message.edition);
|
647
1029
|
}
|
648
1030
|
return writer;
|
649
1031
|
},
|
@@ -740,11 +1122,11 @@ export const FileDescriptorProto = {
|
|
740
1122
|
}
|
741
1123
|
message.syntax = reader.string();
|
742
1124
|
continue;
|
743
|
-
case
|
744
|
-
if (tag !==
|
1125
|
+
case 14:
|
1126
|
+
if (tag !== 112) {
|
745
1127
|
break;
|
746
1128
|
}
|
747
|
-
message.edition = reader.
|
1129
|
+
message.edition = reader.int32();
|
748
1130
|
continue;
|
749
1131
|
}
|
750
1132
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -782,7 +1164,7 @@ export const FileDescriptorProto = {
|
|
782
1164
|
options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,
|
783
1165
|
sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,
|
784
1166
|
syntax: isSet(object.syntax) ? globalThis.String(object.syntax) : "",
|
785
|
-
edition: isSet(object.edition) ?
|
1167
|
+
edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,
|
786
1168
|
};
|
787
1169
|
},
|
788
1170
|
toJSON(message) {
|
@@ -823,8 +1205,8 @@ export const FileDescriptorProto = {
|
|
823
1205
|
if (message.syntax !== undefined && message.syntax !== "") {
|
824
1206
|
obj.syntax = message.syntax;
|
825
1207
|
}
|
826
|
-
if (message.edition !== undefined && message.edition !==
|
827
|
-
obj.edition = message.edition;
|
1208
|
+
if (message.edition !== undefined && message.edition !== 0) {
|
1209
|
+
obj.edition = editionToJSON(message.edition);
|
828
1210
|
}
|
829
1211
|
return obj;
|
830
1212
|
},
|
@@ -849,7 +1231,7 @@ export const FileDescriptorProto = {
|
|
849
1231
|
? SourceCodeInfo.fromPartial(object.sourceCodeInfo)
|
850
1232
|
: undefined;
|
851
1233
|
message.syntax = object.syntax ?? "";
|
852
|
-
message.edition = object.edition ??
|
1234
|
+
message.edition = object.edition ?? 0;
|
853
1235
|
return message;
|
854
1236
|
},
|
855
1237
|
};
|
@@ -1216,7 +1598,7 @@ export const DescriptorProto_ReservedRange = {
|
|
1216
1598
|
};
|
1217
1599
|
messageTypeRegistry.set(DescriptorProto_ReservedRange.$type, DescriptorProto_ReservedRange);
|
1218
1600
|
function createBaseExtensionRangeOptions() {
|
1219
|
-
return { uninterpretedOption: [] };
|
1601
|
+
return { uninterpretedOption: [], declaration: [], features: undefined, verification: 1 };
|
1220
1602
|
}
|
1221
1603
|
export const ExtensionRangeOptions = {
|
1222
1604
|
$type: "google.protobuf.ExtensionRangeOptions",
|
@@ -1224,6 +1606,15 @@ export const ExtensionRangeOptions = {
|
|
1224
1606
|
for (const v of message.uninterpretedOption) {
|
1225
1607
|
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
1226
1608
|
}
|
1609
|
+
for (const v of message.declaration) {
|
1610
|
+
ExtensionRangeOptions_Declaration.encode(v, writer.uint32(18).fork()).ldelim();
|
1611
|
+
}
|
1612
|
+
if (message.features !== undefined) {
|
1613
|
+
FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
|
1614
|
+
}
|
1615
|
+
if (message.verification !== undefined && message.verification !== 1) {
|
1616
|
+
writer.uint32(24).int32(message.verification);
|
1617
|
+
}
|
1227
1618
|
return writer;
|
1228
1619
|
},
|
1229
1620
|
decode(input, length) {
|
@@ -1239,6 +1630,24 @@ export const ExtensionRangeOptions = {
|
|
1239
1630
|
}
|
1240
1631
|
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
1241
1632
|
continue;
|
1633
|
+
case 2:
|
1634
|
+
if (tag !== 18) {
|
1635
|
+
break;
|
1636
|
+
}
|
1637
|
+
message.declaration.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));
|
1638
|
+
continue;
|
1639
|
+
case 50:
|
1640
|
+
if (tag !== 402) {
|
1641
|
+
break;
|
1642
|
+
}
|
1643
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
1644
|
+
continue;
|
1645
|
+
case 3:
|
1646
|
+
if (tag !== 24) {
|
1647
|
+
break;
|
1648
|
+
}
|
1649
|
+
message.verification = reader.int32();
|
1650
|
+
continue;
|
1242
1651
|
}
|
1243
1652
|
if ((tag & 7) === 4 || tag === 0) {
|
1244
1653
|
break;
|
@@ -1252,6 +1661,13 @@ export const ExtensionRangeOptions = {
|
|
1252
1661
|
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
1253
1662
|
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
1254
1663
|
: [],
|
1664
|
+
declaration: globalThis.Array.isArray(object?.declaration)
|
1665
|
+
? object.declaration.map((e) => ExtensionRangeOptions_Declaration.fromJSON(e))
|
1666
|
+
: [],
|
1667
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
1668
|
+
verification: isSet(object.verification)
|
1669
|
+
? extensionRangeOptions_VerificationStateFromJSON(object.verification)
|
1670
|
+
: 1,
|
1255
1671
|
};
|
1256
1672
|
},
|
1257
1673
|
toJSON(message) {
|
@@ -1259,6 +1675,15 @@ export const ExtensionRangeOptions = {
|
|
1259
1675
|
if (message.uninterpretedOption?.length) {
|
1260
1676
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
1261
1677
|
}
|
1678
|
+
if (message.declaration?.length) {
|
1679
|
+
obj.declaration = message.declaration.map((e) => ExtensionRangeOptions_Declaration.toJSON(e));
|
1680
|
+
}
|
1681
|
+
if (message.features !== undefined) {
|
1682
|
+
obj.features = FeatureSet.toJSON(message.features);
|
1683
|
+
}
|
1684
|
+
if (message.verification !== undefined && message.verification !== 1) {
|
1685
|
+
obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification);
|
1686
|
+
}
|
1262
1687
|
return obj;
|
1263
1688
|
},
|
1264
1689
|
create(base) {
|
@@ -1267,10 +1692,125 @@ export const ExtensionRangeOptions = {
|
|
1267
1692
|
fromPartial(object) {
|
1268
1693
|
const message = createBaseExtensionRangeOptions();
|
1269
1694
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
1695
|
+
message.declaration = object.declaration?.map((e) => ExtensionRangeOptions_Declaration.fromPartial(e)) || [];
|
1696
|
+
message.features = (object.features !== undefined && object.features !== null)
|
1697
|
+
? FeatureSet.fromPartial(object.features)
|
1698
|
+
: undefined;
|
1699
|
+
message.verification = object.verification ?? 1;
|
1270
1700
|
return message;
|
1271
1701
|
},
|
1272
1702
|
};
|
1273
1703
|
messageTypeRegistry.set(ExtensionRangeOptions.$type, ExtensionRangeOptions);
|
1704
|
+
function createBaseExtensionRangeOptions_Declaration() {
|
1705
|
+
return { number: 0, fullName: "", type: "", reserved: false, repeated: false };
|
1706
|
+
}
|
1707
|
+
export const ExtensionRangeOptions_Declaration = {
|
1708
|
+
$type: "google.protobuf.ExtensionRangeOptions.Declaration",
|
1709
|
+
encode(message, writer = _m0.Writer.create()) {
|
1710
|
+
if (message.number !== undefined && message.number !== 0) {
|
1711
|
+
writer.uint32(8).int32(message.number);
|
1712
|
+
}
|
1713
|
+
if (message.fullName !== undefined && message.fullName !== "") {
|
1714
|
+
writer.uint32(18).string(message.fullName);
|
1715
|
+
}
|
1716
|
+
if (message.type !== undefined && message.type !== "") {
|
1717
|
+
writer.uint32(26).string(message.type);
|
1718
|
+
}
|
1719
|
+
if (message.reserved !== undefined && message.reserved !== false) {
|
1720
|
+
writer.uint32(40).bool(message.reserved);
|
1721
|
+
}
|
1722
|
+
if (message.repeated !== undefined && message.repeated !== false) {
|
1723
|
+
writer.uint32(48).bool(message.repeated);
|
1724
|
+
}
|
1725
|
+
return writer;
|
1726
|
+
},
|
1727
|
+
decode(input, length) {
|
1728
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1729
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1730
|
+
const message = createBaseExtensionRangeOptions_Declaration();
|
1731
|
+
while (reader.pos < end) {
|
1732
|
+
const tag = reader.uint32();
|
1733
|
+
switch (tag >>> 3) {
|
1734
|
+
case 1:
|
1735
|
+
if (tag !== 8) {
|
1736
|
+
break;
|
1737
|
+
}
|
1738
|
+
message.number = reader.int32();
|
1739
|
+
continue;
|
1740
|
+
case 2:
|
1741
|
+
if (tag !== 18) {
|
1742
|
+
break;
|
1743
|
+
}
|
1744
|
+
message.fullName = reader.string();
|
1745
|
+
continue;
|
1746
|
+
case 3:
|
1747
|
+
if (tag !== 26) {
|
1748
|
+
break;
|
1749
|
+
}
|
1750
|
+
message.type = reader.string();
|
1751
|
+
continue;
|
1752
|
+
case 5:
|
1753
|
+
if (tag !== 40) {
|
1754
|
+
break;
|
1755
|
+
}
|
1756
|
+
message.reserved = reader.bool();
|
1757
|
+
continue;
|
1758
|
+
case 6:
|
1759
|
+
if (tag !== 48) {
|
1760
|
+
break;
|
1761
|
+
}
|
1762
|
+
message.repeated = reader.bool();
|
1763
|
+
continue;
|
1764
|
+
}
|
1765
|
+
if ((tag & 7) === 4 || tag === 0) {
|
1766
|
+
break;
|
1767
|
+
}
|
1768
|
+
reader.skipType(tag & 7);
|
1769
|
+
}
|
1770
|
+
return message;
|
1771
|
+
},
|
1772
|
+
fromJSON(object) {
|
1773
|
+
return {
|
1774
|
+
number: isSet(object.number) ? globalThis.Number(object.number) : 0,
|
1775
|
+
fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
|
1776
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
1777
|
+
reserved: isSet(object.reserved) ? globalThis.Boolean(object.reserved) : false,
|
1778
|
+
repeated: isSet(object.repeated) ? globalThis.Boolean(object.repeated) : false,
|
1779
|
+
};
|
1780
|
+
},
|
1781
|
+
toJSON(message) {
|
1782
|
+
const obj = {};
|
1783
|
+
if (message.number !== undefined && message.number !== 0) {
|
1784
|
+
obj.number = Math.round(message.number);
|
1785
|
+
}
|
1786
|
+
if (message.fullName !== undefined && message.fullName !== "") {
|
1787
|
+
obj.fullName = message.fullName;
|
1788
|
+
}
|
1789
|
+
if (message.type !== undefined && message.type !== "") {
|
1790
|
+
obj.type = message.type;
|
1791
|
+
}
|
1792
|
+
if (message.reserved !== undefined && message.reserved !== false) {
|
1793
|
+
obj.reserved = message.reserved;
|
1794
|
+
}
|
1795
|
+
if (message.repeated !== undefined && message.repeated !== false) {
|
1796
|
+
obj.repeated = message.repeated;
|
1797
|
+
}
|
1798
|
+
return obj;
|
1799
|
+
},
|
1800
|
+
create(base) {
|
1801
|
+
return ExtensionRangeOptions_Declaration.fromPartial(base ?? {});
|
1802
|
+
},
|
1803
|
+
fromPartial(object) {
|
1804
|
+
const message = createBaseExtensionRangeOptions_Declaration();
|
1805
|
+
message.number = object.number ?? 0;
|
1806
|
+
message.fullName = object.fullName ?? "";
|
1807
|
+
message.type = object.type ?? "";
|
1808
|
+
message.reserved = object.reserved ?? false;
|
1809
|
+
message.repeated = object.repeated ?? false;
|
1810
|
+
return message;
|
1811
|
+
},
|
1812
|
+
};
|
1813
|
+
messageTypeRegistry.set(ExtensionRangeOptions_Declaration.$type, ExtensionRangeOptions_Declaration);
|
1274
1814
|
function createBaseFieldDescriptorProto() {
|
1275
1815
|
return {
|
1276
1816
|
name: "",
|
@@ -2051,7 +2591,6 @@ function createBaseFileOptions() {
|
|
2051
2591
|
ccGenericServices: false,
|
2052
2592
|
javaGenericServices: false,
|
2053
2593
|
pyGenericServices: false,
|
2054
|
-
phpGenericServices: false,
|
2055
2594
|
deprecated: false,
|
2056
2595
|
ccEnableArenas: true,
|
2057
2596
|
objcClassPrefix: "",
|
@@ -2061,6 +2600,7 @@ function createBaseFileOptions() {
|
|
2061
2600
|
phpNamespace: "",
|
2062
2601
|
phpMetadataNamespace: "",
|
2063
2602
|
rubyPackage: "",
|
2603
|
+
features: undefined,
|
2064
2604
|
uninterpretedOption: [],
|
2065
2605
|
};
|
2066
2606
|
}
|
@@ -2097,9 +2637,6 @@ export const FileOptions = {
|
|
2097
2637
|
if (message.pyGenericServices !== undefined && message.pyGenericServices !== false) {
|
2098
2638
|
writer.uint32(144).bool(message.pyGenericServices);
|
2099
2639
|
}
|
2100
|
-
if (message.phpGenericServices !== undefined && message.phpGenericServices !== false) {
|
2101
|
-
writer.uint32(336).bool(message.phpGenericServices);
|
2102
|
-
}
|
2103
2640
|
if (message.deprecated !== undefined && message.deprecated !== false) {
|
2104
2641
|
writer.uint32(184).bool(message.deprecated);
|
2105
2642
|
}
|
@@ -2127,6 +2664,9 @@ export const FileOptions = {
|
|
2127
2664
|
if (message.rubyPackage !== undefined && message.rubyPackage !== "") {
|
2128
2665
|
writer.uint32(362).string(message.rubyPackage);
|
2129
2666
|
}
|
2667
|
+
if (message.features !== undefined) {
|
2668
|
+
FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
|
2669
|
+
}
|
2130
2670
|
for (const v of message.uninterpretedOption) {
|
2131
2671
|
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
2132
2672
|
}
|
@@ -2199,12 +2739,6 @@ export const FileOptions = {
|
|
2199
2739
|
}
|
2200
2740
|
message.pyGenericServices = reader.bool();
|
2201
2741
|
continue;
|
2202
|
-
case 42:
|
2203
|
-
if (tag !== 336) {
|
2204
|
-
break;
|
2205
|
-
}
|
2206
|
-
message.phpGenericServices = reader.bool();
|
2207
|
-
continue;
|
2208
2742
|
case 23:
|
2209
2743
|
if (tag !== 184) {
|
2210
2744
|
break;
|
@@ -2259,6 +2793,12 @@ export const FileOptions = {
|
|
2259
2793
|
}
|
2260
2794
|
message.rubyPackage = reader.string();
|
2261
2795
|
continue;
|
2796
|
+
case 50:
|
2797
|
+
if (tag !== 402) {
|
2798
|
+
break;
|
2799
|
+
}
|
2800
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
2801
|
+
continue;
|
2262
2802
|
case 999:
|
2263
2803
|
if (tag !== 7994) {
|
2264
2804
|
break;
|
@@ -2287,7 +2827,6 @@ export const FileOptions = {
|
|
2287
2827
|
ccGenericServices: isSet(object.ccGenericServices) ? globalThis.Boolean(object.ccGenericServices) : false,
|
2288
2828
|
javaGenericServices: isSet(object.javaGenericServices) ? globalThis.Boolean(object.javaGenericServices) : false,
|
2289
2829
|
pyGenericServices: isSet(object.pyGenericServices) ? globalThis.Boolean(object.pyGenericServices) : false,
|
2290
|
-
phpGenericServices: isSet(object.phpGenericServices) ? globalThis.Boolean(object.phpGenericServices) : false,
|
2291
2830
|
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
2292
2831
|
ccEnableArenas: isSet(object.ccEnableArenas) ? globalThis.Boolean(object.ccEnableArenas) : true,
|
2293
2832
|
objcClassPrefix: isSet(object.objcClassPrefix) ? globalThis.String(object.objcClassPrefix) : "",
|
@@ -2297,6 +2836,7 @@ export const FileOptions = {
|
|
2297
2836
|
phpNamespace: isSet(object.phpNamespace) ? globalThis.String(object.phpNamespace) : "",
|
2298
2837
|
phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? globalThis.String(object.phpMetadataNamespace) : "",
|
2299
2838
|
rubyPackage: isSet(object.rubyPackage) ? globalThis.String(object.rubyPackage) : "",
|
2839
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
2300
2840
|
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
2301
2841
|
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
2302
2842
|
: [],
|
@@ -2334,9 +2874,6 @@ export const FileOptions = {
|
|
2334
2874
|
if (message.pyGenericServices !== undefined && message.pyGenericServices !== false) {
|
2335
2875
|
obj.pyGenericServices = message.pyGenericServices;
|
2336
2876
|
}
|
2337
|
-
if (message.phpGenericServices !== undefined && message.phpGenericServices !== false) {
|
2338
|
-
obj.phpGenericServices = message.phpGenericServices;
|
2339
|
-
}
|
2340
2877
|
if (message.deprecated !== undefined && message.deprecated !== false) {
|
2341
2878
|
obj.deprecated = message.deprecated;
|
2342
2879
|
}
|
@@ -2364,6 +2901,9 @@ export const FileOptions = {
|
|
2364
2901
|
if (message.rubyPackage !== undefined && message.rubyPackage !== "") {
|
2365
2902
|
obj.rubyPackage = message.rubyPackage;
|
2366
2903
|
}
|
2904
|
+
if (message.features !== undefined) {
|
2905
|
+
obj.features = FeatureSet.toJSON(message.features);
|
2906
|
+
}
|
2367
2907
|
if (message.uninterpretedOption?.length) {
|
2368
2908
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
2369
2909
|
}
|
@@ -2384,7 +2924,6 @@ export const FileOptions = {
|
|
2384
2924
|
message.ccGenericServices = object.ccGenericServices ?? false;
|
2385
2925
|
message.javaGenericServices = object.javaGenericServices ?? false;
|
2386
2926
|
message.pyGenericServices = object.pyGenericServices ?? false;
|
2387
|
-
message.phpGenericServices = object.phpGenericServices ?? false;
|
2388
2927
|
message.deprecated = object.deprecated ?? false;
|
2389
2928
|
message.ccEnableArenas = object.ccEnableArenas ?? true;
|
2390
2929
|
message.objcClassPrefix = object.objcClassPrefix ?? "";
|
@@ -2394,6 +2933,9 @@ export const FileOptions = {
|
|
2394
2933
|
message.phpNamespace = object.phpNamespace ?? "";
|
2395
2934
|
message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
|
2396
2935
|
message.rubyPackage = object.rubyPackage ?? "";
|
2936
|
+
message.features = (object.features !== undefined && object.features !== null)
|
2937
|
+
? FeatureSet.fromPartial(object.features)
|
2938
|
+
: undefined;
|
2397
2939
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
2398
2940
|
return message;
|
2399
2941
|
},
|
@@ -2406,6 +2948,7 @@ function createBaseMessageOptions() {
|
|
2406
2948
|
deprecated: false,
|
2407
2949
|
mapEntry: false,
|
2408
2950
|
deprecatedLegacyJsonFieldConflicts: false,
|
2951
|
+
features: undefined,
|
2409
2952
|
uninterpretedOption: [],
|
2410
2953
|
};
|
2411
2954
|
}
|
@@ -2427,6 +2970,9 @@ export const MessageOptions = {
|
|
2427
2970
|
if (message.deprecatedLegacyJsonFieldConflicts !== undefined && message.deprecatedLegacyJsonFieldConflicts !== false) {
|
2428
2971
|
writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
|
2429
2972
|
}
|
2973
|
+
if (message.features !== undefined) {
|
2974
|
+
FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim();
|
2975
|
+
}
|
2430
2976
|
for (const v of message.uninterpretedOption) {
|
2431
2977
|
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
2432
2978
|
}
|
@@ -2469,6 +3015,12 @@ export const MessageOptions = {
|
|
2469
3015
|
}
|
2470
3016
|
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
2471
3017
|
continue;
|
3018
|
+
case 12:
|
3019
|
+
if (tag !== 98) {
|
3020
|
+
break;
|
3021
|
+
}
|
3022
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
3023
|
+
continue;
|
2472
3024
|
case 999:
|
2473
3025
|
if (tag !== 7994) {
|
2474
3026
|
break;
|
@@ -2496,6 +3048,7 @@ export const MessageOptions = {
|
|
2496
3048
|
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
|
2497
3049
|
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
2498
3050
|
: false,
|
3051
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
2499
3052
|
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
2500
3053
|
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
2501
3054
|
: [],
|
@@ -2518,6 +3071,9 @@ export const MessageOptions = {
|
|
2518
3071
|
if (message.deprecatedLegacyJsonFieldConflicts !== undefined && message.deprecatedLegacyJsonFieldConflicts !== false) {
|
2519
3072
|
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
2520
3073
|
}
|
3074
|
+
if (message.features !== undefined) {
|
3075
|
+
obj.features = FeatureSet.toJSON(message.features);
|
3076
|
+
}
|
2521
3077
|
if (message.uninterpretedOption?.length) {
|
2522
3078
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
2523
3079
|
}
|
@@ -2533,6 +3089,9 @@ export const MessageOptions = {
|
|
2533
3089
|
message.deprecated = object.deprecated ?? false;
|
2534
3090
|
message.mapEntry = object.mapEntry ?? false;
|
2535
3091
|
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
|
3092
|
+
message.features = (object.features !== undefined && object.features !== null)
|
3093
|
+
? FeatureSet.fromPartial(object.features)
|
3094
|
+
: undefined;
|
2536
3095
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
2537
3096
|
return message;
|
2538
3097
|
},
|
@@ -2549,7 +3108,9 @@ function createBaseFieldOptions() {
|
|
2549
3108
|
weak: false,
|
2550
3109
|
debugRedact: false,
|
2551
3110
|
retention: 0,
|
2552
|
-
|
3111
|
+
targets: [],
|
3112
|
+
editionDefaults: [],
|
3113
|
+
features: undefined,
|
2553
3114
|
uninterpretedOption: [],
|
2554
3115
|
};
|
2555
3116
|
}
|
@@ -2583,8 +3144,16 @@ export const FieldOptions = {
|
|
2583
3144
|
if (message.retention !== undefined && message.retention !== 0) {
|
2584
3145
|
writer.uint32(136).int32(message.retention);
|
2585
3146
|
}
|
2586
|
-
|
2587
|
-
|
3147
|
+
writer.uint32(154).fork();
|
3148
|
+
for (const v of message.targets) {
|
3149
|
+
writer.int32(v);
|
3150
|
+
}
|
3151
|
+
writer.ldelim();
|
3152
|
+
for (const v of message.editionDefaults) {
|
3153
|
+
FieldOptions_EditionDefault.encode(v, writer.uint32(162).fork()).ldelim();
|
3154
|
+
}
|
3155
|
+
if (message.features !== undefined) {
|
3156
|
+
FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();
|
2588
3157
|
}
|
2589
3158
|
for (const v of message.uninterpretedOption) {
|
2590
3159
|
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
@@ -2652,11 +3221,30 @@ export const FieldOptions = {
|
|
2652
3221
|
}
|
2653
3222
|
message.retention = reader.int32();
|
2654
3223
|
continue;
|
2655
|
-
case
|
2656
|
-
if (tag
|
3224
|
+
case 19:
|
3225
|
+
if (tag === 152) {
|
3226
|
+
message.targets.push(reader.int32());
|
3227
|
+
continue;
|
3228
|
+
}
|
3229
|
+
if (tag === 154) {
|
3230
|
+
const end2 = reader.uint32() + reader.pos;
|
3231
|
+
while (reader.pos < end2) {
|
3232
|
+
message.targets.push(reader.int32());
|
3233
|
+
}
|
3234
|
+
continue;
|
3235
|
+
}
|
3236
|
+
break;
|
3237
|
+
case 20:
|
3238
|
+
if (tag !== 162) {
|
3239
|
+
break;
|
3240
|
+
}
|
3241
|
+
message.editionDefaults.push(FieldOptions_EditionDefault.decode(reader, reader.uint32()));
|
3242
|
+
continue;
|
3243
|
+
case 21:
|
3244
|
+
if (tag !== 170) {
|
2657
3245
|
break;
|
2658
3246
|
}
|
2659
|
-
message.
|
3247
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
2660
3248
|
continue;
|
2661
3249
|
case 999:
|
2662
3250
|
if (tag !== 7994) {
|
@@ -2683,7 +3271,13 @@ export const FieldOptions = {
|
|
2683
3271
|
weak: isSet(object.weak) ? globalThis.Boolean(object.weak) : false,
|
2684
3272
|
debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
|
2685
3273
|
retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,
|
2686
|
-
|
3274
|
+
targets: globalThis.Array.isArray(object?.targets)
|
3275
|
+
? object.targets.map((e) => fieldOptions_OptionTargetTypeFromJSON(e))
|
3276
|
+
: [],
|
3277
|
+
editionDefaults: globalThis.Array.isArray(object?.editionDefaults)
|
3278
|
+
? object.editionDefaults.map((e) => FieldOptions_EditionDefault.fromJSON(e))
|
3279
|
+
: [],
|
3280
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
2687
3281
|
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
2688
3282
|
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
2689
3283
|
: [],
|
@@ -2718,8 +3312,14 @@ export const FieldOptions = {
|
|
2718
3312
|
if (message.retention !== undefined && message.retention !== 0) {
|
2719
3313
|
obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);
|
2720
3314
|
}
|
2721
|
-
if (message.
|
2722
|
-
obj.
|
3315
|
+
if (message.targets?.length) {
|
3316
|
+
obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e));
|
3317
|
+
}
|
3318
|
+
if (message.editionDefaults?.length) {
|
3319
|
+
obj.editionDefaults = message.editionDefaults.map((e) => FieldOptions_EditionDefault.toJSON(e));
|
3320
|
+
}
|
3321
|
+
if (message.features !== undefined) {
|
3322
|
+
obj.features = FeatureSet.toJSON(message.features);
|
2723
3323
|
}
|
2724
3324
|
if (message.uninterpretedOption?.length) {
|
2725
3325
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
@@ -2740,18 +3340,93 @@ export const FieldOptions = {
|
|
2740
3340
|
message.weak = object.weak ?? false;
|
2741
3341
|
message.debugRedact = object.debugRedact ?? false;
|
2742
3342
|
message.retention = object.retention ?? 0;
|
2743
|
-
message.
|
3343
|
+
message.targets = object.targets?.map((e) => e) || [];
|
3344
|
+
message.editionDefaults = object.editionDefaults?.map((e) => FieldOptions_EditionDefault.fromPartial(e)) || [];
|
3345
|
+
message.features = (object.features !== undefined && object.features !== null)
|
3346
|
+
? FeatureSet.fromPartial(object.features)
|
3347
|
+
: undefined;
|
2744
3348
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
2745
3349
|
return message;
|
2746
3350
|
},
|
2747
3351
|
};
|
2748
3352
|
messageTypeRegistry.set(FieldOptions.$type, FieldOptions);
|
3353
|
+
function createBaseFieldOptions_EditionDefault() {
|
3354
|
+
return { edition: 0, value: "" };
|
3355
|
+
}
|
3356
|
+
export const FieldOptions_EditionDefault = {
|
3357
|
+
$type: "google.protobuf.FieldOptions.EditionDefault",
|
3358
|
+
encode(message, writer = _m0.Writer.create()) {
|
3359
|
+
if (message.edition !== undefined && message.edition !== 0) {
|
3360
|
+
writer.uint32(24).int32(message.edition);
|
3361
|
+
}
|
3362
|
+
if (message.value !== undefined && message.value !== "") {
|
3363
|
+
writer.uint32(18).string(message.value);
|
3364
|
+
}
|
3365
|
+
return writer;
|
3366
|
+
},
|
3367
|
+
decode(input, length) {
|
3368
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3369
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3370
|
+
const message = createBaseFieldOptions_EditionDefault();
|
3371
|
+
while (reader.pos < end) {
|
3372
|
+
const tag = reader.uint32();
|
3373
|
+
switch (tag >>> 3) {
|
3374
|
+
case 3:
|
3375
|
+
if (tag !== 24) {
|
3376
|
+
break;
|
3377
|
+
}
|
3378
|
+
message.edition = reader.int32();
|
3379
|
+
continue;
|
3380
|
+
case 2:
|
3381
|
+
if (tag !== 18) {
|
3382
|
+
break;
|
3383
|
+
}
|
3384
|
+
message.value = reader.string();
|
3385
|
+
continue;
|
3386
|
+
}
|
3387
|
+
if ((tag & 7) === 4 || tag === 0) {
|
3388
|
+
break;
|
3389
|
+
}
|
3390
|
+
reader.skipType(tag & 7);
|
3391
|
+
}
|
3392
|
+
return message;
|
3393
|
+
},
|
3394
|
+
fromJSON(object) {
|
3395
|
+
return {
|
3396
|
+
edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,
|
3397
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
3398
|
+
};
|
3399
|
+
},
|
3400
|
+
toJSON(message) {
|
3401
|
+
const obj = {};
|
3402
|
+
if (message.edition !== undefined && message.edition !== 0) {
|
3403
|
+
obj.edition = editionToJSON(message.edition);
|
3404
|
+
}
|
3405
|
+
if (message.value !== undefined && message.value !== "") {
|
3406
|
+
obj.value = message.value;
|
3407
|
+
}
|
3408
|
+
return obj;
|
3409
|
+
},
|
3410
|
+
create(base) {
|
3411
|
+
return FieldOptions_EditionDefault.fromPartial(base ?? {});
|
3412
|
+
},
|
3413
|
+
fromPartial(object) {
|
3414
|
+
const message = createBaseFieldOptions_EditionDefault();
|
3415
|
+
message.edition = object.edition ?? 0;
|
3416
|
+
message.value = object.value ?? "";
|
3417
|
+
return message;
|
3418
|
+
},
|
3419
|
+
};
|
3420
|
+
messageTypeRegistry.set(FieldOptions_EditionDefault.$type, FieldOptions_EditionDefault);
|
2749
3421
|
function createBaseOneofOptions() {
|
2750
|
-
return { uninterpretedOption: [] };
|
3422
|
+
return { features: undefined, uninterpretedOption: [] };
|
2751
3423
|
}
|
2752
3424
|
export const OneofOptions = {
|
2753
3425
|
$type: "google.protobuf.OneofOptions",
|
2754
3426
|
encode(message, writer = _m0.Writer.create()) {
|
3427
|
+
if (message.features !== undefined) {
|
3428
|
+
FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim();
|
3429
|
+
}
|
2755
3430
|
for (const v of message.uninterpretedOption) {
|
2756
3431
|
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
2757
3432
|
}
|
@@ -2764,6 +3439,12 @@ export const OneofOptions = {
|
|
2764
3439
|
while (reader.pos < end) {
|
2765
3440
|
const tag = reader.uint32();
|
2766
3441
|
switch (tag >>> 3) {
|
3442
|
+
case 1:
|
3443
|
+
if (tag !== 10) {
|
3444
|
+
break;
|
3445
|
+
}
|
3446
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
3447
|
+
continue;
|
2767
3448
|
case 999:
|
2768
3449
|
if (tag !== 7994) {
|
2769
3450
|
break;
|
@@ -2780,6 +3461,7 @@ export const OneofOptions = {
|
|
2780
3461
|
},
|
2781
3462
|
fromJSON(object) {
|
2782
3463
|
return {
|
3464
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
2783
3465
|
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
2784
3466
|
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
2785
3467
|
: [],
|
@@ -2787,6 +3469,9 @@ export const OneofOptions = {
|
|
2787
3469
|
},
|
2788
3470
|
toJSON(message) {
|
2789
3471
|
const obj = {};
|
3472
|
+
if (message.features !== undefined) {
|
3473
|
+
obj.features = FeatureSet.toJSON(message.features);
|
3474
|
+
}
|
2790
3475
|
if (message.uninterpretedOption?.length) {
|
2791
3476
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
2792
3477
|
}
|
@@ -2797,13 +3482,22 @@ export const OneofOptions = {
|
|
2797
3482
|
},
|
2798
3483
|
fromPartial(object) {
|
2799
3484
|
const message = createBaseOneofOptions();
|
3485
|
+
message.features = (object.features !== undefined && object.features !== null)
|
3486
|
+
? FeatureSet.fromPartial(object.features)
|
3487
|
+
: undefined;
|
2800
3488
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
2801
3489
|
return message;
|
2802
3490
|
},
|
2803
3491
|
};
|
2804
3492
|
messageTypeRegistry.set(OneofOptions.$type, OneofOptions);
|
2805
3493
|
function createBaseEnumOptions() {
|
2806
|
-
return {
|
3494
|
+
return {
|
3495
|
+
allowAlias: false,
|
3496
|
+
deprecated: false,
|
3497
|
+
deprecatedLegacyJsonFieldConflicts: false,
|
3498
|
+
features: undefined,
|
3499
|
+
uninterpretedOption: [],
|
3500
|
+
};
|
2807
3501
|
}
|
2808
3502
|
export const EnumOptions = {
|
2809
3503
|
$type: "google.protobuf.EnumOptions",
|
@@ -2817,6 +3511,9 @@ export const EnumOptions = {
|
|
2817
3511
|
if (message.deprecatedLegacyJsonFieldConflicts !== undefined && message.deprecatedLegacyJsonFieldConflicts !== false) {
|
2818
3512
|
writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
|
2819
3513
|
}
|
3514
|
+
if (message.features !== undefined) {
|
3515
|
+
FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim();
|
3516
|
+
}
|
2820
3517
|
for (const v of message.uninterpretedOption) {
|
2821
3518
|
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
2822
3519
|
}
|
@@ -2847,6 +3544,12 @@ export const EnumOptions = {
|
|
2847
3544
|
}
|
2848
3545
|
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
2849
3546
|
continue;
|
3547
|
+
case 7:
|
3548
|
+
if (tag !== 58) {
|
3549
|
+
break;
|
3550
|
+
}
|
3551
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
3552
|
+
continue;
|
2850
3553
|
case 999:
|
2851
3554
|
if (tag !== 7994) {
|
2852
3555
|
break;
|
@@ -2868,6 +3571,7 @@ export const EnumOptions = {
|
|
2868
3571
|
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
|
2869
3572
|
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
2870
3573
|
: false,
|
3574
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
2871
3575
|
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
2872
3576
|
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
2873
3577
|
: [],
|
@@ -2884,6 +3588,9 @@ export const EnumOptions = {
|
|
2884
3588
|
if (message.deprecatedLegacyJsonFieldConflicts !== undefined && message.deprecatedLegacyJsonFieldConflicts !== false) {
|
2885
3589
|
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
2886
3590
|
}
|
3591
|
+
if (message.features !== undefined) {
|
3592
|
+
obj.features = FeatureSet.toJSON(message.features);
|
3593
|
+
}
|
2887
3594
|
if (message.uninterpretedOption?.length) {
|
2888
3595
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
2889
3596
|
}
|
@@ -2897,13 +3604,16 @@ export const EnumOptions = {
|
|
2897
3604
|
message.allowAlias = object.allowAlias ?? false;
|
2898
3605
|
message.deprecated = object.deprecated ?? false;
|
2899
3606
|
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
|
3607
|
+
message.features = (object.features !== undefined && object.features !== null)
|
3608
|
+
? FeatureSet.fromPartial(object.features)
|
3609
|
+
: undefined;
|
2900
3610
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
2901
3611
|
return message;
|
2902
3612
|
},
|
2903
3613
|
};
|
2904
3614
|
messageTypeRegistry.set(EnumOptions.$type, EnumOptions);
|
2905
3615
|
function createBaseEnumValueOptions() {
|
2906
|
-
return { deprecated: false, uninterpretedOption: [] };
|
3616
|
+
return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] };
|
2907
3617
|
}
|
2908
3618
|
export const EnumValueOptions = {
|
2909
3619
|
$type: "google.protobuf.EnumValueOptions",
|
@@ -2911,6 +3621,12 @@ export const EnumValueOptions = {
|
|
2911
3621
|
if (message.deprecated !== undefined && message.deprecated !== false) {
|
2912
3622
|
writer.uint32(8).bool(message.deprecated);
|
2913
3623
|
}
|
3624
|
+
if (message.features !== undefined) {
|
3625
|
+
FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
|
3626
|
+
}
|
3627
|
+
if (message.debugRedact !== undefined && message.debugRedact !== false) {
|
3628
|
+
writer.uint32(24).bool(message.debugRedact);
|
3629
|
+
}
|
2914
3630
|
for (const v of message.uninterpretedOption) {
|
2915
3631
|
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
2916
3632
|
}
|
@@ -2929,6 +3645,18 @@ export const EnumValueOptions = {
|
|
2929
3645
|
}
|
2930
3646
|
message.deprecated = reader.bool();
|
2931
3647
|
continue;
|
3648
|
+
case 2:
|
3649
|
+
if (tag !== 18) {
|
3650
|
+
break;
|
3651
|
+
}
|
3652
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
3653
|
+
continue;
|
3654
|
+
case 3:
|
3655
|
+
if (tag !== 24) {
|
3656
|
+
break;
|
3657
|
+
}
|
3658
|
+
message.debugRedact = reader.bool();
|
3659
|
+
continue;
|
2932
3660
|
case 999:
|
2933
3661
|
if (tag !== 7994) {
|
2934
3662
|
break;
|
@@ -2946,6 +3674,8 @@ export const EnumValueOptions = {
|
|
2946
3674
|
fromJSON(object) {
|
2947
3675
|
return {
|
2948
3676
|
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
3677
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
3678
|
+
debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
|
2949
3679
|
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
2950
3680
|
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
2951
3681
|
: [],
|
@@ -2956,6 +3686,12 @@ export const EnumValueOptions = {
|
|
2956
3686
|
if (message.deprecated !== undefined && message.deprecated !== false) {
|
2957
3687
|
obj.deprecated = message.deprecated;
|
2958
3688
|
}
|
3689
|
+
if (message.features !== undefined) {
|
3690
|
+
obj.features = FeatureSet.toJSON(message.features);
|
3691
|
+
}
|
3692
|
+
if (message.debugRedact !== undefined && message.debugRedact !== false) {
|
3693
|
+
obj.debugRedact = message.debugRedact;
|
3694
|
+
}
|
2959
3695
|
if (message.uninterpretedOption?.length) {
|
2960
3696
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
2961
3697
|
}
|
@@ -2967,17 +3703,24 @@ export const EnumValueOptions = {
|
|
2967
3703
|
fromPartial(object) {
|
2968
3704
|
const message = createBaseEnumValueOptions();
|
2969
3705
|
message.deprecated = object.deprecated ?? false;
|
3706
|
+
message.features = (object.features !== undefined && object.features !== null)
|
3707
|
+
? FeatureSet.fromPartial(object.features)
|
3708
|
+
: undefined;
|
3709
|
+
message.debugRedact = object.debugRedact ?? false;
|
2970
3710
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
2971
3711
|
return message;
|
2972
3712
|
},
|
2973
3713
|
};
|
2974
3714
|
messageTypeRegistry.set(EnumValueOptions.$type, EnumValueOptions);
|
2975
3715
|
function createBaseServiceOptions() {
|
2976
|
-
return { deprecated: false, uninterpretedOption: [] };
|
3716
|
+
return { features: undefined, deprecated: false, uninterpretedOption: [] };
|
2977
3717
|
}
|
2978
3718
|
export const ServiceOptions = {
|
2979
3719
|
$type: "google.protobuf.ServiceOptions",
|
2980
3720
|
encode(message, writer = _m0.Writer.create()) {
|
3721
|
+
if (message.features !== undefined) {
|
3722
|
+
FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim();
|
3723
|
+
}
|
2981
3724
|
if (message.deprecated !== undefined && message.deprecated !== false) {
|
2982
3725
|
writer.uint32(264).bool(message.deprecated);
|
2983
3726
|
}
|
@@ -2993,6 +3736,12 @@ export const ServiceOptions = {
|
|
2993
3736
|
while (reader.pos < end) {
|
2994
3737
|
const tag = reader.uint32();
|
2995
3738
|
switch (tag >>> 3) {
|
3739
|
+
case 34:
|
3740
|
+
if (tag !== 274) {
|
3741
|
+
break;
|
3742
|
+
}
|
3743
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
3744
|
+
continue;
|
2996
3745
|
case 33:
|
2997
3746
|
if (tag !== 264) {
|
2998
3747
|
break;
|
@@ -3015,6 +3764,7 @@ export const ServiceOptions = {
|
|
3015
3764
|
},
|
3016
3765
|
fromJSON(object) {
|
3017
3766
|
return {
|
3767
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
3018
3768
|
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
3019
3769
|
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
3020
3770
|
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
@@ -3023,6 +3773,9 @@ export const ServiceOptions = {
|
|
3023
3773
|
},
|
3024
3774
|
toJSON(message) {
|
3025
3775
|
const obj = {};
|
3776
|
+
if (message.features !== undefined) {
|
3777
|
+
obj.features = FeatureSet.toJSON(message.features);
|
3778
|
+
}
|
3026
3779
|
if (message.deprecated !== undefined && message.deprecated !== false) {
|
3027
3780
|
obj.deprecated = message.deprecated;
|
3028
3781
|
}
|
@@ -3036,6 +3789,9 @@ export const ServiceOptions = {
|
|
3036
3789
|
},
|
3037
3790
|
fromPartial(object) {
|
3038
3791
|
const message = createBaseServiceOptions();
|
3792
|
+
message.features = (object.features !== undefined && object.features !== null)
|
3793
|
+
? FeatureSet.fromPartial(object.features)
|
3794
|
+
: undefined;
|
3039
3795
|
message.deprecated = object.deprecated ?? false;
|
3040
3796
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
3041
3797
|
return message;
|
@@ -3043,7 +3799,7 @@ export const ServiceOptions = {
|
|
3043
3799
|
};
|
3044
3800
|
messageTypeRegistry.set(ServiceOptions.$type, ServiceOptions);
|
3045
3801
|
function createBaseMethodOptions() {
|
3046
|
-
return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };
|
3802
|
+
return { deprecated: false, idempotencyLevel: 0, features: undefined, uninterpretedOption: [] };
|
3047
3803
|
}
|
3048
3804
|
export const MethodOptions = {
|
3049
3805
|
$type: "google.protobuf.MethodOptions",
|
@@ -3054,6 +3810,9 @@ export const MethodOptions = {
|
|
3054
3810
|
if (message.idempotencyLevel !== undefined && message.idempotencyLevel !== 0) {
|
3055
3811
|
writer.uint32(272).int32(message.idempotencyLevel);
|
3056
3812
|
}
|
3813
|
+
if (message.features !== undefined) {
|
3814
|
+
FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim();
|
3815
|
+
}
|
3057
3816
|
for (const v of message.uninterpretedOption) {
|
3058
3817
|
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
3059
3818
|
}
|
@@ -3078,6 +3837,12 @@ export const MethodOptions = {
|
|
3078
3837
|
}
|
3079
3838
|
message.idempotencyLevel = reader.int32();
|
3080
3839
|
continue;
|
3840
|
+
case 35:
|
3841
|
+
if (tag !== 282) {
|
3842
|
+
break;
|
3843
|
+
}
|
3844
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
3845
|
+
continue;
|
3081
3846
|
case 999:
|
3082
3847
|
if (tag !== 7994) {
|
3083
3848
|
break;
|
@@ -3098,6 +3863,7 @@ export const MethodOptions = {
|
|
3098
3863
|
idempotencyLevel: isSet(object.idempotencyLevel)
|
3099
3864
|
? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
|
3100
3865
|
: 0,
|
3866
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
3101
3867
|
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
|
3102
3868
|
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
3103
3869
|
: [],
|
@@ -3111,6 +3877,9 @@ export const MethodOptions = {
|
|
3111
3877
|
if (message.idempotencyLevel !== undefined && message.idempotencyLevel !== 0) {
|
3112
3878
|
obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);
|
3113
3879
|
}
|
3880
|
+
if (message.features !== undefined) {
|
3881
|
+
obj.features = FeatureSet.toJSON(message.features);
|
3882
|
+
}
|
3114
3883
|
if (message.uninterpretedOption?.length) {
|
3115
3884
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
|
3116
3885
|
}
|
@@ -3123,6 +3892,9 @@ export const MethodOptions = {
|
|
3123
3892
|
const message = createBaseMethodOptions();
|
3124
3893
|
message.deprecated = object.deprecated ?? false;
|
3125
3894
|
message.idempotencyLevel = object.idempotencyLevel ?? 0;
|
3895
|
+
message.features = (object.features !== undefined && object.features !== null)
|
3896
|
+
? FeatureSet.fromPartial(object.features)
|
3897
|
+
: undefined;
|
3126
3898
|
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
|
3127
3899
|
return message;
|
3128
3900
|
},
|
@@ -3344,6 +4116,293 @@ export const UninterpretedOption_NamePart = {
|
|
3344
4116
|
},
|
3345
4117
|
};
|
3346
4118
|
messageTypeRegistry.set(UninterpretedOption_NamePart.$type, UninterpretedOption_NamePart);
|
4119
|
+
function createBaseFeatureSet() {
|
4120
|
+
return {
|
4121
|
+
fieldPresence: 0,
|
4122
|
+
enumType: 0,
|
4123
|
+
repeatedFieldEncoding: 0,
|
4124
|
+
utf8Validation: 0,
|
4125
|
+
messageEncoding: 0,
|
4126
|
+
jsonFormat: 0,
|
4127
|
+
};
|
4128
|
+
}
|
4129
|
+
export const FeatureSet = {
|
4130
|
+
$type: "google.protobuf.FeatureSet",
|
4131
|
+
encode(message, writer = _m0.Writer.create()) {
|
4132
|
+
if (message.fieldPresence !== undefined && message.fieldPresence !== 0) {
|
4133
|
+
writer.uint32(8).int32(message.fieldPresence);
|
4134
|
+
}
|
4135
|
+
if (message.enumType !== undefined && message.enumType !== 0) {
|
4136
|
+
writer.uint32(16).int32(message.enumType);
|
4137
|
+
}
|
4138
|
+
if (message.repeatedFieldEncoding !== undefined && message.repeatedFieldEncoding !== 0) {
|
4139
|
+
writer.uint32(24).int32(message.repeatedFieldEncoding);
|
4140
|
+
}
|
4141
|
+
if (message.utf8Validation !== undefined && message.utf8Validation !== 0) {
|
4142
|
+
writer.uint32(32).int32(message.utf8Validation);
|
4143
|
+
}
|
4144
|
+
if (message.messageEncoding !== undefined && message.messageEncoding !== 0) {
|
4145
|
+
writer.uint32(40).int32(message.messageEncoding);
|
4146
|
+
}
|
4147
|
+
if (message.jsonFormat !== undefined && message.jsonFormat !== 0) {
|
4148
|
+
writer.uint32(48).int32(message.jsonFormat);
|
4149
|
+
}
|
4150
|
+
return writer;
|
4151
|
+
},
|
4152
|
+
decode(input, length) {
|
4153
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
4154
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
4155
|
+
const message = createBaseFeatureSet();
|
4156
|
+
while (reader.pos < end) {
|
4157
|
+
const tag = reader.uint32();
|
4158
|
+
switch (tag >>> 3) {
|
4159
|
+
case 1:
|
4160
|
+
if (tag !== 8) {
|
4161
|
+
break;
|
4162
|
+
}
|
4163
|
+
message.fieldPresence = reader.int32();
|
4164
|
+
continue;
|
4165
|
+
case 2:
|
4166
|
+
if (tag !== 16) {
|
4167
|
+
break;
|
4168
|
+
}
|
4169
|
+
message.enumType = reader.int32();
|
4170
|
+
continue;
|
4171
|
+
case 3:
|
4172
|
+
if (tag !== 24) {
|
4173
|
+
break;
|
4174
|
+
}
|
4175
|
+
message.repeatedFieldEncoding = reader.int32();
|
4176
|
+
continue;
|
4177
|
+
case 4:
|
4178
|
+
if (tag !== 32) {
|
4179
|
+
break;
|
4180
|
+
}
|
4181
|
+
message.utf8Validation = reader.int32();
|
4182
|
+
continue;
|
4183
|
+
case 5:
|
4184
|
+
if (tag !== 40) {
|
4185
|
+
break;
|
4186
|
+
}
|
4187
|
+
message.messageEncoding = reader.int32();
|
4188
|
+
continue;
|
4189
|
+
case 6:
|
4190
|
+
if (tag !== 48) {
|
4191
|
+
break;
|
4192
|
+
}
|
4193
|
+
message.jsonFormat = reader.int32();
|
4194
|
+
continue;
|
4195
|
+
}
|
4196
|
+
if ((tag & 7) === 4 || tag === 0) {
|
4197
|
+
break;
|
4198
|
+
}
|
4199
|
+
reader.skipType(tag & 7);
|
4200
|
+
}
|
4201
|
+
return message;
|
4202
|
+
},
|
4203
|
+
fromJSON(object) {
|
4204
|
+
return {
|
4205
|
+
fieldPresence: isSet(object.fieldPresence) ? featureSet_FieldPresenceFromJSON(object.fieldPresence) : 0,
|
4206
|
+
enumType: isSet(object.enumType) ? featureSet_EnumTypeFromJSON(object.enumType) : 0,
|
4207
|
+
repeatedFieldEncoding: isSet(object.repeatedFieldEncoding)
|
4208
|
+
? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding)
|
4209
|
+
: 0,
|
4210
|
+
utf8Validation: isSet(object.utf8Validation) ? featureSet_Utf8ValidationFromJSON(object.utf8Validation) : 0,
|
4211
|
+
messageEncoding: isSet(object.messageEncoding) ? featureSet_MessageEncodingFromJSON(object.messageEncoding) : 0,
|
4212
|
+
jsonFormat: isSet(object.jsonFormat) ? featureSet_JsonFormatFromJSON(object.jsonFormat) : 0,
|
4213
|
+
};
|
4214
|
+
},
|
4215
|
+
toJSON(message) {
|
4216
|
+
const obj = {};
|
4217
|
+
if (message.fieldPresence !== undefined && message.fieldPresence !== 0) {
|
4218
|
+
obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence);
|
4219
|
+
}
|
4220
|
+
if (message.enumType !== undefined && message.enumType !== 0) {
|
4221
|
+
obj.enumType = featureSet_EnumTypeToJSON(message.enumType);
|
4222
|
+
}
|
4223
|
+
if (message.repeatedFieldEncoding !== undefined && message.repeatedFieldEncoding !== 0) {
|
4224
|
+
obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding);
|
4225
|
+
}
|
4226
|
+
if (message.utf8Validation !== undefined && message.utf8Validation !== 0) {
|
4227
|
+
obj.utf8Validation = featureSet_Utf8ValidationToJSON(message.utf8Validation);
|
4228
|
+
}
|
4229
|
+
if (message.messageEncoding !== undefined && message.messageEncoding !== 0) {
|
4230
|
+
obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding);
|
4231
|
+
}
|
4232
|
+
if (message.jsonFormat !== undefined && message.jsonFormat !== 0) {
|
4233
|
+
obj.jsonFormat = featureSet_JsonFormatToJSON(message.jsonFormat);
|
4234
|
+
}
|
4235
|
+
return obj;
|
4236
|
+
},
|
4237
|
+
create(base) {
|
4238
|
+
return FeatureSet.fromPartial(base ?? {});
|
4239
|
+
},
|
4240
|
+
fromPartial(object) {
|
4241
|
+
const message = createBaseFeatureSet();
|
4242
|
+
message.fieldPresence = object.fieldPresence ?? 0;
|
4243
|
+
message.enumType = object.enumType ?? 0;
|
4244
|
+
message.repeatedFieldEncoding = object.repeatedFieldEncoding ?? 0;
|
4245
|
+
message.utf8Validation = object.utf8Validation ?? 0;
|
4246
|
+
message.messageEncoding = object.messageEncoding ?? 0;
|
4247
|
+
message.jsonFormat = object.jsonFormat ?? 0;
|
4248
|
+
return message;
|
4249
|
+
},
|
4250
|
+
};
|
4251
|
+
messageTypeRegistry.set(FeatureSet.$type, FeatureSet);
|
4252
|
+
function createBaseFeatureSetDefaults() {
|
4253
|
+
return { defaults: [], minimumEdition: 0, maximumEdition: 0 };
|
4254
|
+
}
|
4255
|
+
export const FeatureSetDefaults = {
|
4256
|
+
$type: "google.protobuf.FeatureSetDefaults",
|
4257
|
+
encode(message, writer = _m0.Writer.create()) {
|
4258
|
+
for (const v of message.defaults) {
|
4259
|
+
FeatureSetDefaults_FeatureSetEditionDefault.encode(v, writer.uint32(10).fork()).ldelim();
|
4260
|
+
}
|
4261
|
+
if (message.minimumEdition !== undefined && message.minimumEdition !== 0) {
|
4262
|
+
writer.uint32(32).int32(message.minimumEdition);
|
4263
|
+
}
|
4264
|
+
if (message.maximumEdition !== undefined && message.maximumEdition !== 0) {
|
4265
|
+
writer.uint32(40).int32(message.maximumEdition);
|
4266
|
+
}
|
4267
|
+
return writer;
|
4268
|
+
},
|
4269
|
+
decode(input, length) {
|
4270
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
4271
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
4272
|
+
const message = createBaseFeatureSetDefaults();
|
4273
|
+
while (reader.pos < end) {
|
4274
|
+
const tag = reader.uint32();
|
4275
|
+
switch (tag >>> 3) {
|
4276
|
+
case 1:
|
4277
|
+
if (tag !== 10) {
|
4278
|
+
break;
|
4279
|
+
}
|
4280
|
+
message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));
|
4281
|
+
continue;
|
4282
|
+
case 4:
|
4283
|
+
if (tag !== 32) {
|
4284
|
+
break;
|
4285
|
+
}
|
4286
|
+
message.minimumEdition = reader.int32();
|
4287
|
+
continue;
|
4288
|
+
case 5:
|
4289
|
+
if (tag !== 40) {
|
4290
|
+
break;
|
4291
|
+
}
|
4292
|
+
message.maximumEdition = reader.int32();
|
4293
|
+
continue;
|
4294
|
+
}
|
4295
|
+
if ((tag & 7) === 4 || tag === 0) {
|
4296
|
+
break;
|
4297
|
+
}
|
4298
|
+
reader.skipType(tag & 7);
|
4299
|
+
}
|
4300
|
+
return message;
|
4301
|
+
},
|
4302
|
+
fromJSON(object) {
|
4303
|
+
return {
|
4304
|
+
defaults: globalThis.Array.isArray(object?.defaults)
|
4305
|
+
? object.defaults.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.fromJSON(e))
|
4306
|
+
: [],
|
4307
|
+
minimumEdition: isSet(object.minimumEdition) ? editionFromJSON(object.minimumEdition) : 0,
|
4308
|
+
maximumEdition: isSet(object.maximumEdition) ? editionFromJSON(object.maximumEdition) : 0,
|
4309
|
+
};
|
4310
|
+
},
|
4311
|
+
toJSON(message) {
|
4312
|
+
const obj = {};
|
4313
|
+
if (message.defaults?.length) {
|
4314
|
+
obj.defaults = message.defaults.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.toJSON(e));
|
4315
|
+
}
|
4316
|
+
if (message.minimumEdition !== undefined && message.minimumEdition !== 0) {
|
4317
|
+
obj.minimumEdition = editionToJSON(message.minimumEdition);
|
4318
|
+
}
|
4319
|
+
if (message.maximumEdition !== undefined && message.maximumEdition !== 0) {
|
4320
|
+
obj.maximumEdition = editionToJSON(message.maximumEdition);
|
4321
|
+
}
|
4322
|
+
return obj;
|
4323
|
+
},
|
4324
|
+
create(base) {
|
4325
|
+
return FeatureSetDefaults.fromPartial(base ?? {});
|
4326
|
+
},
|
4327
|
+
fromPartial(object) {
|
4328
|
+
const message = createBaseFeatureSetDefaults();
|
4329
|
+
message.defaults = object.defaults?.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e)) || [];
|
4330
|
+
message.minimumEdition = object.minimumEdition ?? 0;
|
4331
|
+
message.maximumEdition = object.maximumEdition ?? 0;
|
4332
|
+
return message;
|
4333
|
+
},
|
4334
|
+
};
|
4335
|
+
messageTypeRegistry.set(FeatureSetDefaults.$type, FeatureSetDefaults);
|
4336
|
+
function createBaseFeatureSetDefaults_FeatureSetEditionDefault() {
|
4337
|
+
return { edition: 0, features: undefined };
|
4338
|
+
}
|
4339
|
+
export const FeatureSetDefaults_FeatureSetEditionDefault = {
|
4340
|
+
$type: "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",
|
4341
|
+
encode(message, writer = _m0.Writer.create()) {
|
4342
|
+
if (message.edition !== undefined && message.edition !== 0) {
|
4343
|
+
writer.uint32(24).int32(message.edition);
|
4344
|
+
}
|
4345
|
+
if (message.features !== undefined) {
|
4346
|
+
FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
|
4347
|
+
}
|
4348
|
+
return writer;
|
4349
|
+
},
|
4350
|
+
decode(input, length) {
|
4351
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
4352
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
4353
|
+
const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
|
4354
|
+
while (reader.pos < end) {
|
4355
|
+
const tag = reader.uint32();
|
4356
|
+
switch (tag >>> 3) {
|
4357
|
+
case 3:
|
4358
|
+
if (tag !== 24) {
|
4359
|
+
break;
|
4360
|
+
}
|
4361
|
+
message.edition = reader.int32();
|
4362
|
+
continue;
|
4363
|
+
case 2:
|
4364
|
+
if (tag !== 18) {
|
4365
|
+
break;
|
4366
|
+
}
|
4367
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
4368
|
+
continue;
|
4369
|
+
}
|
4370
|
+
if ((tag & 7) === 4 || tag === 0) {
|
4371
|
+
break;
|
4372
|
+
}
|
4373
|
+
reader.skipType(tag & 7);
|
4374
|
+
}
|
4375
|
+
return message;
|
4376
|
+
},
|
4377
|
+
fromJSON(object) {
|
4378
|
+
return {
|
4379
|
+
edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,
|
4380
|
+
features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
|
4381
|
+
};
|
4382
|
+
},
|
4383
|
+
toJSON(message) {
|
4384
|
+
const obj = {};
|
4385
|
+
if (message.edition !== undefined && message.edition !== 0) {
|
4386
|
+
obj.edition = editionToJSON(message.edition);
|
4387
|
+
}
|
4388
|
+
if (message.features !== undefined) {
|
4389
|
+
obj.features = FeatureSet.toJSON(message.features);
|
4390
|
+
}
|
4391
|
+
return obj;
|
4392
|
+
},
|
4393
|
+
create(base) {
|
4394
|
+
return FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(base ?? {});
|
4395
|
+
},
|
4396
|
+
fromPartial(object) {
|
4397
|
+
const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
|
4398
|
+
message.edition = object.edition ?? 0;
|
4399
|
+
message.features = (object.features !== undefined && object.features !== null)
|
4400
|
+
? FeatureSet.fromPartial(object.features)
|
4401
|
+
: undefined;
|
4402
|
+
return message;
|
4403
|
+
},
|
4404
|
+
};
|
4405
|
+
messageTypeRegistry.set(FeatureSetDefaults_FeatureSetEditionDefault.$type, FeatureSetDefaults_FeatureSetEditionDefault);
|
3347
4406
|
function createBaseSourceCodeInfo() {
|
3348
4407
|
return { location: [] };
|
3349
4408
|
}
|