
    (ph8                     p    S r SSKJr  SSKrSSKJr   " S S\5      r	 " S S\5      r
S	 r " S
 S\5      rg)zEClient and server classes corresponding to protobuf-defined services.    )	empty_pb2N)operations_proto_pb2c                       \ rS rSrSrS rSrg)OperationsStub   =  Manages long-running operations with an API service.

When an API method normally takes long time to complete, it can be designed
to return [Operation][google.longrunning.Operation] to the client, and the client can use this
interface to receive the real response asynchronously by polling the
operation resource, or pass the operation resource to another API (such as
Google Cloud Pub/Sub API) to receive the response.  Any API service that
returns long-running operations should implement the `Operations` interface
so developers can have a consistent client experience.
c                    UR                  S[        R                  R                  [        R                  R
                  S9U l        UR                  S[        R                  R                  [        R                  R
                  S9U l	        UR                  S[        R                  R                  [        R                  R
                  S9U l        UR                  S[        R                  R                  [        R                  R
                  S9U l        UR                  S[        R                   R                  [        R                  R
                  S9U l        g)z1Constructor.

Args:
    channel: A grpc.Channel.
-/google.longrunning.Operations/ListOperations)request_serializerresponse_deserializer+/google.longrunning.Operations/GetOperation./google.longrunning.Operations/DeleteOperation./google.longrunning.Operations/CancelOperation,/google.longrunning.Operations/WaitOperationN)unary_unary*google_dot_longrunning_dot_operations__pb2ListOperationsRequestSerializeToStringListOperationsResponse
FromStringListOperationsGetOperationRequest	OperationGetOperationDeleteOperationRequest"google_dot_protobuf_dot_empty__pb2EmptyDeleteOperationCancelOperationRequestCancelOperationWaitOperationRequestWaitOperation)selfchannels     Y/var/www/html/venv/lib/python3.13/site-packages/google/longrunning/operations_pb2_grpc.py__init__OperationsStub.__init__&   s)    &11;I__qq"L"c"c"n"n 2 

 $//9I]]oo"L"V"V"a"a 0 

  '22<I``rr"D"J"J"U"U  3  

  '22<I``rr"D"J"J"U"U  3  

 %00:I^^pp"L"V"V"a"a 1 
    )r    r   r   r   r"   N)__name__
__module____qualname____firstlineno____doc__r&   __static_attributes__ r(   r%   r   r      s    	
r(   r   c                   6    \ rS rSrSrS rS rS rS rS r	Sr
g	)
OperationsServicerG   r   c                     UR                  [        R                  R                  5        UR	                  S5        [        S5      e)a_  Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns `UNIMPLEMENTED`.

NOTE: the `name` binding allows API services to override the binding
to use different resource name schemes, such as `users/*/operations`. To
override the binding, API services can add a binding such as
`"/v1/{name=users/*}/operations"` to their service configuration.
For backwards compatibility, the default name includes the operations
collection id, however overriding users must ensure the name binding
is the parent resource, without the operations collection id.
Method not implemented!set_codegrpc
StatusCodeUNIMPLEMENTEDset_detailsNotImplementedErrorr#   requestcontexts      r%   r   !OperationsServicer.ListOperationsS   7     	66756!";<<r(   c                     UR                  [        R                  R                  5        UR	                  S5        [        S5      e)zGets the latest state of a long-running operation.  Clients can use this
method to poll the operation result at intervals as recommended by the API
service.
r4   r5   r<   s      r%   r   OperationsServicer.GetOperationc   s7    
 	66756!";<<r(   c                     UR                  [        R                  R                  5        UR	                  S5        [        S5      e)zDeletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.
r4   r5   r<   s      r%   r   "OperationsServicer.DeleteOperationl   s7     	66756!";<<r(   c                     UR                  [        R                  R                  5        UR	                  S5        [        S5      e)a  Starts asynchronous cancellation on a long-running operation.  The server
makes a best effort to cancel the operation, but success is not
guaranteed.  If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.  Clients can use
[Operations.GetOperation][google.longrunning.Operations.GetOperation] or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
corresponding to `Code.CANCELLED`.
r4   r5   r<   s      r%   r    "OperationsServicer.CancelOperationv   r@   r(   c                     UR                  [        R                  R                  5        UR	                  S5        [        S5      e)a_  Waits until the specified long-running operation is done or reaches at most
a specified timeout, returning the latest state.  If the operation is
already done, the latest state is immediately returned.  If the timeout
specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
timeout is used.  If the server does not support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.
Note that this method is on a best-effort basis.  It may return the latest
state before the specified timeout (including immediately), meaning even an
immediate response is no guarantee that the operation is done.
r4   r5   r<   s      r%   r"    OperationsServicer.WaitOperation   s7     	66756!";<<r(   r/   N)r)   r*   r+   r,   r-   r   r   r   r    r"   r.   r/   r(   r%   r1   r1   G   s     	= === =r(   r1   c           
      r   [         R                  " U R                  [        R                  R
                  [        R                  R                  S9[         R                  " U R                  [        R                  R
                  [        R                  R                  S9[         R                  " U R                  [        R                  R
                  [        R                  R                  S9[         R                  " U R                  [        R                   R
                  [        R                  R                  S9[         R                  " U R"                  [        R$                  R
                  [        R                  R                  S9S.n[         R&                  " SU5      nUR)                  U45        g )N)request_deserializerresponse_serializer)r   r   r   r    r"   zgoogle.longrunning.Operations)r7   unary_unary_rpc_method_handlerr   r   r   r   r   r   r   r   r   r   r   r   r   r    r   r"   r!   method_handlers_generic_handleradd_generic_rpc_handlers)servicerserverrpc_method_handlersgeneric_handlers       r%    add_OperationsServicer_to_serverrS      sF   ==##!K!a!a!l!l J a a s s

 ;;!!!K!_!_!j!j J T T f f

  >>$$!K!b!b!m!m B H H Z Z

  >>$$!K!b!b!m!m B H H Z Z

 <<""!K!`!`!k!k J T T f f
+6 ::')<O ##_$67r(   c                       \ rS rSrSr\        S
S j5       r\        S
S j5       r\        S
S j5       r\        S
S j5       r	\        S
S	 j5       r
Srg)
Operations   r   r/   Nc
                     [         R                  R                  U US[        R                  R
                  [        R                  R                  UUUUUUUU	5      $ )Nr
   )r7   experimentalr   r   r   r   r   r   
r=   targetoptionschannel_credentialscall_credentialsinsecurecompressionwait_for_readytimeoutmetadatas
             r%   r   Operations.ListOperations   s\       ,,;6LL^^6MMXX
 	
r(   c
                     [         R                  R                  U US[        R                  R
                  [        R                  R                  UUUUUUUU	5      $ )Nr   )r7   rX   r   r   r   r   r   r   rY   s
             r%   r   Operations.GetOperation   s\       ,,96JJ\\6@@KK
 	
r(   c
                     [         R                  R                  U US[        R                  R
                  [        R                  R                  UUUUUUUU	5      $ )Nr   )	r7   rX   r   r   r   r   r   r   r   rY   s
             r%   r   Operations.DeleteOperation   \       ,,<6MM__.44??
 	
r(   c
                     [         R                  R                  U US[        R                  R
                  [        R                  R                  UUUUUUUU	5      $ )Nr   )	r7   rX   r   r   r   r   r   r   r   rY   s
             r%   r    Operations.CancelOperation  rh   r(   c
                     [         R                  R                  U US[        R                  R
                  [        R                  R                  UUUUUUUU	5      $ )Nr   )r7   rX   r   r   r!   r   r   r   rY   s
             r%   r"   Operations.WaitOperation9  s\       ,,:6KK]]6@@KK
 	
r(   )r/   NNFNNNN)r)   r*   r+   r,   r-   staticmethodr   r   r   r    r"   r.   r/   r(   r%   rU   rU      s    	   
 
8   
 
8   
 
8   
 
8   
 
r(   rU   )r-   google.protobufr   r   r7   google.longrunningr   r   objectr   r1   rS   rU   r/   r(   r%   <module>rq      sF   " L K 
*
V *
ZL= L=^8F[
 [
r(   