File manager - Edit - /usr/local/CyberCP/lib/python3.10/site-packages/proto/marshal/rules/__pycache__/message.cpython-310.pyc
Back
o �h< � @ s G d d� d�Z dS )c @ sJ e Zd ZdZdedefdd�Zdd�defd d �Zdd� Ze d d� �Z dS )�MessageRulez@A marshal for converting between a descriptor and proto.Message.� descriptor�wrapperc C s || _ || _d S �N)�_descriptor�_wrapper)�selfr r � r �N/usr/local/CyberCP/lib/python3.10/site-packages/proto/marshal/rules/message.py�__init__ s zMessageRule.__init__N)�absentr c C s t || j�r| j�|�S |S r )� isinstancer r �wrap)r �valuer r r r � to_python s zMessageRule.to_pythonc C sv t || j�r| j�|�S t |t�r9| js9z | jdi |��W S tttfy8 } z| �|�j W Y d }~S d }~ww |S )Nr ) r r �pb�dict�is_mapr � TypeError� ValueError�AttributeError�_pb)r r �exr r r �to_proto s �� zMessageRule.to_protoc C s | j j}|jo|�� jS )z>Return True if the descriptor is a map entry, False otherwise.)r � DESCRIPTOR�has_options� GetOptions� map_entry)r �descr r r r 1 s zMessageRule.is_map)�__name__� __module__�__qualname__�__doc__�typer �boolr r �propertyr r r r r r s r N)r r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings