Files
GSS2Rework/GSS2.LightsControl/Server/lights_pb2_grpc.py
T
2025-11-27 14:02:00 +03:00

915 lines
34 KiB
Python

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import warnings
import lights_pb2 as lights__pb2
GRPC_GENERATED_VERSION = '1.76.0'
GRPC_VERSION = grpc.__version__
_version_not_supported = False
try:
from grpc._utilities import first_version_is_lower
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
_version_not_supported = True
if _version_not_supported:
raise RuntimeError(
f'The grpc package installed is at version {GRPC_VERSION},'
+ ' but the generated code in lights_pb2_grpc.py depends on'
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
)
class LightsStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Ping = channel.unary_unary(
'/GSS2.LightsControl.Lights/Ping',
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,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetStaticColor = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetStaticColor',
request_serializer=lights__pb2.StaticColorRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetStaticGradient2 = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetStaticGradient2',
request_serializer=lights__pb2.StaticGradient2Request.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetStaticGradient3 = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetStaticGradient3',
request_serializer=lights__pb2.StaticGradient3Request.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetStaticRainbow = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetStaticRainbow',
request_serializer=lights__pb2.StaticRainbowRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetBreathingColor = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetBreathingColor',
request_serializer=lights__pb2.BreathingColorRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetBreathingGradient2 = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetBreathingGradient2',
request_serializer=lights__pb2.BreathingGradient2Request.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetBreathingGradient3 = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetBreathingGradient3',
request_serializer=lights__pb2.BreathingGradient3Request.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetBreathingRainbow = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetBreathingRainbow',
request_serializer=lights__pb2.BreathingRainbowRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetRunningColor = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetRunningColor',
request_serializer=lights__pb2.RunningColorRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetRunningGradient2 = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetRunningGradient2',
request_serializer=lights__pb2.RunningGradient2Request.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetRunningGradient3 = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetRunningGradient3',
request_serializer=lights__pb2.RunningGradient3Request.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetRunningRainbow = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetRunningRainbow',
request_serializer=lights__pb2.RunningRainbowRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetSnake = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetSnake',
request_serializer=lights__pb2.SnakeRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetFire = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetFire',
request_serializer=lights__pb2.FireRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetSnowfall = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetSnowfall',
request_serializer=lights__pb2.SnowfallRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetFlash = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetFlash',
request_serializer=lights__pb2.FlashRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetLoad = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetLoad',
request_serializer=lights__pb2.LoadRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
self.SetCpuLoad = channel.unary_unary(
'/GSS2.LightsControl.Lights/SetCpuLoad',
request_serializer=lights__pb2.CpuLoadRequest.SerializeToString,
response_deserializer=lights__pb2.Empty.FromString,
_registered_method=True)
class LightsServicer(object):
"""Missing associated documentation comment in .proto file."""
def Ping(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)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SetStaticColor(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 SetStaticGradient2(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 SetStaticGradient3(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 SetStaticRainbow(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 SetBreathingColor(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 SetBreathingGradient2(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 SetBreathingGradient3(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 SetBreathingRainbow(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 SetRunningColor(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 SetRunningGradient2(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 SetRunningGradient3(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 SetRunningRainbow(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 SetSnake(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 SetFire(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 SetSnowfall(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 SetFlash(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 SetLoad(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 SetCpuLoad(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_LightsServicer_to_server(servicer, server):
rpc_method_handlers = {
'Ping': grpc.unary_unary_rpc_method_handler(
servicer.Ping,
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,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetStaticColor': grpc.unary_unary_rpc_method_handler(
servicer.SetStaticColor,
request_deserializer=lights__pb2.StaticColorRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetStaticGradient2': grpc.unary_unary_rpc_method_handler(
servicer.SetStaticGradient2,
request_deserializer=lights__pb2.StaticGradient2Request.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetStaticGradient3': grpc.unary_unary_rpc_method_handler(
servicer.SetStaticGradient3,
request_deserializer=lights__pb2.StaticGradient3Request.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetStaticRainbow': grpc.unary_unary_rpc_method_handler(
servicer.SetStaticRainbow,
request_deserializer=lights__pb2.StaticRainbowRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetBreathingColor': grpc.unary_unary_rpc_method_handler(
servicer.SetBreathingColor,
request_deserializer=lights__pb2.BreathingColorRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetBreathingGradient2': grpc.unary_unary_rpc_method_handler(
servicer.SetBreathingGradient2,
request_deserializer=lights__pb2.BreathingGradient2Request.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetBreathingGradient3': grpc.unary_unary_rpc_method_handler(
servicer.SetBreathingGradient3,
request_deserializer=lights__pb2.BreathingGradient3Request.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetBreathingRainbow': grpc.unary_unary_rpc_method_handler(
servicer.SetBreathingRainbow,
request_deserializer=lights__pb2.BreathingRainbowRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetRunningColor': grpc.unary_unary_rpc_method_handler(
servicer.SetRunningColor,
request_deserializer=lights__pb2.RunningColorRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetRunningGradient2': grpc.unary_unary_rpc_method_handler(
servicer.SetRunningGradient2,
request_deserializer=lights__pb2.RunningGradient2Request.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetRunningGradient3': grpc.unary_unary_rpc_method_handler(
servicer.SetRunningGradient3,
request_deserializer=lights__pb2.RunningGradient3Request.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetRunningRainbow': grpc.unary_unary_rpc_method_handler(
servicer.SetRunningRainbow,
request_deserializer=lights__pb2.RunningRainbowRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetSnake': grpc.unary_unary_rpc_method_handler(
servicer.SetSnake,
request_deserializer=lights__pb2.SnakeRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetFire': grpc.unary_unary_rpc_method_handler(
servicer.SetFire,
request_deserializer=lights__pb2.FireRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetSnowfall': grpc.unary_unary_rpc_method_handler(
servicer.SetSnowfall,
request_deserializer=lights__pb2.SnowfallRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetFlash': grpc.unary_unary_rpc_method_handler(
servicer.SetFlash,
request_deserializer=lights__pb2.FlashRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetLoad': grpc.unary_unary_rpc_method_handler(
servicer.SetLoad,
request_deserializer=lights__pb2.LoadRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
'SetCpuLoad': grpc.unary_unary_rpc_method_handler(
servicer.SetCpuLoad,
request_deserializer=lights__pb2.CpuLoadRequest.FromString,
response_serializer=lights__pb2.Empty.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'GSS2.LightsControl.Lights', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('GSS2.LightsControl.Lights', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
class Lights(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def Ping(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/Ping',
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,
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/SetOff',
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 SetStaticColor(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/SetStaticColor',
lights__pb2.StaticColorRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetStaticGradient2(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/SetStaticGradient2',
lights__pb2.StaticGradient2Request.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetStaticGradient3(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/SetStaticGradient3',
lights__pb2.StaticGradient3Request.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetStaticRainbow(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/SetStaticRainbow',
lights__pb2.StaticRainbowRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetBreathingColor(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/SetBreathingColor',
lights__pb2.BreathingColorRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetBreathingGradient2(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/SetBreathingGradient2',
lights__pb2.BreathingGradient2Request.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetBreathingGradient3(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/SetBreathingGradient3',
lights__pb2.BreathingGradient3Request.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetBreathingRainbow(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/SetBreathingRainbow',
lights__pb2.BreathingRainbowRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetRunningColor(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/SetRunningColor',
lights__pb2.RunningColorRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetRunningGradient2(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/SetRunningGradient2',
lights__pb2.RunningGradient2Request.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetRunningGradient3(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/SetRunningGradient3',
lights__pb2.RunningGradient3Request.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetRunningRainbow(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/SetRunningRainbow',
lights__pb2.RunningRainbowRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetSnake(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/SetSnake',
lights__pb2.SnakeRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetFire(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/SetFire',
lights__pb2.FireRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetSnowfall(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/SetSnowfall',
lights__pb2.SnowfallRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetFlash(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/SetFlash',
lights__pb2.FlashRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetLoad(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/SetLoad',
lights__pb2.LoadRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
@staticmethod
def SetCpuLoad(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/SetCpuLoad',
lights__pb2.CpuLoadRequest.SerializeToString,
lights__pb2.Empty.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)