Package com.google.cloud.automl.v1
Class AutoMlGrpc.AutoMlBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<AutoMlGrpc.AutoMlBlockingStub>
-
- com.google.cloud.automl.v1.AutoMlGrpc.AutoMlBlockingStub
-
- Enclosing class:
- AutoMlGrpc
public static final class AutoMlGrpc.AutoMlBlockingStub extends io.grpc.stub.AbstractBlockingStub<AutoMlGrpc.AutoMlBlockingStub>
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AutoMlGrpc.AutoMlBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.longrunning.Operation
createDataset(CreateDatasetRequest request)
Creates a dataset.com.google.longrunning.Operation
createModel(CreateModelRequest request)
Creates a model.com.google.longrunning.Operation
deleteDataset(DeleteDatasetRequest request)
Deletes a dataset and all of its contents.com.google.longrunning.Operation
deleteModel(DeleteModelRequest request)
Deletes a model.com.google.longrunning.Operation
deployModel(DeployModelRequest request)
Deploys a model.com.google.longrunning.Operation
exportData(ExportDataRequest request)
Exports dataset's data to the provided output location.com.google.longrunning.Operation
exportModel(ExportModelRequest request)
Exports a trained, "export-able", model to a user specified Google Cloud Storage location.AnnotationSpec
getAnnotationSpec(GetAnnotationSpecRequest request)
Gets an annotation spec.Dataset
getDataset(GetDatasetRequest request)
Gets a dataset.Model
getModel(GetModelRequest request)
Gets a model.ModelEvaluation
getModelEvaluation(GetModelEvaluationRequest request)
Gets a model evaluation.com.google.longrunning.Operation
importData(ImportDataRequest request)
Imports data into a dataset.ListDatasetsResponse
listDatasets(ListDatasetsRequest request)
Lists datasets in a project.ListModelEvaluationsResponse
listModelEvaluations(ListModelEvaluationsRequest request)
Lists model evaluations.ListModelsResponse
listModels(ListModelsRequest request)
Lists models.com.google.longrunning.Operation
undeployModel(UndeployModelRequest request)
Undeploys a model.Dataset
updateDataset(UpdateDatasetRequest request)
Updates a dataset.Model
updateModel(UpdateModelRequest request)
Updates a model.
-
-
-
Method Detail
-
build
protected AutoMlGrpc.AutoMlBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<AutoMlGrpc.AutoMlBlockingStub>
-
createDataset
public com.google.longrunning.Operation createDataset(CreateDatasetRequest request)
Creates a dataset.
-
getDataset
public Dataset getDataset(GetDatasetRequest request)
Gets a dataset.
-
listDatasets
public ListDatasetsResponse listDatasets(ListDatasetsRequest request)
Lists datasets in a project.
-
updateDataset
public Dataset updateDataset(UpdateDatasetRequest request)
Updates a dataset.
-
deleteDataset
public com.google.longrunning.Operation deleteDataset(DeleteDatasetRequest request)
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.
-
importData
public com.google.longrunning.Operation importData(ImportDataRequest request)
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.
-
exportData
public com.google.longrunning.Operation exportData(ExportDataRequest request)
Exports dataset's data to the provided output location. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
-
getAnnotationSpec
public AnnotationSpec getAnnotationSpec(GetAnnotationSpecRequest request)
Gets an annotation spec.
-
createModel
public com.google.longrunning.Operation createModel(CreateModelRequest request)
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.
-
getModel
public Model getModel(GetModelRequest request)
Gets a model.
-
listModels
public ListModelsResponse listModels(ListModelsRequest request)
Lists models.
-
deleteModel
public com.google.longrunning.Operation deleteModel(DeleteModelRequest request)
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.
-
updateModel
public Model updateModel(UpdateModelRequest request)
Updates a model.
-
deployModel
public com.google.longrunning.Operation deployModel(DeployModelRequest request)
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.
-
undeployModel
public com.google.longrunning.Operation undeployModel(UndeployModelRequest request)
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.
-
exportModel
public com.google.longrunning.Operation exportModel(ExportModelRequest request)
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.
-
getModelEvaluation
public ModelEvaluation getModelEvaluation(GetModelEvaluationRequest request)
Gets a model evaluation.
-
listModelEvaluations
public ListModelEvaluationsResponse listModelEvaluations(ListModelEvaluationsRequest request)
Lists model evaluations.
-
-