| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540 |
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
- """Client and server classes corresponding to protobuf-defined services."""
- import grpc
- import warnings
- import hr_pb2 as hr__pb2
- GRPC_GENERATED_VERSION = '1.75.1'
- GRPC_VERSION = grpc.__version__
- _version_not_supported = False
- try:
- from grpc._utilities import first_version_is_lower
- _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
- except ImportError:
- _version_not_supported = True
- if _version_not_supported:
- raise RuntimeError(
- f'The grpc package installed is at version {GRPC_VERSION},'
- + f' but the generated code in hr_pb2_grpc.py depends on'
- + f' grpcio>={GRPC_GENERATED_VERSION}.'
- + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
- + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
- )
- class IAMServiceStub(object):
- """===== IAM Service =====
- """
- def __init__(self, channel):
- """Constructor.
- Args:
- channel: A grpc.Channel.
- """
- self.GetUser = channel.unary_unary(
- '/hr.IAMService/GetUser',
- request_serializer=hr__pb2.UserRequest.SerializeToString,
- response_deserializer=hr__pb2.UserResponse.FromString,
- _registered_method=True)
- self.Login = channel.unary_unary(
- '/hr.IAMService/Login',
- request_serializer=hr__pb2.LoginRequest.SerializeToString,
- response_deserializer=hr__pb2.LoginResponse.FromString,
- _registered_method=True)
- class IAMServiceServicer(object):
- """===== IAM Service =====
- """
- def GetUser(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!')
- def Login(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!')
- def add_IAMServiceServicer_to_server(servicer, server):
- rpc_method_handlers = {
- 'GetUser': grpc.unary_unary_rpc_method_handler(
- servicer.GetUser,
- request_deserializer=hr__pb2.UserRequest.FromString,
- response_serializer=hr__pb2.UserResponse.SerializeToString,
- ),
- 'Login': grpc.unary_unary_rpc_method_handler(
- servicer.Login,
- request_deserializer=hr__pb2.LoginRequest.FromString,
- response_serializer=hr__pb2.LoginResponse.SerializeToString,
- ),
- }
- generic_handler = grpc.method_handlers_generic_handler(
- 'hr.IAMService', rpc_method_handlers)
- server.add_generic_rpc_handlers((generic_handler,))
- server.add_registered_method_handlers('hr.IAMService', rpc_method_handlers)
- # This class is part of an EXPERIMENTAL API.
- class IAMService(object):
- """===== IAM Service =====
- """
- @staticmethod
- def GetUser(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(
- request,
- target,
- '/hr.IAMService/GetUser',
- hr__pb2.UserRequest.SerializeToString,
- hr__pb2.UserResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True)
- @staticmethod
- def Login(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(
- request,
- target,
- '/hr.IAMService/Login',
- hr__pb2.LoginRequest.SerializeToString,
- hr__pb2.LoginResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True)
- class PersonalityTestServiceStub(object):
- """===== Personality Test Service =====
- """
- def __init__(self, channel):
- """Constructor.
- Args:
- channel: A grpc.Channel.
- """
- self.GetTestResult = channel.unary_unary(
- '/hr.PersonalityTestService/GetTestResult',
- request_serializer=hr__pb2.TestRequest.SerializeToString,
- response_deserializer=hr__pb2.TestResponse.FromString,
- _registered_method=True)
- class PersonalityTestServiceServicer(object):
- """===== Personality Test Service =====
- """
- def GetTestResult(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!')
- def add_PersonalityTestServiceServicer_to_server(servicer, server):
- rpc_method_handlers = {
- 'GetTestResult': grpc.unary_unary_rpc_method_handler(
- servicer.GetTestResult,
- request_deserializer=hr__pb2.TestRequest.FromString,
- response_serializer=hr__pb2.TestResponse.SerializeToString,
- ),
- }
- generic_handler = grpc.method_handlers_generic_handler(
- 'hr.PersonalityTestService', rpc_method_handlers)
- server.add_generic_rpc_handlers((generic_handler,))
- server.add_registered_method_handlers('hr.PersonalityTestService', rpc_method_handlers)
- # This class is part of an EXPERIMENTAL API.
- class PersonalityTestService(object):
- """===== Personality Test Service =====
- """
- @staticmethod
- def GetTestResult(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(
- request,
- target,
- '/hr.PersonalityTestService/GetTestResult',
- hr__pb2.TestRequest.SerializeToString,
- hr__pb2.TestResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True)
- class InterviewServiceStub(object):
- """===== Interview Service =====
- """
- def __init__(self, channel):
- """Constructor.
- Args:
- channel: A grpc.Channel.
- """
- self.ScheduleInterview = channel.unary_unary(
- '/hr.InterviewService/ScheduleInterview',
- request_serializer=hr__pb2.InterviewRequest.SerializeToString,
- response_deserializer=hr__pb2.InterviewResponse.FromString,
- _registered_method=True)
- self.GetInterviews = channel.unary_unary(
- '/hr.InterviewService/GetInterviews',
- request_serializer=hr__pb2.InterviewListRequest.SerializeToString,
- response_deserializer=hr__pb2.InterviewListResponse.FromString,
- _registered_method=True)
- class InterviewServiceServicer(object):
- """===== Interview Service =====
- """
- def ScheduleInterview(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!')
- def GetInterviews(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!')
- def add_InterviewServiceServicer_to_server(servicer, server):
- rpc_method_handlers = {
- 'ScheduleInterview': grpc.unary_unary_rpc_method_handler(
- servicer.ScheduleInterview,
- request_deserializer=hr__pb2.InterviewRequest.FromString,
- response_serializer=hr__pb2.InterviewResponse.SerializeToString,
- ),
- 'GetInterviews': grpc.unary_unary_rpc_method_handler(
- servicer.GetInterviews,
- request_deserializer=hr__pb2.InterviewListRequest.FromString,
- response_serializer=hr__pb2.InterviewListResponse.SerializeToString,
- ),
- }
- generic_handler = grpc.method_handlers_generic_handler(
- 'hr.InterviewService', rpc_method_handlers)
- server.add_generic_rpc_handlers((generic_handler,))
- server.add_registered_method_handlers('hr.InterviewService', rpc_method_handlers)
- # This class is part of an EXPERIMENTAL API.
- class InterviewService(object):
- """===== Interview Service =====
- """
- @staticmethod
- def ScheduleInterview(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(
- request,
- target,
- '/hr.InterviewService/ScheduleInterview',
- hr__pb2.InterviewRequest.SerializeToString,
- hr__pb2.InterviewResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True)
- @staticmethod
- def GetInterviews(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(
- request,
- target,
- '/hr.InterviewService/GetInterviews',
- hr__pb2.InterviewListRequest.SerializeToString,
- hr__pb2.InterviewListResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True)
- class WorkspaceServiceStub(object):
- """===== Workspace Service =====
- """
- def __init__(self, channel):
- """Constructor.
- Args:
- channel: A grpc.Channel.
- """
- self.CreateProfile = channel.unary_unary(
- '/hr.WorkspaceService/CreateProfile',
- request_serializer=hr__pb2.ProfileRequest.SerializeToString,
- response_deserializer=hr__pb2.ProfileResponse.FromString,
- _registered_method=True)
- self.GetProfile = channel.unary_unary(
- '/hr.WorkspaceService/GetProfile',
- request_serializer=hr__pb2.GetProfileRequest.SerializeToString,
- response_deserializer=hr__pb2.ProfileResponse.FromString,
- _registered_method=True)
- self.CreateJobDescription = channel.unary_unary(
- '/hr.WorkspaceService/CreateJobDescription',
- request_serializer=hr__pb2.JobDescriptionRequest.SerializeToString,
- response_deserializer=hr__pb2.JobDescriptionResponse.FromString,
- _registered_method=True)
- self.GetJobDescription = channel.unary_unary(
- '/hr.WorkspaceService/GetJobDescription',
- request_serializer=hr__pb2.GetJobDescriptionRequest.SerializeToString,
- response_deserializer=hr__pb2.JobDescriptionResponse.FromString,
- _registered_method=True)
- class WorkspaceServiceServicer(object):
- """===== Workspace Service =====
- """
- def CreateProfile(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!')
- def GetProfile(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!')
- def CreateJobDescription(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!')
- def GetJobDescription(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!')
- def add_WorkspaceServiceServicer_to_server(servicer, server):
- rpc_method_handlers = {
- 'CreateProfile': grpc.unary_unary_rpc_method_handler(
- servicer.CreateProfile,
- request_deserializer=hr__pb2.ProfileRequest.FromString,
- response_serializer=hr__pb2.ProfileResponse.SerializeToString,
- ),
- 'GetProfile': grpc.unary_unary_rpc_method_handler(
- servicer.GetProfile,
- request_deserializer=hr__pb2.GetProfileRequest.FromString,
- response_serializer=hr__pb2.ProfileResponse.SerializeToString,
- ),
- 'CreateJobDescription': grpc.unary_unary_rpc_method_handler(
- servicer.CreateJobDescription,
- request_deserializer=hr__pb2.JobDescriptionRequest.FromString,
- response_serializer=hr__pb2.JobDescriptionResponse.SerializeToString,
- ),
- 'GetJobDescription': grpc.unary_unary_rpc_method_handler(
- servicer.GetJobDescription,
- request_deserializer=hr__pb2.GetJobDescriptionRequest.FromString,
- response_serializer=hr__pb2.JobDescriptionResponse.SerializeToString,
- ),
- }
- generic_handler = grpc.method_handlers_generic_handler(
- 'hr.WorkspaceService', rpc_method_handlers)
- server.add_generic_rpc_handlers((generic_handler,))
- server.add_registered_method_handlers('hr.WorkspaceService', rpc_method_handlers)
- # This class is part of an EXPERIMENTAL API.
- class WorkspaceService(object):
- """===== Workspace Service =====
- """
- @staticmethod
- def CreateProfile(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(
- request,
- target,
- '/hr.WorkspaceService/CreateProfile',
- hr__pb2.ProfileRequest.SerializeToString,
- hr__pb2.ProfileResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True)
- @staticmethod
- def GetProfile(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(
- request,
- target,
- '/hr.WorkspaceService/GetProfile',
- hr__pb2.GetProfileRequest.SerializeToString,
- hr__pb2.ProfileResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True)
- @staticmethod
- def CreateJobDescription(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(
- request,
- target,
- '/hr.WorkspaceService/CreateJobDescription',
- hr__pb2.JobDescriptionRequest.SerializeToString,
- hr__pb2.JobDescriptionResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True)
- @staticmethod
- def GetJobDescription(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(
- request,
- target,
- '/hr.WorkspaceService/GetJobDescription',
- hr__pb2.GetJobDescriptionRequest.SerializeToString,
- hr__pb2.JobDescriptionResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True)
|