The following options are typically configured using the `Settings.newBuilder()`
method any client.

| Setting Method | Description |
|---|---|
| `setCredentialsProvider` | Provides the credentials (Service Account, API Key, etc.) for authentication. |
| `setEndpoint` | The address of the API remote host. Used for Regional Endpoints (e.g., `us-central1-pubsub.googleapis.com:443`) or Private Service Connect. |
| `setTransportChannelProvider` | Specifies the transport type (gRPC or HTTP/REST) and manages connection pools. |
| `setHeaderProvider` | Allows adding custom headers to every request made by the client. |
| `setUniverseDomain` | Overrides the default service domain (defaults to `googleapis.com`) for Cloud Universe support. |
| `setQuotaProjectId` | Sets the project ID used for quota and billing, which may be different from the project being operated on. |

```java
// The project that will be billed and have its quota consumed for these API calls
String billingProjectId = "my-central-billing-project";
CloudTasksSettings cloudTasksSettings =
        .setQuotaProjectId(billingProjectId)
        .setTransportChannelProvider(transportChannelProvider)
        .build();
CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
```

## Customize the API Endpoint

See [Configure Cloud Client Libraries endpoints](https://docs.cloud.google.com/java/docs/endpoints.md.txt).

## Authentication Configuration

See [Authenticate your requests](https://docs.cloud.google.com/java/docs/authentication.md.txt).

## Logging

See the [Logging](https://docs.cloud.google.com/java/docs/troubleshooting.md.txt#logging) section in
[Troubleshooting](https://docs.cloud.google.com/java/docs/troubleshooting.md.txt).

## Configure a Proxy

See [Configure a proxy](https://docs.cloud.google.com/java/docs/configuring-a-proxy.md.txt).

## Configure Retries and Timeouts

See [Configure client-side retries](https://docs.cloud.google.com/java/docs/client-retries.md.txt).