3 SLj@sbdZdZddlZddlmZdZejdkrTddlZddlZddl m Z e e ddZGd d d e Z Gd d d e ZerGd ddeZneZGdddejeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdd d eZGd!d"d"eZd#d$Zd%d&Zd'd(Zd)d*Zd/d-d.Z dS)0zDescriptors essentially contain exactly the information found in a .proto file, in types that make this information accessible in Python. z#robinson@google.com (Will Robinson)N)api_implementationFcpp)_message_USE_C_DESCRIPTORSc@seZdZdZdS)ErrorzBase error for this module.N)__name__ __module__ __qualname____doc__r r /usr/lib/python3.6/descriptor.pyr2src@seZdZdZdS)TypeTransformationErrorzHError transforming between python proto type and corresponding C++ type.N)rrr r r r r r r 6sr cseZdZfddZZS)DescriptorMetaclasscs(tt|j|rdSt||jr$dSdS)NTF)superr__instancecheck__ isinstance_C_DESCRIPTOR_CLASS)clsobj) __class__r r r@s  z%DescriptorMetaclass.__instancecheck__)rrr r __classcell__r r )rr r?src@s0eZdZdZerfZddZddZddZdS) DescriptorBaseaDescriptors base class. This class is the base of all descriptor classes. It provides common options related functionality. Attributes: has_options: True if the descriptor has non-default options. Usually it is not necessary to read this -- just call GetOptions() which will happily return the default instance. However, it's sometimes useful for efficiency, and also useful inside the protobuf implementation to avoid some bootstrapping issues. cCs||_||_|dk |_dS)zInitialize the descriptor given its options message and the name of the class of the options message. The name of the class is required in case the options message is None and has to be created. N)_options_options_class_name has_options)selfoptionsoptions_class_namer r r __init___szDescriptorBase.__init__cCs||_||_|dk |_dS)zSets the descriptor's options This function is used in generated proto2 files to update descriptor options. It must not be used outside proto2. N)rrr)rrrr r r _SetOptionsjszDescriptorBase._SetOptionsc CsZ|jr |jSddlm}yt||j}Wn"tk rJtd|jYnX||_|jS)zRetrieves descriptor options. This method returns the options set or creates the default options for the descriptor. r)descriptor_pb2zUnknown options class name %s!)rgoogle.protobufr getattrrAttributeError RuntimeError)rr Z options_classr r r GetOptionsvs zDescriptorBase.GetOptionsN) rrr r rrrrr%r r r r rKs    rcs*eZdZdZdfdd ZddZZS)_NestedDescriptorBasez0Common class for descriptors that can be nested.Nc s:tt|j||||_||_||_||_||_||_dS)aCConstructor. Args: options: Protocol message options or None to use default message options. options_class_name: (str) The class name of the above options. name: (str) Name of this protocol message type. full_name: (str) Fully-qualified name of this protocol message type, which will include protocol "package" name and the name of any enclosing types. file: (FileDescriptor) Reference to file info. containing_type: if provided, this is a nested descriptor, with this descriptor as parent, otherwise None. serialized_start: The start index (inclusive) in block in the file.serialized_pb that describes this descriptor. serialized_end: The end index (exclusive) in block in the file.serialized_pb that describes this descriptor. N) rr&rname full_namefilecontaining_type_serialized_start_serialized_end) rrrr'r(r)r*serialized_startserialized_end)rr r rs z_NestedDescriptorBase.__init__cCsF|jdk r:|jdk r:|jdk r:|j|jj|j|jntddS)zCopies this to the matching proto in descriptor_pb2. Args: proto: An empty proto instance from descriptor_pb2. Raises: Error: If self couldnt be serialized, due to to few constructor arguments. Nz*Descriptor does not contain serialization.)r)r+r,ParseFromString serialized_pbr)rprotor r r CopyToProtos    z!_NestedDescriptorBase.CopyToProto)NN)rrr r rr2rr r )rr r&s!r&csVeZdZdZer ejZdddZdfdd Z e dd Z d d Z fd d Z ZS) Descriptorai Descriptor for a protocol message type. A Descriptor instance has the following attributes: name: (str) Name of this protocol message type. full_name: (str) Fully-qualified name of this protocol message type, which will include protocol "package" name and the name of any enclosing types. containing_type: (Descriptor) Reference to the descriptor of the type containing us, or None if this is top-level. fields: (list of FieldDescriptors) Field descriptors for all fields in this type. fields_by_number: (dict int -> FieldDescriptor) Same FieldDescriptor objects as in |fields|, but indexed by "number" attribute in each FieldDescriptor. fields_by_name: (dict str -> FieldDescriptor) Same FieldDescriptor objects as in |fields|, but indexed by "name" attribute in each FieldDescriptor. fields_by_camelcase_name: (dict str -> FieldDescriptor) Same FieldDescriptor objects as in |fields|, but indexed by "camelcase_name" attribute in each FieldDescriptor. nested_types: (list of Descriptors) Descriptor references for all protocol message types nested within this one. nested_types_by_name: (dict str -> Descriptor) Same Descriptor objects as in |nested_types|, but indexed by "name" attribute in each Descriptor. enum_types: (list of EnumDescriptors) EnumDescriptor references for all enums contained within this type. enum_types_by_name: (dict str ->EnumDescriptor) Same EnumDescriptor objects as in |enum_types|, but indexed by "name" attribute in each EnumDescriptor. enum_values_by_name: (dict str -> EnumValueDescriptor) Dict mapping from enum value name to EnumValueDescriptor for that value. extensions: (list of FieldDescriptor) All extensions defined directly within this message type (NOT within a nested type). extensions_by_name: (dict, string -> FieldDescriptor) Same FieldDescriptor objects as |extensions|, but indexed by "name" attribute of each FieldDescriptor. is_extendable: Does this type define any extension ranges? oneofs: (list of OneofDescriptor) The list of descriptors for oneof fields in this message. oneofs_by_name: (dict str -> OneofDescriptor) Same objects as in |oneofs|, but indexed by "name" attribute. file: (FileDescriptor) Reference to file descriptor. NTcCstjjtjj|S)N)rMessage_CheckCalledFromGeneratedFile default_poolZFindMessageTypeByName)rr'r(filenamer*fields nested_types enum_types extensionsr is_extendableextension_rangesoneofsr)r-r.syntaxr r r __new__s zDescriptor.__new__c sjtt|j| d||| |||d||_x|jD] }||_q.Wtdd|D|_tdd|D|_d|_||_ x|D] }||_qvWtdd|D|_ ||_ x|j D] }||_qWtdd|D|_ td d|D|_ ||_x|jD] }||_qWtd d|D|_| |_| |_| dk r&| ng|_td d|jD|_x|jD] }||_qJW|pbd |_dS) zArguments to __init__() are as described in the description of Descriptor fields above. Note that filename is an obsolete argument, that is not used anymore. Please use file.name to access this as an attribute. ZMessageOptions)r-r.css|]}|j|fVqdS)N)number).0fr r r sz&Descriptor.__init__..css|]}|j|fVqdS)N)r')rBrCr r r rDsNcss|]}|j|fVqdS)N)r')rBtr r r rD%scss|]}|j|fVqdS)N)r')rBrEr r r rD*scss$|]}|jD]}|j|fVq qdS)N)valuesr')rBrEvr r r rD,scss|]}|j|fVqdS)N)r')rBrCr r r rD1scss|]}|j|fVqdS)N)r')rBor r r rD5sproto2)rr3rr8r*dictZfields_by_numberZfields_by_name_fields_by_camelcase_namer9Znested_types_by_namer:enum_types_by_nameZenum_values_by_namer;extension_scopeextensions_by_namer<r=r>Zoneofs_by_namer?)rr'r(r7r*r8r9r:r;rr<r=r>r)r-r.r?field nested_type enum_type extensionZoneof)rr r rs>            zDescriptor.__init__cCs&|jdkr tdd|jD|_|jS)Ncss|]}|j|fVqdS)N)camelcase_name)rBrCr r r rD>sz6Descriptor.fields_by_camelcase_name..)rKrJr8)rr r r fields_by_camelcase_name:s z#Descriptor.fields_by_camelcase_namecCs|j|j|jS)asReturns the string name of an enum value. This is just a small helper method to simplify a common operation. Args: enum: string name of the Enum. value: int, value of the enum. Returns: string name of the enum value. Raises: KeyError if either the Enum doesn't exist or the value is not a valid value for the enum. )rLvalues_by_numberr')renumvaluer r r EnumValueNameAszDescriptor.EnumValueNamecstt|j|dS)zvCopies this to a descriptor_pb2.DescriptorProto. Args: proto: An empty descriptor_pb2.DescriptorProto. N)rr3r2)rr1)rr r r2SszDescriptor.CopyToProto)NTNNNNNN)NTNNNNNN)rrr r rrr3rr@rpropertyrTrXr2rr r )rr r3s6 0 r3c$s0eZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Zd Zd Z d Z!eeeeeeeeeeeeeee eeeeeeeeee eeee ee eee e e iZ"dZ#dZ$dZ%dZ&d"Z'dZ(dZ)e*re+j,Z-d#ddZ.d$fdd Z/e0ddZ1e2dd Z3Z4S)%FieldDescriptora Descriptor for a single field in a .proto file. A FieldDescriptor instance has the following attributes: name: (str) Name of this field, exactly as it appears in .proto. full_name: (str) Name of this field, including containing scope. This is particularly relevant for extensions. camelcase_name: (str) Camelcase name of this field. index: (int) Dense, 0-indexed index giving the order that this field textually appears within its message in the .proto file. number: (int) Tag number declared for this field in the .proto file. type: (One of the TYPE_* constants below) Declared type. cpp_type: (One of the CPPTYPE_* constants below) C++ type used to represent this field. label: (One of the LABEL_* constants below) Tells whether this field is optional, required, or repeated. has_default_value: (bool) True if this field has a default value defined, otherwise false. default_value: (Varies) Default value of this field. Only meaningful for non-repeated scalar fields. Repeated fields should always set this to [], and non-repeated composite fields should always set this to None. containing_type: (Descriptor) Descriptor of the protocol message type that contains this field. Set by the Descriptor constructor if we're passed into one. Somewhat confusingly, for extension fields, this is the descriptor of the EXTENDED message, not the descriptor of the message containing this field. (See is_extension and extension_scope below). message_type: (Descriptor) If a composite field, a descriptor of the message type contained in this field. Otherwise, this is None. enum_type: (EnumDescriptor) If this field contains an enum, a descriptor of that enum. Otherwise, this is None. is_extension: True iff this describes an extension field. extension_scope: (Descriptor) Only meaningful if is_extension is True. Gives the message that immediately contains this extension field. Will be None iff we're a top-level (file-level) extension field. options: (descriptor_pb2.FieldOptions) Protocol message field options or None to use default field options. containing_oneof: (OneofDescriptor) If the field is a member of a oneof union, contains its descriptor. Otherwise, None. file: (FileDescriptor) Reference to file descriptor.  i8JiNNTcCs*tjj| rtjj|Stjj|SdS)N)rr4r5r6FindExtensionByNameFindFieldByName)rr'r(indexrAtypecpp_typelabel default_value message_typerQr* is_extensionrMrhas_default_valuecontaining_oneof json_namer)r r r r@s  zFieldDescriptor.__new__cstt|j|d||_||_||_d|_|dkr>t||_n||_||_ ||_ ||_ ||_ ||_ ||_||_| |_| |_| |_| |_| |_||_tjdkr| rtjj||_qtjj||_nd|_dS)aThe arguments are as described in the description of FieldDescriptor attributes above. Note that containing_type may be None, and may be set later if necessary (to deal with circular references between message types, for example). Likewise for extension_scope. Z FieldOptionsNr)rrZrr'r(r)_camelcase_name _ToJsonNameryrprArqrrrsrwrtr*rurQrvrMrxrTyperr6rnZ _cdescriptorro)rr'r(rprArqrrrsrtrurQr*rvrMrrwrxryr))rr r rs4   zFieldDescriptor.__init__cCs|jdkrt|j|_|jS)N)rz _ToCamelCaser')rr r r rS!s  zFieldDescriptor.camelcase_namec Cs0y tj|Stk r*td|YnXdS)aConverts from a Python proto type to a C++ Proto Type. The Python ProtocolBuffer classes specify both the 'Python' datatype and the 'C++' datatype - and they're not the same. This helper method should translate from one to another. Args: proto_type: the Python proto type (descriptor.FieldDescriptor.TYPE_*) Returns: descriptor.FieldDescriptor.CPPTYPE_*, the C++ type. Raises: TypeTransformationError: when the Python proto type isn't known. zUnknown proto_type: %sN)rZ_PYTHON_TO_CPP_PROTO_TYPE_MAPKeyErrorr )Z proto_typer r r ProtoTypeToCppProtoType's z'FieldDescriptor.ProtoTypeToCppProtoTypei i)NTNNN)NTNNN)5rrr r Z TYPE_DOUBLEZ TYPE_FLOATZ TYPE_INT64Z TYPE_UINT64Z TYPE_INT32Z TYPE_FIXED64Z TYPE_FIXED32Z TYPE_BOOLZ TYPE_STRINGZ TYPE_GROUPZ TYPE_MESSAGEZ TYPE_BYTESZ TYPE_UINT32Z TYPE_ENUMZ TYPE_SFIXED32Z TYPE_SFIXED64Z TYPE_SINT32Z TYPE_SINT64ZMAX_TYPEZ CPPTYPE_INT32Z CPPTYPE_INT64ZCPPTYPE_UINT32ZCPPTYPE_UINT64ZCPPTYPE_DOUBLEZ CPPTYPE_FLOATZ CPPTYPE_BOOLZ CPPTYPE_ENUMZCPPTYPE_STRINGZCPPTYPE_MESSAGEZ MAX_CPPTYPEr~ZLABEL_OPTIONALZLABEL_REQUIREDZLABEL_REPEATEDZ MAX_LABELZMAX_FIELD_NUMBERZFIRST_RESERVED_FIELD_NUMBERZLAST_RESERVED_FIELD_NUMBERrrrZrr@rrYrS staticmethodrrr r )rr rZhs3 & rZcsBeZdZdZer ejZd ddZd fdd Z fddZ Z S) EnumDescriptoraDescriptor for an enum defined in a .proto file. An EnumDescriptor instance has the following attributes: name: (str) Name of the enum type. full_name: (str) Full name of the type, including package name and any enclosing type(s). values: (list of EnumValueDescriptors) List of the values in this enum. values_by_name: (dict str -> EnumValueDescriptor) Same as |values|, but indexed by the "name" field of each EnumValueDescriptor. values_by_number: (dict int -> EnumValueDescriptor) Same as |values|, but indexed by the "number" field of each EnumValueDescriptor. containing_type: (Descriptor) Descriptor of the immediate containing type of this enum, or None if this is an enum defined at the top level in a .proto file. Set by Descriptor's constructor if we're passed into one. file: (FileDescriptor) Reference to file descriptor. options: (descriptor_pb2.EnumOptions) Enum options message or None to use default enum options. Nc Cstjjtjj|S)N)rr4r5r6ZFindEnumTypeByName) rr'r(r7rFr*rr)r-r.r r r r@Xs zEnumDescriptor.__new__c shtt|j|d|||||| d||_x|jD] } || _q.Wtdd|D|_tdd|D|_dS)zArguments are as described in the attribute description above. Note that filename is an obsolete argument, that is not used anymore. Please use file.name to access this as an attribute. Z EnumOptions)r-r.css|]}|j|fVqdS)N)r')rBrGr r r rDnsz*EnumDescriptor.__init__..css|]}|j|fVqdS)N)rA)rBrGr r r rDosN)rrrrFrqrJZvalues_by_namerU) rr'r(r7rFr*rr)r-r.rW)rr r r^s    zEnumDescriptor.__init__cstt|j|dS)z~Copies this to a descriptor_pb2.EnumDescriptorProto. Args: proto: An empty descriptor_pb2.EnumDescriptorProto. N)rrr2)rr1)rr r r2qszEnumDescriptor.CopyToProto)NNNNN)NNNNN) rrr r rrrrr@rr2rr r )rr r<s rcs6eZdZdZer ejZdddZdfdd Z Z S) EnumValueDescriptora,Descriptor for a single value within an enum. name: (str) Name of this value. index: (int) Dense, 0-indexed index giving the order that this value appears textually within its enum in the .proto file. number: (int) Actual number assigned to this enum value. type: (EnumDescriptor) EnumDescriptor to which this value belongs. Set by EnumDescriptor's constructor if we're passed into one. options: (descriptor_pb2.EnumValueOptions) Enum value options message or None to use default enum value options options. NcCstjjdS)N)rr4r5)rr'rprArqrr r r r@s zEnumValueDescriptor.__new__cs.tt|j|d||_||_||_||_dS)z>Arguments are as described in the attribute description above.ZEnumValueOptionsN)rrrr'rprArq)rr'rprArqr)rr r rs zEnumValueDescriptor.__init__)NN)NN) rrr r rrrrr@rrr r )rr r{s   rcs6eZdZdZer ejZdddZdfdd Z Z S) OneofDescriptora Descriptor for a oneof field. name: (str) Name of the oneof field. full_name: (str) Full name of the oneof field, including package name. index: (int) 0-based index giving the order of the oneof field inside its containing type. containing_type: (Descriptor) Descriptor of the protocol message type that contains this field. Set by the Descriptor constructor if we're passed into one. fields: (list of FieldDescriptor) The list of field descriptors this oneof can contain. NcCstjjtjj|S)N)rr4r5r6ZFindOneofByName)rr'r(rpr*r8rr r r r@s zOneofDescriptor.__new__cs4tt|j|d||_||_||_||_||_dS)z>Arguments are as described in the attribute description above.Z OneofOptionsN)rrrr'r(rpr*r8)rr'r(rpr*r8r)rr r rs zOneofDescriptor.__init__)N)N) rrr r rrrrr@rrr r )rr rs   rcsJeZdZdZer ejZd ddZd fdd Z ddZ fd d Z Z S) ServiceDescriptoraDescriptor for a service. name: (str) Name of the service. full_name: (str) Full name of the service, including package name. index: (int) 0-indexed index giving the order that this services definition appears withing the .proto file. methods: (list of MethodDescriptor) List of methods provided by this service. methods_by_name: (dict str -> MethodDescriptor) Same MethodDescriptor objects as in |methods_by_name|, but indexed by "name" attribute in each MethodDescriptor. options: (descriptor_pb2.ServiceOptions) Service options message or None to use default service options. file: (FileDescriptor) Reference to file info. Nc Cstjjtjj|S)N)rr4r5r6ZFindServiceByName) rr'r(rpmethodsrr)r-r.r r r r@s zServiceDescriptor.__new__c sZtt|j|d|||d||d||_||_tdd|D|_x|jD] } || _qHWdS)NZServiceOptions)r-r.css|]}|j|fVqdS)N)r')rBmr r r rDsz-ServiceDescriptor.__init__..)rrrrprrJmethods_by_namecontaining_service) rr'r(rprrr)r-r.method)rr r rs   zServiceDescriptor.__init__cCs|jj|dS)z>Searches for the specified method, and returns its descriptor.N)rget)rr'r r r FindMethodByNamesz"ServiceDescriptor.FindMethodByNamecstt|j|dS)zCopies this to a descriptor_pb2.ServiceDescriptorProto. Args: proto: An empty descriptor_pb2.ServiceDescriptorProto. N)rrr2)rr1)rr r r2szServiceDescriptor.CopyToProto)NNNN)NNNN) rrr r rrrrr@rrr2rr r )rr rs  rcs6eZdZdZer ejZdddZdfdd Z Z S) MethodDescriptoraDescriptor for a method in a service. name: (str) Name of the method within the service. full_name: (str) Full name of method. index: (int) 0-indexed index of the method inside the service. containing_service: (ServiceDescriptor) The service that contains this method. input_type: The descriptor of the message that this method accepts. output_type: The descriptor of the message that this method returns. options: (descriptor_pb2.MethodOptions) Method options message or None to use default method options. NcCstjjtjj|S)N)rr4r5r6r)rr'r(rpr input_type output_typerr r r r@s zMethodDescriptor.__new__cs:tt|j|d||_||_||_||_||_||_dS)zThe arguments are as described in the description of MethodDescriptor attributes above. Note that containing_service may be None, and may be set later if necessary. Z MethodOptionsN) rrrr'r(rprrr)rr'r(rprrrr)rr r r szMethodDescriptor.__init__)N)N) rrr r rrrrr@rrr r )rr rs   rcsBeZdZdZer$ejZd fdd Zd fdd Z ddZ Z S) FileDescriptora;Descriptor for a file. Mimics the descriptor_pb2.FileDescriptorProto. Note that enum_types_by_name, extensions_by_name, and dependencies fields are only set by the message_factory module, and not by the generated proto code. name: name of file, relative to root of source tree. package: name of the package syntax: string indicating syntax of the file (can be "proto2" or "proto3") serialized_pb: (str) Byte string of serialized descriptor_pb2.FileDescriptorProto. dependencies: List of other FileDescriptors this FileDescriptor depends on. public_dependencies: A list of FileDescriptors, subset of the dependencies above, which were declared as "public". message_types_by_name: Dict of message names of their descriptors. enum_types_by_name: Dict of enum names and their descriptors. extensions_by_name: Dict of extension names and their descriptors. services_by_name: Dict of services names and their descriptors. pool: the DescriptorPool this descriptor belongs to. When not passed to the constructor, the global default pool is used. Nc s$|rtjj|Stt|j|SdS)N)rr6AddSerializedFilerrr@) rr'packagerr0 dependenciespublic_dependenciesr?pool)rr r r@5s zFileDescriptor.__new__c stt|j|d|dkr.ddlm} | j}||_i|_||_||_ |pLd|_ ||_ i|_ i|_ i|_|png|_|pxg|_tjdkr|j dk rtjj|j dS)z Constructor.Z FileOptionsNr)descriptor_poolrIr)rrrr!rZDefaultrmessage_types_by_namer'rr?r0rLrNZservices_by_namerrrr|rr6r) rr'rrr0rrr?rr)rr r rAs$      zFileDescriptor.__init__cCs|j|jdS)z~Copies this to a descriptor_pb2.FileDescriptorProto. Args: proto: An empty descriptor_pb2.FileDescriptorProto. N)r/r0)rr1r r r r2[szFileDescriptor.CopyToProto)NNNNNN)NNNNNN) rrr r rrrrr@rr2rr r )rr rs rcCs|j||S)zParses serialized options. This helper function is used to parse serialized options in generated proto2 files. It must not be used outside proto2. )r/)messagestringr r r _ParseOptionsds rcCsrd}g}x>|D]6}|dkr$|rDd}q|r<|j|jd}q||7}qW|rh|djrh|dj|d<dj|S)z+Converts name to camel-case and returns it.F_Tr)appendupperisupperlowerjoin)r'capitalize_nextresultcr r r r}ns  r}cCs|jdr|jSdSdS)zCReturns the value of the field `options`, or None if it is not set.rN)HasFieldr)Zdescriptor_protor r r _OptionsOrNones rcCsNd}g}x:|D]2}|dkr d}q|r8|j|jd}q||7}qWdj|S)z*Converts name to Json name and returns it.FrTr)rrr)r'rrrr r r r{s  r{rTcCsltjdkr|rddlm}|j}|jjj|tt j }|rht j j |jdd|d|_||_n |d|_tjj|tjj|j}tr|j|jS|jg}|r|jd|i} xH|jD]>} dj || jg} t| j| ddd t| jD} | | | <qWi} x@|jD]6}dj ||jg} t|dj |d |d }|| | <qWg}x|jD]}dj ||jg} d} d}|jr|j}nd}|j d r|j!}dj |||j"dd dg}|| kr| |}n|| kr| |} t#|j| |j$d |j$|j%t#j&|j%|j'd|| dd dt(|d |d}|j)|qTWdj |}t*|j|dd|t+| j,t+| j,gt(|d S)aMake a protobuf Descriptor given a DescriptorProto protobuf. Handles nested descriptors. Note that this is limited to the scope of defining a message inside of another message. Composite fields can currently only be resolved if the message is defined in the same scope as the field. Args: desc_proto: The descriptor_pb2.DescriptorProto protobuf message. package: Optional package name for the new message Descriptor (string). build_file_if_cpp: Update the C++ descriptor pool if api matches. Set to False on recursion, so no duplicates are created. syntax: The syntax/semantics that should be used. Set to "proto3" to get proto3 field presence semantics. Returns: A Descriptor for protobuf messages. rr)r ./z.protoNcSs g|]\}}t|j||jqSr )rr'rA)rBZiiZenum_valr r r sz"MakeDescriptor..F)rbuild_file_if_cppr? type_namer[)rrwry)r)-rr|r!r ZFileDescriptorProtoruaddZ MergeFromstruuidZuuid4ospathrreplacer'rrr6ZAddZFindFileByNamerrinsertrQr enumeraterWrPMakeDescriptorrOryrrrfindrZrArqrrsrrr3listrF)Z desc_protorrr?r Zfile_descriptor_protoZ proto_namerZfull_message_namer:Z enum_protor(Z enum_descr9Z nested_protoZ nested_descr8Z field_protoryrZfull_type_namerOZ desc_namer r r rsz                 r)rTN)!r __author__ZsixZgoogle.protobuf.internalrrr|rrZgoogle.protobuf.pyextrr" Exceptionrr rqrZwith_metaclassrr&r3rZrrrrrrrr}rr{rr r r r !s@     =8)U?#!5'I