Hacked By AnonymousFox
�
h��f�# � �~ � d Z dZ G d� de� � Z G d� de� � Z G d� de� � Z G d� d e� � Zd
S )ae DEPRECATED: Declares the RPC service interfaces.
This module declares the abstract interfaces underlying proto2 RPC
services. These are intended to be independent of any particular RPC
implementation, so that proto2 services can be used on top of a variety
of implementations. Starting with version 2.3.0, RPC implementations should
not try to build on these, but should instead provide code generator plugins
which generate code specific to the particular RPC implementation. This way
the generated code can be more appropriate for the implementation in use
and can avoid unnecessary layers of indirection.
zpetar@google.com (Petar Petrov)c � � e Zd ZdZdS )�RpcExceptionz4Exception raised on failed blocking RPC method call.N)�__name__�
__module__�__qualname__�__doc__� � �y/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/google/protobuf/service.pyr r . s � � � � � �<�<��$r r c �* � e Zd ZdZd� Zd� Zd� Zd� ZdS )�Serviceaj Abstract base interface for protocol-buffer-based RPC services.
Services themselves are abstract classes (implemented either by servers or as
stubs), but they subclass this base interface. The methods of this
interface can be used to call the methods of the service without knowing
its exact type at compile time (analogous to the Message interface).
c � � t �)z$Retrieves this service's descriptor.��NotImplementedErrorr r r
�
GetDescriptorzService.GetDescriptor= � � �
�r c � � t �)a@ Calls a method of the service specified by method_descriptor.
If "done" is None then the call is blocking and the response
message will be returned directly. Otherwise the call is asynchronous
and "done" will later be called with the response value.
In the blocking case, RpcException will be raised on error.
Preconditions:
* method_descriptor.service == GetDescriptor
* request is of the exact same classes as returned by
GetRequestClass(method).
* After the call has started, the request must not be modified.
* "rpc_controller" is of the correct type for the RPC implementation being
used by this Service. For stubs, the "correct type" depends on the
RpcChannel which the stub is using.
Postconditions:
* "done" will be called when the method is complete. This may be
before CallMethod() returns or it may be at some point in the future.
* If the RPC failed, the response value passed to "done" will be None.
Further details about the failure can be found by querying the
RpcController.
r )�self�method_descriptor�rpc_controller�request�dones r
�
CallMethodzService.CallMethodA s
� �8 �r c � � t �)a� Returns the class of the request message for the specified method.
CallMethod() requires that the request is of a particular subclass of
Message. GetRequestClass() gets the default instance of this required
type.
Example:
method = service.GetDescriptor().FindMethodByName("Foo")
request = stub.GetRequestClass(method)()
request.ParseFromString(input)
service.CallMethod(method, request, callback)
r �r r s r
�GetRequestClasszService.GetRequestClass_ s
� � �r c � � t �)a Returns the class of the response message for the specified method.
This method isn't really needed, as the RpcChannel's CallMethod constructs
the response protocol message. It's provided anyway in case it is useful
for the caller to know the response type in advance.
r r s r
�GetResponseClasszService.GetResponseClassn �
� � �r N)r r r r r r r r r r r
r r 3 sZ � � � � � �� �� � �� � �<
�
�
�� � � � r r c �<