Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/proto/marshal/rules/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/proto/marshal/rules/__pycache__/message.cpython-38.pyc
U

O��g<	�@sGdd�d�ZdS)c@sHeZdZdZeed�dd�Zdd�ed�dd�Zd	d
�Ze	dd��Z
dS)
�MessageRulez@A marshal for converting between a descriptor and proto.Message.)�
descriptor�wrappercCs||_||_dS�N)�_descriptor�_wrapper)�selfrr�r�H/opt/cppython/lib/python3.8/site-packages/proto/marshal/rules/message.py�__init__szMessageRule.__init__N)�absentcCst||j�r|j�|�S|Sr)�
isinstancerr�wrap)r�valuerrrr	�	to_pythonszMessageRule.to_pythonc
Cstt||j�r|j�|�St|t�rp|jspz|jf|�WStttfk
rn}z|�|�j	WY�Sd}~XYnX|Sr)
rrZpb�dict�is_mapr�	TypeError�
ValueError�AttributeErrorZ_pb)rr�exrrr	�to_protos	"zMessageRule.to_protocCs|jj}|jo|��jS)z>Return True if the descriptor is a map entry, False otherwise.)rZ
DESCRIPTORZhas_optionsZ
GetOptionsZ	map_entry)r�descrrr	r1szMessageRule.is_map)�__name__�
__module__�__qualname__�__doc__�typer
�boolrr�propertyrrrrr	rsrN)rrrrr	�<module>�

F1le Man4ger