Public Member Functions | List of all members
grpc_testing.Server Class Reference
Inheritance diagram for grpc_testing.Server:
Inheritance graph
[legend]

Public Member Functions

def invoke_stream_stream (self, method_descriptor, invocation_metadata, timeout)
 
def invoke_stream_unary (self, method_descriptor, invocation_metadata, timeout)
 
def invoke_unary_stream (self, method_descriptor, invocation_metadata, request, timeout)
 
def invoke_unary_unary (self, method_descriptor, invocation_metadata, request, timeout)
 

Detailed Description

A server with which to test a system that services RPCs.

Definition at line 493 of file src/python/grpcio_testing/grpc_testing/__init__.py.

Member Function Documentation

◆ invoke_stream_stream()

def grpc_testing.Server.invoke_stream_stream (   self,
  method_descriptor,
  invocation_metadata,
  timeout 
)
Invokes an RPC to be serviced by the system under test.

Args:
  method_descriptor: A descriptor.MethodDescriptor describing a stream-stream
    RPC method.
  invocation_metadata: The RPC's invocation metadata.
  timeout: A duration of time in seconds for the RPC or None to
    indicate that the RPC has no time limit.

Returns:
  A StreamStreamServerRpc with which to "play client" for the RPC.

Reimplemented in grpc_testing._server._server._Server.

Definition at line 550 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ invoke_stream_unary()

def grpc_testing.Server.invoke_stream_unary (   self,
  method_descriptor,
  invocation_metadata,
  timeout 
)
Invokes an RPC to be serviced by the system under test.

Args:
  method_descriptor: A descriptor.MethodDescriptor describing a stream-unary
    RPC method.
  invocation_metadata: The RPC's invocation metadata.
  timeout: A duration of time in seconds for the RPC or None to
    indicate that the RPC has no time limit.

Returns:
  A StreamUnaryServerRpc with which to "play client" for the RPC.

Reimplemented in grpc_testing._server._server._Server.

Definition at line 533 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ invoke_unary_stream()

def grpc_testing.Server.invoke_unary_stream (   self,
  method_descriptor,
  invocation_metadata,
  request,
  timeout 
)
Invokes an RPC to be serviced by the system under test.

Args:
  method_descriptor: A descriptor.MethodDescriptor describing a unary-stream
    RPC method.
  invocation_metadata: The RPC's invocation metadata.
  request: The RPC's request.
  timeout: A duration of time in seconds for the RPC or None to
    indicate that the RPC has no time limit.

Returns:
  A UnaryStreamServerRpc with which to "play client" for the RPC.

Reimplemented in grpc_testing._server._server._Server.

Definition at line 515 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ invoke_unary_unary()

def grpc_testing.Server.invoke_unary_unary (   self,
  method_descriptor,
  invocation_metadata,
  request,
  timeout 
)
Invokes an RPC to be serviced by the system under test.

Args:
  method_descriptor: A descriptor.MethodDescriptor describing a unary-unary
    RPC method.
  invocation_metadata: The RPC's invocation metadata.
  request: The RPC's request.
  timeout: A duration of time in seconds for the RPC or None to
    indicate that the RPC has no time limit.

Returns:
  A UnaryUnaryServerRpc with which to "play client" for the RPC.

Reimplemented in grpc_testing._server._server._Server.

Definition at line 497 of file src/python/grpcio_testing/grpc_testing/__init__.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:40