File: //opt/cppython/lib/python3.8/site-packages/google/protobuf/__pycache__/proto.cpython-38.pyc
U
ID�g�
� @ s� d Z ddlZddlmZmZ ddlmZ ddlmZ ddlm Z eddd �Z
de
eed
�dd�Z
ee
ee
d
�dd�Ze
ejdd�dd�Zee
eje
d�dd�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
)ZSerializeToString)r r
� r �B/opt/cppython/lib/python3.8/site-packages/google/protobuf/proto.py� serialize s r )�
message_class�payloadr c 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 Znew_messager r r
�parse"