§
    .çi0  ã                   óp   — d Z dZddlZ G d„ de¦  «        Z G d„ de¦  «        Z G d„ d	e¦  «        Zd
„ ZdS )z*Provides a container for DescriptorProtos.z"matthewtoia@google.com (Matt Toia)é    Nc                   ó   — e Zd ZdS )ÚErrorN)Ú__name__Ú
__module__Ú__qualname__© ó    úh/home/mmwave/public_html/mmwave/venv/lib/python3.11/site-packages/google/protobuf/descriptor_database.pyr   r      s   € € € € € Ø€$r	   r   c                   ó   — e Zd ZdZdS )Ú,DescriptorDatabaseConflictingDefinitionErrorzGRaised when a proto is added with the same name & different descriptor.N)r   r   r   Ú__doc__r   r	   r
   r   r      s   € € € € € ØOÐOÐOÐOr	   r   c                   ó<   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	S )
ÚDescriptorDatabasezEA container accepting FileDescriptorProtos and maps DescriptorProtos.c                 ó"   — i | _         i | _        d S ©N)Ú_file_desc_protos_by_fileÚ_file_desc_protos_by_symbol)Úselfs    r
   Ú__init__zDescriptorDatabase.__init__   s   € Ø%'€DÔ"Ø')€DÔ$Ð$Ð$r	   c                 óú  — |j         }|| j        vr|| j        |<   n%| j        |         |k    rt          d|z  ¦  «        ‚dS |j        }|j        D ]+}t          ||¦  «        D ]}|                      ||¦  «         ŒŒ,|j        D ]r}|                      |rd                     ||j         f¦  «        n|j         |¦  «         |j	        D ]/}|| j
        |rd                     ||j         f¦  «        n|j         <   Œ0Œs|j        D ];}|                      |rd                     ||j         f¦  «        n|j         |¦  «         Œ<|j        D ];}	|                      |rd                     ||	j         f¦  «        n|	j         |¦  «         Œ<dS )aL  Adds the FileDescriptorProto and its types to this database.

    Args:
      file_desc_proto: The FileDescriptorProto to add.
    Raises:
      DescriptorDatabaseConflictingDefinitionError: if an attempt is made to
        add a proto with the same name but different definition than an
        existing proto in the database.
    z0%s already added, but with different descriptor.Nú.)Únamer   r   ÚpackageÚmessage_typeÚ_ExtractSymbolsÚ
_AddSymbolÚ	enum_typeÚjoinÚvaluer   Ú	extensionÚservice)
r   Úfile_desc_protoÚ
proto_namer   Úmessager   ÚenumÚ
enum_valuer    r!   s
             r
   ÚAddzDescriptorDatabase.Add   s  € ð !Ô%€JØ˜Ô7Ð7Ð7Ø3B€dÔ$ ZÑ0Ð0Ø	Ô	'¨
Ô	3°Ò	FÐ	FÝ8Ø
<¸zÑ
IñKô Kð Kð €fð Ô%€GØ"Ô/ð /ð /ˆÝ! '¨7Ñ3Ô3ð /ð /ˆ$Ø�Š˜˜oÑ.Ô.Ð.Ð.ð/àÔ)ð ð ˆØ
‡o‚oØ-4ÐCˆ3�8Š8�W˜dœiÐ(Ñ)Ô)Ð)¸$¼)Ø
ñô ð ð œ
ð ð ˆ*ð ð 	Ô(Ø4;ÐPˆC�HŠH�g˜zœÐ/Ñ0Ô0Ð0ÀÄñ	
ð 	
ðð %Ô.ð ð ˆ	Ø
‡o‚oØ29ÐMˆ3�8Š8�W˜iœnÐ-Ñ.Ô.Ð.¸y¼~Ø
ñô ð ð ð #Ô*ð ð ˆØ
‡o‚oØ07ÐIˆ3�8Š8�W˜gœlÐ+Ñ,Ô,Ð,¸W¼\Ø
ñô ð ð ðð r	   c                 ó   — | j         |         S )a¸  Finds the file descriptor proto by file name.

    Typically the file name is a relative path ending to a .proto file. The
    proto with the given name will have to have been added to this database
    using the Add method or else an error will be raised.

    Args:
      name: The file name to find.

    Returns:
      The file descriptor proto matching the name.

    Raises:
      KeyError if no file by the given name was added.
    )r   )r   r   s     r
   ÚFindFileByNamez!DescriptorDatabase.FindFileByNameJ   s   € ð" Ô)¨$Ô/Ð/r	   c                 ón  — |                      d¦  «        dk    r;|d         dk    r/|                     d¦  «        }t          j        dt          ¦  «         	 | j        |         S # t          $ rG |                     d¦  «        \  }}}	 | j        |         cY S # t          $ r t          |¦  «        ‚w xY ww xY w)a¢  Finds the file descriptor proto containing the specified symbol.

    The symbol should be a fully qualified name including the file descriptor's
    package and any containing messages. Some examples:

    'some.package.name.Message'
    'some.package.name.Message.NestedEnum'
    'some.package.name.Message.some_field'

    The file descriptor proto containing the specified symbol must be added to
    this database using the Add method or else an error will be raised.

    Args:
      symbol: The fully qualified symbol name.

    Returns:
      The file descriptor proto containing the symbol.

    Raises:
      KeyError if no file contains the specified symbol.
    r   é   r   zaPlease remove the leading "." when FindFileContainingSymbol, this will turn to error in 2026 Jan.)ÚcountÚlstripÚwarningsÚwarnÚRuntimeWarningr   ÚKeyErrorÚ
rpartition)r   ÚsymbolÚ	top_levelÚ_s       r
   ÚFindFileContainingSymbolz+DescriptorDatabase.FindFileContainingSymbol]   sã   € ð, ‡|‚|�CÑÔ˜AÒÐ &¨¤)¨sÒ"2Ð"2Ø�}Š}˜SÑ!Ô!€fÝ„mðõ ñ	ô ð ðØÔ-¨fÔ5Ð5øÝð ð ð ð ×)Ò)¨#Ñ.Ô.�o€i��AðØÔ/°	Ô:Ð:Ð:Ð:øÝð ð ð å�vÑÔÐðøøøðøøøs$   ÁA# Á##B4ÂBÂB4ÂB0Â0B4c                 ó   — d S r   r   )r   Úextendee_nameÚextension_numbers      r
   ÚFindFileContainingExtensionz.DescriptorDatabase.FindFileContainingExtensionŠ   s   € àˆ4r	   c                 ó   — g S r   r   )r   r8   s     r
   ÚFindAllExtensionNumbersz*DescriptorDatabase.FindAllExtensionNumbersŽ   s   € à€Ir	   c                 ó²   — || j         v rCd|j        z   dz   |z   dz   | j         |         j        z   dz   }t          j        |t          ¦  «         || j         |<   d S )NzConflict register for file "z": z is already defined in file "ú")r   r   r.   r/   r0   )r   r   r"   Úwarn_msgs       r
   r   zDescriptorDatabase._AddSymbol’   s~   € ØˆtÔ/Ð/Ð/Ø0°?Ô3GÑGØñØñà1ñ2ð Ô2°4Ô8Ô=ñ>ð ADñD€hõ „m�H�nÑ-Ô-Ð-Ø-<€DÔ$ TÑ*Ð*Ð*r	   N)r   r   r   r   r   r'   r)   r6   r:   r<   r   r   r	   r
   r   r      s…   € € € € € ØMÐMð*ð *ð *ð*ð *ð *ðX0ð 0ð 0ð&+ð +ð +ðZð ð ðð ð ð=ð =ð =ð =ð =r	   r   c              #   óÐ   K  — |r|dz   | j         z   n| j         }|V — | j        D ]}t          ||¦  «        D ]}|V — ŒŒ| j        D ] }d                     ||j         f¦  «        V — Œ!dS )zëPulls out all the symbols from a descriptor proto.

  Args:
    desc_proto: The proto to extract symbols from.
    package: The package containing the descriptor type.

  Yields:
    The fully qualified name found in the descriptor.
  r   N)r   Únested_typer   r   r   )Ú
desc_protor   Úmessage_namerA   r3   r   s         r
   r   r   œ   s©   è è € ð 5<ÐP�˜3‘ ¤Ñ0Ð0ÀÄ€,ØÐÐÐØÔ+ð ð €kÝ! +¨|Ñ<Ô<ð ð ˆØ€l€l€l€lðàÔ'ð 3ð 3€iØ
�(Š(�L )¤.Ð1Ñ
2Ô
2Ð2Ð2Ð2Ð2ð3ð 3r	   )	r   Ú
__author__r.   Ú	Exceptionr   r   Úobjectr   r   r   r	   r
   ú<module>rG      sÃ   ðð 1Ð 0à1€
à €€€ðð ð ð ð ˆIñ ô ð ðPð Pð Pð Pð P°5ñ Pô Pð PðB=ð B=ð B=ð B=ð B=˜ñ B=ô B=ð B=ðJ3ð 3ð 3ð 3ð 3r	   