# How to Override the Default Universe Domain

3.7.0-rc 3.6.0 (latest) 3.5.0 3.4.0 3.3.0 In some cases, you may need to override the default universe domain used by the client library. Use `AddUniverseDomainOption` when initializing the client library to change this default.

For example, this will override the default universe domain for `visionai_v1::AppPlatformClient`:

      google::cloud::Options options;

      // AddUniverseDomainOption interrogates the UnifiedCredentialsOption, if set,
      // in the provided Options for the Universe Domain associated with the
      // credentials and adds it to the set of Options.
      // If no UnifiedCredentialsOption is set, GoogleDefaultCredentials are used.
      auto ud_options = google::cloud::AddUniverseDomainOption(std::move(options));

      if (!ud_options.ok()) throw std::move(ud_options).status();
      auto ud_client = google::cloud::visionai_v1::AppPlatformClient(
          google::cloud::visionai_v1::MakeAppPlatformConnection(*ud_options));

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

- [`visionai_v1::AppPlatformClient`](https://docs.cloud.google.com/cpp/docs/reference/visionai/latest/visionai_v1_1_1AppPlatformClient-universe-domain-snippet)
- [`visionai_v1::HealthCheckServiceClient`](https://docs.cloud.google.com/cpp/docs/reference/visionai/latest/visionai_v1_1_1HealthCheckServiceClient-universe-domain-snippet)
- [`visionai_v1::LiveVideoAnalyticsClient`](https://docs.cloud.google.com/cpp/docs/reference/visionai/latest/visionai_v1_1_1LiveVideoAnalyticsClient-universe-domain-snippet)
- [`visionai_v1::StreamingServiceClient`](https://docs.cloud.google.com/cpp/docs/reference/visionai/latest/visionai_v1_1_1StreamingServiceClient-universe-domain-snippet)
- [`visionai_v1::StreamsServiceClient`](https://docs.cloud.google.com/cpp/docs/reference/visionai/latest/visionai_v1_1_1StreamsServiceClient-universe-domain-snippet)
- [`visionai_v1::WarehouseClient`](https://docs.cloud.google.com/cpp/docs/reference/visionai/latest/visionai_v1_1_1WarehouseClient-universe-domain-snippet)