// 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::generativelanguage_v1::ModelServiceClient(
google::cloud::generativelanguage_v1::MakeModelServiceConnection(
options));
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["The code snippet demonstrates how to override the default endpoint configuration for the `generativelanguage_v1::ModelServiceClient`."],["It utilizes `google::cloud::Options` to set a custom endpoint, in this example, `\"private.googleapis.com\"`."],["The overridden endpoint configuration is similar to the one used for Private Google Access."],["A `ModelServiceClient` instance is created using the custom endpoint configuration via `MakeModelServiceConnection`."]]],[]]