1 # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
4 import client_pb2
as mainServer__pb2
7 class GeneralStub(object):
8 """-------------------------- General -------------------------------------
11 def __init__(self
, channel
):
15 channel: A grpc.Channel.
17 self
.GeneralHeartbeat
= channel
.unary_unary(
18 '/proto.General/GeneralHeartbeat',
19 request_serializer
=mainServer__pb2
.Empty
.SerializeToString
,
20 response_deserializer
=mainServer__pb2
.GeneralHeartbeatOutput
.FromString
,
22 self
.Ping
= channel
.unary_unary(
23 '/proto.General/Ping',
24 request_serializer
=mainServer__pb2
.Empty
.SerializeToString
,
25 response_deserializer
=mainServer__pb2
.PingOutout
.FromString
,
27 self
.Test
= channel
.unary_unary(
28 '/proto.General/Test',
29 request_serializer
=mainServer__pb2
.TestInput
.SerializeToString
,
30 response_deserializer
=mainServer__pb2
.TestOutput
.FromString
,
34 class GeneralServicer(object):
35 """-------------------------- General -------------------------------------
38 def GeneralHeartbeat(self
, request
, context
):
39 # missing associated documentation comment in .proto file
41 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
42 context
.set_details('Method not implemented!')
43 raise NotImplementedError('Method not implemented!')
45 def Ping(self
, request
, context
):
46 # missing associated documentation comment in .proto file
48 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
49 context
.set_details('Method not implemented!')
50 raise NotImplementedError('Method not implemented!')
52 def Test(self
, request
, context
):
53 # missing associated documentation comment in .proto file
55 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
56 context
.set_details('Method not implemented!')
57 raise NotImplementedError('Method not implemented!')
60 def add_GeneralServicer_to_server(servicer
, server
):
61 rpc_method_handlers
= {
62 'GeneralHeartbeat': grpc
.unary_unary_rpc_method_handler(
63 servicer
.GeneralHeartbeat
,
64 request_deserializer
=mainServer__pb2
.Empty
.FromString
,
65 response_serializer
=mainServer__pb2
.GeneralHeartbeatOutput
.SerializeToString
,
67 'Ping': grpc
.unary_unary_rpc_method_handler(
69 request_deserializer
=mainServer__pb2
.Empty
.FromString
,
70 response_serializer
=mainServer__pb2
.PingOutout
.SerializeToString
,
72 'Test': grpc
.unary_unary_rpc_method_handler(
74 request_deserializer
=mainServer__pb2
.TestInput
.FromString
,
75 response_serializer
=mainServer__pb2
.TestOutput
.SerializeToString
,
78 generic_handler
= grpc
.method_handlers_generic_handler(
79 'proto.General', rpc_method_handlers
)
80 server
.add_generic_rpc_handlers((generic_handler
,))
83 class AccountStub(object):
84 """-------------------------- SERVER ACCOUNT ------------------------------
87 def __init__(self
, channel
):
91 channel: A grpc.Channel.
93 self
.AccountHeartbeat
= channel
.unary_unary(
94 '/proto.Account/AccountHeartbeat',
95 request_serializer
=mainServer__pb2
.Empty
.SerializeToString
,
96 response_deserializer
=mainServer__pb2
.AccountHeartbeatOutput
.FromString
,
98 self
.Login
= channel
.unary_unary(
99 '/proto.Account/Login',
100 request_serializer
=mainServer__pb2
.LoginInput
.SerializeToString
,
101 response_deserializer
=mainServer__pb2
.UserOutput
.FromString
,
103 self
.Signup
= channel
.unary_unary(
104 '/proto.Account/Signup',
105 request_serializer
=mainServer__pb2
.SingupInput
.SerializeToString
,
106 response_deserializer
=mainServer__pb2
.SingupOutput
.FromString
,
108 self
.ResendConfirmCode
= channel
.unary_unary(
109 '/proto.Account/ResendConfirmCode',
110 request_serializer
=mainServer__pb2
.ResendConfirmCodeInput
.SerializeToString
,
111 response_deserializer
=mainServer__pb2
.GeneralMsgOutput
.FromString
,
113 self
.Confirm
= channel
.unary_unary(
114 '/proto.Account/Confirm',
115 request_serializer
=mainServer__pb2
.ConfirmInput
.SerializeToString
,
116 response_deserializer
=mainServer__pb2
.GeneralMsgOutput
.FromString
,
118 self
.GetUsersByStatus
= channel
.unary_unary(
119 '/proto.Account/GetUsersByStatus',
120 request_serializer
=mainServer__pb2
.GetUsersByStatusInput
.SerializeToString
,
121 response_deserializer
=mainServer__pb2
.GetUsersByStatusOutput
.FromString
,
123 self
.DeleteUser
= channel
.unary_unary(
124 '/proto.Account/DeleteUser',
125 request_serializer
=mainServer__pb2
.DeleteUserInput
.SerializeToString
,
126 response_deserializer
=mainServer__pb2
.GeneralMsgOutput
.FromString
,
128 self
.UpdateUserStatus
= channel
.unary_unary(
129 '/proto.Account/UpdateUserStatus',
130 request_serializer
=mainServer__pb2
.UpdateUserStatusInput
.SerializeToString
,
131 response_deserializer
=mainServer__pb2
.GeneralMsgOutput
.FromString
,
135 class AccountServicer(object):
136 """-------------------------- SERVER ACCOUNT ------------------------------
139 def AccountHeartbeat(self
, request
, context
):
140 # missing associated documentation comment in .proto file
142 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
143 context
.set_details('Method not implemented!')
144 raise NotImplementedError('Method not implemented!')
146 def Login(self
, request
, context
):
147 # missing associated documentation comment in .proto file
149 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
150 context
.set_details('Method not implemented!')
151 raise NotImplementedError('Method not implemented!')
153 def Signup(self
, request
, context
):
154 # missing associated documentation comment in .proto file
156 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
157 context
.set_details('Method not implemented!')
158 raise NotImplementedError('Method not implemented!')
160 def ResendConfirmCode(self
, request
, context
):
161 # missing associated documentation comment in .proto file
163 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
164 context
.set_details('Method not implemented!')
165 raise NotImplementedError('Method not implemented!')
167 def Confirm(self
, request
, context
):
168 # missing associated documentation comment in .proto file
170 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
171 context
.set_details('Method not implemented!')
172 raise NotImplementedError('Method not implemented!')
174 def GetUsersByStatus(self
, request
, context
):
175 # missing associated documentation comment in .proto file
177 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
178 context
.set_details('Method not implemented!')
179 raise NotImplementedError('Method not implemented!')
181 def DeleteUser(self
, request
, context
):
182 # missing associated documentation comment in .proto file
184 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
185 context
.set_details('Method not implemented!')
186 raise NotImplementedError('Method not implemented!')
188 def UpdateUserStatus(self
, request
, context
):
189 # missing associated documentation comment in .proto file
191 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
192 context
.set_details('Method not implemented!')
193 raise NotImplementedError('Method not implemented!')
196 def add_AccountServicer_to_server(servicer
, server
):
197 rpc_method_handlers
= {
198 'AccountHeartbeat': grpc
.unary_unary_rpc_method_handler(
199 servicer
.AccountHeartbeat
,
200 request_deserializer
=mainServer__pb2
.Empty
.FromString
,
201 response_serializer
=mainServer__pb2
.AccountHeartbeatOutput
.SerializeToString
,
203 'Login': grpc
.unary_unary_rpc_method_handler(
205 request_deserializer
=mainServer__pb2
.LoginInput
.FromString
,
206 response_serializer
=mainServer__pb2
.UserOutput
.SerializeToString
,
208 'Signup': grpc
.unary_unary_rpc_method_handler(
210 request_deserializer
=mainServer__pb2
.SingupInput
.FromString
,
211 response_serializer
=mainServer__pb2
.SingupOutput
.SerializeToString
,
213 'ResendConfirmCode': grpc
.unary_unary_rpc_method_handler(
214 servicer
.ResendConfirmCode
,
215 request_deserializer
=mainServer__pb2
.ResendConfirmCodeInput
.FromString
,
216 response_serializer
=mainServer__pb2
.GeneralMsgOutput
.SerializeToString
,
218 'Confirm': grpc
.unary_unary_rpc_method_handler(
220 request_deserializer
=mainServer__pb2
.ConfirmInput
.FromString
,
221 response_serializer
=mainServer__pb2
.GeneralMsgOutput
.SerializeToString
,
223 'GetUsersByStatus': grpc
.unary_unary_rpc_method_handler(
224 servicer
.GetUsersByStatus
,
225 request_deserializer
=mainServer__pb2
.GetUsersByStatusInput
.FromString
,
226 response_serializer
=mainServer__pb2
.GetUsersByStatusOutput
.SerializeToString
,
228 'DeleteUser': grpc
.unary_unary_rpc_method_handler(
230 request_deserializer
=mainServer__pb2
.DeleteUserInput
.FromString
,
231 response_serializer
=mainServer__pb2
.GeneralMsgOutput
.SerializeToString
,
233 'UpdateUserStatus': grpc
.unary_unary_rpc_method_handler(
234 servicer
.UpdateUserStatus
,
235 request_deserializer
=mainServer__pb2
.UpdateUserStatusInput
.FromString
,
236 response_serializer
=mainServer__pb2
.GeneralMsgOutput
.SerializeToString
,
239 generic_handler
= grpc
.method_handlers_generic_handler(
240 'proto.Account', rpc_method_handlers
)
241 server
.add_generic_rpc_handlers((generic_handler
,))
244 class DiskprophetStub(object):
245 """------------------------ SERVER DISKPROPHET ---------------------------
248 def __init__(self
, channel
):
252 channel: A grpc.Channel.
254 self
.DPHeartbeat
= channel
.unary_unary(
255 '/proto.Diskprophet/DPHeartbeat',
256 request_serializer
=mainServer__pb2
.Empty
.SerializeToString
,
257 response_deserializer
=mainServer__pb2
.DPHeartbeatOutput
.FromString
,
259 self
.DPGetPhysicalDisks
= channel
.unary_unary(
260 '/proto.Diskprophet/DPGetPhysicalDisks',
261 request_serializer
=mainServer__pb2
.DPGetPhysicalDisksInput
.SerializeToString
,
262 response_deserializer
=mainServer__pb2
.DPBinaryOutput
.FromString
,
264 self
.DPGetDisksPrediction
= channel
.unary_unary(
265 '/proto.Diskprophet/DPGetDisksPrediction',
266 request_serializer
=mainServer__pb2
.DPGetDisksPredictionInput
.SerializeToString
,
267 response_deserializer
=mainServer__pb2
.DPBinaryOutput
.FromString
,
271 class DiskprophetServicer(object):
272 """------------------------ SERVER DISKPROPHET ---------------------------
275 def DPHeartbeat(self
, request
, context
):
276 # missing associated documentation comment in .proto file
278 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
279 context
.set_details('Method not implemented!')
280 raise NotImplementedError('Method not implemented!')
282 def DPGetPhysicalDisks(self
, request
, context
):
283 # missing associated documentation comment in .proto file
285 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
286 context
.set_details('Method not implemented!')
287 raise NotImplementedError('Method not implemented!')
289 def DPGetDisksPrediction(self
, request
, context
):
290 # missing associated documentation comment in .proto file
292 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
293 context
.set_details('Method not implemented!')
294 raise NotImplementedError('Method not implemented!')
297 def add_DiskprophetServicer_to_server(servicer
, server
):
298 rpc_method_handlers
= {
299 'DPHeartbeat': grpc
.unary_unary_rpc_method_handler(
300 servicer
.DPHeartbeat
,
301 request_deserializer
=mainServer__pb2
.Empty
.FromString
,
302 response_serializer
=mainServer__pb2
.DPHeartbeatOutput
.SerializeToString
,
304 'DPGetPhysicalDisks': grpc
.unary_unary_rpc_method_handler(
305 servicer
.DPGetPhysicalDisks
,
306 request_deserializer
=mainServer__pb2
.DPGetPhysicalDisksInput
.FromString
,
307 response_serializer
=mainServer__pb2
.DPBinaryOutput
.SerializeToString
,
309 'DPGetDisksPrediction': grpc
.unary_unary_rpc_method_handler(
310 servicer
.DPGetDisksPrediction
,
311 request_deserializer
=mainServer__pb2
.DPGetDisksPredictionInput
.FromString
,
312 response_serializer
=mainServer__pb2
.DPBinaryOutput
.SerializeToString
,
315 generic_handler
= grpc
.method_handlers_generic_handler(
316 'proto.Diskprophet', rpc_method_handlers
)
317 server
.add_generic_rpc_handlers((generic_handler
,))
320 class CollectionStub(object):
321 """------------------------ SERVER Collection ---------------------------
325 def __init__(self
, channel
):
329 channel: A grpc.Channel.
331 self
.CollectionHeartbeat
= channel
.unary_unary(
332 '/proto.Collection/CollectionHeartbeat',
333 request_serializer
=mainServer__pb2
.Empty
.SerializeToString
,
334 response_deserializer
=mainServer__pb2
.CollectionHeartbeatOutput
.FromString
,
336 self
.PostDBRelay
= channel
.unary_unary(
337 '/proto.Collection/PostDBRelay',
338 request_serializer
=mainServer__pb2
.PostDBRelayInput
.SerializeToString
,
339 response_deserializer
=mainServer__pb2
.CollectionMessageOutput
.FromString
,
341 self
.PostMetrics
= channel
.unary_unary(
342 '/proto.Collection/PostMetrics',
343 request_serializer
=mainServer__pb2
.PostMetricsInput
.SerializeToString
,
344 response_deserializer
=mainServer__pb2
.CollectionMessageOutput
.FromString
,
348 class CollectionServicer(object):
349 """------------------------ SERVER Collection ---------------------------
353 def CollectionHeartbeat(self
, request
, context
):
354 # missing associated documentation comment in .proto file
356 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
357 context
.set_details('Method not implemented!')
358 raise NotImplementedError('Method not implemented!')
360 def PostDBRelay(self
, request
, context
):
361 # missing associated documentation comment in .proto file
363 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
364 context
.set_details('Method not implemented!')
365 raise NotImplementedError('Method not implemented!')
367 def PostMetrics(self
, request
, context
):
368 # missing associated documentation comment in .proto file
370 context
.set_code(grpc
.StatusCode
.UNIMPLEMENTED
)
371 context
.set_details('Method not implemented!')
372 raise NotImplementedError('Method not implemented!')
375 def add_CollectionServicer_to_server(servicer
, server
):
376 rpc_method_handlers
= {
377 'CollectionHeartbeat': grpc
.unary_unary_rpc_method_handler(
378 servicer
.CollectionHeartbeat
,
379 request_deserializer
=mainServer__pb2
.Empty
.FromString
,
380 response_serializer
=mainServer__pb2
.CollectionHeartbeatOutput
.SerializeToString
,
382 'PostDBRelay': grpc
.unary_unary_rpc_method_handler(
383 servicer
.PostDBRelay
,
384 request_deserializer
=mainServer__pb2
.PostDBRelayInput
.FromString
,
385 response_serializer
=mainServer__pb2
.CollectionMessageOutput
.SerializeToString
,
387 'PostMetrics': grpc
.unary_unary_rpc_method_handler(
388 servicer
.PostMetrics
,
389 request_deserializer
=mainServer__pb2
.PostMetricsInput
.FromString
,
390 response_serializer
=mainServer__pb2
.CollectionMessageOutput
.SerializeToString
,
393 generic_handler
= grpc
.method_handlers_generic_handler(
394 'proto.Collection', rpc_method_handlers
)
395 server
.add_generic_rpc_handlers((generic_handler
,))