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

## Classes

### [ConfigServiceV2Client](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2Client)

Service for configuring sinks used to route log entries.

### [ConfigServiceV2Connection](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2Connection)

The [`ConfigServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2Connection) object for [`ConfigServiceV2Client`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2Client).

### [ConfigServiceV2ConnectionIdempotencyPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2ConnectionIdempotencyPolicy)

### [ConfigServiceV2LimitedErrorCountRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2LimitedErrorCountRetryPolicy)

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

### [ConfigServiceV2LimitedTimeRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2LimitedTimeRetryPolicy)

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

### [ConfigServiceV2RetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2RetryPolicy)

The retry policy for [`ConfigServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2Connection).

### [LoggingServiceV2Client](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2Client)

Service for ingesting and querying logs.

### [LoggingServiceV2Connection](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2Connection)

The [`LoggingServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2Connection) object for [`LoggingServiceV2Client`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2Client).

### [LoggingServiceV2ConnectionIdempotencyPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2ConnectionIdempotencyPolicy)

### [LoggingServiceV2LimitedErrorCountRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2LimitedErrorCountRetryPolicy)

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

### [LoggingServiceV2LimitedTimeRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2LimitedTimeRetryPolicy)

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

### [LoggingServiceV2RetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2RetryPolicy)

The retry policy for [`LoggingServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2Connection).

### [MetricsServiceV2Client](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2Client)

Service for configuring logs-based metrics.

### [MetricsServiceV2Connection](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2Connection)

The [`MetricsServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2Connection) object for [`MetricsServiceV2Client`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2Client).

### [MetricsServiceV2ConnectionIdempotencyPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2ConnectionIdempotencyPolicy)

### [MetricsServiceV2LimitedErrorCountRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2LimitedErrorCountRetryPolicy)

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

### [MetricsServiceV2LimitedTimeRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2LimitedTimeRetryPolicy)

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

### [MetricsServiceV2RetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2RetryPolicy)

The retry policy for [`MetricsServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2Connection).

## Structs

### [ConfigServiceV2BackoffPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2BackoffPolicyOption)

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.

### [ConfigServiceV2ConnectionIdempotencyPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2ConnectionIdempotencyPolicyOption)

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.

### [ConfigServiceV2PollingPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2PollingPolicyOption)

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

### [ConfigServiceV2RetryPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2RetryPolicyOption)

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.

### [LoggingServiceV2BackoffPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2BackoffPolicyOption)

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.

### [LoggingServiceV2ConnectionIdempotencyPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2ConnectionIdempotencyPolicyOption)

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.

### [LoggingServiceV2RetryPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2RetryPolicyOption)

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.

### [MetricsServiceV2BackoffPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2BackoffPolicyOption)

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.

### [MetricsServiceV2ConnectionIdempotencyPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2ConnectionIdempotencyPolicyOption)

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.

### [MetricsServiceV2RetryPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/structgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2RetryPolicyOption)

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

### MakeConfigServiceV2Connection(Options)

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

The optional `options` argument may be used to configure aspects of the returned [`ConfigServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2Connection). 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::logging_v2::ConfigServiceV2PolicyOptionList`](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 [`ConfigServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1ConfigServiceV2Connection) created by this function. |

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

### MakeDefaultConfigServiceV2ConnectionIdempotencyPolicy()

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

### MakeLoggingServiceV2Connection(Options)

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

The optional `options` argument may be used to configure aspects of the returned [`LoggingServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2Connection). 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::logging_v2::LoggingServiceV2PolicyOptionList`](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 [`LoggingServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1LoggingServiceV2Connection) created by this function. |

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

### MakeDefaultLoggingServiceV2ConnectionIdempotencyPolicy()

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

### MakeMetricsServiceV2Connection(Options)

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

The optional `options` argument may be used to configure aspects of the returned [`MetricsServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2Connection). 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::logging_v2::MetricsServiceV2PolicyOptionList`](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 [`MetricsServiceV2Connection`](https://docs.cloud.google.com/cpp/docs/reference/logging/latest/classgoogle_1_1cloud_1_1logging__v2_1_1MetricsServiceV2Connection) created by this function. |

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

### MakeDefaultMetricsServiceV2ConnectionIdempotencyPolicy()

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