
    (ph                     T   S r SSKrSSKrSSKrSSKJr  SSKJr  SSKJr  SSKJ	r	   " S S\
5      r " S	 S
\R                  " S
S5      5      r " S S\
\R                  S9r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\R.                  5      r " S S \\R                  S9r " S! S"\\R                  S9r " S# S$\R.                  5      r " S% S&\R.                  5      r " S' S(\R.                  5      r " S) S*\R.                  5      r " S+ S,\R.                  5      r " S- S.\R.                  5      r  " S/ S0\R.                  5      r! " S1 S2\R.                  5      r" " S3 S4\R.                  5      r#g)5z4Interfaces defining the Face layer of RPC Framework.    N)cardinality)style)future)streamc                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )NoSuchMethodError   zRaised by customer code to indicate an unrecognized method.

Attributes:
  group: The group of the unrecognized method.
  name: The name of the unrecognized method.
c                 B   > [         [        U ]  5         Xl        X l        g)zConstructor.

Args:
  group: The group identifier of the unrecognized RPC name.
  method: The method identifier of the unrecognized RPC name.
N)superr   __init__groupmethod)selfr   r   	__class__s      V/var/www/html/venv/lib/python3.13/site-packages/grpc/framework/interfaces/face/face.pyr   NoSuchMethodError.__init__&   s     	/1
    c                 @    SU R                   < SU R                  < S3$ )Nzface.NoSuchMethodError(z, )r   r   r   s    r   __repr__NoSuchMethodError.__repr__1   s    JJKK
 	
r   r   )	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classcell__r   s   @r   r   r      s    	
 
r   r   c                   `    \ rS rSrSr\R                   " S S\R                  5      5       rSr	g)Abortion8   a/  A value describing RPC abortion.

Attributes:
  kind: A Kind value identifying how the RPC failed.
  initial_metadata: The initial metadata from the other side of the RPC or
    None if no initial metadata value was received.
  terminal_metadata: The terminal metadata from the other side of the RPC or
    None if no terminal metadata value was received.
  code: The code value from the other side of the RPC or None if no code value
    was received.
  details: The details value from the other side of the RPC or None if no
    details value was received.
c                   4    \ rS rSrSrSrSrSrSrSr	Sr
S	rS
rg)Abortion.KindR   zTypes of RPC abortion.	cancelledexpiredzlocal shutdownzremote shutdownznetwork failurezlocal failurezremote failure N)r   r   r   r   r   	CANCELLEDEXPIREDLOCAL_SHUTDOWNREMOTE_SHUTDOWNNETWORK_FAILURELOCAL_FAILUREREMOTE_FAILUREr   r*   r   r   Kindr&   R   s(    $	)++')r   r2   r*   N)
r   r   r   r   r   enumuniqueEnumr2   r   r*   r   r   r#   r#   8   s*     
[[	*tyy 	* 	*r   r#   )kindinitial_metadataterminal_metadatacodedetailsc                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )AbortionError_   a  Common super type for exceptions indicating RPC abortion.

initial_metadata: The initial metadata from the other side of the RPC or
  None if no initial metadata value was received.
terminal_metadata: The terminal metadata from the other side of the RPC or
  None if no terminal metadata value was received.
code: The code value from the other side of the RPC or None if no code value
  was received.
details: The details value from the other side of the RPC or None if no
  details value was received.
c                 Z   > [         [        U ]  5         Xl        X l        X0l        X@l        g )N)r   r<   r   r7   r8   r9   r:   )r   r7   r8   r9   r:   r   s        r   r   AbortionError.__init__l   s&    mT+- 0!2	r   c                 n    U R                   R                  < SU R                  < SU R                  < S3$ )Nz(code=z, details="z"))r   r   r9   r:   r   s    r   __str__AbortionError.__str__s   s'    NN##IILL
 	
r   )r9   r:   r7   r8   )	r   r   r   r   r   r   rA   r   r    r!   s   @r   r<   r<   _   s    

 
r   r<   )	metaclassc                       \ rS rSrSrSrg)CancellationError{   z)Indicates that an RPC has been cancelled.r*   Nr   r   r   r   r   r   r*   r   r   rE   rE   {   s    3r   rE   c                       \ rS rSrSrSrg)ExpirationError   z0Indicates that an RPC has expired ("timed out").r*   NrG   r*   r   r   rI   rI      s    :r   rI   c                       \ rS rSrSrSrg)LocalShutdownError   zCIndicates that an RPC has terminated due to local shutdown of RPCs.r*   NrG   r*   r   r   rL   rL      s    Mr   rL   c                       \ rS rSrSrSrg)RemoteShutdownError   zDIndicates that an RPC has terminated due to remote shutdown of RPCs.r*   NrG   r*   r   r   rO   rO      s    Nr   rO   c                       \ rS rSrSrSrg)NetworkError   z2Indicates that some error occurred on the network.r*   NrG   r*   r   r   rR   rR      s    <r   rR   c                       \ rS rSrSrSrg)
LocalError   z;Indicates that an RPC has terminated due to a local defect.r*   NrG   r*   r   r   rU   rU      s    Er   rU   c                       \ rS rSrSrSrg)RemoteError   z<Indicates that an RPC has terminated due to a remote defect.r*   NrG   r*   r   r   rX   rX      s    Fr   rX   c                       \ rS rSrSr\R                  S 5       r\R                  S 5       r\R                  S 5       r	\R                  S 5       r
\R                  S 5       rSrg	)

RpcContext   z,Provides RPC-related information and action.c                     [        5       e)z6Describes whether the RPC is active or has terminated.NotImplementedErrorr   s    r   	is_activeRpcContext.is_active   s     "##r   c                     [        5       e)zDescribes the length of allowed time remaining for the RPC.

Returns:
  A nonnegative float indicating the length of allowed time in seconds
  remaining for the RPC to complete before it is considered to have timed
  out.
r^   r   s    r   time_remainingRpcContext.time_remaining   s     "##r   c                     [        5       e)zRegisters a callback to be called if the RPC is aborted.

Args:
  abortion_callback: A callable to be called and passed an Abortion value
    in the event of RPC abortion.
r^   )r   abortion_callbacks     r   add_abortion_callback RpcContext.add_abortion_callback        "##r   c                     [        5       e)zRCancels the RPC.

Idempotent and has no effect if the RPC has already terminated.
r^   r   s    r   cancelRpcContext.cancel   s     "##r   c                     [        5       e)zAccesses a custom object specified by an implementation provider.

Returns:
  A value specified by the provider of a Face interface implementation
    affording custom state and behavior.
r^   r   s    r   protocol_contextRpcContext.protocol_context   ri   r   r*   N)r   r   r   r   r   abcabstractmethodr`   rc   rg   rk   rn   r   r*   r   r   r[   r[      s    6$ $ 	$ $ 	$ $ 	$ $ 	$ $r   r[   c                       \ rS rSrSr\R                  S 5       r\R                  S 5       r\R                  S 5       r	\R                  S 5       r
Srg)	Call   z*Invocation-side utility object for an RPC.c                     [        5       e)a0  Accesses the initial metadata from the service-side of the RPC.

This method blocks until the value is available or is known not to have been
emitted from the service-side of the RPC.

Returns:
  The initial metadata object emitted by the service-side of the RPC, or
    None if there was no such value.
r^   r   s    r   r7   Call.initial_metadata        "##r   c                     [        5       e)a2  Accesses the terminal metadata from the service-side of the RPC.

This method blocks until the value is available or is known not to have been
emitted from the service-side of the RPC.

Returns:
  The terminal metadata object emitted by the service-side of the RPC, or
    None if there was no such value.
r^   r   s    r   r8   Call.terminal_metadata   rw   r   c                     [        5       e)a  Accesses the code emitted by the service-side of the RPC.

This method blocks until the value is available or is known not to have been
emitted from the service-side of the RPC.

Returns:
  The code object emitted by the service-side of the RPC, or None if there
    was no such value.
r^   r   s    r   r9   	Call.code   rw   r   c                     [        5       e)a)  Accesses the details value emitted by the service-side of the RPC.

This method blocks until the value is available or is known not to have been
emitted from the service-side of the RPC.

Returns:
  The details value emitted by the service-side of the RPC, or None if there
    was no such value.
r^   r   s    r   r:   Call.details   rw   r   r*   N)r   r   r   r   r   rp   rq   r7   r8   r9   r:   r   r*   r   r   rs   rs      sk    4
$ 
$ 	
$ 
$ 	
$ 
$ 	
$ 
$r   rs   c                       \ rS rSrSr\R                  S 5       r\R                  S 5       r\R                  S 5       r	\R                  S 5       r
\R                  S 5       rSrg	)
ServicerContext   z2A context object passed to method implementations.c                     [        5       e)a)  Accesses the metadata from the invocation-side of the RPC.

This method blocks until the value is available or is known not to have been
emitted from the invocation-side of the RPC.

Returns:
  The metadata object emitted by the invocation-side of the RPC, or None if
    there was no such value.
r^   r   s    r   invocation_metadata#ServicerContext.invocation_metadata  rw   r   c                     [        5       e)a8  Accepts the service-side initial metadata value of the RPC.

This method need not be called by method implementations if they have no
service-side initial metadata to transmit.

Args:
  initial_metadata: The service-side initial metadata value of the RPC to
    be transmitted to the invocation side of the RPC.
r^   r   r7   s     r   r7    ServicerContext.initial_metadata  rw   r   c                     [        5       e)a<  Accepts the service-side terminal metadata value of the RPC.

This method need not be called by method implementations if they have no
service-side terminal metadata to transmit.

Args:
  terminal_metadata: The service-side terminal metadata value of the RPC to
    be transmitted to the invocation side of the RPC.
r^   )r   r8   s     r   r8   !ServicerContext.terminal_metadata  rw   r   c                     [        5       e)zAccepts the service-side code of the RPC.

This method need not be called by method implementations if they have no
code to transmit.

Args:
  code: The code of the RPC to be transmitted to the invocation side of the
    RPC.
r^   )r   r9   s     r   r9   ServicerContext.code)  rw   r   c                     [        5       e)a  Accepts the service-side details of the RPC.

This method need not be called by method implementations if they have no
service-side details to transmit.

Args:
  details: The service-side details value of the RPC to be transmitted to
    the invocation side of the RPC.
r^   )r   r:   s     r   r:   ServicerContext.details6  rw   r   r*   N)r   r   r   r   r   rp   rq   r   r7   r8   r9   r:   r   r*   r   r   r   r      s    <
$ 
$ 	
$ 
$ 	
$ 
$ 	
$ 
$ 	
$ 
$r   r   c                       \ rS rSrSr\R                  S 5       r\R                  S 5       r\R                  S 5       r	Sr
g)ResponseReceiveriD  z;Invocation-side object used to accept the output of an RPC.c                     [        5       e)zReceives the initial metadata from the service-side of the RPC.

Args:
  initial_metadata: The initial metadata object emitted from the
    service-side of the RPC.
r^   r   s     r   r7   !ResponseReceiver.initial_metadataG  ri   r   c                     [        5       e)zReceives a response from the service-side of the RPC.

Args:
  response: A response object emitted from the service-side of the RPC.
r^   )r   responses     r   r   ResponseReceiver.responseQ  s     "##r   c                     [        5       e)a:  Receives the completion values emitted from the service-side of the RPC.

Args:
  terminal_metadata: The terminal metadata object emitted from the
    service-side of the RPC.
  code: The code object emitted from the service-side of the RPC.
  details: The details object emitted from the service-side of the RPC.
r^   )r   r8   r9   r:   s       r   completeResponseReceiver.completeZ  s     "##r   r*   N)r   r   r   r   r   rp   rq   r7   r   r   r   r*   r   r   r   r   D  sQ    E$ $ 	$ $ 		$ 	$r   r   c                       \ rS rSrSr\R                     SS j5       r\R                  S	S j5       r\R                    S	S j5       r	Sr
g)
UnaryUnaryMultiCallableig  z5Affords invoking a unary-unary RPC in any call style.Nc                     [        5       e)a~  Synchronously invokes the underlying RPC.

Args:
  request: The request value for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of
    the RPC.
  with_call: Whether or not to include return a Call for the RPC in addition
    to the response.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  The response value for the RPC, and a Call for the RPC if with_call was
    set to True at invocation.

Raises:
  AbortionError: Indicating that the RPC was aborted.
r^   )r   requesttimeoutmetadata	with_callprotocol_optionss         r   __call__ UnaryUnaryMultiCallable.__call__j      8 "##r   c                     [        5       e)a  Asynchronously invokes the underlying RPC.

Args:
  request: The request value for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of
    the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  An object that is both a Call for the RPC and a future.Future. In the
    event of RPC completion, the return Future's result value will be the
    response value of the RPC. In the event of RPC abortion, the returned
    Future's exception value will be an AbortionError.
r^   r   r   r   r   r   s        r   r   UnaryUnaryMultiCallable.future  s    $ "##r   c                     [        5       e)aA  Asynchronously invokes the underlying RPC.

Args:
  request: The request value for the RPC.
  receiver: A ResponseReceiver to be passed the response data of the RPC.
  abortion_callback: A callback to be called and passed an Abortion value
    in the event of RPC abortion.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of
    the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  A Call for the RPC.
r^   r   r   receiverrf   r   r   r   s          r   eventUnaryUnaryMultiCallable.event      4 "##r   r*   NFNNNr   r   r   r   r   rp   rq   r   r   r   r   r*   r   r   r   r   g  sd    ?
 $ $: 	$ $& 	 $ $r   r   c                   l    \ rS rSrSr\R                  SS j5       r\R                    SS j5       rSr	g)UnaryStreamMultiCallablei  z6Affords invoking a unary-stream RPC in any call style.Nc                     [        5       e)a)  Invokes the underlying RPC.

Args:
  request: The request value for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of
    the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  An object that is both a Call for the RPC and an iterator of response
    values. Drawing response values from the returned iterator may raise
    AbortionError indicating abortion of the RPC.
r^   r   s        r   r   !UnaryStreamMultiCallable.__call__  s    " "##r   c                     [        5       e)aH  Asynchronously invokes the underlying RPC.

Args:
  request: The request value for the RPC.
  receiver: A ResponseReceiver to be passed the response data of the RPC.
  abortion_callback: A callback to be called and passed an Abortion value
    in the event of RPC abortion.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of
    the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  A Call object for the RPC.
r^   r   s          r   r   UnaryStreamMultiCallable.event  r   r   r*   r   
r   r   r   r   r   rp   rq   r   r   r   r*   r   r   r   r     s?    @$ $$ 	 $ $r   r   c                       \ rS rSrSr\R                     SS j5       r\R                   S	S j5       r\R                    S	S j5       r	Sr
g)
StreamUnaryMultiCallablei  z6Affords invoking a stream-unary RPC in any call style.Nc                     [        5       e)a  Synchronously invokes the underlying RPC.

Args:
  request_iterator: An iterator that yields request values for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of
    the RPC.
  with_call: Whether or not to include return a Call for the RPC in addition
    to the response.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  The response value for the RPC, and a Call for the RPC if with_call was
    set to True at invocation.

Raises:
  AbortionError: Indicating that the RPC was aborted.
r^   )r   request_iteratorr   r   r   r   s         r   r   !StreamUnaryMultiCallable.__call__  r   r   c                     [        5       e)a  Asynchronously invokes the underlying RPC.

Args:
  request_iterator: An iterator that yields request values for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of
    the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  An object that is both a Call for the RPC and a future.Future. In the
    event of RPC completion, the return Future's result value will be the
    response value of the RPC. In the event of RPC abortion, the returned
    Future's exception value will be an AbortionError.
r^   r   r   r   r   r   s        r   r   StreamUnaryMultiCallable.future  s    ( "##r   c                     [        5       ea  Asynchronously invokes the underlying RPC.

Args:
  receiver: A ResponseReceiver to be passed the response data of the RPC.
  abortion_callback: A callback to be called and passed an Abortion value
    in the event of RPC abortion.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of
    the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  A single object that is both a Call object for the RPC and a
    stream.Consumer to which the request values of the RPC should be passed.
r^   r   r   rf   r   r   r   s         r   r   StreamUnaryMultiCallable.event#      2 "##r   r*   r   r   r   r*   r   r   r   r     sg    @
 $ $: 	IM$ $* 	 $ $r   r   c                   n    \ rS rSrSr\R                   SS j5       r\R                    SS j5       rSr	g)StreamStreamMultiCallablei?  z7Affords invoking a stream-stream RPC in any call style.Nc                     [        5       e)aG  Invokes the underlying RPC.

Args:
  request_iterator: An iterator that yields request values for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of
    the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  An object that is both a Call for the RPC and an iterator of response
    values. Drawing response values from the returned iterator may raise
    AbortionError indicating abortion of the RPC.
r^   r   s        r   r   "StreamStreamMultiCallable.__call__B  s    & "##r   c                     [        5       er   r^   r   s         r   r   StreamStreamMultiCallable.eventW  r   r   r*   r   r   r*   r   r   r   r   ?  sB    AIM$ $( 	 $ $r   r   c                       \ rS rSrSrSrg)MethodImplementationis  a
  A sum type that describes a method implementation.

Attributes:
  cardinality: A cardinality.Cardinality value.
  style: A style.Service value.
  unary_unary_inline: The implementation of the method as a callable value
    that takes a request value and a ServicerContext object and returns a
    response value. Only non-None if cardinality is
    cardinality.Cardinality.UNARY_UNARY and style is style.Service.INLINE.
  unary_stream_inline: The implementation of the method as a callable value
    that takes a request value and a ServicerContext object and returns an
    iterator of response values. Only non-None if cardinality is
    cardinality.Cardinality.UNARY_STREAM and style is style.Service.INLINE.
  stream_unary_inline: The implementation of the method as a callable value
    that takes an iterator of request values and a ServicerContext object and
    returns a response value. Only non-None if cardinality is
    cardinality.Cardinality.STREAM_UNARY and style is style.Service.INLINE.
  stream_stream_inline: The implementation of the method as a callable value
    that takes an iterator of request values and a ServicerContext object and
    returns an iterator of response values. Only non-None if cardinality is
    cardinality.Cardinality.STREAM_STREAM and style is style.Service.INLINE.
  unary_unary_event: The implementation of the method as a callable value that
    takes a request value, a response callback to which to pass the response
    value of the RPC, and a ServicerContext. Only non-None if cardinality is
    cardinality.Cardinality.UNARY_UNARY and style is style.Service.EVENT.
  unary_stream_event: The implementation of the method as a callable value
    that takes a request value, a stream.Consumer to which to pass the
    response values of the RPC, and a ServicerContext. Only non-None if
    cardinality is cardinality.Cardinality.UNARY_STREAM and style is
    style.Service.EVENT.
  stream_unary_event: The implementation of the method as a callable value
    that takes a response callback to which to pass the response value of the
    RPC and a ServicerContext and returns a stream.Consumer to which the
    request values of the RPC should be passed. Only non-None if cardinality
    is cardinality.Cardinality.STREAM_UNARY and style is style.Service.EVENT.
  stream_stream_event: The implementation of the method as a callable value
    that takes a stream.Consumer to which to pass the response values of the
    RPC and a ServicerContext and returns a stream.Consumer to which the
    request values of the RPC should be passed. Only non-None if cardinality
    is cardinality.Cardinality.STREAM_STREAM and style is
    style.Service.EVENT.
r*   NrG   r*   r   r   r   r   s  s    )r   r   c                   <    \ rS rSrSr\R                  S 5       rSrg)MultiMethodImplementationi  z,A general type able to service many methods.c                     [        5       e)ah  Services an RPC.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  response_consumer: A stream.Consumer to be called to accept the response
    values of the RPC.
  context: a ServicerContext object.

Returns:
  A stream.Consumer with which to accept the request values of the RPC. The
    consumer returned from this method may or may not be invoked to
    completion: in the case of RPC abortion, RPC Framework will simply stop
    passing values to this object. Implementations must not assume that this
    object will be called to completion of the request stream or even called
    at all.

Raises:
  abandonment.Abandoned: May or may not be raised when the RPC has been
    aborted.
  NoSuchMethodError: If this MultiMethod does not recognize the given group
    and name for the RPC and is not able to service the RPC.
r^   )r   r   r   response_consumercontexts        r   service!MultiMethodImplementation.service  r   r   r*   N)	r   r   r   r   r   rp   rq   r   r   r*   r   r   r   r     s    6$ $r   r   c                   d   \ rS rSrSr\R                     SS j5       r\R                    SS j5       r\R                    SS j5       r	\R                     SS j5       r
\R                    SS j5       r\R                    SS	 j5       r\R                    SS
 j5       r\R                    SS j5       r\R                    SS j5       r\R                    SS j5       r\R                  S 5       r\R                  S 5       r\R                  S 5       r\R                  S 5       rSrg)GenericStubi  z+Affords RPC invocation via generic methods.Nc                     [        5       e)aw  Invokes a unary-request-unary-response method.

This method blocks until either returning the response value of the RPC
(in the event of RPC completion) or raising an exception (in the event of
RPC abortion).

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  request: The request value for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  with_call: Whether or not to include return a Call for the RPC in addition
    to the response.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  The response value for the RPC, and a Call for the RPC if with_call was
    set to True at invocation.

Raises:
  AbortionError: Indicating that the RPC was aborted.
r^   )r   r   r   r   r   r   r   r   s           r   blocking_unary_unary GenericStub.blocking_unary_unary      F "##r   c                     [        5       e)a  Invokes a unary-request-unary-response method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  request: The request value for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  An object that is both a Call for the RPC and a future.Future. In the
    event of RPC completion, the return Future's result value will be the
    response value of the RPC. In the event of RPC abortion, the returned
    Future's exception value will be an AbortionError.
r^   r   r   r   r   r   r   r   s          r   future_unary_unaryGenericStub.future_unary_unary      6 "##r   c                     [        5       e)a  Invokes a unary-request-stream-response method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  request: The request value for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  An object that is both a Call for the RPC and an iterator of response
    values. Drawing response values from the returned iterator may raise
    AbortionError indicating abortion of the RPC.
r^   r   s          r   inline_unary_streamGenericStub.inline_unary_stream  r   r   c                     [        5       e)a  Invokes a stream-request-unary-response method.

This method blocks until either returning the response value of the RPC
(in the event of RPC completion) or raising an exception (in the event of
RPC abortion).

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  request_iterator: An iterator that yields request values for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  with_call: Whether or not to include return a Call for the RPC in addition
    to the response.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  The response value for the RPC, and a Call for the RPC if with_call was
    set to True at invocation.

Raises:
  AbortionError: Indicating that the RPC was aborted.
r^   )r   r   r   r   r   r   r   r   s           r   blocking_stream_unary!GenericStub.blocking_stream_unary   r   r   c                     [        5       e)a  Invokes a stream-request-unary-response method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  request_iterator: An iterator that yields request values for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  An object that is both a Call for the RPC and a future.Future. In the
    event of RPC completion, the return Future's result value will be the
    response value of the RPC. In the event of RPC abortion, the returned
    Future's exception value will be an AbortionError.
r^   r   r   r   r   r   r   r   s          r   future_stream_unaryGenericStub.future_stream_unaryE  r   r   c                     [        5       e)a  Invokes a stream-request-stream-response method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  request_iterator: An iterator that yields request values for the RPC.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  An object that is both a Call for the RPC and an iterator of response
    values. Drawing response values from the returned iterator may raise
    AbortionError indicating abortion of the RPC.
r^   r   s          r   inline_stream_stream GenericStub.inline_stream_streamb  r   r   c	                     [        5       e)a  Event-driven invocation of a unary-request-unary-response method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  request: The request value for the RPC.
  receiver: A ResponseReceiver to be passed the response data of the RPC.
  abortion_callback: A callback to be called and passed an Abortion value
    in the event of RPC abortion.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  A Call for the RPC.
r^   	r   r   r   r   r   rf   r   r   r   s	            r   event_unary_unaryGenericStub.event_unary_unary~      : "##r   c	                     [        5       e)a  Event-driven invocation of a unary-request-stream-response method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  request: The request value for the RPC.
  receiver: A ResponseReceiver to be passed the response data of the RPC.
  abortion_callback: A callback to be called and passed an Abortion value
    in the event of RPC abortion.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  A Call for the RPC.
r^   r   s	            r   event_unary_streamGenericStub.event_unary_stream  r   r   c                     [        5       e)a  Event-driven invocation of a unary-request-unary-response method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  receiver: A ResponseReceiver to be passed the response data of the RPC.
  abortion_callback: A callback to be called and passed an Abortion value
    in the event of RPC abortion.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  A pair of a Call object for the RPC and a stream.Consumer to which the
    request values of the RPC should be passed.
r^   r   r   r   r   rf   r   r   r   s           r   event_stream_unaryGenericStub.event_stream_unary  r   r   c                     [        5       e)a  Event-driven invocation of a unary-request-stream-response method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.
  receiver: A ResponseReceiver to be passed the response data of the RPC.
  abortion_callback: A callback to be called and passed an Abortion value
    in the event of RPC abortion.
  timeout: A duration of time in seconds to allow for the RPC.
  metadata: A metadata value to be passed to the service-side of the RPC.
  protocol_options: A value specified by the provider of a Face interface
    implementation affording custom state and behavior.

Returns:
  A pair of a Call object for the RPC and a stream.Consumer to which the
    request values of the RPC should be passed.
r^   r   s           r   event_stream_streamGenericStub.event_stream_stream  r   r   c                     [        5       e)zCreates a UnaryUnaryMultiCallable for a unary-unary method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.

Returns:
  A UnaryUnaryMultiCallable value for the named unary-unary method.
r^   r   r   r   s      r   unary_unaryGenericStub.unary_unary  rw   r   c                     [        5       e)zCreates a UnaryStreamMultiCallable for a unary-stream method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.

Returns:
  A UnaryStreamMultiCallable value for the name unary-stream method.
r^   r   s      r   unary_streamGenericStub.unary_stream  rw   r   c                     [        5       e)zCreates a StreamUnaryMultiCallable for a stream-unary method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.

Returns:
  A StreamUnaryMultiCallable value for the named stream-unary method.
r^   r   s      r   stream_unaryGenericStub.stream_unary  rw   r   c                     [        5       e)zCreates a StreamStreamMultiCallable for a stream-stream method.

Args:
  group: The group identifier of the RPC.
  method: The method identifier of the RPC.

Returns:
  A StreamStreamMultiCallable value for the named stream-stream method.
r^   r   s      r   stream_streamGenericStub.stream_stream  rw   r   r*   r   r   )r   r   r   r   r   rp   rq   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   r*   r   r   r   r     s   5 "$ "$H 	 $ $8 	 $ $6 	 "$ "$H 	 $ $8 	 $ $6 	 $ $< 	 $ $< 	 $ $: 	 $ $: 	
$ 
$ 	
$ 
$ 	
$ 
$ 	
$ 
$r   r   c                       \ rS rSrSrSrg)DynamicStubi-  a^  Affords RPC invocation via attributes corresponding to afforded methods.

Instances of this type may be scoped to a single group so that attribute
access is unambiguous.

Instances of this type respond to attribute access as follows: if the
requested attribute is the name of a unary-unary method, the value of the
attribute will be a UnaryUnaryMultiCallable with which to invoke an RPC; if
the requested attribute is the name of a unary-stream method, the value of the
attribute will be a UnaryStreamMultiCallable with which to invoke an RPC; if
the requested attribute is the name of a stream-unary method, the value of the
attribute will be a StreamUnaryMultiCallable with which to invoke an RPC; and
if the requested attribute is the name of a stream-stream method, the value of
the attribute will be a StreamStreamMultiCallable with which to invoke an RPC.
r*   NrG   r*   r   r   r  r  -  s    r   r  )$r   rp   collectionsr3   grpc.framework.commonr   r   grpc.framework.foundationr   r   	Exceptionr   
namedtupler#   ABCMetar<   rE   rI   rL   rO   rR   rU   rX   ABCr[   rs   r   r   r   r   r   r   r   r   r   r  r*   r   r   <module>r     s   ; 
   . ' , ,

	 
4$*	
	$*N
I 
84 4;m ;N NO- O== =F FG- G-$ -$`5$: 5$pB$jCKK B$J $sww  $FO$cgg O$d0$sww 0$fP$sww P$f1$ 1$h*377 *Z$ $>k$#'' k$\#'' r   