@fivenet-app/gen 0.9.4-0 → 0.9.5-0
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.
- package/clients.ts +150 -0
- package/google/protobuf/any.ts +10 -6
- package/google/protobuf/descriptor.ts +1255 -76
- package/google/protobuf/duration.ts +1 -2
- package/google/protobuf/timestamp.ts +3 -6
- package/package.json +2 -2
- package/perms.ts +5 -1
- package/resources/accounts/accounts.ts +1 -1
- package/resources/accounts/oauth2.ts +1 -1
- package/resources/calendar/access.ts +3 -3
- package/resources/calendar/calendar.ts +3 -1
- package/resources/centrum/access.ts +19 -4
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +11 -9
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +9 -9
- package/resources/centrum/user_unit.ts +104 -0
- package/resources/common/content/content.ts +47 -26
- package/resources/common/cron/cron.ts +37 -1
- package/resources/common/database/database.ts +37 -19
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +59 -33
- package/resources/common/i18n.ts +4 -1
- package/resources/common/tests/objects.ts +82 -0
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +7 -5
- package/resources/documents/activity.ts +3 -1
- package/resources/documents/category.ts +1 -1
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +3 -3
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +18 -3
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +47 -47
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +44 -11
- package/resources/internet/page.ts +194 -4
- package/resources/internet/search.ts +34 -10
- package/resources/jobs/activity.ts +3 -1
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +1 -1
- package/resources/jobs/labels.ts +1 -1
- package/resources/jobs/timeclock.ts +1 -1
- package/resources/laws/laws.ts +1 -1
- package/resources/livemap/livemap.ts +313 -294
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +4 -4
- package/resources/mailer/email.ts +1 -1
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +127 -21
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +1 -1
- package/resources/notifications/events.ts +74 -2
- package/resources/notifications/notifications.ts +3 -1
- package/resources/permissions/permissions.ts +3 -1
- package/resources/qualifications/access.ts +18 -9
- package/resources/qualifications/exam.ts +186 -4
- package/resources/qualifications/qualifications.ts +35 -7
- package/resources/rector/audit.ts +1 -1
- package/resources/rector/banner.ts +133 -0
- package/resources/rector/config.ts +84 -17
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +1 -1
- package/resources/sync/data.ts +1 -1
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +3 -1
- package/resources/users/job_props.ts +3 -1
- package/resources/users/job_settings.ts +47 -3
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +3 -1
- package/resources/users/licenses.ts +3 -3
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +1 -1
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +4 -8
- package/resources/wiki/activity.ts +3 -1
- package/resources/wiki/page.ts +1 -1
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +94 -17
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +43 -4
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +156 -13
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +1 -1
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +15 -2
- package/services/dmv/vehicles.client.ts +1 -1
- package/services/dmv/vehicles.ts +13 -2
- package/services/docstore/docstore.client.ts +1 -1
- package/services/docstore/docstore.ts +212 -17
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +13 -30
- package/services/internet/domain.ts +159 -196
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +13 -2
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +15 -2
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +29 -3
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +19 -19
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +129 -27
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +57 -5
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +15 -2
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +82 -7
- package/services/rector/config.client.ts +1 -1
- package/services/rector/config.ts +16 -3
- package/services/rector/filestore.client.ts +1 -1
- package/services/rector/filestore.ts +15 -2
- package/services/rector/laws.client.ts +1 -1
- package/services/rector/laws.ts +29 -3
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +72 -7
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +7 -1
- package/services/sync/sync.ts +58 -6
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +15 -2
- package/svcs.ts +6 -3
- package/resources/centrum/general.ts +0 -231
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "google/protobuf/descriptor.proto" (package "google.protobuf", syntax proto2)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
//
|
|
@@ -128,11 +128,19 @@ export interface FileDescriptorProto {
|
|
|
128
128
|
sourceCodeInfo?: SourceCodeInfo;
|
|
129
129
|
/**
|
|
130
130
|
* The syntax of the proto file.
|
|
131
|
-
* The supported values are "proto2" and "
|
|
131
|
+
* The supported values are "proto2", "proto3", and "editions".
|
|
132
|
+
*
|
|
133
|
+
* If `edition` is present, this value must be "editions".
|
|
132
134
|
*
|
|
133
135
|
* @generated from protobuf field: optional string syntax = 12;
|
|
134
136
|
*/
|
|
135
137
|
syntax?: string;
|
|
138
|
+
/**
|
|
139
|
+
* The edition of the proto file.
|
|
140
|
+
*
|
|
141
|
+
* @generated from protobuf field: optional google.protobuf.Edition edition = 14;
|
|
142
|
+
*/
|
|
143
|
+
edition?: Edition;
|
|
136
144
|
}
|
|
137
145
|
/**
|
|
138
146
|
* Describes a message type.
|
|
@@ -228,6 +236,86 @@ export interface ExtensionRangeOptions {
|
|
|
228
236
|
* @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
229
237
|
*/
|
|
230
238
|
uninterpretedOption: UninterpretedOption[];
|
|
239
|
+
/**
|
|
240
|
+
* For external users: DO NOT USE. We are in the process of open sourcing
|
|
241
|
+
* extension declaration and executing internal cleanups before it can be
|
|
242
|
+
* used externally.
|
|
243
|
+
*
|
|
244
|
+
* @generated from protobuf field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2;
|
|
245
|
+
*/
|
|
246
|
+
declaration: ExtensionRangeOptions_Declaration[];
|
|
247
|
+
/**
|
|
248
|
+
* Any features defined in the specific edition.
|
|
249
|
+
*
|
|
250
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet features = 50;
|
|
251
|
+
*/
|
|
252
|
+
features?: FeatureSet;
|
|
253
|
+
/**
|
|
254
|
+
* The verification state of the range.
|
|
255
|
+
* TODO: flip the default to DECLARATION once all empty ranges
|
|
256
|
+
* are marked as UNVERIFIED.
|
|
257
|
+
*
|
|
258
|
+
* @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3;
|
|
259
|
+
*/
|
|
260
|
+
verification?: ExtensionRangeOptions_VerificationState;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* @generated from protobuf message google.protobuf.ExtensionRangeOptions.Declaration
|
|
264
|
+
*/
|
|
265
|
+
export interface ExtensionRangeOptions_Declaration {
|
|
266
|
+
/**
|
|
267
|
+
* The extension number declared within the extension range.
|
|
268
|
+
*
|
|
269
|
+
* @generated from protobuf field: optional int32 number = 1;
|
|
270
|
+
*/
|
|
271
|
+
number?: number;
|
|
272
|
+
/**
|
|
273
|
+
* The fully-qualified name of the extension field. There must be a leading
|
|
274
|
+
* dot in front of the full name.
|
|
275
|
+
*
|
|
276
|
+
* @generated from protobuf field: optional string full_name = 2;
|
|
277
|
+
*/
|
|
278
|
+
fullName?: string;
|
|
279
|
+
/**
|
|
280
|
+
* The fully-qualified type name of the extension field. Unlike
|
|
281
|
+
* Metadata.type, Declaration.type must have a leading dot for messages
|
|
282
|
+
* and enums.
|
|
283
|
+
*
|
|
284
|
+
* @generated from protobuf field: optional string type = 3;
|
|
285
|
+
*/
|
|
286
|
+
type?: string;
|
|
287
|
+
/**
|
|
288
|
+
* If true, indicates that the number is reserved in the extension range,
|
|
289
|
+
* and any extension field with the number will fail to compile. Set this
|
|
290
|
+
* when a declared extension field is deleted.
|
|
291
|
+
*
|
|
292
|
+
* @generated from protobuf field: optional bool reserved = 5;
|
|
293
|
+
*/
|
|
294
|
+
reserved?: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* If true, indicates that the extension must be defined as repeated.
|
|
297
|
+
* Otherwise the extension must be defined as optional.
|
|
298
|
+
*
|
|
299
|
+
* @generated from protobuf field: optional bool repeated = 6;
|
|
300
|
+
*/
|
|
301
|
+
repeated?: boolean;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* The verification state of the extension range.
|
|
305
|
+
*
|
|
306
|
+
* @generated from protobuf enum google.protobuf.ExtensionRangeOptions.VerificationState
|
|
307
|
+
*/
|
|
308
|
+
export enum ExtensionRangeOptions_VerificationState {
|
|
309
|
+
/**
|
|
310
|
+
* All the extensions of the range must be declared.
|
|
311
|
+
*
|
|
312
|
+
* @generated from protobuf enum value: DECLARATION = 0;
|
|
313
|
+
*/
|
|
314
|
+
DECLARATION = 0,
|
|
315
|
+
/**
|
|
316
|
+
* @generated from protobuf enum value: UNVERIFIED = 1;
|
|
317
|
+
*/
|
|
318
|
+
UNVERIFIED = 1
|
|
231
319
|
}
|
|
232
320
|
/**
|
|
233
321
|
* Describes a field within a message.
|
|
@@ -304,12 +392,12 @@ export interface FieldDescriptorProto {
|
|
|
304
392
|
* If true, this is a proto3 "optional". When a proto3 field is optional, it
|
|
305
393
|
* tracks presence regardless of field type.
|
|
306
394
|
*
|
|
307
|
-
* When proto3_optional is true, this field must
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
395
|
+
* When proto3_optional is true, this field must belong to a oneof to signal
|
|
396
|
+
* to old proto3 clients that presence is tracked for this field. This oneof
|
|
397
|
+
* is known as a "synthetic" oneof, and this field must be its sole member
|
|
398
|
+
* (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
|
|
399
|
+
* exist in the descriptor only, and do not generate any API. Synthetic oneofs
|
|
400
|
+
* must be ordered after all "real" oneofs.
|
|
313
401
|
*
|
|
314
402
|
* For message fields, proto3_optional doesn't create any semantic change,
|
|
315
403
|
* since non-repeated message fields always track presence. However it still
|
|
@@ -382,9 +470,10 @@ export enum FieldDescriptorProto_Type {
|
|
|
382
470
|
STRING = 9,
|
|
383
471
|
/**
|
|
384
472
|
* Tag-delimited aggregate.
|
|
385
|
-
* Group type is deprecated and not supported
|
|
473
|
+
* Group type is deprecated and not supported after google.protobuf. However, Proto3
|
|
386
474
|
* implementations should still be able to parse the group wire format and
|
|
387
|
-
* treat group fields as unknown fields.
|
|
475
|
+
* treat group fields as unknown fields. In Editions, the group wire format
|
|
476
|
+
* can be enabled via the `message_encoding` feature.
|
|
388
477
|
*
|
|
389
478
|
* @generated from protobuf enum value: TYPE_GROUP = 10;
|
|
390
479
|
*/
|
|
@@ -445,13 +534,17 @@ export enum FieldDescriptorProto_Label {
|
|
|
445
534
|
*/
|
|
446
535
|
OPTIONAL = 1,
|
|
447
536
|
/**
|
|
448
|
-
* @generated from protobuf enum value:
|
|
537
|
+
* @generated from protobuf enum value: LABEL_REPEATED = 3;
|
|
449
538
|
*/
|
|
450
|
-
|
|
539
|
+
REPEATED = 3,
|
|
451
540
|
/**
|
|
452
|
-
*
|
|
541
|
+
* The required label is only allowed in google.protobuf. In proto3 and Editions
|
|
542
|
+
* it's explicitly prohibited. In Editions, the `field_presence` feature
|
|
543
|
+
* can be used to get this behavior.
|
|
544
|
+
*
|
|
545
|
+
* @generated from protobuf enum value: LABEL_REQUIRED = 2;
|
|
453
546
|
*/
|
|
454
|
-
|
|
547
|
+
REQUIRED = 2
|
|
455
548
|
}
|
|
456
549
|
/**
|
|
457
550
|
* Describes a oneof.
|
|
@@ -672,12 +765,16 @@ export interface FileOptions {
|
|
|
672
765
|
*/
|
|
673
766
|
javaGenerateEqualsAndHash?: boolean;
|
|
674
767
|
/**
|
|
675
|
-
*
|
|
676
|
-
*
|
|
677
|
-
*
|
|
678
|
-
*
|
|
679
|
-
*
|
|
680
|
-
*
|
|
768
|
+
* A proto2 file can set this to true to opt in to UTF-8 checking for Java,
|
|
769
|
+
* which will throw an exception if invalid UTF-8 is parsed from the wire or
|
|
770
|
+
* assigned to a string field.
|
|
771
|
+
*
|
|
772
|
+
* TODO: clarify exactly what kinds of field types this option
|
|
773
|
+
* applies to, and update these docs accordingly.
|
|
774
|
+
*
|
|
775
|
+
* Proto3 files already perform these checks. Setting the option explicitly to
|
|
776
|
+
* false has no effect: it cannot be used to opt proto3 files out of UTF-8
|
|
777
|
+
* checks.
|
|
681
778
|
*
|
|
682
779
|
* @generated from protobuf field: optional bool java_string_check_utf8 = 27;
|
|
683
780
|
*/
|
|
@@ -719,10 +816,6 @@ export interface FileOptions {
|
|
|
719
816
|
* @generated from protobuf field: optional bool py_generic_services = 18;
|
|
720
817
|
*/
|
|
721
818
|
pyGenericServices?: boolean;
|
|
722
|
-
/**
|
|
723
|
-
* @generated from protobuf field: optional bool php_generic_services = 42;
|
|
724
|
-
*/
|
|
725
|
-
phpGenericServices?: boolean;
|
|
726
819
|
/**
|
|
727
820
|
* Is this file deprecated?
|
|
728
821
|
* Depending on the target platform, this can emit Deprecated annotations
|
|
@@ -792,6 +885,12 @@ export interface FileOptions {
|
|
|
792
885
|
* @generated from protobuf field: optional string ruby_package = 45;
|
|
793
886
|
*/
|
|
794
887
|
rubyPackage?: string;
|
|
888
|
+
/**
|
|
889
|
+
* Any features defined in the specific edition.
|
|
890
|
+
*
|
|
891
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet features = 50;
|
|
892
|
+
*/
|
|
893
|
+
features?: FeatureSet;
|
|
795
894
|
/**
|
|
796
895
|
* The parser stores options it doesn't recognize here.
|
|
797
896
|
* See the documentation for the "Options" section above.
|
|
@@ -901,6 +1000,28 @@ export interface MessageOptions {
|
|
|
901
1000
|
* @generated from protobuf field: optional bool map_entry = 7;
|
|
902
1001
|
*/
|
|
903
1002
|
mapEntry?: boolean;
|
|
1003
|
+
/**
|
|
1004
|
+
* Enable the legacy handling of JSON field name conflicts. This lowercases
|
|
1005
|
+
* and strips underscored from the fields before comparison in proto3 only.
|
|
1006
|
+
* The new behavior takes `json_name` into account and applies to proto2 as
|
|
1007
|
+
* well.
|
|
1008
|
+
*
|
|
1009
|
+
* This should only be used as a temporary measure against broken builds due
|
|
1010
|
+
* to the change in behavior for JSON field name conflicts.
|
|
1011
|
+
*
|
|
1012
|
+
* TODO This is legacy behavior we plan to remove once downstream
|
|
1013
|
+
* teams have had time to migrate.
|
|
1014
|
+
*
|
|
1015
|
+
* @deprecated
|
|
1016
|
+
* @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
|
|
1017
|
+
*/
|
|
1018
|
+
deprecatedLegacyJsonFieldConflicts?: boolean;
|
|
1019
|
+
/**
|
|
1020
|
+
* Any features defined in the specific edition.
|
|
1021
|
+
*
|
|
1022
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet features = 12;
|
|
1023
|
+
*/
|
|
1024
|
+
features?: FeatureSet;
|
|
904
1025
|
/**
|
|
905
1026
|
* The parser stores options it doesn't recognize here. See above.
|
|
906
1027
|
*
|
|
@@ -913,10 +1034,13 @@ export interface MessageOptions {
|
|
|
913
1034
|
*/
|
|
914
1035
|
export interface FieldOptions {
|
|
915
1036
|
/**
|
|
1037
|
+
* NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
|
|
916
1038
|
* The ctype option instructs the C++ code generator to use a different
|
|
917
1039
|
* representation of the field than it normally would. See the specific
|
|
918
|
-
* options below. This option is
|
|
919
|
-
*
|
|
1040
|
+
* options below. This option is only implemented to support use of
|
|
1041
|
+
* [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
|
|
1042
|
+
* type "bytes" in the open source release.
|
|
1043
|
+
* TODO: make ctype actually deprecated.
|
|
920
1044
|
*
|
|
921
1045
|
* @generated from protobuf field: optional google.protobuf.FieldOptions.CType ctype = 1;
|
|
922
1046
|
*/
|
|
@@ -926,7 +1050,9 @@ export interface FieldOptions {
|
|
|
926
1050
|
* a more efficient representation on the wire. Rather than repeatedly
|
|
927
1051
|
* writing the tag and type for each element, the entire array is encoded as
|
|
928
1052
|
* a single length-delimited blob. In proto3, only explicit setting it to
|
|
929
|
-
* false will avoid using packed encoding.
|
|
1053
|
+
* false will avoid using packed encoding. This option is prohibited in
|
|
1054
|
+
* Editions, but the `repeated_field_encoding` feature can be used to control
|
|
1055
|
+
* the behavior.
|
|
930
1056
|
*
|
|
931
1057
|
* @generated from protobuf field: optional bool packed = 2;
|
|
932
1058
|
*/
|
|
@@ -965,23 +1091,11 @@ export interface FieldOptions {
|
|
|
965
1091
|
* call from multiple threads concurrently, while non-const methods continue
|
|
966
1092
|
* to require exclusive access.
|
|
967
1093
|
*
|
|
968
|
-
*
|
|
969
|
-
*
|
|
970
|
-
*
|
|
971
|
-
*
|
|
972
|
-
*
|
|
973
|
-
* parsed in order to perform the check, defeating the purpose of lazy
|
|
974
|
-
* parsing. An implementation which chooses not to check required fields
|
|
975
|
-
* must be consistent about it. That is, for any particular sub-message, the
|
|
976
|
-
* implementation must either *always* check its required fields, or *never*
|
|
977
|
-
* check its required fields, regardless of whether or not the message has
|
|
978
|
-
* been parsed.
|
|
979
|
-
*
|
|
980
|
-
* As of 2021, lazy does no correctness checks on the byte stream during
|
|
981
|
-
* parsing. This may lead to crashes if and when an invalid byte stream is
|
|
982
|
-
* finally parsed upon access.
|
|
983
|
-
*
|
|
984
|
-
* TODO(b/211906113): Enable validation on lazy fields.
|
|
1094
|
+
* Note that lazy message fields are still eagerly verified to check
|
|
1095
|
+
* ill-formed wireformat or missing required fields. Calling IsInitialized()
|
|
1096
|
+
* on the outer message would fail if the inner message has missing required
|
|
1097
|
+
* fields. Failed verification would result in parsing failure (except when
|
|
1098
|
+
* uninitialized messages are acceptable).
|
|
985
1099
|
*
|
|
986
1100
|
* @generated from protobuf field: optional bool lazy = 5;
|
|
987
1101
|
*/
|
|
@@ -1009,6 +1123,35 @@ export interface FieldOptions {
|
|
|
1009
1123
|
* @generated from protobuf field: optional bool weak = 10;
|
|
1010
1124
|
*/
|
|
1011
1125
|
weak?: boolean;
|
|
1126
|
+
/**
|
|
1127
|
+
* Indicate that the field value should not be printed out when using debug
|
|
1128
|
+
* formats, e.g. when the field contains sensitive credentials.
|
|
1129
|
+
*
|
|
1130
|
+
* @generated from protobuf field: optional bool debug_redact = 16;
|
|
1131
|
+
*/
|
|
1132
|
+
debugRedact?: boolean;
|
|
1133
|
+
/**
|
|
1134
|
+
* @generated from protobuf field: optional google.protobuf.FieldOptions.OptionRetention retention = 17;
|
|
1135
|
+
*/
|
|
1136
|
+
retention?: FieldOptions_OptionRetention;
|
|
1137
|
+
/**
|
|
1138
|
+
* @generated from protobuf field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19;
|
|
1139
|
+
*/
|
|
1140
|
+
targets: FieldOptions_OptionTargetType[];
|
|
1141
|
+
/**
|
|
1142
|
+
* @generated from protobuf field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
|
|
1143
|
+
*/
|
|
1144
|
+
editionDefaults: FieldOptions_EditionDefault[];
|
|
1145
|
+
/**
|
|
1146
|
+
* Any features defined in the specific edition.
|
|
1147
|
+
*
|
|
1148
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet features = 21;
|
|
1149
|
+
*/
|
|
1150
|
+
features?: FeatureSet;
|
|
1151
|
+
/**
|
|
1152
|
+
* @generated from protobuf field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
|
|
1153
|
+
*/
|
|
1154
|
+
featureSupport?: FieldOptions_FeatureSupport;
|
|
1012
1155
|
/**
|
|
1013
1156
|
* The parser stores options it doesn't recognize here. See above.
|
|
1014
1157
|
*
|
|
@@ -1016,6 +1159,56 @@ export interface FieldOptions {
|
|
|
1016
1159
|
*/
|
|
1017
1160
|
uninterpretedOption: UninterpretedOption[];
|
|
1018
1161
|
}
|
|
1162
|
+
/**
|
|
1163
|
+
* @generated from protobuf message google.protobuf.FieldOptions.EditionDefault
|
|
1164
|
+
*/
|
|
1165
|
+
export interface FieldOptions_EditionDefault {
|
|
1166
|
+
/**
|
|
1167
|
+
* @generated from protobuf field: optional google.protobuf.Edition edition = 3;
|
|
1168
|
+
*/
|
|
1169
|
+
edition?: Edition;
|
|
1170
|
+
/**
|
|
1171
|
+
* @generated from protobuf field: optional string value = 2;
|
|
1172
|
+
*/
|
|
1173
|
+
value?: string; // Textproto value.
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* Information about the support window of a feature.
|
|
1177
|
+
*
|
|
1178
|
+
* @generated from protobuf message google.protobuf.FieldOptions.FeatureSupport
|
|
1179
|
+
*/
|
|
1180
|
+
export interface FieldOptions_FeatureSupport {
|
|
1181
|
+
/**
|
|
1182
|
+
* The edition that this feature was first available in. In editions
|
|
1183
|
+
* earlier than this one, the default assigned to EDITION_LEGACY will be
|
|
1184
|
+
* used, and proto files will not be able to override it.
|
|
1185
|
+
*
|
|
1186
|
+
* @generated from protobuf field: optional google.protobuf.Edition edition_introduced = 1;
|
|
1187
|
+
*/
|
|
1188
|
+
editionIntroduced?: Edition;
|
|
1189
|
+
/**
|
|
1190
|
+
* The edition this feature becomes deprecated in. Using this after this
|
|
1191
|
+
* edition may trigger warnings.
|
|
1192
|
+
*
|
|
1193
|
+
* @generated from protobuf field: optional google.protobuf.Edition edition_deprecated = 2;
|
|
1194
|
+
*/
|
|
1195
|
+
editionDeprecated?: Edition;
|
|
1196
|
+
/**
|
|
1197
|
+
* The deprecation warning text if this feature is used after the edition it
|
|
1198
|
+
* was marked deprecated in.
|
|
1199
|
+
*
|
|
1200
|
+
* @generated from protobuf field: optional string deprecation_warning = 3;
|
|
1201
|
+
*/
|
|
1202
|
+
deprecationWarning?: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* The edition this feature is no longer available in. In editions after
|
|
1205
|
+
* this one, the last default assigned will be used, and proto files will
|
|
1206
|
+
* not be able to override it.
|
|
1207
|
+
*
|
|
1208
|
+
* @generated from protobuf field: optional google.protobuf.Edition edition_removed = 4;
|
|
1209
|
+
*/
|
|
1210
|
+
editionRemoved?: Edition;
|
|
1211
|
+
}
|
|
1019
1212
|
/**
|
|
1020
1213
|
* @generated from protobuf enum google.protobuf.FieldOptions.CType
|
|
1021
1214
|
*/
|
|
@@ -1027,6 +1220,13 @@ export enum FieldOptions_CType {
|
|
|
1027
1220
|
*/
|
|
1028
1221
|
STRING = 0,
|
|
1029
1222
|
/**
|
|
1223
|
+
* The option [ctype=CORD] may be applied to a non-repeated field of type
|
|
1224
|
+
* "bytes". It indicates that in C++, the data should be stored in a Cord
|
|
1225
|
+
* instead of a string. For very large strings, this may reduce memory
|
|
1226
|
+
* fragmentation. It may also allow better performance when parsing from a
|
|
1227
|
+
* Cord, or when parsing with aliasing enabled, as the parsed Cord may then
|
|
1228
|
+
* alias the original buffer.
|
|
1229
|
+
*
|
|
1030
1230
|
* @generated from protobuf enum value: CORD = 1;
|
|
1031
1231
|
*/
|
|
1032
1232
|
CORD = 1,
|
|
@@ -1058,10 +1258,84 @@ export enum FieldOptions_JSType {
|
|
|
1058
1258
|
*/
|
|
1059
1259
|
JS_NUMBER = 2
|
|
1060
1260
|
}
|
|
1261
|
+
/**
|
|
1262
|
+
* If set to RETENTION_SOURCE, the option will be omitted from the binary.
|
|
1263
|
+
*
|
|
1264
|
+
* @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention
|
|
1265
|
+
*/
|
|
1266
|
+
export enum FieldOptions_OptionRetention {
|
|
1267
|
+
/**
|
|
1268
|
+
* @generated from protobuf enum value: RETENTION_UNKNOWN = 0;
|
|
1269
|
+
*/
|
|
1270
|
+
RETENTION_UNKNOWN = 0,
|
|
1271
|
+
/**
|
|
1272
|
+
* @generated from protobuf enum value: RETENTION_RUNTIME = 1;
|
|
1273
|
+
*/
|
|
1274
|
+
RETENTION_RUNTIME = 1,
|
|
1275
|
+
/**
|
|
1276
|
+
* @generated from protobuf enum value: RETENTION_SOURCE = 2;
|
|
1277
|
+
*/
|
|
1278
|
+
RETENTION_SOURCE = 2
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* This indicates the types of entities that the field may apply to when used
|
|
1282
|
+
* as an option. If it is unset, then the field may be freely used as an
|
|
1283
|
+
* option on any kind of entity.
|
|
1284
|
+
*
|
|
1285
|
+
* @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType
|
|
1286
|
+
*/
|
|
1287
|
+
export enum FieldOptions_OptionTargetType {
|
|
1288
|
+
/**
|
|
1289
|
+
* @generated from protobuf enum value: TARGET_TYPE_UNKNOWN = 0;
|
|
1290
|
+
*/
|
|
1291
|
+
TARGET_TYPE_UNKNOWN = 0,
|
|
1292
|
+
/**
|
|
1293
|
+
* @generated from protobuf enum value: TARGET_TYPE_FILE = 1;
|
|
1294
|
+
*/
|
|
1295
|
+
TARGET_TYPE_FILE = 1,
|
|
1296
|
+
/**
|
|
1297
|
+
* @generated from protobuf enum value: TARGET_TYPE_EXTENSION_RANGE = 2;
|
|
1298
|
+
*/
|
|
1299
|
+
TARGET_TYPE_EXTENSION_RANGE = 2,
|
|
1300
|
+
/**
|
|
1301
|
+
* @generated from protobuf enum value: TARGET_TYPE_MESSAGE = 3;
|
|
1302
|
+
*/
|
|
1303
|
+
TARGET_TYPE_MESSAGE = 3,
|
|
1304
|
+
/**
|
|
1305
|
+
* @generated from protobuf enum value: TARGET_TYPE_FIELD = 4;
|
|
1306
|
+
*/
|
|
1307
|
+
TARGET_TYPE_FIELD = 4,
|
|
1308
|
+
/**
|
|
1309
|
+
* @generated from protobuf enum value: TARGET_TYPE_ONEOF = 5;
|
|
1310
|
+
*/
|
|
1311
|
+
TARGET_TYPE_ONEOF = 5,
|
|
1312
|
+
/**
|
|
1313
|
+
* @generated from protobuf enum value: TARGET_TYPE_ENUM = 6;
|
|
1314
|
+
*/
|
|
1315
|
+
TARGET_TYPE_ENUM = 6,
|
|
1316
|
+
/**
|
|
1317
|
+
* @generated from protobuf enum value: TARGET_TYPE_ENUM_ENTRY = 7;
|
|
1318
|
+
*/
|
|
1319
|
+
TARGET_TYPE_ENUM_ENTRY = 7,
|
|
1320
|
+
/**
|
|
1321
|
+
* @generated from protobuf enum value: TARGET_TYPE_SERVICE = 8;
|
|
1322
|
+
*/
|
|
1323
|
+
TARGET_TYPE_SERVICE = 8,
|
|
1324
|
+
/**
|
|
1325
|
+
* @generated from protobuf enum value: TARGET_TYPE_METHOD = 9;
|
|
1326
|
+
*/
|
|
1327
|
+
TARGET_TYPE_METHOD = 9
|
|
1328
|
+
}
|
|
1061
1329
|
/**
|
|
1062
1330
|
* @generated from protobuf message google.protobuf.OneofOptions
|
|
1063
1331
|
*/
|
|
1064
1332
|
export interface OneofOptions {
|
|
1333
|
+
/**
|
|
1334
|
+
* Any features defined in the specific edition.
|
|
1335
|
+
*
|
|
1336
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet features = 1;
|
|
1337
|
+
*/
|
|
1338
|
+
features?: FeatureSet;
|
|
1065
1339
|
/**
|
|
1066
1340
|
* The parser stores options it doesn't recognize here. See above.
|
|
1067
1341
|
*
|
|
@@ -1089,6 +1363,24 @@ export interface EnumOptions {
|
|
|
1089
1363
|
* @generated from protobuf field: optional bool deprecated = 3;
|
|
1090
1364
|
*/
|
|
1091
1365
|
deprecated?: boolean;
|
|
1366
|
+
/**
|
|
1367
|
+
* Enable the legacy handling of JSON field name conflicts. This lowercases
|
|
1368
|
+
* and strips underscored from the fields before comparison in proto3 only.
|
|
1369
|
+
* The new behavior takes `json_name` into account and applies to proto2 as
|
|
1370
|
+
* well.
|
|
1371
|
+
* TODO Remove this legacy behavior once downstream teams have
|
|
1372
|
+
* had time to migrate.
|
|
1373
|
+
*
|
|
1374
|
+
* @deprecated
|
|
1375
|
+
* @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
|
|
1376
|
+
*/
|
|
1377
|
+
deprecatedLegacyJsonFieldConflicts?: boolean;
|
|
1378
|
+
/**
|
|
1379
|
+
* Any features defined in the specific edition.
|
|
1380
|
+
*
|
|
1381
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet features = 7;
|
|
1382
|
+
*/
|
|
1383
|
+
features?: FeatureSet;
|
|
1092
1384
|
/**
|
|
1093
1385
|
* The parser stores options it doesn't recognize here. See above.
|
|
1094
1386
|
*
|
|
@@ -1109,6 +1401,26 @@ export interface EnumValueOptions {
|
|
|
1109
1401
|
* @generated from protobuf field: optional bool deprecated = 1;
|
|
1110
1402
|
*/
|
|
1111
1403
|
deprecated?: boolean;
|
|
1404
|
+
/**
|
|
1405
|
+
* Any features defined in the specific edition.
|
|
1406
|
+
*
|
|
1407
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet features = 2;
|
|
1408
|
+
*/
|
|
1409
|
+
features?: FeatureSet;
|
|
1410
|
+
/**
|
|
1411
|
+
* Indicate that fields annotated with this enum value should not be printed
|
|
1412
|
+
* out when using debug formats, e.g. when the field contains sensitive
|
|
1413
|
+
* credentials.
|
|
1414
|
+
*
|
|
1415
|
+
* @generated from protobuf field: optional bool debug_redact = 3;
|
|
1416
|
+
*/
|
|
1417
|
+
debugRedact?: boolean;
|
|
1418
|
+
/**
|
|
1419
|
+
* Information about the support window of a feature value.
|
|
1420
|
+
*
|
|
1421
|
+
* @generated from protobuf field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4;
|
|
1422
|
+
*/
|
|
1423
|
+
featureSupport?: FieldOptions_FeatureSupport;
|
|
1112
1424
|
/**
|
|
1113
1425
|
* The parser stores options it doesn't recognize here. See above.
|
|
1114
1426
|
*
|
|
@@ -1120,6 +1432,12 @@ export interface EnumValueOptions {
|
|
|
1120
1432
|
* @generated from protobuf message google.protobuf.ServiceOptions
|
|
1121
1433
|
*/
|
|
1122
1434
|
export interface ServiceOptions {
|
|
1435
|
+
/**
|
|
1436
|
+
* Any features defined in the specific edition.
|
|
1437
|
+
*
|
|
1438
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet features = 34;
|
|
1439
|
+
*/
|
|
1440
|
+
features?: FeatureSet;
|
|
1123
1441
|
// Note: Field numbers 1 through 32 are reserved for Google's internal RPC
|
|
1124
1442
|
// framework. We apologize for hoarding these numbers to ourselves, but
|
|
1125
1443
|
// we were already using them long before we decided to release Protocol
|
|
@@ -1163,6 +1481,12 @@ export interface MethodOptions {
|
|
|
1163
1481
|
* @generated from protobuf field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34;
|
|
1164
1482
|
*/
|
|
1165
1483
|
idempotencyLevel?: MethodOptions_IdempotencyLevel;
|
|
1484
|
+
/**
|
|
1485
|
+
* Any features defined in the specific edition.
|
|
1486
|
+
*
|
|
1487
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet features = 35;
|
|
1488
|
+
*/
|
|
1489
|
+
features?: FeatureSet;
|
|
1166
1490
|
/**
|
|
1167
1491
|
* The parser stores options it doesn't recognize here. See above.
|
|
1168
1492
|
*
|
|
@@ -1242,8 +1566,8 @@ export interface UninterpretedOption {
|
|
|
1242
1566
|
* The name of the uninterpreted option. Each string represents a segment in
|
|
1243
1567
|
* a dot-separated name. is_extension is true iff a segment represents an
|
|
1244
1568
|
* extension (denoted with parentheses in options specs in .proto files).
|
|
1245
|
-
* E.g.,{ ["foo", false], ["bar.baz", true], ["
|
|
1246
|
-
* "foo.(bar.baz).
|
|
1569
|
+
* E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
|
|
1570
|
+
* "foo.(bar.baz).moo".
|
|
1247
1571
|
*
|
|
1248
1572
|
* @generated from protobuf message google.protobuf.UninterpretedOption.NamePart
|
|
1249
1573
|
*/
|
|
@@ -1258,6 +1582,205 @@ export interface UninterpretedOption_NamePart {
|
|
|
1258
1582
|
isExtension: boolean;
|
|
1259
1583
|
}
|
|
1260
1584
|
// ===================================================================
|
|
1585
|
+
// Features
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* TODO Enums in C++ gencode (and potentially other languages) are
|
|
1589
|
+
* not well scoped. This means that each of the feature enums below can clash
|
|
1590
|
+
* with each other. The short names we've chosen maximize call-site
|
|
1591
|
+
* readability, but leave us very open to this scenario. A future feature will
|
|
1592
|
+
* be designed and implemented to handle this, hopefully before we ever hit a
|
|
1593
|
+
* conflict here.
|
|
1594
|
+
*
|
|
1595
|
+
* @generated from protobuf message google.protobuf.FeatureSet
|
|
1596
|
+
*/
|
|
1597
|
+
export interface FeatureSet {
|
|
1598
|
+
/**
|
|
1599
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1;
|
|
1600
|
+
*/
|
|
1601
|
+
fieldPresence?: FeatureSet_FieldPresence;
|
|
1602
|
+
/**
|
|
1603
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet.EnumType enum_type = 2;
|
|
1604
|
+
*/
|
|
1605
|
+
enumType?: FeatureSet_EnumType;
|
|
1606
|
+
/**
|
|
1607
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3;
|
|
1608
|
+
*/
|
|
1609
|
+
repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding;
|
|
1610
|
+
/**
|
|
1611
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4;
|
|
1612
|
+
*/
|
|
1613
|
+
utf8Validation?: FeatureSet_Utf8Validation;
|
|
1614
|
+
/**
|
|
1615
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5;
|
|
1616
|
+
*/
|
|
1617
|
+
messageEncoding?: FeatureSet_MessageEncoding;
|
|
1618
|
+
/**
|
|
1619
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
|
|
1620
|
+
*/
|
|
1621
|
+
jsonFormat?: FeatureSet_JsonFormat;
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence
|
|
1625
|
+
*/
|
|
1626
|
+
export enum FeatureSet_FieldPresence {
|
|
1627
|
+
/**
|
|
1628
|
+
* @generated from protobuf enum value: FIELD_PRESENCE_UNKNOWN = 0;
|
|
1629
|
+
*/
|
|
1630
|
+
FIELD_PRESENCE_UNKNOWN = 0,
|
|
1631
|
+
/**
|
|
1632
|
+
* @generated from protobuf enum value: EXPLICIT = 1;
|
|
1633
|
+
*/
|
|
1634
|
+
EXPLICIT = 1,
|
|
1635
|
+
/**
|
|
1636
|
+
* @generated from protobuf enum value: IMPLICIT = 2;
|
|
1637
|
+
*/
|
|
1638
|
+
IMPLICIT = 2,
|
|
1639
|
+
/**
|
|
1640
|
+
* @generated from protobuf enum value: LEGACY_REQUIRED = 3;
|
|
1641
|
+
*/
|
|
1642
|
+
LEGACY_REQUIRED = 3
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* @generated from protobuf enum google.protobuf.FeatureSet.EnumType
|
|
1646
|
+
*/
|
|
1647
|
+
export enum FeatureSet_EnumType {
|
|
1648
|
+
/**
|
|
1649
|
+
* @generated from protobuf enum value: ENUM_TYPE_UNKNOWN = 0;
|
|
1650
|
+
*/
|
|
1651
|
+
ENUM_TYPE_UNKNOWN = 0,
|
|
1652
|
+
/**
|
|
1653
|
+
* @generated from protobuf enum value: OPEN = 1;
|
|
1654
|
+
*/
|
|
1655
|
+
OPEN = 1,
|
|
1656
|
+
/**
|
|
1657
|
+
* @generated from protobuf enum value: CLOSED = 2;
|
|
1658
|
+
*/
|
|
1659
|
+
CLOSED = 2
|
|
1660
|
+
}
|
|
1661
|
+
/**
|
|
1662
|
+
* @generated from protobuf enum google.protobuf.FeatureSet.RepeatedFieldEncoding
|
|
1663
|
+
*/
|
|
1664
|
+
export enum FeatureSet_RepeatedFieldEncoding {
|
|
1665
|
+
/**
|
|
1666
|
+
* @generated from protobuf enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0;
|
|
1667
|
+
*/
|
|
1668
|
+
REPEATED_FIELD_ENCODING_UNKNOWN = 0,
|
|
1669
|
+
/**
|
|
1670
|
+
* @generated from protobuf enum value: PACKED = 1;
|
|
1671
|
+
*/
|
|
1672
|
+
PACKED = 1,
|
|
1673
|
+
/**
|
|
1674
|
+
* @generated from protobuf enum value: EXPANDED = 2;
|
|
1675
|
+
*/
|
|
1676
|
+
EXPANDED = 2
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* @generated from protobuf enum google.protobuf.FeatureSet.Utf8Validation
|
|
1680
|
+
*/
|
|
1681
|
+
export enum FeatureSet_Utf8Validation {
|
|
1682
|
+
/**
|
|
1683
|
+
* @generated from protobuf enum value: UTF8_VALIDATION_UNKNOWN = 0;
|
|
1684
|
+
*/
|
|
1685
|
+
UTF8_VALIDATION_UNKNOWN = 0,
|
|
1686
|
+
/**
|
|
1687
|
+
* @generated from protobuf enum value: VERIFY = 2;
|
|
1688
|
+
*/
|
|
1689
|
+
VERIFY = 2,
|
|
1690
|
+
/**
|
|
1691
|
+
* @generated from protobuf enum value: NONE = 3;
|
|
1692
|
+
*/
|
|
1693
|
+
NONE = 3
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* @generated from protobuf enum google.protobuf.FeatureSet.MessageEncoding
|
|
1697
|
+
*/
|
|
1698
|
+
export enum FeatureSet_MessageEncoding {
|
|
1699
|
+
/**
|
|
1700
|
+
* @generated from protobuf enum value: MESSAGE_ENCODING_UNKNOWN = 0;
|
|
1701
|
+
*/
|
|
1702
|
+
MESSAGE_ENCODING_UNKNOWN = 0,
|
|
1703
|
+
/**
|
|
1704
|
+
* @generated from protobuf enum value: LENGTH_PREFIXED = 1;
|
|
1705
|
+
*/
|
|
1706
|
+
LENGTH_PREFIXED = 1,
|
|
1707
|
+
/**
|
|
1708
|
+
* @generated from protobuf enum value: DELIMITED = 2;
|
|
1709
|
+
*/
|
|
1710
|
+
DELIMITED = 2
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* @generated from protobuf enum google.protobuf.FeatureSet.JsonFormat
|
|
1714
|
+
*/
|
|
1715
|
+
export enum FeatureSet_JsonFormat {
|
|
1716
|
+
/**
|
|
1717
|
+
* @generated from protobuf enum value: JSON_FORMAT_UNKNOWN = 0;
|
|
1718
|
+
*/
|
|
1719
|
+
JSON_FORMAT_UNKNOWN = 0,
|
|
1720
|
+
/**
|
|
1721
|
+
* @generated from protobuf enum value: ALLOW = 1;
|
|
1722
|
+
*/
|
|
1723
|
+
ALLOW = 1,
|
|
1724
|
+
/**
|
|
1725
|
+
* @generated from protobuf enum value: LEGACY_BEST_EFFORT = 2;
|
|
1726
|
+
*/
|
|
1727
|
+
LEGACY_BEST_EFFORT = 2
|
|
1728
|
+
}
|
|
1729
|
+
/**
|
|
1730
|
+
* A compiled specification for the defaults of a set of features. These
|
|
1731
|
+
* messages are generated from FeatureSet extensions and can be used to seed
|
|
1732
|
+
* feature resolution. The resolution with this object becomes a simple search
|
|
1733
|
+
* for the closest matching edition, followed by proto merges.
|
|
1734
|
+
*
|
|
1735
|
+
* @generated from protobuf message google.protobuf.FeatureSetDefaults
|
|
1736
|
+
*/
|
|
1737
|
+
export interface FeatureSetDefaults {
|
|
1738
|
+
/**
|
|
1739
|
+
* @generated from protobuf field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
|
|
1740
|
+
*/
|
|
1741
|
+
defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
|
|
1742
|
+
/**
|
|
1743
|
+
* The minimum supported edition (inclusive) when this was constructed.
|
|
1744
|
+
* Editions before this will not have defaults.
|
|
1745
|
+
*
|
|
1746
|
+
* @generated from protobuf field: optional google.protobuf.Edition minimum_edition = 4;
|
|
1747
|
+
*/
|
|
1748
|
+
minimumEdition?: Edition;
|
|
1749
|
+
/**
|
|
1750
|
+
* The maximum known edition (inclusive) when this was constructed. Editions
|
|
1751
|
+
* after this will not have reliable defaults.
|
|
1752
|
+
*
|
|
1753
|
+
* @generated from protobuf field: optional google.protobuf.Edition maximum_edition = 5;
|
|
1754
|
+
*/
|
|
1755
|
+
maximumEdition?: Edition;
|
|
1756
|
+
}
|
|
1757
|
+
/**
|
|
1758
|
+
* A map from every known edition with a unique set of defaults to its
|
|
1759
|
+
* defaults. Not all editions may be contained here. For a given edition,
|
|
1760
|
+
* the defaults at the closest matching edition ordered at or before it should
|
|
1761
|
+
* be used. This field must be in strict ascending order by edition.
|
|
1762
|
+
*
|
|
1763
|
+
* @generated from protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
1764
|
+
*/
|
|
1765
|
+
export interface FeatureSetDefaults_FeatureSetEditionDefault {
|
|
1766
|
+
/**
|
|
1767
|
+
* @generated from protobuf field: optional google.protobuf.Edition edition = 3;
|
|
1768
|
+
*/
|
|
1769
|
+
edition?: Edition;
|
|
1770
|
+
/**
|
|
1771
|
+
* Defaults of features that can be overridden in this edition.
|
|
1772
|
+
*
|
|
1773
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet overridable_features = 4;
|
|
1774
|
+
*/
|
|
1775
|
+
overridableFeatures?: FeatureSet;
|
|
1776
|
+
/**
|
|
1777
|
+
* Defaults of features that can't be overridden in this edition.
|
|
1778
|
+
*
|
|
1779
|
+
* @generated from protobuf field: optional google.protobuf.FeatureSet fixed_features = 5;
|
|
1780
|
+
*/
|
|
1781
|
+
fixedFeatures?: FeatureSet;
|
|
1782
|
+
}
|
|
1783
|
+
// ===================================================================
|
|
1261
1784
|
// Optional source code info
|
|
1262
1785
|
|
|
1263
1786
|
/**
|
|
@@ -1325,7 +1848,7 @@ export interface SourceCodeInfo_Location {
|
|
|
1325
1848
|
* location.
|
|
1326
1849
|
*
|
|
1327
1850
|
* Each element is a field number or an index. They form a path from
|
|
1328
|
-
* the root FileDescriptorProto to the place where the definition
|
|
1851
|
+
* the root FileDescriptorProto to the place where the definition appears.
|
|
1329
1852
|
* For example, this path:
|
|
1330
1853
|
* [ 4, 3, 2, 7, 1 ]
|
|
1331
1854
|
* refers to:
|
|
@@ -1386,13 +1909,13 @@ export interface SourceCodeInfo_Location {
|
|
|
1386
1909
|
* // Comment attached to baz.
|
|
1387
1910
|
* // Another line attached to baz.
|
|
1388
1911
|
*
|
|
1389
|
-
* // Comment attached to
|
|
1912
|
+
* // Comment attached to moo.
|
|
1390
1913
|
* //
|
|
1391
|
-
* // Another line attached to
|
|
1392
|
-
* optional double
|
|
1914
|
+
* // Another line attached to moo.
|
|
1915
|
+
* optional double moo = 4;
|
|
1393
1916
|
*
|
|
1394
1917
|
* // Detached comment for corge. This is not leading or trailing comments
|
|
1395
|
-
* // to
|
|
1918
|
+
* // to moo or corge because there are blank lines separating it from
|
|
1396
1919
|
* // both.
|
|
1397
1920
|
*
|
|
1398
1921
|
* // Detached comment for corge paragraph 2.
|
|
@@ -1445,28 +1968,134 @@ export interface GeneratedCodeInfo_Annotation {
|
|
|
1445
1968
|
*
|
|
1446
1969
|
* @generated from protobuf field: repeated int32 path = 1 [packed = true];
|
|
1447
1970
|
*/
|
|
1448
|
-
path: number[];
|
|
1971
|
+
path: number[];
|
|
1972
|
+
/**
|
|
1973
|
+
* Identifies the filesystem path to the original source .proto.
|
|
1974
|
+
*
|
|
1975
|
+
* @generated from protobuf field: optional string source_file = 2;
|
|
1976
|
+
*/
|
|
1977
|
+
sourceFile?: string;
|
|
1978
|
+
/**
|
|
1979
|
+
* Identifies the starting offset in bytes in the generated code
|
|
1980
|
+
* that relates to the identified object.
|
|
1981
|
+
*
|
|
1982
|
+
* @generated from protobuf field: optional int32 begin = 3;
|
|
1983
|
+
*/
|
|
1984
|
+
begin?: number;
|
|
1985
|
+
/**
|
|
1986
|
+
* Identifies the ending offset in bytes in the generated code that
|
|
1987
|
+
* relates to the identified object. The end offset should be one past
|
|
1988
|
+
* the last relevant byte (so the length of the text = end - begin).
|
|
1989
|
+
*
|
|
1990
|
+
* @generated from protobuf field: optional int32 end = 4;
|
|
1991
|
+
*/
|
|
1992
|
+
end?: number;
|
|
1993
|
+
/**
|
|
1994
|
+
* @generated from protobuf field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
|
|
1995
|
+
*/
|
|
1996
|
+
semantic?: GeneratedCodeInfo_Annotation_Semantic;
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* Represents the identified object's effect on the element in the original
|
|
2000
|
+
* .proto file.
|
|
2001
|
+
*
|
|
2002
|
+
* @generated from protobuf enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic
|
|
2003
|
+
*/
|
|
2004
|
+
export enum GeneratedCodeInfo_Annotation_Semantic {
|
|
2005
|
+
/**
|
|
2006
|
+
* There is no effect or the effect is indescribable.
|
|
2007
|
+
*
|
|
2008
|
+
* @generated from protobuf enum value: NONE = 0;
|
|
2009
|
+
*/
|
|
2010
|
+
NONE = 0,
|
|
2011
|
+
/**
|
|
2012
|
+
* The element is set or otherwise mutated.
|
|
2013
|
+
*
|
|
2014
|
+
* @generated from protobuf enum value: SET = 1;
|
|
2015
|
+
*/
|
|
2016
|
+
SET = 1,
|
|
2017
|
+
/**
|
|
2018
|
+
* An alias to the element is returned.
|
|
2019
|
+
*
|
|
2020
|
+
* @generated from protobuf enum value: ALIAS = 2;
|
|
2021
|
+
*/
|
|
2022
|
+
ALIAS = 2
|
|
2023
|
+
}
|
|
2024
|
+
/**
|
|
2025
|
+
* The full set of known editions.
|
|
2026
|
+
*
|
|
2027
|
+
* @generated from protobuf enum google.protobuf.Edition
|
|
2028
|
+
*/
|
|
2029
|
+
export enum Edition {
|
|
2030
|
+
/**
|
|
2031
|
+
* A placeholder for an unknown edition value.
|
|
2032
|
+
*
|
|
2033
|
+
* @generated from protobuf enum value: EDITION_UNKNOWN = 0;
|
|
2034
|
+
*/
|
|
2035
|
+
EDITION_UNKNOWN = 0,
|
|
2036
|
+
/**
|
|
2037
|
+
* A placeholder edition for specifying default behaviors *before* a feature
|
|
2038
|
+
* was first introduced. This is effectively an "infinite past".
|
|
2039
|
+
*
|
|
2040
|
+
* @generated from protobuf enum value: EDITION_LEGACY = 900;
|
|
2041
|
+
*/
|
|
2042
|
+
EDITION_LEGACY = 900,
|
|
2043
|
+
/**
|
|
2044
|
+
* Legacy syntax "editions". These pre-date editions, but behave much like
|
|
2045
|
+
* distinct editions. These can't be used to specify the edition of proto
|
|
2046
|
+
* files, but feature definitions must supply proto2/proto3 defaults for
|
|
2047
|
+
* backwards compatibility.
|
|
2048
|
+
*
|
|
2049
|
+
* @generated from protobuf enum value: EDITION_PROTO2 = 998;
|
|
2050
|
+
*/
|
|
2051
|
+
EDITION_PROTO2 = 998,
|
|
2052
|
+
/**
|
|
2053
|
+
* @generated from protobuf enum value: EDITION_PROTO3 = 999;
|
|
2054
|
+
*/
|
|
2055
|
+
EDITION_PROTO3 = 999,
|
|
2056
|
+
/**
|
|
2057
|
+
* Editions that have been released. The specific values are arbitrary and
|
|
2058
|
+
* should not be depended on, but they will always be time-ordered for easy
|
|
2059
|
+
* comparison.
|
|
2060
|
+
*
|
|
2061
|
+
* @generated from protobuf enum value: EDITION_2023 = 1000;
|
|
2062
|
+
*/
|
|
2063
|
+
EDITION_2023 = 1000,
|
|
2064
|
+
/**
|
|
2065
|
+
* @generated from protobuf enum value: EDITION_2024 = 1001;
|
|
2066
|
+
*/
|
|
2067
|
+
EDITION_2024 = 1001,
|
|
2068
|
+
/**
|
|
2069
|
+
* Placeholder editions for testing feature resolution. These should not be
|
|
2070
|
+
* used or relied on outside of tests.
|
|
2071
|
+
*
|
|
2072
|
+
* @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1;
|
|
2073
|
+
*/
|
|
2074
|
+
EDITION_1_TEST_ONLY = 1,
|
|
2075
|
+
/**
|
|
2076
|
+
* @generated from protobuf enum value: EDITION_2_TEST_ONLY = 2;
|
|
2077
|
+
*/
|
|
2078
|
+
EDITION_2_TEST_ONLY = 2,
|
|
1449
2079
|
/**
|
|
1450
|
-
*
|
|
1451
|
-
*
|
|
1452
|
-
* @generated from protobuf field: optional string source_file = 2;
|
|
2080
|
+
* @generated from protobuf enum value: EDITION_99997_TEST_ONLY = 99997;
|
|
1453
2081
|
*/
|
|
1454
|
-
|
|
2082
|
+
EDITION_99997_TEST_ONLY = 99997,
|
|
1455
2083
|
/**
|
|
1456
|
-
*
|
|
1457
|
-
* that relates to the identified object.
|
|
1458
|
-
*
|
|
1459
|
-
* @generated from protobuf field: optional int32 begin = 3;
|
|
2084
|
+
* @generated from protobuf enum value: EDITION_99998_TEST_ONLY = 99998;
|
|
1460
2085
|
*/
|
|
1461
|
-
|
|
2086
|
+
EDITION_99998_TEST_ONLY = 99998,
|
|
1462
2087
|
/**
|
|
1463
|
-
*
|
|
1464
|
-
|
|
1465
|
-
|
|
2088
|
+
* @generated from protobuf enum value: EDITION_99999_TEST_ONLY = 99999;
|
|
2089
|
+
*/
|
|
2090
|
+
EDITION_99999_TEST_ONLY = 99999,
|
|
2091
|
+
/**
|
|
2092
|
+
* Placeholder for specifying unbounded edition support. This should only
|
|
2093
|
+
* ever be used by plugins that can expect to never require any changes to
|
|
2094
|
+
* support a new edition.
|
|
1466
2095
|
*
|
|
1467
|
-
* @generated from protobuf
|
|
2096
|
+
* @generated from protobuf enum value: EDITION_MAX = 2147483647;
|
|
1468
2097
|
*/
|
|
1469
|
-
|
|
2098
|
+
EDITION_MAX = 2147483647
|
|
1470
2099
|
}
|
|
1471
2100
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1472
2101
|
class FileDescriptorSet$Type extends MessageType<FileDescriptorSet> {
|
|
@@ -1530,7 +2159,8 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1530
2159
|
{ no: 7, name: "extension", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldDescriptorProto },
|
|
1531
2160
|
{ no: 8, name: "options", kind: "message", T: () => FileOptions },
|
|
1532
2161
|
{ no: 9, name: "source_code_info", kind: "message", T: () => SourceCodeInfo },
|
|
1533
|
-
{ no: 12, name: "syntax", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2162
|
+
{ no: 12, name: "syntax", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2163
|
+
{ no: 14, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }
|
|
1534
2164
|
]);
|
|
1535
2165
|
}
|
|
1536
2166
|
create(value?: PartialMessage<FileDescriptorProto>): FileDescriptorProto {
|
|
@@ -1595,6 +2225,9 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1595
2225
|
case /* optional string syntax */ 12:
|
|
1596
2226
|
message.syntax = reader.string();
|
|
1597
2227
|
break;
|
|
2228
|
+
case /* optional google.protobuf.Edition edition */ 14:
|
|
2229
|
+
message.edition = reader.int32();
|
|
2230
|
+
break;
|
|
1598
2231
|
default:
|
|
1599
2232
|
let u = options.readUnknownField;
|
|
1600
2233
|
if (u === "throw")
|
|
@@ -1643,6 +2276,9 @@ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
|
|
|
1643
2276
|
/* optional string syntax = 12; */
|
|
1644
2277
|
if (message.syntax !== undefined)
|
|
1645
2278
|
writer.tag(12, WireType.LengthDelimited).string(message.syntax);
|
|
2279
|
+
/* optional google.protobuf.Edition edition = 14; */
|
|
2280
|
+
if (message.edition !== undefined)
|
|
2281
|
+
writer.tag(14, WireType.Varint).int32(message.edition);
|
|
1646
2282
|
let u = options.writeUnknownFields;
|
|
1647
2283
|
if (u !== false)
|
|
1648
2284
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1887,12 +2523,16 @@ export const DescriptorProto_ReservedRange = new DescriptorProto_ReservedRange$T
|
|
|
1887
2523
|
class ExtensionRangeOptions$Type extends MessageType<ExtensionRangeOptions> {
|
|
1888
2524
|
constructor() {
|
|
1889
2525
|
super("google.protobuf.ExtensionRangeOptions", [
|
|
1890
|
-
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
|
|
2526
|
+
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption },
|
|
2527
|
+
{ no: 2, name: "declaration", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExtensionRangeOptions_Declaration },
|
|
2528
|
+
{ no: 50, name: "features", kind: "message", T: () => FeatureSet },
|
|
2529
|
+
{ no: 3, name: "verification", kind: "enum", opt: true, T: () => ["google.protobuf.ExtensionRangeOptions.VerificationState", ExtensionRangeOptions_VerificationState] }
|
|
1891
2530
|
]);
|
|
1892
2531
|
}
|
|
1893
2532
|
create(value?: PartialMessage<ExtensionRangeOptions>): ExtensionRangeOptions {
|
|
1894
2533
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1895
2534
|
message.uninterpretedOption = [];
|
|
2535
|
+
message.declaration = [];
|
|
1896
2536
|
if (value !== undefined)
|
|
1897
2537
|
reflectionMergePartial<ExtensionRangeOptions>(this, message, value);
|
|
1898
2538
|
return message;
|
|
@@ -1905,6 +2545,15 @@ class ExtensionRangeOptions$Type extends MessageType<ExtensionRangeOptions> {
|
|
|
1905
2545
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
1906
2546
|
message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
|
|
1907
2547
|
break;
|
|
2548
|
+
case /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration */ 2:
|
|
2549
|
+
message.declaration.push(ExtensionRangeOptions_Declaration.internalBinaryRead(reader, reader.uint32(), options));
|
|
2550
|
+
break;
|
|
2551
|
+
case /* optional google.protobuf.FeatureSet features */ 50:
|
|
2552
|
+
message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
2553
|
+
break;
|
|
2554
|
+
case /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification */ 3:
|
|
2555
|
+
message.verification = reader.int32();
|
|
2556
|
+
break;
|
|
1908
2557
|
default:
|
|
1909
2558
|
let u = options.readUnknownField;
|
|
1910
2559
|
if (u === "throw")
|
|
@@ -1920,6 +2569,15 @@ class ExtensionRangeOptions$Type extends MessageType<ExtensionRangeOptions> {
|
|
|
1920
2569
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
1921
2570
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
1922
2571
|
UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
|
|
2572
|
+
/* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; */
|
|
2573
|
+
for (let i = 0; i < message.declaration.length; i++)
|
|
2574
|
+
ExtensionRangeOptions_Declaration.internalBinaryWrite(message.declaration[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2575
|
+
/* optional google.protobuf.FeatureSet features = 50; */
|
|
2576
|
+
if (message.features)
|
|
2577
|
+
FeatureSet.internalBinaryWrite(message.features, writer.tag(50, WireType.LengthDelimited).fork(), options).join();
|
|
2578
|
+
/* optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3; */
|
|
2579
|
+
if (message.verification !== undefined)
|
|
2580
|
+
writer.tag(3, WireType.Varint).int32(message.verification);
|
|
1923
2581
|
let u = options.writeUnknownFields;
|
|
1924
2582
|
if (u !== false)
|
|
1925
2583
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1931,6 +2589,80 @@ class ExtensionRangeOptions$Type extends MessageType<ExtensionRangeOptions> {
|
|
|
1931
2589
|
*/
|
|
1932
2590
|
export const ExtensionRangeOptions = new ExtensionRangeOptions$Type();
|
|
1933
2591
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2592
|
+
class ExtensionRangeOptions_Declaration$Type extends MessageType<ExtensionRangeOptions_Declaration> {
|
|
2593
|
+
constructor() {
|
|
2594
|
+
super("google.protobuf.ExtensionRangeOptions.Declaration", [
|
|
2595
|
+
{ no: 1, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
2596
|
+
{ no: 2, name: "full_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2597
|
+
{ no: 3, name: "type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2598
|
+
{ no: 5, name: "reserved", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2599
|
+
{ no: 6, name: "repeated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2600
|
+
]);
|
|
2601
|
+
}
|
|
2602
|
+
create(value?: PartialMessage<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
|
|
2603
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2604
|
+
if (value !== undefined)
|
|
2605
|
+
reflectionMergePartial<ExtensionRangeOptions_Declaration>(this, message, value);
|
|
2606
|
+
return message;
|
|
2607
|
+
}
|
|
2608
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtensionRangeOptions_Declaration): ExtensionRangeOptions_Declaration {
|
|
2609
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2610
|
+
while (reader.pos < end) {
|
|
2611
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2612
|
+
switch (fieldNo) {
|
|
2613
|
+
case /* optional int32 number */ 1:
|
|
2614
|
+
message.number = reader.int32();
|
|
2615
|
+
break;
|
|
2616
|
+
case /* optional string full_name */ 2:
|
|
2617
|
+
message.fullName = reader.string();
|
|
2618
|
+
break;
|
|
2619
|
+
case /* optional string type */ 3:
|
|
2620
|
+
message.type = reader.string();
|
|
2621
|
+
break;
|
|
2622
|
+
case /* optional bool reserved */ 5:
|
|
2623
|
+
message.reserved = reader.bool();
|
|
2624
|
+
break;
|
|
2625
|
+
case /* optional bool repeated */ 6:
|
|
2626
|
+
message.repeated = reader.bool();
|
|
2627
|
+
break;
|
|
2628
|
+
default:
|
|
2629
|
+
let u = options.readUnknownField;
|
|
2630
|
+
if (u === "throw")
|
|
2631
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2632
|
+
let d = reader.skip(wireType);
|
|
2633
|
+
if (u !== false)
|
|
2634
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
return message;
|
|
2638
|
+
}
|
|
2639
|
+
internalBinaryWrite(message: ExtensionRangeOptions_Declaration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2640
|
+
/* optional int32 number = 1; */
|
|
2641
|
+
if (message.number !== undefined)
|
|
2642
|
+
writer.tag(1, WireType.Varint).int32(message.number);
|
|
2643
|
+
/* optional string full_name = 2; */
|
|
2644
|
+
if (message.fullName !== undefined)
|
|
2645
|
+
writer.tag(2, WireType.LengthDelimited).string(message.fullName);
|
|
2646
|
+
/* optional string type = 3; */
|
|
2647
|
+
if (message.type !== undefined)
|
|
2648
|
+
writer.tag(3, WireType.LengthDelimited).string(message.type);
|
|
2649
|
+
/* optional bool reserved = 5; */
|
|
2650
|
+
if (message.reserved !== undefined)
|
|
2651
|
+
writer.tag(5, WireType.Varint).bool(message.reserved);
|
|
2652
|
+
/* optional bool repeated = 6; */
|
|
2653
|
+
if (message.repeated !== undefined)
|
|
2654
|
+
writer.tag(6, WireType.Varint).bool(message.repeated);
|
|
2655
|
+
let u = options.writeUnknownFields;
|
|
2656
|
+
if (u !== false)
|
|
2657
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2658
|
+
return writer;
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
/**
|
|
2662
|
+
* @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions.Declaration
|
|
2663
|
+
*/
|
|
2664
|
+
export const ExtensionRangeOptions_Declaration = new ExtensionRangeOptions_Declaration$Type();
|
|
2665
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1934
2666
|
class FieldDescriptorProto$Type extends MessageType<FieldDescriptorProto> {
|
|
1935
2667
|
constructor() {
|
|
1936
2668
|
super("google.protobuf.FieldDescriptorProto", [
|
|
@@ -2445,7 +3177,6 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
2445
3177
|
{ no: 16, name: "cc_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2446
3178
|
{ no: 17, name: "java_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2447
3179
|
{ no: 18, name: "py_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2448
|
-
{ no: 42, name: "php_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2449
3180
|
{ no: 23, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2450
3181
|
{ no: 31, name: "cc_enable_arenas", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2451
3182
|
{ no: 36, name: "objc_class_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -2455,6 +3186,7 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
2455
3186
|
{ no: 41, name: "php_namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2456
3187
|
{ no: 44, name: "php_metadata_namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2457
3188
|
{ no: 45, name: "ruby_package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3189
|
+
{ no: 50, name: "features", kind: "message", T: () => FeatureSet },
|
|
2458
3190
|
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
|
|
2459
3191
|
]);
|
|
2460
3192
|
}
|
|
@@ -2500,9 +3232,6 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
2500
3232
|
case /* optional bool py_generic_services */ 18:
|
|
2501
3233
|
message.pyGenericServices = reader.bool();
|
|
2502
3234
|
break;
|
|
2503
|
-
case /* optional bool php_generic_services */ 42:
|
|
2504
|
-
message.phpGenericServices = reader.bool();
|
|
2505
|
-
break;
|
|
2506
3235
|
case /* optional bool deprecated */ 23:
|
|
2507
3236
|
message.deprecated = reader.bool();
|
|
2508
3237
|
break;
|
|
@@ -2530,6 +3259,9 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
2530
3259
|
case /* optional string ruby_package */ 45:
|
|
2531
3260
|
message.rubyPackage = reader.string();
|
|
2532
3261
|
break;
|
|
3262
|
+
case /* optional google.protobuf.FeatureSet features */ 50:
|
|
3263
|
+
message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
3264
|
+
break;
|
|
2533
3265
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
2534
3266
|
message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
|
|
2535
3267
|
break;
|
|
@@ -2575,9 +3307,6 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
2575
3307
|
/* optional bool py_generic_services = 18; */
|
|
2576
3308
|
if (message.pyGenericServices !== undefined)
|
|
2577
3309
|
writer.tag(18, WireType.Varint).bool(message.pyGenericServices);
|
|
2578
|
-
/* optional bool php_generic_services = 42; */
|
|
2579
|
-
if (message.phpGenericServices !== undefined)
|
|
2580
|
-
writer.tag(42, WireType.Varint).bool(message.phpGenericServices);
|
|
2581
3310
|
/* optional bool deprecated = 23; */
|
|
2582
3311
|
if (message.deprecated !== undefined)
|
|
2583
3312
|
writer.tag(23, WireType.Varint).bool(message.deprecated);
|
|
@@ -2605,6 +3334,9 @@ class FileOptions$Type extends MessageType<FileOptions> {
|
|
|
2605
3334
|
/* optional string ruby_package = 45; */
|
|
2606
3335
|
if (message.rubyPackage !== undefined)
|
|
2607
3336
|
writer.tag(45, WireType.LengthDelimited).string(message.rubyPackage);
|
|
3337
|
+
/* optional google.protobuf.FeatureSet features = 50; */
|
|
3338
|
+
if (message.features)
|
|
3339
|
+
FeatureSet.internalBinaryWrite(message.features, writer.tag(50, WireType.LengthDelimited).fork(), options).join();
|
|
2608
3340
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
2609
3341
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
2610
3342
|
UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -2626,6 +3358,8 @@ class MessageOptions$Type extends MessageType<MessageOptions> {
|
|
|
2626
3358
|
{ no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2627
3359
|
{ no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2628
3360
|
{ no: 7, name: "map_entry", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3361
|
+
{ no: 11, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3362
|
+
{ no: 12, name: "features", kind: "message", T: () => FeatureSet },
|
|
2629
3363
|
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
|
|
2630
3364
|
]);
|
|
2631
3365
|
}
|
|
@@ -2653,6 +3387,12 @@ class MessageOptions$Type extends MessageType<MessageOptions> {
|
|
|
2653
3387
|
case /* optional bool map_entry */ 7:
|
|
2654
3388
|
message.mapEntry = reader.bool();
|
|
2655
3389
|
break;
|
|
3390
|
+
case /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];*/ 11:
|
|
3391
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
3392
|
+
break;
|
|
3393
|
+
case /* optional google.protobuf.FeatureSet features */ 12:
|
|
3394
|
+
message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
3395
|
+
break;
|
|
2656
3396
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
2657
3397
|
message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
|
|
2658
3398
|
break;
|
|
@@ -2680,6 +3420,12 @@ class MessageOptions$Type extends MessageType<MessageOptions> {
|
|
|
2680
3420
|
/* optional bool map_entry = 7; */
|
|
2681
3421
|
if (message.mapEntry !== undefined)
|
|
2682
3422
|
writer.tag(7, WireType.Varint).bool(message.mapEntry);
|
|
3423
|
+
/* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; */
|
|
3424
|
+
if (message.deprecatedLegacyJsonFieldConflicts !== undefined)
|
|
3425
|
+
writer.tag(11, WireType.Varint).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
3426
|
+
/* optional google.protobuf.FeatureSet features = 12; */
|
|
3427
|
+
if (message.features)
|
|
3428
|
+
FeatureSet.internalBinaryWrite(message.features, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
2683
3429
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
2684
3430
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
2685
3431
|
UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -2704,11 +3450,19 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
2704
3450
|
{ no: 15, name: "unverified_lazy", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2705
3451
|
{ no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2706
3452
|
{ no: 10, name: "weak", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3453
|
+
{ no: 16, name: "debug_redact", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3454
|
+
{ no: 17, name: "retention", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.OptionRetention", FieldOptions_OptionRetention] },
|
|
3455
|
+
{ no: 19, name: "targets", kind: "enum", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ["google.protobuf.FieldOptions.OptionTargetType", FieldOptions_OptionTargetType] },
|
|
3456
|
+
{ no: 20, name: "edition_defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldOptions_EditionDefault },
|
|
3457
|
+
{ no: 21, name: "features", kind: "message", T: () => FeatureSet },
|
|
3458
|
+
{ no: 22, name: "feature_support", kind: "message", T: () => FieldOptions_FeatureSupport },
|
|
2707
3459
|
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
|
|
2708
3460
|
]);
|
|
2709
3461
|
}
|
|
2710
3462
|
create(value?: PartialMessage<FieldOptions>): FieldOptions {
|
|
2711
3463
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3464
|
+
message.targets = [];
|
|
3465
|
+
message.editionDefaults = [];
|
|
2712
3466
|
message.uninterpretedOption = [];
|
|
2713
3467
|
if (value !== undefined)
|
|
2714
3468
|
reflectionMergePartial<FieldOptions>(this, message, value);
|
|
@@ -2740,6 +3494,28 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
2740
3494
|
case /* optional bool weak */ 10:
|
|
2741
3495
|
message.weak = reader.bool();
|
|
2742
3496
|
break;
|
|
3497
|
+
case /* optional bool debug_redact */ 16:
|
|
3498
|
+
message.debugRedact = reader.bool();
|
|
3499
|
+
break;
|
|
3500
|
+
case /* optional google.protobuf.FieldOptions.OptionRetention retention */ 17:
|
|
3501
|
+
message.retention = reader.int32();
|
|
3502
|
+
break;
|
|
3503
|
+
case /* repeated google.protobuf.FieldOptions.OptionTargetType targets */ 19:
|
|
3504
|
+
if (wireType === WireType.LengthDelimited)
|
|
3505
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3506
|
+
message.targets.push(reader.int32());
|
|
3507
|
+
else
|
|
3508
|
+
message.targets.push(reader.int32());
|
|
3509
|
+
break;
|
|
3510
|
+
case /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults */ 20:
|
|
3511
|
+
message.editionDefaults.push(FieldOptions_EditionDefault.internalBinaryRead(reader, reader.uint32(), options));
|
|
3512
|
+
break;
|
|
3513
|
+
case /* optional google.protobuf.FeatureSet features */ 21:
|
|
3514
|
+
message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
3515
|
+
break;
|
|
3516
|
+
case /* optional google.protobuf.FieldOptions.FeatureSupport feature_support */ 22:
|
|
3517
|
+
message.featureSupport = FieldOptions_FeatureSupport.internalBinaryRead(reader, reader.uint32(), options, message.featureSupport);
|
|
3518
|
+
break;
|
|
2743
3519
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
2744
3520
|
message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
|
|
2745
3521
|
break;
|
|
@@ -2776,6 +3552,24 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
2776
3552
|
/* optional bool weak = 10; */
|
|
2777
3553
|
if (message.weak !== undefined)
|
|
2778
3554
|
writer.tag(10, WireType.Varint).bool(message.weak);
|
|
3555
|
+
/* optional bool debug_redact = 16; */
|
|
3556
|
+
if (message.debugRedact !== undefined)
|
|
3557
|
+
writer.tag(16, WireType.Varint).bool(message.debugRedact);
|
|
3558
|
+
/* optional google.protobuf.FieldOptions.OptionRetention retention = 17; */
|
|
3559
|
+
if (message.retention !== undefined)
|
|
3560
|
+
writer.tag(17, WireType.Varint).int32(message.retention);
|
|
3561
|
+
/* repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; */
|
|
3562
|
+
for (let i = 0; i < message.targets.length; i++)
|
|
3563
|
+
writer.tag(19, WireType.Varint).int32(message.targets[i]);
|
|
3564
|
+
/* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; */
|
|
3565
|
+
for (let i = 0; i < message.editionDefaults.length; i++)
|
|
3566
|
+
FieldOptions_EditionDefault.internalBinaryWrite(message.editionDefaults[i], writer.tag(20, WireType.LengthDelimited).fork(), options).join();
|
|
3567
|
+
/* optional google.protobuf.FeatureSet features = 21; */
|
|
3568
|
+
if (message.features)
|
|
3569
|
+
FeatureSet.internalBinaryWrite(message.features, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
3570
|
+
/* optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; */
|
|
3571
|
+
if (message.featureSupport)
|
|
3572
|
+
FieldOptions_FeatureSupport.internalBinaryWrite(message.featureSupport, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
|
|
2779
3573
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
2780
3574
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
2781
3575
|
UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -2790,9 +3584,130 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
2790
3584
|
*/
|
|
2791
3585
|
export const FieldOptions = new FieldOptions$Type();
|
|
2792
3586
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3587
|
+
class FieldOptions_EditionDefault$Type extends MessageType<FieldOptions_EditionDefault> {
|
|
3588
|
+
constructor() {
|
|
3589
|
+
super("google.protobuf.FieldOptions.EditionDefault", [
|
|
3590
|
+
{ no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
|
|
3591
|
+
{ no: 2, name: "value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
3592
|
+
]);
|
|
3593
|
+
}
|
|
3594
|
+
create(value?: PartialMessage<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
|
|
3595
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3596
|
+
if (value !== undefined)
|
|
3597
|
+
reflectionMergePartial<FieldOptions_EditionDefault>(this, message, value);
|
|
3598
|
+
return message;
|
|
3599
|
+
}
|
|
3600
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_EditionDefault): FieldOptions_EditionDefault {
|
|
3601
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3602
|
+
while (reader.pos < end) {
|
|
3603
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3604
|
+
switch (fieldNo) {
|
|
3605
|
+
case /* optional google.protobuf.Edition edition */ 3:
|
|
3606
|
+
message.edition = reader.int32();
|
|
3607
|
+
break;
|
|
3608
|
+
case /* optional string value */ 2:
|
|
3609
|
+
message.value = reader.string();
|
|
3610
|
+
break;
|
|
3611
|
+
default:
|
|
3612
|
+
let u = options.readUnknownField;
|
|
3613
|
+
if (u === "throw")
|
|
3614
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3615
|
+
let d = reader.skip(wireType);
|
|
3616
|
+
if (u !== false)
|
|
3617
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3618
|
+
}
|
|
3619
|
+
}
|
|
3620
|
+
return message;
|
|
3621
|
+
}
|
|
3622
|
+
internalBinaryWrite(message: FieldOptions_EditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3623
|
+
/* optional google.protobuf.Edition edition = 3; */
|
|
3624
|
+
if (message.edition !== undefined)
|
|
3625
|
+
writer.tag(3, WireType.Varint).int32(message.edition);
|
|
3626
|
+
/* optional string value = 2; */
|
|
3627
|
+
if (message.value !== undefined)
|
|
3628
|
+
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
|
3629
|
+
let u = options.writeUnknownFields;
|
|
3630
|
+
if (u !== false)
|
|
3631
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3632
|
+
return writer;
|
|
3633
|
+
}
|
|
3634
|
+
}
|
|
3635
|
+
/**
|
|
3636
|
+
* @generated MessageType for protobuf message google.protobuf.FieldOptions.EditionDefault
|
|
3637
|
+
*/
|
|
3638
|
+
export const FieldOptions_EditionDefault = new FieldOptions_EditionDefault$Type();
|
|
3639
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3640
|
+
class FieldOptions_FeatureSupport$Type extends MessageType<FieldOptions_FeatureSupport> {
|
|
3641
|
+
constructor() {
|
|
3642
|
+
super("google.protobuf.FieldOptions.FeatureSupport", [
|
|
3643
|
+
{ no: 1, name: "edition_introduced", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
|
|
3644
|
+
{ no: 2, name: "edition_deprecated", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
|
|
3645
|
+
{ no: 3, name: "deprecation_warning", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3646
|
+
{ no: 4, name: "edition_removed", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }
|
|
3647
|
+
]);
|
|
3648
|
+
}
|
|
3649
|
+
create(value?: PartialMessage<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {
|
|
3650
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3651
|
+
if (value !== undefined)
|
|
3652
|
+
reflectionMergePartial<FieldOptions_FeatureSupport>(this, message, value);
|
|
3653
|
+
return message;
|
|
3654
|
+
}
|
|
3655
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_FeatureSupport): FieldOptions_FeatureSupport {
|
|
3656
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3657
|
+
while (reader.pos < end) {
|
|
3658
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3659
|
+
switch (fieldNo) {
|
|
3660
|
+
case /* optional google.protobuf.Edition edition_introduced */ 1:
|
|
3661
|
+
message.editionIntroduced = reader.int32();
|
|
3662
|
+
break;
|
|
3663
|
+
case /* optional google.protobuf.Edition edition_deprecated */ 2:
|
|
3664
|
+
message.editionDeprecated = reader.int32();
|
|
3665
|
+
break;
|
|
3666
|
+
case /* optional string deprecation_warning */ 3:
|
|
3667
|
+
message.deprecationWarning = reader.string();
|
|
3668
|
+
break;
|
|
3669
|
+
case /* optional google.protobuf.Edition edition_removed */ 4:
|
|
3670
|
+
message.editionRemoved = reader.int32();
|
|
3671
|
+
break;
|
|
3672
|
+
default:
|
|
3673
|
+
let u = options.readUnknownField;
|
|
3674
|
+
if (u === "throw")
|
|
3675
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3676
|
+
let d = reader.skip(wireType);
|
|
3677
|
+
if (u !== false)
|
|
3678
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
return message;
|
|
3682
|
+
}
|
|
3683
|
+
internalBinaryWrite(message: FieldOptions_FeatureSupport, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3684
|
+
/* optional google.protobuf.Edition edition_introduced = 1; */
|
|
3685
|
+
if (message.editionIntroduced !== undefined)
|
|
3686
|
+
writer.tag(1, WireType.Varint).int32(message.editionIntroduced);
|
|
3687
|
+
/* optional google.protobuf.Edition edition_deprecated = 2; */
|
|
3688
|
+
if (message.editionDeprecated !== undefined)
|
|
3689
|
+
writer.tag(2, WireType.Varint).int32(message.editionDeprecated);
|
|
3690
|
+
/* optional string deprecation_warning = 3; */
|
|
3691
|
+
if (message.deprecationWarning !== undefined)
|
|
3692
|
+
writer.tag(3, WireType.LengthDelimited).string(message.deprecationWarning);
|
|
3693
|
+
/* optional google.protobuf.Edition edition_removed = 4; */
|
|
3694
|
+
if (message.editionRemoved !== undefined)
|
|
3695
|
+
writer.tag(4, WireType.Varint).int32(message.editionRemoved);
|
|
3696
|
+
let u = options.writeUnknownFields;
|
|
3697
|
+
if (u !== false)
|
|
3698
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3699
|
+
return writer;
|
|
3700
|
+
}
|
|
3701
|
+
}
|
|
3702
|
+
/**
|
|
3703
|
+
* @generated MessageType for protobuf message google.protobuf.FieldOptions.FeatureSupport
|
|
3704
|
+
*/
|
|
3705
|
+
export const FieldOptions_FeatureSupport = new FieldOptions_FeatureSupport$Type();
|
|
3706
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2793
3707
|
class OneofOptions$Type extends MessageType<OneofOptions> {
|
|
2794
3708
|
constructor() {
|
|
2795
3709
|
super("google.protobuf.OneofOptions", [
|
|
3710
|
+
{ no: 1, name: "features", kind: "message", T: () => FeatureSet },
|
|
2796
3711
|
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
|
|
2797
3712
|
]);
|
|
2798
3713
|
}
|
|
@@ -2808,6 +3723,9 @@ class OneofOptions$Type extends MessageType<OneofOptions> {
|
|
|
2808
3723
|
while (reader.pos < end) {
|
|
2809
3724
|
let [fieldNo, wireType] = reader.tag();
|
|
2810
3725
|
switch (fieldNo) {
|
|
3726
|
+
case /* optional google.protobuf.FeatureSet features */ 1:
|
|
3727
|
+
message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
3728
|
+
break;
|
|
2811
3729
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
2812
3730
|
message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
|
|
2813
3731
|
break;
|
|
@@ -2823,6 +3741,9 @@ class OneofOptions$Type extends MessageType<OneofOptions> {
|
|
|
2823
3741
|
return message;
|
|
2824
3742
|
}
|
|
2825
3743
|
internalBinaryWrite(message: OneofOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3744
|
+
/* optional google.protobuf.FeatureSet features = 1; */
|
|
3745
|
+
if (message.features)
|
|
3746
|
+
FeatureSet.internalBinaryWrite(message.features, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2826
3747
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
2827
3748
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
2828
3749
|
UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -2842,6 +3763,8 @@ class EnumOptions$Type extends MessageType<EnumOptions> {
|
|
|
2842
3763
|
super("google.protobuf.EnumOptions", [
|
|
2843
3764
|
{ no: 2, name: "allow_alias", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2844
3765
|
{ no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3766
|
+
{ no: 6, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3767
|
+
{ no: 7, name: "features", kind: "message", T: () => FeatureSet },
|
|
2845
3768
|
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
|
|
2846
3769
|
]);
|
|
2847
3770
|
}
|
|
@@ -2863,6 +3786,12 @@ class EnumOptions$Type extends MessageType<EnumOptions> {
|
|
|
2863
3786
|
case /* optional bool deprecated */ 3:
|
|
2864
3787
|
message.deprecated = reader.bool();
|
|
2865
3788
|
break;
|
|
3789
|
+
case /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];*/ 6:
|
|
3790
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
3791
|
+
break;
|
|
3792
|
+
case /* optional google.protobuf.FeatureSet features */ 7:
|
|
3793
|
+
message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
3794
|
+
break;
|
|
2866
3795
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
2867
3796
|
message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
|
|
2868
3797
|
break;
|
|
@@ -2884,6 +3813,12 @@ class EnumOptions$Type extends MessageType<EnumOptions> {
|
|
|
2884
3813
|
/* optional bool deprecated = 3; */
|
|
2885
3814
|
if (message.deprecated !== undefined)
|
|
2886
3815
|
writer.tag(3, WireType.Varint).bool(message.deprecated);
|
|
3816
|
+
/* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; */
|
|
3817
|
+
if (message.deprecatedLegacyJsonFieldConflicts !== undefined)
|
|
3818
|
+
writer.tag(6, WireType.Varint).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
3819
|
+
/* optional google.protobuf.FeatureSet features = 7; */
|
|
3820
|
+
if (message.features)
|
|
3821
|
+
FeatureSet.internalBinaryWrite(message.features, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
2887
3822
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
2888
3823
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
2889
3824
|
UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -2902,6 +3837,9 @@ class EnumValueOptions$Type extends MessageType<EnumValueOptions> {
|
|
|
2902
3837
|
constructor() {
|
|
2903
3838
|
super("google.protobuf.EnumValueOptions", [
|
|
2904
3839
|
{ no: 1, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3840
|
+
{ no: 2, name: "features", kind: "message", T: () => FeatureSet },
|
|
3841
|
+
{ no: 3, name: "debug_redact", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3842
|
+
{ no: 4, name: "feature_support", kind: "message", T: () => FieldOptions_FeatureSupport },
|
|
2905
3843
|
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
|
|
2906
3844
|
]);
|
|
2907
3845
|
}
|
|
@@ -2920,6 +3858,15 @@ class EnumValueOptions$Type extends MessageType<EnumValueOptions> {
|
|
|
2920
3858
|
case /* optional bool deprecated */ 1:
|
|
2921
3859
|
message.deprecated = reader.bool();
|
|
2922
3860
|
break;
|
|
3861
|
+
case /* optional google.protobuf.FeatureSet features */ 2:
|
|
3862
|
+
message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
3863
|
+
break;
|
|
3864
|
+
case /* optional bool debug_redact */ 3:
|
|
3865
|
+
message.debugRedact = reader.bool();
|
|
3866
|
+
break;
|
|
3867
|
+
case /* optional google.protobuf.FieldOptions.FeatureSupport feature_support */ 4:
|
|
3868
|
+
message.featureSupport = FieldOptions_FeatureSupport.internalBinaryRead(reader, reader.uint32(), options, message.featureSupport);
|
|
3869
|
+
break;
|
|
2923
3870
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
2924
3871
|
message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
|
|
2925
3872
|
break;
|
|
@@ -2938,6 +3885,15 @@ class EnumValueOptions$Type extends MessageType<EnumValueOptions> {
|
|
|
2938
3885
|
/* optional bool deprecated = 1; */
|
|
2939
3886
|
if (message.deprecated !== undefined)
|
|
2940
3887
|
writer.tag(1, WireType.Varint).bool(message.deprecated);
|
|
3888
|
+
/* optional google.protobuf.FeatureSet features = 2; */
|
|
3889
|
+
if (message.features)
|
|
3890
|
+
FeatureSet.internalBinaryWrite(message.features, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3891
|
+
/* optional bool debug_redact = 3; */
|
|
3892
|
+
if (message.debugRedact !== undefined)
|
|
3893
|
+
writer.tag(3, WireType.Varint).bool(message.debugRedact);
|
|
3894
|
+
/* optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; */
|
|
3895
|
+
if (message.featureSupport)
|
|
3896
|
+
FieldOptions_FeatureSupport.internalBinaryWrite(message.featureSupport, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
2941
3897
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
2942
3898
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
2943
3899
|
UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -2955,6 +3911,7 @@ export const EnumValueOptions = new EnumValueOptions$Type();
|
|
|
2955
3911
|
class ServiceOptions$Type extends MessageType<ServiceOptions> {
|
|
2956
3912
|
constructor() {
|
|
2957
3913
|
super("google.protobuf.ServiceOptions", [
|
|
3914
|
+
{ no: 34, name: "features", kind: "message", T: () => FeatureSet },
|
|
2958
3915
|
{ no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2959
3916
|
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
|
|
2960
3917
|
]);
|
|
@@ -2971,6 +3928,9 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
|
|
|
2971
3928
|
while (reader.pos < end) {
|
|
2972
3929
|
let [fieldNo, wireType] = reader.tag();
|
|
2973
3930
|
switch (fieldNo) {
|
|
3931
|
+
case /* optional google.protobuf.FeatureSet features */ 34:
|
|
3932
|
+
message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
3933
|
+
break;
|
|
2974
3934
|
case /* optional bool deprecated */ 33:
|
|
2975
3935
|
message.deprecated = reader.bool();
|
|
2976
3936
|
break;
|
|
@@ -2989,6 +3949,9 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
|
|
|
2989
3949
|
return message;
|
|
2990
3950
|
}
|
|
2991
3951
|
internalBinaryWrite(message: ServiceOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3952
|
+
/* optional google.protobuf.FeatureSet features = 34; */
|
|
3953
|
+
if (message.features)
|
|
3954
|
+
FeatureSet.internalBinaryWrite(message.features, writer.tag(34, WireType.LengthDelimited).fork(), options).join();
|
|
2992
3955
|
/* optional bool deprecated = 33; */
|
|
2993
3956
|
if (message.deprecated !== undefined)
|
|
2994
3957
|
writer.tag(33, WireType.Varint).bool(message.deprecated);
|
|
@@ -3011,6 +3974,7 @@ class MethodOptions$Type extends MessageType<MethodOptions> {
|
|
|
3011
3974
|
super("google.protobuf.MethodOptions", [
|
|
3012
3975
|
{ no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3013
3976
|
{ no: 34, name: "idempotency_level", kind: "enum", opt: true, T: () => ["google.protobuf.MethodOptions.IdempotencyLevel", MethodOptions_IdempotencyLevel] },
|
|
3977
|
+
{ no: 35, name: "features", kind: "message", T: () => FeatureSet },
|
|
3014
3978
|
{ no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
|
|
3015
3979
|
]);
|
|
3016
3980
|
}
|
|
@@ -3032,6 +3996,9 @@ class MethodOptions$Type extends MessageType<MethodOptions> {
|
|
|
3032
3996
|
case /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level */ 34:
|
|
3033
3997
|
message.idempotencyLevel = reader.int32();
|
|
3034
3998
|
break;
|
|
3999
|
+
case /* optional google.protobuf.FeatureSet features */ 35:
|
|
4000
|
+
message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
4001
|
+
break;
|
|
3035
4002
|
case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
|
|
3036
4003
|
message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
|
|
3037
4004
|
break;
|
|
@@ -3053,6 +4020,9 @@ class MethodOptions$Type extends MessageType<MethodOptions> {
|
|
|
3053
4020
|
/* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; */
|
|
3054
4021
|
if (message.idempotencyLevel !== undefined)
|
|
3055
4022
|
writer.tag(34, WireType.Varint).int32(message.idempotencyLevel);
|
|
4023
|
+
/* optional google.protobuf.FeatureSet features = 35; */
|
|
4024
|
+
if (message.features)
|
|
4025
|
+
FeatureSet.internalBinaryWrite(message.features, writer.tag(35, WireType.LengthDelimited).fork(), options).join();
|
|
3056
4026
|
/* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
|
|
3057
4027
|
for (let i = 0; i < message.uninterpretedOption.length; i++)
|
|
3058
4028
|
UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -3211,6 +4181,208 @@ class UninterpretedOption_NamePart$Type extends MessageType<UninterpretedOption_
|
|
|
3211
4181
|
*/
|
|
3212
4182
|
export const UninterpretedOption_NamePart = new UninterpretedOption_NamePart$Type();
|
|
3213
4183
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4184
|
+
class FeatureSet$Type extends MessageType<FeatureSet> {
|
|
4185
|
+
constructor() {
|
|
4186
|
+
super("google.protobuf.FeatureSet", [
|
|
4187
|
+
{ no: 1, name: "field_presence", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.FieldPresence", FeatureSet_FieldPresence] },
|
|
4188
|
+
{ no: 2, name: "enum_type", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.EnumType", FeatureSet_EnumType] },
|
|
4189
|
+
{ no: 3, name: "repeated_field_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.RepeatedFieldEncoding", FeatureSet_RepeatedFieldEncoding] },
|
|
4190
|
+
{ no: 4, name: "utf8_validation", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.Utf8Validation", FeatureSet_Utf8Validation] },
|
|
4191
|
+
{ no: 5, name: "message_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.MessageEncoding", FeatureSet_MessageEncoding] },
|
|
4192
|
+
{ no: 6, name: "json_format", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.JsonFormat", FeatureSet_JsonFormat] }
|
|
4193
|
+
]);
|
|
4194
|
+
}
|
|
4195
|
+
create(value?: PartialMessage<FeatureSet>): FeatureSet {
|
|
4196
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4197
|
+
if (value !== undefined)
|
|
4198
|
+
reflectionMergePartial<FeatureSet>(this, message, value);
|
|
4199
|
+
return message;
|
|
4200
|
+
}
|
|
4201
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSet): FeatureSet {
|
|
4202
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4203
|
+
while (reader.pos < end) {
|
|
4204
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4205
|
+
switch (fieldNo) {
|
|
4206
|
+
case /* optional google.protobuf.FeatureSet.FieldPresence field_presence */ 1:
|
|
4207
|
+
message.fieldPresence = reader.int32();
|
|
4208
|
+
break;
|
|
4209
|
+
case /* optional google.protobuf.FeatureSet.EnumType enum_type */ 2:
|
|
4210
|
+
message.enumType = reader.int32();
|
|
4211
|
+
break;
|
|
4212
|
+
case /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding */ 3:
|
|
4213
|
+
message.repeatedFieldEncoding = reader.int32();
|
|
4214
|
+
break;
|
|
4215
|
+
case /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation */ 4:
|
|
4216
|
+
message.utf8Validation = reader.int32();
|
|
4217
|
+
break;
|
|
4218
|
+
case /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding */ 5:
|
|
4219
|
+
message.messageEncoding = reader.int32();
|
|
4220
|
+
break;
|
|
4221
|
+
case /* optional google.protobuf.FeatureSet.JsonFormat json_format */ 6:
|
|
4222
|
+
message.jsonFormat = reader.int32();
|
|
4223
|
+
break;
|
|
4224
|
+
default:
|
|
4225
|
+
let u = options.readUnknownField;
|
|
4226
|
+
if (u === "throw")
|
|
4227
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4228
|
+
let d = reader.skip(wireType);
|
|
4229
|
+
if (u !== false)
|
|
4230
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4231
|
+
}
|
|
4232
|
+
}
|
|
4233
|
+
return message;
|
|
4234
|
+
}
|
|
4235
|
+
internalBinaryWrite(message: FeatureSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4236
|
+
/* optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; */
|
|
4237
|
+
if (message.fieldPresence !== undefined)
|
|
4238
|
+
writer.tag(1, WireType.Varint).int32(message.fieldPresence);
|
|
4239
|
+
/* optional google.protobuf.FeatureSet.EnumType enum_type = 2; */
|
|
4240
|
+
if (message.enumType !== undefined)
|
|
4241
|
+
writer.tag(2, WireType.Varint).int32(message.enumType);
|
|
4242
|
+
/* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; */
|
|
4243
|
+
if (message.repeatedFieldEncoding !== undefined)
|
|
4244
|
+
writer.tag(3, WireType.Varint).int32(message.repeatedFieldEncoding);
|
|
4245
|
+
/* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; */
|
|
4246
|
+
if (message.utf8Validation !== undefined)
|
|
4247
|
+
writer.tag(4, WireType.Varint).int32(message.utf8Validation);
|
|
4248
|
+
/* optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; */
|
|
4249
|
+
if (message.messageEncoding !== undefined)
|
|
4250
|
+
writer.tag(5, WireType.Varint).int32(message.messageEncoding);
|
|
4251
|
+
/* optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */
|
|
4252
|
+
if (message.jsonFormat !== undefined)
|
|
4253
|
+
writer.tag(6, WireType.Varint).int32(message.jsonFormat);
|
|
4254
|
+
let u = options.writeUnknownFields;
|
|
4255
|
+
if (u !== false)
|
|
4256
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4257
|
+
return writer;
|
|
4258
|
+
}
|
|
4259
|
+
}
|
|
4260
|
+
/**
|
|
4261
|
+
* @generated MessageType for protobuf message google.protobuf.FeatureSet
|
|
4262
|
+
*/
|
|
4263
|
+
export const FeatureSet = new FeatureSet$Type();
|
|
4264
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
4265
|
+
class FeatureSetDefaults$Type extends MessageType<FeatureSetDefaults> {
|
|
4266
|
+
constructor() {
|
|
4267
|
+
super("google.protobuf.FeatureSetDefaults", [
|
|
4268
|
+
{ no: 1, name: "defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FeatureSetDefaults_FeatureSetEditionDefault },
|
|
4269
|
+
{ no: 4, name: "minimum_edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
|
|
4270
|
+
{ no: 5, name: "maximum_edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }
|
|
4271
|
+
]);
|
|
4272
|
+
}
|
|
4273
|
+
create(value?: PartialMessage<FeatureSetDefaults>): FeatureSetDefaults {
|
|
4274
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4275
|
+
message.defaults = [];
|
|
4276
|
+
if (value !== undefined)
|
|
4277
|
+
reflectionMergePartial<FeatureSetDefaults>(this, message, value);
|
|
4278
|
+
return message;
|
|
4279
|
+
}
|
|
4280
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults): FeatureSetDefaults {
|
|
4281
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4282
|
+
while (reader.pos < end) {
|
|
4283
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4284
|
+
switch (fieldNo) {
|
|
4285
|
+
case /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults */ 1:
|
|
4286
|
+
message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryRead(reader, reader.uint32(), options));
|
|
4287
|
+
break;
|
|
4288
|
+
case /* optional google.protobuf.Edition minimum_edition */ 4:
|
|
4289
|
+
message.minimumEdition = reader.int32();
|
|
4290
|
+
break;
|
|
4291
|
+
case /* optional google.protobuf.Edition maximum_edition */ 5:
|
|
4292
|
+
message.maximumEdition = reader.int32();
|
|
4293
|
+
break;
|
|
4294
|
+
default:
|
|
4295
|
+
let u = options.readUnknownField;
|
|
4296
|
+
if (u === "throw")
|
|
4297
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4298
|
+
let d = reader.skip(wireType);
|
|
4299
|
+
if (u !== false)
|
|
4300
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
return message;
|
|
4304
|
+
}
|
|
4305
|
+
internalBinaryWrite(message: FeatureSetDefaults, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4306
|
+
/* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; */
|
|
4307
|
+
for (let i = 0; i < message.defaults.length; i++)
|
|
4308
|
+
FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryWrite(message.defaults[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4309
|
+
/* optional google.protobuf.Edition minimum_edition = 4; */
|
|
4310
|
+
if (message.minimumEdition !== undefined)
|
|
4311
|
+
writer.tag(4, WireType.Varint).int32(message.minimumEdition);
|
|
4312
|
+
/* optional google.protobuf.Edition maximum_edition = 5; */
|
|
4313
|
+
if (message.maximumEdition !== undefined)
|
|
4314
|
+
writer.tag(5, WireType.Varint).int32(message.maximumEdition);
|
|
4315
|
+
let u = options.writeUnknownFields;
|
|
4316
|
+
if (u !== false)
|
|
4317
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4318
|
+
return writer;
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4321
|
+
/**
|
|
4322
|
+
* @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults
|
|
4323
|
+
*/
|
|
4324
|
+
export const FeatureSetDefaults = new FeatureSetDefaults$Type();
|
|
4325
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
4326
|
+
class FeatureSetDefaults_FeatureSetEditionDefault$Type extends MessageType<FeatureSetDefaults_FeatureSetEditionDefault> {
|
|
4327
|
+
constructor() {
|
|
4328
|
+
super("google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault", [
|
|
4329
|
+
{ no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
|
|
4330
|
+
{ no: 4, name: "overridable_features", kind: "message", T: () => FeatureSet },
|
|
4331
|
+
{ no: 5, name: "fixed_features", kind: "message", T: () => FeatureSet }
|
|
4332
|
+
]);
|
|
4333
|
+
}
|
|
4334
|
+
create(value?: PartialMessage<FeatureSetDefaults_FeatureSetEditionDefault>): FeatureSetDefaults_FeatureSetEditionDefault {
|
|
4335
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4336
|
+
if (value !== undefined)
|
|
4337
|
+
reflectionMergePartial<FeatureSetDefaults_FeatureSetEditionDefault>(this, message, value);
|
|
4338
|
+
return message;
|
|
4339
|
+
}
|
|
4340
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults_FeatureSetEditionDefault): FeatureSetDefaults_FeatureSetEditionDefault {
|
|
4341
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4342
|
+
while (reader.pos < end) {
|
|
4343
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4344
|
+
switch (fieldNo) {
|
|
4345
|
+
case /* optional google.protobuf.Edition edition */ 3:
|
|
4346
|
+
message.edition = reader.int32();
|
|
4347
|
+
break;
|
|
4348
|
+
case /* optional google.protobuf.FeatureSet overridable_features */ 4:
|
|
4349
|
+
message.overridableFeatures = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.overridableFeatures);
|
|
4350
|
+
break;
|
|
4351
|
+
case /* optional google.protobuf.FeatureSet fixed_features */ 5:
|
|
4352
|
+
message.fixedFeatures = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.fixedFeatures);
|
|
4353
|
+
break;
|
|
4354
|
+
default:
|
|
4355
|
+
let u = options.readUnknownField;
|
|
4356
|
+
if (u === "throw")
|
|
4357
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4358
|
+
let d = reader.skip(wireType);
|
|
4359
|
+
if (u !== false)
|
|
4360
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
return message;
|
|
4364
|
+
}
|
|
4365
|
+
internalBinaryWrite(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4366
|
+
/* optional google.protobuf.Edition edition = 3; */
|
|
4367
|
+
if (message.edition !== undefined)
|
|
4368
|
+
writer.tag(3, WireType.Varint).int32(message.edition);
|
|
4369
|
+
/* optional google.protobuf.FeatureSet overridable_features = 4; */
|
|
4370
|
+
if (message.overridableFeatures)
|
|
4371
|
+
FeatureSet.internalBinaryWrite(message.overridableFeatures, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
4372
|
+
/* optional google.protobuf.FeatureSet fixed_features = 5; */
|
|
4373
|
+
if (message.fixedFeatures)
|
|
4374
|
+
FeatureSet.internalBinaryWrite(message.fixedFeatures, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
4375
|
+
let u = options.writeUnknownFields;
|
|
4376
|
+
if (u !== false)
|
|
4377
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4378
|
+
return writer;
|
|
4379
|
+
}
|
|
4380
|
+
}
|
|
4381
|
+
/**
|
|
4382
|
+
* @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
4383
|
+
*/
|
|
4384
|
+
export const FeatureSetDefaults_FeatureSetEditionDefault = new FeatureSetDefaults_FeatureSetEditionDefault$Type();
|
|
4385
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3214
4386
|
class SourceCodeInfo$Type extends MessageType<SourceCodeInfo> {
|
|
3215
4387
|
constructor() {
|
|
3216
4388
|
super("google.protobuf.SourceCodeInfo", [
|
|
@@ -3404,7 +4576,8 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType<GeneratedCodeInfo_An
|
|
|
3404
4576
|
{ no: 1, name: "path", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ },
|
|
3405
4577
|
{ no: 2, name: "source_file", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3406
4578
|
{ no: 3, name: "begin", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
3407
|
-
{ no: 4, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
4579
|
+
{ no: 4, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
4580
|
+
{ no: 5, name: "semantic", kind: "enum", opt: true, T: () => ["google.protobuf.GeneratedCodeInfo.Annotation.Semantic", GeneratedCodeInfo_Annotation_Semantic] }
|
|
3408
4581
|
]);
|
|
3409
4582
|
}
|
|
3410
4583
|
create(value?: PartialMessage<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation {
|
|
@@ -3435,6 +4608,9 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType<GeneratedCodeInfo_An
|
|
|
3435
4608
|
case /* optional int32 end */ 4:
|
|
3436
4609
|
message.end = reader.int32();
|
|
3437
4610
|
break;
|
|
4611
|
+
case /* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic */ 5:
|
|
4612
|
+
message.semantic = reader.int32();
|
|
4613
|
+
break;
|
|
3438
4614
|
default:
|
|
3439
4615
|
let u = options.readUnknownField;
|
|
3440
4616
|
if (u === "throw")
|
|
@@ -3463,6 +4639,9 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType<GeneratedCodeInfo_An
|
|
|
3463
4639
|
/* optional int32 end = 4; */
|
|
3464
4640
|
if (message.end !== undefined)
|
|
3465
4641
|
writer.tag(4, WireType.Varint).int32(message.end);
|
|
4642
|
+
/* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; */
|
|
4643
|
+
if (message.semantic !== undefined)
|
|
4644
|
+
writer.tag(5, WireType.Varint).int32(message.semantic);
|
|
3466
4645
|
let u = options.writeUnknownFields;
|
|
3467
4646
|
if (u !== false)
|
|
3468
4647
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|