github.com/laof/lite-speed-test@v0.0.0-20230930011949-1f39b7037845/api/rpc/liteclientpy/lite_pb2_grpc.py (about)

     1  # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
     2  """Client and server classes corresponding to protobuf-defined services."""
     3  import grpc
     4  
     5  import lite_pb2 as lite__pb2
     6  
     7  
     8  class TestProxyStub(object):
     9      """The greeting service definition.
    10      """
    11  
    12      def __init__(self, channel):
    13          """Constructor.
    14  
    15          Args:
    16              channel: A grpc.Channel.
    17          """
    18          self.StartTest = channel.unary_stream(
    19                  '/liteproxy.TestProxy/StartTest',
    20                  request_serializer=lite__pb2.TestRequest.SerializeToString,
    21                  response_deserializer=lite__pb2.TestReply.FromString,
    22                  )
    23  
    24  
    25  class TestProxyServicer(object):
    26      """The greeting service definition.
    27      """
    28  
    29      def StartTest(self, request, context):
    30          """Missing associated documentation comment in .proto file."""
    31          context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    32          context.set_details('Method not implemented!')
    33          raise NotImplementedError('Method not implemented!')
    34  
    35  
    36  def add_TestProxyServicer_to_server(servicer, server):
    37      rpc_method_handlers = {
    38              'StartTest': grpc.unary_stream_rpc_method_handler(
    39                      servicer.StartTest,
    40                      request_deserializer=lite__pb2.TestRequest.FromString,
    41                      response_serializer=lite__pb2.TestReply.SerializeToString,
    42              ),
    43      }
    44      generic_handler = grpc.method_handlers_generic_handler(
    45              'liteproxy.TestProxy', rpc_method_handlers)
    46      server.add_generic_rpc_handlers((generic_handler,))
    47  
    48  
    49   # This class is part of an EXPERIMENTAL API.
    50  class TestProxy(object):
    51      """The greeting service definition.
    52      """
    53  
    54      @staticmethod
    55      def StartTest(request,
    56              target,
    57              options=(),
    58              channel_credentials=None,
    59              call_credentials=None,
    60              insecure=False,
    61              compression=None,
    62              wait_for_ready=None,
    63              timeout=None,
    64              metadata=None):
    65          return grpc.experimental.unary_stream(request, target, '/liteproxy.TestProxy/StartTest',
    66              lite__pb2.TestRequest.SerializeToString,
    67              lite__pb2.TestReply.FromString,
    68              options, channel_credentials,
    69              insecure, call_credentials, compression, wait_for_ready, timeout, metadata)