ephem_pb2_grpc.py 2.45 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
    """Missing associated documentation comment in .proto file"""
Wei Shoulin's avatar
Wei Shoulin committed
9

Wei Shoulin's avatar
Wei Shoulin committed
10
11
    def __init__(self, channel):
        """Constructor.
Wei Shoulin's avatar
Wei Shoulin committed
12

Wei Shoulin's avatar
Wei Shoulin committed
13
14
15
16
17
18
19
20
        Args:
            channel: A grpc.Channel.
        """
        self.Gaia3Search = channel.unary_stream(
                '/dfs.ephem.EphemSearchSrv/Gaia3Search',
                request_serializer=common_dot_ephem_dot_ephem__pb2.EphemSearchRequest.SerializeToString,
                response_deserializer=common_dot_ephem_dot_ephem__pb2.Gaia3SearchResponse.FromString,
                )
Wei Shoulin's avatar
Wei Shoulin committed
21
22


Wei Shoulin's avatar
Wei Shoulin committed
23
class EphemSearchSrvServicer(object):
Wei Shoulin's avatar
Wei Shoulin committed
24
    """Missing associated documentation comment in .proto file"""
Wei Shoulin's avatar
Wei Shoulin committed
25

Wei Shoulin's avatar
Wei Shoulin committed
26
27
28
29
30
    def Gaia3Search(self, request, context):
        """Missing associated documentation comment in .proto file"""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')
Wei Shoulin's avatar
Wei Shoulin committed
31
32


Wei Shoulin's avatar
Wei Shoulin committed
33
def add_EphemSearchSrvServicer_to_server(servicer, server):
Wei Shoulin's avatar
Wei Shoulin committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
    rpc_method_handlers = {
            'Gaia3Search': grpc.unary_stream_rpc_method_handler(
                    servicer.Gaia3Search,
                    request_deserializer=common_dot_ephem_dot_ephem__pb2.EphemSearchRequest.FromString,
                    response_serializer=common_dot_ephem_dot_ephem__pb2.Gaia3SearchResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'dfs.ephem.EphemSearchSrv', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class EphemSearchSrv(object):
    """Missing associated documentation comment in .proto file"""

    @staticmethod
    def Gaia3Search(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_stream(request, target, '/dfs.ephem.EphemSearchSrv/Gaia3Search',
            common_dot_ephem_dot_ephem__pb2.EphemSearchRequest.SerializeToString,
            common_dot_ephem_dot_ephem__pb2.Gaia3SearchResponse.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)