ephem_pb2_grpc.py 1.54 KB
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
1
2
3
4
5
6
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from . import ephem_pb2 as common_dot_ephem_dot_ephem__pb2


Wei Shoulin's avatar
Wei Shoulin committed
7
class EphemSearchSrvStub(object):
Wei Shoulin's avatar
Wei Shoulin committed
8
9
10
11
12
13
14
15
16
  # missing associated documentation comment in .proto file
  pass

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

    Args:
      channel: A grpc.Channel.
    """
Wei Shoulin's avatar
Wei Shoulin committed
17
18
19
20
    self.Gaia2Search = channel.unary_unary(
        '/dfs.ephem.EphemSearchSrv/Gaia2Search',
        request_serializer=common_dot_ephem_dot_ephem__pb2.Gaia2SearchRequest.SerializeToString,
        response_deserializer=common_dot_ephem_dot_ephem__pb2.Gaia2SearchResponse.FromString,
Wei Shoulin's avatar
Wei Shoulin committed
21
22
23
        )


Wei Shoulin's avatar
Wei Shoulin committed
24
class EphemSearchSrvServicer(object):
Wei Shoulin's avatar
Wei Shoulin committed
25
26
27
  # missing associated documentation comment in .proto file
  pass

Wei Shoulin's avatar
Wei Shoulin committed
28
  def Gaia2Search(self, request, context):
Wei Shoulin's avatar
Wei Shoulin committed
29
30
31
32
33
34
35
    # 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!')


Wei Shoulin's avatar
Wei Shoulin committed
36
def add_EphemSearchSrvServicer_to_server(servicer, server):
Wei Shoulin's avatar
Wei Shoulin committed
37
  rpc_method_handlers = {
Wei Shoulin's avatar
Wei Shoulin committed
38
39
40
41
      'Gaia2Search': grpc.unary_unary_rpc_method_handler(
          servicer.Gaia2Search,
          request_deserializer=common_dot_ephem_dot_ephem__pb2.Gaia2SearchRequest.FromString,
          response_serializer=common_dot_ephem_dot_ephem__pb2.Gaia2SearchResponse.SerializeToString,
Wei Shoulin's avatar
Wei Shoulin committed
42
43
44
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
Wei Shoulin's avatar
Wei Shoulin committed
45
      'dfs.ephem.EphemSearchSrv', rpc_method_handlers)
Wei Shoulin's avatar
Wei Shoulin committed
46
  server.add_generic_rpc_handlers((generic_handler,))