HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/proto/__pycache__/fields.cpython-37.pyc
B

��f��@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�=/opt/alt/python37/lib/python3.7/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�
descriptorHs:
zField.descriptor)�returncCs
|jdS)zReturn the name of the field.r)r
)rrrrrwsz
Field.namecCs
|jdS)z Return the package of the field.r)r
)rrrrr|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"Zpb)rrrr�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$rrrrr.�sr.cs.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__rr)r1rr/�sr/)rr/r.N)rrZgoogle.protobufrZ*google.protobuf.internal.enum_type_wrapperrZproto.primitivesrrr.r/�__all__rrrr�<module>s|