From 4d420ddf7def04f3300a8bc0d55b552b105d6566 Mon Sep 17 00:00:00 2001 From: Sherif Akoush Date: Mon, 21 Oct 2024 09:31:20 +0100 Subject: [PATCH] generate grpc protos --- mlserver/grpc/dataplane_pb2.py | 666 +++++--------------------- mlserver/grpc/model_repository_pb2.py | 135 +----- 2 files changed, 145 insertions(+), 656 deletions(-) diff --git a/mlserver/grpc/dataplane_pb2.py b/mlserver/grpc/dataplane_pb2.py index b33d31f63..b7edbc6a1 100644 --- a/mlserver/grpc/dataplane_pb2.py +++ b/mlserver/grpc/dataplane_pb2.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: dataplane.proto +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -17,548 +17,130 @@ b'\n\x0f\x64\x61taplane.proto\x12\tinference"\x13\n\x11ServerLiveRequest""\n\x12ServerLiveResponse\x12\x0c\n\x04live\x18\x01 \x01(\x08"\x14\n\x12ServerReadyRequest"$\n\x13ServerReadyResponse\x12\r\n\x05ready\x18\x01 \x01(\x08"2\n\x11ModelReadyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t"#\n\x12ModelReadyResponse\x12\r\n\x05ready\x18\x01 \x01(\x08"\x17\n\x15ServerMetadataRequest"K\n\x16ServerMetadataResponse\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x12\n\nextensions\x18\x03 \x03(\t"5\n\x14ModelMetadataRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t"\xc5\x04\n\x15ModelMetadataResponse\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08versions\x18\x02 \x03(\t\x12\x10\n\x08platform\x18\x03 \x01(\t\x12?\n\x06inputs\x18\x04 \x03(\x0b\x32/.inference.ModelMetadataResponse.TensorMetadata\x12@\n\x07outputs\x18\x05 \x03(\x0b\x32/.inference.ModelMetadataResponse.TensorMetadata\x12\x44\n\nparameters\x18\x06 \x03(\x0b\x32\x30.inference.ModelMetadataResponse.ParametersEntry\x1a\xe2\x01\n\x0eTensorMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08\x64\x61tatype\x18\x02 \x01(\t\x12\r\n\x05shape\x18\x03 \x03(\x03\x12S\n\nparameters\x18\x04 \x03(\x0b\x32?.inference.ModelMetadataResponse.TensorMetadata.ParametersEntry\x1aL\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.inference.InferParameter:\x02\x38\x01\x1aL\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.inference.InferParameter:\x02\x38\x01"\xee\x06\n\x11ModelInferRequest\x12\x12\n\nmodel_name\x18\x01 \x01(\t\x12\x15\n\rmodel_version\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12@\n\nparameters\x18\x04 \x03(\x0b\x32,.inference.ModelInferRequest.ParametersEntry\x12=\n\x06inputs\x18\x05 \x03(\x0b\x32-.inference.ModelInferRequest.InferInputTensor\x12H\n\x07outputs\x18\x06 \x03(\x0b\x32\x37.inference.ModelInferRequest.InferRequestedOutputTensor\x12\x1a\n\x12raw_input_contents\x18\x07 \x03(\x0c\x1a\x94\x02\n\x10InferInputTensor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08\x64\x61tatype\x18\x02 \x01(\t\x12\r\n\x05shape\x18\x03 \x03(\x03\x12Q\n\nparameters\x18\x04 \x03(\x0b\x32=.inference.ModelInferRequest.InferInputTensor.ParametersEntry\x12\x30\n\x08\x63ontents\x18\x05 \x01(\x0b\x32\x1e.inference.InferTensorContents\x1aL\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.inference.InferParameter:\x02\x38\x01\x1a\xd5\x01\n\x1aInferRequestedOutputTensor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12[\n\nparameters\x18\x02 \x03(\x0b\x32G.inference.ModelInferRequest.InferRequestedOutputTensor.ParametersEntry\x1aL\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.inference.InferParameter:\x02\x38\x01\x1aL\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.inference.InferParameter:\x02\x38\x01"\xd5\x04\n\x12ModelInferResponse\x12\x12\n\nmodel_name\x18\x01 \x01(\t\x12\x15\n\rmodel_version\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\x41\n\nparameters\x18\x04 \x03(\x0b\x32-.inference.ModelInferResponse.ParametersEntry\x12@\n\x07outputs\x18\x05 \x03(\x0b\x32/.inference.ModelInferResponse.InferOutputTensor\x12\x1b\n\x13raw_output_contents\x18\x06 \x03(\x0c\x1a\x97\x02\n\x11InferOutputTensor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08\x64\x61tatype\x18\x02 \x01(\t\x12\r\n\x05shape\x18\x03 \x03(\x03\x12S\n\nparameters\x18\x04 \x03(\x0b\x32?.inference.ModelInferResponse.InferOutputTensor.ParametersEntry\x12\x30\n\x08\x63ontents\x18\x05 \x01(\x0b\x32\x1e.inference.InferTensorContents\x1aL\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.inference.InferParameter:\x02\x38\x01\x1aL\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.inference.InferParameter:\x02\x38\x01"i\n\x0eInferParameter\x12\x14\n\nbool_param\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_param\x18\x02 \x01(\x03H\x00\x12\x16\n\x0cstring_param\x18\x03 \x01(\tH\x00\x42\x12\n\x10parameter_choice"\xd0\x01\n\x13InferTensorContents\x12\x15\n\rbool_contents\x18\x01 \x03(\x08\x12\x14\n\x0cint_contents\x18\x02 \x03(\x05\x12\x16\n\x0eint64_contents\x18\x03 \x03(\x03\x12\x15\n\ruint_contents\x18\x04 \x03(\r\x12\x17\n\x0fuint64_contents\x18\x05 \x03(\x04\x12\x15\n\rfp32_contents\x18\x06 \x03(\x02\x12\x15\n\rfp64_contents\x18\x07 \x03(\x01\x12\x16\n\x0e\x62ytes_contents\x18\x08 \x03(\x0c"\x8a\x01\n\x18ModelRepositoryParameter\x12\x14\n\nbool_param\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_param\x18\x02 \x01(\x03H\x00\x12\x16\n\x0cstring_param\x18\x03 \x01(\tH\x00\x12\x15\n\x0b\x62ytes_param\x18\x04 \x01(\x0cH\x00\x42\x12\n\x10parameter_choice"@\n\x16RepositoryIndexRequest\x12\x17\n\x0frepository_name\x18\x01 \x01(\t\x12\r\n\x05ready\x18\x02 \x01(\x08"\xa4\x01\n\x17RepositoryIndexResponse\x12=\n\x06models\x18\x01 \x03(\x0b\x32-.inference.RepositoryIndexResponse.ModelIndex\x1aJ\n\nModelIndex\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\r\n\x05state\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t"\xec\x01\n\x1aRepositoryModelLoadRequest\x12\x17\n\x0frepository_name\x18\x01 \x01(\t\x12\x12\n\nmodel_name\x18\x02 \x01(\t\x12I\n\nparameters\x18\x03 \x03(\x0b\x32\x35.inference.RepositoryModelLoadRequest.ParametersEntry\x1aV\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32#.inference.ModelRepositoryParameter:\x02\x38\x01"\x1d\n\x1bRepositoryModelLoadResponse"\xf0\x01\n\x1cRepositoryModelUnloadRequest\x12\x17\n\x0frepository_name\x18\x01 \x01(\t\x12\x12\n\nmodel_name\x18\x02 \x01(\t\x12K\n\nparameters\x18\x03 \x03(\x0b\x32\x37.inference.RepositoryModelUnloadRequest.ParametersEntry\x1aV\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32#.inference.ModelRepositoryParameter:\x02\x38\x01"\x1f\n\x1dRepositoryModelUnloadResponse2\x85\x07\n\x14GRPCInferenceService\x12K\n\nServerLive\x12\x1c.inference.ServerLiveRequest\x1a\x1d.inference.ServerLiveResponse"\x00\x12N\n\x0bServerReady\x12\x1d.inference.ServerReadyRequest\x1a\x1e.inference.ServerReadyResponse"\x00\x12K\n\nModelReady\x12\x1c.inference.ModelReadyRequest\x1a\x1d.inference.ModelReadyResponse"\x00\x12W\n\x0eServerMetadata\x12 .inference.ServerMetadataRequest\x1a!.inference.ServerMetadataResponse"\x00\x12T\n\rModelMetadata\x12\x1f.inference.ModelMetadataRequest\x1a .inference.ModelMetadataResponse"\x00\x12K\n\nModelInfer\x12\x1c.inference.ModelInferRequest\x1a\x1d.inference.ModelInferResponse"\x00\x12U\n\x10ModelStreamInfer\x12\x1c.inference.ModelInferRequest\x1a\x1d.inference.ModelInferResponse"\x00(\x01\x30\x01\x12Z\n\x0fRepositoryIndex\x12!.inference.RepositoryIndexRequest\x1a".inference.RepositoryIndexResponse"\x00\x12\x66\n\x13RepositoryModelLoad\x12%.inference.RepositoryModelLoadRequest\x1a&.inference.RepositoryModelLoadResponse"\x00\x12l\n\x15RepositoryModelUnload\x12\'.inference.RepositoryModelUnloadRequest\x1a(.inference.RepositoryModelUnloadResponse"\x00\x42\x0f\n\x07\x65x.grpc\xa2\x02\x03HSWb\x06proto3' ) - -_SERVERLIVEREQUEST = DESCRIPTOR.message_types_by_name["ServerLiveRequest"] -_SERVERLIVERESPONSE = DESCRIPTOR.message_types_by_name["ServerLiveResponse"] -_SERVERREADYREQUEST = DESCRIPTOR.message_types_by_name["ServerReadyRequest"] -_SERVERREADYRESPONSE = DESCRIPTOR.message_types_by_name["ServerReadyResponse"] -_MODELREADYREQUEST = DESCRIPTOR.message_types_by_name["ModelReadyRequest"] -_MODELREADYRESPONSE = DESCRIPTOR.message_types_by_name["ModelReadyResponse"] -_SERVERMETADATAREQUEST = DESCRIPTOR.message_types_by_name["ServerMetadataRequest"] -_SERVERMETADATARESPONSE = DESCRIPTOR.message_types_by_name["ServerMetadataResponse"] -_MODELMETADATAREQUEST = DESCRIPTOR.message_types_by_name["ModelMetadataRequest"] -_MODELMETADATARESPONSE = DESCRIPTOR.message_types_by_name["ModelMetadataResponse"] -_MODELMETADATARESPONSE_TENSORMETADATA = _MODELMETADATARESPONSE.nested_types_by_name[ - "TensorMetadata" -] -_MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY = ( - _MODELMETADATARESPONSE_TENSORMETADATA.nested_types_by_name["ParametersEntry"] -) -_MODELMETADATARESPONSE_PARAMETERSENTRY = _MODELMETADATARESPONSE.nested_types_by_name[ - "ParametersEntry" -] -_MODELINFERREQUEST = DESCRIPTOR.message_types_by_name["ModelInferRequest"] -_MODELINFERREQUEST_INFERINPUTTENSOR = _MODELINFERREQUEST.nested_types_by_name[ - "InferInputTensor" -] -_MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY = ( - _MODELINFERREQUEST_INFERINPUTTENSOR.nested_types_by_name["ParametersEntry"] -) -_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR = _MODELINFERREQUEST.nested_types_by_name[ - "InferRequestedOutputTensor" -] -_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY = ( - _MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR.nested_types_by_name[ - "ParametersEntry" - ] -) -_MODELINFERREQUEST_PARAMETERSENTRY = _MODELINFERREQUEST.nested_types_by_name[ - "ParametersEntry" -] -_MODELINFERRESPONSE = DESCRIPTOR.message_types_by_name["ModelInferResponse"] -_MODELINFERRESPONSE_INFEROUTPUTTENSOR = _MODELINFERRESPONSE.nested_types_by_name[ - "InferOutputTensor" -] -_MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY = ( - _MODELINFERRESPONSE_INFEROUTPUTTENSOR.nested_types_by_name["ParametersEntry"] -) -_MODELINFERRESPONSE_PARAMETERSENTRY = _MODELINFERRESPONSE.nested_types_by_name[ - "ParametersEntry" -] -_INFERPARAMETER = DESCRIPTOR.message_types_by_name["InferParameter"] -_INFERTENSORCONTENTS = DESCRIPTOR.message_types_by_name["InferTensorContents"] -_MODELREPOSITORYPARAMETER = DESCRIPTOR.message_types_by_name["ModelRepositoryParameter"] -_REPOSITORYINDEXREQUEST = DESCRIPTOR.message_types_by_name["RepositoryIndexRequest"] -_REPOSITORYINDEXRESPONSE = DESCRIPTOR.message_types_by_name["RepositoryIndexResponse"] -_REPOSITORYINDEXRESPONSE_MODELINDEX = _REPOSITORYINDEXRESPONSE.nested_types_by_name[ - "ModelIndex" -] -_REPOSITORYMODELLOADREQUEST = DESCRIPTOR.message_types_by_name[ - "RepositoryModelLoadRequest" -] -_REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY = ( - _REPOSITORYMODELLOADREQUEST.nested_types_by_name["ParametersEntry"] -) -_REPOSITORYMODELLOADRESPONSE = DESCRIPTOR.message_types_by_name[ - "RepositoryModelLoadResponse" -] -_REPOSITORYMODELUNLOADREQUEST = DESCRIPTOR.message_types_by_name[ - "RepositoryModelUnloadRequest" -] -_REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY = ( - _REPOSITORYMODELUNLOADREQUEST.nested_types_by_name["ParametersEntry"] -) -_REPOSITORYMODELUNLOADRESPONSE = DESCRIPTOR.message_types_by_name[ - "RepositoryModelUnloadResponse" -] -ServerLiveRequest = _reflection.GeneratedProtocolMessageType( - "ServerLiveRequest", - (_message.Message,), - { - "DESCRIPTOR": _SERVERLIVEREQUEST, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ServerLiveRequest) - }, -) -_sym_db.RegisterMessage(ServerLiveRequest) - -ServerLiveResponse = _reflection.GeneratedProtocolMessageType( - "ServerLiveResponse", - (_message.Message,), - { - "DESCRIPTOR": _SERVERLIVERESPONSE, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ServerLiveResponse) - }, -) -_sym_db.RegisterMessage(ServerLiveResponse) - -ServerReadyRequest = _reflection.GeneratedProtocolMessageType( - "ServerReadyRequest", - (_message.Message,), - { - "DESCRIPTOR": _SERVERREADYREQUEST, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ServerReadyRequest) - }, -) -_sym_db.RegisterMessage(ServerReadyRequest) - -ServerReadyResponse = _reflection.GeneratedProtocolMessageType( - "ServerReadyResponse", - (_message.Message,), - { - "DESCRIPTOR": _SERVERREADYRESPONSE, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ServerReadyResponse) - }, -) -_sym_db.RegisterMessage(ServerReadyResponse) - -ModelReadyRequest = _reflection.GeneratedProtocolMessageType( - "ModelReadyRequest", - (_message.Message,), - { - "DESCRIPTOR": _MODELREADYREQUEST, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelReadyRequest) - }, -) -_sym_db.RegisterMessage(ModelReadyRequest) - -ModelReadyResponse = _reflection.GeneratedProtocolMessageType( - "ModelReadyResponse", - (_message.Message,), - { - "DESCRIPTOR": _MODELREADYRESPONSE, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelReadyResponse) - }, -) -_sym_db.RegisterMessage(ModelReadyResponse) - -ServerMetadataRequest = _reflection.GeneratedProtocolMessageType( - "ServerMetadataRequest", - (_message.Message,), - { - "DESCRIPTOR": _SERVERMETADATAREQUEST, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ServerMetadataRequest) - }, -) -_sym_db.RegisterMessage(ServerMetadataRequest) - -ServerMetadataResponse = _reflection.GeneratedProtocolMessageType( - "ServerMetadataResponse", - (_message.Message,), - { - "DESCRIPTOR": _SERVERMETADATARESPONSE, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ServerMetadataResponse) - }, -) -_sym_db.RegisterMessage(ServerMetadataResponse) - -ModelMetadataRequest = _reflection.GeneratedProtocolMessageType( - "ModelMetadataRequest", - (_message.Message,), - { - "DESCRIPTOR": _MODELMETADATAREQUEST, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelMetadataRequest) - }, -) -_sym_db.RegisterMessage(ModelMetadataRequest) - -ModelMetadataResponse = _reflection.GeneratedProtocolMessageType( - "ModelMetadataResponse", - (_message.Message,), - { - "TensorMetadata": _reflection.GeneratedProtocolMessageType( - "TensorMetadata", - (_message.Message,), - { - "ParametersEntry": _reflection.GeneratedProtocolMessageType( - "ParametersEntry", - (_message.Message,), - { - "DESCRIPTOR": _MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelMetadataResponse.TensorMetadata.ParametersEntry) - }, - ), - "DESCRIPTOR": _MODELMETADATARESPONSE_TENSORMETADATA, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelMetadataResponse.TensorMetadata) - }, - ), - "ParametersEntry": _reflection.GeneratedProtocolMessageType( - "ParametersEntry", - (_message.Message,), - { - "DESCRIPTOR": _MODELMETADATARESPONSE_PARAMETERSENTRY, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelMetadataResponse.ParametersEntry) - }, - ), - "DESCRIPTOR": _MODELMETADATARESPONSE, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelMetadataResponse) - }, -) -_sym_db.RegisterMessage(ModelMetadataResponse) -_sym_db.RegisterMessage(ModelMetadataResponse.TensorMetadata) -_sym_db.RegisterMessage(ModelMetadataResponse.TensorMetadata.ParametersEntry) -_sym_db.RegisterMessage(ModelMetadataResponse.ParametersEntry) - -ModelInferRequest = _reflection.GeneratedProtocolMessageType( - "ModelInferRequest", - (_message.Message,), - { - "InferInputTensor": _reflection.GeneratedProtocolMessageType( - "InferInputTensor", - (_message.Message,), - { - "ParametersEntry": _reflection.GeneratedProtocolMessageType( - "ParametersEntry", - (_message.Message,), - { - "DESCRIPTOR": _MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferRequest.InferInputTensor.ParametersEntry) - }, - ), - "DESCRIPTOR": _MODELINFERREQUEST_INFERINPUTTENSOR, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferRequest.InferInputTensor) - }, - ), - "InferRequestedOutputTensor": _reflection.GeneratedProtocolMessageType( - "InferRequestedOutputTensor", - (_message.Message,), - { - "ParametersEntry": _reflection.GeneratedProtocolMessageType( - "ParametersEntry", - (_message.Message,), - { - "DESCRIPTOR": _MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferRequest.InferRequestedOutputTensor.ParametersEntry) - }, - ), - "DESCRIPTOR": _MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferRequest.InferRequestedOutputTensor) - }, - ), - "ParametersEntry": _reflection.GeneratedProtocolMessageType( - "ParametersEntry", - (_message.Message,), - { - "DESCRIPTOR": _MODELINFERREQUEST_PARAMETERSENTRY, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferRequest.ParametersEntry) - }, - ), - "DESCRIPTOR": _MODELINFERREQUEST, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferRequest) - }, -) -_sym_db.RegisterMessage(ModelInferRequest) -_sym_db.RegisterMessage(ModelInferRequest.InferInputTensor) -_sym_db.RegisterMessage(ModelInferRequest.InferInputTensor.ParametersEntry) -_sym_db.RegisterMessage(ModelInferRequest.InferRequestedOutputTensor) -_sym_db.RegisterMessage(ModelInferRequest.InferRequestedOutputTensor.ParametersEntry) -_sym_db.RegisterMessage(ModelInferRequest.ParametersEntry) - -ModelInferResponse = _reflection.GeneratedProtocolMessageType( - "ModelInferResponse", - (_message.Message,), - { - "InferOutputTensor": _reflection.GeneratedProtocolMessageType( - "InferOutputTensor", - (_message.Message,), - { - "ParametersEntry": _reflection.GeneratedProtocolMessageType( - "ParametersEntry", - (_message.Message,), - { - "DESCRIPTOR": _MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferResponse.InferOutputTensor.ParametersEntry) - }, - ), - "DESCRIPTOR": _MODELINFERRESPONSE_INFEROUTPUTTENSOR, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferResponse.InferOutputTensor) - }, - ), - "ParametersEntry": _reflection.GeneratedProtocolMessageType( - "ParametersEntry", - (_message.Message,), - { - "DESCRIPTOR": _MODELINFERRESPONSE_PARAMETERSENTRY, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferResponse.ParametersEntry) - }, - ), - "DESCRIPTOR": _MODELINFERRESPONSE, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelInferResponse) - }, -) -_sym_db.RegisterMessage(ModelInferResponse) -_sym_db.RegisterMessage(ModelInferResponse.InferOutputTensor) -_sym_db.RegisterMessage(ModelInferResponse.InferOutputTensor.ParametersEntry) -_sym_db.RegisterMessage(ModelInferResponse.ParametersEntry) - -InferParameter = _reflection.GeneratedProtocolMessageType( - "InferParameter", - (_message.Message,), - { - "DESCRIPTOR": _INFERPARAMETER, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.InferParameter) - }, -) -_sym_db.RegisterMessage(InferParameter) - -InferTensorContents = _reflection.GeneratedProtocolMessageType( - "InferTensorContents", - (_message.Message,), - { - "DESCRIPTOR": _INFERTENSORCONTENTS, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.InferTensorContents) - }, -) -_sym_db.RegisterMessage(InferTensorContents) - -ModelRepositoryParameter = _reflection.GeneratedProtocolMessageType( - "ModelRepositoryParameter", - (_message.Message,), - { - "DESCRIPTOR": _MODELREPOSITORYPARAMETER, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.ModelRepositoryParameter) - }, -) -_sym_db.RegisterMessage(ModelRepositoryParameter) - -RepositoryIndexRequest = _reflection.GeneratedProtocolMessageType( - "RepositoryIndexRequest", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYINDEXREQUEST, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.RepositoryIndexRequest) - }, -) -_sym_db.RegisterMessage(RepositoryIndexRequest) - -RepositoryIndexResponse = _reflection.GeneratedProtocolMessageType( - "RepositoryIndexResponse", - (_message.Message,), - { - "ModelIndex": _reflection.GeneratedProtocolMessageType( - "ModelIndex", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYINDEXRESPONSE_MODELINDEX, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.RepositoryIndexResponse.ModelIndex) - }, - ), - "DESCRIPTOR": _REPOSITORYINDEXRESPONSE, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.RepositoryIndexResponse) - }, -) -_sym_db.RegisterMessage(RepositoryIndexResponse) -_sym_db.RegisterMessage(RepositoryIndexResponse.ModelIndex) - -RepositoryModelLoadRequest = _reflection.GeneratedProtocolMessageType( - "RepositoryModelLoadRequest", - (_message.Message,), - { - "ParametersEntry": _reflection.GeneratedProtocolMessageType( - "ParametersEntry", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.RepositoryModelLoadRequest.ParametersEntry) - }, - ), - "DESCRIPTOR": _REPOSITORYMODELLOADREQUEST, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.RepositoryModelLoadRequest) - }, -) -_sym_db.RegisterMessage(RepositoryModelLoadRequest) -_sym_db.RegisterMessage(RepositoryModelLoadRequest.ParametersEntry) - -RepositoryModelLoadResponse = _reflection.GeneratedProtocolMessageType( - "RepositoryModelLoadResponse", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYMODELLOADRESPONSE, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.RepositoryModelLoadResponse) - }, -) -_sym_db.RegisterMessage(RepositoryModelLoadResponse) - -RepositoryModelUnloadRequest = _reflection.GeneratedProtocolMessageType( - "RepositoryModelUnloadRequest", - (_message.Message,), - { - "ParametersEntry": _reflection.GeneratedProtocolMessageType( - "ParametersEntry", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.RepositoryModelUnloadRequest.ParametersEntry) - }, - ), - "DESCRIPTOR": _REPOSITORYMODELUNLOADREQUEST, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.RepositoryModelUnloadRequest) - }, -) -_sym_db.RegisterMessage(RepositoryModelUnloadRequest) -_sym_db.RegisterMessage(RepositoryModelUnloadRequest.ParametersEntry) - -RepositoryModelUnloadResponse = _reflection.GeneratedProtocolMessageType( - "RepositoryModelUnloadResponse", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYMODELUNLOADRESPONSE, - "__module__": "dataplane_pb2", - # @@protoc_insertion_point(class_scope:inference.RepositoryModelUnloadResponse) - }, -) -_sym_db.RegisterMessage(RepositoryModelUnloadResponse) - -_GRPCINFERENCESERVICE = DESCRIPTOR.services_by_name["GRPCInferenceService"] +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "dataplane_pb2", _globals) if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b"\n\007ex.grpc\242\002\003HSW" - _MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY._options = None - _MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY._serialized_options = b"8\001" - _MODELMETADATARESPONSE_PARAMETERSENTRY._options = None - _MODELMETADATARESPONSE_PARAMETERSENTRY._serialized_options = b"8\001" - _MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY._options = None - _MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY._serialized_options = b"8\001" - _MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY._options = None - _MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY._serialized_options = ( + _globals["DESCRIPTOR"]._options = None + _globals["DESCRIPTOR"]._serialized_options = b"\n\007ex.grpc\242\002\003HSW" + _globals["_MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY"]._options = None + _globals[ + "_MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY" + ]._serialized_options = b"8\001" + _globals["_MODELMETADATARESPONSE_PARAMETERSENTRY"]._options = None + _globals["_MODELMETADATARESPONSE_PARAMETERSENTRY"]._serialized_options = b"8\001" + _globals["_MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY"]._options = None + _globals[ + "_MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY" + ]._serialized_options = b"8\001" + _globals[ + "_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY" + ]._options = None + _globals[ + "_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY" + ]._serialized_options = b"8\001" + _globals["_MODELINFERREQUEST_PARAMETERSENTRY"]._options = None + _globals["_MODELINFERREQUEST_PARAMETERSENTRY"]._serialized_options = b"8\001" + _globals["_MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY"]._options = None + _globals[ + "_MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY" + ]._serialized_options = b"8\001" + _globals["_MODELINFERRESPONSE_PARAMETERSENTRY"]._options = None + _globals["_MODELINFERRESPONSE_PARAMETERSENTRY"]._serialized_options = b"8\001" + _globals["_REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY"]._options = None + _globals["_REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY"]._serialized_options = ( + b"8\001" + ) + _globals["_REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY"]._options = None + _globals["_REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY"]._serialized_options = ( b"8\001" ) - _MODELINFERREQUEST_PARAMETERSENTRY._options = None - _MODELINFERREQUEST_PARAMETERSENTRY._serialized_options = b"8\001" - _MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY._options = None - _MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY._serialized_options = b"8\001" - _MODELINFERRESPONSE_PARAMETERSENTRY._options = None - _MODELINFERRESPONSE_PARAMETERSENTRY._serialized_options = b"8\001" - _REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY._options = None - _REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY._serialized_options = b"8\001" - _REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY._options = None - _REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY._serialized_options = b"8\001" - _SERVERLIVEREQUEST._serialized_start = 30 - _SERVERLIVEREQUEST._serialized_end = 49 - _SERVERLIVERESPONSE._serialized_start = 51 - _SERVERLIVERESPONSE._serialized_end = 85 - _SERVERREADYREQUEST._serialized_start = 87 - _SERVERREADYREQUEST._serialized_end = 107 - _SERVERREADYRESPONSE._serialized_start = 109 - _SERVERREADYRESPONSE._serialized_end = 145 - _MODELREADYREQUEST._serialized_start = 147 - _MODELREADYREQUEST._serialized_end = 197 - _MODELREADYRESPONSE._serialized_start = 199 - _MODELREADYRESPONSE._serialized_end = 234 - _SERVERMETADATAREQUEST._serialized_start = 236 - _SERVERMETADATAREQUEST._serialized_end = 259 - _SERVERMETADATARESPONSE._serialized_start = 261 - _SERVERMETADATARESPONSE._serialized_end = 336 - _MODELMETADATAREQUEST._serialized_start = 338 - _MODELMETADATAREQUEST._serialized_end = 391 - _MODELMETADATARESPONSE._serialized_start = 394 - _MODELMETADATARESPONSE._serialized_end = 975 - _MODELMETADATARESPONSE_TENSORMETADATA._serialized_start = 671 - _MODELMETADATARESPONSE_TENSORMETADATA._serialized_end = 897 - _MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY._serialized_start = 821 - _MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY._serialized_end = 897 - _MODELMETADATARESPONSE_PARAMETERSENTRY._serialized_start = 821 - _MODELMETADATARESPONSE_PARAMETERSENTRY._serialized_end = 897 - _MODELINFERREQUEST._serialized_start = 978 - _MODELINFERREQUEST._serialized_end = 1856 - _MODELINFERREQUEST_INFERINPUTTENSOR._serialized_start = 1286 - _MODELINFERREQUEST_INFERINPUTTENSOR._serialized_end = 1562 - _MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY._serialized_start = 821 - _MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY._serialized_end = 897 - _MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR._serialized_start = 1565 - _MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR._serialized_end = 1778 - _MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY._serialized_start = ( - 821 + _globals["_SERVERLIVEREQUEST"]._serialized_start = 30 + _globals["_SERVERLIVEREQUEST"]._serialized_end = 49 + _globals["_SERVERLIVERESPONSE"]._serialized_start = 51 + _globals["_SERVERLIVERESPONSE"]._serialized_end = 85 + _globals["_SERVERREADYREQUEST"]._serialized_start = 87 + _globals["_SERVERREADYREQUEST"]._serialized_end = 107 + _globals["_SERVERREADYRESPONSE"]._serialized_start = 109 + _globals["_SERVERREADYRESPONSE"]._serialized_end = 145 + _globals["_MODELREADYREQUEST"]._serialized_start = 147 + _globals["_MODELREADYREQUEST"]._serialized_end = 197 + _globals["_MODELREADYRESPONSE"]._serialized_start = 199 + _globals["_MODELREADYRESPONSE"]._serialized_end = 234 + _globals["_SERVERMETADATAREQUEST"]._serialized_start = 236 + _globals["_SERVERMETADATAREQUEST"]._serialized_end = 259 + _globals["_SERVERMETADATARESPONSE"]._serialized_start = 261 + _globals["_SERVERMETADATARESPONSE"]._serialized_end = 336 + _globals["_MODELMETADATAREQUEST"]._serialized_start = 338 + _globals["_MODELMETADATAREQUEST"]._serialized_end = 391 + _globals["_MODELMETADATARESPONSE"]._serialized_start = 394 + _globals["_MODELMETADATARESPONSE"]._serialized_end = 975 + _globals["_MODELMETADATARESPONSE_TENSORMETADATA"]._serialized_start = 671 + _globals["_MODELMETADATARESPONSE_TENSORMETADATA"]._serialized_end = 897 + _globals[ + "_MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY" + ]._serialized_start = 821 + _globals[ + "_MODELMETADATARESPONSE_TENSORMETADATA_PARAMETERSENTRY" + ]._serialized_end = 897 + _globals["_MODELMETADATARESPONSE_PARAMETERSENTRY"]._serialized_start = 821 + _globals["_MODELMETADATARESPONSE_PARAMETERSENTRY"]._serialized_end = 897 + _globals["_MODELINFERREQUEST"]._serialized_start = 978 + _globals["_MODELINFERREQUEST"]._serialized_end = 1856 + _globals["_MODELINFERREQUEST_INFERINPUTTENSOR"]._serialized_start = 1286 + _globals["_MODELINFERREQUEST_INFERINPUTTENSOR"]._serialized_end = 1562 + _globals[ + "_MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY" + ]._serialized_start = 821 + _globals["_MODELINFERREQUEST_INFERINPUTTENSOR_PARAMETERSENTRY"]._serialized_end = ( + 897 ) - _MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY._serialized_end = 897 - _MODELINFERREQUEST_PARAMETERSENTRY._serialized_start = 821 - _MODELINFERREQUEST_PARAMETERSENTRY._serialized_end = 897 - _MODELINFERRESPONSE._serialized_start = 1859 - _MODELINFERRESPONSE._serialized_end = 2456 - _MODELINFERRESPONSE_INFEROUTPUTTENSOR._serialized_start = 2099 - _MODELINFERRESPONSE_INFEROUTPUTTENSOR._serialized_end = 2378 - _MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY._serialized_start = 821 - _MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY._serialized_end = 897 - _MODELINFERRESPONSE_PARAMETERSENTRY._serialized_start = 821 - _MODELINFERRESPONSE_PARAMETERSENTRY._serialized_end = 897 - _INFERPARAMETER._serialized_start = 2458 - _INFERPARAMETER._serialized_end = 2563 - _INFERTENSORCONTENTS._serialized_start = 2566 - _INFERTENSORCONTENTS._serialized_end = 2774 - _MODELREPOSITORYPARAMETER._serialized_start = 2777 - _MODELREPOSITORYPARAMETER._serialized_end = 2915 - _REPOSITORYINDEXREQUEST._serialized_start = 2917 - _REPOSITORYINDEXREQUEST._serialized_end = 2981 - _REPOSITORYINDEXRESPONSE._serialized_start = 2984 - _REPOSITORYINDEXRESPONSE._serialized_end = 3148 - _REPOSITORYINDEXRESPONSE_MODELINDEX._serialized_start = 3074 - _REPOSITORYINDEXRESPONSE_MODELINDEX._serialized_end = 3148 - _REPOSITORYMODELLOADREQUEST._serialized_start = 3151 - _REPOSITORYMODELLOADREQUEST._serialized_end = 3387 - _REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY._serialized_start = 3301 - _REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY._serialized_end = 3387 - _REPOSITORYMODELLOADRESPONSE._serialized_start = 3389 - _REPOSITORYMODELLOADRESPONSE._serialized_end = 3418 - _REPOSITORYMODELUNLOADREQUEST._serialized_start = 3421 - _REPOSITORYMODELUNLOADREQUEST._serialized_end = 3661 - _REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY._serialized_start = 3301 - _REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY._serialized_end = 3387 - _REPOSITORYMODELUNLOADRESPONSE._serialized_start = 3663 - _REPOSITORYMODELUNLOADRESPONSE._serialized_end = 3694 - _GRPCINFERENCESERVICE._serialized_start = 3697 - _GRPCINFERENCESERVICE._serialized_end = 4598 + _globals["_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR"]._serialized_start = 1565 + _globals["_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR"]._serialized_end = 1778 + _globals[ + "_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY" + ]._serialized_start = 821 + _globals[ + "_MODELINFERREQUEST_INFERREQUESTEDOUTPUTTENSOR_PARAMETERSENTRY" + ]._serialized_end = 897 + _globals["_MODELINFERREQUEST_PARAMETERSENTRY"]._serialized_start = 821 + _globals["_MODELINFERREQUEST_PARAMETERSENTRY"]._serialized_end = 897 + _globals["_MODELINFERRESPONSE"]._serialized_start = 1859 + _globals["_MODELINFERRESPONSE"]._serialized_end = 2456 + _globals["_MODELINFERRESPONSE_INFEROUTPUTTENSOR"]._serialized_start = 2099 + _globals["_MODELINFERRESPONSE_INFEROUTPUTTENSOR"]._serialized_end = 2378 + _globals[ + "_MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY" + ]._serialized_start = 821 + _globals[ + "_MODELINFERRESPONSE_INFEROUTPUTTENSOR_PARAMETERSENTRY" + ]._serialized_end = 897 + _globals["_MODELINFERRESPONSE_PARAMETERSENTRY"]._serialized_start = 821 + _globals["_MODELINFERRESPONSE_PARAMETERSENTRY"]._serialized_end = 897 + _globals["_INFERPARAMETER"]._serialized_start = 2458 + _globals["_INFERPARAMETER"]._serialized_end = 2563 + _globals["_INFERTENSORCONTENTS"]._serialized_start = 2566 + _globals["_INFERTENSORCONTENTS"]._serialized_end = 2774 + _globals["_MODELREPOSITORYPARAMETER"]._serialized_start = 2777 + _globals["_MODELREPOSITORYPARAMETER"]._serialized_end = 2915 + _globals["_REPOSITORYINDEXREQUEST"]._serialized_start = 2917 + _globals["_REPOSITORYINDEXREQUEST"]._serialized_end = 2981 + _globals["_REPOSITORYINDEXRESPONSE"]._serialized_start = 2984 + _globals["_REPOSITORYINDEXRESPONSE"]._serialized_end = 3148 + _globals["_REPOSITORYINDEXRESPONSE_MODELINDEX"]._serialized_start = 3074 + _globals["_REPOSITORYINDEXRESPONSE_MODELINDEX"]._serialized_end = 3148 + _globals["_REPOSITORYMODELLOADREQUEST"]._serialized_start = 3151 + _globals["_REPOSITORYMODELLOADREQUEST"]._serialized_end = 3387 + _globals["_REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY"]._serialized_start = 3301 + _globals["_REPOSITORYMODELLOADREQUEST_PARAMETERSENTRY"]._serialized_end = 3387 + _globals["_REPOSITORYMODELLOADRESPONSE"]._serialized_start = 3389 + _globals["_REPOSITORYMODELLOADRESPONSE"]._serialized_end = 3418 + _globals["_REPOSITORYMODELUNLOADREQUEST"]._serialized_start = 3421 + _globals["_REPOSITORYMODELUNLOADREQUEST"]._serialized_end = 3661 + _globals["_REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY"]._serialized_start = 3301 + _globals["_REPOSITORYMODELUNLOADREQUEST_PARAMETERSENTRY"]._serialized_end = 3387 + _globals["_REPOSITORYMODELUNLOADRESPONSE"]._serialized_start = 3663 + _globals["_REPOSITORYMODELUNLOADRESPONSE"]._serialized_end = 3694 + _globals["_GRPCINFERENCESERVICE"]._serialized_start = 3697 + _globals["_GRPCINFERENCESERVICE"]._serialized_end = 4598 # @@protoc_insertion_point(module_scope) diff --git a/mlserver/grpc/model_repository_pb2.py b/mlserver/grpc/model_repository_pb2.py index f25a0f035..fb1c3ae44 100644 --- a/mlserver/grpc/model_repository_pb2.py +++ b/mlserver/grpc/model_repository_pb2.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: model_repository.proto +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -17,118 +17,25 @@ b'\n\x16model_repository.proto\x12\x1ainference.model_repository"@\n\x16RepositoryIndexRequest\x12\x17\n\x0frepository_name\x18\x01 \x01(\t\x12\r\n\x05ready\x18\x02 \x01(\x08"\xb5\x01\n\x17RepositoryIndexResponse\x12N\n\x06models\x18\x01 \x03(\x0b\x32>.inference.model_repository.RepositoryIndexResponse.ModelIndex\x1aJ\n\nModelIndex\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\r\n\x05state\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t"I\n\x1aRepositoryModelLoadRequest\x12\x17\n\x0frepository_name\x18\x01 \x01(\t\x12\x12\n\nmodel_name\x18\x02 \x01(\t"\x1d\n\x1bRepositoryModelLoadResponse"K\n\x1cRepositoryModelUnloadRequest\x12\x17\n\x0frepository_name\x18\x01 \x01(\t\x12\x12\n\nmodel_name\x18\x02 \x01(\t"\x1f\n\x1dRepositoryModelUnloadResponse2\xb2\x03\n\x16ModelRepositoryService\x12|\n\x0fRepositoryIndex\x12\x32.inference.model_repository.RepositoryIndexRequest\x1a\x33.inference.model_repository.RepositoryIndexResponse"\x00\x12\x88\x01\n\x13RepositoryModelLoad\x12\x36.inference.model_repository.RepositoryModelLoadRequest\x1a\x37.inference.model_repository.RepositoryModelLoadResponse"\x00\x12\x8e\x01\n\x15RepositoryModelUnload\x12\x38.inference.model_repository.RepositoryModelUnloadRequest\x1a\x39.inference.model_repository.RepositoryModelUnloadResponse"\x00\x62\x06proto3' ) - -_REPOSITORYINDEXREQUEST = DESCRIPTOR.message_types_by_name["RepositoryIndexRequest"] -_REPOSITORYINDEXRESPONSE = DESCRIPTOR.message_types_by_name["RepositoryIndexResponse"] -_REPOSITORYINDEXRESPONSE_MODELINDEX = _REPOSITORYINDEXRESPONSE.nested_types_by_name[ - "ModelIndex" -] -_REPOSITORYMODELLOADREQUEST = DESCRIPTOR.message_types_by_name[ - "RepositoryModelLoadRequest" -] -_REPOSITORYMODELLOADRESPONSE = DESCRIPTOR.message_types_by_name[ - "RepositoryModelLoadResponse" -] -_REPOSITORYMODELUNLOADREQUEST = DESCRIPTOR.message_types_by_name[ - "RepositoryModelUnloadRequest" -] -_REPOSITORYMODELUNLOADRESPONSE = DESCRIPTOR.message_types_by_name[ - "RepositoryModelUnloadResponse" -] -RepositoryIndexRequest = _reflection.GeneratedProtocolMessageType( - "RepositoryIndexRequest", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYINDEXREQUEST, - "__module__": "model_repository_pb2", - # @@protoc_insertion_point(class_scope:inference.model_repository.RepositoryIndexRequest) - }, -) -_sym_db.RegisterMessage(RepositoryIndexRequest) - -RepositoryIndexResponse = _reflection.GeneratedProtocolMessageType( - "RepositoryIndexResponse", - (_message.Message,), - { - "ModelIndex": _reflection.GeneratedProtocolMessageType( - "ModelIndex", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYINDEXRESPONSE_MODELINDEX, - "__module__": "model_repository_pb2", - # @@protoc_insertion_point(class_scope:inference.model_repository.RepositoryIndexResponse.ModelIndex) - }, - ), - "DESCRIPTOR": _REPOSITORYINDEXRESPONSE, - "__module__": "model_repository_pb2", - # @@protoc_insertion_point(class_scope:inference.model_repository.RepositoryIndexResponse) - }, -) -_sym_db.RegisterMessage(RepositoryIndexResponse) -_sym_db.RegisterMessage(RepositoryIndexResponse.ModelIndex) - -RepositoryModelLoadRequest = _reflection.GeneratedProtocolMessageType( - "RepositoryModelLoadRequest", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYMODELLOADREQUEST, - "__module__": "model_repository_pb2", - # @@protoc_insertion_point(class_scope:inference.model_repository.RepositoryModelLoadRequest) - }, -) -_sym_db.RegisterMessage(RepositoryModelLoadRequest) - -RepositoryModelLoadResponse = _reflection.GeneratedProtocolMessageType( - "RepositoryModelLoadResponse", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYMODELLOADRESPONSE, - "__module__": "model_repository_pb2", - # @@protoc_insertion_point(class_scope:inference.model_repository.RepositoryModelLoadResponse) - }, -) -_sym_db.RegisterMessage(RepositoryModelLoadResponse) - -RepositoryModelUnloadRequest = _reflection.GeneratedProtocolMessageType( - "RepositoryModelUnloadRequest", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYMODELUNLOADREQUEST, - "__module__": "model_repository_pb2", - # @@protoc_insertion_point(class_scope:inference.model_repository.RepositoryModelUnloadRequest) - }, -) -_sym_db.RegisterMessage(RepositoryModelUnloadRequest) - -RepositoryModelUnloadResponse = _reflection.GeneratedProtocolMessageType( - "RepositoryModelUnloadResponse", - (_message.Message,), - { - "DESCRIPTOR": _REPOSITORYMODELUNLOADRESPONSE, - "__module__": "model_repository_pb2", - # @@protoc_insertion_point(class_scope:inference.model_repository.RepositoryModelUnloadResponse) - }, -) -_sym_db.RegisterMessage(RepositoryModelUnloadResponse) - -_MODELREPOSITORYSERVICE = DESCRIPTOR.services_by_name["ModelRepositoryService"] +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "model_repository_pb2", _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _REPOSITORYINDEXREQUEST._serialized_start = 54 - _REPOSITORYINDEXREQUEST._serialized_end = 118 - _REPOSITORYINDEXRESPONSE._serialized_start = 121 - _REPOSITORYINDEXRESPONSE._serialized_end = 302 - _REPOSITORYINDEXRESPONSE_MODELINDEX._serialized_start = 228 - _REPOSITORYINDEXRESPONSE_MODELINDEX._serialized_end = 302 - _REPOSITORYMODELLOADREQUEST._serialized_start = 304 - _REPOSITORYMODELLOADREQUEST._serialized_end = 377 - _REPOSITORYMODELLOADRESPONSE._serialized_start = 379 - _REPOSITORYMODELLOADRESPONSE._serialized_end = 408 - _REPOSITORYMODELUNLOADREQUEST._serialized_start = 410 - _REPOSITORYMODELUNLOADREQUEST._serialized_end = 485 - _REPOSITORYMODELUNLOADRESPONSE._serialized_start = 487 - _REPOSITORYMODELUNLOADRESPONSE._serialized_end = 518 - _MODELREPOSITORYSERVICE._serialized_start = 521 - _MODELREPOSITORYSERVICE._serialized_end = 955 + _globals["_REPOSITORYINDEXREQUEST"]._serialized_start = 54 + _globals["_REPOSITORYINDEXREQUEST"]._serialized_end = 118 + _globals["_REPOSITORYINDEXRESPONSE"]._serialized_start = 121 + _globals["_REPOSITORYINDEXRESPONSE"]._serialized_end = 302 + _globals["_REPOSITORYINDEXRESPONSE_MODELINDEX"]._serialized_start = 228 + _globals["_REPOSITORYINDEXRESPONSE_MODELINDEX"]._serialized_end = 302 + _globals["_REPOSITORYMODELLOADREQUEST"]._serialized_start = 304 + _globals["_REPOSITORYMODELLOADREQUEST"]._serialized_end = 377 + _globals["_REPOSITORYMODELLOADRESPONSE"]._serialized_start = 379 + _globals["_REPOSITORYMODELLOADRESPONSE"]._serialized_end = 408 + _globals["_REPOSITORYMODELUNLOADREQUEST"]._serialized_start = 410 + _globals["_REPOSITORYMODELUNLOADREQUEST"]._serialized_end = 485 + _globals["_REPOSITORYMODELUNLOADRESPONSE"]._serialized_start = 487 + _globals["_REPOSITORYMODELUNLOADRESPONSE"]._serialized_end = 518 + _globals["_MODELREPOSITORYSERVICE"]._serialized_start = 521 + _globals["_MODELREPOSITORYSERVICE"]._serialized_end = 955 # @@protoc_insertion_point(module_scope)