+
    i                    	   ^ RI t ^ RIt^ RIHtHtHt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 ^RIHt ^RIHtHt ]P>                  ! R4      t R R lt!R R lt"R R lt#ERR R llt$ERR R llt%ERR R llt&ERR R llt'ERR R  llt(ERR! R" llt)ERR# R$ llt*ERR% R& llt+ERR' R( llt,ERR) R* llt-ERR+ R, llt.ERR- R. llt/ERR/ R0 llt0ERR1 R2 llt1ERR3 R4 llt2ERR5 R6 llt3ERR7 R8 llt4ERR9 R: llt5ERR; R< llt6ERR= R> llt7ERR? R@ llt8ERRA RB llt9ERRC RD llt:ERRE RF llt;ERRG RH llt<ERRI RJ llt=ERRK RL llt>ERRM RN llt?ERRO RP llt@ERRQ RR lltAERRS RT lltBERRU RV lltCERRW RX lltDERRY RZ lltEERR[ R\ lltFERR] R^ lltGERR_ R` lltHERRa Rb lltIERRc Rd lltJERRe Rf lltKERRg Rh lltLERRi Rj lltMERRk Rl lltNERRm Rn lltOERRo Rp lltPERRq Rr lltQERRs Rt lltRERRu Rv lltSERRw Rx lltTERRy Rz lltUERR{ R| lltVERR} R~ lltWERR R lltXERR R lltYERR R lltZERR R llt[ERR R llt\ERR R llt]ERR R llt^ERR R llt_ERR R llt`ERR R lltaERR R lltbERR R lltcERR R lltdERR R llteERR R lltfERR R lltgERR R llthERR R lltiERR R lltjERR R lltkERR R lltlERR R lltmERR R lltnERR R lltoERR R lltpERR R lltqERR R lltrERR R lltsERR R llttERR R lltuERR R lltvERR R lltwERR R lltxERR R lltyERR R lltzERR R llt{ERR R llt|ERR R llt}ERR R llt~ERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR R lltERR ER  llt ! ER ER]EP2                  4      t ! ER ER]EP2                  4      tR# (      N)AnyAsyncIterator	AwaitableIteratorOptionalUnion)	urlencode)_api_module)_base_transformers)_common)_extra_utils)
_mcp_utils)_transformers)errors)types)BaseApiClient)get_value_by_path)set_value_by_path)
AsyncPagerPagerzgoogle_genai.modelsc                (    V ^8  d   QhR\         RR/#    
enum_valuereturnNr   )formats   "f/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/google/genai/models.py__annotate__r   (   s     Q Q Q Q    c                 D    V \        R .4      9   d   \        V  R24      hR# )	ALLOW_ALL+ enum value is not supported in Gemini API.Nset
ValueErrorr   s   &r   (_PersonGeneration_to_mldev_enum_validater(   (   s)    3}%%

|#NO
PP &r    c                (    V ^8  d   QhR\         RR/# r   r   )r   s   "r   r   r   -   s     Q Q# Q$ Qr    c                 D    V \        R .4      9   d   \        V  R24      hR# )
BLOCK_NONEr#   Nr$   r'   s   &r   )_SafetyFilterLevel_to_mldev_enum_validater,   -   s)    3~&&

|#NO
PP 'r    c                (    V ^8  d   QhR\         RR/# r   r   )r   s   "r   r   r   2   s      Q QQ	Qr    c                 D    V \        R .4      9   d   \        V  R24      hR# )STYLEr#   Nr$   r'   s   &r   4_VideoGenerationReferenceType_to_mldev_enum_validater0   2   s*     3y>!

|#NO
PP "r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r   from_objectparent_objectroot_objectr   r   dictstrr   objectr   )r   s   "r   r   r   9   n        tCH~v-. DcN+  %S#X 678  
#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   \        R4      h\        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   \        R4      hV# )api_keyapiKeyapi_key_configz8api_key_config parameter is not supported in Gemini API.	auth_typez3auth_type parameter is not supported in Gemini API.google_service_account_configzGgoogle_service_account_config parameter is not supported in Gemini API.http_basic_auth_configz@http_basic_auth_config parameter is not supported in Gemini API.oauth_configz6oauth_config parameter is not supported in Gemini API.oidc_configz5oidc_config parameter is not supported in Gemini API.getvsetvr&   r3   r4   r5   	to_objects   &&& r   _AuthConfig_to_mldevrI   9   s    
 !)	+	{#/XJ[9+ >?	+()*6
O
PP	+}%1
J
KK	+789E
	 
 
+012>
J  
+'(4
M
NN	+'3
L
MM	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   \   n      tCH~v-.DcN+ %S#X 678 
#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# )datadisplay_name6display_name parameter is not supported in Gemini API.	mime_typemimeTyperD   rG   s   &&& r   _Blob_to_mldevrR   \   sw    
 !)	+x ,VHd;9:	+'(4
M
NN	+}%1ZL${[M"BC	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   n   n     6 6tCH~v-.6DcN+6 %S#X 6786 
#s(^	6r    c           
      f   / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e$   \        VR.\        \        V R.4      W24      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  qDN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groundingMetadatagrounding_metadataavgLogprobsavg_logprobsindexlogprobsResultlogprobs_resultsafetyRatingssafety_ratingsurlContextMetadataurl_context_metadata)rE   rF   _CitationMetadata_from_mldevr3   r4   r5   rH   items   &&&  r   _Candidate_from_mldevrk   n   s   
 !)	+	{#/YKkI;!?@	+*+,8	$123Y	
 
+~&2]OT+~%FG	+'(4_%tK.9I'JK	++,-9	[./0 
+'3^$d;&HI	+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,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r      n      tCH~v-.DcN+ %S#X 678 
#s(^	r    c                     / p\        V R .4      e)   \        TR.\        V R .4       Uu. uF  qDNK  	  up4       V# u upi )citationSources	citationsrE   rF   ri   s   &&&  r   rh   rh      sW    
 !)	+)*+7	{->,?@A@$@A 
 	Bs   
<c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# r   
api_clientr3   r4   r5   r   r   r   r7   r8   r   r9   r   )r   s   "r   r   r      x      tCH~v-. DcN+ %S#X 678	
 
#s(^r    c                 <   / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      eH   \        TR.\        P                  ! \        VR.4      4       Uu. uF  p\        WTV4      NK  	  up4       V# u upi )model_urlcontents)rE   rF   tt_model
t_contents_Content_to_vertexrt   r3   r4   r5   rH   rj   s   &&&&  r   "_ComputeTokensParameters_to_vertexr      s     !)	+y!-				*d;	:; 
+
|$0	 T+
|%DE	
E t<E	
 
	
s   ;Bc          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r      n      tCH~v-.DcN+ %S#X 678 
#s(^	r    c                     / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e)   \        TR.\        V R.4       Uu. uF  qDNK  	  up4       V# u upi )sdkHttpResponsesdk_http_response
tokensInfotokens_inforq   ri   s   &&&  r   "_ComputeTokensResponse_from_vertexr      s    
 !)	+)*+7'(${=N<O*P 
+~&2	{\N;<;$;< 
 	=s   
A$c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r      sn      tCH~v-.DcN+ %S#X 678 
#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# )	truncatedrZ   rq   rG   s   &&& r   '_ContentEmbeddingStatistics_from_vertexr      s[    
 !)	+}%1[M4k]#CD	+'3]OT+%GH	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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      W24      4       V# )values
statistics)rE   rF   r   rG   s   &&& r   _ContentEmbedding_from_vertexr      sl    
 !)	+z".XJ[8* =>	+~&2	/|n-y	
 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     n      tCH~v-.DcN+ %S#X 678 
#s(^	r    c                     / p\        V R .4      e4   \        TR .\        V R .4       Uu. uF  p\        WCV4      NK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       V# u upi partsrole)rE   rF   _Part_to_mldevri   s   &&&  r   _Content_to_mldevr     s    
 !)	+y!-		 [7)4	
4 4K84	
 
+x ,VHd;9:		
   A/c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   !  r   r    c                     / p\        V R .4      e4   \        TR .\        V R .4       Uu. uF  p\        WCV4      NK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       V# u upi r   )rE   rF   _Part_to_vertexri   s   &&&  r   r~   r~   !  s    
 !)	+y!-		 [7)4	
4 D[94	
 
+x ,VHd;9:		
r   c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   7  n      tCH~v-.DcN+ %S#X 678 
#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# )control_typecontrolType enable_control_image_computationcomputeControlrq   rG   s   &&& r   !_ControlReferenceConfig_to_vertexr   7  si    
 !)	+'(4]OT+7G%HI	+:;<H	[=>? 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   J  n      tCH~v-.DcN+ %S#X 678 
#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# )system_instructionz<system_instruction parameter is not supported in Gemini API.toolsz/tools parameter is not supported in Gemini API.generation_configz;generation_config parameter is not supported in Gemini API.)rE   r&   rG   s   &&& r   _CountTokensConfig_to_mldevr   J  sp    
 !)	+,-.:
F  
+y!-
F
GG	++,-9
E  
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   a  n     % %tCH~v-.%DcN+% %S#X 678% 
#s(^	%r    c                    / p\        V R .4      e9   \        VR.\        \        P                  ! \        V R .4      4      VV4      4       \        V R.4      e4   \        TR.\        V R.4       Uu. uF  p\        WCV4      NK  	  up4       \        V R.4      e$   \        VR.\        \        V R.4      W24      4       V# u upi )r   systemInstructionr   r   generationConfig)rE   rF   r~   r{   	t_content_Tool_to_vertex_GenerationConfig_to_vertexri   s   &&&  r   _CountTokensConfig_to_vertexr   a  s    
 !)	+,-.:	KK[+?*@AB	
 
+y!-		 [7)4	
4 D[94	
 
++,-9	#234i	
 
	
s   0C c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     x      tCH~v-. DcN+ %S#X 678	
 
#s(^r    c                    / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      eH   \        TR.\        P                  ! \        VR.4      4       Uu. uF  p\        WTV4      NK  	  up4       \        VR.4      e   \        \        VR.4      WC4       V# u upi rx   ry   rz   config)rE   rF   r{   r|   r}   r   r   r   s   &&&&  r   _CountTokensParameters_to_mldevr     s     !)	+y!-				*d;	:; 
+
|$0	 T+
|%DE	
E d{;E	
 
+z".[8*%y 
	
   ;B?c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )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.4      eH   \        TR.\        P                  ! \        VR.4      4       Uu. uF  p\        WTV4      NK  	  up4       \        VR.4      e   \        \        VR.4      WC4       V# u upi r   )rE   rF   r{   r|   r}   r~   r   r   s   &&&&  r    _CountTokensParameters_to_vertexr     s     !)	+y!-				*d;	:; 
+
|$0	 T+
|%DE	
E t<E	
 
+z". [8*%y 
	
r   c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     n      tCH~v-.DcN+ %S#X 678 
#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   r   totalTokenstotal_tokenscachedContentTokenCountcached_content_token_countrq   rG   s   &&& r   _CountTokensResponse_from_mldevr     s    
 !)	+)*+7'(${=N<O*P 
+'3^$d;&HI	+123?	%&[456 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     n      tCH~v-.DcN+ %S#X 678 
#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   r   r   r   rq   rG   s   &&& r    _CountTokensResponse_from_vertexr     sg    
 !)	+)*+7'(${=N<O*P 
+'3^$d;&HI	r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     x      tCH~v-. DcN+ %S#X 678	
 
#s(^r    c                     / p\        VR .4      e0   \        VRR.\        P                  ! V \        VR .4      4      4       V# rx   ry   namerE   rF   r{   r|   rt   r3   r4   r5   rH   s   &&&& r   _DeleteModelParameters_to_mldevr     J     !)	+y!-				*d;	:; 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )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    _DeleteModelParameters_to_vertexr     r   r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     n      tCH~v-.DcN+ %S#X 678 
#s(^	r    c                 Z    / p\        V R .4      e   \        VR.\        V R .4      4       V# r   r   rq   rG   s   &&& r   _DeleteModelResponse_from_mldevr     @    
 !)	+)*+7'(${=N<O*P 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   "  r   r    c                 Z    / p\        V R .4      e   \        VR.\        V R .4      4       V# r   rq   rG   s   &&& r    _DeleteModelResponse_from_vertexr   "  r   r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   0  t     v vtCH~v-.vDcN+v %S#X 678v 
#s(^	vr    c                 z   / 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   \        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   \        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   \        VRR.\        V R.4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        V. RO\        V R.4      4       \        V R.4      e   \        V. RO\        V R.4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        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O\        V R.4      4       V# ) output_gcs_uri
parameters
storageUrinegative_promptnegativePromptnumber_of_imagessampleCountaspect_ratioaspectRatioguidance_scaleguidanceScaleseedsafety_filter_levelsafetySettingperson_generationpersonGenerationinclude_safety_attributesincludeSafetyAttributesinclude_rai_reasonincludeRaiReasonlanguageoutput_mime_typeoutput_compression_qualityadd_watermarkaddWatermarklabels	edit_modeeditMode
base_stepsr   outputOptionsrQ   r   r  compressionQuality)r   
editConfig	baseStepsrq   rG   s   &&& r   _EditImageConfig_to_vertexr  0  sO   
 !)	+()*6	|$[+,- 
+)*+7	'([,-. 
+*+,8	}%[-./ 
+'(4	}%[>*+ 
+()*6	'[+,- 
+x ,v.[6(0KL	+-./;	'[012 
++,-9	)*[./0 
+345A	01[678 
+,-.:	)*[/01 
+
|$0	z"[:,' 
+*+,83[-./ 
+456B=[789 
+()5	~&[?+, 
+z".
Dxj$AB	+}%1	z"[;-( 
+~&21[<.) 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     sx         tCH~v-.  DcN+  %S#X 678	 
 
#s(^ 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R.4      4       \        VR.4      e5   \        TRR.\        VR.4       Uu. uF  p\	        WTV4      NK  	  up4       \        VR.4      e   \        \        VR.4      WC4       V# u upi )rx   ry   promptinstances[0]reference_imagesreferenceImagesr   )rE   rF   r{   r|   _ReferenceImageAPI_to_vertexr  r   s   &&&&  r   _EditImageParameters_to_vertexr    s     !)	+y!-				*d;	:; 
+z".^X.[8*0MN	+*+,8	*+ [+=*>?	
? )+F?	
 
+z".[8*%y 
	
s   Cc          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c                     / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e4   \        TR.\        V R.4       Uu. uF  p\        WCV4      NK  	  up4       V# u upi r   r   predictionsgenerated_imagesrE   rF   _GeneratedImage_from_vertexri   s   &&&  r   _EditImageResponse_from_vertexr        
 !)	+)*+7'(${=N<O*P 
+'3	 [=/:	
: (E:	
 
	
   A/c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     n      tCH~v-.DcN+ %S#X 678 
#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_type
requests[]taskTypetitleoutput_dimensionalityoutputDimensionalityrP   z3mime_type parameter is not supported in Gemini API.auto_truncatez7auto_truncate parameter is not supported in Gemini API.rD   rG   s   &&& r   _EmbedContentConfig_to_mldevr$    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\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     st     N NtCH~v-.NDcN+N %S#X 678N 
#s(^	Nr    c                 *   / p\        VR .4      pVf   RpVR8X  d+   \        V R.4      e   \        VRR.\        V R.4      4       M/VR8X  d)   \        V R.4      e   \        VR.\        V R.4      4       \        VR .4      pVf   RpVR8X  d+   \        V R.4      e   \        VRR.\        V R.4      4       M/VR8X  d)   \        V R.4      e   \        VR.\        V R.4      4       \        VR .4      pVf   RpVR8X  d+   \        V R.4      e   \        VRR	.\        V R.4      4       M/VR8X  d)   \        V R.4      e   \        VR	.\        V R.4      4       \        VR .4      pVf   RpVR8X  d*   \        V R
.4      e   \        VRR.\        V R
.4      4       \        VR .4      pVf   RpVR8X  d,   \        V R.4      e   \        VRR.\        V R.4      4       V# VR8X  d)   \        V R.4      e   \        VR.\        V R.4      4       V# )embedding_api_typePREDICTr  instances[]EMBED_CONTENTr  r   r!  r   r"  rP   rQ   r#  autoTruncaterq   )r3   r4   r5   rH   discriminators   &&&  r   _EmbedContentConfig_to_vertexr-    s   
 !){%9$:;-MiK+'3

+
&
{[M
*
 'K+'3
=:,[;-(HI{%9$:;-MiK'#/

-14gY3O 'K'#/
=7)T+y%AB{%9$:;-MiK123?

/
0
{45
6
 'K123?

!
"
{45
6 {%9$:;-MiK+'3

*
%
{[M
* {%9$:;-MiK/*+7


(
{_-
. 
 'K/*+7

.)4o=N+O 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r   V  x     ) ))tCH~v-.) DcN+) %S#X 678	)
 
#s(^)r    c                 J   / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      e@   \        TRR.\        P                  ! V \        VR.4      4       Uu. uF  pVNK  	  up4       \        VR.4      e,   \        \        P                  ! \        VR.4      4      WC4       \        VR.4      e   \        \        VR.4      WC4       \        VRR .\        P                  ! V \        VR .4      4      4       V# u upi )rx   ry   rz   r  rV   r   )rE   rF   r{   r|   t_contents_for_embedr   r   r$  r   s   &&&&  r   '_EmbedContentParametersPrivate_to_mldevr2  V  s0    !)	+y!-				*d;	:; 
+
|$0	y! ..Dzl;	
 	
	 
+	{#/	Dyk23Y 
+z". [8*%y Wii
Dwi89
 
/	
s   =D c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     sx     2 22tCH~v-.2 DcN+2 %S#X 678	2
 
#s(^2r    c                 n   / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      pVf   RpVR8X  dO   \        VR.4      e@   \        TRR.\        P                  ! V \        VR.4      4       Uu. uF  pVNK  	  up4       \        VR.4      pVf   RpVR8X  dH   \        VR.4      e9   \        VR.\        \        P                  ! \        VR.4      4      VV4      4       \        VR.4      e   \        \        VR.4      WC4       V# u upi )	rx   ry   r'  r(  rz   r)  rV   r*  r   )rE   rF   r{   r|   r1  r~   r   r-  )rt   r3   r4   r5   rH   r,  rj   s   &&&&   r   (_EmbedContentParametersPrivate_to_vertexr5    s^    !)	+y!-				*d;	:; {%9$:;-MiK*&2

)
$ 00d;=$ 	 {%9$:;-Mo%K)%1

+
kk${YK89 
+z".![8*%y 
9s   D2c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c                 "   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e)   \        TR.\        V R.4       Uu. uF  qDNK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       V# u upi )r   r   
embeddingsmetadatarq   ri   s   &&&  r    _EmbedContentResponse_from_mldevr:    s    
 !)	+)*+7'(${=N<O*P 
+~&2	{\N;<;$;< 
+
|$0ZL${ZL"AB	 	=s   
Bc          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c                 V   / p\        V R .4      e   \        VR.\        V R .4      4       \        V RR.4      e5   \        TR.\        V RR.4       Uu. uF  p\        WCV4      NK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       \        VR.4      R8X  d|   \        V R.4      p\        V R.4      p\        V R	.4      pV'       dM   / pV'       d$   VP                  R
4      '       d   VR
,          VR&   V'       d   WxR	&   WR&   \        VR.V.4       V# u upi )r   r   zpredictions[]r8  r9  r'  r*  	embeddingusageMetadatar   promptTokenCountrZ   r   )rE   rF   r   get)	r3   r4   r5   rH   rj   r=  usage_metadatar   statss	   &&&      r   !_EmbedContentResponse_from_vertexrC    sL   
 !)	+)*+7'(${=N<O*P 
+67C	 [?L*IJ	
J *$;GJ	
 
+
|$0ZL${ZL"AB	+,-./A[;-0I+'89N[;-0Ie	N../ABB-.@Am	&k %
9|nyk2	-	
s   D&c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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      4       V# )endpointr   deployedModelIddeployed_model_idrq   rG   s   &&& r   _Endpoint_from_vertexrI    sf    
 !)	+
|$0VHd;=>	+)*+7'(${=N<O*P 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     rK   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# )rN   rO   file_urifileUrirP   rQ   )rE   r&   rF   rG   s   &&& r   _FileData_to_mldevrN    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,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   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argsr   partial_argsz6partial_args parameter is not supported in Gemini API.will_continuez7will_continue parameter is not supported in Gemini API.rD   rG   s   &&& r   _FunctionCall_to_mldevrU    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,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   2  n      tCH~v-.DcN+ %S#X 678 
#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.rD   rG   s   &&& r   _FunctionCallingConfig_to_mldevr]  2  s    
 !)	+012>	 [345 
+x ,VHd;9:	+89:F
	 
 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   K  sn     # #tCH~v-.#DcN+# %S#X 678# 
#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      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# )
descriptionr   r   parameters_json_schemaparametersJsonSchemaresponseresponse_json_schemaresponseJsonSchemabehaviorz1behavior parameter is not supported in Vertex AI.rD   rG   s   &&& r   _FunctionDeclaration_to_vertexrg  K  s&   
 !)	+'3]OT+%GH	+x ,VHd;9:	+~&2\ND|n$EF	+012>	 [345 
+
|$0ZL${ZL"AB	+./0<	[123 
+
|$0
H
II	r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r   q  s     v vvtCH~v-.v DcN+v %S#X 678	v
 
#s(^vr    c                 
   / p\        VR .4      e9   \        VR.\        \        P                  ! \        VR .4      4      V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      e4   \        TR .\        VR.4       Uu. uF  p\        WTV4      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      WC4      NK%  	  up4       \        VR".4      e$   \        VR#.\        \        VR".4      WC4      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      WC4      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 )8r   r   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frequencyPenaltyr   response_mime_typeresponseMimeTyperesponse_schemaresponseSchemard  re  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safetySettingsr   tool_config
toolConfigr   0labels 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.)rE   rF   r   r{   r   t_schemar&   _SafetySetting_to_mldevt_tools_Tool_to_mldevt_tool_ToolConfig_to_mldevt_cached_content_namet_speech_config_ImageConfig_to_mldevr   s   &&&&  r   _GenerateContentConfig_to_mldevr  q  s    !)	+,-.:	KK[+?*@AB	
 
+'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[A>	
 
+y!-		 		*d;	.JK	
K 188J5yNK	
 
+'3	}o.		
 
+z".
G
HH	+()*6		[+;*<=	
 
+-./;	[012 
+*+,8%&[;M:N(O 
+()5		${_,=>? 
+)*+7
C  
+)*+7%&[;L:M(NO	+'(4	~./	
 
+789E	%&[:;< 
+,-.:
F  
k	
	
s   )T= )Uc                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r   *  s     s sstCH~v-.s DcN+s %S#X 678	s
 
#s(^sr    c                 
   / p\        VR .4      e9   \        VR.\        \        P                  ! \        VR .4      4      V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   \        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  qUNK  	  up4       \        VR!.4      e]   \        TR!.\        P                  ! V \        VR!.4      4       Uu. uF#  p\        \        P                  ! W4      WC4      NK%  	  up4       \        VR".4      e$   \        VR#.\        \        VR".4      WC4      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   \        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R0.\        VR/.4      4       \        VR1.4      e$   \        VR2.\        \        VR1.4      WC4      4       \        VR3.4      e   \        R44      h\        VR5.4      e   \        VR6.\        VR5.4      4       V# u upi u upi )7r   r   rj  rk  rl  rm  rn  ro  rp  rq  rr  rs  rt  ru  rv  rw  rx  ry  rz  r{  r   r|  r}  r~  r  rd  re  r  routingConfigr  modelConfigr  r  r   r  r  r   r  r  r  r  r  r  r  r  r  audioTimestampr  r  r  r  r  Fenable_enhanced_civic_answers parameter is not supported in Vertex AI.r  modelArmorConfig)rE   rF   r~   r{   r   r  r  r   r  _ToolConfig_to_vertexr  r  _ImageConfig_to_vertexr&   r   s   &&&&  r    _GenerateContentConfig_to_vertexr  *  s    !)	+,-.:	KK[+?*@AB	
 
+'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_%tK:J9K'LM	+012>	[345 
+)*+7	{->,?@A@$@A 
+y!-		 		*d;	.JK	
K AHHZ6	OK	
 
+'3	}o.		
 
+z".
Dxj$AB	+()*6		[+;*<=	
 
+-./;	[012 
+*+,8%&[;M:N(O 
+()5		${_,=>? 
+)*+7%&[;L:M(NO	+)*+7%&[;L:M(NO	+'(4	~./	
 
+789E
P  
+,-.:	[/01 
a 	B	
s   
U*)U/c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     x     ! !!tCH~v-.! DcN+! %S#X 678	!
 
#s(^!r    c                    / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      eH   \        TR.\        P                  ! \        VR.4      4       Uu. uF  p\        WTV4      NK  	  up4       \        VR.4      e%   \        VR.\        V \        VR.4      WC4      4       V# u upi rx   ry   rz   r   r   )rE   rF   r{   r|   r}   r   r  r   s   &&&&  r   #_GenerateContentParameters_to_mldevr    s     !)	+y!-				*d;	:; 
+
|$0	 T+
|%DE	
E d{;E	
 
+z".	'[8*5y	
 
	
   ;Cc                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )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.4      eH   \        TR.\        P                  ! \        VR.4      4       Uu. uF  p\        WTV4      NK  	  up4       \        VR.4      e%   \        VR.\        V \        VR.4      WC4      4       V# u upi r  )rE   rF   r{   r|   r}   r~   r  r   s   &&&&  r   $_GenerateContentParameters_to_vertexr    s     !)	+y!-				*d;	:; 
+
|$0	 T+
|%DE	
E t<E	
 
+z".	([8*5y	
 
	
r  c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   (  n     ! !tCH~v-.!DcN+! %S#X 678! 
#s(^	!r    c                 (   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e4   \        TR.\        V R.4       Uu. uF  p\        WCV4      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_idr>  rA  )rE   rF   rk   ri   s   &&&  r   #_GenerateContentResponse_from_mldevr  (  s8   
 !)	+)*+7'(${=N<O*P 
+~&2	 [<.9	
9 "$;?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\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   L  r  r    c                 b   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e)   \        TR.\        V R.4       Uu. uF  qDN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 R.4      e   \        VR.\        V R.4      4       V# u upi )r   r   r  
createTimecreate_timer  r  r  r  r  r  r>  rA  rq   ri   s   &&&  r   $_GenerateContentResponse_from_vertexr  L  sN   
 !)	+)*+7'(${=N<O*P 
+~&2	{\N;<;$;< 
+~&2]OT+~%FG	+'(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\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   p  st     n ntCH~v-.nDcN+n %S#X 678n 
#s(^	nr    c                     / p\        V R .4      e   \        R4      h\        V R.4      e   \        R4      h\        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      e1   \        \        V R.4      4       \        VRR.\        V R.4      4       \        V R.4      e1   \	        \        V R.4      4       \        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   \        VRR.\        V R.4      4       \        V R.4      e   \        V. R O\        V R.4      4       \        V R.4      e   \        V. R!O\        V R.4      4       \        V R.4      e   \        R4      h\        V R.4      e   \        R4      h\        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        R4      hV# )"r   8output_gcs_uri parameter is not supported in Gemini API.r   z9negative_prompt parameter is not supported in Gemini API.r   r   r   r   r   r   r   r   .seed parameter is not supported in Gemini API.r   r   r   r   r   r   r   r   r   r   r   r   z7add_watermark parameter is not supported in Gemini API.r   r  
image_sizesampleImageSizeenhance_promptz8enhance_prompt parameter is not supported in Gemini API.r  r  )rE   r&   rF   r,   r(   rG   s   &&& r   _GenerateImagesConfig_to_mldevr  p  s   
 !)	+()*6
O
PP	+)*+7
C  
+*+,8	}%[-./ 
+'(4	}%[>*+ 
+()*6	'[+,- 
+x ,
E
FF	+-./;-[012 		'[012 
++,-9,[./0 		)*[./0 
+345A	01[678 
+,-.:	)*[/01 
+
|$0	z"[:,' 
+*+,83[-./ 
+456B=[789 
+()5
N
OO	+z".
G
HH	+~&2	()[<.) 
+()*6
O
PP	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c                 z   / 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   \        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   \        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   \        VRR.\        V R.4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        V. RO\        V R.4      4       \        V R.4      e   \        V. RO\        V R.4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        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   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  r  r  enhancePromptr  r  rq   rG   s   &&& r   _GenerateImagesConfig_to_vertexr    sY   
 !)	+()*6	|$[+,- 
+)*+7	'([,-. 
+*+,8	}%[-./ 
+'(4	}%[>*+ 
+()*6	'[+,- 
+x ,v.[6(0KL	+-./;	'[012 
++,-9	)*[./0 
+345A	01[678 
+,-.:	)*[/01 
+
|$0	z"[:,' 
+*+,83[-./ 
+456B=[789 
+()5	~&[?+, 
+z".
Dxj$AB	+~&2	()[<.) 
+()*6	'[+,- 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r   Z  x      tCH~v-. DcN+ %S#X 678	
 
#s(^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R.4      4       \        VR.4      e   \	        \        VR.4      WC4       V# rx   ry   r
  r  r   )rE   rF   r{   r|   r  r   s   &&&& r   "_GenerateImagesParameters_to_mldevr  Z  s     !)	+y!-				*d;	:; 
+z".^X.[8*0MN	+z"."[8*%y 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )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R.4      4       \        VR.4      e   \	        \        VR.4      WC4       V# r  )rE   rF   r{   r|   r  r   s   &&&& r   #_GenerateImagesParameters_to_vertexr  s  s     !)	+y!-				*d;	:; 
+z".^X.[8*0MN	+z".#[8*%y 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r:   r    c                 N   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e4   \        TR.\        V R.4       Uu. uF  p\        WCV4      NK  	  up4       \        V R.4      e%   \        VR.\        \        V R.4      VV4      4       V# u upi r   r   r  r  positivePromptSafetyAttributes!positive_prompt_safety_attributes)rE   rF   _GeneratedImage_from_mldev_SafetyAttributes_from_mldevri   s   &&&  r   "_GenerateImagesResponse_from_mldevr    s    
 !)	+)*+7'(${=N<O*P 
+'3	 [=/:	
: 'tD:	
 
+89:F	,-$?@A	
 
#	
   B"c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r:   r    c                 N   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e4   \        TR.\        V R.4       Uu. uF  p\        WCV4      NK  	  up4       \        V R.4      e%   \        VR.\        \        V R.4      VV4      4       V# u upi r  )rE   rF   r  _SafetyAttributes_from_vertexri   s   &&&  r   #_GenerateImagesResponse_from_vertexr    s    
 !)	+)*+7'(${=N<O*P 
+'3	 [=/:	
: (E:	
 
+89:F	,-%?@A	
 
#	
r  c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     st     d dtCH~v-.dDcN+d %S#X 678d 
#s(^	dr    c                    / p\        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   \        VRR.\        V R.4      4       \        V R	.4      e   \        R
4      h\        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   \        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%   \        VRR.\        \        V R.4      W24      4       \        V R.4      e5   \        TRR.\        V R.4       Uu. uF  p\	        WCV4      NK  	  up4       \        V R.4      e   \        R4      h\        V R.4      e   \        R 4      hV# u upi )!number_of_videosr   r   r   r  fpsz-fps parameter is not supported in Gemini API.duration_secondsdurationSecondsr   r  r   r   
resolutionr   r   pubsub_topicz6pubsub_topic parameter is not supported in Gemini API.r   r   r  r  generate_audioz8generate_audio parameter is not supported in Gemini API.
last_framer  	lastFramer  r  maskz.mask parameter is not supported in Gemini API.compression_qualityz=compression_quality parameter is not supported in Gemini API.)rE   rF   r&   _Image_to_mldev'_VideoGenerationReferenceImage_to_mldevri   s   &&&  r   _GenerateVideosConfig_to_mldevr    s   
 !)	+*+,8	}%[-./ 
+()*6
O
PP	+w+
D
EE	+*+,8	()[-./ 
+x ,
E
FF	+'(4	}%[>*+ 
+~&2	|$[<.) 
++,-9	)*[./0 
+'(4
M
NN	+)*+7	'([,-. 
+()*6	'[+,- 
+()*6
O
PP	+~&2	%|n-y	
 
+*+,8	*+
 [+=*>?		
 @ 4 @		
	 
+x ,
E
FF	+-./;
G  
!	
s   >Ic          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   9  st     x xtCH~v-.xDcN+x %S#X 678x 
#s(^	x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 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   \        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   \        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%   \        VRR.\        \        V R.4      W24      4       \        V R.4      e5   \        TRR.\        V R.4       Uu. uF  p\        WCV4      NK  	  up4       \        V R.4      e%   \        VRR.\	        \        V R.4      W24      4       \        V R.4      e   \        VRR.\        V R.4      4       V# u upi )r  r   r   r   r   r  r  r  r   r   r   r  r   r   r  pubsubTopicr   r   r  r  r  generateAudior  r  r  r  r  r  r  r  )rE   rF   _Image_to_vertex(_VideoGenerationReferenceImage_to_vertex_VideoGenerationMask_to_vertexri   s   &&&  r   _GenerateVideosConfig_to_vertexr  9  sq   
 !)	+*+,8	}%[-./ 
+()*6	|$[+,- 
+w+u-tK%/IJ	+*+,8	()[-./ 
+x ,v.[6(0KL	+'(4	}%[>*+ 
+~&2	|$[<.) 
++,-9	)*[./0 
+'(4	}%[>*+ 
+)*+7	'([,-. 
+()*6	'[+,- 
+()*6	'[+,- 
+~&2	%|n-y	
 
+*+,8	*+
 [+=*>?		
 @ 5 @		
	 
+x ,	 &vh'	
 
+-./;	+,[012 
1	
s   	Kc          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     sn     ( (tCH~v-.(DcN+( %S#X 678( 
#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      4       \        V RR.4      e&   \        VR.\        \        V RR.4      VV4      4       \        V RR.4      e&   \        VR.\        \        V RR.4      VV4      4       V# )r   r9  doneerrorrc  generateVideoResponseresult)rE   rF   "_GenerateVideosResponse_from_mldevrG   s   &&& r   #_GenerateVideosOperation_from_mldevr    s-   
 !)	+x ,VHd;9:	+
|$0ZL${ZL"AB	+x ,VHd;9:	+y!-WItK';<	+
$;<=I	*z+BCD	
 
+
$;<=I	
*z+BCD	
 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     sn     $ $tCH~v-.$DcN+$ %S#X 678$ 
#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      4       \        V R.4      e$   \        VR.\        \        V R.4      W24      4       \        V R.4      e$   \        VR.\        \        V R.4      W24      4       V# )r   r9  r  r   rc  r  )rE   rF   #_GenerateVideosResponse_from_vertexrG   s   &&& r   $_GenerateVideosOperation_from_vertexr    s   
 !)	+x ,VHd;9:	+
|$0ZL${ZL"AB	+x ,VHd;9:	+y!-WItK';<	+
|$0	+zl+Y	
 
+
|$0	
+zl+Y	
 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )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.4      e   \        VRR.\        VR.4      4       \        VR.4      e%   \        VRR.\	        \        VR.4      WC4      4       \        VR.4      e%   \        VRR.\        \        VR.4      WC4      4       \        VR.4      e   \        \        VR.4      WC4       \        VR.4      e   \        \        VR.4      WC4       V# rx   ry   r
  r  imagevideosourcer   )rE   rF   r{   r|   r  _Video_to_mldev_GenerateVideosSource_to_mldevr  r   s   &&&& r   "_GenerateVideosParameters_to_mldevr  	  s/    !)	+y!-				*d;	:; 
+z".^X.[8*0MN	+y!-	![7)4iM 
+y!-	![7)4iM 
+z"."[8*%y 
+z"."[8*%y 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r   2	  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R.4      4       \        VR.4      e%   \        VRR.\	        \        VR.4      WC4      4       \        VR.4      e%   \        VRR.\        \        VR.4      WC4      4       \        VR.4      e   \        \        VR.4      WC4       \        VR.4      e   \        \        VR.4      WC4       V# r  )rE   rF   r{   r|   r  _Video_to_vertex_GenerateVideosSource_to_vertexr  r   s   &&&& r   #_GenerateVideosParameters_to_vertexr  2	  s/    !)	+y!-				*d;	:; 
+z".^X.[8*0MN	+y!-	!kG95yN 
+y!-	!kG95yN 
+z".#[8*%y 
+z".#[8*%y 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   ^	  r  r    c                 8   / p\        V R .4      e4   \        TR.\        V R .4       Uu. uF  p\        WCV4      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# u upi )generatedSamplesgenerated_videosraiMediaFilteredCountrai_media_filtered_countraiMediaFilteredReasonsrai_media_filtered_reasons)rE   rF   _GeneratedVideo_from_mldevri   s   &&&  r   r  r  ^	  s    
 !)	+*+,8	 [+=*>?	
? 'tD?	
 
+/01=	#$[234 
+123?	%&[456 
)	
   Bc          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   	  r  r    c                 8   / p\        V R .4      e4   \        TR.\        V R .4       Uu. uF  p\        WCV4      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# u upi )videosr  r  r  r  r  )rE   rF   _GeneratedVideo_from_vertexri   s   &&&  r   r  r  	  s    
 !)	+z".	 [8*5	
5 (E5	
 
+/01=	#$[234 
+123?	%&[456 
)	
r   c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   	  n      tCH~v-.DcN+ %S#X 678 
#s(^	r    c           
      (   / p\        V R .4      e   \        VRR .\        V R .4      4       \        V R.4      e%   \        VRR.\        \        V R.4      W24      4       \        V R.4      e%   \        VRR.\        \        V R.4      W24      4       V# r
  r  r  r  )rE   rF   r  r  rG   s   &&& r   r  r  	  s    
 !)	+z".14hZ3P 
+y!-	![7)4iM 
+y!-	![7)4iM 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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      W24      4       \        V R.4      e%   \        VRR.\        \        V R.4      W24      4       V# r(  )rE   rF   r  r  rG   s   &&& r   r  r  	  s    
 !)	+z".14hZ3P 
+y!-	!kG95yN 
+y!-	!kG95yN 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   	  r   r    c           
          / p\        V R .4      e$   \        VR.\        \        V R .4      W24      4       \        V R.4      e)   \        TR.\        V R.4       Uu. uF  qDNK  	  up4       V# u upi )_selfr  r   )rE   rF   _Image_from_vertexri   s   &&&  r   _GeneratedImageMask_from_vertexr/  	  s    
 !)	+y!-	wi()	
 
+z".H:kH:1NO1N1NO 
  Ps   
A.c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   	  n      tCH~v-.DcN+ %S#X 678 
#s(^	r    c           
      "   / p\        V R .4      e$   \        VR.\        \        V R .4      W24      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R .4      e$   \        VR.\        \        V R .4      W24      4       V# )r-  r  raiFilteredReasonrai_filtered_reasonsafety_attributes)rE   rF   _Image_from_mldevr  rG   s   &&& r   r  r  	  s    
 !)	+y!-		${WI6	O 
++,-9	[./0 
+y!-	$wi()	
 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   
  sn     " "tCH~v-."DcN+" %S#X 678" 
#s(^	"r    c           
      r   / p\        V R .4      e$   \        VR.\        \        V R .4      W24      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R .4      e$   \        VR.\        \        V R .4      W24      4       \        V R.4      e   \        VR.\        V R.4      4       V# )r-  r  r3  r4  r5  r
  enhanced_prompt)rE   rF   r.  r  rG   s   &&& r   r  r  
  s    
 !)	+y!-		wi()	
 
++,-9	[./0 
+y!-	%wi()	
 
+z".&'kH:)FG	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   4
  rm   r    c           
      n    / p\        V R .4      e$   \        VR .\        \        V R .4      W24      4       V# )r  )rE   rF   _Video_from_mldevrG   s   &&& r   r  r  4
  sC    
 !)	+y!-		${WI6	O 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   D
  rK   r    c           
      n    / p\        V R .4      e$   \        VR.\        \        V R .4      W24      4       V# )r-  r  )rE   rF   _Video_from_vertexrG   s   &&& r   r$  r$  D
  sF    
 !)	+y!-		wi()	
 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   V
  st     o otCH~v-.oDcN+o %S#X 678o 
#s(^	o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      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.\        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   \        R*4      hV# )+r  r  rd  re  r  r  ro  rp  enable_affective_dialogenableAffectiveDialogrz  r{  rw  rq  rr  r  r  rx  ry  ru  rv  r|  r}  r  r  r~  r  r  r  r   r  r  rs  rt  rj  r  r  rm  rn  rk  rl  r  r  rD   rG   s   &&& r   r   r   V
  s   
 !)	+012>	[345 
+./0<	[123 
+)*+7%&[;L:M(NO	+)*+7%&[;L:M(NO	+123?	 ![456 
++,-9	[./0 
+
|$0ZL${ZL"AB	++,-9%&[;N:O(P 
+*+,8%&[;M:N(O 
+*+,8%&[;M:N(O 
++,-9	[./0 
+,-.:	[/01 
+-./;	[012 
+)*+7%&[;L:M(NO	+()*6_%tK:J9K'LM	+x ,VHd;9:	+()5^$d;8I&JK	+()*6_%tK:J9K'LM	+'3]OT+%GH	+)*+7%&[;L:M(NO	+y!-VHd;	:;	+y!-VHd;	:;	+789E
P  
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )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   _GetModelParameters_to_mldevrF  
  r   r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )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   _GetModelParameters_to_vertexrI  
  r   r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   
  r   r    c           
          / p\        V R .4      e$   \        VR.\        \        V R .4      W24      4       \        V R.4      e   \        VR.\        V R.4      4       V# )auth_config
authConfigenable_widgetenableWidget)rE   rF   rI   rG   s   &&& r   _GoogleMaps_to_mldevrP  
  so    
 !)	+'3	}o.		
 
+()5^$d;8I&JK	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   
  n      tCH~v-.DcN+ %S#X 678 
#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   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       V# )search_typessearchTypesblocking_confidencez=blocking_confidence parameter is not supported in Gemini API.exclude_domainsz9exclude_domains parameter is not supported in Gemini API.time_range_filtertimeRangeFilterrD   rG   s   &&& r   _GoogleSearch_to_mldevrZ  
  s    
 !)	+'(4]OT+7G%HI	+-./;
G  
+)*+7
C  
++,-9%&[;N:O(P 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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      4       \        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   \        R4      h\        V R.4      e   \        R4      hV# )r   r   r  	imageSizer   z;person_generation parameter is not supported in Gemini API.prominent_peoplez:prominent_people parameter is not supported in Gemini API.r   z:output_mime_type parameter is not supported in Gemini API.r   zDoutput_compression_quality parameter is not supported in Gemini API.image_output_optionsz>image_output_options parameter is not supported in Gemini API.rD   rG   s   &&& r   r  r    s   
 !)	+'(4]OT+7G%HI	+~&2[M4l^#DE	++,-9
E  
+*+,8
D  
+*+,8
D  
+456B
N  
+./0<
H  
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   B  sn     - -tCH~v-.-DcN+- %S#X 678- 
#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      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   \        VR	.\        V R.4      4       V# )r   r   r  r]  r   r   r^  prominentPeopler   imageOutputOptionsrQ   r   r  r_  rq   rG   s   &&& r   r  r  B  s[   
 !)	+'(4]OT+7G%HI	+~&2[M4l^#DE	++,-9	[./0 
+*+,8%&[;M:N(O 
+*+,8	z*[-./ 
+456B	34[789 
+./0<	[123 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   r  n      tCH~v-.DcN+ %S#X 678 
#s(^	r    c           
          / p\        V R .4      e.   \        VR.\        P                  ! \        V R .4      4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )bytesBase64Encodedimage_bytesrQ   rP   rE   rF   base_tt_bytesrG   s   &&& r   r6  r6  r  so    
 !)	+,-.:	tK*>)?@A 
+
|$0[M4j\#BC	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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.\        P                  ! \        V R.4      4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )gcsUrigcs_urirg  rh  rQ   rP   ri  rG   s   &&& r   r.  r.    s    
 !)	+z".YKkH:!>?	+,-.:	tK*>)?@A 
+
|$0[M4j\#BC	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c           
         / p\        V R .4      e   \        R4      h\        V R.4      e.   \        VR.\        P                  ! \        V R.4      4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )ro  z1gcs_uri parameter is not supported in Gemini API.rh  rg  rP   rQ   )rE   r&   rF   rj  rk  rG   s   &&& r   r  r    s    
 !)	+	{#/
H
II	+'3	tK-9: 
+}%1ZL${[M"BC	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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.\        P                  ! \        V R.4      4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )ro  rn  rh  rg  rP   rQ   ri  rG   s   &&& r   r  r    s    
 !)	+	{#/XJ[9+ >?	+'3	tK-9: 
+}%1ZL${[M"BC	r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     x      tCH~v-. DcN+ %S#X 678	
 
#s(^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R.4      e0   \        VRR.\        P                  ! V \        VR.4      4      4       V# 		page_size_querypageSize
page_token	pageTokenfilter
query_basery   
models_urlrE   rF   r{   t_models_urlr   s   &&&& r   _ListModelsConfig_to_mldevr         !)	+}%1*-tK+/O 
+~&2	;[<.) 
+z".8,d;
.KL	+~&2		z4l^#DE 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     ru  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R.4      e0   \        VRR.\        P                  ! V \        VR.4      4      4       V# rw  r  r   s   &&&& r   _ListModelsConfig_to_vertexr    r  r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r   
  x      tCH~v-. DcN+ %S#X 678	
 
#s(^r    c                 X    / p\        VR .4      e   \        V \        VR .4      WC4       V# r   )rE   r  r   s   &&&& r   _ListModelsParameters_to_mldevr  
  s8     !)	+z".Dxj19 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     r  r    c                 X    / p\        VR .4      e   \        V \        VR .4      WC4       V# r  )rE   r  r   s   &&&& r   _ListModelsParameters_to_vertexr    s8     !)	+z".Dxj19 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   (  rR  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      eH   \        TR.\        P                  ! \        V R.4      4       Uu. uF  p\	        WCV4      NK  	  up4       V# u upi r   r   nextPageTokennext_page_tokenr-  models)rE   rF   r{   t_extract_models_Model_from_mldevri   s   &&&  r   _ListModelsResponse_from_mldevr  (  s    
 !)	+)*+7'(${=N<O*P 
+()5&'kO;L)MN	+y!-	
 **4gY+GH	
H d{;H	
 
	
   B+c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   C  rR  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      eH   \        TR.\        P                  ! \        V R.4      4       Uu. uF  p\	        WCV4      NK  	  up4       V# u upi r  )rE   rF   r{   r  _Model_from_vertexri   s   &&&  r   _ListModelsResponse_from_vertexr  C  s    
 !)	+)*+7'(${=N<O*P 
+()5&'kO;L)MN	+y!-	
 **4gY+GH	
H t<H	
 
	
r  c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   ^  re  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# )	mask_modemaskModesegmentation_classesmaskClassesmask_dilationdilationrq   rG   s   &&& r   _MaskReferenceConfig_to_vertexr  ^  s    
 !)	+}%1ZL${[M"BC	+./0<M?D7M6N$O 
+()5ZL${_4E"FG	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   r  sn     7 7tCH~v-.7DcN+7 %S#X 6787 
#s(^	7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      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   displayNamerN   r`  versionr-  tuned_model_infoinputTokenLimitinput_token_limitoutputTokenLimitoutput_token_limitsupportedGenerationMethodssupported_actionsrj  maxTemperaturemax_temperaturerl  rk  rn  rm  thinkingrq   rG   s   &&& r   r  r  r  s)   
 !)	+x ,VHd;9:	+'3^$d;&HI	+'3]OT+%GH	+	{#/YKkI;!?@	+y!-'(${WI*FG	+)*+7'(${=N<O*P 
+*+,8	[-./ 
+456B	[789 
+'3]OT+%GH	+()*6&'k<L;M)NO	+x ,WItK&:;	+x ,WItK&:;	+
|$0ZL${ZL"AB	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     rT   r    c                 T   / 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.4      e4   \        TR.\        V R.4       Uu. uF  p\        WCV4      NK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       \        V R	.4      e$   \        VR
.\        \        V R	.4      W24      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e)   \        TR.\        V R.4       Uu. uF  qDNK  	  up4       V# u upi u upi )r   r  rN   r`  	versionIdr  deployedModels	endpointsr   r-  r  defaultCheckpointIddefault_checkpoint_idcheckpoints)rE   rF   rI  _TunedModelInfo_from_vertexri   s   &&&  r   r  r    s   
 !)	+x ,VHd;9:	+'3^$d;&HI	+'3]OT+%GH	+}%1YKkK=!AB	+()*6	 [+;*<=	
= "$;?=	
 
+z".XJ[8* =>	+y!-	#wi()	
 
+-./;	 ![012 
+'3	{]O<=<$<= 
A	
: 	>s   	F 
F%c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     st     M MtCH~v-.MDcN+M %S#X 678M 
#s(^	Mr    c           
      V   / 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      W24      4       \        V R.4      e$   \        VR	.\        \        V R.4      W24      4       \        V R
.4      e   \        VR.\        V R
.4      4       \        V R.4      e$   \        VR.\	        \        V R.4      W24      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  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	tool_calltoolCalltool_responsetoolResponse)rE   rF   rN  rU  rR   rG   s   &&& r   r   r     sp   
 !)	+*+,8%&[;M:N(O 
+/01=	[234 
+)*+7%&[;L:M(NO	+}%1	{m,i	
 
+()5	/0)	
 
++,-9	[./0 
+'3	}o.		
 
+x ,VHd;9:	+	{#/YKkI;!?@	++,-9	[./0 
+()*6_%tK:J9K'LM	+}%1ZL${[M"BC	+()5^$d;8I&JK	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   5  sn     ; ;tCH~v-.;DcN+; %S#X 678; 
#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      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   \        R4      h\        V R.4      e   \        R4      hV# )r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  z2tool_call parameter is not supported in Vertex AI.r  z6tool_response parameter is not supported in Vertex AI.rD   rG   s   &&& r   r   r   5  s%   
 !)	+*+,8%&[;M:N(O 
+/01=	[234 
+)*+7%&[;L:M(NO	+}%1ZL${[M"BC	+()5^$d;8I&JK	++,-9	[./0 
+'3\ND}o$FG	+x ,VHd;9:	+	{#/YKkI;!?@	++,-9	[./0 
+()*6_%tK:J9K'LM	+}%1
I
JJ	+()5
M
NN	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   s  rK   r    c           
      n    / p\        V R .4      e$   \        VR.\        \        V R .4      W24      4       V# )product_imager  rE   rF   r  rG   s   &&& r   _ProductImage_to_vertexr  s  sH    
 !)	+()5		/0)	
 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     t     L LtCH~v-.LDcN+L %S#X 678L 
#s(^	L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 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   \        VRR.\        V R.4      4       \        V R.4      e   \        V. RO\        V R.4      4       \        V R.4      e   \        V. RO\        V R.4      4       \        V R.4      e   \        VRR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r  r  r   r  r  rq   rG   s   &&& r   _RecontextImageConfig_to_vertexr    s#   
 !)	+*+,8	}%[-./ 
+~&2	{#[<.) 
+()*6	|$[+,- 
+x ,v.[6(0KL	+-./;	'[012 
++,-9	)*[./0 
+()5	~&[?+, 
+*+,83[-./ 
+456B=[789 
+()*6	'[+,- 
+z".
Dxj$AB	r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     rv   r    c                    / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      e   \	        \        VR.4      WC4       \        VR.4      e   \        \        VR.4      WC4       V# rx   ry   r  r   )rE   rF   r{   r|   _RecontextImageSource_to_vertexr  r   s   &&&& r   #_RecontextImageParameters_to_vertexr    s     !)	+y!-				*d;	:; 
+z".#[8*%y 
+z".#[8*%y 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c                     / p\        V R .4      e4   \        TR.\        V R .4       Uu. uF  p\        WCV4      NK  	  up4       V# u upi )r  r  r  ri   s   &&&  r   #_RecontextImageResponse_from_vertexr    sc    
 !)	+'3	 [=/:	
: (E:	
 
	
   Ac          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r  r    c                 R   / p\        V R .4      e   \        VRR .\        V R .4      4       \        V R.4      e%   \        V. RO\        \        V R.4      W24      4       \        V R.4      e5   \        TRR.\        V R.4       Uu. uF  p\        WCV4      NK  	  up4       V# u upi )r
  r  person_imageproduct_imagesproductImages)r  personImager  )rE   rF   r  r  ri   s   &&&  r   r  r    s    
 !)	+z".14hZ3P 
+'(40~./	
 
+()*6	) [+;*<=	
= $D[A=	
 
	
s   B$c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   #  sn     5 5tCH~v-.5DcN+5 %S#X 6785 
#s(^	5r    c           
      v   / p\        V R .4      e$   \        VR.\        \        V R .4      W24      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      W24      4       \        V R.4      e$   \        VR	.\	        \        V R.4      W24      4       \        V R
.4      e   \        VR.\        V R
.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )reference_imagereferenceImagereference_idreferenceIdreference_typereferenceTypemask_image_configmaskImageConfigcontrol_image_configcontrolImageConfigstyle_image_configstyleImageConfigsubject_image_configsubjectImageConfig)rE   rF   r  r  r   rG   s   &&& r   r  r  #  sz   
 !)	+)*+7	012I	
 
+'(4]OT+7G%HI	+()*6_%tK:J9K'LM	++,-9	&234i	
 
+./0<	)567	
 
+,-.:	[/01 
+./0<	[123 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   [  r   r    c           	         / p\        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.4      e   \        VR.\        V R.4      4       V# safetyAttributes
categoriesscorescontentTypecontent_typerq   rG   s   &&& r   r  r  [      
 !)	+*L9:F	[-|<= 
+*H56BH:tK2Dh1OP 
+'3^$d;&HI	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   s  r   r    c           	         / p\        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.4      e   \        VR.\        V R.4      4       V# r  rq   rG   s   &&& r   r  r  s  r  r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     rK   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.	thresholdrD   rG   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,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     rm   r    c           
      n    / p\        V R .4      e$   \        VR .\        \        V R .4      W24      4       V# )r  r  rG   s   &&& r   _ScribbleImage_to_vertexr    sC    
 !)	+y!-		kG95yN 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     sn     ) )tCH~v-.)DcN+) %S#X 678) 
#s(^	)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 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
.\        V R
.4      4       V# )r[  r   max_predictionsmaxPredictionsconfidence_thresholdconfidenceThresholdr  maskDilationbinary_color_thresholdbinaryColorThresholdr   rq   rG   s   &&& r   _SegmentImageConfig_to_vertexr    s/   
 !)	+x ,v.[6(0KL	+)*+7	'([,-. 
+./0<	,-[123 
+()5	~&[?+, 
+012>	-.[345 
+z".
Dxj$AB	r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r     rv   r    c                    / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      e   \	        \        VR.4      WC4       \        VR.4      e   \        \        VR.4      WC4       V# r  )rE   rF   r{   r|   _SegmentImageSource_to_vertexr  r   s   &&&& r   !_SegmentImageParameters_to_vertexr    s     !)	+y!-				*d;	:; 
+z".![8*%y 
+z".![8*%y 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c                     / p\        V R .4      e4   \        TR.\        V R .4       Uu. uF  p\        WCV4      NK  	  up4       V# u upi )r  generated_masks)rE   rF   r/  ri   s   &&&  r   !_SegmentImageResponse_from_vertexr#    sc    
 !)	+'3	 [=/:	
: ,D[I:	
 
	
r  c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     sn      tCH~v-.DcN+ %S#X 678 
#s(^	r    c           
      (   / p\        V R .4      e   \        VRR .\        V R .4      4       \        V R.4      e%   \        VRR.\        \        V R.4      W24      4       \        V R.4      e%   \        VRR.\        \        V R.4      W24      4       V# )r
  r  r  scribble_imagescribble)rE   rF   r  r  rG   s   &&& r   r  r    s    
 !)	+z".14hZ3P 
+y!-	!kG95yN 
+()*6	$ /019	
 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   %  r1  r    c           
         / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e%   \        VR.\        \        V R.4      VV4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )retrieval_configretrievalConfigfunction_calling_configfunctionCallingConfig$include_server_side_tool_invocations includeServerSideToolInvocations)rE   rF   r]  rG   s   &&& r   r  r  %  s    
 !)	+*+,8%&[;M:N(O 
+123?	 !'89:	
 
+>?@L	+,[ABC 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   E  rR  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# )r*  r+  r,  r-  r.  zMinclude_server_side_tool_invocations parameter is not supported in Vertex AI.rD   rG   s   &&& r   r  r  E  s    
 !)	+*+,8%&[;M:N(O 
+123?	 ![456 
+>?@L
	 
 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   `  st     F FtCH~v-.FDcN+F %S#X 678F 
#s(^	F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.4      e$   \        VR.\        \        V R.4      W24      4       \        V R.4      e$   \        VR	.\	        \        V R.4      W24      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  qDNK  	  up4       \        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 R.4      e)   \        TR.\        V R.4       Uu. uF  qDNK  	  up4       V# u upi u upi )	retrievalz3retrieval parameter is not supported in Gemini API.computer_usecomputerUsefile_search
fileSearchgoogle_searchgoogleSearchgoogle_maps
googleMapscode_executioncodeExecutionenterprise_web_searchz?enterprise_web_search parameter is not supported in Gemini API.function_declarationsfunctionDeclarationsgoogle_search_retrievalgoogleSearchRetrievalparallel_ai_searchz<parallel_ai_search parameter is not supported in Gemini API.url_context
urlContextmcp_servers
mcpServers)rE   r&   rF   rZ  rP  ri   s   &&&  r   r  r  `  s>   
 !)	+}%1
J
KK	+'(4]OT+7G%HI	+'3\ND}o$FG	+()5	/0)	
 
+'3	}o.		
 
+()*6_%tK:J9K'LM	+/01=
I  
+/01=	 {-D,EFGF$FG 
+123?	 ![456 
+,-.:
F  
+'3\ND}o$FG	+'3	{]O<=<$<= 
3 	H, 	>s   9
G-
G2c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     sn     = =tCH~v-.=DcN+= %S#X 678= 
#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 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      e4   \        TR.\        V R.4       Uu. uF  p\        WCV4      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   \        R4      hV# u upi )r4  r5  r6  r7  z4file_search parameter is not supported in Vertex AI.r9  r:  r;  r<  r=  r>  r?  enterpriseWebSearchr@  rA  rB  rC  rD  parallelAiSearchrE  rF  rG  z4mcp_servers parameter is not supported in Vertex AI.)rE   rF   r&   rg  ri   s   &&&  r   r   r     s!   
 !)	+}%1[M4k]#CD	+'(4]OT+7G%HI	+'3
K
LL	+()5^$d;8I&JK	+'3\ND}o$FG	+()*6_%tK:J9K'LM	+/01=	[234 
+/01=	  [+B*CD	
D +4KHD	
 
+123?	 ![456 
+,-.:	[/01 
+'3\ND}o$FG	+'3
K
LL	5	
s   3G#c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     rW  r    c           	          / p\        V R R.4       e   \        VR.\        V R 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   z&google-vertex-llm-tuning-base-model-id
base_modelr  r  
updateTimeupdate_timerq   rG   s   &&& r   r  r    s    
 !)
;#KLM 		[8%MNO 
+~&2]OT+~%FG	+~&2]OT+~%FG	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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      4       \        V R.4      e   \        VR.\        V R.4      4       V# rN   r  r`  r  r  rq   rG   s   &&& r   _UpdateModelConfig_to_mldevrU        
 !)	+'(4kN;K)LM	+'3kM?)KL	+/01=	[234 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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      4       \        V R.4      e   \        VR.\        V R.4      4       V# rT  rq   rG   s   &&& r   _UpdateModelConfig_to_vertexrY    rV  r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r   0  x      tCH~v-. DcN+ %S#X 678	
 
#s(^r    c                     / p\        VR .4      e0   \        VRR.\        P                  ! V \        VR .4      4      4       \        VR.4      e   \	        \        VR.4      WC4       V# )rx   ry   r   r   )rE   rF   r{   r|   rU  r   s   &&&& r   _UpdateModelParameters_to_mldevr]  0  sq     !)	+y!-				*d;	:; 
+z".[8*%y 
r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )r   s   "r   r   r   F  r[  r    c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      e   \	        \        VR.4      WC4       V# )rx   ry   r   )rE   rF   r{   r|   rY  r   s   &&&& r    _UpdateModelParameters_to_vertexr`  F  sq     !)	+y!-				*d;	:; 
+z". [8*%y 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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 R.4      e   \        VRR.\        V R.4      4       \        V R	.4      e   \        V. RO\        V R	.4      4       \        V R
.4      e   \        V. RO\        V R
.4      4       \        V R.4      e   \        V. RO\        V R.4      4       \        V R.4      e   \        V. RO\        V R.4      4       \        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   r   r   r   r   r   r   r   r   r   r   enhance_input_imageimage_preservation_factorr   r   r   r[  r  r  )r   upscaleConfigenhanceInputImage)r   re  imagePreservationFactorrq   rG   s   &&& r    _UpscaleImageAPIConfig_to_vertexrh  \  s    
 !)	+()*6	|$[+,- 
+-./;	'[012 
++,-9	)*[./0 
+,-.:	)*[/01 
+*+,83[-./ 
+456B=[789 
+-./;<[012 
+345AB[678 
+z".
Dxj$AB	+*+,8	}%[-./ 
+x ,v.[6(0KL	r    c                L   V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        \        \        3,          \
        3,          ,          R\        \        \        3,          /# rs   ru   )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.4      e%   \        VRR.\	        \        VR.4      WC4      4       \        VR.4      e   \        V. RO\        VR.4      4       \        VR.4      e   \        \        VR.4      WC4       V# )rx   ry   r  r  upscale_factorr   )r   re  upscaleFactor)rE   rF   r{   r|   r  rh  r   s   &&&& r   $_UpscaleImageAPIParameters_to_vertexrm    s     !)	+y!-				*d;	:; 
+y!-	!kG95yN 
+()*68[+,- 
+z".$[8*%y 
r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c                     / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e4   \        TR.\        V R.4       Uu. uF  p\        WCV4      NK  	  up4       V# u upi r  r  ri   s   &&&  r   !_UpscaleImageResponse_from_vertexrp    r  r  c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c           
          / p\        V R .4      e$   \        VR.\        \        V R .4      W24      4       \        V R.4      e   \        VR.\        V R.4      4       V# )r  r-  r  r  r  rG   s   &&& r   r  r    si    
 !)	+y!-		kG95yN 
+}%1ZL${[M"BC	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c           
          / p\        V R .4      e$   \        VR .\        \        V R .4      W24      4       \        V R.4      e0   \        \        V R.4      4       \        VR.\        V R.4      4       V# r  r  r  )rE   rF   r  r0   rG   s   &&& r   r  r    s    
 !)	+y!-		[7)4iM 
+()*68[+,- 	_%tK:J9K'LM	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r     r   r    c           
          / p\        V R .4      e$   \        VR .\        \        V R .4      W24      4       \        V R.4      e   \        VR.\        V R.4      4       V# ru  r  rG   s   &&& r   r  r    sn    
 !)	+y!-		kG95yN 
+()*6_%tK:J9K'LM	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )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.\        P                  ! \        V R.4      4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )uriencodedVideovideo_bytesencodingrP   ri  rG   s   &&& r   r<  r<  #  s    
 !)	+w+UGT+w78	+'(4	tK.)9:; 
+
|$0[M4j\#BC	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   9  r   r    c           
      "   / p\        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# )rn  rz  rg  r|  rQ   rP   ri  rG   s   &&& r   r?  r?  9  s    
 !)	+z".UGT+z:;	+,-.:	tK*>)?@A 
+
|$0[M4j\#BC	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   O  r   r    c           
      "   / p\        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# )rz  r|  r{  rP   r}  ri  rG   s   &&& r   r  r  O  s    
 !)	+w+UGT+w78	+'3	tK-9: 
+}%1ZL${[M"BC	r    c          
      @   V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\
        \         \        \        \        3,          \        3,          ,          R\        \        \        3,          /# r2   r6   )r   s   "r   r   r   e  r   r    c           
      "   / p\        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# )rz  rn  r|  rg  rP   rQ   ri  rG   s   &&& r   r  r  e  s    
 !)	+w+XJ[5' :;	+'3	tK-9: 
+}%1ZL${[M"BC	r    c            
         a  ] tR tRt o RR/V 3R lR lltRR/V 3R lR lltRRR	R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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R$RR%R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R0 lltRR/V 3R1 lR2 lltRR/V 3R3 lR4 lltR#RR$RR%RR&RRR/V 3R5 lR6 lltRR/V 3R7 lR8 lltR9tV tR# ):Modelsi{  r   Nc                   < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[P                  /# r   rx   rz   r   r   r8   r   r   ContentListUnionContentListUnionDictr   GenerateContentConfigOrDictGenerateContentResponse)r   __classdict__s   "r   r   Models.__annotate__}  b     O O O e,,e.H.HHI	O
 u889O $$Or    c                  \         P                  ! VVVR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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eH   \!        VRR4      '       d5   \         P"                  ! V
R	7      pV P                  P%                  V4       V# V
P&                  '       g   / M\(        P*                  ! V
P&                  4      pV P                  P                  '       d   \-        VRV4      pV P                  P                  '       g   \/        VRV4      p\         P"                  P1                  WP3                  4       R
7      p\         P4                  ! V
P6                  R7      Vn        V P                  P%                  V4       V# rx   rz   r   Nry   z{model}:generateContentry  ?r   postshould_return_http_response)r   rc  kwargsheaders)r   _GenerateContentParameters_api_clientvertexair  r@  
format_mapr  r	   popr   http_optionsr   convert_to_dictencode_unserializable_typesrequestgetattrr  _verify_responsebodyjsonloadsr  r  _from_response
model_dumpHttpResponser  r   selfrx   rz   r   parameter_modelrequest_dictrequest_url_dictpathquery_paramsr  rc  return_valueresponse_dicts   &$$$         r   _generate_contentModels._generate_content}  su    66O    9


OT?l &))&1	(334DE(8


OT?l &))&1	(334DE(##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH g-t  22XNl
''5&mmmBHMM1JM   :
m $$$9
m 00??'A'A'C @ L &+%7%7  &L" 	%%l3r    c          	         < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[S[P                  ,          /# r  )	r8   r   r   r  r  r   r  r   r  )r   r  s   "r   r   r    sg     T T T e,,e.H.HHI	T
 u889T --.Tr    c             #  V  "   \         P                  ! VVVR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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e   \        VRR4      '       d   \!        R4      hV P                  P#                  R	WuV	4       F  p
V
P$                  '       g   / M\&        P(                  ! V
P$                  4      pV P                  P                  '       d   \+        VRV4      pV P                  P                  '       g   \-        VRV4      p\         P.                  P1                  WP3                  4       R
7      p\         P4                  ! V
P6                  R7      Vn        V P                  P;                  V4       Vx  K  	  R# 5i)r  Nry   %{model}:streamGenerateContent?alt=ssery  r  r   r  FAccessing the raw HTTP response is not supported in streaming methods.r  r  r  )r   r  r  r  r  r@  r  r  r	   r  r   r  r   r  r  r  r&   request_streamedr  r  r  r  r  r  r  r  r  r  r   r  r  rx   rz   r   r  r  r  r  r  r  rc  r  r  s   &$$$         r   _generate_content_streamModels._generate_content_stream  so     66O    9


OT?l &))&1	6AA
 78


OT?l &))&1	6AA
 7##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DLg-t   
 $$55L !)b4::hmm3Lm				"	"	"<4
 &&&;4
 22AA )C)C)E B l (-'9'9""(l$ ''5/s   CJ)DJ):(J)#BJ)rz   rV   r'  c                6  < V ^8  d   QhRS[ RS[S[S[P                  S[P
                  3,          ,          RS[S[S[P                  S[P                  3,          ,          RS[S[P                  ,          RS[S[P                  ,          RS[P                  /# r   rx   rz   rV   r'  r   r   r8   r   r   r   r  r  ContentUnionContentUnionDictEmbeddingApiTypeEmbedContentConfigOrDictEmbedContentResponse)r   r  s   "r   r   r  $       h h h 
&&(B(BB
C	h 
""E$:$::
;h #5#9#9:h u556h !!hr    c               L   \         P                  ! VVVVVR7      pV P                  P                  '       dq   \	        V P                  VRV4      pVP                  R4      p\        P                  ! VP                  4      '       d   RMRp	V'       d   V	P                  V4      p
MHT	p
ME\        V P                  VR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
WV4      pVP&                  '       g   / M\(        P*                  ! VP&                  4      pV P                  P                  '       d   \-        VRV4      pV P                  P                  '       g   \/        VRV4      p\         P0                  P3                  WP5                  4       R7      p\         P6                  ! VP8                  R7      Vn        V P                  P=                  V4       V# )a  Calculates embeddings for the given contents. Only text is supported.

Args:
  model (str): The model to use.
  contents (list[Content]): The contents to embed.
  config (EmbedContentConfig): Optional configuration for embeddings.

Usage:

.. code-block:: python

  embeddings = client.models.embed_content(
      model= 'text-embedding-004',
      contents=[
          'What is your name?',
          'What is your favorite color?',
      ],
      config={
          'output_dimensionality': 64
      },
  )
rx   rz   rV   r'  r   Nry   {model}:embedContent{model}:predict{model}:batchEmbedContentsry  r  r   r  r  r  )r   _EmbedContentParametersPrivater  r  r5  r@  r{   t_is_vertex_embed_content_modelrx   r  r2  r	   r  r   r  r   r  r  r  r  r  r  rC  r:  r  r  r  r  r  r   r  r  rx   rz   rV   r'  r   r  r  r  endpoint_urlr  r  r  rc  r  r  s   &$$$$$          r   _embed_contentModels._embed_content$  sU   H ::-O    =


OT?l &))&1/0/P/PQ`QfQf/g/g+m~l	&&'78<


OT?l &))&1	+667GH+##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   7
m $$$6
m --<<'A'A'C = L &+%7%7  &L" 	%%l3r    c                j   < V ^8  d   QhRS[ RS[ RS[S[P                  ,          RS[P                  /# r   rx   r
  r   r   r8   r   r   GenerateImagesConfigOrDictGenerateImagesResponse)r   r  s   "r   r   r    L     J J J 	J
 u778J ##Jr    c                  \         P                  ! VVVR7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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RV4      pV P                  P                  '       g   \)        VRV4      p\         P*                  P-                  WP/                  4       R	7      p\         P0                  ! V
P2                  R
7      Vn        V P                  P7                  V4       V# )z%Private method for generating images.rx   r
  r   Nry   r  ry  r  r   r  r  r  )r   _GenerateImagesParametersr  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  rx   r
  r   r  r  r  r  r  r  rc  r  r  s   &$$$         r   _generate_imagesModels._generate_images  s.    55O    8


OT?l &))&1	 ++,<= 7


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   9
m $$$8
m //>>'A'A'C ? L &+%7%7  &L" 	%%l3r    c          
         < V ^8  d   QhRS[ RS[ RS[S[P                  ,          RS[S[P
                  ,          RS[P                  /# r   rx   r
  r  r   r   r8   listr   _ReferenceImageAPIOrDictr   EditImageConfigOrDictEditImageResponse)r   r  s   "r   r   r    b     @ @ @ 	@
 U;;<@ u223@ @r    c               .   \         P                  ! VVVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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	WV
4      pVP                   '       g   / M\"        P$                  ! VP                   4      pV P                  P                  '       d   \'        VRV4      p\         P(                  P+                  WP-                  4       R
7      p\         P.                  ! VP0                  R7      Vn        V P                  P5                  V4       V# )z$Private method for editing an image.rx   r
  r  r   6This method is only supported in the Vertex AI client.Nry   r  ry  r  r   r  r  r  )r   _EditImageParametersr  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  rx   r
  r  r   r  r  r  r  r  r  rc  r  r  s   &$$$$         r   _edit_imageModels._edit_image  s    00)	O $$$OPP3


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   4
m **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[ RS[S[P                  ,          RS[P
                  /# r   rx   r  rk  r   r   r8   r   ImageOrDictr   _UpscaleImageAPIConfigOrDictUpscaleImageResponse)r   r  s   "r   r   r    ]     @ @ @ 	@
 @ u99:@ !!@r    c               .   \         P                  ! VVVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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	WV
4      pVP                   '       g   / M\"        P$                  ! VP                   4      pV P                  P                  '       d   \'        VRV4      p\         P(                  P+                  WP-                  4       R
7      p\         P.                  ! VP0                  R7      Vn        V P                  P5                  V4       V# )z&Private method for upscaling an image.rx   r  rk  r   r  Nry   r  ry  r  r   r  r  r  )r   _UpscaleImageAPIParametersr  r  r&   rm  r@  r  r	   r  r   r  r   r  r  r  r  r  r  rp  r  r  r  r  r  r   r  r  rx   r  rk  r   r  r  r  r  r  r  rc  r  r  s   &$$$$         r   _upscale_imageModels._upscale_image  s    66%	O $$$OPP9


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   7
m --<<'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   rx   r  r   r   r8   r   RecontextImageSourceOrDictr   RecontextImageConfigOrDictRecontextImageResponse)r   r  s   "r   r   r  ^  R     j j j ..	j
 u778j ##jr    c                  \         P                  ! VVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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RV4      p\         P(                  P+                  WP-                  4       R
7      pV P                  P/                  V4       V# a  Recontextualizes an image.

There are two types of recontextualization currently supported:
1) Imagen Product Recontext - Generate images of products in new scenes
   and contexts.
2) Virtual Try-On: Generate images of persons modeling fashion products.

Args:
  model (str): The model to use.
  source (RecontextImageSource): An object containing the source inputs
    (prompt, person_image, product_images) for image recontext. prompt is
    optional for product recontext and disallowed for virtual try-on.
    person_image is required for virtual try-on, disallowed for product
    recontext. product_images is required for both product recontext and
    virtual try-on. Only one product image is supported for virtual try-on,
    and up to 3 product images (different angles of the same product) are
    supported for product recontext.
  config (RecontextImageConfig): Configuration for recontextualization.

Usage:

  ```
  product_recontext_response = client.models.recontext_image(
      model="imagen-product-recontext-preview-06-30",
      source=types.RecontextImageSource(
          prompt="In a modern kitchen setting.",
          product_images=[types.ProductImage.from_file(IMAGE_FILE_PATH)],
      ),
      config=types.RecontextImageConfig(
          number_of_images=1,
      ),
  )
  image = product_recontext_response.generated_images[0].image

  virtual_try_on_response = client.models.recontext_image(
      model="virtual-try-on-001",
      source=types.RecontextImageSource(
          person_image=types.Image.from_file(IMAGE1_FILE_PATH),
          product_images=[types.ProductImage.from_file(IMAGE2_FILE_PATH)],
      ),
      config=types.RecontextImageConfig(
          number_of_images=1,
      ),
  )
  image = virtual_try_on_response.generated_images[0].image
  ```
rx   r  r   r  Nry   r  ry  r  r   r  r  )r   _RecontextImageParametersr  r  r&   r  r@  r  r	   r  r   r  r   r  r  r  r  r  r  r  r  r  r  r  r  rx   r  r   r  r  r  r  r  r  rc  r  r  s   &$$$         r   recontext_imageModels.recontext_image^  s   n 55O $$$OPP8


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   9
m //>>'A'A'C ? L 	%%l3r    c                ~   < V ^8  d   QhRS[ RS[P                  RS[S[P                  ,          RS[P
                  /# r  r8   r   SegmentImageSourceOrDictr   SegmentImageConfigOrDictSegmentImageResponse)r   r  s   "r   r   r    sR     S S S ,,	S
 u556S !!Sr    c                  \         P                  ! VVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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RV4      p\         P(                  P+                  WP-                  4       R
7      pV P                  P/                  V4       V# )a  Segments an image, creating a mask of a specified area.

Args:
  model (str): The model to use.
  source (SegmentImageSource): An object containing the source inputs
    (prompt, image, scribble_image) for image segmentation. The prompt is
    required for prompt mode and semantic mode, disallowed for other modes.
    scribble_image is required for the interactive mode, disallowed for
    other modes.
  config (SegmentImageConfig): Configuration for segmentation.

Usage:

  ```
  response = client.models.segment_image(
      model="image-segmentation-001",
      source=types.SegmentImageSource(
          image=types.Image.from_file(IMAGE_FILE_PATH),
      ),
  )

  mask_image = response.generated_masks[0].mask
  ```
r  r  Nry   r  ry  r  r   r  r  )r   _SegmentImageParametersr  r  r&   r  r@  r  r	   r  r   r  r   r  r  r  r  r  r  r#  r  r  r  r  r  s   &$$$         r   segment_imageModels.segment_image  s   @ 33O $$$OPP6


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   7
m --<<'A'A'C = L 	%%l3r    c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r   rx   r   r   r8   r   r   GetModelConfigOrDictModel)r   r  s   "r   r   r    s4     ; ;;#+E,F,F#G;{{;r    c                  \         P                  ! VVR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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
RV4      p
V P                  P                  '       g   \)        V
RV4      p
\         P*                  P-                  WP/                  4       R7      pV P                  P1                  V4       V# 	rx   r   Nry   {name}ry  r  r   r@  r  )r   _GetModelParametersr  r  rI  r@  r  rF  r	   r  r   r  r   r  r  r  r  r  r  r  r  r  r  r  r  r  rx   r   r  r  r  r  r  r  rc  r  r  s   &$$         r   r@  
Models.get  s    //O    2


OT?l &))&1	""#341


OT?l &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''t<PH&mmmBHMM1JM   (oNm$$$'t_Mm;;--'A'A'C . L 	%%l3r    c                ^   < V ^8  d   QhRS[ S[P                  ,          RS[P                  /# r   r   r   r   r   ListModelsConfigOrDictListModelsResponse)r   r  s   "r   r   r  \  s2     E E < <=EEr    c                  \         P                  ! VR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       dN   VP                  R4      '       d7   VP                  R4      pV RV 2pV'       d   VR\        V4       2,          pM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
RV4      p
V P                  P                  '       g   \)        V
RV4      p
\         P*                  P-                  WP/                  4       R7      p\         P0                  ! V	P2                  R7      Vn        V P                  P7                  V4       V# r  Nry   z{models_url}ry  r}  z?filter=&r  r   r@  r  r  )r   _ListModelsParametersr  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  r   r  r  r  r  r  query_param_filterr  rc  r  r  s   &$          r   _listModels._list\  st    11O    4


OT?l &))&1	(()9:3


OT?l &))&1	(()9:##H-L((22'++H5vX012d	!Il+,--	vQy./0dXt$04L*""//;$++88l**<8L66|DL''t<PH&mmmBHMM1JM   5
m $$$4
m ++::'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  r8   r   r   UpdateModelConfigOrDictr  )r   r  s   "r   r   r    ?     @ @ @ u445	@
 {{@r    c                  \         P                  ! VVR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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
RV4      p
V P                  P                  '       g   \)        V
RV4      p
\         P*                  P-                  WP/                  4       R	7      pV P                  P1                  V4       V# 
r  Nry   z{model}r  ry  r  r   patchr  )r   _UpdateModelParametersr  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   updateModels.update  s    22O    5


OT?l &))&1	##$454


OT?l &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''\H 'mmmBHMM1JM   (oNm$$$'t_Mm;;--'A'A'C . L 	%%l3r    c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r  r8   r   r   DeleteModelConfigOrDictDeleteModelResponse)r   r  s   "r   r   r    A     F F F u445	F
   Fr    c                  \         P                  ! VVR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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
RV4      p
V P                  P                  '       g   \)        V
RV4      p
\         P*                  P-                  WP/                  4       R7      p\         P0                  ! V	P2                  R	7      Vn        V P                  P7                  V4       V# 
r  Nry   r  ry  r  r   deleter  r  )r   _DeleteModelParametersr  r  r   r@  r  r   r	   r  r   r  r   r  r  r  r  r  r  r   r   r7  r  r  r  r  r   r  r  s   &$$         r   r;  Models.delete  s+    22O    5


OT?l &))&1	""#344


OT?l &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''$lH 'mmmBHMM1JM   6
m $$$5
m ,,;;'A'A'C < L &+%7%7  &L" 	%%l3r    c                   < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[P                  /# r  r8   r   r   r  r  r   CountTokensConfigOrDictCountTokensResponse)r   r  s   "r   r   r  -  b     ] ] ] e,,e.H.HHI	]
 u445]   ]r    c                  \         P                  ! VVVR7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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RV4      pV P                  P                  '       g   \)        VRV4      p\         P*                  P-                  WP/                  4       R	7      p\         P0                  ! V
P2                  R
7      Vn        V P                  P7                  V4       V# )a   Counts the number of tokens in the given content.

Multimodal input is supported for Gemini models.

Args:
  model (str): The model to use for counting tokens.
  contents (list[types.Content]): The content to count tokens for.
  config (CountTokensConfig): The configuration for counting tokens.

Usage:

.. code-block:: python

  response = client.models.count_tokens(
      model='gemini-2.0-flash',
      contents='What is your name?',
  )
  print(response)
  # total_tokens=5 cached_content_token_count=None
r  Nry   {model}:countTokensry  r  r   r  r  r  )r   _CountTokensParametersr  r  r   r@  r  r   r	   r  r   r  r   r  r  r  r  r  r  r   r   rA  r  r  r  r  r   r  r  s   &$$$         r   count_tokensModels.count_tokens-  s.   8 22O    5


OT?l &))&1	$//0@A$4


OT?l &))&1	$//0@A$##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   6
m $$$5
m ,,;;'A'A'C < L &+%7%7  &L" 	%%l3r    c                   < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[P                  /# r  r8   r   r   r  r  r   ComputeTokensConfigOrDictComputeTokensResponse)r   r  s   "r   r   r    sb     S S S e,,e.H.HHI	S
 u667S ""Sr    c               ,   \         P                  ! VVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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RV4      p\         P(                  P+                  WP-                  4       R
7      p\         P.                  ! V
P0                  R7      Vn        V P                  P5                  V4       V# )a>  Given a list of contents, returns a corresponding TokensInfo containing the

list of tokens and list of token ids.

This method is not supported by the Gemini Developer API.

Args:
  model (str): The model to use.
  contents (list[shared.Content]): The content to compute tokens for.

Usage:

.. code-block:: python

  response = client.models.compute_tokens(
      model='gemini-2.0-flash',
      contents='What is your name?',
  )
  print(response)
  # tokens_info=[TokensInfo(role='user', token_ids=['1841', ...],
  # tokens=[b'What', b' is', b' your', b' name', b'?'])]
r  r  Nry   {model}:computeTokensry  r  r   r  r  r  )r   _ComputeTokensParametersr  r  r&   r   r@  r  r	   r  r   r  r   r  r  r  r  r  r  r   rK  r  r  r  r  r   r  r  s   &$$$         r   compute_tokensModels.compute_tokens  s   < 44O $$$OPP7


OT?l &))&1	&112BC&##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   8
m ..=='A'A'C > L &+%7%7  &L" 	%%l3r    r
  r  r  r  c                   < V ^8  d   QhRS[ RS[S[ ,          RS[S[P                  ,          RS[S[P                  ,          RS[S[P
                  ,          RS[S[P                  ,          RS[P                  /# r   rx   r
  r  r  r  r   r   r8   r   r   r  VideoOrDictGenerateVideosSourceOrDictGenerateVideosConfigOrDictGenerateVideosOperation)r   r  s   "r   r   r         N N N sm	N
 e''(N e''(N u778N u778N $$Nr    c          	        \         P                  ! VVVVVVR7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      p	V	'       d   RP                  V	4      p
MHRp
ME\        V P                  VR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WV4      pVP                   '       g   / M\"        P$                  ! VP                   4      pV P                  P                  '       d   \'        VRV4      pV P                  P                  '       g   \)        VRV4      p\         P*                  P-                  WP/                  4       R	7      pV P                  P1                  V4       V# )
z%Private method for generating videos.rx   r
  r  r  r  r   Nry   {model}:predictLongRunningry  r  r   r  r  )r   _GenerateVideosParametersr  r  r  r@  r  r  r	   r  r   r  r   r  r  r  r  r  r  r  r  rW  r  r  r  r  rx   r
  r  r  r  r   r  r  r  r  r  r  rc  r  r  s   &$$$$$$         r   _generate_videosModels._generate_videos  s    55O    8


OT?l &))&1	+667GH+7


OT?l &))&1	+667GH+##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM   :
m $$$9
m 00??'A'A'C @ L 	%%l3r    c                   < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[P                  /# r  r8   r   r   r  r  r   r  r  )r   r  s   "r   r   r  1  b     C C C e,,e.H.HHI	C
 u556C !!Cr    c                  V P                   P                  '       g   V P                  WVR7      # \        P                  ! V4      '       dg   \        P
                  ! V4      p\        V4      ^8  d   \        R4      hV P                  VRV^ ,          \        P                  P                  VR7      # V P                  VRV\        P                  P                  VR7      # )a  Calculates embeddings for the given contents.

Args:
  model (str): The model to use.
  contents (list[Content]): The contents to embed.
  config (EmbedContentConfig): Optional configuration for embeddings.

Usage:

.. code-block:: python

  embeddings = client.models.embed_content(
      model= 'text-embedding-004',
      contents=[
          'What is your name?',
          'What is your favorite color?',
      ],
      config={
          'output_dimensionality': 64
      },
  )

  # Multimodal embeddings are only supported for the Vertex AI API.
  multimodal_embeddings = client.models.embed_content(
      model='gemini-embedding-2-exp-11-2025',
      contents=[
          types.Part.from_uri(
              file_uri='gs://generativeai-downloads/images/scones.jpg',
              mime_type='image/jpeg',
          ),
      ],
      config={
          'output_dimensionality': 64
      },
  )
r  HThe embedContent API for this model only supports one content at a time.Nr  )rx   rV   rz   r'  r   r  r  r  r{   r  r}   lenr&   r   r  r*  r(  r  rx   rz   r   normalized_contentss   &$$$ r   embed_contentModels.embed_content1  s    V $$$  u OO((//LL2	 	!A	%
 	
   %a("33AA !     "33;; !  r    c                ~   < V ^8  d   QhRS[ RS[P                  RS[S[P                  ,          RS[P
                  /# r  )r8   r   r  r   r  r  )r   r  s   "r   r   r  v  sR     _ _ _ **	_
 u889_ $$_r    c                  \         P                  ! V4      p\         P                  ! V4      pV'       dO   VP                  '       d=   \        P
                  ! VP                  4      '       d   \        P                  ! R4      h\         P                  ! V4      '       d   V P                  WVR7      # V'       d   ^ p\        V\        P                  4      '       d)   VP                  '       d   \        VP                  4      pM;\        V\        4      '       d&   VP                  R. 4      pV'       d   \        V4      p\        V4      V8w  d6   RP!                  \#        \$        V4      4      p\&        P)                  RV4       V P                  WVR7      # \         P*                  ! V4      p	\&        P-                  RV	 R24       . p
\        P.                  ! 4       p^ pV	^ 8  Ed   V^,          pV P                  WVR7      p\         P0                  ! V4      pV'       g   EMV'       g   EMVP2                  '       dQ   VP2                  ^ ,          P4                  '       d.   VP2                  ^ ,          P4                  P6                  '       g   EM\         P8                  ! W4      pV'       g   M\&        P-                  RV R	24       V	^,          p	V	^ 8X  d   \&        P-                  R
4       VP2                  ^ ,          P4                  p\        P:                  ! RVR7      p\<        P>                  ! V4      pV
'       g   V
PA                  V4       \        V\B        4      '       d#   VPE                  V4       VPE                  V4       V
PE                  V4       V
PE                  V4       EK  \         PF                  ! V4      '       d   Ve   V
Vn$        V# )a6  Makes an API request to generate content using a model.

For the `model` parameter, supported formats for Vertex AI API include:
- The Gemini model ID, for example: 'gemini-2.0-flash'
- The full resource name starts with 'projects/', for example:
  'projects/my-project-id/locations/us-central1/publishers/google/models/gemini-2.0-flash'
- The partial resource name with 'publishers/', for example:
  'publishers/google/models/gemini-2.0-flash' or
- `/` separated publisher and model name, for example:
  'google/gemini-2.0-flash'

For the `model` parameter, supported formats for Gemini API include:
- The Gemini model ID, for example: 'gemini-2.0-flash'
- The model name starts with 'models/', for example:
  'models/gemini-2.0-flash'
- For tuned models, the model name starts with 'tunedModels/',
  for example:
  'tunedModels/1234567890123456789'

Some models support multimodal input and output.

Built-in MCP support is an experimental feature.

Usage:

.. code-block:: python

  from google.genai import types
  from google import genai

  client = genai.Client(
      vertexai=True, project='my-project-id', location='us-central1'
  )

  response = client.models.generate_content(
    model='gemini-2.0-flash',
    contents='''What is a good name for a flower shop that specializes in
      selling bouquets of dried flowers?'''
  )
  print(response.text)
  # **Elegant & Classic:**
  # * The Dried Bloom
  # * Everlasting Florals
  # * Timeless Petals

  response = client.models.generate_content(
    model='gemini-2.0-flash',
    contents=[
      types.Part.from_text(text='What is shown in this image?'),
      types.Part.from_uri(file_uri='gs://generativeai-downloads/images/scones.jpg',
      mime_type='image/jpeg')
    ]
  )
  print(response.text)
  # The image shows a flat lay arrangement of freshly baked blueberry
  # scones.
6MCP sessions are not supported in synchronous methods.r  r   , Tools at indices [%s] are not compatible with automatic function calling (AFC). AFC is disabled. If AFC is intended, please include python callables in the tool list, and do not include function declaration and MCP server in the tool list.&AFC is enabled with max remote calls: .AFC remote call 	 is done.8Reached max remote calls for automatic function calling.userr   r   )%r   "find_afc_incompatible_tool_indexesparse_config_for_mcp_usager   r   has_mcp_session_usager   UnsupportedFunctionErrorshould_disable_afcr  
isinstancer   GenerateContentConfigrf  r7   r@  joinmapr8   loggerwarningget_max_remote_calls_afcinfor  get_function_mapr  rV   r   get_function_response_partsContentr{   r}   extendr  appendshould_append_afc_history"automatic_function_calling_history)r  rx   rz   r   incompatible_tools_indexesparsed_configoriginal_tools_lengthr   indices_strremaining_remote_calls_afcr  rc  ifunction_mapfunc_response_partsfunc_call_contentfunc_response_contents   &$$$             r   generate_contentModels.generate_contentv  s;   D 	77?  !;;FCM,,]-@-@AA++
B  &&}55## $   "	FE77	8	8<<<"%fll"3
fd##

7B'"%e*
	'	(,A	AiiC)C DED 	
 ## $   ".!F!F" KK
01K0LAN ?A&,,.H	A
$q
(1fa'' ( h "22=Al!!!$$Q'///$$Q'//555(DD
 !kk$QCy12 A% 	#q	(NO"--a088#mm# h'h/*11(;	Hd	#	#)*-.(//0AB(//0EF..}==  - 1 Or    c          	         < V ^8  d   QhRS[ RS[P                  RS[S[P                  ,          RS[S[P                  ,          /# r  )r8   r   r  r   r  r   r  )r   r  s   "r   r   r    s]     @I @I @I **	@I
 u889@I --.@Ir    c             #  
  "   \         P                  ! V4      p\         P                  ! V4      pV'       dO   VP                  '       d=   \        P
                  ! VP                  4      '       d   \        P                  ! R4      h\         P                  ! V4      '       d   V P                  WVR7       Rj  xL
  R# V'       d   ^ p\        V\        P                  4      '       d)   VP                  '       d   \        VP                  4      pM;\        V\        4      '       d&   VP                  R. 4      pV'       d   \        V4      p\        V4      V8w  d6   RP!                  \#        \$        V4      4      p\&        P)                  RV4       V P                  WVR7       Rj  xL
  R# \         P*                  ! V4       \         P,                  ! V4      p	\&        P/                  RV	 R24       . p
RpRp^ pV	^ 8  Ed   V^,          pV P                  WVR7      p\         P0                  ! V4      pV^8X  d   V F  pV'       g   \         P2                  ! W+4      pVx  K'  VP4                  '       dQ   VP4                  ^ ,          P6                  '       d.   VP4                  ^ ,          P6                  P8                  '       g    EM\         P:                  ! W4      pV'       d   K  \         P2                  ! W+4      pVx  K  	  MV F@  p\         P<                  ! V4      '       d   V
Vn        \         P2                  ! W+4      pVx  KB  	  Vec   VP4                  '       dQ   VP4                  ^ ,          P6                  '       d.   VP4                  ^ ,          P6                  P8                  '       g   R# \         P:                  ! W4      pV'       g   R# V'       g   R# \&        P/                  R	V R
24       V	^,          p	V	^ 8X  d   \&        P/                  R4       Vf   EK+  VP4                  f   EK<  VP4                  ^ ,          P6                  p\        P@                  ! RVR7      p\B        PD                  ! V4      pV
'       g   V
PG                  V4       \        V\H        4      '       d'   Ve#   VPK                  V4       VPK                  V4       Ve   V
PK                  V4       V
PK                  V4       EK  R#  ELJ EL^5i)aZ  Makes an API request to generate content using a model and yields the model's response in chunks.

For the `model` parameter, supported formats for Vertex AI API include:
- The Gemini model ID, for example: 'gemini-2.0-flash'
- The full resource name starts with 'projects/', for example:
  'projects/my-project-id/locations/us-central1/publishers/google/models/gemini-2.0-flash'
- The partial resource name with 'publishers/', for example:
  'publishers/google/models/gemini-2.0-flash' or
- `/` separated publisher and model name, for example:
  'google/gemini-2.0-flash'

For the `model` parameter, supported formats for Gemini API include:
- The Gemini model ID, for example: 'gemini-2.0-flash'
- The model name starts with 'models/', for example:
  'models/gemini-2.0-flash'
- For tuned models, the model name starts with 'tunedModels/',
  for example:
  'tunedModels/1234567890123456789'

Some models support multimodal input and output.

Built-in MCP support is an experimental feature.

Usage:

.. code-block:: python

  from google.genai import types
  from google import genai

  client = genai.Client(
      vertexai=True, project='my-project-id', location='us-central1'
  )

  for chunk in client.models.generate_content_stream(
    model='gemini-2.0-flash',
    contents='''What is a good name for a flower shop that specializes in
      selling bouquets of dried flowers?'''
  ):
    print(chunk.text)
  # **Elegant & Classic:**
  # * The Dried Bloom
  # * Everlasting Florals
  # * Timeless Petals

  for chunk in client.models.generate_content_stream(
    model='gemini-2.0-flash',
    contents=[
      types.Part.from_text('What is shown in this image?'),
      types.Part.from_uri('gs://generativeai-downloads/images/scones.jpg',
      'image/jpeg')
    ]
  ):
    print(chunk.text)
  # The image shows a flat lay arrangement of freshly baked blueberry
  # scones.
rm  r  Nr   rn  z_Tools at indices [%s] are not compatible with automatic function calling. AFC will be disabled.rp  rq  rr  rs  rt  ru  rv  )&r   rw  rx  r   r   ry  r   rz  r{  r  r|  r   r}  rf  r7   r@  r~  r  r8   r  r  'raise_error_for_afc_incompatible_configr  r  r  append_chunk_contentsr  rV   r   r  r  r  r  r{   r}   r  r  r  )r  rx   rz   r   r  r  r  r   r  r  r  chunkr  r  rc  r  r  r  s   &$$$              r   generate_content_streamModels.generate_content_stream  s>    D 	77?  !;;FCM,,]-@-@AA++
B  &&}55.. /    !	FE77	8	8<<<"%fll"3
fd##

7B'"%e*
	'	(,A	AiiC)C DE-	

 .. /     88G!-!F!F" KK
01K0LAN ?A&E	A
$q
(1fa.. / h "22=Al	
a E#99(JHK $$$''*222''*22888"."J"J# '&%;;HLhk! ( E33MBB2 4 "77H(+  M#####A&...##A&..444
*FF
  kk$QCy12 A% 	#q	(NO 
	u//;!,,Q/77 %%!
 <<)1
,
3
3H
=h%%*;*G
//+
,
///
0(
,
3
34E
F*112GHU )Q*s   AT	%T/1T!T7T8T3T:AT A&T&T'CT6"T,TT)A:T$"T,T4T	TAT%T6AT	A9TTc                j   < V ^8  d   QhRS[ RS[ RS[S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r    F     5 5 5 	5
 u7785 ##5r    c               \   V P                  VVVR7      pRp. pV'       d   VP                  '       g   V# VP                   FO  pVP                  '       d*   VP                  P                  R8X  d   VP                  pK>  VP	                  V4       KQ  	  \
        P                  ! VVR7      pV# )a,  Generates images based on a text description and configuration.

Args:
  model (str): The model to use.
  prompt (str): A text description of the images to generate.
  config (GenerateImagesConfig): Configuration for generation.

Usage:

.. code-block:: python

  response = client.models.generate_images(
    model='imagen-3.0-generate-002',
    prompt='Man with a dog',
    config=types.GenerateImagesConfig(
        number_of_images= 1,
        include_rai_reason= True,
    )
  )
  response.generated_images[0].image.show()
  # Shows a man with a dog.
r  NPositive Promptr  r  r  r  r5  r  r  r   r  	r  rx   r
  r   api_responser  r  generated_imagerc  s	   &$$$     r   generate_imagesModels.generate_images  s    : (( ) L
 )-%|<<<'88

+
+
+//<< -<,M,M)0 9 ++)*KH Or    c          
         < V ^8  d   QhRS[ RS[ RS[S[P                  ,          RS[S[P
                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r    [     6 6 6 	6
 U;;<6 u2236 6r    c               ,    V P                  VVVVR7      # )a  Edits an image based on a text description and configuration.

Args:
  model (str): The model to use.
  prompt (str): A text description of the edit to apply to the image.
    reference_images (list[Union[RawReferenceImage, MaskReferenceImage,
    ControlReferenceImage, StyleReferenceImage, SubjectReferenceImage]): The
    reference images for editing.
  config (EditImageConfig): Configuration for editing.

Usage:

.. code-block:: python

  from google.genai.types import RawReferenceImage, MaskReferenceImage

  raw_ref_image = RawReferenceImage(
    reference_id=1,
    reference_image=types.Image.from_file(IMAGE_FILE_PATH),
  )

  mask_ref_image = MaskReferenceImage(
    reference_id=2,
    config=types.MaskReferenceConfig(
        mask_mode='MASK_MODE_FOREGROUND',
        mask_dilation=0.06,
    ),
  )
  response = client.models.edit_image(
    model='imagen-3.0-capability-001',
    prompt='man with dog',
    reference_images=[raw_ref_image, mask_ref_image],
    config=types.EditImageConfig(
        edit_mode= "EDIT_MODE_INPAINT_INSERTION",
        number_of_images= 1,
        include_rai_reason= True,
    )
  )
  response.generated_images[0].image.show()
  # Shows a man with a dog instead of a cat.
r  r  r  rx   r
  r  r   s   &$$$$r   
edit_imageModels.edit_image  s)    b )	   r    c          
         < V ^8  d   QhRS[ RS[P                  RS[ RS[S[P                  ,          RS[P
                  /# r  r8   r   r  r   UpscaleImageConfigOrDictr  )r   r  s   "r   r   r  H  ]     H H H 	H
 H u556H !!Hr    c                  \         P                  ! VVVVR7       T;'       g    / p\        V\         P                  4      '       d   VP	                  4       pM\        V4      p\         P                  ! VP                  RR4      VP                  RR4      VP                  RR4      VP                  RR4      VP                  RR4      VP                  RR4      VP                  R	R4      VP                  R
R4      VP                  RR4      VP                  RR4      R7
      pRVR&   ^VR&   V P                  VVVVR7      # )a}  Makes an API request to upscale a provided image.

Args:
  model (str): The model to use.
  image (Image): The input image for upscaling.
  upscale_factor (str): The factor to upscale the image (x2 or x4).
  config (UpscaleImageConfig): Configuration for upscaling.

Usage:

.. code-block:: python

  from google.genai.types import Image

  IMAGE_FILE_PATH="my-image.png"
  response=client.models.upscale_image(
      model='imagen-3.0-generate-001',
      image=types.Image.from_file(IMAGE_FILE_PATH),
      upscale_factor='x2',
  )
  response.generated_images[0].image.show()
  # Opens my-image.png which is upscaled by a factor of 2.
r  r  Nr   r   r   r   r   r   rc  rd  r   
r  r   r   r   r   r   r   rc  rd  r   upscaler[  r   	r   UpscaleImageParametersr|  UpscaleImageConfigr  r7   _UpscaleImageAPIConfigDictr@  r  r  rx   r  rk  r   
config_dct
api_configs   &$$$$  r   upscale_imageModels.upscale_imageH  s=   B 
  %	 \\rF&%2233$$&j<j11^^ND9!~~&6=&NN+@$G$..)<dC%>>*>E#(:DA#->>($$
 'NN+@$G",..'#
 ~~h-J$ #Jv%&J!"%	   r    c                   < V ^8  d   QhRS[ RS[S[ ,          RS[S[P                  ,          RS[S[P                  ,          RS[S[P
                  ,          RS[S[P                  ,          RS[P                  /# rR  rS  )r   r  s   "r   r   r         [ [ [ sm	[
 e''([ e''([ u778[ u778[ $$[r    c          
        V'       g   V'       g	   V'       d   V'       d   \        R
4      h/ pV P                  P                  '       g   V'       d   \        V\        P
                  4      '       d   VP                  4       pM\        V4      pVP                  R4      '       dN   VP                  R4      '       d7   \        P
                  ! VP                  R4      VP                  R4      R7      pEMyV P                  P                  '       Eg]   V'       EdT   \        V\        P                  4      '       d$   VP                  4       pVP                  R/ 4      pMo\        V4      p\        VP                  R4      \        P
                  4      '       d6   VP                  R\        P
                  ! 4       4      p	V	P                  4       pV'       d   VP                  R4      '       d   VP                  R4      '       dl   \        P                  ! VP                  R4      VP                  R4      \        P
                  ! VP                  R4      VP                  R4      R7      R7      pV P                  VVVVVVR	7      # )\  Generates videos based on an input (text, image, or video) and configuration.

The following use cases are supported:
1. Text to video generation.
2a. Image to video generation (additional text prompt is optional).
2b. Image to video generation with frame interpolation (specify last_frame
in config).
3. Video extension (additional text prompt is optional)

Args:
  model: The model to use.
  prompt: The text prompt for generating the videos. Optional for image to
    video and video extension use cases. This argument is deprecated, please
    use source instead.
  image: The input image for generating the videos. Optional if prompt is
    provided. This argument is deprecated, please use source instead.
  video: The input video for video extension use cases. Optional if prompt
    or image is provided. This argument is deprecated, please use source
    instead.
  source: The input source for generating the videos (prompt, image, and/or
    video)
  config: Configuration for generation.

Usage:

  ```
  operation = client.models.generate_videos(
      model="veo-2.0-generate-001",
      source=types.GenerateVideosSource(
          prompt="A neon hologram of a cat driving at top speed",
      ),
  )
  while not operation.done:
      time.sleep(10)
      operation = client.operations.get(operation)

  operation.result.generated_videos[0].video.uri
  ```
rz  r|  rP   rz  rP   r  r
  r  r
  r  r  rZ  MSource and prompt/image/video are mutually exclusive. Please only use source.r&   r  r  r|  r   Videor  r7   r@  GenerateVideosSourcer^  
r  rx   r
  r  r  r  r   	video_dct
source_dct	video_objs
   &$$$$$$   r   generate_videosModels.generate_videos  s   b 	%5f' 
 !#I$$$	E5;;	'	'$$&	K		u		)--">">e$	k0J
 &&&66	FE66	7	7&&(
NN7B/	&\
jnnW-u{{;;#->>'5;;=#I)**,)	y}}U++	m0L0L++>>(+..)++MM%(#--4
    !  r    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    s5     0 0 u3340 U[[	0r    c                  \         P                  ! VR7      P                  ;'       g    \         P                  ! 4       pVP                  f   RVn        V P
                  P                  '       dG   VP                  4       pVP                  '       g%   VP                  pV'       d
   VR,           MRVn        \        RV P                  V P                  VR7      V4      # )a  Makes an API request to list the available models.

If `query_base` is set to True in the config or not set (default), the
API will return all available base models. If set to False, it will return
all tuned models.

Args:
  config (ListModelsConfigOrDict): Configuration for retrieving models.

Usage:

.. code-block:: python

  response=client.models.list(config={'page_size': 5})
  print(response.page)
  # [Model(name='projects/./locations/./models/123', display_name='my_model'

  response=client.models.list(config={'page_size': 5, 'query_base': True})
  print(response.page)
  # [Model(name='publishers/google/models/gemini-2.0-flash-exp' ...
r  T&filter=labels.tune-type:*labels.tune-type:*r  )r   r%  r   ListModelsConfigr~  r  r  copyr}  r   r(  r  r   filter_values   &$ r   r  Models.list  s    8 	##6299 	$ 	$!!#   f   {{}f}}  77% 	
 



&
!	 r     )__name__
__module____qualname____firstlineno__r  r  r  r  r  r  r  r  r@  r(  r2  r;  rF  rO  r^  ri  r  r  r  r  r  r  r  __static_attributes____classdictcell__r  s   @r   r  r  {  s    O
 =AO ObT
 =AT Tlh h h >Bh :>h hTJ
 <@J JX@ 7;@ @D@ >B@ @Dj
 <@j jXS
 :>S Sj;JN; ;zE@DE EN@ 9=	@ @DF 9=	F FP]
 9=] ]~S
 ;?S SjN #	N
 ,0N ,0N <@N <@N N`C
 :>C CJ_
 =A_ _B@I
 =A@I @ID5
 <@5 5n6 7;6 6pH :>H HT[ #	[
 ,0[ ,0[ <@[ <@[ [z0 8<0 0 0r    r  c            
         a  ] tR tRt o RR/V 3R lR lltRR/V 3R lR lltRRR	R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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R$RR%R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R0 lltRR/V 3R1 lR2 lltRR/V 3R3 lR4 lltR#RR$RR%RR&RRR/V 3R5 lR6 lltRR/V 3R7 lR8 lltR9tV tR# ):AsyncModelsi"  r   Nc                   < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   AsyncModels.__annotate__$  r  r    c                 "   \         P                  ! VVVR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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eH   \!        VRR4      '       d5   \         P"                  ! V
R	7      pV P                  P%                  V4       V# V
P&                  '       g   / M\(        P*                  ! V
P&                  4      pV P                  P                  '       d   \-        VRV4      pV P                  P                  '       g   \/        VRV4      p\         P"                  P1                  WP3                  4       R
7      p\         P4                  ! V
P6                  R7      Vn        V P                  P%                  V4       V#  ELG5ir  )r   r  r  r  r  r@  r  r  r	   r  r   r  r   r  r  async_requestr  r  r  r  r  r  r  r  r  r  r  r  r   r  s   &$$$         r   r  AsyncModels._generate_content$  s     66O    9


OT?l &))&1	(334DE(8


OT?l &))&1	(334DE(##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H g-t  22XNl
''5&mmmBHMM1JM   :
m $$$9
m 00??'A'A'C @ L &+%7%7  &L" 	%%l3=s-   CKB,KK	A K*=K((KA?Kc          
         < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[S[S[P                  ,          ,          /# r  )
r8   r   r   r  r  r   r  r   r   r  )r   r  s   "r   r   r  u  sl     Y Y Y e,,e.H.HHI	Y
 u889Y u<<=>Yr    c                 a a
a"   \         P                  ! VVVR 7      o
S P                  P                  '       dG   \	        S P                  S
RS
4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        S P                  S
RS
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S
P                  e/   S
P                  P                  e   S
P                  P                  p\        P                  ! V4      p\        P                  ! V4      pVe   \        VRR4      '       d   \!        R4      hS P                  P#                  R	WdV4      G Rj  xL
 oV
VV 3R
 lp	V	! 4       #  L5i)r  Nry   r  ry  r  r   r  r  r  c                 .  <"   S  R j  xL
  p V P                   '       g   / M\        P                  ! V P                   4      pSP                  P                  '       d   \        VR S4      pSP                  P                  '       g   \        VR S4      p\        P                  P                  VSP                  4       R7      p\        P                  ! V P                  R7      Vn        SP                  P                  V4       V5x  EK   ELEDR # 5i)Nr  r  )r  r  r  r  r  r  r  r   r  r  r  r  r  r   r  )rc  r  r  r  response_streamr  s      r   async_generator=AsyncModels._generate_content_stream.<locals>.async_generator  s     +  "*---TZZ5N$$$>T?- (((=T?- 44CC"?+E+E+G D 
 */););$$*
& 	)),7+Os3   DDDDAD (D	BDDD)r   r  r  r  r  r@  r  r  r	   r  r   r  r   r  r  r  r&   async_request_streamed)r  rx   rz   r   r  r  r  r  r  r  r  r  s   f$$$      @@r   r  $AsyncModels._generate_content_streamu  s     66O    9


OT?l &))&1	6AA
 78


OT?l &))&1	6AA
 7##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DLg-t   
 !,,CCL O0 9s   CGCG-G.Grz   rV   r'  c                6  < V ^8  d   QhRS[ RS[S[S[P                  S[P
                  3,          ,          RS[S[S[P                  S[P                  3,          ,          RS[S[P                  ,          RS[S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r    r  r    c               h  "   \         P                  ! VVVVVR7      pV P                  P                  '       dq   \	        V P                  VRV4      pVP                  R4      p\        P                  ! VP                  4      '       d   RMRp	V'       d   V	P                  V4      p
MHT	p
ME\        V P                  VR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
WV4      G Rj  xL
 pVP&                  '       g   / M\(        P*                  ! VP&                  4      pV P                  P                  '       d   \-        VRV4      pV P                  P                  '       g   \/        VRV4      p\         P0                  P3                  WP5                  4       R7      p\         P6                  ! VP8                  R7      Vn        V P                  P=                  V4       V#  L5i)a  Calculates embeddings for the given contents. Only text is supported.

Args:
  model (str): The model to use.
  contents (list[Content]): The contents to embed.
  config (EmbedContentConfig): Optional configuration for embeddings.

Usage:

.. code-block:: python

  embeddings = await client.aio.models.embed_content(
      model= 'text-embedding-004',
      contents=[
          'What is your name?',
          'What is your favorite color?',
      ],
      config={
          'output_dimensionality': 64
      },
  )
r  Nry   r  r  r  ry  r  r   r  r  r  )r   r  r  r  r5  r@  r{   r  rx   r  r2  r	   r  r   r  r   r  r  r  r  r  r  rC  r:  r  r  r  r  r  r   r  r  s   &$$$$$          r   r  AsyncModels._embed_content  sb    H ::-O    =


OT?l &))&1/0/P/PQ`QfQf/g/g+m~l	&&'78<


OT?l &))&1	+667GH+##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   7
m $$$6
m --<<'A'A'C = L &+%7%7  &L" 	%%l3/s3   BJ2A2J2B,J24J05J2=J2	(J22A?J2c                j   < V ^8  d   QhRS[ RS[ RS[S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r  :  r  r    c                 "   \         P                  ! VVVR7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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RV4      pV P                  P                  '       g   \)        VR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)z4Private method for generating images asynchronously.r  Nry   r  ry  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  r  r  r  r  r  r   r  r  s   &$$$         r   r  AsyncModels._generate_images:  s;     55O    8


OT?l &))&1	 ++,<= 7


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   9
m $$$8
m //>>'A'A'C ? L &+%7%7  &L" 	%%l3/,   CJB,JJ	J=J(JA?Jc          
         < V ^8  d   QhRS[ RS[ RS[S[P                  ,          RS[S[P
                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r    r  r    c               J  "   \         P                  ! VVVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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	WV
4      G Rj  xL
 pVP                   '       g   / M\"        P$                  ! VP                   4      pV P                  P                  '       d   \'        VRV4      p\         P(                  P+                  WP-                  4       R
7      p\         P.                  ! VP0                  R7      Vn        V P                  P5                  V4       V#  L5i)z3Private method for editing an image asynchronously.r  r  Nry   r  ry  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  r  r  r  r  r   r  r  s   &$$$$         r   r  AsyncModels._edit_image  s     00)	O $$$OPP3


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   4
m **99'A'A'C : L &+%7%7  &L" 	%%l3%&   BH#"B,H#H!H#%=H##A?H#c          
         < V ^8  d   QhRS[ RS[P                  RS[ RS[S[P                  ,          RS[P
                  /# r  r  )r   r  s   "r   r   r    r  r    c               J  "   \         P                  ! VVVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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	WV
4      G Rj  xL
 pVP                   '       g   / M\"        P$                  ! VP                   4      pV P                  P                  '       d   \'        VRV4      p\         P(                  P+                  WP-                  4       R
7      p\         P.                  ! VP0                  R7      Vn        V P                  P5                  V4       V#  L5i)z5Private method for upscaling an image asynchronously.r  r  Nry   r  ry  r  r   r  r  r  )r   r  r  r  r&   rm  r@  r  r	   r  r   r  r   r  r  r  r  r  r  rp  r  r  r  r  r  r   r  r  s   &$$$$         r   r  AsyncModels._upscale_image  s     66%	O $$$OPP9


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   7
m --<<'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  s   "r   r   r  
  r   r    c                 "   \         P                  ! VVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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R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  r  r  r  r  r  r  r  r  r  r  s   &$$$         r   r  AsyncModels.recontext_image
  s    n 55O $$$OPP8


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   9
m //>>'A'A'C ? L 	%%l3!&   BG<!B,G<G:G<$=G<"AG<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   r  v  sR     V V V ,,	V
 u556V !!Vr    c                 "   \         P                  ! VVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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RV4      p\         P(                  P+                  WP-                  4       R
7      pV P                  P/                  V4       V#  L5i)a3  Segments an image, creating a mask of a specified area.

Args:
  model (str): The model to use.
  source (SegmentImageSource): An object containing the source inputs
    (prompt, image, scribble_image) for image segmentation. The prompt is
    required for prompt mode and semantic mode, disallowed for other modes.
    scribble_image is required for the interactive mode, disallowed for
    other modes.
  config (SegmentImageConfig): Configuration for segmentation.

Usage:

  ```
  response = client.models.segment_image(
      model="image-segmentation-001",
      source=types.SegmentImageSource(
          image=types.Image.from_file(IMAGE_FILE_PATH),
      ),
      config=types.SegmentImageConfig(
          mode=types.SegmentMode.foreground,
      ),
  )

  mask_image = response.generated_masks[0].mask
  ```
r  r  Nry   r  ry  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  r  r  r  s   &$$$         r   r  AsyncModels.segment_imagev  s    F 33O $$$OPP6


OT?l &))&1	 ++,<= ##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   7
m --<<'A'A'C = L 	%%l3!r  c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r    s4     = ==#+E,F,F#G={{=r    c                 "   \         P                  ! VVR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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
RV4      p
V P                  P                  '       g   \)        V
RV4      p
\         P*                  P-                  WP/                  4       R7      pV P                  P1                  V4       V#  L5ir  )r   r  r  r  rI  r@  r  rF  r	   r  r   r  r   r  r  r  r  r  r  r  r  r  r  r  r  r  s   &$$         r   r@  AsyncModels.get  s     //O    2


OT?l &))&1	""#341


OT?l &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33t< H 'mmmBHMM1JM   (oNm$$$'t_Mm;;--'A'A'C . L 	%%l3#,   CIB,III=I(IAIc                ^   < V ^8  d   QhRS[ S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r    s2     G G < <=GGr    c                 "   \         P                  ! VR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       dN   VP                  R4      '       d7   VP                  R4      pV RV 2pV'       d   VR\        V4       2,          pM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
RV4      p
V P                  P                  '       g   \)        V
R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  r  r  r  r  r  r  r!  r  r  r  r  r   r  r&  s   &$          r   r(  AsyncModels._list  s     11O    4


OT?l &))&1	(()9:3


OT?l &))&1	(()9:##H-L((22'++H5vX012d	!Il+,--	vQy./0dXt$04L*""//;$++88l**<8L66|DL%%33t< H 'mmmBHMM1JM   5
m $$$4
m ++::'A'A'C ; L &+%7%7  &L" 	%%l3/s>   CKK1KK/B,KKK2=K0(KA?Kc                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r  r+  )r   r  s   "r   r   r  V  r-  r    c                 "   \         P                  ! VVR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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
RV4      p
V P                  P                  '       g   \)        V
RV4      p
\         P*                  P-                  WP/                  4       R	7      pV P                  P1                  V4       V#  L5ir/  )r   r1  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   r2  AsyncModels.updateV  s     22O    5


OT?l &))&1	##$454


OT?l &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33\ H 'mmmBHMM1JM   (oNm$$$'t_Mm;;--'A'A'C . L 	%%l3#r  c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r  r5  )r   r  s   "r   r   r    r8  r    c                 "   \         P                  ! VVR 7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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
RV4      p
V P                  P                  '       g   \)        V
R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  r  r  r  r  r   r   r7  r  r  r  r  r   r  r  s   &$$         r   r;  AsyncModels.delete  s8     22O    5


OT?l &))&1	""#344


OT?l &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33$l H 'mmmBHMM1JM   6
m $$$5
m ,,;;'A'A'C < L &+%7%7  &L" 	%%l3/s,   CJB,JJJ=J(JA?Jc                   < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[P                  /# r  r?  )r   r  s   "r   r   r    rB  r    c                 "   \         P                  ! VVVR7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      pV'       d   RP                  V4      pMHRpME\        V P                  VR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RV4      pV P                  P                  '       g   \)        VR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
  Counts the number of tokens in the given content.

Multimodal input is supported for Gemini models.

Args:
  model (str): The model to use for counting tokens.
  contents (list[types.Content]): The content to count tokens for.
  config (CountTokensConfig): The configuration for counting tokens.

Usage:

.. code-block:: python

  response = await client.aio.models.count_tokens(
      model='gemini-2.0-flash',
      contents='What is your name?',
  )
  print(response)
  # total_tokens=5 cached_content_token_count=None
r  Nry   rD  ry  r  r   r  r  r  )r   rE  r  r  r   r@  r  r   r	   r  r   r  r   r  r  r  r  r  r  r   r   rA  r  r  r  r  r   r  r  s   &$$$         r   rF  AsyncModels.count_tokens  s;    8 22O    5


OT?l &))&1	$//0@A$4


OT?l &))&1	$//0@A$##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   6
m $$$5
m ,,;;'A'A'C < L &+%7%7  &L" 	%%l3/r  c                   < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[P                  /# r  rI  )r   r  s   "r   r   r  ?  sb     R R R e,,e.H.HHI	R
 u667R ""Rr    c               H  "   \         P                  ! VVVR7      pV P                  P                  '       g   \	        R4      h\        V P                  VR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RV4      p\         P(                  P+                  WP-                  4       R
7      p\         P.                  ! V
P0                  R7      Vn        V P                  P5                  V4       V#  L5i)a  Given a list of contents, returns a corresponding TokensInfo containing the

list of tokens and list of token ids.


Args:
  model (str): The model to use.
  contents (list[shared.Content]): The content to compute tokens for.

Usage:

.. code-block:: python

  response = await client.aio.models.compute_tokens(
      model='gemini-2.0-flash',
      contents='What is your name?',
  )
  print(response)
  # tokens_info=[TokensInfo(role='user', token_ids=['1841', ...],
  # tokens=[b'What', b' is', b' your', b' name', b'?'])]
r  r  Nry   rM  ry  r  r   r  r  r  )r   rN  r  r  r&   r   r@  r  r	   r  r   r  r   r  r  r  r  r  r  r   rK  r  r  r  r  r   r  r  s   &$$$         r   rO  AsyncModels.compute_tokens?  s    : 44O $$$OPP7


OT?l &))&1	&112BC&##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   8
m ..=='A'A'C > L &+%7%7  &L" 	%%l3%s&   BH"!B,H"H H"$=H""A?H"r
  r  r  r  c                   < V ^8  d   QhRS[ RS[S[ ,          RS[S[P                  ,          RS[S[P                  ,          RS[S[P
                  ,          RS[S[P                  ,          RS[P                  /# rR  rS  )r   r  s   "r   r   r    rX  r    c          	       "   \         P                  ! VVVVVVR7      pV P                  P                  '       dG   \	        V P                  VRV4      pVP                  R4      p	V	'       d   RP                  V	4      p
MHRp
ME\        V P                  VR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WV4      G Rj  xL
 pVP                   '       g   / M\"        P$                  ! VP                   4      pV P                  P                  '       d   \'        VRV4      pV P                  P                  '       g   \)        VRV4      p\         P*                  P-                  WP/                  4       R	7      pV P                  P1                  V4       V#  L5i)
z4Private method for generating videos asynchronously.rZ  Nry   r[  ry  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  rW  r  r  r  r]  s   &$$$$$$         r   r^  AsyncModels._generate_videos  s'     55O    8


OT?l &))&1	+667GH+7


OT?l &))&1	+667GH+##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM   :
m $$$9
m 00??'A'A'C @ L 	%%l3+s,   CI#B,I#I!I#"=I# (I#	AI#c                   < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r    sb        e,,e.H.HHI	
 u889 $$r    c               8  "   \         P                  ! V4      p\         P                  ! V4      G Rj  xL
 w  rV\         P                  ! V4      '       d   V P	                  WVR7      G Rj  xL
 # V'       d   ^ p\        V\        P                  4      '       d)   VP                  '       d   \        VP                  4      pM;\        V\        4      '       d&   VP                  R. 4      pV'       d   \        V4      p\        V4      V8w  d6   RP                  \        \        V4      4      p	\        P!                  RV	4       V P	                  WVR7      G Rj  xL
 # \         P"                  ! V4      p
\        P%                  RV
 R24       . p\        P&                  ! 4       pV
^ 8  Ed   V P	                  WVR7      G Rj  xL
 pV
^,          p
V
^ 8X  d   \        P%                  R4       \         P(                  ! WVR	R
7      pV'       g   EMUV'       g   EMKVP*                  '       dQ   VP*                  ^ ,          P,                  '       d.   VP*                  ^ ,          P,                  P.                  '       g   M\         P0                  ! W4      G Rj  xL
 pV'       g   MVP*                  ^ ,          P,                  p\        P2                  ! RVR7      p\4        P6                  ! V4      pV'       g   VP9                  V4       \        V\:        4      '       d#   VP=                  V4       VP=                  V4       VP=                  V4       VP=                  V4       EK  \         P>                  ! V4      '       d   Ve   VVn         V#  ELY EL# EL9 EL EL5i)a  Makes an API request to generate content using a model.

Some models support multimodal input and output.

Built-in MCP support is an experimental feature.

Usage:

.. code-block:: python

  from google.genai import types
  from google import genai

  client = genai.Client(
      vertexai=True, project='my-project-id', location='us-central1'
  )

  response = await client.aio.models.generate_content(
      model='gemini-2.0-flash',
      contents='User input: I like bagels. Answer:',
      config=types.GenerateContentConfig(
          system_instruction=
            [
              'You are a helpful language translator.',
              'Your mission is to translate text in English to French.'
            ]
      ),
  )
  print(response.text)
  # J'aime les bagels.
Nr  r   rn  ro  rp  rq  rt  Tis_caller_method_asyncru  rv  )!r   rw  parse_config_for_mcp_sessionsr{  r  r|  r   r}  r   rf  r7   r@  r~  r  r8   r  r  r  r  r  r  r  rV   r   !get_function_response_parts_asyncr  r{   r}   r  r  r  r  r  )r  rx   rz   r   r  r  mcp_to_genai_tool_adaptersr  r   r  r  r  rc  r  r  r  r  s   &$$$             r   r  AsyncModels.generate_content  s     P 	77?  88@@ .M &&}55)) *    "	FE77	8	8<<<"%fll"3
fd##

7B'"%e*
	'	(,A	AiiC)C DED 	
 )) *    ".!F!F" KK
01K0LAN ?A&,,.H
$q
(-- .  h !A% 	#q	(NO!22
Dl !!!$$Q'///$$Q'//555>>  
 !"--a088#mm# h'h/*11(;	Hd	#	#)*-.(//0AB(//0EF 	..}==  - 1 Oi 	A**s   0NN8N+N,N83N,AN2A&NNA(NNANN)"N,N9NNN AN4B	N>NNNNNc          	         < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[S[P                  ,          /# r  )	r8   r   r   r  r  r   r  r   r  )r   r  s   "r   r   r  d  sg     U; U; U; e,,e.H.HHI	U;
 u889U; U223U;r    c               ^  a aa"   \         P                  ! V4      p\         P                  ! V4      G Rj  xL
 w  po\         P                  ! V4      '       d+   S P	                  WVR7      G Rj  xL
 oV3R lpV! WV4      # V'       d   ^ p\        V\        P                  4      '       d)   VP                  '       d   \        VP                  4      pM;\        V\        4      '       d&   VP                  R. 4      pV'       d   \        V4      p\        V4      V8w  d6   RP                  \        \        V4      4      p	\        P!                  RV	4       S P	                  WVR7      G Rj  xL
 oV3R lpV! WV4      # \         P"                  ! V4       VV 3R lp
V
! WV4      #  ELp EL9 L?5i)	az  Makes an API request to generate content using a model and yields the model's response in chunks.

For the `model` parameter, supported formats for Vertex AI API include:
- The Gemini model ID, for example: 'gemini-2.0-flash'
- The full resource name starts with 'projects/', for example:
  'projects/my-project-id/locations/us-central1/publishers/google/models/gemini-2.0-flash'
- The partial resource name with 'publishers/', for example:
  'publishers/google/models/gemini-2.0-flash' or
- `/` separated publisher and model name, for example:
  'google/gemini-2.0-flash'

For the `model` parameter, supported formats for Gemini API include:
- The Gemini model ID, for example: 'gemini-2.0-flash'
- The model name starts with 'models/', for example:
  'models/gemini-2.0-flash'
- For tuned models, the model name starts with 'tunedModels/',
  for example:
  'tunedModels/1234567890123456789'

Some models support multimodal input and output.

Built-in MCP support is an experimental feature.

Usage:

.. code-block:: python

  from google.genai import types
  from google import genai

  client = genai.Client(
      vertexai=True, project='my-project-id', location='us-central1'
  )

  async for chunk in await client.aio.models.generate_content_stream(
    model='gemini-2.0-flash',
    contents='''What is a good name for a flower shop that specializes in
      selling bouquets of dried flowers?'''
  ):
    print(chunk.text)
  # **Elegant & Classic:**
  # * The Dried Bloom
  # * Everlasting Florals
  # * Timeless Petals

  async for chunk in await client.aio.models.generate_content_stream(
    model='gemini-2.0-flash',
    contents=[
      types.Part.from_text('What is shown in this image?'),
      types.Part.from_uri('gs://generativeai-downloads/images/scones.jpg',
      'image/jpeg')
    ]
  ):
    print(chunk.text)
  # The image shows a flat lay arrangement of freshly baked blueberry
  # scones.
Nr  c                <   <"   S  R j  xL
  pV5x  K   LDR # 5iNr  rx   rz   r   r  rc  s   &&& r   base_async_generatorAAsyncModels.generate_content_stream.<locals>.base_async_generator  !     # 	 	%+	8   	r   rn  ro  c                <   <"   S  R j  xL
  pV5x  K   LDR # 5ir&  r  r'  s   &&& r   r(  r)    r*  r+  c                  <"   \         P                  ! V4      p\        P                  R V R24       . pRpRp^ pV^ 8  Ed   V^,          pSP	                  WVR7      G Rj  xL
 pV^8  d   \        P                  RV R24       V^,          pV^8  d   V^ 8X  d   \        P                  R4       \         P
                  ! VSRR7      p	V^8X  d   V  Rj  xL
  pV	'       g   \         P                  ! W4      pV5x  K/  VP                  '       dQ   VP                  ^ ,          P                  '       d.   VP                  ^ ,          P                  P                  '       g    M\         P                  ! Wi4      G Rj  xL
 pV'       d   K  \         P                  ! W4      pV5x  K  V  Rj  xL
  p\         P                  ! V4      '       d   VVn        \         P                  ! W4      pV5x  KJ  V	'       g   R# V'       g   R# Vf   EK  VP                  ^ ,          P                  p
\        P                  ! R	VR
7      p\        P                   ! V4      pV'       g   VP#                  V4       \%        V\&        4      '       d'   V
e#   VP)                  V
4       VP)                  V4       V
e   VP)                  V
4       VP)                  V4       EK  R#  EL} EL	 ELdEDL EL8ED:Tec   TP                  '       dQ   TP                  ^ ,          P                  '       d.   TP                  ^ ,          P                  P                  '       g   R# \         P                  ! Yi4      G Rj  xL 
 pEL5i)rp  rq  Nr  rr  rs  rt  Tr  ru  rv  )r   r  r  r  r  r  r  r  rV   r   r   r  r  r   r  r{   r}   r  r|  r  r  )rx   rz   r   r  r  r  r  r  rc  r  r  r  r!  r  s   &&&         r   r  <AsyncModels.generate_content_stream.<locals>.async_generator  s    #/#H#H#P kk23M2Na
P AC( e
a&*	Q666 7 
 
 q5
++(95
6"a'"q5/14
++H $44.t
 6 &  E%;;HLhk &&&))!,444))!,44:::$FF  "
 )('==hN &  E55f==4 6 $99(JHK 
"
=
!,,Q/77 %%!
 <<)1
,
3
3H
=h%%*;*G
//+
,
///
0(
,
3
34E
F*112GHm +
( &,X m%%%%%a(000%%a(00666 BB   s   AM9"K#A2M9K(K"K(8M9"M99,M9&M9K%	M9M9/K.3K+4K.7A	M9	M9AM9'A9M9"K(%M9(M9+K..M9"M9),M9M91M42M9)r   rw  r  r{  r  r|  r   r}  r   rf  r7   r@  r~  r  r8   r  r  r  )r  rx   rz   r   r  r  r(  r  r   r  r  r!  rc  s   f$$$       @@r   r  #AsyncModels.generate_content_streamd  s    F 	77? 
 88@@ .M- &&}5544 5  h "%=AA!	FE77	8	8<<<"%fll"3
fd##

7B'"%e*
	'	(,A	AiiC)C DED 	
 44 5  h "%=AA 88G_IB 5M::] 	A8sM   0F-F%"F-F-/F(0F-3F-?AF-A&F-+F+,:F-(F-+F-c          
         < V ^8  d   QhRS[ RS[ RS[S[P                  ,          RS[S[P
                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r  ;  r  r    c               H   "   V P                  VVVVR7      G Rj  xL
 #  L5i)a  Edits an image based on a text description and configuration.

Args:
  model (str): The model to use.
  prompt (str): A text description of the edit to apply to the image.
    reference_images (list[Union[RawReferenceImage, MaskReferenceImage,
    ControlReferenceImage, StyleReferenceImage, SubjectReferenceImage]): The
    reference images for editing.
  config (EditImageConfig): Configuration for editing.

Usage:

.. code-block:: python

  from google.genai.types import RawReferenceImage, MaskReferenceImage

  raw_ref_image = RawReferenceImage(
    reference_id=1,
    reference_image=types.Image.from_file(IMAGE_FILE_PATH),
  )

  mask_ref_image = MaskReferenceImage(
    reference_id=2,
    config=types.MaskReferenceConfig(
        mask_mode='MASK_MODE_FOREGROUND',
        mask_dilation=0.06,
    ),
  )
  response = await client.aio.models.edit_image(
    model='imagen-3.0-capability-001',
    prompt='man with dog',
    reference_images=[raw_ref_image, mask_ref_image],
    config=types.EditImageConfig(
        edit_mode= "EDIT_MODE_INPAINT_INSERTION",
        number_of_images= 1,
        include_rai_reason= True,
    )
  )
  response.generated_images[0].image.show()
  # Shows a man with a dog instead of a cat.
r  Nr  r  s   &$$$$r   r  AsyncModels.edit_image;  s6     b !!)	 "    s   " "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  s  s5     2 2 u3342 %++	2r    c                 "   \         P                  ! VR7      P                  ;'       g    \         P                  ! 4       pVP                  f   RVn        V P
                  P                  '       dG   VP                  4       pVP                  '       g%   VP                  pV'       d
   VR,           MRVn        \        RV P                  V P                  VR7      G Rj  xL
 V4      #  L	5i)a  Makes an API request to list the available models.

If `query_base` is set to True in the config or not set (default), the
API will return all available base models. If set to False, it will return
all tuned models.

Args:
  config (ListModelsConfigOrDict): Configuration for retrieving models.

Usage:

.. code-block:: python

  response = await client.aio.models.list(config={'page_size': 5})
  print(response.page)
  # [Model(name='projects/./locations/./models/123', display_name='my_model'

  response = await client.aio.models.list(
      config={'page_size': 5, 'query_base': True}
    )
  print(response.page)
  # [Model(name='publishers/google/models/gemini-2.0-flash-exp' ...
r  NTr  r  r  )r   r%  r   r  r~  r  r  r  r}  r   r(  r  s   &$ r   r  AsyncModels.lists  s     < 	##6299 	$ 	$!!#   f   {{}f}}  77% 	
 

jjj''	  	(s$   A/C*2!C*C*(6C*C(
C*c                j   < V ^8  d   QhRS[ RS[ RS[S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   r    r  r    c               x  "   V P                  VVVR7      G Rj  xL
 pRp. pV'       d   VP                  '       g   V# VP                   FO  pVP                  '       d*   VP                  P                  R8X  d   VP                  pK>  VP	                  V4       KQ  	  \
        P                  ! VVR7      pV#  L5i)a6  Generates images based on a text description and configuration.

Args:
  model (str): The model to use.
  prompt (str): A text description of the images to generate.
  config (GenerateImagesConfig): Configuration for generation.

Usage:

.. code-block:: python

  response = await client.aio.models.generate_images(
    model='imagen-3.0-generate-002',
    prompt='Man with a dog',
    config=types.GenerateImagesConfig(
        number_of_images= 1,
        include_rai_reason= True,
    )
  )
  response.generated_images[0].image.show()
  # Shows a man with a dog.
r  Nr  r  r  r  s	   &$$$     r   r  AsyncModels.generate_images  s     : .. /  L
 )-%|<<<'88

+
+
+//<< -<,M,M)0 9 ++)*KH O1s   B:B8B:B:A<B:c          
         < V ^8  d   QhRS[ RS[P                  RS[ RS[S[P                  ,          RS[P
                  /# r  r  )r   r  s   "r   r   r    r  r    c                 "   \         P                  ! VVVVR7       T;'       g    / p\        V\         P                  4      '       d   VP	                  4       pM\        V4      p\         P                  ! VP                  RR4      VP                  RR4      VP                  RR4      VP                  RR4      VP                  RR4      VP                  RR4      VP                  R	R4      VP                  R
R4      VP                  RR4      VP                  RR4      R7
      pRVR&   ^VR&   V P                  VVVVR7      G Rj  xL
 #  L5i)a  Makes an API request to upscale a provided image.

Args:
  model (str): The model to use.
  image (Image): The input image for upscaling.
  upscale_factor (str): The factor to upscale the image (x2 or x4).
  config (UpscaleImageConfig): Configuration for upscaling.

Usage:

.. code-block:: python

  from google.genai.types import Image

  IMAGE_FILE_PATH="my-image.png"
  response = await client.aio.models.upscale_image(
      model='imagen-3.0-generate-001',
      image=types.Image.from_file(IMAGE_FILE_PATH),
      upscale_factor='x2',
  )
  response.generated_images[0].image.show()
  # Opens my-image.png which is upscaled by a factor of 2.
r  r  Nr   r   r   r   r   r   rc  rd  r   r  r  r[  r   r  r  s   &$$$$  r   r  AsyncModels.upscale_image  sJ    B 
  %	 \\rF&%2233$$&j<j11^^ND9!~~&6=&NN+@$G$..)<dC%>>*>E#(:DA#->>($$
 'NN+@$G",..'#
 ~~h-J$ #Jv%&J!"$$%	 %    s   EEEEc                   < V ^8  d   QhRS[ RS[S[ ,          RS[S[P                  ,          RS[S[P                  ,          RS[S[P
                  ,          RS[S[P                  ,          RS[P                  /# rR  rS  )r   r  s   "r   r   r  (   r  r    c          
     $  "   V'       g   V'       g	   V'       d   V'       d   \        R4      h/ pV P                  P                  '       g   V'       d   \        V\        P
                  4      '       d   VP                  4       pM\        V4      pVP                  R4      '       dN   VP                  R4      '       d7   \        P
                  ! VP                  R4      VP                  R4      R7      pEMyV P                  P                  '       Eg]   V'       EdT   \        V\        P                  4      '       d$   VP                  4       pVP                  R/ 4      pMo\        V4      p\        VP                  R4      \        P
                  4      '       d6   VP                  R\        P
                  ! 4       4      p	V	P                  4       pV'       d   VP                  R4      '       d   VP                  R4      '       dl   \        P                  ! VP                  R4      VP                  R4      \        P
                  ! VP                  R4      VP                  R4      R7      R7      pV P                  VVVVVVR	7      G R
j  xL
 #  L5i)r  rz  r|  rP   r  r  r
  r  r  rZ  Nr  r  r  s
   &$$$$$$   r   r  AsyncModels.generate_videos(   s    b 	%5f' 
 !#I$$$	E5;;	'	'$$&	K		u		)--">">e$	k0J
 &&&66	FE66	7	7&&(
NN7B/	&\
jnnW-u{{;;#->>'5;;=#I)**,)	y}}U++	m0L0L++>>(+..)++MM%(#--4
 && '    sZ   JJJ(JJAJ'J>AJJB9JJ-JBJ	J
Jc                   < V ^8  d   QhRS[ RS[S[P                  S[P                  3,          RS[S[P                  ,          RS[P                  /# r  ra  )r   r  s   "r   r   r     rb  r    c                 "   V P                   P                  '       g   V P                  WVR7      G Rj  xL
 # \        P                  ! V4      '       do   \        P
                  ! V4      p\        V4      ^8  d   \        R4      hV P                  VVV^ ,          \        P                  P                  VR7      G Rj  xL
 # V P                  VV\        P                  P                  VR7      G Rj  xL
 #  L L; L5i)a  Calculates embeddings for the given contents.

Args:
  model (str): The model to use.
  contents (list[Content]): The contents to embed.
  config (EmbedContentConfig): Optional configuration for embeddings.

Usage:

.. code-block:: python

  embeddings = await client.aio.models.embed_content(
      model= 'text-embedding-004',
      contents=[
          'What is your name?',
          'What is your favorite color?',
      ],
      config={
          'output_dimensionality': 64
      },
  )

  # Multimodal embeddings are only supported for the Vertex AI API.
  multimodal_embeddings = await client.aio.models.embed_content(
      model='gemini-embedding-2-exp-11-2025',
      contents=[
          types.Part.from_uri(
              file_uri='gs://generativeai-downloads/images/scones.jpg',
              mime_type='image/jpeg',
          ),
      ],
      config={
          'output_dimensionality': 64
      },
  )
r  Nrd  r  )rx   rz   r'  r   re  rg  s   &$$$ r   ri  AsyncModels.embed_content   s    V $$$&& '    	((//LL2	 	!A	%
 	
 &&%a("33AA '    &&"33;;	 '   %s:   3C?C9C?A)C??C; 4C?4C=5C?;C?=C?r  )r  r  r  r  r  r  r  r  r  r  r  r  r@  r(  r2  r;  rF  rO  r^  r  r  r  r  r  r  r  ri  r  r  r  s   @r   r  r  "  s    O
 =AO ObY
 =AY Yvh h h >Bh :>h hTJ
 <@J JX@ 7;@ @D@ >B@ @Dj
 <@j jXV
 :>V Vp=JN= =~G@DG GR@ 9=	@ @DF 9=	F FP]
 9=] ]~R
 ;?R RhN #	N
 ,0N ,0N <@N <@N N`
 =A BU;
 =AU; U;n6 7;6 6p2 8<2 2h5
 <@5 5nH :>H HT[ #	[
 ,0[ ,0[ <@[ <@[ [zC
 :>C C Cr    r  )NN)r  loggingtypingr   r   r   r   r   r   urllib.parser	    r
   r   rj  r   r   r   r   r{   r   r   r  r   r   rE   r   rF   pagersr   r   	getLoggerr  r(   r,   r0   rI   rR   rk   rh   r   r   r   r   r   r~   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r$  r-  r2  r5  r:  rC  rI  rN  rU  r]  rg  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  r$  r   rF  rI  rP  rZ  r  r  r6  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  r#  r  r  r  r  r   r  rU  rY  r]  r`  rh  rm  rp  r  r  r  r<  r?  r  r  
BaseModuler  r  r  r    r   <module>rI     sg  $   K K "  *        & . . % 
		0	1Q
Q
Q   F $6 6r   6 *  * , , & .% %P @ @ 0 " " "  v vr   F 0 BN Nb) )X2 2j 0% %P " $ 0 2# #Lv vrs sl! !H! !H! !H! !Hn nbv vr 2 2   F   Fd dNx xv( (V$ $N) )X) )X B B 8 8 . @" "J   $o od " " * 6% %P- -` ( , , , B B   6 6 (7 7t6 6rM M`; ;| $L L^ 6 & B5 5p 0 0 $  ) )X 6 & < @ 6F FR= =@ 2 . . , ,L L^! !H 0 & , & , , , ,d[## dN=f+(( fr    