HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberPanel/lib/python3.10/site-packages/proto/__pycache__/fields.cpython-310.pyc
o

��h��@sfddlmZddlmZddlmZddlmZGdd�d�ZGdd�de�Z	Gd	d
�d
e�Z
dZdS)
�)�EnumMeta)�descriptor_pb2)�EnumTypeWrapper)�	ProtoTypec	@sxeZdZdZdZdddddd�dedededefd	d
�Ze	dd��Z
e	d
efdd��Ze	d
efdd��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�st|ttf�r|}tj}n|}tj}||_	||_
||_||_||_
||_||_d|_dS)N)�	mcls_data�parent�
isinstance�intrrr�ENUM�MESSAGEr�
proto_typerrr
rr	�_descriptor)�selfrrrrr	r
r�r�B/usr/local/CyberPanel/lib/python3.10/site-packages/proto/fields.py�__init__s 


zField.__init__c	Cs�|jsyd}t|jt�r |j�|j�sdj|j|jd�|_|j}nB|jr4t|jd�r.|jjj	n|jj
j	}n.t|jt�rO|j�|j�sKdj|j|jd�|_|j}n|jrbt|jd�r]|jjj	n|jj
j	}tj
|j|j|jrmdnd|j||j|jd�|_|jS)z$Return the descriptor for the field.Nz{package}.{name})�package�name�
DESCRIPTOR��)rr�label�type�	type_namer
�proto3_optional)rrr�str�
startswithr�format�hasattrr�	full_name�_metarr�FieldDescriptorProtorr�repeatedrr
r)rr rrr�
descriptorHsH�
���
���zField.descriptor�returncC�
|jdS)zReturn the name of the field.r�r
�rrrrrw�
z
Field.namecCr,)z Return the package of the field.rr-r.rrrr|r/z
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%�pbr.rrr�pb_type�s
z
Field.pb_type)�__name__�
__module__�__qualname__�__doc__r)rr"�boolr�propertyr*rrr1rrrrrs2����	
�*
.rc@seZdZdZdZdS)�
RepeatedFieldz9A representation of a repeated field in protocol buffers.TN)r2r3r4r5r)rrrrr8�sr8cs.eZdZdZddd�def�fdd�Z�ZS)�MapFieldz4A representation of a map field in protocol buffers.N)rrrcst�j||||d�||_dS)N)rrr)�superr�map_key_type)r�key_type�
value_typerrr��	__class__rrr�s
zMapField.__init__)r2r3r4r5rr�
__classcell__rrr>rr9�s"r9)rr9r8N)rr�google.protobufr�*google.protobuf.internal.enum_type_wrapperr�proto.primitivesrrr8r9�__all__rrrr�<module>s|