File: //usr/local/CyberCP/lib/python3.10/site-packages/google/protobuf/__pycache__/proto.cpython-310.pyc
o
�h�
� @ s� d Z ddlZddlmZmZ ddlmZ ddlmZ ddlm Z eddd �Z
dd
e
dedefd
d�Z
dee
dede
fdd�Zd
e
dejddfdd�Zdee
dejde
fdd�ZdS )z,Contains the Nextgen Pythonic protobuf APIs.� N)�Type�TypeVar)�decoder)�encoder)�Message�_MESSAGEr )�bound�message�
deterministic�returnc C s | j |d�S )a Return the serialized proto.
Args:
message: The proto message to be serialized.
deterministic: If true, requests deterministic serialization
of the protobuf, with predictable ordering of map keys.
Returns:
A binary bytes representation of the message.
)r
)�SerializeToString)r r
� r
�H/usr/local/CyberCP/lib/python3.10/site-packages/google/protobuf/proto.py� serialize s r �
message_class�payloadc C s | � }|� |� |S )z�Given a serialized data in binary form, deserialize it into a Message.
Args:
message_class: The message meta class.
payload: A serialized bytes in binary form.
Returns:
A new message deserialized from payload.
)�ParseFromString)r r �new_messager
r
r �parse"