Package com.google.cloud.automl.v1.stub
Class HttpJsonAutoMlStub
java.lang.Object
com.google.cloud.automl.v1.stub.AutoMlStub
com.google.cloud.automl.v1.stub.HttpJsonAutoMlStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
REST stub implementation for the AutoMl service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonAutoMlStub(AutoMlStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonAutoMlStub, using the given settings.protectedHttpJsonAutoMlStub(AutoMlStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonAutoMlStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonAutoMlStubcreate(ClientContext clientContext) static final HttpJsonAutoMlStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonAutoMlStubcreate(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<ExportModelRequest,com.google.protobuf.Empty, OperationMetadata> static List<ApiMethodDescriptor>OperationCallable<ImportDataRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()voidOperationCallable<UndeployModelRequest,com.google.protobuf.Empty, OperationMetadata> Methods inherited from class com.google.cloud.automl.v1.stub.AutoMlStub
getOperationsStub
-
Constructor Details
-
HttpJsonAutoMlStub
protected HttpJsonAutoMlStub(AutoMlStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonAutoMlStub, 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
-
HttpJsonAutoMlStub
protected HttpJsonAutoMlStub(AutoMlStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonAutoMlStub, 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 HttpJsonAutoMlStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin classAutoMlStub
-
createDatasetCallable
- Overrides:
createDatasetCallablein classAutoMlStub
-
createDatasetOperationCallable
public OperationCallable<CreateDatasetRequest,Dataset, createDatasetOperationCallable()OperationMetadata> - Overrides:
createDatasetOperationCallablein 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
-
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
-
updateModelCallable
- Overrides:
updateModelCallablein 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
-
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
-