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 discoveryengine_v1::CompletionServiceClient
:
// 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::discoveryengine_v1::CompletionServiceClient(
google::cloud::discoveryengine_v1::MakeCompletionServiceConnection(
options));
Follow these links to find examples for other *Client
classes:
discoveryengine_v1::CompletionServiceClient
discoveryengine_v1::ConversationalSearchServiceClient
discoveryengine_v1::DataStoreServiceClient
discoveryengine_v1::DocumentServiceClient
discoveryengine_v1::EngineServiceClient
discoveryengine_v1::RecommendationServiceClient
discoveryengine_v1::SchemaServiceClient
discoveryengine_v1::SearchServiceClient
discoveryengine_v1::SiteSearchEngineServiceClient
discoveryengine_v1::UserEventServiceClient