UNPKG

protobufjs

Version:

Protocol Buffers for JavaScript & TypeScript.

1,465 lines 45.9 kB
{ "nested": { "google": { "nested": { "protobuf": { "nested": { "FileDescriptorSet": { "edition": "proto2", "fields": { "file": { "rule": "repeated", "type": "FileDescriptorProto", "id": 1 } }, "extensions": [ [ 536000000, 536000000 ] ] }, "Edition": { "edition": "proto2", "values": { "EDITION_UNKNOWN": 0, "EDITION_LEGACY": 900, "EDITION_PROTO2": 998, "EDITION_PROTO3": 999, "EDITION_2023": 1000, "EDITION_2024": 1001, "EDITION_1_TEST_ONLY": 1, "EDITION_2_TEST_ONLY": 2, "EDITION_99997_TEST_ONLY": 99997, "EDITION_99998_TEST_ONLY": 99998, "EDITION_99999_TEST_ONLY": 99999, "EDITION_MAX": 2147483647 } }, "FileDescriptorProto": { "edition": "proto2", "fields": { "name": { "type": "string", "id": 1 }, "package": { "type": "string", "id": 2 }, "dependency": { "rule": "repeated", "type": "string", "id": 3 }, "publicDependency": { "rule": "repeated", "type": "int32", "id": 10, "protoName": "public_dependency" }, "weakDependency": { "rule": "repeated", "type": "int32", "id": 11, "protoName": "weak_dependency" }, "optionDependency": { "rule": "repeated", "type": "string", "id": 15, "protoName": "option_dependency" }, "messageType": { "rule": "repeated", "type": "DescriptorProto", "id": 4, "protoName": "message_type" }, "enumType": { "rule": "repeated", "type": "EnumDescriptorProto", "id": 5, "protoName": "enum_type" }, "service": { "rule": "repeated", "type": "ServiceDescriptorProto", "id": 6 }, "extension": { "rule": "repeated", "type": "FieldDescriptorProto", "id": 7 }, "options": { "type": "FileOptions", "id": 8 }, "sourceCodeInfo": { "type": "SourceCodeInfo", "id": 9, "protoName": "source_code_info" }, "syntax": { "type": "string", "id": 12 }, "edition": { "type": "Edition", "id": 14 } } }, "DescriptorProto": { "edition": "proto2", "fields": { "name": { "type": "string", "id": 1 }, "field": { "rule": "repeated", "type": "FieldDescriptorProto", "id": 2 }, "extension": { "rule": "repeated", "type": "FieldDescriptorProto", "id": 6 }, "nestedType": { "rule": "repeated", "type": "DescriptorProto", "id": 3, "protoName": "nested_type" }, "enumType": { "rule": "repeated", "type": "EnumDescriptorProto", "id": 4, "protoName": "enum_type" }, "extensionRange": { "rule": "repeated", "type": "ExtensionRange", "id": 5, "protoName": "extension_range" }, "oneofDecl": { "rule": "repeated", "type": "OneofDescriptorProto", "id": 8, "protoName": "oneof_decl" }, "options": { "type": "MessageOptions", "id": 7 }, "reservedRange": { "rule": "repeated", "type": "ReservedRange", "id": 9, "protoName": "reserved_range" }, "reservedName": { "rule": "repeated", "type": "string", "id": 10, "protoName": "reserved_name" }, "visibility": { "type": "SymbolVisibility", "id": 11 } }, "nested": { "ExtensionRange": { "fields": { "start": { "type": "int32", "id": 1 }, "end": { "type": "int32", "id": 2 }, "options": { "type": "ExtensionRangeOptions", "id": 3 } } }, "ReservedRange": { "fields": { "start": { "type": "int32", "id": 1 }, "end": { "type": "int32", "id": 2 } } } } }, "ExtensionRangeOptions": { "edition": "proto2", "fields": { "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999, "protoName": "uninterpreted_option" }, "declaration": { "rule": "repeated", "type": "Declaration", "id": 2, "options": { "retention": "RETENTION_SOURCE" } }, "features": { "type": "FeatureSet", "id": 50 }, "verification": { "type": "VerificationState", "id": 3, "options": { "default": "UNVERIFIED", "retention": "RETENTION_SOURCE" } } }, "extensions": [ [ 1000, 536870911 ] ], "nested": { "Declaration": { "fields": { "number": { "type": "int32", "id": 1 }, "fullName": { "type": "string", "id": 2, "protoName": "full_name" }, "type": { "type": "string", "id": 3 }, "reserved": { "type": "bool", "id": 5 }, "repeated": { "type": "bool", "id": 6 } }, "reserved": [ [ 4, 4 ] ] }, "VerificationState": { "values": { "DECLARATION": 0, "UNVERIFIED": 1 } } } }, "FieldDescriptorProto": { "edition": "proto2", "fields": { "name": { "type": "string", "id": 1 }, "number": { "type": "int32", "id": 3 }, "label": { "type": "Label", "id": 4 }, "type": { "type": "Type", "id": 5 }, "typeName": { "type": "string", "id": 6, "protoName": "type_name" }, "extendee": { "type": "string", "id": 2 }, "defaultValue": { "type": "string", "id": 7, "protoName": "default_value" }, "oneofIndex": { "type": "int32", "id": 9, "protoName": "oneof_index" }, "jsonName": { "type": "string", "id": 10, "protoName": "json_name" }, "options": { "type": "FieldOptions", "id": 8 }, "proto3Optional": { "type": "bool", "id": 17, "protoName": "proto3_optional" } }, "nested": { "Type": { "values": { "TYPE_DOUBLE": 1, "TYPE_FLOAT": 2, "TYPE_INT64": 3, "TYPE_UINT64": 4, "TYPE_INT32": 5, "TYPE_FIXED64": 6, "TYPE_FIXED32": 7, "TYPE_BOOL": 8, "TYPE_STRING": 9, "TYPE_GROUP": 10, "TYPE_MESSAGE": 11, "TYPE_BYTES": 12, "TYPE_UINT32": 13, "TYPE_ENUM": 14, "TYPE_SFIXED32": 15, "TYPE_SFIXED64": 16, "TYPE_SINT32": 17, "TYPE_SINT64": 18 } }, "Label": { "values": { "LABEL_OPTIONAL": 1, "LABEL_REPEATED": 3, "LABEL_REQUIRED": 2 } } } }, "OneofDescriptorProto": { "edition": "proto2", "fields": { "name": { "type": "string", "id": 1 }, "options": { "type": "OneofOptions", "id": 2 } } }, "EnumDescriptorProto": { "edition": "proto2", "fields": { "name": { "type": "string", "id": 1 }, "value": { "rule": "repeated", "type": "EnumValueDescriptorProto", "id": 2 }, "options": { "type": "EnumOptions", "id": 3 }, "reservedRange": { "rule": "repeated", "type": "EnumReservedRange", "id": 4, "protoName": "reserved_range" }, "reservedName": { "rule": "repeated", "type": "string", "id": 5, "protoName": "reserved_name" }, "visibility": { "type": "SymbolVisibility", "id": 6 } }, "nested": { "EnumReservedRange": { "fields": { "start": { "type": "int32", "id": 1 }, "end": { "type": "int32", "id": 2 } } } } }, "EnumValueDescriptorProto": { "edition": "proto2", "fields": { "name": { "type": "string", "id": 1 }, "number": { "type": "int32", "id": 2 }, "options": { "type": "EnumValueOptions", "id": 3 } } }, "ServiceDescriptorProto": { "edition": "proto2", "fields": { "name": { "type": "string", "id": 1 }, "method": { "rule": "repeated", "type": "MethodDescriptorProto", "id": 2 }, "options": { "type": "ServiceOptions", "id": 3 } } }, "MethodDescriptorProto": { "edition": "proto2", "fields": { "name": { "type": "string", "id": 1 }, "inputType": { "type": "string", "id": 2, "protoName": "input_type" }, "outputType": { "type": "string", "id": 3, "protoName": "output_type" }, "options": { "type": "MethodOptions", "id": 4 }, "clientStreaming": { "type": "bool", "id": 5, "protoName": "client_streaming" }, "serverStreaming": { "type": "bool", "id": 6, "protoName": "server_streaming" } } }, "FileOptions": { "edition": "proto2", "fields": { "javaPackage": { "type": "string", "id": 1, "protoName": "java_package" }, "javaOuterClassname": { "type": "string", "id": 8, "protoName": "java_outer_classname" }, "javaMultipleFiles": { "type": "bool", "id": 10, "protoName": "java_multiple_files" }, "javaGenerateEqualsAndHash": { "type": "bool", "id": 20, "protoName": "java_generate_equals_and_hash", "options": { "deprecated": true } }, "javaStringCheckUtf8": { "type": "bool", "id": 27, "protoName": "java_string_check_utf8" }, "optimizeFor": { "type": "OptimizeMode", "id": 9, "protoName": "optimize_for", "options": { "default": "SPEED" } }, "goPackage": { "type": "string", "id": 11, "protoName": "go_package" }, "ccGenericServices": { "type": "bool", "id": 16, "protoName": "cc_generic_services" }, "javaGenericServices": { "type": "bool", "id": 17, "protoName": "java_generic_services" }, "pyGenericServices": { "type": "bool", "id": 18, "protoName": "py_generic_services" }, "deprecated": { "type": "bool", "id": 23 }, "ccEnableArenas": { "type": "bool", "id": 31, "protoName": "cc_enable_arenas", "options": { "default": true } }, "objcClassPrefix": { "type": "string", "id": 36, "protoName": "objc_class_prefix" }, "csharpNamespace": { "type": "string", "id": 37, "protoName": "csharp_namespace" }, "swiftPrefix": { "type": "string", "id": 39, "protoName": "swift_prefix" }, "phpClassPrefix": { "type": "string", "id": 40, "protoName": "php_class_prefix" }, "phpNamespace": { "type": "string", "id": 41, "protoName": "php_namespace" }, "phpMetadataNamespace": { "type": "string", "id": 44, "protoName": "php_metadata_namespace" }, "rubyPackage": { "type": "string", "id": 45, "protoName": "ruby_package" }, "features": { "type": "FeatureSet", "id": 50 }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999, "protoName": "uninterpreted_option" } }, "extensions": [ [ 1000, 536870911 ] ], "reserved": [ [ 42, 42 ], [ 38, 38 ], "php_generic_services" ], "nested": { "OptimizeMode": { "values": { "SPEED": 1, "CODE_SIZE": 2, "LITE_RUNTIME": 3 } } } }, "MessageOptions": { "edition": "proto2", "fields": { "messageSetWireFormat": { "type": "bool", "id": 1, "protoName": "message_set_wire_format" }, "noStandardDescriptorAccessor": { "type": "bool", "id": 2, "protoName": "no_standard_descriptor_accessor" }, "deprecated": { "type": "bool", "id": 3 }, "mapEntry": { "type": "bool", "id": 7, "protoName": "map_entry" }, "deprecatedLegacyJsonFieldConflicts": { "type": "bool", "id": 11, "protoName": "deprecated_legacy_json_field_conflicts", "options": { "deprecated": true } }, "features": { "type": "FeatureSet", "id": 12 }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999, "protoName": "uninterpreted_option" } }, "extensions": [ [ 1000, 536870911 ] ], "reserved": [ [ 4, 4 ], [ 5, 5 ], [ 6, 6 ], [ 8, 8 ], [ 9, 9 ] ] }, "FieldOptions": { "edition": "proto2", "fields": { "ctype": { "type": "CType", "id": 1, "options": { "default": "STRING" } }, "packed": { "type": "bool", "id": 2 }, "jstype": { "type": "JSType", "id": 6, "options": { "default": "JS_NORMAL" } }, "lazy": { "type": "bool", "id": 5 }, "unverifiedLazy": { "type": "bool", "id": 15, "protoName": "unverified_lazy" }, "deprecated": { "type": "bool", "id": 3 }, "weak": { "type": "bool", "id": 10, "options": { "deprecated": true } }, "debugRedact": { "type": "bool", "id": 16, "protoName": "debug_redact" }, "retention": { "type": "OptionRetention", "id": 17 }, "targets": { "rule": "repeated", "type": "OptionTargetType", "id": 19 }, "editionDefaults": { "rule": "repeated", "type": "EditionDefault", "id": 20, "protoName": "edition_defaults" }, "features": { "type": "FeatureSet", "id": 21 }, "featureSupport": { "type": "FeatureSupport", "id": 22, "protoName": "feature_support" }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999, "protoName": "uninterpreted_option" } }, "extensions": [ [ 1000, 536870911 ] ], "reserved": [ [ 4, 4 ], [ 18, 18 ] ], "nested": { "CType": { "values": { "STRING": 0, "CORD": 1, "STRING_PIECE": 2 } }, "JSType": { "values": { "JS_NORMAL": 0, "JS_STRING": 1, "JS_NUMBER": 2 } }, "OptionRetention": { "values": { "RETENTION_UNKNOWN": 0, "RETENTION_RUNTIME": 1, "RETENTION_SOURCE": 2 } }, "OptionTargetType": { "values": { "TARGET_TYPE_UNKNOWN": 0, "TARGET_TYPE_FILE": 1, "TARGET_TYPE_EXTENSION_RANGE": 2, "TARGET_TYPE_MESSAGE": 3, "TARGET_TYPE_FIELD": 4, "TARGET_TYPE_ONEOF": 5, "TARGET_TYPE_ENUM": 6, "TARGET_TYPE_ENUM_ENTRY": 7, "TARGET_TYPE_SERVICE": 8, "TARGET_TYPE_METHOD": 9 } }, "EditionDefault": { "fields": { "edition": { "type": "Edition", "id": 3 }, "value": { "type": "string", "id": 2 } } }, "FeatureSupport": { "fields": { "editionIntroduced": { "type": "Edition", "id": 1, "protoName": "edition_introduced" }, "editionDeprecated": { "type": "Edition", "id": 2, "protoName": "edition_deprecated" }, "deprecationWarning": { "type": "string", "id": 3, "protoName": "deprecation_warning" }, "editionRemoved": { "type": "Edition", "id": 4, "protoName": "edition_removed" } } } } }, "OneofOptions": { "edition": "proto2", "fields": { "features": { "type": "FeatureSet", "id": 1 }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999, "protoName": "uninterpreted_option" } }, "extensions": [ [ 1000, 536870911 ] ] }, "EnumOptions": { "edition": "proto2", "fields": { "allowAlias": { "type": "bool", "id": 2, "protoName": "allow_alias" }, "deprecated": { "type": "bool", "id": 3 }, "deprecatedLegacyJsonFieldConflicts": { "type": "bool", "id": 6, "protoName": "deprecated_legacy_json_field_conflicts", "options": { "deprecated": true } }, "features": { "type": "FeatureSet", "id": 7 }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999, "protoName": "uninterpreted_option" } }, "extensions": [ [ 1000, 536870911 ] ], "reserved": [ [ 5, 5 ] ] }, "EnumValueOptions": { "edition": "proto2", "fields": { "deprecated": { "type": "bool", "id": 1 }, "features": { "type": "FeatureSet", "id": 2 }, "debugRedact": { "type": "bool", "id": 3, "protoName": "debug_redact" }, "featureSupport": { "type": "FieldOptions.FeatureSupport", "id": 4, "protoName": "feature_support" }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999, "protoName": "uninterpreted_option" } }, "extensions": [ [ 1000, 536870911 ] ] }, "ServiceOptions": { "edition": "proto2", "fields": { "features": { "type": "FeatureSet", "id": 34 }, "deprecated": { "type": "bool", "id": 33 }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999, "protoName": "uninterpreted_option" } }, "extensions": [ [ 1000, 536870911 ] ] }, "MethodOptions": { "edition": "proto2", "fields": { "deprecated": { "type": "bool", "id": 33 }, "idempotencyLevel": { "type": "IdempotencyLevel", "id": 34, "protoName": "idempotency_level", "options": { "default": "IDEMPOTENCY_UNKNOWN" } }, "features": { "type": "FeatureSet", "id": 35 }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999, "protoName": "uninterpreted_option" } }, "extensions": [ [ 1000, 536870911 ] ], "nested": { "IdempotencyLevel": { "values": { "IDEMPOTENCY_UNKNOWN": 0, "NO_SIDE_EFFECTS": 1, "IDEMPOTENT": 2 } } } }, "UninterpretedOption": { "edition": "proto2", "fields": { "name": { "rule": "repeated", "type": "NamePart", "id": 2 }, "identifierValue": { "type": "string", "id": 3, "protoName": "identifier_value" }, "positiveIntValue": { "type": "uint64", "id": 4, "protoName": "positive_int_value" }, "negativeIntValue": { "type": "int64", "id": 5, "protoName": "negative_int_value" }, "doubleValue": { "type": "double", "id": 6, "protoName": "double_value" }, "stringValue": { "type": "bytes", "id": 7, "protoName": "string_value" }, "aggregateValue": { "type": "string", "id": 8, "protoName": "aggregate_value" } }, "nested": { "NamePart": { "fields": { "namePart": { "rule": "required", "type": "string", "id": 1, "protoName": "name_part" }, "isExtension": { "rule": "required", "type": "bool", "id": 2, "protoName": "is_extension" } } } } }, "FeatureSet": { "edition": "proto2", "fields": { "fieldPresence": { "type": "FieldPresence", "id": 1, "protoName": "field_presence", "options": { "retention": "RETENTION_RUNTIME", "targets": "TARGET_TYPE_FILE", "feature_support.edition_introduced": "EDITION_2023", "edition_defaults.edition": "EDITION_2023", "edition_defaults.value": "EXPLICIT" } }, "enumType": { "type": "EnumType", "id": 2, "protoName": "enum_type", "options": { "retention": "RETENTION_RUNTIME", "targets": "TARGET_TYPE_FILE", "feature_support.edition_introduced": "EDITION_2023", "edition_defaults.edition": "EDITION_PROTO3", "edition_defaults.value": "OPEN" } }, "repeatedFieldEncoding": { "type": "RepeatedFieldEncoding", "id": 3, "protoName": "repeated_field_encoding", "options": { "retention": "RETENTION_RUNTIME", "targets": "TARGET_TYPE_FILE", "feature_support.edition_introduced": "EDITION_2023", "edition_defaults.edition": "EDITION_PROTO3", "edition_defaults.value": "PACKED" } }, "utf8Validation": { "type": "Utf8Validation", "id": 4, "protoName": "utf8_validation", "options": { "retention": "RETENTION_RUNTIME", "targets": "TARGET_TYPE_FILE", "feature_support.edition_introduced": "EDITION_2023", "edition_defaults.edition": "EDITION_PROTO3", "edition_defaults.value": "VERIFY" } }, "messageEncoding": { "type": "MessageEncoding", "id": 5, "protoName": "message_encoding", "options": { "retention": "RETENTION_RUNTIME", "targets": "TARGET_TYPE_FILE", "feature_support.edition_introduced": "EDITION_2023", "edition_defaults.edition": "EDITION_LEGACY", "edition_defaults.value": "LENGTH_PREFIXED" } }, "jsonFormat": { "type": "JsonFormat", "id": 6, "protoName": "json_format", "options": { "retention": "RETENTION_RUNTIME", "targets": "TARGET_TYPE_FILE", "feature_support.edition_introduced": "EDITION_2023", "edition_defaults.edition": "EDITION_PROTO3", "edition_defaults.value": "ALLOW" } }, "enforceNamingStyle": { "type": "EnforceNamingStyle", "id": 7, "protoName": "enforce_naming_style", "options": { "retention": "RETENTION_SOURCE", "targets": "TARGET_TYPE_METHOD", "feature_support.edition_introduced": "EDITION_2024", "edition_defaults.edition": "EDITION_2024", "edition_defaults.value": "STYLE2024" } }, "defaultSymbolVisibility": { "type": "VisibilityFeature.DefaultSymbolVisibility", "id": 8, "protoName": "default_symbol_visibility", "options": { "retention": "RETENTION_SOURCE", "targets": "TARGET_TYPE_FILE", "feature_support.edition_introduced": "EDITION_2024", "edition_defaults.edition": "EDITION_2024", "edition_defaults.value": "EXPORT_TOP_LEVEL" } } }, "extensions": [ [ 1000, 9994 ], [ 9995, 9999 ], [ 10000, 10000 ] ], "reserved": [ [ 999, 999 ] ], "nested": { "FieldPresence": { "values": { "FIELD_PRESENCE_UNKNOWN": 0, "EXPLICIT": 1, "IMPLICIT": 2, "LEGACY_REQUIRED": 3 } }, "EnumType": { "values": { "ENUM_TYPE_UNKNOWN": 0, "OPEN": 1, "CLOSED": 2 } }, "RepeatedFieldEncoding": { "values": { "REPEATED_FIELD_ENCODING_UNKNOWN": 0, "PACKED": 1, "EXPANDED": 2 } }, "Utf8Validation": { "values": { "UTF8_VALIDATION_UNKNOWN": 0, "VERIFY": 2, "NONE": 3 } }, "MessageEncoding": { "values": { "MESSAGE_ENCODING_UNKNOWN": 0, "LENGTH_PREFIXED": 1, "DELIMITED": 2 } }, "JsonFormat": { "values": { "JSON_FORMAT_UNKNOWN": 0, "ALLOW": 1, "LEGACY_BEST_EFFORT": 2 } }, "EnforceNamingStyle": { "values": { "ENFORCE_NAMING_STYLE_UNKNOWN": 0, "STYLE2024": 1, "STYLE_LEGACY": 2 } }, "VisibilityFeature": { "fields": {}, "reserved": [ [ 1, 536870911 ] ], "nested": { "DefaultSymbolVisibility": { "values": { "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN": 0, "EXPORT_ALL": 1, "EXPORT_TOP_LEVEL": 2, "LOCAL_ALL": 3, "STRICT": 4 } } } } } }, "FeatureSetDefaults": { "edition": "proto2", "fields": { "defaults": { "rule": "repeated", "type": "FeatureSetEditionDefault", "id": 1 }, "minimumEdition": { "type": "Edition", "id": 4, "protoName": "minimum_edition" }, "maximumEdition": { "type": "Edition", "id": 5, "protoName": "maximum_edition" } }, "nested": { "FeatureSetEditionDefault": { "fields": { "edition": { "type": "Edition", "id": 3 }, "overridableFeatures": { "type": "FeatureSet", "id": 4, "protoName": "overridable_features" }, "fixedFeatures": { "type": "FeatureSet", "id": 5, "protoName": "fixed_features" } }, "reserved": [ [ 1, 1 ], [ 2, 2 ], "features" ] } } }, "SourceCodeInfo": { "edition": "proto2", "fields": { "location": { "rule": "repeated", "type": "Location", "id": 1 } }, "extensions": [ [ 536000000, 536000000 ] ], "nested": { "Location": { "fields": { "path": { "rule": "repeated", "type": "int32", "id": 1, "options": { "packed": true } }, "span": { "rule": "repeated", "type": "int32", "id": 2, "options": { "packed": true } }, "leadingComments": { "type": "string", "id": 3, "protoName": "leading_comments" }, "trailingComments": { "type": "string", "id": 4, "protoName": "trailing_comments" }, "leadingDetachedComments": { "rule": "repeated", "type": "string", "id": 6, "protoName": "leading_detached_comments" } } } } }, "GeneratedCodeInfo": { "edition": "proto2", "fields": { "annotation": { "rule": "repeated", "type": "Annotation", "id": 1 } }, "nested": { "Annotation": { "fields": { "path": { "rule": "repeated", "type": "int32", "id": 1, "options": { "packed": true } }, "sourceFile": { "type": "string", "id": 2, "protoName": "source_file" }, "begin": { "type": "int32", "id": 3 }, "end": { "type": "int32", "id": 4 }, "semantic": { "type": "Semantic", "id": 5 } }, "nested": { "Semantic": { "values": { "NONE": 0, "SET": 1, "ALIAS": 2 } } } } } }, "SymbolVisibility": { "edition": "proto2", "values": { "VISIBILITY_UNSET": 0, "VISIBILITY_LOCAL": 1, "VISIBILITY_EXPORT": 2 } } } } } } } }