From d264fb613db24296d34b5ea93c57e29dbae3f0cd Mon Sep 17 00:00:00 2001 From: manish-jaiswal15 <38095603+manish-jaiswal15@users.noreply.github.com> Date: Thu, 30 Apr 2020 12:35:44 +0530 Subject: [PATCH] Create gsshift_pb2_grpc.py --- redash/query_runner/gsshift_pb2_grpc.py | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 redash/query_runner/gsshift_pb2_grpc.py diff --git a/redash/query_runner/gsshift_pb2_grpc.py b/redash/query_runner/gsshift_pb2_grpc.py new file mode 100644 index 0000000000..90927aad3c --- /dev/null +++ b/redash/query_runner/gsshift_pb2_grpc.py @@ -0,0 +1,46 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +import gsshift_pb2 as gsshift__pb2 + + +class SshiftStub(object): + # missing associated documentation comment in .proto file + pass + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Runner = channel.unary_unary( + '/gsshift.Sshift/Runner', + request_serializer=gsshift__pb2.Input.SerializeToString, + response_deserializer=gsshift__pb2.Output.FromString, + ) + + +class SshiftServicer(object): + # missing associated documentation comment in .proto file + pass + + def Runner(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SshiftServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Runner': grpc.unary_unary_rpc_method_handler( + servicer.Runner, + request_deserializer=gsshift__pb2.Input.FromString, + response_serializer=gsshift__pb2.Output.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'gsshift.Sshift', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,))