Package com.google.cloud.automl.v1
Class AutoMlGrpc.AutoMlBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<AutoMlGrpc.AutoMlBlockingV2Stub>
com.google.cloud.automl.v1.AutoMlGrpc.AutoMlBlockingV2Stub
- Enclosing class:
- AutoMlGrpc
public static final class AutoMlGrpc.AutoMlBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<AutoMlGrpc.AutoMlBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service AutoMl.
AutoML Server API.
The resource names are assigned by the server.
The server never reuses names that it has created after the resources with
those names are deleted.
An ID of a resource is the last element of the item's resource name. For
`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
the id for the item is `{dataset_id}`.
Currently the only supported `location_id` is "us-central1".
On any input that is documented to expect a string parameter in
snake_case or dash-case, either of those cases is accepted.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected AutoMlGrpc.AutoMlBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createDataset(CreateDatasetRequest request) Creates a dataset.createModel(CreateModelRequest request) Creates a model.deleteDataset(DeleteDatasetRequest request) Deletes a dataset and all of its contents.deleteModel(DeleteModelRequest request) Deletes a model.deployModel(DeployModelRequest request) Deploys a model.exportData(ExportDataRequest request) Exports dataset's data to the provided output location.exportModel(ExportModelRequest request) Exports a trained, "export-able", model to a user specified Google Cloud Storage location.Gets an annotation spec.getDataset(GetDatasetRequest request) Gets a dataset.getModel(GetModelRequest request) Gets a model.Gets a model evaluation.importData(ImportDataRequest request) Imports data into a dataset.listDatasets(ListDatasetsRequest request) Lists datasets in a project.Lists model evaluations.listModels(ListModelsRequest request) Lists models.undeployModel(UndeployModelRequest request) Undeploys a model.updateDataset(UpdateDatasetRequest request) Updates a dataset.updateModel(UpdateModelRequest request) Updates a model.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected AutoMlGrpc.AutoMlBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<AutoMlGrpc.AutoMlBlockingV2Stub>
-
createDataset
Creates a dataset.
- Throws:
io.grpc.StatusException
-
getDataset
Gets a dataset.
- Throws:
io.grpc.StatusException
-
listDatasets
public ListDatasetsResponse listDatasets(ListDatasetsRequest request) throws io.grpc.StatusException Lists datasets in a project.
- Throws:
io.grpc.StatusException
-
updateDataset
Updates a dataset.
- Throws:
io.grpc.StatusException
-
deleteDataset
Deletes a dataset and all of its contents. Returns empty response in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.
- Throws:
io.grpc.StatusException
-
importData
Imports data into a dataset. For Tables this method can only be called on an empty Dataset. For Tables: * A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be explicitly set. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.- Throws:
io.grpc.StatusException
-
exportData
Exports dataset's data to the provided output location. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
- Throws:
io.grpc.StatusException
-
getAnnotationSpec
public AnnotationSpec getAnnotationSpec(GetAnnotationSpecRequest request) throws io.grpc.StatusException Gets an annotation spec.
- Throws:
io.grpc.StatusException
-
createModel
Creates a model. Returns a Model in the [response][google.longrunning.Operation.response] field when it completes. When you create a model, several model evaluations are created for it: a global evaluation, and one evaluation for each annotation spec.
- Throws:
io.grpc.StatusException
-
getModel
Gets a model.
- Throws:
io.grpc.StatusException
-
listModels
Lists models.
- Throws:
io.grpc.StatusException
-
deleteModel
Deletes a model. Returns `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.
- Throws:
io.grpc.StatusException
-
updateModel
Updates a model.
- Throws:
io.grpc.StatusException
-
deployModel
Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parametrs (as e.g. changing [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number]) will reset the deployment state without pausing the model's availability. Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
- Throws:
io.grpc.StatusException
-
undeployModel
Undeploys a model. If the model is not deployed this method has no effect. Only applicable for Text Classification, Image Object Detection and Tables; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
- Throws:
io.grpc.StatusException
-
exportModel
Exports a trained, "export-able", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig]. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
- Throws:
io.grpc.StatusException
-
getModelEvaluation
public ModelEvaluation getModelEvaluation(GetModelEvaluationRequest request) throws io.grpc.StatusException Gets a model evaluation.
- Throws:
io.grpc.StatusException
-
listModelEvaluations
public ListModelEvaluationsResponse listModelEvaluations(ListModelEvaluationsRequest request) throws io.grpc.StatusException Lists model evaluations.
- Throws:
io.grpc.StatusException
-