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 securesourcemanager_v1::SecureSourceManagerClient:
// 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::securesourcemanager_v1::SecureSourceManagerClient(
google::cloud::securesourcemanager_v1::
MakeSecureSourceManagerConnection(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 release candidate version is 2.37.0-rc, and there are a multitude of previous versions available, ranging from 2.36.0 down to 2.18.0."],["This documentation pertains to the `securesourcemanager` feature, specifically addressing how to override its default endpoint within the C++ client library."],["The default endpoint for the client library can be overridden using the `EndpointOption` during initialization."],["Overriding the default endpoint is done by setting the `EndpointOption` within `google::cloud::Options`, as demonstrated in the provided code example."],["The example code illustrates how to configure the endpoint to `\"private.googleapis.com\"`, which is a common practice when using Private Google Access."]]],[]]