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

import pkg.api.python.api_pb2 as api__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.CreateStudy = channel.unary_unary(
        '/api.Manager/CreateStudy',
        request_serializer=api__pb2.CreateStudyRequest.SerializeToString,
        response_deserializer=api__pb2.CreateStudyReply.FromString,
        )
    self.StopStudy = channel.unary_unary(
        '/api.Manager/StopStudy',
        request_serializer=api__pb2.StopStudyRequest.SerializeToString,
        response_deserializer=api__pb2.StopStudyReply.FromString,
        )
    self.GetStudies = channel.unary_unary(
        '/api.Manager/GetStudies',
        request_serializer=api__pb2.GetStudiesRequest.SerializeToString,
        response_deserializer=api__pb2.GetStudiesReply.FromString,
        )
    self.SuggestTrials = channel.unary_unary(
        '/api.Manager/SuggestTrials',
        request_serializer=api__pb2.SuggestTrialsRequest.SerializeToString,
        response_deserializer=api__pb2.SuggestTrialsReply.FromString,
        )
    self.CompleteTrial = channel.unary_unary(
        '/api.Manager/CompleteTrial',
        request_serializer=api__pb2.CompleteTrialRequest.SerializeToString,
        response_deserializer=api__pb2.CompleteTrialReply.FromString,
        )
    self.ShouldTrialStop = channel.unary_unary(
        '/api.Manager/ShouldTrialStop',
        request_serializer=api__pb2.ShouldTrialStopRequest.SerializeToString,
        response_deserializer=api__pb2.ShouldTrialStopReply.FromString,
        )
    self.GetObjectValue = channel.unary_unary(
        '/api.Manager/GetObjectValue',
        request_serializer=api__pb2.GetObjectValueRequest.SerializeToString,
        response_deserializer=api__pb2.GetObjectValueReply.FromString,
        )
    self.AddMeasurementToTrials = channel.unary_unary(
        '/api.Manager/AddMeasurementToTrials',
        request_serializer=api__pb2.AddMeasurementToTrialsRequest.SerializeToString,
        response_deserializer=api__pb2.AddMeasurementToTrialsReply.FromString,
        )
    self.InitializeSuggestService = channel.unary_unary(
        '/api.Manager/InitializeSuggestService',
        request_serializer=api__pb2.InitializeSuggestServiceRequest.SerializeToString,
        response_deserializer=api__pb2.InitializeSuggestServiceReply.FromString,
        )


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

  def CreateStudy(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 StopStudy(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 GetStudies(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 SuggestTrials(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 CompleteTrial(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 ShouldTrialStop(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 GetObjectValue(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 AddMeasurementToTrials(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 InitializeSuggestService(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_ManagerServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'CreateStudy': grpc.unary_unary_rpc_method_handler(
          servicer.CreateStudy,
          request_deserializer=api__pb2.CreateStudyRequest.FromString,
          response_serializer=api__pb2.CreateStudyReply.SerializeToString,
      ),
      'StopStudy': grpc.unary_unary_rpc_method_handler(
          servicer.StopStudy,
          request_deserializer=api__pb2.StopStudyRequest.FromString,
          response_serializer=api__pb2.StopStudyReply.SerializeToString,
      ),
      'GetStudies': grpc.unary_unary_rpc_method_handler(
          servicer.GetStudies,
          request_deserializer=api__pb2.GetStudiesRequest.FromString,
          response_serializer=api__pb2.GetStudiesReply.SerializeToString,
      ),
      'SuggestTrials': grpc.unary_unary_rpc_method_handler(
          servicer.SuggestTrials,
          request_deserializer=api__pb2.SuggestTrialsRequest.FromString,
          response_serializer=api__pb2.SuggestTrialsReply.SerializeToString,
      ),
      'CompleteTrial': grpc.unary_unary_rpc_method_handler(
          servicer.CompleteTrial,
          request_deserializer=api__pb2.CompleteTrialRequest.FromString,
          response_serializer=api__pb2.CompleteTrialReply.SerializeToString,
      ),
      'ShouldTrialStop': grpc.unary_unary_rpc_method_handler(
          servicer.ShouldTrialStop,
          request_deserializer=api__pb2.ShouldTrialStopRequest.FromString,
          response_serializer=api__pb2.ShouldTrialStopReply.SerializeToString,
      ),
      'GetObjectValue': grpc.unary_unary_rpc_method_handler(
          servicer.GetObjectValue,
          request_deserializer=api__pb2.GetObjectValueRequest.FromString,
          response_serializer=api__pb2.GetObjectValueReply.SerializeToString,
      ),
      'AddMeasurementToTrials': grpc.unary_unary_rpc_method_handler(
          servicer.AddMeasurementToTrials,
          request_deserializer=api__pb2.AddMeasurementToTrialsRequest.FromString,
          response_serializer=api__pb2.AddMeasurementToTrialsReply.SerializeToString,
      ),
      'InitializeSuggestService': grpc.unary_unary_rpc_method_handler(
          servicer.InitializeSuggestService,
          request_deserializer=api__pb2.InitializeSuggestServiceRequest.FromString,
          response_serializer=api__pb2.InitializeSuggestServiceReply.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'api.Manager', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.GenerateTrials = channel.unary_unary(
        '/api.Suggestion/GenerateTrials',
        request_serializer=api__pb2.GenerateTrialsRequest.SerializeToString,
        response_deserializer=api__pb2.GenerateTrialsReply.FromString,
        )
    self.SetSuggestionParameters = channel.unary_unary(
        '/api.Suggestion/SetSuggestionParameters',
        request_serializer=api__pb2.SetSuggestionParametersRequest.SerializeToString,
        response_deserializer=api__pb2.SetSuggestionParametersReply.FromString,
        )
    self.StopSuggestion = channel.unary_unary(
        '/api.Suggestion/StopSuggestion',
        request_serializer=api__pb2.StopSuggestionRequest.SerializeToString,
        response_deserializer=api__pb2.StopSuggestionReply.FromString,
        )


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

  def GenerateTrials(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 SetSuggestionParameters(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 StopSuggestion(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_SuggestionServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GenerateTrials': grpc.unary_unary_rpc_method_handler(
          servicer.GenerateTrials,
          request_deserializer=api__pb2.GenerateTrialsRequest.FromString,
          response_serializer=api__pb2.GenerateTrialsReply.SerializeToString,
      ),
      'SetSuggestionParameters': grpc.unary_unary_rpc_method_handler(
          servicer.SetSuggestionParameters,
          request_deserializer=api__pb2.SetSuggestionParametersRequest.FromString,
          response_serializer=api__pb2.SetSuggestionParametersReply.SerializeToString,
      ),
      'StopSuggestion': grpc.unary_unary_rpc_method_handler(
          servicer.StopSuggestion,
          request_deserializer=api__pb2.StopSuggestionRequest.FromString,
          response_serializer=api__pb2.StopSuggestionReply.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'api.Suggestion', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))


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

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

    Args:
      channel: A grpc.Channel.
    """


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


def add_AutoStoppingServicer_to_server(servicer, server):
  rpc_method_handlers = {
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'api.AutoStopping', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))

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

import pkg.api.python.api_pb2 as api__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.CreateStudy = channel.unary_unary(
        '/api.Manager/CreateStudy',
        request_serializer=api__pb2.CreateStudyRequest.SerializeToString,
        response_deserializer=api__pb2.CreateStudyReply.FromString,
        )
    self.StopStudy = channel.unary_unary(
        '/api.Manager/StopStudy',
        request_serializer=api__pb2.StopStudyRequest.SerializeToString,
        response_deserializer=api__pb2.StopStudyReply.FromString,
        )
    self.GetStudies = channel.unary_unary(
        '/api.Manager/GetStudies',
        request_serializer=api__pb2.GetStudiesRequest.SerializeToString,
        response_deserializer=api__pb2.GetStudiesReply.FromString,
        )
    self.SuggestTrials = channel.unary_unary(
        '/api.Manager/SuggestTrials',
        request_serializer=api__pb2.SuggestTrialsRequest.SerializeToString,
        response_deserializer=api__pb2.SuggestTrialsReply.FromString,
        )
    self.CompleteTrial = channel.unary_unary(
        '/api.Manager/CompleteTrial',
        request_serializer=api__pb2.CompleteTrialRequest.SerializeToString,
        response_deserializer=api__pb2.CompleteTrialReply.FromString,
        )
    self.ShouldTrialStop = channel.unary_unary(
        '/api.Manager/ShouldTrialStop',
        request_serializer=api__pb2.ShouldTrialStopRequest.SerializeToString,
        response_deserializer=api__pb2.ShouldTrialStopReply.FromString,
        )
    self.GetObjectValue = channel.unary_unary(
        '/api.Manager/GetObjectValue',
        request_serializer=api__pb2.GetObjectValueRequest.SerializeToString,
        response_deserializer=api__pb2.GetObjectValueReply.FromString,
        )
    self.AddMeasurementToTrials = channel.unary_unary(
        '/api.Manager/AddMeasurementToTrials',
        request_serializer=api__pb2.AddMeasurementToTrialsRequest.SerializeToString,
        response_deserializer=api__pb2.AddMeasurementToTrialsReply.FromString,
        )
    self.InitializeSuggestService = channel.unary_unary(
        '/api.Manager/InitializeSuggestService',
        request_serializer=api__pb2.InitializeSuggestServiceRequest.SerializeToString,
        response_deserializer=api__pb2.InitializeSuggestServiceReply.FromString,
        )


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

  def CreateStudy(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 StopStudy(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 GetStudies(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 SuggestTrials(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 CompleteTrial(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 ShouldTrialStop(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 GetObjectValue(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 AddMeasurementToTrials(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 InitializeSuggestService(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_ManagerServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'CreateStudy': grpc.unary_unary_rpc_method_handler(
          servicer.CreateStudy,
          request_deserializer=api__pb2.CreateStudyRequest.FromString,
          response_serializer=api__pb2.CreateStudyReply.SerializeToString,
      ),
      'StopStudy': grpc.unary_unary_rpc_method_handler(
          servicer.StopStudy,
          request_deserializer=api__pb2.StopStudyRequest.FromString,
          response_serializer=api__pb2.StopStudyReply.SerializeToString,
      ),
      'GetStudies': grpc.unary_unary_rpc_method_handler(
          servicer.GetStudies,
          request_deserializer=api__pb2.GetStudiesRequest.FromString,
          response_serializer=api__pb2.GetStudiesReply.SerializeToString,
      ),
      'SuggestTrials': grpc.unary_unary_rpc_method_handler(
          servicer.SuggestTrials,
          request_deserializer=api__pb2.SuggestTrialsRequest.FromString,
          response_serializer=api__pb2.SuggestTrialsReply.SerializeToString,
      ),
      'CompleteTrial': grpc.unary_unary_rpc_method_handler(
          servicer.CompleteTrial,
          request_deserializer=api__pb2.CompleteTrialRequest.FromString,
          response_serializer=api__pb2.CompleteTrialReply.SerializeToString,
      ),
      'ShouldTrialStop': grpc.unary_unary_rpc_method_handler(
          servicer.ShouldTrialStop,
          request_deserializer=api__pb2.ShouldTrialStopRequest.FromString,
          response_serializer=api__pb2.ShouldTrialStopReply.SerializeToString,
      ),
      'GetObjectValue': grpc.unary_unary_rpc_method_handler(
          servicer.GetObjectValue,
          request_deserializer=api__pb2.GetObjectValueRequest.FromString,
          response_serializer=api__pb2.GetObjectValueReply.SerializeToString,
      ),
      'AddMeasurementToTrials': grpc.unary_unary_rpc_method_handler(
          servicer.AddMeasurementToTrials,
          request_deserializer=api__pb2.AddMeasurementToTrialsRequest.FromString,
          response_serializer=api__pb2.AddMeasurementToTrialsReply.SerializeToString,
      ),
      'InitializeSuggestService': grpc.unary_unary_rpc_method_handler(
          servicer.InitializeSuggestService,
          request_deserializer=api__pb2.InitializeSuggestServiceRequest.FromString,
          response_serializer=api__pb2.InitializeSuggestServiceReply.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'api.Manager', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.GenerateTrials = channel.unary_unary(
        '/api.Suggestion/GenerateTrials',
        request_serializer=api__pb2.GenerateTrialsRequest.SerializeToString,
        response_deserializer=api__pb2.GenerateTrialsReply.FromString,
        )
    self.SetSuggestionParameters = channel.unary_unary(
        '/api.Suggestion/SetSuggestionParameters',
        request_serializer=api__pb2.SetSuggestionParametersRequest.SerializeToString,
        response_deserializer=api__pb2.SetSuggestionParametersReply.FromString,
        )
    self.StopSuggestion = channel.unary_unary(
        '/api.Suggestion/StopSuggestion',
        request_serializer=api__pb2.StopSuggestionRequest.SerializeToString,
        response_deserializer=api__pb2.StopSuggestionReply.FromString,
        )


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

  def GenerateTrials(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 SetSuggestionParameters(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 StopSuggestion(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_SuggestionServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GenerateTrials': grpc.unary_unary_rpc_method_handler(
          servicer.GenerateTrials,
          request_deserializer=api__pb2.GenerateTrialsRequest.FromString,
          response_serializer=api__pb2.GenerateTrialsReply.SerializeToString,
      ),
      'SetSuggestionParameters': grpc.unary_unary_rpc_method_handler(
          servicer.SetSuggestionParameters,
          request_deserializer=api__pb2.SetSuggestionParametersRequest.FromString,
          response_serializer=api__pb2.SetSuggestionParametersReply.SerializeToString,
      ),
      'StopSuggestion': grpc.unary_unary_rpc_method_handler(
          servicer.StopSuggestion,
          request_deserializer=api__pb2.StopSuggestionRequest.FromString,
          response_serializer=api__pb2.StopSuggestionReply.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'api.Suggestion', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))


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

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

    Args:
      channel: A grpc.Channel.
    """


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


def add_AutoStoppingServicer_to_server(servicer, server):
  rpc_method_handlers = {
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'api.AutoStopping', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! # missing associated documentation comment in .proto file Constructor.      Args:       channel: A grpc.Channel. # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file Constructor.      Args:       channel: A grpc.Channel. # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file # missing associated documentation comment in .proto file Constructor.      Args:       channel: A grpc.Channel. # missing associated documentation comment in .proto file