Class ModelServiceGrpc.ModelServiceStub (2.7.4)

public static final class ModelServiceGrpc.ModelServiceStub extends AbstractAsyncStub<ModelServiceGrpc.ModelServiceStub>

A service for managing Vertex AI's machine learning Models.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > ModelServiceGrpc.ModelServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected ModelServiceGrpc.ModelServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
ModelServiceGrpc.ModelServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

deleteModel(DeleteModelRequest request, StreamObserver<Operation> responseObserver)

public void deleteModel(DeleteModelRequest request, StreamObserver<Operation> responseObserver)

Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on the model in its deployed_models field.

Parameters
NameDescription
requestDeleteModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

exportModel(ExportModelRequest request, StreamObserver<Operation> responseObserver)

public void exportModel(ExportModelRequest request, StreamObserver<Operation> responseObserver)

Exports a trained, exportable Model to a location specified by the user. A Model is considered to be exportable if it has at least one supported export format.

Parameters
NameDescription
requestExportModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getModel(GetModelRequest request, StreamObserver<Model> responseObserver)

public void getModel(GetModelRequest request, StreamObserver<Model> responseObserver)

Gets a Model.

Parameters
NameDescription
requestGetModelRequest
responseObserverio.grpc.stub.StreamObserver<Model>

getModelEvaluation(GetModelEvaluationRequest request, StreamObserver<ModelEvaluation> responseObserver)

public void getModelEvaluation(GetModelEvaluationRequest request, StreamObserver<ModelEvaluation> responseObserver)

Gets a ModelEvaluation.

Parameters
NameDescription
requestGetModelEvaluationRequest
responseObserverio.grpc.stub.StreamObserver<ModelEvaluation>

getModelEvaluationSlice(GetModelEvaluationSliceRequest request, StreamObserver<ModelEvaluationSlice> responseObserver)

public void getModelEvaluationSlice(GetModelEvaluationSliceRequest request, StreamObserver<ModelEvaluationSlice> responseObserver)

Gets a ModelEvaluationSlice.

Parameters
NameDescription
requestGetModelEvaluationSliceRequest
responseObserverio.grpc.stub.StreamObserver<ModelEvaluationSlice>

listModelEvaluationSlices(ListModelEvaluationSlicesRequest request, StreamObserver<ListModelEvaluationSlicesResponse> responseObserver)

public void listModelEvaluationSlices(ListModelEvaluationSlicesRequest request, StreamObserver<ListModelEvaluationSlicesResponse> responseObserver)

Lists ModelEvaluationSlices in a ModelEvaluation.

Parameters
NameDescription
requestListModelEvaluationSlicesRequest
responseObserverio.grpc.stub.StreamObserver<ListModelEvaluationSlicesResponse>

listModelEvaluations(ListModelEvaluationsRequest request, StreamObserver<ListModelEvaluationsResponse> responseObserver)

public void listModelEvaluations(ListModelEvaluationsRequest request, StreamObserver<ListModelEvaluationsResponse> responseObserver)

Lists ModelEvaluations in a Model.

Parameters
NameDescription
requestListModelEvaluationsRequest
responseObserverio.grpc.stub.StreamObserver<ListModelEvaluationsResponse>

listModels(ListModelsRequest request, StreamObserver<ListModelsResponse> responseObserver)

public void listModels(ListModelsRequest request, StreamObserver<ListModelsResponse> responseObserver)

Lists Models in a Location.

Parameters
NameDescription
requestListModelsRequest
responseObserverio.grpc.stub.StreamObserver<ListModelsResponse>

updateModel(UpdateModelRequest request, StreamObserver<Model> responseObserver)

public void updateModel(UpdateModelRequest request, StreamObserver<Model> responseObserver)

Updates a Model.

Parameters
NameDescription
requestUpdateModelRequest
responseObserverio.grpc.stub.StreamObserver<Model>

uploadModel(UploadModelRequest request, StreamObserver<Operation> responseObserver)

public void uploadModel(UploadModelRequest request, StreamObserver<Operation> responseObserver)

Uploads a Model artifact into Vertex AI.

Parameters
NameDescription
requestUploadModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>