3.14.0-rc 3.13.0 (latest) 3.12.0 3.11.0 3.10.0 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 Service to call Document AI to process documents according to the processor's definition.
Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.

###### 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

### DocumentProcessorServiceClient(DocumentProcessorServiceClient const \&)

Copy and move support

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

### DocumentProcessorServiceClient(DocumentProcessorServiceClient \&\&)

Copy and move support

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

### DocumentProcessorServiceClient(std::shared_ptr\< DocumentProcessorServiceConnection \>, Options)

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

## Operators

### operator=(DocumentProcessorServiceClient const \&)

Copy and move support

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

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

### operator=(DocumentProcessorServiceClient \&\&)

Copy and move support

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

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

## Functions

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

Processes a single document.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the [Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209) or [ProcessorVersion](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L37) to use for processing. If a [Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209) is specified, the server will use its [default version](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L269). Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::documentai::v1::ProcessResponse >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.ProcessResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L504)) 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. |

### ProcessDocument(google::cloud::documentai::v1::ProcessRequest const \&, Options)

Processes a single document.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::ProcessRequest 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.documentai.v1.ProcessRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_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::documentai::v1::ProcessResponse >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.ProcessResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L504)) 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. |

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

LRO endpoint to batch process many documents.
The output is written to Cloud Storage as JSON in the \[Document\] format.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of [Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209) or [ProcessorVersion](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L37). Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::documentai::v1::BatchProcessResponse > >` | 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.documentai.v1.BatchProcessResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L555) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

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

LRO endpoint to batch process many documents.
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 >` |   |

### BatchProcessDocuments(google::cloud::documentai::v1::BatchProcessRequest const \&, Options)

LRO endpoint to batch process many documents.
The output is written to Cloud Storage as JSON in the \[Document\] format.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::BatchProcessRequest 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.documentai.v1.BatchProcessRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L515). 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::documentai::v1::BatchProcessResponse > >` | 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.documentai.v1.BatchProcessResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L555) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### BatchProcessDocuments(NoAwaitTag, google::cloud::documentai::v1::BatchProcessRequest const \&, Options)

LRO endpoint to batch process many documents.
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::documentai::v1::BatchProcessRequest const &` |
| `opts` | `Options` |

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

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

LRO endpoint to batch process many documents.
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::documentai::v1::BatchProcessResponse > >` |   |

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

Fetches processor types.
Note that we don't use [ListProcessorTypes](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L105) here, because it isn't paginated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::documentai::v1::FetchProcessorTypesResponse >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.FetchProcessorTypesResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L638)) 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. |

### FetchProcessorTypes(google::cloud::documentai::v1::FetchProcessorTypesRequest const \&, Options)

Fetches processor types.
Note that we don't use [ListProcessorTypes](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L105) here, because it isn't paginated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::FetchProcessorTypesRequest 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.documentai.v1.FetchProcessorTypesRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L624). 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::documentai::v1::FetchProcessorTypesResponse >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.FetchProcessorTypesResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L638)) 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. |

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

Lists the processor types that exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::documentai::v1::ProcessorType >` | 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.documentai.v1.ProcessorType](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor_type.proto#L32), 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/). |

### ListProcessorTypes(google::cloud::documentai::v1::ListProcessorTypesRequest, Options)

Lists the processor types that exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::ListProcessorTypesRequest` 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.documentai.v1.ListProcessorTypesRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L647). 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::documentai::v1::ProcessorType >` | 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.documentai.v1.ProcessorType](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor_type.proto#L32), 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/). |

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

Gets a processor type detail.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::documentai::v1::ProcessorType >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.ProcessorType](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor_type.proto#L32)) 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. |

### GetProcessorType(google::cloud::documentai::v1::GetProcessorTypeRequest const \&, Options)

Gets a processor type detail.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::GetProcessorTypeRequest 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.documentai.v1.GetProcessorTypeRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L712). 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::documentai::v1::ProcessorType >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.ProcessorType](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor_type.proto#L32)) 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. |

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

Lists all processors which belong to this project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The parent (project and location) which owns this collection of Processors. Format: `projects/{project}/locations/{location}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::documentai::v1::Processor >` | 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.documentai.v1.Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209), 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/). |

### ListProcessors(google::cloud::documentai::v1::ListProcessorsRequest, Options)

Lists all processors which belong to this project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::ListProcessorsRequest` 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.documentai.v1.ListProcessorsRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L678). 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::documentai::v1::Processor >` | 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.documentai.v1.Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209), 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/). |

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

Gets a processor detail.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::documentai::v1::Processor >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209)) 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. |

### GetProcessor(google::cloud::documentai::v1::GetProcessorRequest const \&, Options)

Gets a processor detail.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::GetProcessorRequest 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.documentai.v1.GetProcessorRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L725). 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::documentai::v1::Processor >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209)) 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. |

### TrainProcessorVersion(std::string const \&, google::cloud::documentai::v1::ProcessorVersion const \&, Options)

Trains a new processor version.
Operation metadata is returned as [TrainProcessorVersionMetadata](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1076).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The parent (project, location and processor) to create the new version for. Format: `projects/{project}/locations/{location}/processors/{processor}`. |
| `processor_version` | `google::cloud::documentai::v1::ProcessorVersion const &` Required. The processor version to be created. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::documentai::v1::TrainProcessorVersionResponse > >` | 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.documentai.v1.TrainProcessorVersionResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1070) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### TrainProcessorVersion(NoAwaitTag, std::string const \&, google::cloud::documentai::v1::ProcessorVersion const \&, Options)

Trains a new processor version.
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 &` |
| `processor_version` | `google::cloud::documentai::v1::ProcessorVersion const &` |
| `opts` | `Options` |

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

### TrainProcessorVersion(google::cloud::documentai::v1::TrainProcessorVersionRequest const \&, Options)

Trains a new processor version.
Operation metadata is returned as [TrainProcessorVersionMetadata](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1076).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::TrainProcessorVersionRequest 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.documentai.v1.TrainProcessorVersionRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L993). 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::documentai::v1::TrainProcessorVersionResponse > >` | 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.documentai.v1.TrainProcessorVersionResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1070) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### TrainProcessorVersion(NoAwaitTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const \&, Options)

Trains a new processor version.
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::documentai::v1::TrainProcessorVersionRequest const &` |
| `opts` | `Options` |

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

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

Trains a new processor version.
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::documentai::v1::TrainProcessorVersionResponse > >` |   |

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

Gets a processor version detail.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::documentai::v1::ProcessorVersion >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.ProcessorVersion](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L37)) 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. |

### GetProcessorVersion(google::cloud::documentai::v1::GetProcessorVersionRequest const \&, Options)

Gets a processor version detail.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::GetProcessorVersionRequest 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.documentai.v1.GetProcessorVersionRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L738). 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::documentai::v1::ProcessorVersion >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.ProcessorVersion](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L37)) 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. |

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

Lists all versions of a processor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The parent (project, location and processor) to list all versions. Format: `projects/{project}/locations/{location}/processors/{processor}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::documentai::v1::ProcessorVersion >` | 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.documentai.v1.ProcessorVersion](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L37), 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/). |

### ListProcessorVersions(google::cloud::documentai::v1::ListProcessorVersionsRequest, Options)

Lists all versions of a processor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::ListProcessorVersionsRequest` 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.documentai.v1.ListProcessorVersionsRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L749). 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::documentai::v1::ProcessorVersion >` | 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.documentai.v1.ProcessorVersion](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L37), 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/). |

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

Deletes the processor version, all artifacts under the processor version will be deleted.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::documentai::v1::DeleteProcessorVersionMetadata > >` | 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.documentai.v1.DeleteProcessorVersionMetadata](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L797) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

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

Deletes the processor version, all artifacts under the processor version will be deleted.
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 >` |   |

### DeleteProcessorVersion(google::cloud::documentai::v1::DeleteProcessorVersionRequest const \&, Options)

Deletes the processor version, all artifacts under the processor version will be deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::DeleteProcessorVersionRequest 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.documentai.v1.DeleteProcessorVersionRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L784). 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::documentai::v1::DeleteProcessorVersionMetadata > >` | 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.documentai.v1.DeleteProcessorVersionMetadata](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L797) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeleteProcessorVersion(NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const \&, Options)

Deletes the processor version, all artifacts under the processor version will be deleted.
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::documentai::v1::DeleteProcessorVersionRequest const &` |
| `opts` | `Options` |

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

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

Deletes the processor version, all artifacts under the processor version will be deleted.
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::documentai::v1::DeleteProcessorVersionMetadata > >` |   |

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

Deploys the processor version.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::documentai::v1::DeployProcessorVersionResponse > >` | 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.documentai.v1.DeployProcessorVersionResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L818) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

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

Deploys the processor version.
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 >` |   |

### DeployProcessorVersion(google::cloud::documentai::v1::DeployProcessorVersionRequest const \&, Options)

Deploys the processor version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::DeployProcessorVersionRequest 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.documentai.v1.DeployProcessorVersionRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L805). 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::documentai::v1::DeployProcessorVersionResponse > >` | 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.documentai.v1.DeployProcessorVersionResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L818) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeployProcessorVersion(NoAwaitTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const \&, Options)

Deploys the processor version.
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::documentai::v1::DeployProcessorVersionRequest const &` |
| `opts` | `Options` |

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

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

Deploys the processor version.
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::documentai::v1::DeployProcessorVersionResponse > >` |   |

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

Undeploys the processor version.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::documentai::v1::UndeployProcessorVersionResponse > >` | 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.documentai.v1.UndeployProcessorVersionResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L844) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

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

Undeploys the processor version.
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 >` |   |

### UndeployProcessorVersion(google::cloud::documentai::v1::UndeployProcessorVersionRequest const \&, Options)

Undeploys the processor version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::UndeployProcessorVersionRequest 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.documentai.v1.UndeployProcessorVersionRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L831). 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::documentai::v1::UndeployProcessorVersionResponse > >` | 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.documentai.v1.UndeployProcessorVersionResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L844) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### UndeployProcessorVersion(NoAwaitTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const \&, Options)

Undeploys the processor version.
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::documentai::v1::UndeployProcessorVersionRequest const &` |
| `opts` | `Options` |

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

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

Undeploys the processor version.
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::documentai::v1::UndeployProcessorVersionResponse > >` |   |

### CreateProcessor(std::string const \&, google::cloud::documentai::v1::Processor const \&, Options)

Creates a processor from the [ProcessorType](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor_type.proto#L32) provided.
The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The parent (project and location) under which to create the processor. Format: `projects/{project}/locations/{location}` |
| `processor` | `google::cloud::documentai::v1::Processor const &` Required. The processor to be created, requires [Processor.type](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L260) and [Processor.display_name](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L263) to be set. Also, the [Processor.kms_key_name](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L290) field must be set if the processor is under CMEK. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::documentai::v1::Processor >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209)) 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. |

### CreateProcessor(google::cloud::documentai::v1::CreateProcessorRequest const \&, Options)

Creates a processor from the [ProcessorType](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor_type.proto#L32) provided.
The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::CreateProcessorRequest 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.documentai.v1.CreateProcessorRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L859). 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::documentai::v1::Processor >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209)) 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. |

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

Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::documentai::v1::DeleteProcessorMetadata > >` | 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.documentai.v1.DeleteProcessorMetadata](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L894) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

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

Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.
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 >` |   |

### DeleteProcessor(google::cloud::documentai::v1::DeleteProcessorRequest const \&, Options)

Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::DeleteProcessorRequest 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.documentai.v1.DeleteProcessorRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L881). 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::documentai::v1::DeleteProcessorMetadata > >` | 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.documentai.v1.DeleteProcessorMetadata](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L894) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DeleteProcessor(NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorRequest const \&, Options)

Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.
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::documentai::v1::DeleteProcessorRequest const &` |
| `opts` | `Options` |

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

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

Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.
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::documentai::v1::DeleteProcessorMetadata > >` |   |

### EnableProcessor(google::cloud::documentai::v1::EnableProcessorRequest const \&, Options)

Enables a processor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::EnableProcessorRequest 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.documentai.v1.EnableProcessorRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L902). 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::documentai::v1::EnableProcessorResponse > >` | 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.documentai.v1.EnableProcessorResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L915) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### EnableProcessor(NoAwaitTag, google::cloud::documentai::v1::EnableProcessorRequest const \&, Options)

Enables a processor.
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::documentai::v1::EnableProcessorRequest const &` |
| `opts` | `Options` |

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

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

Enables a processor.
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::documentai::v1::EnableProcessorResponse > >` |   |

### DisableProcessor(google::cloud::documentai::v1::DisableProcessorRequest const \&, Options)

Disables a processor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::DisableProcessorRequest 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.documentai.v1.DisableProcessorRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L928). 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::documentai::v1::DisableProcessorResponse > >` | 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.documentai.v1.DisableProcessorResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L941) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### DisableProcessor(NoAwaitTag, google::cloud::documentai::v1::DisableProcessorRequest const \&, Options)

Disables a processor.
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::documentai::v1::DisableProcessorRequest const &` |
| `opts` | `Options` |

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

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

Disables a processor.
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::documentai::v1::DisableProcessorResponse > >` |   |

### SetDefaultProcessorVersion(google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const \&, Options)

Set the default (active) version of a [Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209) that will be used in [ProcessDocument](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L62) and [BatchProcessDocuments](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L76).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::SetDefaultProcessorVersionRequest 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.documentai.v1.SetDefaultProcessorVersionRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L954). 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::documentai::v1::SetDefaultProcessorVersionResponse > >` | 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.documentai.v1.SetDefaultProcessorVersionResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L980) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### SetDefaultProcessorVersion(NoAwaitTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const \&, Options)

Set the default (active) version of a [Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209) that will be used in [ProcessDocument](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L62) and [BatchProcessDocuments](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L76).
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::documentai::v1::SetDefaultProcessorVersionRequest const &` |
| `opts` | `Options` |

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

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

Set the default (active) version of a [Processor](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L209) that will be used in [ProcessDocument](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L62) and [BatchProcessDocuments](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L76).
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::documentai::v1::SetDefaultProcessorVersionResponse > >` |   |

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

Send a document for Human Review.
The input document should be processed by the specified processor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `human_review_config` | `std::string const &` Required. The resource name of the \[HumanReviewConfig\]\[google.cloud.documentai.v1.HumanReviewConfig\] that the document will be reviewed with. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::documentai::v1::ReviewDocumentResponse > >` | 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.documentai.v1.ReviewDocumentResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1150) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

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

Send a document for Human Review.
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` |
| `human_review_config` | `std::string const &` |
| `opts` | `Options` |

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

### ReviewDocument(google::cloud::documentai::v1::ReviewDocumentRequest const \&, Options)

Send a document for Human Review.
The input document should be processed by the specified processor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::ReviewDocumentRequest 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.documentai.v1.ReviewDocumentRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1110). 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::documentai::v1::ReviewDocumentResponse > >` | 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.documentai.v1.ReviewDocumentResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1150) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ReviewDocument(NoAwaitTag, google::cloud::documentai::v1::ReviewDocumentRequest const \&, Options)

Send a document for Human Review.
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::documentai::v1::ReviewDocumentRequest const &` |
| `opts` | `Options` |

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

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

Send a document for Human Review.
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::documentai::v1::ReviewDocumentResponse > >` |   |

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

Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `processor_version` | `std::string const &` Required. The resource name of the [ProcessorVersion](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L37) to evaluate. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `future< StatusOr< google::cloud::documentai::v1::EvaluateProcessorVersionResponse > >` | 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.documentai.v1.EvaluateProcessorVersionResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1217) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

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

Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.
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` |
| `processor_version` | `std::string const &` |
| `opts` | `Options` |

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

### EvaluateProcessorVersion(google::cloud::documentai::v1::EvaluateProcessorVersionRequest const \&, Options)

Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::EvaluateProcessorVersionRequest 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.documentai.v1.EvaluateProcessorVersionRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1188). 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::documentai::v1::EvaluateProcessorVersionResponse > >` | 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.documentai.v1.EvaluateProcessorVersionResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1217) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### EvaluateProcessorVersion(NoAwaitTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const \&, Options)

Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.
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::documentai::v1::EvaluateProcessorVersionRequest const &` |
| `opts` | `Options` |

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

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

Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.
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::documentai::v1::EvaluateProcessorVersionResponse > >` |   |

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

Retrieves a specific evaluation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The resource name of the [Evaluation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/evaluation.proto#L49) to get. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::documentai::v1::Evaluation >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.Evaluation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/evaluation.proto#L49)) 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. |

### GetEvaluation(google::cloud::documentai::v1::GetEvaluationRequest const \&, Options)

Retrieves a specific evaluation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::GetEvaluationRequest 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.documentai.v1.GetEvaluationRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1223). 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::documentai::v1::Evaluation >` | the result of the RPC. The response message type ([google.cloud.documentai.v1.Evaluation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/evaluation.proto#L49)) 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. |

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

Retrieves a set of evaluations for a given processor version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The resource name of the [ProcessorVersion](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/processor.proto#L37) to list evaluations for. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::documentai::v1::Evaluation >` | 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.documentai.v1.Evaluation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/evaluation.proto#L49), 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/). |

### ListEvaluations(google::cloud::documentai::v1::ListEvaluationsRequest, Options)

Retrieves a set of evaluations for a given processor version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::documentai::v1::ListEvaluationsRequest` 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.documentai.v1.ListEvaluationsRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/document_processor_service.proto#L1237). 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::documentai::v1::Evaluation >` | 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.documentai.v1.Evaluation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/documentai/v1/evaluation.proto#L49), 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/). |

### ListLocations(google::cloud::location::ListLocationsRequest, Options)

Lists information about the supported locations for this service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::location::ListLocationsRequest` 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.location.ListLocationsRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/location/locations.proto#L58). 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::location::Location >` | 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.location.Location](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/location/locations.proto#L88), 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/). |

### GetLocation(google::cloud::location::GetLocationRequest const \&, Options)

Gets information about a location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::location::GetLocationRequest 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.location.GetLocationRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/location/locations.proto#L82). 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::location::Location >` | the result of the RPC. The response message type ([google.cloud.location.Location](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/location/locations.proto#L88)) 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. |

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

Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns `UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` The name of the operation's parent resource. |
| `filter` | `std::string const &` The standard list filter. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::longrunning::Operation >` | 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.longrunning.Operation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L121), 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/). |

### ListOperations(google::longrunning::ListOperationsRequest, Options)

Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns `UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::ListOperationsRequest` 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.longrunning.ListOperationsRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L167). 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::longrunning::Operation >` | 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.longrunning.Operation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L121), 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/). |

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

Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` | the result of the RPC. The response message type ([google.longrunning.Operation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L121)) 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. |

### GetOperation(google::longrunning::GetOperationRequest const \&, Options)

Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::GetOperationRequest 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.longrunning.GetOperationRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L160). 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::longrunning::Operation >` | the result of the RPC. The response message type ([google.longrunning.Operation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L121)) 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. |

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

Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use [Operations.GetOperation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L70) or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L144) value with a [google.rpc.Status.code](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/rpc/status.proto#L37) of `1`, corresponding to `Code.CANCELLED`.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### CancelOperation(google::longrunning::CancelOperationRequest const \&, Options)

Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use [Operations.GetOperation](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L70) or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L144) value with a [google.rpc.Status.code](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/rpc/status.proto#L37) of `1`, corresponding to `Code.CANCELLED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::CancelOperationRequest 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.longrunning.CancelOperationRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/longrunning/operations.proto#L212). 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** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |