Class GrpcGenAiTuningServiceStub
java.lang.Object
com.google.cloud.aiplatform.v1.stub.GenAiTuningServiceStub
com.google.cloud.aiplatform.v1.stub.GrpcGenAiTuningServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcGenAiTuningServiceStub
extends GenAiTuningServiceStub
gRPC stub implementation for the GenAiTuningService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcGenAiTuningServiceStub(GenAiTuningServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcGenAiTuningServiceStub, using the given settings.protectedGrpcGenAiTuningServiceStub(GenAiTuningServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcGenAiTuningServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) UnaryCallable<CancelTuningJobRequest,com.google.protobuf.Empty> final voidclose()static final GrpcGenAiTuningServiceStubcreate(ClientContext clientContext) static final GrpcGenAiTuningServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcGenAiTuningServiceStubcreate(GenAiTuningServiceStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcGenAiTuningServiceStub
protected GrpcGenAiTuningServiceStub(GenAiTuningServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcGenAiTuningServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcGenAiTuningServiceStub
protected GrpcGenAiTuningServiceStub(GenAiTuningServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcGenAiTuningServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcGenAiTuningServiceStub create(GenAiTuningServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcGenAiTuningServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcGenAiTuningServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classGenAiTuningServiceStub
-
createTuningJobCallable
- Overrides:
createTuningJobCallablein classGenAiTuningServiceStub
-
getTuningJobCallable
- Overrides:
getTuningJobCallablein classGenAiTuningServiceStub
-
listTuningJobsCallable
- Overrides:
listTuningJobsCallablein classGenAiTuningServiceStub
-
listTuningJobsPagedCallable
public UnaryCallable<ListTuningJobsRequest,GenAiTuningServiceClient.ListTuningJobsPagedResponse> listTuningJobsPagedCallable()- Overrides:
listTuningJobsPagedCallablein classGenAiTuningServiceStub
-
cancelTuningJobCallable
- Overrides:
cancelTuningJobCallablein classGenAiTuningServiceStub
-
rebaseTunedModelCallable
- Overrides:
rebaseTunedModelCallablein classGenAiTuningServiceStub
-
rebaseTunedModelOperationCallable
public OperationCallable<RebaseTunedModelRequest,TuningJob, rebaseTunedModelOperationCallable()RebaseTunedModelOperationMetadata> - Overrides:
rebaseTunedModelOperationCallablein classGenAiTuningServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classGenAiTuningServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,GenAiTuningServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classGenAiTuningServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classGenAiTuningServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classGenAiTuningServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classGenAiTuningServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classGenAiTuningServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGenAiTuningServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-