level1_pb2_grpc.py 12.4 KB
Newer Older
Wei Shoulin's avatar
c3  
Wei Shoulin committed
1
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
Wei Shoulin's avatar
Wei Shoulin committed
2
"""Client and server classes corresponding to protobuf-defined services."""
Wei Shoulin's avatar
c3  
Wei Shoulin committed
3
4
import grpc

Wei Shoulin's avatar
Wei Shoulin committed
5
from . import level1_pb2 as facility_dot_level1_dot_level1__pb2
Wei Shoulin's avatar
c3  
Wei Shoulin committed
6
7
8


class Level1SrvStub(object):
Wei Shoulin's avatar
Wei Shoulin committed
9
    """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
10
11
12
13
14
15
16
17

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

        Args:
            channel: A grpc.Channel.
        """
        self.Find = channel.unary_unary(
Wei Shoulin's avatar
Wei Shoulin committed
18
19
20
                '/dfs.facility.level1.Level1Srv/Find',
                request_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString,
                response_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
21
22
                )
        self.FindByBrickIds = channel.unary_unary(
Wei Shoulin's avatar
Wei Shoulin committed
23
24
25
                '/dfs.facility.level1.Level1Srv/FindByBrickIds',
                request_serializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsReq.SerializeToString,
                response_deserializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsResp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
26
                )
Wei Shoulin's avatar
Wei Shoulin committed
27
28
29
30
31
        self.FindByQc1Status = channel.unary_unary(
                '/dfs.facility.level1.Level1Srv/FindByQc1Status',
                request_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString,
                response_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString,
                )
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
32
        self.Get = channel.unary_unary(
Wei Shoulin's avatar
Wei Shoulin committed
33
34
35
                '/dfs.facility.level1.Level1Srv/Get',
                request_serializer=facility_dot_level1_dot_level1__pb2.GetLevel1Req.SerializeToString,
                response_deserializer=facility_dot_level1_dot_level1__pb2.GetLevel1Resp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
36
37
                )
        self.Write = channel.stream_unary(
Wei Shoulin's avatar
Wei Shoulin committed
38
39
40
                '/dfs.facility.level1.Level1Srv/Write',
                request_serializer=facility_dot_level1_dot_level1__pb2.WriteLevel1Req.SerializeToString,
                response_deserializer=facility_dot_level1_dot_level1__pb2.WriteLevel1Resp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
41
42
                )
        self.UpdateQc1Status = channel.unary_unary(
Wei Shoulin's avatar
Wei Shoulin committed
43
44
45
                '/dfs.facility.level1.Level1Srv/UpdateQc1Status',
                request_serializer=facility_dot_level1_dot_level1__pb2.UpdateQc1StatusReq.SerializeToString,
                response_deserializer=facility_dot_level1_dot_level1__pb2.UpdateQc1StatusResp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
46
47
                )
        self.UpdateProcStatus = channel.unary_unary(
Wei Shoulin's avatar
Wei Shoulin committed
48
49
50
                '/dfs.facility.level1.Level1Srv/UpdateProcStatus',
                request_serializer=facility_dot_level1_dot_level1__pb2.UpdateProcStatusReq.SerializeToString,
                response_deserializer=facility_dot_level1_dot_level1__pb2.UpdateProcStatusResp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
51
                )
Wei Shoulin's avatar
c3  
Wei Shoulin committed
52
53
54


class Level1SrvServicer(object):
Wei Shoulin's avatar
Wei Shoulin committed
55
    """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
56
57

    def Find(self, request, context):
Wei Shoulin's avatar
Wei Shoulin committed
58
        """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
59
60
61
62
63
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def FindByBrickIds(self, request, context):
Wei Shoulin's avatar
Wei Shoulin committed
64
        """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
65
66
67
68
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

Wei Shoulin's avatar
Wei Shoulin committed
69
    def FindByQc1Status(self, request, context):
Wei Shoulin's avatar
Wei Shoulin committed
70
        """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
Wei Shoulin committed
71
72
73
74
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
75
    def Get(self, request, context):
Wei Shoulin's avatar
Wei Shoulin committed
76
        """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
77
78
79
80
81
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def Write(self, request_iterator, context):
Wei Shoulin's avatar
Wei Shoulin committed
82
        """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
83
84
85
86
87
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def UpdateQc1Status(self, request, context):
Wei Shoulin's avatar
Wei Shoulin committed
88
        """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
89
90
91
92
93
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def UpdateProcStatus(self, request, context):
Wei Shoulin's avatar
Wei Shoulin committed
94
        """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
95
96
97
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')
Wei Shoulin's avatar
c3  
Wei Shoulin committed
98
99
100


def add_Level1SrvServicer_to_server(servicer, server):
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
101
102
103
    rpc_method_handlers = {
            'Find': grpc.unary_unary_rpc_method_handler(
                    servicer.Find,
Wei Shoulin's avatar
Wei Shoulin committed
104
105
                    request_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.FromString,
                    response_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.SerializeToString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
106
107
108
            ),
            'FindByBrickIds': grpc.unary_unary_rpc_method_handler(
                    servicer.FindByBrickIds,
Wei Shoulin's avatar
Wei Shoulin committed
109
110
                    request_deserializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsReq.FromString,
                    response_serializer=facility_dot_level1_dot_level1__pb2.FindByBrickIdsResp.SerializeToString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
111
            ),
Wei Shoulin's avatar
Wei Shoulin committed
112
113
114
115
116
            'FindByQc1Status': grpc.unary_unary_rpc_method_handler(
                    servicer.FindByQc1Status,
                    request_deserializer=facility_dot_level1_dot_level1__pb2.FindLevel1Req.FromString,
                    response_serializer=facility_dot_level1_dot_level1__pb2.FindLevel1Resp.SerializeToString,
            ),
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
117
118
            'Get': grpc.unary_unary_rpc_method_handler(
                    servicer.Get,
Wei Shoulin's avatar
Wei Shoulin committed
119
120
                    request_deserializer=facility_dot_level1_dot_level1__pb2.GetLevel1Req.FromString,
                    response_serializer=facility_dot_level1_dot_level1__pb2.GetLevel1Resp.SerializeToString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
121
122
123
            ),
            'Write': grpc.stream_unary_rpc_method_handler(
                    servicer.Write,
Wei Shoulin's avatar
Wei Shoulin committed
124
125
                    request_deserializer=facility_dot_level1_dot_level1__pb2.WriteLevel1Req.FromString,
                    response_serializer=facility_dot_level1_dot_level1__pb2.WriteLevel1Resp.SerializeToString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
126
127
128
            ),
            'UpdateQc1Status': grpc.unary_unary_rpc_method_handler(
                    servicer.UpdateQc1Status,
Wei Shoulin's avatar
Wei Shoulin committed
129
130
                    request_deserializer=facility_dot_level1_dot_level1__pb2.UpdateQc1StatusReq.FromString,
                    response_serializer=facility_dot_level1_dot_level1__pb2.UpdateQc1StatusResp.SerializeToString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
131
132
133
            ),
            'UpdateProcStatus': grpc.unary_unary_rpc_method_handler(
                    servicer.UpdateProcStatus,
Wei Shoulin's avatar
Wei Shoulin committed
134
135
                    request_deserializer=facility_dot_level1_dot_level1__pb2.UpdateProcStatusReq.FromString,
                    response_serializer=facility_dot_level1_dot_level1__pb2.UpdateProcStatusResp.SerializeToString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
136
137
138
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
Wei Shoulin's avatar
Wei Shoulin committed
139
            'dfs.facility.level1.Level1Srv', rpc_method_handlers)
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
140
141
142
143
144
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class Level1Srv(object):
Wei Shoulin's avatar
Wei Shoulin committed
145
    """Missing associated documentation comment in .proto file."""
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
146
147
148
149
150
151
152

    @staticmethod
    def Find(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
Wei Shoulin's avatar
Wei Shoulin committed
153
            insecure=False,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
154
155
156
157
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
Wei Shoulin's avatar
Wei Shoulin committed
158
159
160
        return grpc.experimental.unary_unary(request, target, '/dfs.facility.level1.Level1Srv/Find',
            facility_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString,
            facility_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
161
            options, channel_credentials,
Wei Shoulin's avatar
Wei Shoulin committed
162
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
163
164
165
166
167
168
169

    @staticmethod
    def FindByBrickIds(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
Wei Shoulin's avatar
Wei Shoulin committed
170
            insecure=False,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
171
172
173
174
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
Wei Shoulin's avatar
Wei Shoulin committed
175
176
177
        return grpc.experimental.unary_unary(request, target, '/dfs.facility.level1.Level1Srv/FindByBrickIds',
            facility_dot_level1_dot_level1__pb2.FindByBrickIdsReq.SerializeToString,
            facility_dot_level1_dot_level1__pb2.FindByBrickIdsResp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
178
            options, channel_credentials,
Wei Shoulin's avatar
Wei Shoulin committed
179
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
180

Wei Shoulin's avatar
Wei Shoulin committed
181
182
183
184
185
186
    @staticmethod
    def FindByQc1Status(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
Wei Shoulin's avatar
Wei Shoulin committed
187
            insecure=False,
Wei Shoulin's avatar
Wei Shoulin committed
188
189
190
191
192
193
194
195
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/dfs.facility.level1.Level1Srv/FindByQc1Status',
            facility_dot_level1_dot_level1__pb2.FindLevel1Req.SerializeToString,
            facility_dot_level1_dot_level1__pb2.FindLevel1Resp.FromString,
            options, channel_credentials,
Wei Shoulin's avatar
Wei Shoulin committed
196
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Wei Shoulin's avatar
Wei Shoulin committed
197

Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
198
199
200
201
202
203
    @staticmethod
    def Get(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
Wei Shoulin's avatar
Wei Shoulin committed
204
            insecure=False,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
205
206
207
208
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
Wei Shoulin's avatar
Wei Shoulin committed
209
210
211
        return grpc.experimental.unary_unary(request, target, '/dfs.facility.level1.Level1Srv/Get',
            facility_dot_level1_dot_level1__pb2.GetLevel1Req.SerializeToString,
            facility_dot_level1_dot_level1__pb2.GetLevel1Resp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
212
            options, channel_credentials,
Wei Shoulin's avatar
Wei Shoulin committed
213
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
214
215
216
217
218
219
220

    @staticmethod
    def Write(request_iterator,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
Wei Shoulin's avatar
Wei Shoulin committed
221
            insecure=False,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
222
223
224
225
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
Wei Shoulin's avatar
Wei Shoulin committed
226
227
228
        return grpc.experimental.stream_unary(request_iterator, target, '/dfs.facility.level1.Level1Srv/Write',
            facility_dot_level1_dot_level1__pb2.WriteLevel1Req.SerializeToString,
            facility_dot_level1_dot_level1__pb2.WriteLevel1Resp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
229
            options, channel_credentials,
Wei Shoulin's avatar
Wei Shoulin committed
230
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
231
232
233
234
235
236
237

    @staticmethod
    def UpdateQc1Status(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
Wei Shoulin's avatar
Wei Shoulin committed
238
            insecure=False,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
239
240
241
242
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
Wei Shoulin's avatar
Wei Shoulin committed
243
244
245
        return grpc.experimental.unary_unary(request, target, '/dfs.facility.level1.Level1Srv/UpdateQc1Status',
            facility_dot_level1_dot_level1__pb2.UpdateQc1StatusReq.SerializeToString,
            facility_dot_level1_dot_level1__pb2.UpdateQc1StatusResp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
246
            options, channel_credentials,
Wei Shoulin's avatar
Wei Shoulin committed
247
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
248
249
250
251
252
253
254

    @staticmethod
    def UpdateProcStatus(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
Wei Shoulin's avatar
Wei Shoulin committed
255
            insecure=False,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
256
257
258
259
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
Wei Shoulin's avatar
Wei Shoulin committed
260
261
262
        return grpc.experimental.unary_unary(request, target, '/dfs.facility.level1.Level1Srv/UpdateProcStatus',
            facility_dot_level1_dot_level1__pb2.UpdateProcStatusReq.SerializeToString,
            facility_dot_level1_dot_level1__pb2.UpdateProcStatusResp.FromString,
Wei Shoulin's avatar
hstdm    
Wei Shoulin committed
263
            options, channel_credentials,
Wei Shoulin's avatar
Wei Shoulin committed
264
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)