// 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"]],[["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-08-07 UTC."],[[["\u003cp\u003eThe code snippet demonstrates how to override the default endpoint configuration for the \u003ccode\u003egenerativelanguage_v1::ModelServiceClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes \u003ccode\u003egoogle::cloud::Options\u003c/code\u003e to set a custom endpoint, in this example, \u003ccode\u003e"private.googleapis.com"\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe overridden endpoint configuration is similar to the one used for Private Google Access.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eModelServiceClient\u003c/code\u003e instance is created using the custom endpoint configuration via \u003ccode\u003eMakeModelServiceConnection\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]