+
    Ti4                    :   ^ RI t ^ RIt^ RIHtHtH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	IHt ^R
I
Ht ^RI
Ht ^RI
Ht ^RIHtHt ]P4                  ! R4      tRuR R lltRuR R lltRuR R lltRuR R lltRuR R llt RuR R llt!RuR R llt"RuR R llt#RuR R  llt$RuR! R" llt%RuR# R$ llt&RuR% R& llt'RuR' R( llt(RuR) R* llt)RuR+ R, llt*RuR- R. llt+RuR/ R0 llt,RuR1 R2 llt-RuR3 R4 llt.RuR5 R6 llt/RuR7 R8 llt0RuR9 R: llt1RuR; R< llt2RuR= R> llt3RuR? R@ llt4RuRA RB llt5RuRC RD llt6RuRE RF llt7RuRG RH llt8RuRI RJ llt9RuRK RL llt:RuRM RN llt;RuRO RP llt<RuRQ RR llt=RuRS RT llt>RuRU RV llt?RuRW RX llt@RuRY RZ lltARuR[ R\ lltBRuR] R^ lltCRuR_ R` lltDRuRa Rb lltERuRc Rd lltFRuRe Rf lltGRuRg Rh lltHRuRi Rj lltIRuRk Rl lltJRuRm Rn lltKRuRo Rp lltL ! Rq Rr]	P                  4      tN ! Rs Rt]	P                  4      tOR# )v    N)AnyOptionalUnion)	urlencode)_api_module)_common)_extra_utils)_transformers)types)BaseApiClient)get_value_by_path)move_value_by_path)set_value_by_path)
AsyncPagerPagerzgoogle_genai.batchesc                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /#    from_objectparent_objectreturnr   dictstrr   objectr   )formats   "_/home/kuhnn/.local/share/uv/tools/nano-pdf/lib/python3.14/site-packages/google/genai/batches.py__annotate__r   &   sM     % %tCH~v-.%DcN+% 
#s(^%    c                 j   / p\        V R .4      e   \        VR.\        V R .4      4       \        V RR.4      e4   \        TR.\        V RR.4       Uu. uF  p\        W24      NK  	  up4       \        V RR.4       e+   \        TR.\        V RR.4       Uu. uF  pVNK  	  up4       V# u upi u upi )responsesFile	file_nameinlinedResponsesinlined_responsesinlinedEmbedContentResponsesinlined_embed_content_responses)getvsetv_InlinedResponse_from_mldevr   r   	to_objectitems   &&  r   _BatchJobDestination_from_mldevr-   &   s     !)	+()5[M4o5F#GH	+*,>?@L	 02DE	
 (8	
	 ;79KLM 		*+ /1CD	
 	

 
1	
	
s   B+B0c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   N   sM      tCH~v-.DcN+ 
#s(^r   c           	         / p\        V R .4      e   \        VR.\        V R .4      4       \        V RR.4      e   \        VR.\        V RR.4      4       \        V RR.4      e   \        VR.\        V RR.4      4       V# )predictionsFormatr   gcsDestinationoutputUriPrefixgcs_uribigqueryDestination	outputUribigquery_urir'   r(   r   r   r+   s   && r    _BatchJobDestination_from_vertexr9   N   s     !)	++,-9XJ[3F2G HI	+(*;<=I	[+->?@ 
+-{;<H	[0+>? 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   g   sM     $ $tCH~v-.$DcN+$ 
#s(^$r   c                    / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        R	4      h\        V R
.4      e   \        R4      h\        V R.4      e   \        R4      hV# )r   r0   r3   r1   r2   r6   r4   r5   r"   2file_name parameter is not supported in Vertex AI.r$   z:inlined_responses parameter is not supported in Vertex AI.r&   zHinlined_embed_content_responses parameter is not supported in Vertex AI.r'   r(   
ValueErrorr8   s   && r   _BatchJobDestination_to_vertexr?   g   s     !)	+z".()4hZ+HI	+	{#/	,-[9+& 
+'(4	,[>*+ 
+}%1
I
JJ	++,-9
D  
+9:;G
	 
 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r      M      tCH~v-.DcN+ 
#s(^r   c           	         / p\        V R .4      e   \        VR.\        V R .4      4       \        V RR.4      e   \        VR.\        V RR.4      4       \        V RR.4      e   \        VR.\        V RR.4      4       V# )instancesFormatr   	gcsSourceurisr3   bigquerySourceinputUrir6   r7   r8   s   && r   _BatchJobSource_from_vertexrH      s     !)	+)*+7XJ[3D2E FG	+V,-9YKkK3H!IJ	+(*56B	[+Z89 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# r   
api_clientr   r   r   r   r   r   r   r   r   r   )r   s   "r   r   r      sW      tCH~v-. DcN+ 
#s(^	r   c                    / p\        VR .4      e   \        R4      h\        VR.4      e   \        R4      h\        VR.4      e   \        R4      h\        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e5   \        TR	R	.\        VR.4       Uu. uF  p\        WV4      NK  	  up4       V# u upi )
r   z0format parameter is not supported in Gemini API.r3   z1gcs_uri parameter is not supported in Gemini API.r6   z6bigquery_uri parameter is not supported in Gemini API.r"   fileNameinlined_requestsrequests)r'   r>   r(   _InlinedRequest_to_mldevrK   r   r   r+   r,   s   &&&  r   _BatchJobSource_to_mldevrS      s    
 !)	+z".
G
HH	+	{#/
H
II	+'(4
M
NN	+}%1ZL${[M"BC	+*+,8	Z  [+=*>?	
? %ZyA?	
 
	
s    B>c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r      M      tCH~v-.DcN+ 
#s(^r   c                 f   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        R	4      h\        V R
.4      e   \        R4      hV# )r   rC   r3   rD   rE   r6   rF   rG   r"   r<   rO   z9inlined_requests parameter is not supported in Vertex AI.r=   r8   s   && r   _BatchJobSource_to_vertexrW      s     !)	+z".&'kH:)FG	+	{#/[&)4i[+IJ	+'(4	:&[>*+ 
+}%1
I
JJ	+*+,8
C  
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r      sM     6 6tCH~v-.6DcN+6 
#s(^6r   c                 
   / p\        V R .4      e   \        VR .\        V R .4      4       \        V RR.4      e   \        VR.\        V RR.4      4       \        V RR.4      e/   \        VR.\        P                  ! \        V RR.4      4      4       \        V RR.4      e   \        VR.\        V RR.4      4       \        V RR.4      e   \        VR.\        V RR.4      4       \        V RR	.4      e   \        VR
.\        V RR	.4      4       \        V RR.4      e   \        VR.\        V RR.4      4       \        V RR.4      e9   \        VR.\	        \        P
                  ! \        V RR.4      4      V4      4       V# )namemetadatadisplayNamedisplay_namestate
createTimecreate_timeendTimeend_time
updateTimeupdate_timemodeloutputdest)r'   r(   tt_job_stater-   t_recv_batch_job_destinationr8   s   && r   _BatchJob_from_mldevrk      s    !)	+x ,VHd;9:	+
M23?	[:}56 
+
G,-9			d;W(=>? 
+
L12>	[:|45 
+
I./;ZL${Z4K"LM	+
L12>	[:|45 
+
G,-9WItK*g1FGH	+
H-.:	'**[:x"89 		
	 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     sM     8 8tCH~v-.8DcN+8 
#s(^8r   c                 B   / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e.   \        VR.\        P                  ! \        V R.4      4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R	.4      e   \        VR
.\        V R	.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e$   \        VR.\	        \        V R.4      V4      4       \        V R.4      e8   \        VR.\        \        P                  ! \        V R.4      4      V4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )rZ   r\   r]   r^   errorr_   r`   	startTime
start_timera   rb   rc   rd   re   inputConfigsrcoutputConfigrg   completionStatscompletion_stats)r'   r(   rh   ri   rH   r9   rj   r8   s   && r   _BatchJob_from_vertexrv     s    !)	+x ,VHd;9:	+'3^$d;&HI	+y!-WIq}}T+y-IJK	+y!-WItK';<	+~&2]OT+~%FG	+}%1\ND{m$DE	+	{#/ZL${YK"@A	+~&2]OT+~%FG	+y!-WItK';<	+'3	#}o.		
 
+'(4	(**4n=M+NO	
 
+)*+7&'k<M;N)O 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   S  M      tCH~v-.DcN+ 
#s(^r   c                     / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       V# )datar]   6display_name parameter is not supported in Gemini API.	mime_typemimeTyper=   r8   s   && r   _Blob_to_mldevr~   S  sw     !)	+x ,VHd;9:	+'(4
M
NN	+}%1ZL${[M"BC	r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r   d  W      tCH~v-. DcN+ 
#s(^	r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# rZ   _urlr'   r(   rh   t_batch_job_namerK   r   r   r+   s   &&& r   "_CancelBatchJobParameters_to_mldevr   d  L    
 !)	+x ,		:tK&'BC 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r   t  r   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# r   r   r   s   &&& r   #_CancelBatchJobParameters_to_vertexr   t  r   r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     M     5 5tCH~v-.5DcN+5 
#s(^5r   c           
      f   / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e$   \        VR.\        \        V R.4      V4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R	.4      e   \        VR
.\        V R	.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e)   \        TR.\        V R.4       Uu. uF  q3NK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       V# u upi )contentcitationMetadatacitation_metadata
tokenCounttoken_countfinishReasonfinish_reasonavgLogprobsavg_logprobsgroundingMetadatagrounding_metadataindexlogprobsResultlogprobs_resultsafetyRatingssafety_ratingsurlContextMetadataurl_context_metadata)r'   r(   _CitationMetadata_from_mldevr*   s   &&  r   _Candidate_from_mldevr     s    !)	+	{#/YKkI;!?@	+*+,8	$123Y	
 
+~&2]OT+~%FG	+'(4_%tK.9I'JK	+'3^$d;&HI	++,-9	[./0 
+y!-WItK';<	+()*6&'k<L;M)NO	+()5	{_,=>?>$>? 
+,-.:	 [/01 
 	@s   3
F.c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     sM      tCH~v-.DcN+ 
#s(^r   c                     / p\        V R .4      e)   \        TR.\        V R .4       Uu. uF  q3NK  	  up4       V# u upi )citationSources	citationsr7   r*   s   &&  r   r   r     sW     !)	+)*+7	{->,?@A@$@A 
 	Bs   
<c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     rA   r   c                     / p\        V R .4      e3   \        TR .\        V R .4       Uu. uF  p\        W24      NK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       V# u upi )partsrole)r'   r(   _Part_to_mldevr*   s   &&  r   _Content_to_mldevr     s     !)	+y!-		 [7)4	
4 4+4	
 
+x ,VHd;9:		
s   A.c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     sM      tCH~v-.DcN+ 
#s(^r   c                     / p\        V R .4      e   \        VRR.\        V R .4      4       \        V R.4      e   \        R4      hV# )r]   batchr\   rg   z.dest parameter is not supported in Gemini API.r=   r8   s   && r   _CreateBatchJobConfig_to_mldevr     s\     !)	+'(4	- [>*+ 
+x ,
E
FF	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     rA   r   c                     / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e8   \        VR.\        \        P                  ! \        V R.4      4      V4      4       V# )r]   r\   rg   rs   )r'   r(   r?   rh   t_batch_job_destinationr8   s   && r   _CreateBatchJobConfig_to_vertexr     sz     !)	+'(4kN;K)LM	+x ,	&%%d;&ABI	
 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r     W      tCH~v-. DcN+ 
#s(^	r   c                 d   / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      e;   \        VRR.\	        V \        P
                  ! V \        VR.4      4      V4      4       \        VR.4      e   \        \        VR.4      V4       V# re   r   rr   r   rq   config)r'   r(   rh   t_modelrS   t_batch_job_sourcer   r   s   &&& r   "_CreateBatchJobParameters_to_mldevr     s    
 !)	+y!-				*d;	:; 
+w+	-    T+w-GH	
 
+z"."4hZ#@)L	r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r   &  sW      tCH~v-. DcN+ 
#s(^	r   c                 ^   / p\        VR .4      e/   \        VR .\        P                  ! V \        VR .4      4      4       \        VR.4      e9   \        VR.\	        \        P
                  ! V \        VR.4      4      V4      4       \        VR.4      e   \        \        VR.4      V4       V# )re   rr   rq   r   )r'   r(   rh   r   rW   r   r   r   s   &&& r   #_CreateBatchJobParameters_to_vertexr   &  s    
 !)	+y!-					*d;	:; 
+w+	!  T+w-GH	
 
+z".#Dxj$A9M	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   C  sM      tCH~v-.DcN+ 
#s(^r   c                 \    / p\        V R .4      e   \        VRR.\        V R .4      4       V# )r]   r   r\   r7   r8   s   && r   (_CreateEmbeddingsBatchJobConfig_to_mldevr   C  sA     !)	+'(4	- [>*+ 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r   S  r   r   c                 :   / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      e&   \        VRR.\	        V \        VR.4      V4      4       \        VR.4      e   \        \        VR.4      V4       V# r   )r'   r(   rh   r   "_EmbeddingsBatchJobSource_to_mldevr   r   s   &&& r   ,_CreateEmbeddingsBatchJobParameters_to_mldevr   S  s    
 !)	+y!-				*d;	:; 
+w+	- *[5'2I	
 
+z".,[8*%y 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r   q  r   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# r   r   r   s   &&& r   "_DeleteBatchJobParameters_to_mldevr   q  r   r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r     r   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# r   r   r   s   &&& r   #_DeleteBatchJobParameters_to_vertexr     r   r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     M      tCH~v-.DcN+ 
#s(^r   c                 J   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# sdkHttpResponsesdk_http_responserZ   donern   r7   r8   s   && r   _DeleteResourceJob_from_mldevr          !)	+)*+7'(${=N<O*P 
+x ,VHd;9:	+x ,VHd;9:	+y!-WItK';<	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r   r   c                 J   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# r   r7   r8   s   && r   _DeleteResourceJob_from_vertexr     r   r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r     sW      tCH~v-. DcN+ 
#s(^	r   c                 0   / p\        VR .4      e@   \        T. RO\        P                  ! V \        VR .4      4       Uu. uF  pVNK  	  up4       \        VR.4      e2   \        VR.\	        \        VR.4      V4      4       \        VRR/4       V# u upi )contentsr   _selfzrequests[].*zrequests[].request.*)
requests[]requestr   )r'   r(   rh   t_contents_for_embed_EmbedContentConfig_to_mldevmovevrR   s   &&&  r   _EmbedContentBatch_to_mldevr     s    
 !)	+
|$0, ..Dzl;	
 	
	 
+z".		$T+z%BIN
 
)n&<=>		
s   Bc                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     sM      tCH~v-.DcN+ 
#s(^r   c                 h   / p\        V R .4      e   \        VRR.\        V R .4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        R4      h\        V R.4      e   \        R	4      hV# )
	task_typer   taskTypetitleoutput_dimensionalityoutputDimensionalityr|   z3mime_type parameter is not supported in Gemini API.auto_truncatez7auto_truncate parameter is not supported in Gemini API.r=   r8   s   && r   r   r     s     !)	+}%1	z"[;-( 
+y!-w/kG91MN	+/01=	-.[234 
+}%1
J
KK	+()5
N
OO	r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r     sW      tCH~v-. DcN+ 
#s(^	r   c                     / p\        VR .4      e   \        VR .\        VR .4      4       \        VR.4      e%   \        VR.\        V \        VR.4      V4      4       V# )r"   rO   rP   )r'   r(   r   r   s   &&& r   r   r     sr    
 !)	+}%1[M4k]#CD	+*+,8	#[+=*>?	
 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     rx   r   c                     / p\        V R .4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )r]   r{   file_urifileUrir|   r}   r'   r>   r(   r8   s   && r   _FileData_to_mldevr     sw     !)	+'(4
M
NN	+
|$0YKkJ<!@A	+}%1ZL${[M"BC	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     M      tCH~v-.DcN+ 
#s(^r   c                 b   / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        R4      h\        V R.4      e   \        R4      hV# )idargsrZ   partial_argsz6partial_args parameter is not supported in Gemini API.will_continuez7will_continue parameter is not supported in Gemini API.r=   r8   s   && r   _FunctionCall_to_mldevr     s     !)	+v*TFDtf56	+x ,VHd;9:	+x ,VHd;9:	+'(4
M
NN	+()5
N
OO	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   6  M      tCH~v-.DcN+ 
#s(^r   c                     / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        R4      hV# )allowed_function_namesallowedFunctionNamesmodestream_function_call_argumentszHstream_function_call_arguments parameter is not supported in Gemini API.r=   r8   s   && r   _FunctionCallingConfig_to_mldevr  6  s     !)	+012>	 [345 
+x ,VHd;9:	+89:F
	 
 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r   N  s]     o ootCH~v-.o DcN+o 
#s(^	or   c                 
   / p\        VR .4      e8   \        VR.\        \        P                  ! \        VR .4      4      V4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR	.4      e   \        VR
.\        VR	.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e/   \        VR.\        P
                  ! V \        VR.4      4      4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e   \        R4      h\        VR.4      e   \        R4      h\        VR.4      e3   \        TR .\        VR.4       Uu. uF  p\        WC4      NK  	  up4       \        VR!.4      e]   \        TR!.\        P                  ! V \        VR!.4      4       Uu. uF#  p\        \        P                  ! W4      V4      NK%  	  up4       \        VR".4      e$   \        VR#.\        \        VR".4      V4      4       \        VR$.4      e   \        R%4      h\        VR&.4      e/   \        VR'.\        P                  ! V \        VR&.4      4      4       \        VR(.4      e   \        VR).\        VR(.4      4       \        VR*.4      e   \        VR+.\        VR*.4      4       \        VR,.4      e.   \        VR-.\        P                  ! \        VR,.4      4      4       \        VR..4      e   \        R/4      h\        VR0.4      e   \        VR1.\        VR0.4      4       \        VR2.4      e$   \        VR3.\        \        VR2.4      V4      4       \        VR4.4      e   \        VR5.\        VR4.4      4       \        VR6.4      e   \        R74      hV# u upi u upi )8system_instructionsystemInstructiontemperaturetop_ptopPtop_ktopKcandidate_countcandidateCountmax_output_tokensmaxOutputTokensstop_sequencesstopSequencesresponse_logprobsresponseLogprobslogprobspresence_penaltypresencePenaltyfrequency_penaltyfrequencyPenaltyseedresponse_mime_typeresponseMimeTyperesponse_schemaresponseSchemaresponse_json_schemaresponseJsonSchemarouting_configz8routing_config parameter is not supported in Gemini API.model_selection_configz@model_selection_config parameter is not supported in Gemini API.safety_settingssafetySettingstoolstool_config
toolConfiglabelsz0labels parameter is not supported in Gemini API.cached_contentcachedContentresponse_modalitiesresponseModalitiesmedia_resolutionmediaResolutionspeech_configspeechConfigaudio_timestampz9audio_timestamp parameter is not supported in Gemini API.thinking_configthinkingConfigimage_configimageConfigenable_enhanced_civic_answersenableEnhancedCivicAnswersmodel_armor_configz<model_armor_config parameter is not supported in Gemini API.)r'   r(   r   rh   	t_contentt_schemar>   _SafetySetting_to_mldevt_tools_Tool_to_mldevt_tool_ToolConfig_to_mldevt_cached_content_namet_speech_config_ImageConfig_to_mldevrR   s   &&&  r   _GenerateContentConfig_to_mldevrB  N  s   
 !)	+,-.:	KK[+?*@ABI	
 
+'3]OT+%GH	+y!-VHd;	:;	+y!-VHd;	:;	+)*+7%&[;L:M(NO	++,-9%&[;N:O(P 
+()*6_%tK:J9K'LM	++,-9	[./0 
+
|$0ZL${ZL"AB	+*+,8%&[;M:N(O 
++,-9	[./0 
+x ,VHd;9:	+,-.:	[/01 
+)*+7		

:tK2C1DEF 
+./0<	[123 
+()*6
O
PP	+012>
J  
+)*+7	 [+<*=>	
> $D4>	
 
+y!-		 		*d;	.JK	
K 188J5yAK	
 
+'3	T+?K 
+z".
G
HH	+()*6		[+;*<=	
 
+-./;	[012 
+*+,8%&[;M:N(O 
+()5		${_,=>? 
+)*+7
C  
+)*+7%&[;L:M(NO	+'(4	d;0@A9M 
+789E	%&[:;< 
+,-.:
F  
c	
	
s   (T;>)U c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r      sM        tCH~v-. DcN+  
#s(^ r   c                 &   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e3   \        TR.\        V R.4       Uu. uF  p\        W24      NK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R	.4      e   \        VR
.\        V R	.4      4       V# u upi )r   r   
candidatesmodelVersionmodel_versionpromptFeedbackprompt_feedback
responseIdresponse_idusageMetadatausage_metadata)r'   r(   r   r*   s   &&  r   #_GenerateContentResponse_from_mldevrN     s6    !)	+)*+7'(${=N<O*P 
+~&2	 [<.9	
9 "$29	
 
+'(4_%tK.9I'JK	+()*6&'k<L;M)NO	+~&2]OT+~%FG	+()5%&[?:K(LM	%	
s   Dc          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r   #  r   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# r   r   r   s   &&& r   _GetBatchJobParameters_to_mldevrQ  #  r   r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r   3  r   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# r   r   r   s   &&& r    _GetBatchJobParameters_to_vertexrT  3  r   r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   C  sM      tCH~v-.DcN+ 
#s(^r   c                     / p\        V R .4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       V# )auth_configz5auth_config parameter is not supported in Gemini API.enable_widgetenableWidgetr   r8   s   && r   _GoogleMaps_to_mldevrZ  C  sS     !)	+'3
L
MM	+()5^$d;8I&JK	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   Q  r   r   c                     / p\        V R .4      e   \        R4      h\        V R.4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       V# )exclude_domainsz9exclude_domains parameter is not supported in Gemini API.blocking_confidencez=blocking_confidence parameter is not supported in Gemini API.time_range_filtertimeRangeFilterr   r8   s   && r   _GoogleSearch_to_mldevra  Q  s     !)	+)*+7
C  
+-./;
G  
++,-9%&[;N:O(P 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   h  rU   r   c                 F   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        R4      h\        V R.4      e   \        R4      h\        V R.4      e   \        R	4      hV# )
aspect_ratioaspectRatio
image_size	imageSizeperson_generationz;person_generation parameter is not supported in Gemini API.output_mime_typez:output_mime_type parameter is not supported in Gemini API.output_compression_qualityzDoutput_compression_quality parameter is not supported in Gemini API.r=   r8   s   && r   rA  rA  h  s     !)	+'(4]OT+7G%HI	+~&2[M4l^#DE	++,-9
E  
+*+,8
D  
+456B
N  
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rJ   rL   )r   s   "r   r   r     sW     % %%tCH~v-.% DcN+% 
#s(^	%r   c                    / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      eH   \        TRR.\        P                  ! \        VR.4      4       Uu. uF  p\        WC4      NK  	  up4       \        VR.4      e   \        VR.\        VR.4      4       \        VR.4      e3   \        VRR.\        V \        VR.4      \        VR./ R7      4      4       V# u upi )re   r   r   r[   r   generationConfig)default_value)r'   r(   rh   r   
t_contentsr   rB  rR   s   &&&  r   rQ   rQ     s   
 !)	+y!-	G			*d;	:; 
+
|$0	J T+
|%DE	
E d.E	
 
+
|$0ZL${ZL"AB	+z".	&''xj)YKr:	
 
)	
s   <Dc                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r   r   c           
         / p\        V R .4      e$   \        VR .\        \        V R .4      V4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )responser[   rn   )r'   r(   rN  r8   s   && r   r)   r)     s     !)	+
|$0	+zl+Y	
 
+
|$0ZL${ZL"AB	+y!-WItK';<	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r   r   c                     / p\        V R .4      e   \        VRR.\        V R .4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        R4      hV# )	page_size_querypageSize
page_token	pageTokenfilterz0filter parameter is not supported in Gemini API.r=   r8   s   && r   _ListBatchJobsConfig_to_mldevr{    s     !)	+}%1*-tK+/O 
+~&2	;[<.) 
+z".
G
HH	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r   r   c                     / p\        V R .4      e   \        VRR.\        V R .4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        VRR.\        V R.4      4       V# )ru  rv  rw  rx  ry  rz  r7   r8   s   && r   _ListBatchJobsConfig_to_vertexr~    s     !)	+}%1*-tK+/O 
+~&2	;[<.) 
+z".8,d;
.KL	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     M      tCH~v-.DcN+ 
#s(^r   c                 V    / p\        V R .4      e   \        \        V R .4      V4       V# r   )r'   r{  r8   s   && r   !_ListBatchJobsParameters_to_mldevr    s1     !)	+z".!${XJ"?K	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r  r   c                 V    / p\        V R .4      e   \        \        V R .4      V4       V# r  )r'   r~  r8   s   && r   "_ListBatchJobsParameters_to_vertexr    s1     !)	+z"."4hZ#@)L	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   
  M      tCH~v-.DcN+ 
#s(^r   c                 6   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e3   \        TR.\        V R.4       Uu. uF  p\        W24      NK  	  up4       V# u upi )r   r   nextPageTokennext_page_token
operations
batch_jobs)r'   r(   rk   r*   s   &&  r   !_ListBatchJobsResponse_from_mldevr  
  s     !)	+)*+7'(${=N<O*P 
+()5&'kO;L)MN	+~&2	 [<.9	
9 !19	
 
	
   9Bc                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   $  r  r   c                 6   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e3   \        TR.\        V R.4       Uu. uF  p\        W24      NK  	  up4       V# u upi )r   r   r  r  batchPredictionJobsr  )r'   r(   rv   r*   s   &&  r   "_ListBatchJobsResponse_from_vertexr  $  s     !)	+)*+7'(${=N<O*P 
+()5&'kO;L)MN	+-./;	 [+@*AB	
B "$2B	
 
	
r  c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   >  sR     @ @tCH~v-.@DcN+@ 
#s(^@r   c           
         / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e$   \        VR.\        \        V R.4      V4      4       \        V R.4      e$   \        VR	.\        \        V R.4      V4      4       \        V R
.4      e   \        VR.\        V R
.4      4       \        V R.4      e$   \        VR.\	        \        V R.4      V4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )r,  r-  code_execution_resultcodeExecutionResultexecutable_codeexecutableCode	file_datafileDatafunction_callfunctionCallfunction_responsefunctionResponseinline_data
inlineDatatextthoughtthought_signaturethoughtSignaturevideo_metadatavideoMetadata)r'   r(   r   r   r~   r8   s   && r   r   r   >  s    !)	+*+,8%&[;M:N(O 
+/01=	[234 
+)*+7%&[;L:M(NO	+}%1	4k];YG 
+()5	tK/1BCYO 
++,-9	[./0 
+'3	tK-99E 
+x ,VHd;9:	+	{#/YKkI;!?@	++,-9	[./0 
+()*6_%tK:J9K'LM	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     rx   r   c                     / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       V# )categorymethodz0method parameter is not supported in Gemini API.	thresholdr=   r8   s   && r   r:  r:    sv     !)	+
|$0ZL${ZL"AB	+z".
G
HH	+}%1[M4k]#CD	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r   r   c           
          / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e$   \        VR.\        \        V R.4      V4      4       V# )retrieval_configretrievalConfigfunction_calling_configfunctionCallingConfig)r'   r(   r  r8   s   && r   r>  r>    s|     !)	+*+,8%&[;M:N(O 
+123?	 !'89:I	
 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r   r   c           
      B   / p\        V R .4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        R	4      h\        V R
.4      e)   \        TR.\        V R
.4       Uu. uF  q3NK  	  up4       \        V R.4      e$   \        VR.\        \        V R.4      V4      4       \        V R.4      e$   \        VR.\	        \        V R.4      V4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# u upi )	retrievalz3retrieval parameter is not supported in Gemini API.computer_usecomputerUsefile_search
fileSearchcode_executioncodeExecutionenterprise_web_searchz?enterprise_web_search parameter is not supported in Gemini API.function_declarationsfunctionDeclarationsgoogle_maps
googleMapsgoogle_searchgoogleSearchgoogle_search_retrievalgoogleSearchRetrievalurl_context
urlContext)r'   r>   r(   rZ  ra  r*   s   &&  r   r<  r<    s    !)	+}%1
J
KK	+'(4]OT+7G%HI	+'3\ND}o$FG	+()*6_%tK:J9K'LM	+/01=
I  
+/01=	 {-D,EFGF$FG 
+'3	T+?K 
+()5	tK/1BCYO 
+123?	 ![456 
+'3\ND}o$FG	7 	Hs   
Fc                     a  ] tR tRt o RRRR/V 3R lR lltRRRR/V 3R lR lltRR/V 3R	 lR
 lltRR/V 3R lR lltRR/V 3R lR lltRR/V 3R lR llt	RR/V 3R lR llt
RR/V 3R lR lltRR/V 3R lR lltRtV tR# )Batchesi  re   Nr   c                   < V ^8  d   QhRS[ S[,          RS[S[P                  S[P
                  3,          RS[ S[P                  ,          RS[P                  /# r   re   rr   r   r   r   r   r   r   BatchJobSourceUnionBatchJobSourceUnionDictCreateBatchJobConfigOrDictBatchJob)r   __classdict__s   "r   r   Batches.__annotate__  d     B B c]B **E,I,IIJ	B
 u778B ~~Br   c                  \         P                  ! VVVR 7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       Rp	VP                  e/   VP                  P                  e   VP                  P                  p	\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWuV	4      p
V
P                   '       g   / M\"        P$                  ! V
P                   4      pV P                  P                  '       d   \'        V4      pV P                  P                  '       g   \)        V4      p\         P*                  P-                  WP/                  4       R	7      pV P                  P1                  V4       V# 
re   rr   r   r   r  z{model}:batchGenerateContentrv  ?r   Npostrr  kwargs)r   _CreateBatchJobParameters_api_clientvertexair   get
format_mapr   r   popr   http_optionsr   convert_to_dictencode_unserializable_typesr   bodyjsonloadsrv   rk   r  _from_response
model_dump_verify_responseselfre   rr   r   parameter_modelrequest_dictrequest_url_dictpathquery_paramsr  rr  response_dictreturn_values   &$$$         r   _createBatches._create  s    55O    8


Ol &))&1	$//0@A$7


Ol &))&1	-889IJ-##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   +M:m$$$*=9m>>00'A'A'C 1 L 	%%l3r   c                   < V ^8  d   QhRS[ S[,          RS[P                  RS[ S[P                  ,          RS[P
                  /# r  r   r   r   EmbeddingsBatchJobSourceOrDict$CreateEmbeddingsBatchJobConfigOrDictr  )r   r  s   "r   r   r  &  N     : : c]: //	:
 uAAB: ~~:r   c                  \         P                  ! VVVR 7      pV P                  P                  '       d   \	        R4      h\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       Rp	VP                  e/   VP                  P                  e   VP                  P                  p	\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWuV	4      p
V
P                   '       g   / M\"        P$                  ! V
P                   4      pV P                  P                  '       g   \'        V4      p\         P(                  P+                  WP-                  4       R	7      pV P                  P/                  V4       V# 
r  z=This method is only supported in the Gemini Developer client.r   z{model}:asyncBatchEmbedContentrv  r  r   Nr  r  )r   #_CreateEmbeddingsBatchJobParametersr  r  r>   r   r  r  r   r  r   r  r   r  r  r   r  r  r  rk   r  r  r  r  r  s   &$$$         r   _create_embeddingsBatches._create_embeddings&  s    ??O    
I  B


Ol &))&1	/::;KL/##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM$$$*=9m>>00'A'A'C 1 L 	%%l3r   c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r   rZ   r   r   r   r   r   GetBatchJobConfigOrDictr  )r   r  s   "r   r   r  b  s9     N NN"*5+H+H"IN~~Nr   c                  \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  R	WdV4      p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
V P                  P                  '       d   \'        V
4      p
V P                  P                  '       g   \)        V
4      p
\         P*                  P-                  WP/                  4       R
7      pV P                  P1                  V4       V# )a  Gets a batch job.

Args:
  name (str): A fully-qualified BatchJob resource name or ID.
    Example: "projects/.../locations/.../batchPredictionJobs/456" or "456"
      when project and location are initialized in the Vertex AI client. Or
      "batches/abc" using the Gemini Developer AI client.

Returns:
  A BatchJob object that contains details about the batch job.

Usage:

.. code-block:: python

  batch_job = client.batches.get(name='123456789')
  print(f"Batch job: {batch_job.name}, state {batch_job.state}")
rZ   r   r   batchPredictionJobs/{name}batches/{name}rv  r  r   Nr  r  )r   _GetBatchJobParametersr  r  rT  r  r  rQ  r   r  r   r  r   r  r  r   r  r  r  rv   rk   r  r  r  r  r  rZ   r   r  r  r  r  r  r  rr  r  r  s   &$$         r   r  Batches.getb  s   , 22O    5


Ol &))&1	+667GH+4


Ol &))&1	**+;<##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''t<PH&mmmBHMM1JM   +M:m$$$*=9m>>00'A'A'C 1 L 	%%l3r   c                N   < V ^8  d   QhRS[ RS[S[P                  ,          RR/# r   rZ   r   r   Nr   r   r   CancelBatchJobConfigOrDict)r   r  s   "r   r   r    ;     B B B u778	B
 Br   c                   \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  R	WdV4      p	R# )
a  Cancels a batch job.

Only available for batch jobs that are running or pending.

Args:
  name (str): A fully-qualified BatchJob resource name or ID.
    Example: "projects/.../locations/.../batchPredictionJobs/456" or "456"
      when project and location are initialized in the Vertex AI client. Or
      "batches/abc" using the Gemini Developer AI client.

Usage:

.. code-block:: python

  client.batches.cancel(name='123456789')
r  r   !batchPredictionJobs/{name}:cancelbatches/{name}:cancelrv  r  r   Nr  )r   _CancelBatchJobParametersr  r  r   r  r  r   r   r  r   r  r   r  r  r   
r  rZ   r   r  r  r  r  r  r  rr  s
   &$$       r   cancelBatches.cancel  sZ   . 55O    8


Ol &))&1	2==>NO27


Ol &))&1	&112BC&##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LHr   c                ^   < V ^8  d   QhRS[ S[P                  ,          RS[P                  /# r   r   r   r   r   ListBatchJobsConfigOrDictListBatchJobsResponse)r   r  s   "r   r   r    s.     8 8 ? ?@8""8r   c                  \         P                  ! VR 7      pV P                  P                  '       d:   \	        V4      pVP                  R4      pV'       d   RP                  V4      pM;RpM8\        V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWSV4      pVP                   '       g   / M\"        P$                  ! VP                   4      p	V P                  P                  '       d   \'        V	4      p	V P                  P                  '       g   \)        V	4      p	\         P*                  P-                  WP/                  4       R	7      p
\         P0                  ! VP2                  R
7      V
n        V P                  P7                  V
4       V
# r  r   r  batchesrv  r  r   Nr  r  headers)r   _ListBatchJobsParametersr  r  r  r  r  r  r   r  r   r  r   r  r  r   r  r  r  r  r  r  r  r  HttpResponser  r   r  r  r   r  r  r  r  r  r  rr  r  r  s   &$         r   _listBatches._list  s    44O    7Hl%))&1	$//0@A$6Gl%))&1	##$45##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''t<PH&mmmBHMM1JM   8Gm$$$7Fm..=='A'A'C > L &+%7%7  &L" 	%%l3r   c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r  r   r   r   DeleteBatchJobConfigOrDictDeleteResourceJob)r   r  s   "r   r   r  0  A     S S S u778	S
 Sr   c                  \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  R	WdV4      p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
V P                  P                  '       d   \'        V
4      p
V P                  P                  '       g   \)        V
4      p
\         P*                  P-                  WP/                  4       R
7      p\         P0                  ! V	P2                  R7      Vn        V P                  P7                  V4       V# )a}  Deletes a batch job.

Args:
  name (str): A fully-qualified BatchJob resource name or ID.
    Example: "projects/.../locations/.../batchPredictionJobs/456" or "456"
      when project and location are initialized in the client.

Returns:
  A DeleteResourceJob object that shows the status of the deletion.

Usage:

.. code-block:: python

  client.batches.delete(name='123456789')
r  r   r  r  rv  r  r   Ndeleter  r  )r   _DeleteBatchJobParametersr  r  r   r  r  r   r   r  r   r  r   r  r  r   r  r  r  r   r   r'  r  r  r   r  r   r  r  s   &$$         r   r*  Batches.delete0  s   . 55O    8


Ol &))&1	+667GH+7


Ol &))&1	**+;<##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''$lH 'mmmBHMM1JM   4]Cm$$$3MBm**99'A'A'C : L &+%7%7  &L" 	%%l3r   c                ~   < V ^8  d   QhRS[ RS[P                  RS[S[P                  ,          RS[P
                  /# r  r   r   r  r   r  r  )r   r  s   "r   r   r    sJ     +? +? +? ((	+?
 u778+? ~~+?r   c               :   \         P                  ! V P                  V4      p\        P                  ! VVVR7      pV P                  P
                  '       d4   \        P                  ! W$P                  4      pV P                  WVR7      # V P                  WVR7      # )a  Creates a batch job.

Args:
  model (str): The model to use for the batch job.
  src: The source of the batch job. Currently Vertex AI supports GCS URI(-s)
    or BigQuery URI. Example: "gs://path/to/input/data" or
    "bq://projectId.bqDatasetId.bqTableId". Gemini Developer API supports
    List of inlined_request, or file name. Example: "files/file_name".
  config (CreateBatchJobConfig): Optional configuration for the batch job.

Returns:
  A BatchJob object that contains details about the batch job.

Usage:

.. code-block:: python

  batch_job = client.batches.create(
      model="gemini-2.0-flash-001",
      src="gs://path/to/input/data",
  )
  print(batch_job.state)
r  
rh   r   r  r   r  r  r	   format_destinationr   r  r  re   rr   r   r  s   &$$$ r   createBatches.create  s    < 

t//
5C 55O    ..s4J4JKf\\v\>>\\v\>>r   c                ~   < V ^8  d   QhRS[ RS[P                  RS[S[P                  ,          RS[P
                  /# r  r   r   r  r   r  r  )r   r  s   "r   r   r    sP     0J 0J 0J //	0J
 uAAB0J ~~0Jr   c               6   ^ RI pVP                  R\        P                  ^R7       \        P
                  ! V P                  V4      p\        P                  ! VVVR7      pV P                  P                  '       d   \        R4      hV P                  WVR7      # )a!  **Experimental** Creates an embedding batch job.

Args:
  model (str): The model to use for the batch job.
  src: Gemini Developer API supports List of inlined_request, or file name.
    Example: "files/file_name".
  config (CreateBatchJobConfig): Optional configuration for the batch job.

Returns:
  A BatchJob object that contains details about the batch job.

Usage:

.. code-block:: python

  batch_job = client.batches.create_embeddings(
      model="text-embedding-004",
      src="files/my_embedding_input",
  )
  print(batch_job.state)
NJbatches.create_embeddings() is experimental and may change without notice.r  
stacklevelr  5Vertex AI does not support batches.create_embeddings.)warningswarnr   ExperimentalWarningrh   t_embedding_batch_job_sourcer  r   r  r  r>   r  )r  re   rr   r   r<  r  s   &$$$  r   create_embeddingsBatches.create_embeddings  s    8 MM	,,	   
(
()9)93
?C ??O    NOO$$5&$IIr   c                n   < V ^8  d   QhRS[ S[P                  ,          RS[S[P                  ,          /# r  )r   r   r  r   r  )r   r  s   "r   r   r    s1       ? ?@U^^r   c               V    V P                   p\        RVV P                  VR7      V4      # )a  Lists batch jobs.

Args:
  config (ListBatchJobsConfig): Optional configuration for the list request.

Returns:
  A Pager object that contains one page of batch jobs. When iterating over
  the pager, it automatically fetches the next page if there are more.

Usage:

.. code-block:: python
  config = {'page_size': 10}
  for batch_job in client.batches.list(config):
    print(batch_job.name)
r  r  )r"  r   r  r   list_requests   &$ r   listBatches.list  s1    ( ::L

&
!	 r    __name__
__module____qualname____firstlineno__r  r  r  r  r"  r*  r3  r@  rF  __static_attributes____classdictcell__r  s   @r   r  r    s     B "B
 <@B BH: ":
 FJ: :xNLPN N`B <@	B BH8CG8 8tS <@	S Sj+?
 <@+? +?Z0J
 FJ0J 0JdCG  r   r  c                     a  ] tR tRt o RRRR/V 3R lR lltRRRR/V 3R lR lltRR/V 3R	 lR
 lltRR/V 3R lR lltRR/V 3R lR lltRR/V 3R lR llt	RR/V 3R lR llt
RR/V 3R lR lltRR/V 3R lR lltRtV tR# )AsyncBatchesi  re   Nr   c                   < V ^8  d   QhRS[ S[,          RS[S[P                  S[P
                  3,          RS[ S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   AsyncBatches.__annotate__  r  r   c                 "   \         P                  ! VVVR 7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       Rp	VP                  e/   VP                  P                  e   VP                  P                  p	\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWuV	4      G Rj  xL
 p
V
P                   '       g   / M\"        P$                  ! V
P                   4      pV P                  P                  '       d   \'        V4      pV P                  P                  '       g   \)        V4      p\         P*                  P-                  WP/                  4       R	7      pV P                  P1                  V4       V#  L5ir  )r   r  r  r  r   r  r  r   r   r  r   r  r   r  r  async_requestr  r  r  rv   rk   r  r  r  r  r  s   &$$$         r   r  AsyncBatches._create  s     55O    8


Ol &))&1	$//0@A$7


Ol &))&1	-889IJ-##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   +M:m$$$*=9m>>00'A'A'C 1 L 	%%l3#s,   CIB,III=I&I AIc                   < V ^8  d   QhRS[ S[,          RS[P                  RS[ S[P                  ,          RS[P
                  /# r  r  )r   r  s   "r   r   rT  G  r  r   c                 "   \         P                  ! VVVR 7      pV P                  P                  '       d   \	        R4      h\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       Rp	VP                  e/   VP                  P                  e   VP                  P                  p	\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWuV	4      G Rj  xL
 p
V
P                   '       g   / M\"        P$                  ! V
P                   4      pV P                  P                  '       g   \'        V4      p\         P(                  P+                  WP-                  4       R	7      pV P                  P/                  V4       V#  L5ir  )r   r  r  r  r>   r   r  r  r   r  r   r  r   r  r  rV  r  r  r  rk   r  r  r  r  r  s   &$$$         r   r  AsyncBatches._create_embeddingsG  s     ??O    
I  B


Ol &))&1	/::;KL/##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM$$$*=9m>>00'A'A'C 1 L 	%%l3s&   BG8B,G8G6G8"=G8 AG8c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r  r   )r   r  s   "r   r   rT    s9     P PP"*5+H+H"IP~~Pr   c                 "   \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  R	WdV4      G Rj  xL
 p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
V P                  P                  '       d   \'        V
4      p
V P                  P                  '       g   \)        V
4      p
\         P*                  P-                  WP/                  4       R
7      pV P                  P1                  V4       V#  L5i)a  Gets a batch job.

Args:
  name (str): A fully-qualified BatchJob resource name or ID.
    Example: "projects/.../locations/.../batchPredictionJobs/456" or "456"
      when project and location are initialized in the Vertex AI client. Or
      "batches/abc" using the Gemini Developer AI client.

Returns:
  A BatchJob object that contains details about the batch job.

Usage:

.. code-block:: python

  batch_job = await client.aio.batches.get(name='123456789')
  print(f"Batch job: {batch_job.name}, state {batch_job.state}")
r  r   r  r  rv  r  r   Nr  r  )r   r  r  r  rT  r  r  rQ  r   r  r   r  r   r  r  rV  r  r  r  rv   rk   r  r  r  r  r  s   &$$         r   r  AsyncBatches.get  s    , 22O    5


Ol &))&1	+667GH+4


Ol &))&1	**+;<##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33t< H 'mmmBHMM1JM   +M:m$$$*=9m>>00'A'A'C 1 L 	%%l3#s,   CIB,III=I&I?AIc                N   < V ^8  d   QhRS[ RS[S[P                  ,          RR/# r
  r  )r   r  s   "r   r   rT    r  r   c                 "   \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  R	WdV4      G Rj  xL
 p	R#  L5i)
a  Cancels a batch job.

Only available for batch jobs that are running or pending.

Args:
  name (str): A fully-qualified BatchJob resource name or ID.
    Example: "projects/.../locations/.../batchPredictionJobs/456" or "456"
      when project and location are initialized in the Vertex AI client. Or
      "batches/abc" using the Gemini Developer AI client.

Usage:

.. code-block:: python

  await client.aio.batches.cancel(name='123456789')
r  r   r  r  rv  r  r   Nr  )r   r  r  r  r   r  r  r   r   r  r   r  r   r  r  rV  r  s
   &$$       r   r  AsyncBatches.cancel  sg    . 55O    8


Ol &))&1	2==>NO27


Ol &))&1	&112BC&##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H s   CFB,FF
Fc                ^   < V ^8  d   QhRS[ S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   rT  	  s.     : : ? ?@:"":r   c                 "   \         P                  ! VR 7      pV P                  P                  '       d:   \	        V4      pVP                  R4      pV'       d   RP                  V4      pM;RpM8\        V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWSV4      G Rj  xL
 pVP                   '       g   / M\"        P$                  ! VP                   4      p	V P                  P                  '       d   \'        V	4      p	V P                  P                  '       g   \)        V	4      p	\         P*                  P-                  WP/                  4       R	7      p
\         P0                  ! VP2                  R
7      V
n        V P                  P7                  V
4       V
#  L5ir  )r   r  r  r  r  r  r  r  r   r  r   r  r   r  r  rV  r  r  r  r  r  r  r  r  r   r  r   r  r!  s   &$         r   r"  AsyncBatches._list	  s     44O    7Hl%))&1	$//0@A$6Gl%))&1	##$45##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33t< H 'mmmBHMM1JM   8Gm$$$7Fm..=='A'A'C > L &+%7%7  &L" 	%%l3's,   B=I& B,I&,I$-I&=I&&I&(A=I&c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r  r%  )r   r  s   "r   r   rT  U	  r(  r   c                 "   \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  R	WdV4      G Rj  xL
 p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
V P                  P                  '       d   \'        V
4      p
V P                  P                  '       g   \)        V
4      p
\         P*                  P-                  WP/                  4       R
7      p\         P0                  ! V	P2                  R7      Vn        V P                  P7                  V4       V#  L5i)a  Deletes a batch job.

Args:
  name (str): A fully-qualified BatchJob resource name or ID.
    Example: "projects/.../locations/.../batchPredictionJobs/456" or "456"
      when project and location are initialized in the client.

Returns:
  A DeleteResourceJob object that shows the status of the deletion.

Usage:

.. code-block:: python

  await client.aio.batches.delete(name='123456789')
r  r   r  r  rv  r  r   Nr*  r  r  )r   r+  r  r  r   r  r  r   r   r  r   r  r   r  r  rV  r  r  r  r   r   r'  r  r  r   r  r   r  r  s   &$$         r   r*  AsyncBatches.deleteU	  s    . 55O    8


Ol &))&1	+667GH+7


Ol &))&1	**+;<##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33$l H 'mmmBHMM1JM   4]Cm$$$3MBm**99'A'A'C : L &+%7%7  &L" 	%%l3's,   CI=B,I=I;I==I=&I=?A=I=c                ~   < V ^8  d   QhRS[ RS[P                  RS[S[P                  ,          RS[P
                  /# r  r.  )r   r  s   "r   r   rT  	  sP     *E *E *E ((	*E
 u778*E ~~*Er   c               j  "   \         P                  ! V P                  V4      p\        P                  ! VVVR7      pV P                  P
                  '       d<   \        P                  ! W$P                  4      pV P                  WVR7      G Rj  xL
 # V P                  WVR7      G Rj  xL
 #  L L5i)a  Creates a batch job asynchronously.

Args:
  model (str): The model to use for the batch job.
  src: The source of the batch job. Currently Vertex AI supports GCS URI(-s)
    or BigQuery URI. Example: "gs://path/to/input/data" or
    "bq://projectId.bqDatasetId.bqTableId". Gemini Develop API supports List
    of inlined_request, or file name. Example: "files/file_name".
  config (CreateBatchJobConfig): Optional configuration for the batch job.

Returns:
  A BatchJob object that contains details about the batch job.

Usage:

.. code-block:: python

  batch_job = await client.aio.batches.create(
      model="gemini-2.0-flash-001",
      src="gs://path/to/input/data",
  )
r  Nr0  r2  s   &$$$ r   r3  AsyncBatches.create	  s     : 

t//
5C 55O    ..s4J4JKf<<eV<DDD<<eV<DDD EDs$   BB3B/B3*B1+B31B3c                ~   < V ^8  d   QhRS[ RS[P                  RS[S[P                  ,          RS[P
                  /# r  r6  )r   r  s   "r   r   rT  	  sP     7P 7P 7P //	7P
 uAAB7P ~~7Pr   c                 "   ^ RI pVP                  R\        P                  ^R7       \        P
                  ! V P                  V4      p\        P                  ! VVVR7      pRpVP                  e/   VP                  P                  e   VP                  P                  pV P                  P                  '       d   \        R4      hV P                  WVR7      G Rj  xL
 #  L5i)a3  **Experimental** Creates an asynchronously embedding batch job.

Args:
  model (str): The model to use for the batch job.
  src: Gemini Developer API supports inlined_requests, or file name.
    Example: "files/file_name".
  config (CreateBatchJobConfig): Optional configuration for the batch job.

Returns:
  A BatchJob object that contains details about the batch job.

Usage:

.. code-block:: python

  batch_job = await client.aio.batches.create_embeddings(
      model="text-embedding-004",
      src="files/my_embedding_input",
  )
  print(batch_job.state)
Nr8  r9  r  r;  )r<  r=  r   r>  rh   r?  r  r   r  r   r  r  r>   r  )r  re   rr   r   r<  r  r  s   &$$$   r   r@  AsyncBatches.create_embeddings	  s     8 MM	,,	   
(
()9)93
?C ??O 15L*""//;$++88l   NOO***OOOOs   B:C%=!C%C#C%c                n   < V ^8  d   QhRS[ S[P                  ,          RS[S[P                  ,          /# r  )r   r   r  r   r  )r   r  s   "r   r   rT  
  s1       ? ?@%..!r   c               r   "   V P                   p\        RTV P                  VR7      G Rj  xL
 V4      #  L	5i)a  Lists batch jobs asynchronously.

Args:
  config (ListBatchJobsConfig): Optional configuration for the list request.

Returns:
  A Pager object that contains one page of batch jobs. When iterating over
  the pager, it automatically fetches the next page if there are more.

Usage:

.. code-block:: python
  async for batch_job in await client.aio.batches.list():
    print(batch_job.name)
r  r  N)r"  r   rD  s   &$ r   rF  AsyncBatches.list
  s<     & ::Ljjj''	  	(s   )75
7rH  rI  rP  s   @r   rR  rR    s     B "B
 <@B BH: ":
 FJ: :xPLPP PdB <@	B BH:CG: :xS <@	S Sj*E
 <@*E *EX7P
 FJ7P 7PrCG  r   rR  )N)Pr  loggingtypingr   r   r   urllib.parser    r   r   r	   r
   rh   r   r  r   r   r'   r   r   r   r(   pagersr   r   	getLoggerloggerr-   r9   r?   rH   rS   rW   rk   rv   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  rB  rN  rQ  rT  rZ  ra  rA  rQ   r)   r{  r~  r  r  r  r  r   r:  r>  r<  
BaseModuler  rR  rH  r   r   <module>rx     sr  $   ' ' "       & . 0 . % 
		1	2%P2$N*>:6r8v"  5p*&*<: <  ,,8@*".0od F  .:%P.0044@F",5p^k$$ ^Bg;)) gr   