How to Override the Default Endpoint
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 retail_v2::AnalyticsServiceClient
:
// 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::retail_v2::AnalyticsServiceClient(
google::cloud::retail_v2::MakeAnalyticsServiceConnection(options));
Follow these links to find examples for other *Client
classes:
retail_v2::AnalyticsServiceClient
retail_v2::CatalogServiceClient
retail_v2::CompletionServiceClient
retail_v2::ControlServiceClient
retail_v2::ModelServiceClient
retail_v2::PredictionServiceClient
retail_v2::ProductServiceClient
retail_v2::SearchServiceClient
retail_v2::ServingConfigServiceClient
retail_v2::UserEventServiceClient