
    (ph                     x    S SK Jr  S SKJr  S SKJr  S SKJr   " S S5      r " S S\5      r	 " S	 S
\5      r
Srg)    )EnumMeta)descriptor_pb2)EnumTypeWrapper)	ProtoTypec            	           \ rS rSrSrSrSSSSSS.S\S\S\S	\4S
 jjr	\
S 5       r\
S\4S j5       r\
S\4S j5       r\
S 5       rSrg)Field   z8A representation of a type of field in protocol buffers.FN)messageenumoneof	json_nameoptionalnumberr   r   r   c                ,   S U l         S U l        [        U[        5      (       d@  [        U[        [
        45      (       a  Un[        R                  nOUn[        R                  nX l	        Xl
        X0l        X@l        X`l        Xpl        XPl        S U l        g )N)	mcls_dataparent
isinstanceintr   r   r   ENUMMESSAGEr   
proto_typer
   r   r   r   r   _descriptor)selfr   r   r
   r   r   r   r   s           ?/var/www/html/venv/lib/python3.13/site-packages/proto/fields.py__init__Field.__init__   s      *c** *x&ABB!&^^
$&..
 $	" 

      c           
         U R                   (       Gd>  Sn[        U R                  [        5      (       aa  U R                  R	                  U R
                  5      (       d)  SR                  U R
                  U R                  S9U l        U R                  nGOXU R                  (       a\  [        U R                  S5      (       a   U R                  R                  R                  OU R                  R                  R                  nO[        U R                  [        5      (       a`  U R                  R	                  U R
                  5      (       d)  SR                  U R
                  U R                  S9U l        U R                  nOlU R                  (       a[  [        U R                  S5      (       a   U R                  R                  R                  OU R                  R                  R                  n[        R                  " U R                  U R                  U R                   (       a  SOSU R"                  UU R$                  U R&                  S9U l         U R                   $ )z$Return the descriptor for the field.Nz{package}.{name})packagename
DESCRIPTOR      )r    r   labeltype	type_namer   proto3_optional)r   r   r
   str
startswithr   formathasattrr!   	full_name_metar   r   FieldDescriptorProtor    r   repeatedr   r   r   )r   r&   s     r   
descriptorField.descriptorH   s    I$,,,,||..t||<<#5#<#< $!\\ $= $DL !LL	 t||\:: LL++55++55 
 DIIs++yy++DLL99 2 9 9 $!YY !: !DI !II	 tyy,77 II((2222   .BBYY{{==aa__#.. $ D r   returnc                      U R                   S   $ )zReturn the name of the field.r    r   r   s    r   r    
Field.namew   s     ~~f%%r   c                      U R                   S   $ )z Return the package of the field.r   r4   r5   s    r   r   Field.package|   s     ~~i((r   c                     U R                   (       a  U R                   $ U R                  (       d  U R                  $ [        U R                  S5      (       a  U R                  R	                  5       $ U R                  $ )zMReturn the composite type of the field, or the primitive type if a primitive.r-   )r   r
   r   r+   pbr5   s    r   pb_typeField.pb_type   sV     9999 ||??" 4<<))<<??$$||r   )
r   r   r   r   r
   r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r/   r   r(   boolr   propertyr0   r    r   r;   __static_attributes__ r   r   r   r      s    B H (  	(  (  (  ( T ,  , \ &c & & ) ) )  r   r   c                       \ rS rSrSrSrSrg)RepeatedField   z9A representation of a repeated field in protocol buffers.TrE   N)r=   r>   r?   r@   rA   r/   rD   rE   r   r   rG   rG      s
    CHr   rG   c                   >   ^  \ rS rSrSrSSS.S\4U 4S jjjrSrU =r$ )MapField   z4A representation of a map field in protocol buffers.N)r
   r   r   c                .   > [         TU ]  X#XES9  Xl        g )N)r   r
   r   )superr   map_key_type)r   key_type
value_typer   r
   r   	__class__s         r   r   MapField.__init__   s    GO$r   )rN   )	r=   r>   r?   r@   rA   r   r   rD   __classcell__)rQ   s   @r   rJ   rJ      s    >EIPT % % %r   rJ   )r   rJ   rG   N)r   r   google.protobufr   *google.protobuf.internal.enum_type_wrapperr   proto.primitivesr   r   rG   rJ   __all__rE   r   r   <module>rX      s?     * F &y yxE %u %r   