You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
4.0 KiB
105 lines
4.0 KiB
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
import grpc
|
|
|
|
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
|
|
|
|
class ControlTestsStub(object):
|
|
"""--------------------------------------------------------------------
|
|
|
|
"""
|
|
|
|
def __init__(self, channel):
|
|
"""Constructor.
|
|
|
|
Args:
|
|
channel: A grpc.Channel.
|
|
"""
|
|
self.startTests = channel.unary_unary(
|
|
'/ControlTests/startTests',
|
|
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
)
|
|
self.endTests = channel.unary_unary(
|
|
'/ControlTests/endTests',
|
|
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
)
|
|
|
|
|
|
class ControlTestsServicer(object):
|
|
"""--------------------------------------------------------------------
|
|
|
|
"""
|
|
|
|
def startTests(self, request, context):
|
|
"""Missing associated documentation comment in .proto file."""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def endTests(self, request, context):
|
|
"""Missing associated documentation comment in .proto file."""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
|
|
def add_ControlTestsServicer_to_server(servicer, server):
|
|
rpc_method_handlers = {
|
|
'startTests': grpc.unary_unary_rpc_method_handler(
|
|
servicer.startTests,
|
|
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
),
|
|
'endTests': grpc.unary_unary_rpc_method_handler(
|
|
servicer.endTests,
|
|
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
),
|
|
}
|
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
'ControlTests', rpc_method_handlers)
|
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
|
|
|
|
# This class is part of an EXPERIMENTAL API.
|
|
class ControlTests(object):
|
|
"""--------------------------------------------------------------------
|
|
|
|
"""
|
|
|
|
@staticmethod
|
|
def startTests(request,
|
|
target,
|
|
options=(),
|
|
channel_credentials=None,
|
|
call_credentials=None,
|
|
insecure=False,
|
|
compression=None,
|
|
wait_for_ready=None,
|
|
timeout=None,
|
|
metadata=None):
|
|
return grpc.experimental.unary_unary(request, target, '/ControlTests/startTests',
|
|
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
options, channel_credentials,
|
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
|
@staticmethod
|
|
def endTests(request,
|
|
target,
|
|
options=(),
|
|
channel_credentials=None,
|
|
call_credentials=None,
|
|
insecure=False,
|
|
compression=None,
|
|
wait_for_ready=None,
|
|
timeout=None,
|
|
metadata=None):
|
|
return grpc.experimental.unary_unary(request, target, '/ControlTests/endTests',
|
|
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
options, channel_credentials,
|
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|