--- /dev/null
+from typing import Any\r
+\r
+from .message import Message\r
+\r
+class Error(Exception): ...\r
+class TypeTransformationError(Error): ...\r
+\r
+class DescriptorMetaclass(type):\r
+ def __instancecheck__(cls, obj): ...\r
+\r
+class DescriptorBase:\r
+ __metaclass__ = DescriptorMetaclass\r
+ has_options = ... # type: Any\r
+ def __init__(self, options, options_class_name) -> None: ...\r
+ def GetOptions(self): ...\r
+\r
+class _NestedDescriptorBase(DescriptorBase):\r
+ name = ... # type: Any\r
+ full_name = ... # type: Any\r
+ file = ... # type: Any\r
+ containing_type = ... # type: Any\r
+ def __init__(self, options, options_class_name, name, full_name, file, containing_type, serialized_start=..., serialized_end=...) -> None: ...\r
+ def GetTopLevelContainingType(self): ...\r
+ def CopyToProto(self, proto): ...\r
+\r
+class Descriptor(_NestedDescriptorBase):\r
+ def __new__(cls, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., syntax=...): ...\r
+ fields = ... # type: Any\r
+ fields_by_number = ... # type: Any\r
+ fields_by_name = ... # type: Any\r
+ nested_types = ... # type: Any\r
+ nested_types_by_name = ... # type: Any\r
+ enum_types = ... # type: Any\r
+ enum_types_by_name = ... # type: Any\r
+ enum_values_by_name = ... # type: Any\r
+ extensions = ... # type: Any\r
+ extensions_by_name = ... # type: Any\r
+ is_extendable = ... # type: Any\r
+ extension_ranges = ... # type: Any\r
+ oneofs = ... # type: Any\r
+ oneofs_by_name = ... # type: Any\r
+ syntax = ... # type: Any\r
+ def __init__(self, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., syntax=...) -> None: ...\r
+ def EnumValueName(self, enum, value): ...\r
+ def CopyToProto(self, proto): ...\r
+\r
+class FieldDescriptor(DescriptorBase):\r
+ TYPE_DOUBLE = ... # type: Any\r
+ TYPE_FLOAT = ... # type: Any\r
+ TYPE_INT64 = ... # type: Any\r
+ TYPE_UINT64 = ... # type: Any\r
+ TYPE_INT32 = ... # type: Any\r
+ TYPE_FIXED64 = ... # type: Any\r
+ TYPE_FIXED32 = ... # type: Any\r
+ TYPE_BOOL = ... # type: Any\r
+ TYPE_STRING = ... # type: Any\r
+ TYPE_GROUP = ... # type: Any\r
+ TYPE_MESSAGE = ... # type: Any\r
+ TYPE_BYTES = ... # type: Any\r
+ TYPE_UINT32 = ... # type: Any\r
+ TYPE_ENUM = ... # type: Any\r
+ TYPE_SFIXED32 = ... # type: Any\r
+ TYPE_SFIXED64 = ... # type: Any\r
+ TYPE_SINT32 = ... # type: Any\r
+ TYPE_SINT64 = ... # type: Any\r
+ MAX_TYPE = ... # type: Any\r
+ CPPTYPE_INT32 = ... # type: Any\r
+ CPPTYPE_INT64 = ... # type: Any\r
+ CPPTYPE_UINT32 = ... # type: Any\r
+ CPPTYPE_UINT64 = ... # type: Any\r
+ CPPTYPE_DOUBLE = ... # type: Any\r
+ CPPTYPE_FLOAT = ... # type: Any\r
+ CPPTYPE_BOOL = ... # type: Any\r
+ CPPTYPE_ENUM = ... # type: Any\r
+ CPPTYPE_STRING = ... # type: Any\r
+ CPPTYPE_MESSAGE = ... # type: Any\r
+ MAX_CPPTYPE = ... # type: Any\r
+ LABEL_OPTIONAL = ... # type: Any\r
+ LABEL_REQUIRED = ... # type: Any\r
+ LABEL_REPEATED = ... # type: Any\r
+ MAX_LABEL = ... # type: Any\r
+ MAX_FIELD_NUMBER = ... # type: Any\r
+ FIRST_RESERVED_FIELD_NUMBER = ... # type: Any\r
+ LAST_RESERVED_FIELD_NUMBER = ... # type: Any\r
+ def __new__(cls, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., file=..., has_default_value=..., containing_oneof=...): ...\r
+ name = ... # type: Any\r
+ full_name = ... # type: Any\r
+ index = ... # type: Any\r
+ number = ... # type: Any\r
+ type = ... # type: Any\r
+ cpp_type = ... # type: Any\r
+ label = ... # type: Any\r
+ has_default_value = ... # type: Any\r
+ default_value = ... # type: Any\r
+ containing_type = ... # type: Any\r
+ message_type = ... # type: Any\r
+ enum_type = ... # type: Any\r
+ is_extension = ... # type: Any\r
+ extension_scope = ... # type: Any\r
+ containing_oneof = ... # type: Any\r
+ def __init__(self, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., file=..., has_default_value=..., containing_oneof=...) -> None: ...\r
+ @staticmethod\r
+ def ProtoTypeToCppProtoType(proto_type): ...\r
+\r
+class EnumDescriptor(_NestedDescriptorBase):\r
+ def __new__(cls, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...): ...\r
+ values = ... # type: Any\r
+ values_by_name = ... # type: Any\r
+ values_by_number = ... # type: Any\r
+ def __init__(self, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...) -> None: ...\r
+ def CopyToProto(self, proto): ...\r
+\r
+class EnumValueDescriptor(DescriptorBase):\r
+ def __new__(cls, name, index, number, type=..., options=...): ...\r
+ name = ... # type: Any\r
+ index = ... # type: Any\r
+ number = ... # type: Any\r
+ type = ... # type: Any\r
+ def __init__(self, name, index, number, type=..., options=...) -> None: ...\r
+\r
+class OneofDescriptor:\r
+ def __new__(cls, name, full_name, index, containing_type, fields): ...\r
+ name = ... # type: Any\r
+ full_name = ... # type: Any\r
+ index = ... # type: Any\r
+ containing_type = ... # type: Any\r
+ fields = ... # type: Any\r
+ def __init__(self, name, full_name, index, containing_type, fields) -> None: ...\r
+\r
+class ServiceDescriptor(_NestedDescriptorBase):\r
+ index = ... # type: Any\r
+ methods = ... # type: Any\r
+ def __init__(self, name, full_name, index, methods, options=..., file=..., serialized_start=..., serialized_end=...) -> None: ...\r
+ def FindMethodByName(self, name): ...\r
+ def CopyToProto(self, proto): ...\r
+\r
+class MethodDescriptor(DescriptorBase):\r
+ name = ... # type: Any\r
+ full_name = ... # type: Any\r
+ index = ... # type: Any\r
+ containing_service = ... # type: Any\r
+ input_type = ... # type: Any\r
+ output_type = ... # type: Any\r
+ def __init__(self, name, full_name, index, containing_service, input_type, output_type, options=...) -> None: ...\r
+\r
+class FileDescriptor(DescriptorBase):\r
+ def __new__(cls, name, package, options=..., serialized_pb=..., dependencies=..., syntax=...): ...\r
+ _options = ... # type: Any\r
+ message_types_by_name = ... # type: Any\r
+ name = ... # type: Any\r
+ package = ... # type: Any\r
+ syntax = ... # type: Any\r
+ serialized_pb = ... # type: Any\r
+ enum_types_by_name = ... # type: Any\r
+ extensions_by_name = ... # type: Any\r
+ dependencies = ... # type: Any\r
+ def __init__(self, name, package, options=..., serialized_pb=..., dependencies=..., syntax=...) -> None: ...\r
+ def CopyToProto(self, proto): ...\r
+\r
+def MakeDescriptor(desc_proto, package=..., build_file_if_cpp=..., syntax=...): ...\r
+def _ParseOptions(message: Message, string: bytes) -> Message: ...\r