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 This service lets you manage document.

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

### DocumentServiceClient(DocumentServiceClient const \&)

Copy and move support

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

### DocumentServiceClient(DocumentServiceClient \&\&)

Copy and move support

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

### DocumentServiceClient(std::shared_ptr\< DocumentServiceConnection \>, Options)

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

## Operators

### operator=(DocumentServiceClient const \&)

Copy and move support

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

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

### operator=(DocumentServiceClient \&\&)

Copy and move support

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

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

## Functions

### CreateDocument(std::string const \&, google::cloud::contentwarehouse::v1::Document const \&, Options)

Creates a document.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `std::string const &` Required. The parent name. Format: projects/{project_number}/locations/{location}. |
| `document` | `google::cloud::contentwarehouse::v1::Document const &` Required. The document to create. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

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

### CreateDocument(google::cloud::contentwarehouse::v1::CreateDocumentRequest const \&, Options)

Creates a document.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::contentwarehouse::v1::CreateDocumentRequest 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.contentwarehouse.v1.CreateDocumentRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L46). 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::contentwarehouse::v1::CreateDocumentResponse >` | the result of the RPC. The response message type ([google.cloud.contentwarehouse.v1.CreateDocumentResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service.proto#L144)) 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. |

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

Gets a document.
Returns NOT_FOUND if the document does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The name of the document to retrieve. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

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

### GetDocument(google::cloud::contentwarehouse::v1::GetDocumentRequest const \&, Options)

Gets a document.
Returns NOT_FOUND if the document does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::contentwarehouse::v1::GetDocumentRequest 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.contentwarehouse.v1.GetDocumentRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L84). 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::contentwarehouse::v1::Document >` | the result of the RPC. The response message type ([google.cloud.contentwarehouse.v1.Document](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document.proto#L34)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### UpdateDocument(std::string const \&, google::cloud::contentwarehouse::v1::Document const \&, Options)

Updates a document.
Returns INVALID_ARGUMENT if the name of the document is non-empty and does not equal the existing name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The name of the document to update. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. |
| `document` | `google::cloud::contentwarehouse::v1::Document const &` Required. The document to update. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

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

### UpdateDocument(google::cloud::contentwarehouse::v1::UpdateDocumentRequest const \&, Options)

Updates a document.
Returns INVALID_ARGUMENT if the name of the document is non-empty and does not equal the existing name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::contentwarehouse::v1::UpdateDocumentRequest 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.contentwarehouse.v1.UpdateDocumentRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L102). 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::contentwarehouse::v1::UpdateDocumentResponse >` | the result of the RPC. The response message type ([google.cloud.contentwarehouse.v1.UpdateDocumentResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service.proto#L163)) 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. |

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

Deletes a document.
Returns NOT_FOUND if the document does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The name of the document to delete. Format: projects/{project_number}/locations/{location}/documents/{document_id} or projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. |
| `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. |

### DeleteDocument(google::cloud::contentwarehouse::v1::DeleteDocumentRequest const \&, Options)

Deletes a document.
Returns NOT_FOUND if the document does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::contentwarehouse::v1::DeleteDocumentRequest 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.contentwarehouse.v1.DeleteDocumentRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L133). 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. |

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

Searches for documents using provided [SearchDocumentsRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L152).
This call only returns documents that the caller has permission to search against.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::contentwarehouse::v1::SearchDocumentsResponse::MatchingDocument >` | 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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service.proto#L203), 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/). |

### SearchDocuments(google::cloud::contentwarehouse::v1::SearchDocumentsRequest, Options)

Searches for documents using provided [SearchDocumentsRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L152).
This call only returns documents that the caller has permission to search against.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::contentwarehouse::v1::SearchDocumentsRequest` 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.contentwarehouse.v1.SearchDocumentsRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L152). 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::contentwarehouse::v1::SearchDocumentsResponse::MatchingDocument >` | 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.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service.proto#L203), 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/). |

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

Lock the document so the document cannot be updated by other users.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` Required. The name of the document to lock. Format: projects/{project_number}/locations/{location}/documents/{document}. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

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

### LockDocument(google::cloud::contentwarehouse::v1::LockDocumentRequest const \&, Options)

Lock the document so the document cannot be updated by other users.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::contentwarehouse::v1::LockDocumentRequest 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.contentwarehouse.v1.LockDocumentRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L280). 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::contentwarehouse::v1::Document >` | the result of the RPC. The response message type ([google.cloud.contentwarehouse.v1.Document](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document.proto#L34)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

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

Gets the access control policy for a resource.
Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `std::string const &` Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

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

### FetchAcl(google::cloud::contentwarehouse::v1::FetchAclRequest const \&, Options)

Gets the access control policy for a resource.
Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::contentwarehouse::v1::FetchAclRequest 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.contentwarehouse.v1.FetchAclRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L299). 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::contentwarehouse::v1::FetchAclResponse >` | the result of the RPC. The response message type ([google.cloud.contentwarehouse.v1.FetchAclResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service.proto#L262)) 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. |

### SetAcl(std::string const \&, google::iam::v1::Policy const \&, Options)

      Sets the access control policy for a resource. Replaces any existing
      policy.

      @param resource  Required. REQUIRED: The resource for which the policy is being requested.
       Format for document:
       projects/{project_number}/locations/{location}/documents/{document_id}.
       Format for collection:
       projects/{project_number}/locations/{location}/collections/{collection_id}.
       Format for project: projects/{project_number}.
      @param policy  Required. REQUIRED: The complete policy to be applied to the `resource`.
       The size of the policy is limited to a few 10s of KB. This refers to an
       Identity and Access (IAM) policy, which specifies access controls for the
       Document.
       @n
       You can set ACL with condition for projects only.
       @n
       Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where
       the left of the operator is `DocumentSchemaId` or property name and the
       right of the operator is a number or a quoted string. You must escape
       backslash (\\) and quote (\") characters.
       @n
       Boolean expressions (AND/OR) are supported up to 3 levels of nesting (for
       example, "((A AND B AND C) OR D) AND E"), a maximum of 10 comparisons are
       allowed in the expression. The expression must be < 6000 bytes in length.
       @n
       Sample condition:
           `"DocumentSchemaId = \"some schema id\" OR SchemaId.floatPropertyName

    ``` / >= 10"` @param opts Optional. Override the class-level options, such as retry and backoff policies. @return the result of the RPC. The response message type ([google.cloud.contentwarehouse.v1.SetAclResponse]) is mapped to a C++ class using the [Protobuf mapping rules]. If the request fails, the [`StatusOr`] contains the error details. 

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `std::string const &` |
| `policy` | `google::iam::v1::Policy const &` |
| `opts` | `Options` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::contentwarehouse::v1::SetAclResponse >` |   |

### SetAcl(google::cloud::contentwarehouse::v1::SetAclRequest const \&, Options)

Sets the access control policy for a resource.
Replaces any existing policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::contentwarehouse::v1::SetAclRequest 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.contentwarehouse.v1.SetAclRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service_request.proto#L318). 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::contentwarehouse::v1::SetAclResponse >` | the result of the RPC. The response message type ([google.cloud.contentwarehouse.v1.SetAclResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/contentwarehouse/v1/document_service.proto#L272)) 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(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. |