HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/site-packages/proto/marshal/rules/__pycache__/message.cpython-38.pyc
U

JD�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>�