File: //opt/gsutil/third_party/apitools/apitools/base/py/__pycache__/encoding_helper.cpython-39.pyc
a
�z�g�w � @ s( d Z ddlZddlZddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZ e�ddd g�Z
e�d
ddg�ZG d
d� de�ZG dd� de�dg d���Zi Zi Zi Zi Zdd� Zdd� Zdd� Zdd� Zdd� Zdbdd�Zdd� Zd d!� Zd"d#� Zdcd%d&�Zd'd(� Z d)d*� Z!ddd+d,�Z"d-d.� Z#d/d0� Z$d1d2� Z%d3d4� Z&G d5d6� d6e j'�Z(d7d8� Z)d9d:� Z*d;d<� Z+d=d>� Z,d?d@� Z-dAdB� Z.dCdD� Z/dEdF� Z0dGdH� Z1ee.e/�ej2� i Z3i Z4dedIdJ�Z5dfdKdL�Z6dgdMdN�Z7dhdOdP�Z8didQdR�Z9dSdT� Z:dUdV� Z;dWdX� Z<dYdZ� Z=d[d\� Z>d]d^� Z?djd`da�Z@dS )kz@Common code for converting proto to other formats, such as JSON.� N)�
message_types)�messages)� protojson)�
exceptions�_Codec�encoder�decoder�CodecResult�value�completec @ s e Zd ZdZdZdZdZdS )�EdgeTypez'The type of transition made by an edge.� � � N)�__name__�
__module__�__qualname__�__doc__�SCALAR�REPEATED�MAP� r r �D/opt/gsutil/third_party/apitools/apitools/base/py/encoding_helper.pyr $ s r c @ s e Zd ZdZdZdd� ZdS )� ProtoEdgea. A description of a one-level transition from a message to a value.
Protobuf messages can be arbitrarily nested as fields can be defined with
any "message" type. This nesting property means that there are often many
levels of proto messages within a single message instance. This class can
unambiguously describe a single step from a message to some nested value.
Properties:
type_: EdgeType, The type of transition represented by this edge.
field: str, The name of the message-typed field.
index: Any, Additional data needed to make the transition. The semantics
of the "index" property change based on the value of "type_":
SCALAR: ignored.
REPEATED: a numeric index into "field"'s list.
MAP: a key into "field"'s mapping.
r c C s&