In some cases, you may need to override the default endpoint used by the client library. Use the EndpointOption when initializing the client library to change this default.
For example, this will override the default endpoint for translate_v3::TranslationServiceClient:
// 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::translate_v3::TranslationServiceClient(
google::cloud::translate_v3::MakeTranslationServiceConnection(options));
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["The latest version available is 2.37.0-rc, which can be accessed via a provided link."],["The documentation covers a wide range of versions, from 2.11.0 up to the latest, allowing users to find information relevant to their specific version."],["Users can override the client library's default endpoint using the `EndpointOption` for custom configurations."],["Overriding the endpoint is a common practice, particularly with Private Google Access, as indicated in the provided example."],["The example code is specific to `translate_v3::TranslationServiceClient`, where the default is overridden with \"private.googleapis.com\" using `google::cloud::Options`."]]],[]]