2.13.0-rc 2.12.0 (latest) 2.11.0

# How to Override the Default Endpoint

In some cases, you may need to override the default endpoint used by the client library. Use the [EndpointOption](https://cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1EndpointOption.html) when initializing the client library to change this default.

For example, this will override the default endpoint for `gameservices_v1::GameServerClustersServiceClient`:

```cpp
  // This configuration is common with Private Google Access:
  //     https://cloud.google.com/vpc/docs/private-google-access
  auto options = google::cloud::Options{}.set<google::cloud::EndpointOption>(
      "private.googleapis.com");
  auto client = google::cloud::gameservices_v1::GameServerClustersServiceClient(
      google::cloud::gameservices_v1::MakeGameServerClustersServiceConnection(
          options));
```

Follow these links to find examples for other `*Client` classes:

- [`gameservices_v1::GameServerClustersServiceClient`](https://docs.cloud.google.com/cpp/docs/reference/gameservices/latest/gameservices_v1_1_1GameServerClustersServiceClient-endpoint-snippet.md.txt)
- [`gameservices_v1::GameServerConfigsServiceClient`](https://docs.cloud.google.com/cpp/docs/reference/gameservices/latest/gameservices_v1_1_1GameServerConfigsServiceClient-endpoint-snippet.md.txt)
- [`gameservices_v1::GameServerDeploymentsServiceClient`](https://docs.cloud.google.com/cpp/docs/reference/gameservices/latest/gameservices_v1_1_1GameServerDeploymentsServiceClient-endpoint-snippet.md.txt)
- [`gameservices_v1::RealmsServiceClient`](https://docs.cloud.google.com/cpp/docs/reference/gameservices/latest/gameservices_v1_1_1RealmsServiceClient-endpoint-snippet.md.txt)