Class GrpcModelServiceStub
java.lang.Object
com.google.cloud.aiplatform.v1.stub.ModelServiceStub
com.google.cloud.aiplatform.v1.stub.GrpcModelServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the ModelService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcModelServiceStub, using the given settings.protectedGrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcModelServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcModelServiceStubcreate(ClientContext clientContext) static final GrpcModelServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcModelServiceStubcreate(ModelServiceStubSettings settings) OperationCallable<DeleteModelRequest,com.google.protobuf.Empty, DeleteOperationMetadata> OperationCallable<DeleteModelVersionRequest,com.google.protobuf.Empty, DeleteOperationMetadata> booleanbooleanUnaryCallable<ListModelEvaluationSlicesRequest,ModelServiceClient.ListModelEvaluationSlicesPagedResponse> UnaryCallable<ListModelVersionCheckpointsRequest,ModelServiceClient.ListModelVersionCheckpointsPagedResponse> voidshutdown()voidOperationCallable<UpdateExplanationDatasetRequest,UpdateExplanationDatasetResponse, UpdateExplanationDatasetOperationMetadata>
-
Constructor Details
-
GrpcModelServiceStub
protected GrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcModelServiceStub, 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
-
GrpcModelServiceStub
protected GrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcModelServiceStub, 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 GrpcModelServiceStub create(ModelServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcModelServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classModelServiceStub
-
uploadModelCallable
- Overrides:
uploadModelCallablein classModelServiceStub
-
uploadModelOperationCallable
public OperationCallable<UploadModelRequest,UploadModelResponse, uploadModelOperationCallable()UploadModelOperationMetadata> - Overrides:
uploadModelOperationCallablein classModelServiceStub
-
getModelCallable
- Overrides:
getModelCallablein classModelServiceStub
-
listModelsCallable
- Overrides:
listModelsCallablein classModelServiceStub
-
listModelsPagedCallable
public UnaryCallable<ListModelsRequest,ModelServiceClient.ListModelsPagedResponse> listModelsPagedCallable()- Overrides:
listModelsPagedCallablein classModelServiceStub
-
listModelVersionsCallable
public UnaryCallable<ListModelVersionsRequest,ListModelVersionsResponse> listModelVersionsCallable()- Overrides:
listModelVersionsCallablein classModelServiceStub
-
listModelVersionsPagedCallable
public UnaryCallable<ListModelVersionsRequest,ModelServiceClient.ListModelVersionsPagedResponse> listModelVersionsPagedCallable()- Overrides:
listModelVersionsPagedCallablein classModelServiceStub
-
listModelVersionCheckpointsCallable
public UnaryCallable<ListModelVersionCheckpointsRequest,ListModelVersionCheckpointsResponse> listModelVersionCheckpointsCallable()- Overrides:
listModelVersionCheckpointsCallablein classModelServiceStub
-
listModelVersionCheckpointsPagedCallable
public UnaryCallable<ListModelVersionCheckpointsRequest,ModelServiceClient.ListModelVersionCheckpointsPagedResponse> listModelVersionCheckpointsPagedCallable()- Overrides:
listModelVersionCheckpointsPagedCallablein classModelServiceStub
-
updateModelCallable
- Overrides:
updateModelCallablein classModelServiceStub
-
updateExplanationDatasetCallable
- Overrides:
updateExplanationDatasetCallablein classModelServiceStub
-
updateExplanationDatasetOperationCallable
public OperationCallable<UpdateExplanationDatasetRequest,UpdateExplanationDatasetResponse, updateExplanationDatasetOperationCallable()UpdateExplanationDatasetOperationMetadata> - Overrides:
updateExplanationDatasetOperationCallablein classModelServiceStub
-
deleteModelCallable
- Overrides:
deleteModelCallablein classModelServiceStub
-
deleteModelOperationCallable
public OperationCallable<DeleteModelRequest,com.google.protobuf.Empty, deleteModelOperationCallable()DeleteOperationMetadata> - Overrides:
deleteModelOperationCallablein classModelServiceStub
-
deleteModelVersionCallable
- Overrides:
deleteModelVersionCallablein classModelServiceStub
-
deleteModelVersionOperationCallable
public OperationCallable<DeleteModelVersionRequest,com.google.protobuf.Empty, deleteModelVersionOperationCallable()DeleteOperationMetadata> - Overrides:
deleteModelVersionOperationCallablein classModelServiceStub
-
mergeVersionAliasesCallable
- Overrides:
mergeVersionAliasesCallablein classModelServiceStub
-
exportModelCallable
- Overrides:
exportModelCallablein classModelServiceStub
-
exportModelOperationCallable
public OperationCallable<ExportModelRequest,ExportModelResponse, exportModelOperationCallable()ExportModelOperationMetadata> - Overrides:
exportModelOperationCallablein classModelServiceStub
-
copyModelCallable
- Overrides:
copyModelCallablein classModelServiceStub
-
copyModelOperationCallable
public OperationCallable<CopyModelRequest,CopyModelResponse, copyModelOperationCallable()CopyModelOperationMetadata> - Overrides:
copyModelOperationCallablein classModelServiceStub
-
importModelEvaluationCallable
- Overrides:
importModelEvaluationCallablein classModelServiceStub
-
batchImportModelEvaluationSlicesCallable
public UnaryCallable<BatchImportModelEvaluationSlicesRequest,BatchImportModelEvaluationSlicesResponse> batchImportModelEvaluationSlicesCallable()- Overrides:
batchImportModelEvaluationSlicesCallablein classModelServiceStub
-
batchImportEvaluatedAnnotationsCallable
public UnaryCallable<BatchImportEvaluatedAnnotationsRequest,BatchImportEvaluatedAnnotationsResponse> batchImportEvaluatedAnnotationsCallable()- Overrides:
batchImportEvaluatedAnnotationsCallablein classModelServiceStub
-
getModelEvaluationCallable
- Overrides:
getModelEvaluationCallablein classModelServiceStub
-
listModelEvaluationsCallable
public UnaryCallable<ListModelEvaluationsRequest,ListModelEvaluationsResponse> listModelEvaluationsCallable()- Overrides:
listModelEvaluationsCallablein classModelServiceStub
-
listModelEvaluationsPagedCallable
public UnaryCallable<ListModelEvaluationsRequest,ModelServiceClient.ListModelEvaluationsPagedResponse> listModelEvaluationsPagedCallable()- Overrides:
listModelEvaluationsPagedCallablein classModelServiceStub
-
getModelEvaluationSliceCallable
public UnaryCallable<GetModelEvaluationSliceRequest,ModelEvaluationSlice> getModelEvaluationSliceCallable()- Overrides:
getModelEvaluationSliceCallablein classModelServiceStub
-
listModelEvaluationSlicesCallable
public UnaryCallable<ListModelEvaluationSlicesRequest,ListModelEvaluationSlicesResponse> listModelEvaluationSlicesCallable()- Overrides:
listModelEvaluationSlicesCallablein classModelServiceStub
-
listModelEvaluationSlicesPagedCallable
public UnaryCallable<ListModelEvaluationSlicesRequest,ModelServiceClient.ListModelEvaluationSlicesPagedResponse> listModelEvaluationSlicesPagedCallable()- Overrides:
listModelEvaluationSlicesPagedCallablein classModelServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classModelServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,ModelServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classModelServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classModelServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classModelServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classModelServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classModelServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classModelServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-