Get desktop application:
View/edit binary Protocol Buffers messages
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}`.
Creates a dataset.
Request message for [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
The resource name of the project to create the dataset for.
The dataset to create.
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.
Request message for [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
Resource name of the parent project where the model is being created.
The model to create.
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.
Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
The resource name of the dataset to delete.
Deletes a model. If a model is already deployed, this only deletes the model in AutoML BE, and does not change the status of the deployed model in the production environment. 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.
Request message for [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
Resource name of the model being deleted.
Deploys model. Returns a [DeployModelResponse][] in the [response][google.longrunning.Operation.response] field when it completes.
Request message for [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
Resource name of the model to deploy.
Exports dataset's data to a Google Cloud Storage bucket. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
Request message for [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
Required. The resource name of the dataset.
Required. The desired output location.
Gets a dataset.
Request message for [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
The resource name of the dataset to retrieve.
Gets a model.
Request message for [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
Resource name of the model.
Gets a model evaluation.
Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
Resource name for the model evaluation.
Imports data into a dataset. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
Request message for [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
Required. Dataset name. Dataset must already exist. All imported annotations and examples will be added.
Required. The desired input location.
Lists datasets in a project.
Request message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
The resource name of the project from which to list datasets.
An expression for filtering the results of the request. * `dataset_metadata` - for existence of the case. An example of using the filter is: * `translation_dataset_metadata:*` --> The dataset has translation_dataset_metadata.
Requested page size. Server may return fewer results than requested. If unspecified, server will pick a default size.
A token identifying a page of results for the server to return Typically obtained via [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
Response message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
The datasets read.
A token to retrieve next page of results. Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
Lists model evaluations.
Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
Resource name of the model to list the model evaluations for. If modelId is set as "-", this will list model evaluations from across all models of the parent location.
An expression for filtering the results of the request. * `annotation_spec_id` - for =, != or existence. See example below for the last. Some examples of using the filter are: * `annotation_spec_id!=4` --> The model evaluation was done for annotation spec with ID different than 4. * `NOT annotation_spec_id:*` --> The model evaluation was done for aggregate of all annotation specs.
Requested page size.
A token identifying a page of results for the server to return. Typically obtained via `ListModelEvaluationsResponse.next_page_token` of the previous [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
List of model evaluations in the requested page.
A token to retrieve next page of results. Pass to [ListModelEvaluations.page_token][] to obtain that page.
Lists models.
Request message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
Resource name of the project, from which to list the models.
An expression for filtering the results of the request. * `model_metadata` - for existence of the case. * `dataset_id` - for = or !=. Some examples of using the filter are: * `image_classification_model_metadata:*` --> The model has image_classification_model_metadata. * `dataset_id=5` --> The model was created from a sibling dataset with ID 5.
Requested page size.
A token identifying a page of results for the server to return Typically obtained via [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
Response message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
List of models in the requested page.
A token to retrieve next page of results. Pass to [ListModels.page_token][] to obtain that page.
Undeploys model. Returns an `UndeployModelResponse` in the [response][google.longrunning.Operation.response] field when it completes.
Request message for [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
Resource name of the model to undeploy.
AutoML Prediction API.
Perform a prediction.
Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
Name of the model requested to serve the prediction.
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
Additional domain-specific parameters, any string must be up to 25000 characters long. * For Image Classification: `score_threshold` - (float) A value from 0.0 to 1.0. When the model makes predictions for an image, it will only produce results that have at least this confidence score threshold. The default is 0.5.
Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict]. Currently, this is only used to return an image recognition prediction result. More prediction output metadata might be introduced in the future.
Prediction result.
Additional domain-specific prediction response metadata.
Contains annotation information that is relevant to AutoML.
Used in:
Output only . Additional information about the annotation specific to the AutoML solution.
Annotation details for translation.
Annotation details for content or image classification.
Output only . The resource ID of the annotation spec that this annotation pertains to. The annotation spec comes from either an ancestor dataset, or the dataset that was used to train the model in use.
Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model was trained. Because this field returns a value at model training time, for different models trained using the same dataset, the returned value could be different as model owner could update the display_name between any two model training.
Contains annotation details specific to classification.
Used in:
Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence that the annotation is positive. If a user approves an annotation as negative or positive, the score value remains unchanged. If a user creates an annotation, the score is 0 for negative or 1 for positive.
Model evaluation metrics for classification problems. Visible only to v1beta1
Used in:
Output only. The Area under precision recall curve metric.
Output only. The Area under precision recall curve metric based on priors.
Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.
Output only. Confusion matrix of the evaluation. Only set for MULTICLASS classification problems where number of labels is no more than 10. Only set for model level evaluation, not for evaluation per label.
Output only. The annotation spec ids used for this evaluation.
Metrics for a single confidence threshold.
Used in:
Output only. The confidence threshold value used to compute the metrics.
Output only. Recall under the given confidence threshold.
Output only. Precision under the given confidence threshold.
Output only. The harmonic mean of recall and precision.
Output only. The recall when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
Output only. The precision when only considering the label that has the highest predictionscore and not below the confidence threshold for each example.
Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
Confusion matrix of the model running the classification.
Used in:
Output only. IDs of the annotation specs used in the confusion matrix.
Output only. Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id`. `row[i].value[j]` is the number of examples that have ground truth of the `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by the model being evaluated.
Output only. A row in the confusion matrix.
Used in:
Output only. Value of the specific cell in the confusion matrix. The number of values each row is equal to the size of annotatin_spec_id.
Type of the classification problem.
Used in: ,
Should not be used, an un-set enum has this value by default.
At most one label is allowed per example.
Multiple labels are allowed for one example.
Details of CreateModel operation.
Used in:
(message has no fields)
A workspace for solving a single, particular machine learning (ML) problem. A workspace contains examples that may be annotated.
Used as response type in: AutoMl.CreateDataset, AutoMl.GetDataset
Used as field type in: ,
Required. The dataset metadata that is specific to the problem type.
Metadata for a dataset used for translation.
Metadata for a dataset used for image classification.
Metadata for a dataset used for text classification.
Output only. The resource name of the dataset. Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
Required. The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
Output only. The number of examples in the dataset.
Output only. Timestamp when this dataset was created.
Example data used for training or prediction.
Used in:
Required. Input only. The example data.
An example image.
Example text.
The GCS location where the output must be written to
Used in:
Required. Google Cloud Storage URI to output directory, up to 2000 characters long. Accepted forms: * Prefix path: gs://bucket/directory The requesting user must have write permission to the bucket. The directory is created if it doesn't exist.
The GCS location for the input content.
Used in:
Required. Google Cloud Storage URIs to input files, up to 2000 characters long. Accepted forms: * Full object path: gs://bucket/directory/object.csv
A representation of an image.
Used in:
Input only. The data representing the image. For Predict calls [image_bytes][] must be set, as other options are not currently supported by prediction API. You can read the contents of an uploaded image by using the [content_uri][] field.
Image content represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
An input config specifying the content of the image.
Output only. HTTP URI to the thumbnail image.
Dataset metadata that is specific to image classification.
Used in:
Required. Type of the classification problem.
Model metadata for image classification.
Used in:
Optional. The ID of the `base` model. If it is specified, the new model will be created based on the `base` model. Otherwise, the new model will be created from scratch. The `base` model is expected to be in the same `project` and `location` as the new model to create.
Required. The train budget of creating this model. The actual `train_cost` will be equal or less than this value.
Output only. The actual train cost of creating this model. If this model is created from a `base` model, the train cost used to create the `base` model are not included.
Output only. The reason that this create model operation stopped, e.g. BUDGET_REACHED, CONVERGED.
Input configuration.
Used in: ,
Required. The source of the input.
The GCS location for the input content.
API proto representing a trained machine learning model.
Used as response type in: AutoMl.GetModel
Used as field type in: ,
Required. The model metadata that is specific to the problem type. Must match the metadata type of the dataset used to train the model.
Metadata for image classification models.
Metadata for text classification models.
Metadata for translation models.
Output only. Resource name of the model. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
Output only. Timestamp when this model was created.
Output only. Timestamp when this model was last updated.
Output only. Deployment state of the model.
Deployment state of the model.
Used in:
Should not be used, an un-set enum has this value by default.
Model is deployed.
Model is not deployed.
Evaluation results of a model.
Used as response type in: AutoMl.GetModelEvaluation
Used as field type in:
Output only. Problem type specific evaluation metrics.
Evaluation metrics for models on classification problems models.
Evaluation metrics for models on translation models.
Output only. Resource name of the model evaluation. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
Output only. The ID of the annotation spec that the model evaluation applies to. The ID is empty for overall model evaluation. NOTE: Currently there is no way to obtain the display_name of the annotation spec from its ID. To see the display_names, review the model evaluations in the UI.
Output only. Timestamp when this model evaluation was created.
Output only. The number of examples used for model evaluation.
Metadata used across all long running operations returned by AutoML API.
Ouptut only. Details of specific operation. Even if this field is empty, the presence allows to distinguish different types of operations.
Details of CreateModel operation.
Output only. Progress of operation. Range: [0, 100].
Output only. Partial failures encountered. E.g. single files that couldn't be read. This field should never exceed 20 entries. Status details field will contain standard GCP error details.
Output only. Time when the operation was created.
Output only. Time when the operation was updated for the last time.
Output configuration.
Used in:
Required. The destination of the output.
The GCS location where the output must be written to.
Dataset metadata for classification.
Used in:
Required. Type of the classification problem.
Model metadata that is specific to text classification.
Used in:
(message has no fields)
A representation of a text snippet.
Used in: ,
Required. The content of the text snippet as a string. Up to 250000 characters long.
The format of the source text. For example, "text/html" or "text/plain". If left blank the format is automatically determined from the type of the uploaded content. The default is "text/html". Up to 25000 characters long.
Output only. HTTP URI where you can download the content.
Annotation details specific to translation.
Used in:
Output only . The translated content.
Dataset metadata that is specific to translation.
Used in:
Required. The BCP-47 language code of the source language.
Required. The BCP-47 language code of the target language.
Evaluation metrics for the dataset.
Used in:
Output only. BLEU score.
Output only. BLEU score for base model.
Model metadata that is specific to translation.
Used in:
The resource name of the model to use as a baseline to train the custom model. If unset, we use the default base model provided by Google Translate. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
Output only. Inferred from the dataset. The source languge (The BCP-47 language code) that is used for training.
Output only. The target languge (The BCP-47 language code) that is used for training.