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 assuredworkloads_v1::AssuredWorkloadsServiceClient:
// 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::assuredworkloads_v1::AssuredWorkloadsServiceClient(
google::cloud::assuredworkloads_v1::
MakeAssuredWorkloadsServiceConnection(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-05 UTC."],[[["This page provides a comprehensive list of historical versions for the Assured Workloads C++ client library, with the latest version being 2.37.0-rc."],["The current version of the library documented here is 2.36.0, though newer and older versions are accessible."],["You can find documentation for versions ranging from 2.11.0 to 2.37.0-rc, with each linking to the respective version's documentation for the AssuredWorkloads-Override-Endpoint."],["The page explains how to override the default endpoint for the client library using `EndpointOption`, which is useful for scenarios like Private Google Access."],["An example on how to override the default endpoint for `assuredworkloads_v1::AssuredWorkloadsServiceClient` is provided, demonstrating the use of `google::cloud::Options` and `google::cloud::EndpointOption`."]]],[]]