
    h'              	           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          Z
	 	 dd
edee         dee         de	fdZde	d
edefdZde	dee
         de
fdZde	defdZde	dej        def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                 R    t                      }|                    | ||           |S )N)r   r   r   )r   Pack)r   r   r   any_msgs       W/var/www/html/e360mart/e360mart_env/lib/python3.11/site-packages/google/protobuf/any.pypackr      s6    
 EE'	,,
m     
.    r   c                 .    |                      |          S )N)r   )Unpack)r   r   s     r   unpackr   !   s    	C	 	  r   message_typec                      |            }t          | |          r|S t          dt          |            d|j                   )NzAttempted to unpack z to )r   	TypeError	type_name__qualname__)r   r   unpackeds      r   	unpack_asr   %   s_    \^^(GX O
	(y11 	( 	(%	( 	(  r   c                 *    |                                  S N)TypeName)r   s    r   r   r   0   s    					r   desc                 ,    |                      |          S r    )Is)r   r"   s     r   is_typer%   4   s    	Cr   )r
   N)__doc__typingr   r   google.protobufr   google.protobuf.messager   google.protobuf.any_pb2r   r   strboolr   r   typer   r   
Descriptorr%    r   r   <module>r0      sl   $ # $ $ $ $ $ $ $ $ & & & & & & + + + + + + ' ' ' ' ' ' GKw///	
 &<$(	 			c]	 D>	 			 	 	 	!C !g !$ ! ! ! !s $y/ i    s s    S z4       r   