+
    Ti                         R t ^ RIt^ RIHtHtHtHtHtHtH	t	H
t
Ht ^RIHt ^RIHt ]
! R4      t]	R,          t ! R R]],          4      t ! R R	]],          4      t ! R
 R]],          4      tR# )zPagers for the GenAI List APIs.N)	AnyAsyncIterator	AwaitableCallableGenericIteratorLiteralTypeVarUnion)_common)typesTc                   
  a  ] tR t^&t o RtV 3R lR ltV 3R lR lt]V 3R lR l4       t]V 3R lR	 l4       t	]V 3R
 lR l4       t
]V 3R lR l4       t]V 3R lR l4       tV 3R lR ltV 3R lR ltV 3R lR ltRtV tR# )
_BasePagerz9Base pager class for iterating through paginated results.c          
      J   < V ^8  d   QhRS[ RS[RS[3,          RS[RS[RR/# )   namerequest.responseconfigreturnN	PagedItemr   r   )format__classdict__s   "^/home/kuhnn/.local/share/uv/tools/nano-pdf/lib/python3.14/site-packages/google/genai/pagers.py__annotate___BasePager.__annotate__)   sM     L LL S!L 	L
 L L    c                   Wn         W n        \        W0P                   4      ;'       g    . V n        ^ V n        \        VRR4      V n        V'       g   / pM8\        V\        4      '       d   \        P                  ! V4      pM\        V4      p\        VR4      VR&   WPn
        VP                  R\        V P                  4      4      V n        R# )    sdk_http_responseNnext_page_token
page_token	page_size)_name_requestgetattr_page_idx_sdk_http_response
isinstancedictcopydeepcopy_configgetlen
_page_size)selfr   r   r   r   request_configs   &&&&& r   
_init_page_BasePager._init_page)   s     JM::.44"DJDI%h0CTJDn	FD	!	!}}V,nF|n#*85F#GN< !L)--k3tzz?KDOr   c                F   < V ^8  d   QhRS[ RS[RS[3,          RS[RS[/# r   r   r   .r   r   r   )r   r   s   "r   r   r   C   s<     5 55 S!5 	5
 5r   c                *    V P                  WW44       R # N)r5   )r3   r   r   r   r   s   &&&&&r   __init___BasePager.__init__C   s     	OOD84r   c                0   < V ^8  d   QhRS[ S[,          /# r   r   listr   )r   r   s   "r   r   r   M   s      DG r   c                    V P                   # )aC  Returns a subset of the entire list of items.

For the number of items returned, see `pageSize()`.

Usage:

.. code-block:: python

  batch_jobs_pager = client.batches.list(config={'page_size': 5})
  print(f"first page: {batch_jobs_pager.page}")
  # first page: [BatchJob(name='projects/./locations/./batchPredictionJobs/1
)r(   r3   s   &r   page_BasePager.pageL   s     ::r   c                    < V ^8  d   QhRS[ /# r>   )r   )r   r   s   "r   r   r   ^   s      I r   c                    V P                   # )zReturns the type of paged item (for example, ``batch_jobs``).

Usage:

.. code-block:: python

  batch_jobs_pager = client.batches.list(config={'page_size': 5})
  print(f"name: {batch_jobs_pager.name}")
  # name: batch_jobs
)r%   rB   s   &r   r   _BasePager.name]   s     ::r   c                    < V ^8  d   QhRS[ /# r>   int)r   r   s   "r   r   r   m   s       r   c                    V P                   # )zReturns the maximum number of items fetched by the pager at one time.

Usage:

.. code-block:: python

  batch_jobs_pager = client.batches.list(config={'page_size': 5})
  print(f"page_size: {batch_jobs_pager.page_size}")
  # page_size: 5
)r2   rB   s   &r   r$   _BasePager.page_sizel   s     ??r   c                H   < V ^8  d   QhRS[ S[P                  R3,          /# )r   r   N)r
   r   HttpResponse)r   r   s   "r   r   r   |   s$     # #u'9'94'?!@ #r   c                    V P                   # )z.Returns the http response of the API response.)r*   rB   s   &r   r!   _BasePager.sdk_http_response{   s     """r   c                4   < V ^8  d   QhRS[ P                  /# r>   )r   
StringDict)r   r   s   "r   r   r      s      g(( r   c                    V P                   # )a  Returns the configuration when making the API request for the next page.

A configuration is a set of optional parameters and arguments that can be
used to customize the API request. For example, the ``page_token`` parameter
contains the token to request the next page.

Usage:

.. code-block:: python

  batch_jobs_pager = client.batches.list(config={'page_size': 5})
  print(f"config: {batch_jobs_pager.config}")
  # config: {'page_size': 5, 'page_token': 'AMEw9yO5jnsGnZJLHSKDFHJJu'}
)r/   rB   s   &r   r   _BasePager.config   s    " <<r   c                    < V ^8  d   QhRS[ /# r>   rI   )r   r   s   "r   r   r      s      s r   c                ,    \        V P                  4      # )z6Returns the total number of items in the current page.)r1   rC   rB   s   &r   __len___BasePager.__len__   s    tyy>r   c                &   < V ^8  d   QhRS[ RS[/# )r   indexr   )rJ   r   )r   r   s   "r   r   r      s      s q r   c                (    V P                   V,          # )z$Returns the item at the given index.)rC   )r3   rZ   s   &&r   __getitem___BasePager.__getitem__   s    99Ur   c                $   < V ^8  d   QhRS[ RR/# )r   r   r   N)r   )r   r   s   "r   r   r      s     	E 	Ec 	Ed 	Er   c                h    V P                  V P                  V P                  WP                  4       R# )zInitializes the next page from the response.

This is an internal method that should be called by subclasses after
fetching the next page.

Args:
  response: The response object from the API request.
N)r5   r   r&   r   r3   r   s   &&r   _init_next_page_BasePager._init_next_page   s      	OODIIt}}hDr   )r/   r)   r%   r(   r2   r&   r*   N)__name__
__module____qualname____firstlineno____doc__r5   r;   propertyrC   r   r$   r!   r   rW   r\   ra   __static_attributes____classdictcell__r   s   @r   r   r   &   s     AL L45 5        # #
  $  	E 	Er   r   c                   Z   a  ] tR t^t o RtV 3R lR ltV 3R lR ltV 3R lR ltRtV t	R	# )
Pagerz4Pager class for iterating through paginated results.c                    < V ^8  d   QhRS[ /# r>   r   )r   r   s   "r   r   Pager.__annotate__   s     
 
 
r   c                    V P                   \        V 4      8  d    V P                  4        V P
                  V P                   ,          pV ;P                   ^,          un         V#   \         d    \        hi ; i)zReturns the next item.)r)   r1   	next_page
IndexErrorStopIterationrC   r3   items   & r   __next__Pager.__next__   s^    yyCI 99TYYDIINIK  s   A$ $A6c                0   < V ^8  d   QhRS[ S[,          /# r>   )r   r   )r   r   s   "r   r   rp      s       r   c                    ^ V n         V # )z#Returns an iterator over the items.r)   rB   s   &r   __iter__Pager.__iter__       DIKr   c                0   < V ^8  d   QhRS[ S[,          /# r>   r?   )r   r   s   "r   r   rp      s      a r   c                    V P                   P                  R4      '       g   \        R4      hV P                  V P                   R7      pV P	                  V4       V P
                  # )a  Fetches the next page of items. This makes a new API request.

Usage:

.. code-block:: python

  batch_jobs_pager = client.batches.list(config={'page_size': 5})
  print(f"current page: {batch_jobs_pager.page}")
  batch_jobs_pager.next_page()
  print(f"next page: {batch_jobs_pager.page}")
  # current page: [BatchJob(name='projects/.../batchPredictionJobs/1
  # next page: [BatchJob(name='projects/.../batchPredictionJobs/6
r#   No more pages to fetch.r   r   r0   rs   r&   ra   rC   r`   s   & r   rr   Pager.next_page   sO     ;;??<((011}}DKK}0H"99r   r{   N)
rc   rd   re   rf   rg   rw   r|   rr   ri   rj   rk   s   @r   rm   rm      s&     <
 
 
 r   rm   c                   x   a a ] tR t^t oRtV3R lV 3R lltV3R lR ltV3R lR ltV3R lR	 ltR
t	Vt
V ;t# )
AsyncPagerz9AsyncPager class for iterating through paginated results.c                V   < V ^8  d   QhRS[ RS[RS[S[,          3,          RS[RS[/# r8   )r   r   r   r   )r   r   s   "r   r   AsyncPager.__annotate__   sA     6 66 Ys^+,6 	6
 6r   c                (   < \         SV `  WW44       R # r:   )superr;   )r3   r   r   r   r   	__class__s   &&&&&r   r;   AsyncPager.__init__   s     
GTH5r   c                0   < V ^8  d   QhRS[ S[,          /# r>   )r   r   )r   r   s   "r   r   r      s      q) r   c                    ^ V n         V # )z)Returns an async iterator over the items.r{   rB   s   &r   	__aiter__AsyncPager.__aiter__   r~   r   c                    < V ^8  d   QhRS[ /# r>   ro   )r   r   s   "r   r   r      s     
 
q 
r   c                  "   V P                   \        V 4      8  d    V P                  4       G Rj  xL
  V P
                  V P                   ,          pV ;P                   ^,          un         V#  L<  \         d    \        hi ; i5i)z%Returns the next item asynchronously.N)r)   r1   rr   rs   StopAsyncIterationrC   ru   s   & r   	__anext__AsyncPager.__anext__   si     yyCI!nn 99TYYDIINIK 	 !  !s+   BA0 A.A0 8B.A0 0BBc                0   < V ^8  d   QhRS[ S[,          /# r>   r?   )r   r   s   "r   r   r      s      tAw r   c                   "   V P                   P                  R4      '       g   \        R4      hV P                  V P                   R7      G Rj  xL
 pV P	                  V4       V P
                  #  L!5i)a  Fetches the next page of items asynchronously.

This makes a new API request.

Returns:
  The next page of items.

Raises:
  IndexError: No more pages to fetch.

Usage:

.. code-block:: python

  batch_jobs_pager = await client.aio.batches.list(config={'page_size': 5})
  print(f"current page: {batch_jobs_pager.page}")
  await batch_jobs_pager.next_page()
  print(f"next page: {batch_jobs_pager.page}")
  # current page: [BatchJob(name='projects/.../batchPredictionJobs/1
  # next page: [BatchJob(name='projects/.../batchPredictionJobs/6
r#   r   r   Nr   r`   s   & r   rr   AsyncPager.next_page   sZ     . ;;??<((011]]$++]66H"99 7s   AA2A0"A2r{   )rc   rd   re   rf   rg   r;   r   r   rr   ri   rj   __classcell__)r   r   s   @@r   r   r      s5     A6 6 

 
  r   r   )
batch_jobsmodelstuning_jobsfilescached_contentsfile_search_stores	documents)rg   r-   typingr   r   r   r   r   r   r   r	   r
    r   r   r   r   r   rm   r    r   r   <module>r      sl     &  f f f  CL	E ED(JqM (V9A 9r   