bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
// 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-03-21 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`."]]],[]]