# 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)