3.8.0-rc 3.7.0 (latest) 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

## Classes

### [DirectAccessServiceClient](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceClient)

A service for allocating Android devices and interacting with the live-allocated devices.

### [DirectAccessServiceConnection](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnection)

The [`DirectAccessServiceConnection`](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnection) object for [`DirectAccessServiceClient`](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceClient).

### [DirectAccessServiceConnectionIdempotencyPolicy](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnectionIdempotencyPolicy)

### [DirectAccessServiceLimitedErrorCountRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceLimitedErrorCountRetryPolicy)

A retry policy for [`DirectAccessServiceConnection`](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnection) based on counting errors.

### [DirectAccessServiceLimitedTimeRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceLimitedTimeRetryPolicy)

A retry policy for [`DirectAccessServiceConnection`](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnection) based on elapsed time.

### [DirectAccessServiceRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceRetryPolicy)

The retry policy for [`DirectAccessServiceConnection`](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnection).

## Structs

### [DirectAccessServiceBackoffPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/structgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceBackoffPolicyOption)

Use with [`google::cloud::Options`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the backoff policy.

### [DirectAccessServiceConnectionIdempotencyPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/structgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnectionIdempotencyPolicyOption)

Use with [`google::cloud::Options`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure which operations are retried.

### [DirectAccessServiceRetryPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/structgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceRetryPolicyOption)

Use with [`google::cloud::Options`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the retry policy.

## Functions

### MakeDirectAccessServiceConnection(Options)

A factory function to construct an object of type [`DirectAccessServiceConnection`](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnection).
The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [DirectAccessServiceClient](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceClient).

The optional `options` argument may be used to configure aspects of the returned [`DirectAccessServiceConnection`](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnection). Expected options are any of the types in the following option lists:

- [`google::cloud::CommonOptionList`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)
- [`google::cloud::GrpcOptionList`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)
- [`google::cloud::UnifiedCredentialsOptionList`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)
- [`google::cloud::devicestreaming_v1::DirectAccessServicePolicyOptionList`](about:invalid#zCSafez)

> [!NOTE]
> **Note:** Unexpected options will be ignored. To log unexpected options instead, set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `Options` (optional) Configure the [`DirectAccessServiceConnection`](https://docs.cloud.google.com/cpp/docs/reference/devicestreaming/latest/classgoogle_1_1cloud_1_1devicestreaming__v1_1_1DirectAccessServiceConnection) created by this function. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::shared_ptr< DirectAccessServiceConnection >` |   |

### MakeDefaultDirectAccessServiceConnectionIdempotencyPolicy()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::unique_ptr< DirectAccessServiceConnectionIdempotencyPolicy >` |   |