Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
interfaces.cpython-313.pyc87 linesDownload Raw Back to __pycache__
1�

2��je��P�SrSSKrSSKr\Rr\R\l\Rr"SS\5rSSjr	\Rr\Rr
\Rr"SS\R 5r"SS	\R 5r"S3S\R 5rg)
z8Constants and interfaces of the Beta API of gRPC Python.�Nc��\rSrSrSrSrSrg)�GRPCCallOptions�z�A value encapsulating gRPC-specific options passed on RPC invocation.4 5This class and its instances have no supported interface - it exists to6define the type of its instances and its instances exist to be passed to7other functions.8c�(�XlX lX0lg)N)�disable_compression�9subcall_of�credentials)�selfrrr	s    �ZD:\code\apps\devtools\python\user_packages\Python313\site-packages\grpc/beta/interfaces.py�__init__�GRPCCallOptions.__init__#s��#6� �$��&��)r	rrN)�__name__�10__module__�__qualname__�__firstlineno__�__doc__r�__static_attributes__�rrrrs���'rrc��[USU5$)axCreates a GRPCCallOptions value to be passed at RPC invocation.11 12All parameters are optional and should always be passed by keyword.13 14Args:15  disable_compression: A boolean indicating whether or not compression should16    be disabled for the request object of the RPC. Only valid for17    request-unary RPCs.18  credentials: A CallCredentials object to use for the invoked RPC.19N)r)rr	s  r�grpc_call_optionsr)s���.��k�B�Brc�`�\rSrSrSr\RS5r\RS5rSr	g)�GRPCServicerContext�<zCExposes gRPC-specific options and behaviors to code servicing RPCs.c��[5e)z�Identifies the peer that invoked the RPC being serviced.20 21Returns:22  A string identifying the peer that invoked the RPC being serviced.23��NotImplementedError�r24s r�peer�GRPCServicerContext.peer?�
��"�#�#rc��[5e)zDDisables compression of the next response passed by the application.rrs r�!disable_next_response_compression�5GRPCServicerContext.disable_next_response_compressionH�
��"�#�#rrN)25rrrrr�abc�abstractmethodrr#rrrrrr<s7��M����$��$�	���$��$rrc�<�\rSrSrSr\RS5rSrg)�GRPCInvocationContext�NzBExposes gRPC-specific options and behaviors to code invoking RPCs.c��[5e)zCDisables compression of the next request passed by the application.rrs r� disable_next_request_compression�6GRPCInvocationContext.disable_next_request_compressionQr%rrN)	rrrrrr&r'r,rrrrr)r)Ns��L����$��$rr)c��\rSrSrSr\RS5r\RS5r\RS5r	\RS5r26Srg)	�Server�WzServices RPCs.c��[5e)a�Reserves a port for insecure RPC service once this Server becomes active.27 28This method may only be called before calling this Server's start method is29called.30 31Args:32  address: The address for which to open a port.33 34Returns:35  An integer port on which RPCs will be serviced after this link has been36    started. This is typically the same number as the port number contained37    in the passed address, but will likely be different if the port number38    contained in the passed address was zero.39r)r40�addresss  r�add_insecure_port�Server.add_insecure_portZs
�� "�#�#rc��[5e)aReserves a port for secure RPC service after this Server becomes active.41 42This method may only be called before calling this Server's start method is43called.44 45Args:46  address: The address for which to open a port.47  server_credentials: A ServerCredentials.48 49Returns:50  An integer port on which RPCs will be serviced after this link has been51    started. This is typically the same number as the port number contained52    in the passed address, but will likely be different if the port number53    contained in the passed address was zero.54r)r55r2�server_credentialss   r�add_secure_port�Server.add_secure_portls
��""�#�#rc��[5e)z�Starts this Server's service of RPCs.56 57This method may only be called while the server is not serving RPCs (i.e. it58is not idempotent).59rrs r�start�Server.startr!rc��[5e)aXStops this Server's service of RPCs.60 61All calls to this method immediately stop service of new RPCs. When existing62RPCs are aborted is controlled by the grace period parameter passed to this63method.64 65This method may be called at any time and is idempotent. Passing a smaller66grace value than has been passed in a previous call will have the effect of67stopping the Server sooner. Passing a larger grace value than has been68passed in a previous call will not have the effect of stopping the server69later.70 71Args:72  grace: A duration of time in seconds to allow existing RPCs to complete73    before being aborted by this Server's stopping. May be zero for74    immediate abortion of all in-progress RPCs.75 76Returns:77  A threading.Event that will be set when this Server has completely78  stopped. The returned event may not be set until after the full grace79  period (if some ongoing RPC continues for the full length of the period)80  of it may be set much sooner (such as if this Server had no RPCs underway81  at the time it was stopped or if all RPCs that it had underway completed82  very early in the grace period).83r)r84�graces  r�stop�Server.stop�s
��6"�#�#rrN)rrrrrr&r'r3r7r:r>rrrrr/r/Wsk������$��$�"	���$��$�$	���$��$�	���$��$rr/)FN)rr&�grpc�ChannelConnectivity�SHUTDOWN�
FATAL_FAILURE�85StatusCode�objectrr�AuthMetadataContext�GRPCAuthMetadataContext�AuthMetadataPluginCallback�GRPCAuthMetadataPluginCallback�AuthMetadataPlugin�GRPCAuthMetadataPlugin�ABCrr)r/rrr�<module>rMs���?�86���.�.��$7�$@�$@��!�
�_�_�87�'�f�'�C��2�2��!%�!@�!@���0�0��$�#�'�'�$�$$�C�G�G�$�L$�S�W�W�L$r