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 page provides documentation for overriding the default endpoint in the client library, using the `EndpointOption` when initializing the client."],["The latest version documented is 2.37.0-rc, and a comprehensive list of past versions from 2.11.0 to 2.36.0, along with their respective endpoints, are available."],["An example is provided demonstrating how to override the default endpoint for `monitoring_dashboard_v1::DashboardsServiceClient`, using a configuration commonly used with Private Google Access."],["Links are available for users to find similar endpoint override examples for other `*Client` classes, such as `monitoring_metricsscope_v1::MetricsScopesClient`, and `monitoring_v3::AlertPolicyServiceClient` among others."],["The documentation specifically covers the C++ client library for use with Google Cloud services, focusing on monitoring-related functionalities."]]],[]]