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

from ..deployment import APISync_pb2 as deployment_dot_APISync__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.Sync = channel.stream_stream(
        '/APISync/Sync',
        request_serializer=deployment_dot_APISync__pb2.APISyncRequest.SerializeToString,
        response_deserializer=deployment_dot_APISync__pb2.APISyncResponse.FromString,
        )


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

  def Sync(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_APISyncServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'Sync': grpc.stream_stream_rpc_method_handler(
          servicer.Sync,
          request_deserializer=deployment_dot_APISync__pb2.APISyncRequest.FromString,
          response_serializer=deployment_dot_APISync__pb2.APISyncResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'APISync', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
