Spaces:
Runtime error
Runtime error
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | |
"""Client and server classes corresponding to protobuf-defined services.""" | |
import grpc | |
from protos import resume_pb2 as protos_dot_resume__pb2 | |
class ResumeStub(object): | |
"""Missing associated documentation comment in .proto file.""" | |
def __init__(self, channel): | |
"""Constructor. | |
Args: | |
channel: A grpc.Channel. | |
""" | |
self.GetInfo = channel.unary_unary( | |
'/Resume/GetInfo', | |
request_serializer=protos_dot_resume__pb2.TextRequest.SerializeToString, | |
response_deserializer=protos_dot_resume__pb2.ResumeEntitiesResponse.FromString, | |
) | |
self.Health = channel.unary_unary( | |
'/Resume/Health', | |
request_serializer=protos_dot_resume__pb2.PingRequest.SerializeToString, | |
response_deserializer=protos_dot_resume__pb2.PongResponse.FromString, | |
) | |
self.MatchPosition = channel.unary_unary( | |
'/Resume/MatchPosition', | |
request_serializer=protos_dot_resume__pb2.PositionMatchRequest.SerializeToString, | |
response_deserializer=protos_dot_resume__pb2.PositionMatchResponse.FromString, | |
) | |
class ResumeServicer(object): | |
"""Missing associated documentation comment in .proto file.""" | |
def GetInfo(self, request, context): | |
"""Get Resume Info | |
""" | |
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | |
context.set_details('Method not implemented!') | |
raise NotImplementedError('Method not implemented!') | |
def Health(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 MatchPosition(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_ResumeServicer_to_server(servicer, server): | |
rpc_method_handlers = { | |
'GetInfo': grpc.unary_unary_rpc_method_handler( | |
servicer.GetInfo, | |
request_deserializer=protos_dot_resume__pb2.TextRequest.FromString, | |
response_serializer=protos_dot_resume__pb2.ResumeEntitiesResponse.SerializeToString, | |
), | |
'Health': grpc.unary_unary_rpc_method_handler( | |
servicer.Health, | |
request_deserializer=protos_dot_resume__pb2.PingRequest.FromString, | |
response_serializer=protos_dot_resume__pb2.PongResponse.SerializeToString, | |
), | |
'MatchPosition': grpc.unary_unary_rpc_method_handler( | |
servicer.MatchPosition, | |
request_deserializer=protos_dot_resume__pb2.PositionMatchRequest.FromString, | |
response_serializer=protos_dot_resume__pb2.PositionMatchResponse.SerializeToString, | |
), | |
} | |
generic_handler = grpc.method_handlers_generic_handler( | |
'Resume', rpc_method_handlers) | |
server.add_generic_rpc_handlers((generic_handler,)) | |
# This class is part of an EXPERIMENTAL API. | |
class Resume(object): | |
"""Missing associated documentation comment in .proto file.""" | |
def GetInfo(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, '/Resume/GetInfo', | |
protos_dot_resume__pb2.TextRequest.SerializeToString, | |
protos_dot_resume__pb2.ResumeEntitiesResponse.FromString, | |
options, channel_credentials, | |
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) | |
def Health(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, '/Resume/Health', | |
protos_dot_resume__pb2.PingRequest.SerializeToString, | |
protos_dot_resume__pb2.PongResponse.FromString, | |
options, channel_credentials, | |
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) | |
def MatchPosition(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, '/Resume/MatchPosition', | |
protos_dot_resume__pb2.PositionMatchRequest.SerializeToString, | |
protos_dot_resume__pb2.PositionMatchResponse.FromString, | |
options, channel_credentials, | |
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) | |