Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/proto/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/proto/__pycache__/fields.cpython-38.pyc
U

O��g��@sfddlmZddlmZddlmZddlmZGdd�d�ZGdd�de�Z	Gd	d
�d
e�Z
dZdS)
�)�EnumMeta)�descriptor_pb2)�EnumTypeWrapper)�	ProtoTypec@sreZdZdZdZdddddd�eeeed�dd�Ze	dd	��Z
e	ed
�dd��Ze	ed
�d
d��Ze	dd��Z
dS)�Fieldz8A representation of a type of field in protocol buffers.FN)�message�enum�oneof�	json_name�optional)�numberr	r
rcCsnd|_d|_t|t�s:t|ttf�r0|}tj}n
|}tj}||_	||_
||_||_||_
||_||_d|_dS)N)�	mcls_data�parent�
isinstance�intrrrZENUMZMESSAGEr�
proto_typerrr
rr	�_descriptor)�selfrrrrr	r
r�r�9/opt/cppython/lib/python3.8/site-packages/proto/fields.py�__init__s 

zField.__init__c	Cs�|js�d}t|jt�r@|j�|j�s8dj|j|jd�|_|j}n�|jrht|jd�r\|jjj	n|jj
j	}n\t|jt�r�|j�|j�s�dj|j|jd�|_|j}n&|jr�t|jd�r�|jjj	n|jj
j	}tj
|j|j|jr�dnd|j||j|jd�|_|jS)z$Return the descriptor for the field.Nz{package}.{name})�package�name�
DESCRIPTOR��)rr�label�type�	type_namer
Zproto3_optional)rrr�str�
startswithr�format�hasattrrZ	full_name�_metarrZFieldDescriptorProtorr�repeatedrr
r)rrrrr�
descriptorHsH�
���
���zField.descriptor)�returncCs
|jdS)zReturn the name of the field.r�r
�rrrrrwsz
Field.namecCs
|jdS)z Return the package of the field.rr'r(rrrr|sz
Field.packagecCs4|jr|jS|js|jSt|jd�r.|j��S|jS)zMReturn the composite type of the field, or the primitive type if a primitive.r#)rrrr"Zpbr(rrr�pb_type�s
z
Field.pb_type)�__name__�
__module__�__qualname__�__doc__r$rr�boolr�propertyr%rrr)rrrrrs*��*
.rc@seZdZdZdZdS)�
RepeatedFieldz9A representation of a repeated field in protocol buffers.TN)r*r+r,r-r$rrrrr0�sr0cs.eZdZdZddd�ed��fdd�Z�ZS)�MapFieldz4A representation of a map field in protocol buffers.N)rr)rcst�j||||d�||_dS)N)rrr)�superrZmap_key_type)rZkey_typeZ
value_typerrr��	__class__rrr�szMapField.__init__)r*r+r,r-rr�
__classcell__rrr3rr1�sr1)rr1r0N)rrZgoogle.protobufrZ*google.protobuf.internal.enum_type_wrapperrZproto.primitivesrrr0r1�__all__rrrr�<module>s|

F1le Man4ger