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 monitoring_dashboard_v1::DashboardsServiceClient:
// 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::monitoring_dashboard_v1::DashboardsServiceClient(
google::cloud::monitoring_dashboard_v1::MakeDashboardsServiceConnection(
options));
Follow these links to find examples for other *Client classes:
[[["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 a range of other stable versions are available, spanning from 2.11.0 to 2.36.0, for accessing the monitoring override endpoint documentation."],["The default endpoint used by the client library can be overridden when necessary, by using the `EndpointOption` during client library initialization."],["Overriding the default endpoint is exemplified using `monitoring_dashboard_v1::DashboardsServiceClient`, setting the endpoint to \"private.googleapis.com\" as a common practice with Private Google Access."],["Examples of overriding endpoints for various `*Client` classes are available, including `monitoring_metricsscope_v1::MetricsScopesClient`, `monitoring_v3::AlertPolicyServiceClient`, and others."],["The current version of this doc is showing as version 2.15.1, and there is a link to the specific override endpoint documentation."]]],[]]