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

from brymck.securities.v1 import securities_api_pb2 as brymck_dot_securities_dot_v1_dot_securities__api__pb2


class SecuritiesAPIStub(object):
  """SecuritiesAPI provides access to securities.
  """

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

    Args:
      channel: A grpc.Channel.
    """
    self.GetSecurity = channel.unary_unary(
        '/brymck.securities.v1.SecuritiesAPI/GetSecurity',
        request_serializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.GetSecurityRequest.SerializeToString,
        response_deserializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.GetSecurityResponse.FromString,
        )
    self.InsertSecurity = channel.unary_unary(
        '/brymck.securities.v1.SecuritiesAPI/InsertSecurity',
        request_serializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.InsertSecurityRequest.SerializeToString,
        response_deserializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.InsertSecurityResponse.FromString,
        )
    self.GetPrices = channel.unary_unary(
        '/brymck.securities.v1.SecuritiesAPI/GetPrices',
        request_serializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.GetPricesRequest.SerializeToString,
        response_deserializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.GetPricesResponse.FromString,
        )
    self.UpdatePrices = channel.unary_unary(
        '/brymck.securities.v1.SecuritiesAPI/UpdatePrices',
        request_serializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.UpdatePricesRequest.SerializeToString,
        response_deserializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.UpdatePricesResponse.FromString,
        )


class SecuritiesAPIServicer(object):
  """SecuritiesAPI provides access to securities.
  """

  def GetSecurity(self, request, context):
    """Retrieve a full security object.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def InsertSecurity(self, request, context):
    """Insert a new security.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def GetPrices(self, request, context):
    """Retrieve security prices.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def UpdatePrices(self, request, context):
    """Update security prices.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_SecuritiesAPIServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetSecurity': grpc.unary_unary_rpc_method_handler(
          servicer.GetSecurity,
          request_deserializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.GetSecurityRequest.FromString,
          response_serializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.GetSecurityResponse.SerializeToString,
      ),
      'InsertSecurity': grpc.unary_unary_rpc_method_handler(
          servicer.InsertSecurity,
          request_deserializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.InsertSecurityRequest.FromString,
          response_serializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.InsertSecurityResponse.SerializeToString,
      ),
      'GetPrices': grpc.unary_unary_rpc_method_handler(
          servicer.GetPrices,
          request_deserializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.GetPricesRequest.FromString,
          response_serializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.GetPricesResponse.SerializeToString,
      ),
      'UpdatePrices': grpc.unary_unary_rpc_method_handler(
          servicer.UpdatePrices,
          request_deserializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.UpdatePricesRequest.FromString,
          response_serializer=brymck_dot_securities_dot_v1_dot_securities__api__pb2.UpdatePricesResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'brymck.securities.v1.SecuritiesAPI', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
