Class GrpcAutoMlStub
java.lang.Object
com.google.cloud.automl.v1beta1.stub.AutoMlStub
com.google.cloud.automl.v1beta1.stub.GrpcAutoMlStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the AutoMl service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcAutoMlStub(AutoMlStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcAutoMlStub, using the given settings.protectedGrpcAutoMlStub(AutoMlStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcAutoMlStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcAutoMlStubcreate(ClientContext clientContext) static final GrpcAutoMlStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcAutoMlStubcreate(AutoMlStubSettings settings) OperationCallable<DeleteDatasetRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<DeleteModelRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<DeployModelRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<ExportDataRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<ExportEvaluatedExamplesRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<ExportModelRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<ImportDataRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()voidOperationCallable<UndeployModelRequest,com.google.protobuf.Empty, OperationMetadata> Methods inherited from class com.google.cloud.automl.v1beta1.stub.AutoMlStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcAutoMlStub
protected GrpcAutoMlStub(AutoMlStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcAutoMlStub, 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
-
GrpcAutoMlStub
protected GrpcAutoMlStub(AutoMlStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcAutoMlStub, 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
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcAutoMlStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classAutoMlStub
-
createDatasetCallable
- Overrides:
createDatasetCallablein classAutoMlStub
-
getDatasetCallable
- Overrides:
getDatasetCallablein classAutoMlStub
-
listDatasetsCallable
- Overrides:
listDatasetsCallablein classAutoMlStub
-
listDatasetsPagedCallable
public UnaryCallable<ListDatasetsRequest,AutoMlClient.ListDatasetsPagedResponse> listDatasetsPagedCallable()- Overrides:
listDatasetsPagedCallablein classAutoMlStub
-
updateDatasetCallable
- Overrides:
updateDatasetCallablein classAutoMlStub
-
deleteDatasetCallable
- Overrides:
deleteDatasetCallablein classAutoMlStub
-
deleteDatasetOperationCallable
public OperationCallable<DeleteDatasetRequest,com.google.protobuf.Empty, deleteDatasetOperationCallable()OperationMetadata> - Overrides:
deleteDatasetOperationCallablein classAutoMlStub
-
importDataCallable
- Overrides:
importDataCallablein classAutoMlStub
-
importDataOperationCallable
public OperationCallable<ImportDataRequest,com.google.protobuf.Empty, importDataOperationCallable()OperationMetadata> - Overrides:
importDataOperationCallablein classAutoMlStub
-
exportDataCallable
- Overrides:
exportDataCallablein classAutoMlStub
-
exportDataOperationCallable
public OperationCallable<ExportDataRequest,com.google.protobuf.Empty, exportDataOperationCallable()OperationMetadata> - Overrides:
exportDataOperationCallablein classAutoMlStub
-
getAnnotationSpecCallable
- Overrides:
getAnnotationSpecCallablein classAutoMlStub
-
getTableSpecCallable
- Overrides:
getTableSpecCallablein classAutoMlStub
-
listTableSpecsCallable
- Overrides:
listTableSpecsCallablein classAutoMlStub
-
listTableSpecsPagedCallable
public UnaryCallable<ListTableSpecsRequest,AutoMlClient.ListTableSpecsPagedResponse> listTableSpecsPagedCallable()- Overrides:
listTableSpecsPagedCallablein classAutoMlStub
-
updateTableSpecCallable
- Overrides:
updateTableSpecCallablein classAutoMlStub
-
getColumnSpecCallable
- Overrides:
getColumnSpecCallablein classAutoMlStub
-
listColumnSpecsCallable
- Overrides:
listColumnSpecsCallablein classAutoMlStub
-
listColumnSpecsPagedCallable
public UnaryCallable<ListColumnSpecsRequest,AutoMlClient.ListColumnSpecsPagedResponse> listColumnSpecsPagedCallable()- Overrides:
listColumnSpecsPagedCallablein classAutoMlStub
-
updateColumnSpecCallable
- Overrides:
updateColumnSpecCallablein classAutoMlStub
-
createModelCallable
- Overrides:
createModelCallablein classAutoMlStub
-
createModelOperationCallable
- Overrides:
createModelOperationCallablein classAutoMlStub
-
getModelCallable
- Overrides:
getModelCallablein classAutoMlStub
-
listModelsCallable
- Overrides:
listModelsCallablein classAutoMlStub
-
listModelsPagedCallable
public UnaryCallable<ListModelsRequest,AutoMlClient.ListModelsPagedResponse> listModelsPagedCallable()- Overrides:
listModelsPagedCallablein classAutoMlStub
-
deleteModelCallable
- Overrides:
deleteModelCallablein classAutoMlStub
-
deleteModelOperationCallable
public OperationCallable<DeleteModelRequest,com.google.protobuf.Empty, deleteModelOperationCallable()OperationMetadata> - Overrides:
deleteModelOperationCallablein classAutoMlStub
-
deployModelCallable
- Overrides:
deployModelCallablein classAutoMlStub
-
deployModelOperationCallable
public OperationCallable<DeployModelRequest,com.google.protobuf.Empty, deployModelOperationCallable()OperationMetadata> - Overrides:
deployModelOperationCallablein classAutoMlStub
-
undeployModelCallable
- Overrides:
undeployModelCallablein classAutoMlStub
-
undeployModelOperationCallable
public OperationCallable<UndeployModelRequest,com.google.protobuf.Empty, undeployModelOperationCallable()OperationMetadata> - Overrides:
undeployModelOperationCallablein classAutoMlStub
-
exportModelCallable
- Overrides:
exportModelCallablein classAutoMlStub
-
exportModelOperationCallable
public OperationCallable<ExportModelRequest,com.google.protobuf.Empty, exportModelOperationCallable()OperationMetadata> - Overrides:
exportModelOperationCallablein classAutoMlStub
-
exportEvaluatedExamplesCallable
- Overrides:
exportEvaluatedExamplesCallablein classAutoMlStub
-
exportEvaluatedExamplesOperationCallable
public OperationCallable<ExportEvaluatedExamplesRequest,com.google.protobuf.Empty, exportEvaluatedExamplesOperationCallable()OperationMetadata> - Overrides:
exportEvaluatedExamplesOperationCallablein classAutoMlStub
-
getModelEvaluationCallable
- Overrides:
getModelEvaluationCallablein classAutoMlStub
-
listModelEvaluationsCallable
public UnaryCallable<ListModelEvaluationsRequest,ListModelEvaluationsResponse> listModelEvaluationsCallable()- Overrides:
listModelEvaluationsCallablein classAutoMlStub
-
listModelEvaluationsPagedCallable
public UnaryCallable<ListModelEvaluationsRequest,AutoMlClient.ListModelEvaluationsPagedResponse> listModelEvaluationsPagedCallable()- Overrides:
listModelEvaluationsPagedCallablein classAutoMlStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAutoMlStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-