@Generated("by gapic-generator-java")
Package com.google.cloud.automl.v1
The interfaces provided are listed below, along with usage samples.
======================= PredictionServiceClient =======================
Service Description: AutoML Prediction API.
On any input that is documented to expect a string parameter in snake_case or dash-case, either of those cases is accepted.
Sample for PredictionServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
ExamplePayload payload = ExamplePayload.newBuilder().build();
Map<String, String> params = new HashMap<>();
PredictResponse response = predictionServiceClient.predict(name, payload, params);
}
======================= AutoMlClient =======================
Service Description: 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.
Sample for AutoMlClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (AutoMlClient autoMlClient = AutoMlClient.create()) {
DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
Dataset response = autoMlClient.getDataset(name);
}
-
Class Summary Class Description AnnotationPayload Contains annotation information that is relevant to AutoML.AnnotationPayload.Builder Contains annotation information that is relevant to AutoML.AnnotationPayloadOuterClass AnnotationSpec A definition of an annotation spec.AnnotationSpec.Builder A definition of an annotation spec.AnnotationSpecName AnnotationSpecName.Builder Builder for projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}.AnnotationSpecOuterClass AutoMlClient Service Description: AutoML Server API.AutoMlClient.ListDatasetsFixedSizeCollection AutoMlClient.ListDatasetsPage AutoMlClient.ListDatasetsPagedResponse AutoMlClient.ListModelEvaluationsFixedSizeCollection AutoMlClient.ListModelEvaluationsPage AutoMlClient.ListModelEvaluationsPagedResponse AutoMlClient.ListModelsFixedSizeCollection AutoMlClient.ListModelsPage AutoMlClient.ListModelsPagedResponse AutoMlGrpc AutoML Server API.AutoMlGrpc.AutoMlBlockingStub A stub to allow clients to do synchronous rpc calls to service AutoMl.AutoMlGrpc.AutoMlFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service AutoMl.AutoMlGrpc.AutoMlImplBase Base class for the server implementation of the service AutoMl.AutoMlGrpc.AutoMlStub A stub to allow clients to do asynchronous rpc calls to service AutoMl.AutoMlProto AutoMlSettings Settings class to configure an instance ofAutoMlClient
.AutoMlSettings.Builder Builder for AutoMlSettings.BatchPredictInputConfig Input configuration for BatchPredict Action.BatchPredictInputConfig.Builder Input configuration for BatchPredict Action.BatchPredictOperationMetadata Details of BatchPredict operation.BatchPredictOperationMetadata.BatchPredictOutputInfo Further describes this batch predict's output.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder Further describes this batch predict's output.BatchPredictOperationMetadata.Builder Details of BatchPredict operation.BatchPredictOutputConfig Output configuration for BatchPredict Action.BatchPredictOutputConfig.Builder Output configuration for BatchPredict Action.BatchPredictRequest Request message for [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].BatchPredictRequest.Builder Request message for [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].BatchPredictResult Result of the Batch Predict.BatchPredictResult.Builder Result of the Batch Predict.BoundingBoxMetricsEntry Bounding box matching model metrics for a single intersection-over-union threshold and multiple label match confidence thresholds.BoundingBoxMetricsEntry.Builder Bounding box matching model metrics for a single intersection-over-union threshold and multiple label match confidence thresholds.BoundingBoxMetricsEntry.ConfidenceMetricsEntry Metrics for a single confidence threshold.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder Metrics for a single confidence threshold.BoundingPoly A bounding polygon of a detected object on a plane.BoundingPoly.Builder A bounding polygon of a detected object on a plane.ClassificationAnnotation Contains annotation details specific to classification.ClassificationAnnotation.Builder Contains annotation details specific to classification.ClassificationEvaluationMetrics Model evaluation metrics for classification problems.ClassificationEvaluationMetrics.Builder Model evaluation metrics for classification problems.ClassificationEvaluationMetrics.ConfidenceMetricsEntry Metrics for a single confidence threshold.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder Metrics for a single confidence threshold.ClassificationEvaluationMetrics.ConfusionMatrix Confusion matrix of the model running the classification.ClassificationEvaluationMetrics.ConfusionMatrix.Builder Confusion matrix of the model running the classification.ClassificationEvaluationMetrics.ConfusionMatrix.Row Output only.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder Output only.ClassificationProto CreateDatasetOperationMetadata Details of CreateDataset operation.CreateDatasetOperationMetadata.Builder Details of CreateDataset operation.CreateDatasetRequest Request message for [AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].CreateDatasetRequest.Builder Request message for [AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].CreateModelOperationMetadata Details of CreateModel operation.CreateModelOperationMetadata.Builder Details of CreateModel operation.CreateModelRequest Request message for [AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].CreateModelRequest.Builder Request message for [AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].DataItems Dataset A workspace for solving a single, particular machine learning (ML) problem.Dataset.Builder A workspace for solving a single, particular machine learning (ML) problem.DatasetName DatasetName.Builder Builder for projects/{project}/locations/{location}/datasets/{dataset}.DatasetOuterClass DeleteDatasetRequest Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].DeleteDatasetRequest.Builder Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].DeleteModelRequest Request message for [AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].DeleteModelRequest.Builder Request message for [AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].DeleteOperationMetadata Details of operations that perform deletes of any entities.DeleteOperationMetadata.Builder Details of operations that perform deletes of any entities.DeployModelOperationMetadata Details of DeployModel operation.DeployModelOperationMetadata.Builder Details of DeployModel operation.DeployModelRequest Request message for [AutoMl.DeployModel][google.cloud.automl.v1.AutoMl.DeployModel].DeployModelRequest.Builder Request message for [AutoMl.DeployModel][google.cloud.automl.v1.AutoMl.DeployModel].Detection Document A structured text document e.g.Document.Builder A structured text document e.g.Document.Layout Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.Document.Layout.Builder Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.DocumentDimensions Message that describes dimension of a document.DocumentDimensions.Builder Message that describes dimension of a document.DocumentInputConfig Input configuration of a [Document][google.cloud.automl.v1.Document].DocumentInputConfig.Builder Input configuration of a [Document][google.cloud.automl.v1.Document].ExamplePayload Example data used for training or prediction.ExamplePayload.Builder Example data used for training or prediction.ExportDataOperationMetadata Details of ExportData operation.ExportDataOperationMetadata.Builder Details of ExportData operation.ExportDataOperationMetadata.ExportDataOutputInfo Further describes this export data's output.ExportDataOperationMetadata.ExportDataOutputInfo.Builder Further describes this export data's output.ExportDataRequest Request message for [AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].ExportDataRequest.Builder Request message for [AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].ExportModelOperationMetadata Details of ExportModel operation.ExportModelOperationMetadata.Builder Details of ExportModel operation.ExportModelOperationMetadata.ExportModelOutputInfo Further describes the output of model export.ExportModelOperationMetadata.ExportModelOutputInfo.Builder Further describes the output of model export.ExportModelRequest Request message for [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel].ExportModelRequest.Builder Request message for [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel].GcsDestination The Google Cloud Storage location where the output is to be written to.GcsDestination.Builder The Google Cloud Storage location where the output is to be written to.GcsSource The Google Cloud Storage location for the input content.GcsSource.Builder The Google Cloud Storage location for the input content.Geometry GetAnnotationSpecRequest Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1.AutoMl.GetAnnotationSpec].GetAnnotationSpecRequest.Builder Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1.AutoMl.GetAnnotationSpec].GetDatasetRequest Request message for [AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].GetDatasetRequest.Builder Request message for [AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].GetModelEvaluationRequest Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].GetModelEvaluationRequest.Builder Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].GetModelRequest Request message for [AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].GetModelRequest.Builder Request message for [AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].Image A representation of an image.Image.Builder A representation of an image.ImageClassificationDatasetMetadata Dataset metadata that is specific to image classification.ImageClassificationDatasetMetadata.Builder Dataset metadata that is specific to image classification.ImageClassificationModelDeploymentMetadata Model deployment metadata specific to Image Classification.ImageClassificationModelDeploymentMetadata.Builder Model deployment metadata specific to Image Classification.ImageClassificationModelMetadata Model metadata for image classification.ImageClassificationModelMetadata.Builder Model metadata for image classification.ImageObjectDetectionAnnotation Annotation details for image object detection.ImageObjectDetectionAnnotation.Builder Annotation details for image object detection.ImageObjectDetectionDatasetMetadata Dataset metadata specific to image object detection.ImageObjectDetectionDatasetMetadata.Builder Dataset metadata specific to image object detection.ImageObjectDetectionEvaluationMetrics Model evaluation metrics for image object detection problems.ImageObjectDetectionEvaluationMetrics.Builder Model evaluation metrics for image object detection problems.ImageObjectDetectionModelDeploymentMetadata Model deployment metadata specific to Image Object Detection.ImageObjectDetectionModelDeploymentMetadata.Builder Model deployment metadata specific to Image Object Detection.ImageObjectDetectionModelMetadata Model metadata specific to image object detection.ImageObjectDetectionModelMetadata.Builder Model metadata specific to image object detection.ImageProto ImportDataOperationMetadata Details of ImportData operation.ImportDataOperationMetadata.Builder Details of ImportData operation.ImportDataRequest Request message for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].ImportDataRequest.Builder Request message for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].InputConfig Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.InputConfig.Builder Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.Io ListDatasetsRequest Request message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].ListDatasetsRequest.Builder Request message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].ListDatasetsResponse Response message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].ListDatasetsResponse.Builder Response message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].ListModelEvaluationsRequest Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].ListModelEvaluationsRequest.Builder Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].ListModelEvaluationsResponse Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].ListModelEvaluationsResponse.Builder Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].ListModelsRequest Request message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].ListModelsRequest.Builder Request message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].ListModelsResponse Response message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].ListModelsResponse.Builder Response message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].LocationName LocationName.Builder Builder for projects/{project}/locations/{location}.Model API proto representing a trained machine learning model.Model.Builder API proto representing a trained machine learning model.ModelEvaluation Evaluation results of a model.ModelEvaluation.Builder Evaluation results of a model.ModelEvaluationName ModelEvaluationName.Builder Builder for projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}.ModelEvaluationOuterClass ModelExportOutputConfig Output configuration for ModelExport Action.ModelExportOutputConfig.Builder Output configuration for ModelExport Action.ModelName ModelName.Builder Builder for projects/{project}/locations/{location}/models/{model}.ModelOuterClass NormalizedVertex A vertex represents a 2D point in the image.NormalizedVertex.Builder A vertex represents a 2D point in the image.OperationMetadata Metadata used across all long running operations returned by AutoML API.OperationMetadata.Builder Metadata used across all long running operations returned by AutoML API.Operations OutputConfig * For Translation: CSV file `translation.csv`, with each line in format: ML_USE,GCS_FILE_PATH GCS_FILE_PATH leads to a .TSV file which describes examples that have given ML_USE, using the following row format per line: TEXT_SNIPPET (in source language) \t TEXT_SNIPPET (in target language) * For Tables: Output depends on whether the dataset was imported from Google Cloud Storage or BigQuery.OutputConfig.Builder * For Translation: CSV file `translation.csv`, with each line in format: ML_USE,GCS_FILE_PATH GCS_FILE_PATH leads to a .TSV file which describes examples that have given ML_USE, using the following row format per line: TEXT_SNIPPET (in source language) \t TEXT_SNIPPET (in target language) * For Tables: Output depends on whether the dataset was imported from Google Cloud Storage or BigQuery.PredictionServiceClient Service Description: AutoML Prediction API.PredictionServiceGrpc AutoML Prediction API.PredictionServiceGrpc.PredictionServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service PredictionService.PredictionServiceGrpc.PredictionServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service PredictionService.PredictionServiceGrpc.PredictionServiceImplBase Base class for the server implementation of the service PredictionService.PredictionServiceGrpc.PredictionServiceStub A stub to allow clients to do asynchronous rpc calls to service PredictionService.PredictionServiceProto PredictionServiceSettings Settings class to configure an instance ofPredictionServiceClient
.PredictionServiceSettings.Builder Builder for PredictionServiceSettings.PredictRequest Request message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].PredictRequest.Builder Request message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].PredictResponse Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].PredictResponse.Builder Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].TextClassificationDatasetMetadata Dataset metadata for classification.TextClassificationDatasetMetadata.Builder Dataset metadata for classification.TextClassificationModelMetadata Model metadata that is specific to text classification.TextClassificationModelMetadata.Builder Model metadata that is specific to text classification.TextExtraction TextExtractionAnnotation Annotation for identifying spans of text.TextExtractionAnnotation.Builder Annotation for identifying spans of text.TextExtractionDatasetMetadata Dataset metadata that is specific to text extractionTextExtractionDatasetMetadata.Builder Dataset metadata that is specific to text extractionTextExtractionEvaluationMetrics Model evaluation metrics for text extraction problems.TextExtractionEvaluationMetrics.Builder Model evaluation metrics for text extraction problems.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry Metrics for a single confidence threshold.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder Metrics for a single confidence threshold.TextExtractionModelMetadata Model metadata that is specific to text extraction.TextExtractionModelMetadata.Builder Model metadata that is specific to text extraction.TextProto TextSegment A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.TextSegment.Builder A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.TextSegmentProto TextSentimentAnnotation Contains annotation details specific to text sentiment.TextSentimentAnnotation.Builder Contains annotation details specific to text sentiment.TextSentimentDatasetMetadata Dataset metadata for text sentiment.TextSentimentDatasetMetadata.Builder Dataset metadata for text sentiment.TextSentimentEvaluationMetrics Model evaluation metrics for text sentiment problems.TextSentimentEvaluationMetrics.Builder Model evaluation metrics for text sentiment problems.TextSentimentModelMetadata Model metadata that is specific to text sentiment.TextSentimentModelMetadata.Builder Model metadata that is specific to text sentiment.TextSentimentProto TextSnippet A representation of a text snippet.TextSnippet.Builder A representation of a text snippet.TranslationAnnotation Annotation details specific to translation.TranslationAnnotation.Builder Annotation details specific to translation.TranslationDatasetMetadata Dataset metadata that is specific to translation.TranslationDatasetMetadata.Builder Dataset metadata that is specific to translation.TranslationEvaluationMetrics Evaluation metrics for the dataset.TranslationEvaluationMetrics.Builder Evaluation metrics for the dataset.TranslationModelMetadata Model metadata that is specific to translation.TranslationModelMetadata.Builder Model metadata that is specific to translation.TranslationProto UndeployModelOperationMetadata Details of UndeployModel operation.UndeployModelOperationMetadata.Builder Details of UndeployModel operation.UndeployModelRequest Request message for [AutoMl.UndeployModel][google.cloud.automl.v1.AutoMl.UndeployModel].UndeployModelRequest.Builder Request message for [AutoMl.UndeployModel][google.cloud.automl.v1.AutoMl.UndeployModel].UpdateDatasetRequest Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]UpdateDatasetRequest.Builder Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]UpdateModelRequest Request message for [AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel]UpdateModelRequest.Builder Request message for [AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel] -
Enum Summary Enum Description AnnotationPayload.DetailCase BatchPredictInputConfig.SourceCase BatchPredictOperationMetadata.BatchPredictOutputInfo.OutputLocationCase BatchPredictOutputConfig.DestinationCase ClassificationType Type of the classification problem.Dataset.DatasetMetadataCase DeployModelRequest.ModelDeploymentMetadataCase Document.Layout.TextSegmentType The type of TextSegment in the context of the original document.DocumentDimensions.DocumentDimensionUnit Unit of the document dimension.ExamplePayload.PayloadCase ExportDataOperationMetadata.ExportDataOutputInfo.OutputLocationCase Image.DataCase InputConfig.SourceCase Model.DeploymentState Deployment state of the model.Model.ModelMetadataCase ModelEvaluation.MetricsCase ModelExportOutputConfig.DestinationCase OperationMetadata.DetailsCase OutputConfig.DestinationCase TextExtractionAnnotation.AnnotationCase