Interface GenAiTuningServiceGrpc.AsyncService (3.55.0)

public static interface GenAiTuningServiceGrpc.AsyncService

A service for creating and managing GenAI Tuning Jobs.

Methods

cancelTuningJob(CancelTuningJobRequest request, StreamObserver<Empty> responseObserver)

public default void cancelTuningJob(CancelTuningJobRequest request, StreamObserver<Empty> responseObserver)

Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use GenAiTuningService.GetTuningJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the TuningJob is not deleted; instead it becomes a job with a TuningJob.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED, and TuningJob.state is set to CANCELLED.

Parameters
Name Description
request CancelTuningJobRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

createTuningJob(CreateTuningJobRequest request, StreamObserver<TuningJob> responseObserver)

public default void createTuningJob(CreateTuningJobRequest request, StreamObserver<TuningJob> responseObserver)

Creates a TuningJob. A created TuningJob right away will be attempted to be run.

Parameters
Name Description
request CreateTuningJobRequest
responseObserver io.grpc.stub.StreamObserver<TuningJob>

getTuningJob(GetTuningJobRequest request, StreamObserver<TuningJob> responseObserver)

public default void getTuningJob(GetTuningJobRequest request, StreamObserver<TuningJob> responseObserver)

Gets a TuningJob.

Parameters
Name Description
request GetTuningJobRequest
responseObserver io.grpc.stub.StreamObserver<TuningJob>

listTuningJobs(ListTuningJobsRequest request, StreamObserver<ListTuningJobsResponse> responseObserver)

public default void listTuningJobs(ListTuningJobsRequest request, StreamObserver<ListTuningJobsResponse> responseObserver)

Lists TuningJobs in a Location.

Parameters
Name Description
request ListTuningJobsRequest
responseObserver io.grpc.stub.StreamObserver<ListTuningJobsResponse>

rebaseTunedModel(RebaseTunedModelRequest request, StreamObserver<Operation> responseObserver)

public default void rebaseTunedModel(RebaseTunedModelRequest request, StreamObserver<Operation> responseObserver)

Rebase a TunedModel. Creates a LongRunningOperation that takes a legacy Tuned GenAI model Reference and creates a TuningJob based on newly available model.

Parameters
Name Description
request RebaseTunedModelRequest
responseObserver io.grpc.stub.StreamObserver<Operation>