3.9.0-rc 3.8.0 (latest) 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0

      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::ces_v1::SessionServiceClient(
          google::cloud::ces_v1::MakeSessionServiceConnection(*ud_options));