o
    üÞh'  ã                	   @   sÊ   d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	 eded�Z
			dd
edee dee de	fdd„Zde	d
edefdd„Zde	dee
 de
fdd„Zde	defdd„Zde	dejdefdd„Zd	S )zContains the Any helper APIs.é    )ÚOptionalÚTypeVar)Ú
descriptor)ÚMessage)ÚAnyÚ	_MessageT)Úboundútype.googleapis.com/NÚmsgÚtype_url_prefixÚdeterministicÚreturnc                 C   s   t ƒ }|j| ||d� |S )N)r
   r   r   )r   ÚPack)r
   r   r   Úany_msg© r   úS/var/www/html/premium_crap/venv/lib/python3.10/site-packages/google/protobuf/any.pyÚpack   s
   ÿr   r   c                 C   s   | j |d�S )N)r
   )ÚUnpack)r   r
   r   r   r   Úunpack!   s   r   Úmessage_typec                 C   s.   |ƒ }t | |ƒr
|S tdt| ƒ› d|j› �ƒ‚)NzAttempted to unpack z to )r   Ú	TypeErrorÚ	type_nameÚ__qualname__)r   r   Úunpackedr   r   r   Ú	unpack_as%   s   
ÿÿr   c                 C   s   |   ¡ S ©N)ÚTypeName)r   r   r   r   r   0   s   r   Údesc                 C   s
   |   |¡S r   )ÚIs)r   r   r   r   r   Úis_type4   s   
r   )r	   N)Ú__doc__Útypingr   r   Úgoogle.protobufr   Úgoogle.protobuf.messager   Úgoogle.protobuf.any_pb2r   r   ÚstrÚboolr   r   Útyper   r   Ú
Descriptorr   r   r   r   r   Ú<module>   s*   ýÿþý
ü