forked from amkovkov/GranuSightSoftware2
feat: минорые изменения после тестирования
This commit is contained in:
@@ -39,6 +39,11 @@ class LightsStub(object):
|
||||
request_serializer=lights__pb2.Empty.SerializeToString,
|
||||
response_deserializer=lights__pb2.Empty.FromString,
|
||||
_registered_method=True)
|
||||
self.Disconnect = channel.unary_unary(
|
||||
'/GSS2.LightsControl.Lights/Disconnect',
|
||||
request_serializer=lights__pb2.Empty.SerializeToString,
|
||||
response_deserializer=lights__pb2.Empty.FromString,
|
||||
_registered_method=True)
|
||||
self.SetOff = channel.unary_unary(
|
||||
'/GSS2.LightsControl.Lights/SetOff',
|
||||
request_serializer=lights__pb2.Empty.SerializeToString,
|
||||
@@ -145,6 +150,12 @@ class LightsServicer(object):
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Disconnect(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 SetOff(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
@@ -267,6 +278,11 @@ def add_LightsServicer_to_server(servicer, server):
|
||||
request_deserializer=lights__pb2.Empty.FromString,
|
||||
response_serializer=lights__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Disconnect': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Disconnect,
|
||||
request_deserializer=lights__pb2.Empty.FromString,
|
||||
response_serializer=lights__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'SetOff': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.SetOff,
|
||||
request_deserializer=lights__pb2.Empty.FromString,
|
||||
@@ -400,6 +416,33 @@ class Lights(object):
|
||||
metadata,
|
||||
_registered_method=True)
|
||||
|
||||
@staticmethod
|
||||
def Disconnect(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,
|
||||
'/GSS2.LightsControl.Lights/Disconnect',
|
||||
lights__pb2.Empty.SerializeToString,
|
||||
lights__pb2.Empty.FromString,
|
||||
options,
|
||||
channel_credentials,
|
||||
insecure,
|
||||
call_credentials,
|
||||
compression,
|
||||
wait_for_ready,
|
||||
timeout,
|
||||
metadata,
|
||||
_registered_method=True)
|
||||
|
||||
@staticmethod
|
||||
def SetOff(request,
|
||||
target,
|
||||
|
||||
Reference in New Issue
Block a user