3.11.0-rc 3.10.0 (latest) 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 2.48.0-rc 2.47.1 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.1 2.24.0 2.23.0 2.22.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.1 2.14.0 2.13.0 2.12.0 2.11.0 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.

###### Equality

Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal `std::shared_ptr<*Connection>` objects compare equal. Objects that compare equal share the same underlying resources.

###### Performance

Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.

###### Thread Safety

Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.

## Constructors

### AutoMlClient(AutoMlClient const \&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `AutoMlClient const &` |

### AutoMlClient(AutoMlClient \&\&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `AutoMlClient &&` |

### AutoMlClient(std::shared_ptr\< AutoMlConnection \>, Options)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `connection` | `std::shared_ptr< AutoMlConnection >` |
| `opts` | `Options` |

## Operators

### operator=(AutoMlClient const \&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `AutoMlClient const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AutoMlClient &` |   |

### operator=(AutoMlClient \&\&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `AutoMlClient &&` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AutoMlClient &` |   |

## Functions

### CreateDataset(std::string const \&, google::cloud::automl::v1::Dataset const \&, Options)

Creates a dataset.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The resource name of the project to create the dataset for. |
| `dataset` | `google::cloud::automl::v1::Dataset const &` Required. The dataset to create. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::Dataset > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.Dataset](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/dataset.proto#L34) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### CreateDataset(NoAwaitTag, std::string const \&, google::cloud::automl::v1::Dataset const \&, Options)

Creates a dataset.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `parent` | `std::string const &` |
| `dataset` | `google::cloud::automl::v1::Dataset const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### CreateDataset(google::cloud::automl::v1::CreateDatasetRequest const \&, Options)

Creates a dataset.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::CreateDatasetRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.CreateDatasetRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L294). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::Dataset > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.Dataset](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/dataset.proto#L34) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### CreateDataset(NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const \&, Options)

Creates a dataset.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `request` | `google::cloud::automl::v1::CreateDatasetRequest const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### CreateDataset(google::longrunning::Operation const \&, Options)

Creates a dataset.
This method accepts a `google::longrunning::Operation` that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::Dataset > >` |   |

### GetDataset(std::string const \&, Options)

Gets a dataset.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the dataset to retrieve. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::Dataset >` | the result of the RPC. The response message type ([google.cloud.automl.v1.Dataset](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/dataset.proto#L34)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetDataset(google::cloud::automl::v1::GetDatasetRequest const \&, Options)

Gets a dataset.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::GetDatasetRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.GetDatasetRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L308). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::Dataset >` | the result of the RPC. The response message type ([google.cloud.automl.v1.Dataset](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/dataset.proto#L34)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ListDatasets(std::string const \&, Options)

Lists datasets in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The resource name of the project from which to list datasets. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::automl::v1::Dataset >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.automl.v1.Dataset](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/dataset.proto#L34), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListDatasets(google::cloud::automl::v1::ListDatasetsRequest, Options)

Lists datasets in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::ListDatasetsRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.ListDatasetsRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L319). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::automl::v1::Dataset >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.automl.v1.Dataset](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/dataset.proto#L34), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### UpdateDataset(google::cloud::automl::v1::Dataset const \&, google::protobuf::FieldMask const \&, Options)

Updates a dataset.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dataset` | `google::cloud::automl::v1::Dataset const &` Required. The dataset which replaces the resource on the server. |
| `update_mask` | `google::protobuf::FieldMask const &` Required. The update mask applies to the resource. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::Dataset >` | the result of the RPC. The response message type ([google.cloud.automl.v1.Dataset](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/dataset.proto#L34)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### UpdateDataset(google::cloud::automl::v1::UpdateDatasetRequest const \&, Options)

Updates a dataset.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::UpdateDatasetRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.UpdateDatasetRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L359). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::Dataset >` | the result of the RPC. The response message type ([google.cloud.automl.v1.Dataset](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/dataset.proto#L34)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### DeleteDataset(std::string const \&, Options)

Deletes a dataset and all of its contents.
Returns empty response in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes, and `delete_details` in the [metadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L131) field.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the dataset to delete. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeleteDataset(NoAwaitTag, std::string const \&, Options)

Deletes a dataset and all of its contents.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `name` | `std::string const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### DeleteDataset(google::cloud::automl::v1::DeleteDatasetRequest const \&, Options)

Deletes a dataset and all of its contents.
Returns empty response in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes, and `delete_details` in the [metadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L131) field.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::DeleteDatasetRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.DeleteDatasetRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L368). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeleteDataset(NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const \&, Options)

Deletes a dataset and all of its contents.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `request` | `google::cloud::automl::v1::DeleteDatasetRequest const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### DeleteDataset(google::longrunning::Operation const \&, Options)

Deletes a dataset and all of its contents.
This method accepts a `google::longrunning::Operation` that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` |   |

### ImportData(std::string const \&, google::cloud::automl::v1::InputConfig const \&, Options)

Imports data into a dataset.
For Tables this method can only be called on an empty Dataset.

For Tables:

- A [schema_inference_version](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/io.proto#L655) parameter must be explicitly set. Returns an empty response in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. Dataset name. Dataset must already exist. All imported annotations and examples will be added. |
| `input_config` | `google::cloud::automl::v1::InputConfig const &` Required. The desired input location and its domain specific semantics, if any. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ImportData(NoAwaitTag, std::string const \&, google::cloud::automl::v1::InputConfig const \&, Options)

Imports data into a dataset.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `name` | `std::string const &` |
| `input_config` | `google::cloud::automl::v1::InputConfig const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### ImportData(google::cloud::automl::v1::ImportDataRequest const \&, Options)

Imports data into a dataset.
For Tables this method can only be called on an empty Dataset.

For Tables:

- A [schema_inference_version](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/io.proto#L655) parameter must be explicitly set. Returns an empty response in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::ImportDataRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.ImportDataRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L379). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ImportData(NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const \&, Options)

Imports data into a dataset.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `request` | `google::cloud::automl::v1::ImportDataRequest const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### ImportData(google::longrunning::Operation const \&, Options)

Imports data into a dataset.
This method accepts a `google::longrunning::Operation` that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` |   |

### ExportData(std::string const \&, google::cloud::automl::v1::OutputConfig const \&, Options)

Exports dataset's data to the provided output location.
Returns an empty response in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the dataset. |
| `output_config` | `google::cloud::automl::v1::OutputConfig const &` Required. The desired output location. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ExportData(NoAwaitTag, std::string const \&, google::cloud::automl::v1::OutputConfig const \&, Options)

Exports dataset's data to the provided output location.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `name` | `std::string const &` |
| `output_config` | `google::cloud::automl::v1::OutputConfig const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### ExportData(google::cloud::automl::v1::ExportDataRequest const \&, Options)

Exports dataset's data to the provided output location.
Returns an empty response in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::ExportDataRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.ExportDataRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L395). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ExportData(NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const \&, Options)

Exports dataset's data to the provided output location.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `request` | `google::cloud::automl::v1::ExportDataRequest const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### ExportData(google::longrunning::Operation const \&, Options)

Exports dataset's data to the provided output location.
This method accepts a `google::longrunning::Operation` that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` |   |

### GetAnnotationSpec(std::string const \&, Options)

Gets an annotation spec.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the annotation spec to retrieve. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::AnnotationSpec >` | the result of the RPC. The response message type ([google.cloud.automl.v1.AnnotationSpec](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/annotation_spec.proto#L29)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetAnnotationSpec(google::cloud::automl::v1::GetAnnotationSpecRequest const \&, Options)

Gets an annotation spec.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::GetAnnotationSpecRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.GetAnnotationSpecRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L409). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::AnnotationSpec >` | the result of the RPC. The response message type ([google.cloud.automl.v1.AnnotationSpec](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/annotation_spec.proto#L29)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### CreateModel(std::string const \&, google::cloud::automl::v1::Model const \&, Options)

Creates a model.
Returns a Model in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) 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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Resource name of the parent project where the model is being created. |
| `model` | `google::cloud::automl::v1::Model const &` Required. The model to create. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::Model > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.Model](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model.proto#L33) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### CreateModel(NoAwaitTag, std::string const \&, google::cloud::automl::v1::Model const \&, Options)

Creates a model.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `parent` | `std::string const &` |
| `model` | `google::cloud::automl::v1::Model const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### CreateModel(google::cloud::automl::v1::CreateModelRequest const \&, Options)

Creates a model.
Returns a Model in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) 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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::CreateModelRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.CreateModelRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L420). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::Model > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.Model](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model.proto#L33) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### CreateModel(NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const \&, Options)

Creates a model.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `request` | `google::cloud::automl::v1::CreateModelRequest const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### CreateModel(google::longrunning::Operation const \&, Options)

Creates a model.
This method accepts a `google::longrunning::Operation` that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::Model > >` |   |

### GetModel(std::string const \&, Options)

Gets a model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. Resource name of the model. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::Model >` | the result of the RPC. The response message type ([google.cloud.automl.v1.Model](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model.proto#L33)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetModel(google::cloud::automl::v1::GetModelRequest const \&, Options)

Gets a model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::GetModelRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.GetModelRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L434). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::Model >` | the result of the RPC. The response message type ([google.cloud.automl.v1.Model](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model.proto#L33)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ListModels(std::string const \&, Options)

Lists models.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. Resource name of the project, from which to list the models. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::automl::v1::Model >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.automl.v1.Model](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model.proto#L33), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListModels(google::cloud::automl::v1::ListModelsRequest, Options)

Lists models.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::ListModelsRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.ListModelsRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L445). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::automl::v1::Model >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.automl.v1.Model](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model.proto#L33), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeleteModel(std::string const \&, Options)

Deletes a model.
Returns `google.protobuf.Empty` in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes, and `delete_details` in the [metadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L131) field.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. Resource name of the model being deleted. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeleteModel(NoAwaitTag, std::string const \&, Options)

Deletes a model.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `name` | `std::string const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### DeleteModel(google::cloud::automl::v1::DeleteModelRequest const \&, Options)

Deletes a model.
Returns `google.protobuf.Empty` in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes, and `delete_details` in the [metadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L131) field.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::DeleteModelRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.DeleteModelRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L486). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeleteModel(NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const \&, Options)

Deletes a model.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `request` | `google::cloud::automl::v1::DeleteModelRequest const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### DeleteModel(google::longrunning::Operation const \&, Options)

Deletes a model.
This method accepts a `google::longrunning::Operation` that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` |   |

### UpdateModel(google::cloud::automl::v1::Model const \&, google::protobuf::FieldMask const \&, Options)

Updates a model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `model` | `google::cloud::automl::v1::Model const &` Required. The model which replaces the resource on the server. |
| `update_mask` | `google::protobuf::FieldMask const &` Required. The update mask applies to the resource. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::Model >` | the result of the RPC. The response message type ([google.cloud.automl.v1.Model](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model.proto#L33)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### UpdateModel(google::cloud::automl::v1::UpdateModelRequest const \&, Options)

Updates a model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::UpdateModelRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.UpdateModelRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L497). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::Model >` | the result of the RPC. The response message type ([google.cloud.automl.v1.Model](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model.proto#L33)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### DeployModel(std::string const \&, Options)

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](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. Resource name of the model to deploy. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeployModel(NoAwaitTag, std::string const \&, Options)

Deploys a model.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `name` | `std::string const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### DeployModel(google::cloud::automl::v1::DeployModelRequest const \&, Options)

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](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::DeployModelRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.DeployModelRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L506). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeployModel(NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const \&, Options)

Deploys a model.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `request` | `google::cloud::automl::v1::DeployModelRequest const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### DeployModel(google::longrunning::Operation const \&, Options)

Deploys a model.
This method accepts a `google::longrunning::Operation` that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` |   |

### UndeployModel(std::string const \&, Options)

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](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. Resource name of the model to undeploy. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### UndeployModel(NoAwaitTag, std::string const \&, Options)

Undeploys a model.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `name` | `std::string const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### UndeployModel(google::cloud::automl::v1::UndeployModelRequest const \&, Options)

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](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::UndeployModelRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.UndeployModelRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L526). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### UndeployModel(NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const \&, Options)

Undeploys a model.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `request` | `google::cloud::automl::v1::UndeployModelRequest const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### UndeployModel(google::longrunning::Operation const \&, Options)

Undeploys a model.
This method accepts a `google::longrunning::Operation` that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` |   |

### ExportModel(std::string const \&, google::cloud::automl::v1::ModelExportOutputConfig const \&, Options)

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](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/io.proto#L1243).

Returns an empty response in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the model to export. |
| `output_config` | `google::cloud::automl::v1::ModelExportOutputConfig const &` Required. The desired output location and configuration. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ExportModel(NoAwaitTag, std::string const \&, google::cloud::automl::v1::ModelExportOutputConfig const \&, Options)

Exports a trained, "export-able", model to a user specified Google Cloud Storage location.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `name` | `std::string const &` |
| `output_config` | `google::cloud::automl::v1::ModelExportOutputConfig const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### ExportModel(google::cloud::automl::v1::ExportModelRequest const \&, Options)

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](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/io.proto#L1243).

Returns an empty response in the [response](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/longrunning/operations.proto#L154) field when it completes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::ExportModelRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.ExportModelRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L539). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` | A [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.automl.v1.OperationMetadata](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/operations.proto#L31) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ExportModel(NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const \&, Options)

Exports a trained, "export-able", model to a user specified Google Cloud Storage location.
Specifying the [`NoAwaitTag`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) immediately returns the \[`google::longrunning::Operation`\] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
|   | `NoAwaitTag` |
| `request` | `google::cloud::automl::v1::ExportModelRequest const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` |   |

### ExportModel(google::longrunning::Operation const \&, Options)

Exports a trained, "export-able", model to a user specified Google Cloud Storage location.
This method accepts a `google::longrunning::Operation` that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operation` | `google::longrunning::Operation const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::automl::v1::OperationMetadata > >` |   |

### GetModelEvaluation(std::string const \&, Options)

Gets a model evaluation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. Resource name for the model evaluation. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::ModelEvaluation >` | the result of the RPC. The response message type ([google.cloud.automl.v1.ModelEvaluation](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model_evaluation.proto#L35)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetModelEvaluation(google::cloud::automl::v1::GetModelEvaluationRequest const \&, Options)

Gets a model evaluation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::GetModelEvaluationRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.GetModelEvaluationRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L553). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::automl::v1::ModelEvaluation >` | the result of the RPC. The response message type ([google.cloud.automl.v1.ModelEvaluation](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model_evaluation.proto#L35)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ListModelEvaluations(std::string const \&, std::string const \&, Options)

Lists model evaluations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. 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. |
| `filter` | `std::string const &` Required. 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. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::automl::v1::ModelEvaluation >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.automl.v1.ModelEvaluation](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model_evaluation.proto#L35), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListModelEvaluations(google::cloud::automl::v1::ListModelEvaluationsRequest, Options)

Lists model evaluations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::automl::v1::ListModelEvaluationsRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.automl.v1.ListModelEvaluationsRequest](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/service.proto#L564). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::automl::v1::ModelEvaluation >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.automl.v1.ModelEvaluation](https://github.com/googleapis/googleapis/blob/d6b441183addd75c8fa0d4d15b6d9d95d5db9292/google/cloud/automl/v1/model_evaluation.proto#L35), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |