# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

import jet_to_python_pb2 as jet__to__python__pb2


class JetToPythonStub(object):
  # missing associated documentation comment in .proto file
  pass

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.streamingCall = channel.stream_stream(
        '/jet_to_python.JetToPython/streamingCall',
        request_serializer=jet__to__python__pb2.InputMessage.SerializeToString,
        response_deserializer=jet__to__python__pb2.OutputMessage.FromString,
        )


class JetToPythonServicer(object):
  # missing associated documentation comment in .proto file
  pass

  def streamingCall(self, request_iterator, 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_JetToPythonServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'streamingCall': grpc.stream_stream_rpc_method_handler(
          servicer.streamingCall,
          request_deserializer=jet__to__python__pb2.InputMessage.FromString,
          response_serializer=jet__to__python__pb2.OutputMessage.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'jet_to_python.JetToPython', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
