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

from cogneed_protos.cogneed_waveform.services import audio_to_waveform_pb2 as cogneed__protos_dot_cogneed__waveform_dot_services_dot_audio__to__waveform__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.store = channel.stream_unary(
        '/ai.cogneed.cloud.speech.v1.WaveformStoringService/store',
        request_serializer=cogneed__protos_dot_cogneed__waveform_dot_services_dot_audio__to__waveform__pb2.WaveformRequest.SerializeToString,
        response_deserializer=cogneed__protos_dot_cogneed__waveform_dot_services_dot_audio__to__waveform__pb2.WaveformResponse.FromString,
        )


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

  def store(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_WaveformStoringServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'store': grpc.stream_unary_rpc_method_handler(
          servicer.store,
          request_deserializer=cogneed__protos_dot_cogneed__waveform_dot_services_dot_audio__to__waveform__pb2.WaveformRequest.FromString,
          response_serializer=cogneed__protos_dot_cogneed__waveform_dot_services_dot_audio__to__waveform__pb2.WaveformResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.cogneed.cloud.speech.v1.WaveformStoringService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
