+
    i                        ^ RI Ht ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt RR/R	 R
 lltRR/R R lltRR/R R llt ! R R]P(                  4      tRR/R ltR# )    )annotationsN)Iterator)protos)client)model_types)	operationr   c                   V ^8  d   QhRR/# )   returnz#Iterator[CreateTunedModelOperation] )formats   "q/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/google/generativeai/operations.py__annotate__r      s      'J     c                t   a  S f   \         P                  ! 4       o V 3R lS P                  RRR7       4       pV# )z$Calls the API to list all operationsc              3  P   <"   T F  p\         P                  VS4      x  K  	  R # 5iN)CreateTunedModelOperation
from_proto).0opr   s   & r   	<genexpr>"list_operations.<locals>.<genexpr>%   s(      =B 	",,R88=s   #& )namefilter_)
client_libget_default_operations_clientlist_operations)r   
operationss   d r   r   r      s?     ~99;((b"(=J
 r   c                    V ^8  d   QhRRRR/# )r
   r   strr   r   r   )r   s   "r   r   r   -   s     < < <0I <r   c                   Vf   \         P                  ! 4       pVP                  V R7      p\        P	                  W!4      # )z)Calls the API to get a specific operationr   )r   r   get_operationr   r   )r   r   r   s   &$ r   r%   r%   -   s9    ~99;			4		(B$//;;r   c                   V ^8  d   QhRR/# )r
   r   r"   r   )r   s   "r   r   r   6   s     . .3 .r   c               X    Vf   \         P                  ! 4       pVP                  V R7      # )z,Calls the API to delete a specific operationr$   )r   r   delete_operation)r   r   s   &$r   r(   r(   6   s+     ~99;"""--r   c                  |   a  ] tR t^@t]R 4       t]R R l4       t]R R l4       tR t	R R lt
R	 V 3R
 lltRtV ;t# )r   c                b    \        \        VV\        P                  \        P                  R7      # )zu
result = getattr(proto, 'result', None)
if result is not None:
    if result.value == b'':
        del proto.result
)clsr   operations_clientresult_typemetadata_type)
from_gapicr   r   
TunedModelCreateTunedModelMetadata)r+   protor   s   &&&r   r   $CreateTunedModelOperation.from_protoA   s,     )$)) 99
 	
r   c                   V ^8  d   QhRR/# )r
   r   zoperation_lib.Operationr   )r   s   "r   r   &CreateTunedModelOperation.__annotate__S   s     
 
*
r   c                	    \        VR R4      p\        VRR4      pVe   RV/pMVe   RV/pM/ pV ! R
RVP                  RVP                  RVP                  RVP                  R	VP
                  /VB # )_pollingN_retrypollingretryr   refreshcancelr-   r.   r   )getattr
_operation_refresh_cancel_result_type_metadata_type)r+   r   r9   r:   kwargss   &&   r   from_core_operation-CreateTunedModelOperation.from_core_operationR   s    
 )Z6	8T2)Fu%FF 
**
&&
 $$
 "..	

 $22
 
 	
r   c                   V ^8  d   QhRR/# )r
   r   r"   r   )r   s   "r   r   r5   k   s     $ $c $r   c                	.    V P                   P                  # r   )r>   r   selfs   &r   r   CreateTunedModelOperation.namej   s    ###r   c                &    V P                  4        R# )z5Refresh the current statuses in metadata/result/errorN)_refresh_and_updaterH   s   &r   update CreateTunedModelOperation.updaten   s      "r   c                   V ^8  d   QhRR/# )r
   r   z)Iterator[protos.CreateTunedModelMetadata]r   )r   s   "r   r   r5   r   s      $M r   c              +    "   \         P                   ! RRV P                  P                  R^ /VB pV P                  4       '       gI   V P                  pVP	                  V P                  P
                  VP                  ,
          4       Vx  K^  V P                  pVP	                  V P                  P
                  VP                  ,
          4       V P                  4       # 5i)zA tqdm wait bar, yields `Operation` statuses until complete.

Args:
    **kwargs: passed through to `tqdm.auto.tqdm(..., **kwargs)`

Yields:
    Operation statuses as `protos.CreateTunedModelMetadata` objects.
totalinitialr   )tqdmmetadatatotal_stepsdonerM   completed_stepsnresult)rI   rC   barrT   s   &,  r   wait_bar"CreateTunedModelOperation.wait_barr   s      iiMdmm77MMfM ))++}}HJJt}}44suu<=N==

4==0035589{{}s   AC!BC!c                   V ^8  d   QhRR/# )r
   rY   zprotos.TunedModelr   )r   s   "r   r   r5      s     # #!2 #r   c                	R   < \         P                  ! V4      p\        SV `  V4       R # r   )r   decode_tuned_modelsuper
set_result)rI   rY   	__class__s   &&r   ra   $CreateTunedModelOperation.set_result   s     //76"r   r   )__name__
__module____qualname____firstlineno__classmethodr   rD   propertyr   rM   r[   ra   __static_attributes____classcell__)rb   s   @r   r   r   @   sQ    
 
  
 
. $ $#(# #r   r   grpc_metadatac                   \         P                  ! VP                  VP                  VR7      p\         P                  ! VP                  VP                  VR7      pV ! WWV3/ VB # )zD`google.api_core.operation.from_gapic`, patched to allow subclasses.)rT   )	functoolspartialr%   r   cancel_operation)	r+   r   r,   r-   r.   rl   rC   r;   r<   s	   &$$$$$,  r   r/   r/      s`     ''-G **F
 y6PPPr   )
__future__r   rn   typingr   google.generativeair   r   r   google.generativeai.typesr   google.api_corer   operation_lib	tqdm.autoautorS   r   r%   r(   	Operationr   r/   r   r   r   <module>rz      si    #   & 4 1 6 d  <t <.$ .H# 7 7 H#VQ Qr   