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

import gps_data_pb2 as gps__data__pb2


class GPSServiceStub(object):
  """import "google/protobuf/empty.proto";

  """

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

    Args:
      channel: A grpc.Channel.
    """
    self.GetGPSData = channel.unary_unary(
        '/vutura.gps.GPSService/GetGPSData',
        request_serializer=gps__data__pb2.Empty.SerializeToString,
        response_deserializer=gps__data__pb2.GPSFix.FromString,
        )
    self.SetGPSData = channel.unary_unary(
        '/vutura.gps.GPSService/SetGPSData',
        request_serializer=gps__data__pb2.GPSFix.SerializeToString,
        response_deserializer=gps__data__pb2.Empty.FromString,
        )


class GPSServiceServicer(object):
  """import "google/protobuf/empty.proto";

  """

  def GetGPSData(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 SetGPSData(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_GPSServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'GetGPSData': grpc.unary_unary_rpc_method_handler(
          servicer.GetGPSData,
          request_deserializer=gps__data__pb2.Empty.FromString,
          response_serializer=gps__data__pb2.GPSFix.SerializeToString,
      ),
      'SetGPSData': grpc.unary_unary_rpc_method_handler(
          servicer.SetGPSData,
          request_deserializer=gps__data__pb2.GPSFix.FromString,
          response_serializer=gps__data__pb2.Empty.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'vutura.gps.GPSService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
