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

import ChannelId_pb2 as ChannelId__pb2
import UserId_pb2 as UserId__pb2
import channels_pb2 as channels__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.InitializeChannel = channel.unary_unary(
        '/tv.uob.grpc.ChannelService/InitializeChannel',
        request_serializer=channels__pb2.InitialChannelData.SerializeToString,
        response_deserializer=channels__pb2.Channel.FromString,
        )
    self.GetChannelById = channel.unary_unary(
        '/tv.uob.grpc.ChannelService/GetChannelById',
        request_serializer=ChannelId__pb2.ChannelId.SerializeToString,
        response_deserializer=channels__pb2.Channel.FromString,
        )
    self.GetChannelForUser = channel.unary_unary(
        '/tv.uob.grpc.ChannelService/GetChannelForUser',
        request_serializer=UserId__pb2.UserId.SerializeToString,
        response_deserializer=channels__pb2.Channel.FromString,
        )
    self.UpdateChannel = channel.unary_unary(
        '/tv.uob.grpc.ChannelService/UpdateChannel',
        request_serializer=channels__pb2.Channel.SerializeToString,
        response_deserializer=channels__pb2.Channel.FromString,
        )


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

  def InitializeChannel(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 GetChannelById(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 GetChannelForUser(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 UpdateChannel(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_ChannelServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'InitializeChannel': grpc.unary_unary_rpc_method_handler(
          servicer.InitializeChannel,
          request_deserializer=channels__pb2.InitialChannelData.FromString,
          response_serializer=channels__pb2.Channel.SerializeToString,
      ),
      'GetChannelById': grpc.unary_unary_rpc_method_handler(
          servicer.GetChannelById,
          request_deserializer=ChannelId__pb2.ChannelId.FromString,
          response_serializer=channels__pb2.Channel.SerializeToString,
      ),
      'GetChannelForUser': grpc.unary_unary_rpc_method_handler(
          servicer.GetChannelForUser,
          request_deserializer=UserId__pb2.UserId.FromString,
          response_serializer=channels__pb2.Channel.SerializeToString,
      ),
      'UpdateChannel': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateChannel,
          request_deserializer=channels__pb2.Channel.FromString,
          response_serializer=channels__pb2.Channel.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'tv.uob.grpc.ChannelService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
