|
| 1 | +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! |
| 2 | +import grpc |
| 3 | + |
| 4 | +from serving_utils.protos import list_models_pb2 as serving__utils_dot_protos_dot_list__models__pb2 |
| 5 | + |
| 6 | + |
| 7 | +class ListModelsStub(object): |
| 8 | + # missing associated documentation comment in .proto file |
| 9 | + pass |
| 10 | + |
| 11 | + def __init__(self, channel): |
| 12 | + """Constructor. |
| 13 | +
|
| 14 | + Args: |
| 15 | + channel: A grpc.Channel. |
| 16 | + """ |
| 17 | + self.ListModels = channel.unary_unary( |
| 18 | + '/ListModels/ListModels', |
| 19 | + request_serializer=serving__utils_dot_protos_dot_list__models__pb2.ListModelsRequest.SerializeToString, |
| 20 | + response_deserializer=serving__utils_dot_protos_dot_list__models__pb2.ListModelsResponse.FromString, |
| 21 | + ) |
| 22 | + |
| 23 | + |
| 24 | +class ListModelsServicer(object): |
| 25 | + # missing associated documentation comment in .proto file |
| 26 | + pass |
| 27 | + |
| 28 | + def ListModels(self, request, context): |
| 29 | + # missing associated documentation comment in .proto file |
| 30 | + pass |
| 31 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 32 | + context.set_details('Method not implemented!') |
| 33 | + raise NotImplementedError('Method not implemented!') |
| 34 | + |
| 35 | + |
| 36 | +def add_ListModelsServicer_to_server(servicer, server): |
| 37 | + rpc_method_handlers = { |
| 38 | + 'ListModels': grpc.unary_unary_rpc_method_handler( |
| 39 | + servicer.ListModels, |
| 40 | + request_deserializer=serving__utils_dot_protos_dot_list__models__pb2.ListModelsRequest.FromString, |
| 41 | + response_serializer=serving__utils_dot_protos_dot_list__models__pb2.ListModelsResponse.SerializeToString, |
| 42 | + ), |
| 43 | + } |
| 44 | + generic_handler = grpc.method_handlers_generic_handler( |
| 45 | + 'ListModels', rpc_method_handlers) |
| 46 | + server.add_generic_rpc_handlers((generic_handler,)) |
0 commit comments