Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions redash/query_runner/gsshift_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -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,))