File: //opt/cppython/lib/python3.8/site-packages/google/protobuf/__pycache__/text_format.cpython-38.pyc
U
ID�g�� �
@ sz d Z dZddlZddlZddlZddlZddlZddlm Z ddlm
Z
ddlmZ ddlm
Z
ddlmZ d d
ddd
ddgZe
�� e
�� e
�� e
�� fZe�dej�Ze�dej�Zed�ZdZdZdZG dd� de�ZG dd� de�Z G dd� de!�Z"eddddddddddddf
e#d�dd �Z$e%d�dd�Z&d d!� Z'd"d#� Z(dedddddddddddf
d$d�Z)dedddddddddfd%d�Z*dedddddddddfd&d
�Z+d'd(� Z,d)Z-d*Z.G d+d,� d,e!�Z/dOd-d
�Z0dPd.d�Z1dQd/d0�Z2dRd1d2�Z3G d3d4� d4e!�Z4G d5d6� d6e!�Z5e5Z6d7d8� Z7d9d:� Z8d;d<� Z9d=d>� Z:d?d@� Z;dAdB� Z<dSdCdD�Z=dTdEdF�Z>dGdH� Z?dIdJ� Z@dKdL� ZAdMdN� ZBdS )Uac Contains routines for printing protocol messages in text format.
Simple usage example::
# Create a proto object and serialize it to a text proto string.
message = my_proto_pb2.MyMessage(foo='bar')
text_proto = text_format.MessageToString(message)
# Parse a text proto string.
message = text_format.Parse(text_proto, my_proto_pb2.MyMessage())
z kenton@google.com (Kenton Varda)� N)�decoder)�
type_checkers)�
descriptor)�
text_encoding)�unknown_fields�MessageToString�Parse�PrintMessage�
PrintField�PrintFieldValue�Merge�MessageToBytesz-?inf(?:inity)?f?$znanf?$)�'�"zgoogle.protobuf.Anyz Tc @ s e Zd ZdZdS )�Errorz'Top-level module error for text_format.N)�__name__�
__module__�__qualname__�__doc__� r r �H/opt/cppython/lib/python3.8/site-packages/google/protobuf/text_format.pyr 4 s r c s2 e Zd ZdZd � fdd� Zdd� Zdd� Z� ZS )
�
ParseErrorz3Thrown in case of text parsing or tokenizing error.Nc sr |d k r:|d k r:t |�}|d k r.|d�|�7 }d�||�}|d k rTtt| ��|� ntt| ��� || _|| _d S )Nz:{0}z {0} : {1})�str�format�superr �__init__�_line�_column)�self�message�line�column�loc�� __class__r r r ; s zParseError.__init__c C s | j S �N)r �r r r r �GetLineH s zParseError.GetLinec C s | j S r% )r r&