hr_pb2_grpc.py 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
  2. """Client and server classes corresponding to protobuf-defined services."""
  3. import grpc
  4. import warnings
  5. import hr_pb2 as hr__pb2
  6. GRPC_GENERATED_VERSION = '1.75.1'
  7. GRPC_VERSION = grpc.__version__
  8. _version_not_supported = False
  9. try:
  10. from grpc._utilities import first_version_is_lower
  11. _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
  12. except ImportError:
  13. _version_not_supported = True
  14. if _version_not_supported:
  15. raise RuntimeError(
  16. f'The grpc package installed is at version {GRPC_VERSION},'
  17. + f' but the generated code in hr_pb2_grpc.py depends on'
  18. + f' grpcio>={GRPC_GENERATED_VERSION}.'
  19. + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
  20. + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
  21. )
  22. class IAMServiceStub(object):
  23. """===== IAM Service =====
  24. """
  25. def __init__(self, channel):
  26. """Constructor.
  27. Args:
  28. channel: A grpc.Channel.
  29. """
  30. self.GetUser = channel.unary_unary(
  31. '/hr.IAMService/GetUser',
  32. request_serializer=hr__pb2.UserRequest.SerializeToString,
  33. response_deserializer=hr__pb2.UserResponse.FromString,
  34. _registered_method=True)
  35. self.Login = channel.unary_unary(
  36. '/hr.IAMService/Login',
  37. request_serializer=hr__pb2.LoginRequest.SerializeToString,
  38. response_deserializer=hr__pb2.LoginResponse.FromString,
  39. _registered_method=True)
  40. class IAMServiceServicer(object):
  41. """===== IAM Service =====
  42. """
  43. def GetUser(self, request, context):
  44. """Missing associated documentation comment in .proto file."""
  45. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  46. context.set_details('Method not implemented!')
  47. raise NotImplementedError('Method not implemented!')
  48. def Login(self, request, context):
  49. """Missing associated documentation comment in .proto file."""
  50. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  51. context.set_details('Method not implemented!')
  52. raise NotImplementedError('Method not implemented!')
  53. def add_IAMServiceServicer_to_server(servicer, server):
  54. rpc_method_handlers = {
  55. 'GetUser': grpc.unary_unary_rpc_method_handler(
  56. servicer.GetUser,
  57. request_deserializer=hr__pb2.UserRequest.FromString,
  58. response_serializer=hr__pb2.UserResponse.SerializeToString,
  59. ),
  60. 'Login': grpc.unary_unary_rpc_method_handler(
  61. servicer.Login,
  62. request_deserializer=hr__pb2.LoginRequest.FromString,
  63. response_serializer=hr__pb2.LoginResponse.SerializeToString,
  64. ),
  65. }
  66. generic_handler = grpc.method_handlers_generic_handler(
  67. 'hr.IAMService', rpc_method_handlers)
  68. server.add_generic_rpc_handlers((generic_handler,))
  69. server.add_registered_method_handlers('hr.IAMService', rpc_method_handlers)
  70. # This class is part of an EXPERIMENTAL API.
  71. class IAMService(object):
  72. """===== IAM Service =====
  73. """
  74. @staticmethod
  75. def GetUser(request,
  76. target,
  77. options=(),
  78. channel_credentials=None,
  79. call_credentials=None,
  80. insecure=False,
  81. compression=None,
  82. wait_for_ready=None,
  83. timeout=None,
  84. metadata=None):
  85. return grpc.experimental.unary_unary(
  86. request,
  87. target,
  88. '/hr.IAMService/GetUser',
  89. hr__pb2.UserRequest.SerializeToString,
  90. hr__pb2.UserResponse.FromString,
  91. options,
  92. channel_credentials,
  93. insecure,
  94. call_credentials,
  95. compression,
  96. wait_for_ready,
  97. timeout,
  98. metadata,
  99. _registered_method=True)
  100. @staticmethod
  101. def Login(request,
  102. target,
  103. options=(),
  104. channel_credentials=None,
  105. call_credentials=None,
  106. insecure=False,
  107. compression=None,
  108. wait_for_ready=None,
  109. timeout=None,
  110. metadata=None):
  111. return grpc.experimental.unary_unary(
  112. request,
  113. target,
  114. '/hr.IAMService/Login',
  115. hr__pb2.LoginRequest.SerializeToString,
  116. hr__pb2.LoginResponse.FromString,
  117. options,
  118. channel_credentials,
  119. insecure,
  120. call_credentials,
  121. compression,
  122. wait_for_ready,
  123. timeout,
  124. metadata,
  125. _registered_method=True)
  126. class PersonalityTestServiceStub(object):
  127. """===== Personality Test Service =====
  128. """
  129. def __init__(self, channel):
  130. """Constructor.
  131. Args:
  132. channel: A grpc.Channel.
  133. """
  134. self.GetTestResult = channel.unary_unary(
  135. '/hr.PersonalityTestService/GetTestResult',
  136. request_serializer=hr__pb2.TestRequest.SerializeToString,
  137. response_deserializer=hr__pb2.TestResponse.FromString,
  138. _registered_method=True)
  139. class PersonalityTestServiceServicer(object):
  140. """===== Personality Test Service =====
  141. """
  142. def GetTestResult(self, request, context):
  143. """Missing associated documentation comment in .proto file."""
  144. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  145. context.set_details('Method not implemented!')
  146. raise NotImplementedError('Method not implemented!')
  147. def add_PersonalityTestServiceServicer_to_server(servicer, server):
  148. rpc_method_handlers = {
  149. 'GetTestResult': grpc.unary_unary_rpc_method_handler(
  150. servicer.GetTestResult,
  151. request_deserializer=hr__pb2.TestRequest.FromString,
  152. response_serializer=hr__pb2.TestResponse.SerializeToString,
  153. ),
  154. }
  155. generic_handler = grpc.method_handlers_generic_handler(
  156. 'hr.PersonalityTestService', rpc_method_handlers)
  157. server.add_generic_rpc_handlers((generic_handler,))
  158. server.add_registered_method_handlers('hr.PersonalityTestService', rpc_method_handlers)
  159. # This class is part of an EXPERIMENTAL API.
  160. class PersonalityTestService(object):
  161. """===== Personality Test Service =====
  162. """
  163. @staticmethod
  164. def GetTestResult(request,
  165. target,
  166. options=(),
  167. channel_credentials=None,
  168. call_credentials=None,
  169. insecure=False,
  170. compression=None,
  171. wait_for_ready=None,
  172. timeout=None,
  173. metadata=None):
  174. return grpc.experimental.unary_unary(
  175. request,
  176. target,
  177. '/hr.PersonalityTestService/GetTestResult',
  178. hr__pb2.TestRequest.SerializeToString,
  179. hr__pb2.TestResponse.FromString,
  180. options,
  181. channel_credentials,
  182. insecure,
  183. call_credentials,
  184. compression,
  185. wait_for_ready,
  186. timeout,
  187. metadata,
  188. _registered_method=True)
  189. class InterviewServiceStub(object):
  190. """===== Interview Service =====
  191. """
  192. def __init__(self, channel):
  193. """Constructor.
  194. Args:
  195. channel: A grpc.Channel.
  196. """
  197. self.ScheduleInterview = channel.unary_unary(
  198. '/hr.InterviewService/ScheduleInterview',
  199. request_serializer=hr__pb2.InterviewRequest.SerializeToString,
  200. response_deserializer=hr__pb2.InterviewResponse.FromString,
  201. _registered_method=True)
  202. self.GetInterviews = channel.unary_unary(
  203. '/hr.InterviewService/GetInterviews',
  204. request_serializer=hr__pb2.InterviewListRequest.SerializeToString,
  205. response_deserializer=hr__pb2.InterviewListResponse.FromString,
  206. _registered_method=True)
  207. class InterviewServiceServicer(object):
  208. """===== Interview Service =====
  209. """
  210. def ScheduleInterview(self, request, context):
  211. """Missing associated documentation comment in .proto file."""
  212. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  213. context.set_details('Method not implemented!')
  214. raise NotImplementedError('Method not implemented!')
  215. def GetInterviews(self, request, context):
  216. """Missing associated documentation comment in .proto file."""
  217. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  218. context.set_details('Method not implemented!')
  219. raise NotImplementedError('Method not implemented!')
  220. def add_InterviewServiceServicer_to_server(servicer, server):
  221. rpc_method_handlers = {
  222. 'ScheduleInterview': grpc.unary_unary_rpc_method_handler(
  223. servicer.ScheduleInterview,
  224. request_deserializer=hr__pb2.InterviewRequest.FromString,
  225. response_serializer=hr__pb2.InterviewResponse.SerializeToString,
  226. ),
  227. 'GetInterviews': grpc.unary_unary_rpc_method_handler(
  228. servicer.GetInterviews,
  229. request_deserializer=hr__pb2.InterviewListRequest.FromString,
  230. response_serializer=hr__pb2.InterviewListResponse.SerializeToString,
  231. ),
  232. }
  233. generic_handler = grpc.method_handlers_generic_handler(
  234. 'hr.InterviewService', rpc_method_handlers)
  235. server.add_generic_rpc_handlers((generic_handler,))
  236. server.add_registered_method_handlers('hr.InterviewService', rpc_method_handlers)
  237. # This class is part of an EXPERIMENTAL API.
  238. class InterviewService(object):
  239. """===== Interview Service =====
  240. """
  241. @staticmethod
  242. def ScheduleInterview(request,
  243. target,
  244. options=(),
  245. channel_credentials=None,
  246. call_credentials=None,
  247. insecure=False,
  248. compression=None,
  249. wait_for_ready=None,
  250. timeout=None,
  251. metadata=None):
  252. return grpc.experimental.unary_unary(
  253. request,
  254. target,
  255. '/hr.InterviewService/ScheduleInterview',
  256. hr__pb2.InterviewRequest.SerializeToString,
  257. hr__pb2.InterviewResponse.FromString,
  258. options,
  259. channel_credentials,
  260. insecure,
  261. call_credentials,
  262. compression,
  263. wait_for_ready,
  264. timeout,
  265. metadata,
  266. _registered_method=True)
  267. @staticmethod
  268. def GetInterviews(request,
  269. target,
  270. options=(),
  271. channel_credentials=None,
  272. call_credentials=None,
  273. insecure=False,
  274. compression=None,
  275. wait_for_ready=None,
  276. timeout=None,
  277. metadata=None):
  278. return grpc.experimental.unary_unary(
  279. request,
  280. target,
  281. '/hr.InterviewService/GetInterviews',
  282. hr__pb2.InterviewListRequest.SerializeToString,
  283. hr__pb2.InterviewListResponse.FromString,
  284. options,
  285. channel_credentials,
  286. insecure,
  287. call_credentials,
  288. compression,
  289. wait_for_ready,
  290. timeout,
  291. metadata,
  292. _registered_method=True)
  293. class WorkspaceServiceStub(object):
  294. """===== Workspace Service =====
  295. """
  296. def __init__(self, channel):
  297. """Constructor.
  298. Args:
  299. channel: A grpc.Channel.
  300. """
  301. self.CreateProfile = channel.unary_unary(
  302. '/hr.WorkspaceService/CreateProfile',
  303. request_serializer=hr__pb2.ProfileRequest.SerializeToString,
  304. response_deserializer=hr__pb2.ProfileResponse.FromString,
  305. _registered_method=True)
  306. self.GetProfile = channel.unary_unary(
  307. '/hr.WorkspaceService/GetProfile',
  308. request_serializer=hr__pb2.GetProfileRequest.SerializeToString,
  309. response_deserializer=hr__pb2.ProfileResponse.FromString,
  310. _registered_method=True)
  311. self.CreateJobDescription = channel.unary_unary(
  312. '/hr.WorkspaceService/CreateJobDescription',
  313. request_serializer=hr__pb2.JobDescriptionRequest.SerializeToString,
  314. response_deserializer=hr__pb2.JobDescriptionResponse.FromString,
  315. _registered_method=True)
  316. self.GetJobDescription = channel.unary_unary(
  317. '/hr.WorkspaceService/GetJobDescription',
  318. request_serializer=hr__pb2.GetJobDescriptionRequest.SerializeToString,
  319. response_deserializer=hr__pb2.JobDescriptionResponse.FromString,
  320. _registered_method=True)
  321. class WorkspaceServiceServicer(object):
  322. """===== Workspace Service =====
  323. """
  324. def CreateProfile(self, request, context):
  325. """Missing associated documentation comment in .proto file."""
  326. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  327. context.set_details('Method not implemented!')
  328. raise NotImplementedError('Method not implemented!')
  329. def GetProfile(self, request, context):
  330. """Missing associated documentation comment in .proto file."""
  331. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  332. context.set_details('Method not implemented!')
  333. raise NotImplementedError('Method not implemented!')
  334. def CreateJobDescription(self, request, context):
  335. """Missing associated documentation comment in .proto file."""
  336. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  337. context.set_details('Method not implemented!')
  338. raise NotImplementedError('Method not implemented!')
  339. def GetJobDescription(self, request, context):
  340. """Missing associated documentation comment in .proto file."""
  341. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  342. context.set_details('Method not implemented!')
  343. raise NotImplementedError('Method not implemented!')
  344. def add_WorkspaceServiceServicer_to_server(servicer, server):
  345. rpc_method_handlers = {
  346. 'CreateProfile': grpc.unary_unary_rpc_method_handler(
  347. servicer.CreateProfile,
  348. request_deserializer=hr__pb2.ProfileRequest.FromString,
  349. response_serializer=hr__pb2.ProfileResponse.SerializeToString,
  350. ),
  351. 'GetProfile': grpc.unary_unary_rpc_method_handler(
  352. servicer.GetProfile,
  353. request_deserializer=hr__pb2.GetProfileRequest.FromString,
  354. response_serializer=hr__pb2.ProfileResponse.SerializeToString,
  355. ),
  356. 'CreateJobDescription': grpc.unary_unary_rpc_method_handler(
  357. servicer.CreateJobDescription,
  358. request_deserializer=hr__pb2.JobDescriptionRequest.FromString,
  359. response_serializer=hr__pb2.JobDescriptionResponse.SerializeToString,
  360. ),
  361. 'GetJobDescription': grpc.unary_unary_rpc_method_handler(
  362. servicer.GetJobDescription,
  363. request_deserializer=hr__pb2.GetJobDescriptionRequest.FromString,
  364. response_serializer=hr__pb2.JobDescriptionResponse.SerializeToString,
  365. ),
  366. }
  367. generic_handler = grpc.method_handlers_generic_handler(
  368. 'hr.WorkspaceService', rpc_method_handlers)
  369. server.add_generic_rpc_handlers((generic_handler,))
  370. server.add_registered_method_handlers('hr.WorkspaceService', rpc_method_handlers)
  371. # This class is part of an EXPERIMENTAL API.
  372. class WorkspaceService(object):
  373. """===== Workspace Service =====
  374. """
  375. @staticmethod
  376. def CreateProfile(request,
  377. target,
  378. options=(),
  379. channel_credentials=None,
  380. call_credentials=None,
  381. insecure=False,
  382. compression=None,
  383. wait_for_ready=None,
  384. timeout=None,
  385. metadata=None):
  386. return grpc.experimental.unary_unary(
  387. request,
  388. target,
  389. '/hr.WorkspaceService/CreateProfile',
  390. hr__pb2.ProfileRequest.SerializeToString,
  391. hr__pb2.ProfileResponse.FromString,
  392. options,
  393. channel_credentials,
  394. insecure,
  395. call_credentials,
  396. compression,
  397. wait_for_ready,
  398. timeout,
  399. metadata,
  400. _registered_method=True)
  401. @staticmethod
  402. def GetProfile(request,
  403. target,
  404. options=(),
  405. channel_credentials=None,
  406. call_credentials=None,
  407. insecure=False,
  408. compression=None,
  409. wait_for_ready=None,
  410. timeout=None,
  411. metadata=None):
  412. return grpc.experimental.unary_unary(
  413. request,
  414. target,
  415. '/hr.WorkspaceService/GetProfile',
  416. hr__pb2.GetProfileRequest.SerializeToString,
  417. hr__pb2.ProfileResponse.FromString,
  418. options,
  419. channel_credentials,
  420. insecure,
  421. call_credentials,
  422. compression,
  423. wait_for_ready,
  424. timeout,
  425. metadata,
  426. _registered_method=True)
  427. @staticmethod
  428. def CreateJobDescription(request,
  429. target,
  430. options=(),
  431. channel_credentials=None,
  432. call_credentials=None,
  433. insecure=False,
  434. compression=None,
  435. wait_for_ready=None,
  436. timeout=None,
  437. metadata=None):
  438. return grpc.experimental.unary_unary(
  439. request,
  440. target,
  441. '/hr.WorkspaceService/CreateJobDescription',
  442. hr__pb2.JobDescriptionRequest.SerializeToString,
  443. hr__pb2.JobDescriptionResponse.FromString,
  444. options,
  445. channel_credentials,
  446. insecure,
  447. call_credentials,
  448. compression,
  449. wait_for_ready,
  450. timeout,
  451. metadata,
  452. _registered_method=True)
  453. @staticmethod
  454. def GetJobDescription(request,
  455. target,
  456. options=(),
  457. channel_credentials=None,
  458. call_credentials=None,
  459. insecure=False,
  460. compression=None,
  461. wait_for_ready=None,
  462. timeout=None,
  463. metadata=None):
  464. return grpc.experimental.unary_unary(
  465. request,
  466. target,
  467. '/hr.WorkspaceService/GetJobDescription',
  468. hr__pb2.GetJobDescriptionRequest.SerializeToString,
  469. hr__pb2.JobDescriptionResponse.FromString,
  470. options,
  471. channel_credentials,
  472. insecure,
  473. call_credentials,
  474. compression,
  475. wait_for_ready,
  476. timeout,
  477. metadata,
  478. _registered_method=True)