Class GenAiTuningServiceGrpc.GenAiTuningServiceStub (3.56.0)

public static final class GenAiTuningServiceGrpc.GenAiTuningServiceStub extends AbstractAsyncStub<GenAiTuningServiceGrpc.GenAiTuningServiceStub>

A stub to allow clients to do asynchronous rpc calls to service GenAiTuningService.

A service for creating and managing GenAI Tuning Jobs.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > GenAiTuningServiceGrpc.GenAiTuningServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected GenAiTuningServiceGrpc.GenAiTuningServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
GenAiTuningServiceGrpc.GenAiTuningServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

cancelTuningJob(CancelTuningJobRequest request, StreamObserver<Empty> responseObserver)

public 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 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 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 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 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>