Ë
    T¼Sf1  ã                   ó   —  G d „ d«      Z y)c                   óH   — e Zd ZdZdedefd„Zddœdefd„Zd	„ Ze	d
„ «       Z
y)ÚMessageRulez@A marshal for converting between a descriptor and proto.Message.Ú
descriptorÚwrapperc                 ó    — || _         || _        y ©N)Ú_descriptorÚ_wrapper)Úselfr   r   s      úZC:\Users\user\Documents\project_loop\venv\Lib\site-packages\proto/marshal/rules/message.pyÚ__init__zMessageRule.__init__   s   € Ø%ˆÔØˆ�ó    N)Úabsentr   c                óh   — t        || j                  «      r| j                  j                  |«      S |S r   )Ú
isinstancer   r	   Úwrap)r
   Úvaluer   s      r   Ú	to_pythonzMessageRule.to_python   s,   € Ü�e˜T×-Ñ-Ô.Ø—=‘=×%Ñ% eÓ,Ð,Øˆr   c                 ó(  — t        || j                  «      r| j                  j                  |«      S t        |t        «      r| j                  s	  | j
                  di |¤ŽS |S # t        $ r%}| j                  |«      j                  cY d }~S d }~ww xY w)N© )r   r	   ÚpbÚdictÚis_mapr   Ú	TypeErrorÚ_pb)r
   r   Úexs      r   Úto_protozMessageRule.to_proto   s€   € Ü�e˜TŸ]™]Ô+Ø—=‘=×#Ñ# EÓ*Ð*Ü�eœTÔ"¨4¯;ª;ð0à'�t×'Ñ'Ñ0¨%Ñ0Ð0ð ˆøô ò 0ð —}‘} UÓ+×/Ñ/Õ/ûð	0ús   ÁA# Á#	BÁ,BÂBÂBc                 ó~   — | j                   j                  }|j                  xr |j                  «       j                  S )z>Return True if the descriptor is a map entry, False otherwise.)r   Ú
DESCRIPTORÚhas_optionsÚ
GetOptionsÚ	map_entry)r
   Údescs     r   r   zMessageRule.is_map,   s3   € ð ×Ñ×*Ñ*ˆØ×ÑÒ? D§O¡OÓ$5×$?Ñ$?Ð?r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Útyper   Úboolr   r   Úpropertyr   r   r   r   r   r      sD   „ ÙJð  4ð  °$ó  ð 26ò ¨$ó ò
ð  ñ@ó ñ@r   r   N)r   r   r   r   ú<module>r*      s   ð÷  @ò  @r   