In some cases, you may need to override the default endpoint used by the client library. Use theEndpointOptionwhen initializing the client library to change this default.
For example, this will override the default endpoint foreventarc_publishing_v1::PublisherClient:
// 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::eventarc_publishing_v1::PublisherClient(
google::cloud::eventarc_publishing_v1::MakePublisherConnection(options));
Follow these links to find examples for other*Clientclasses:
[[["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-09-04 UTC."],[[["\u003cp\u003eThe latest available version is 2.37.0-rc, with links provided for access to the documentation for it and the previous versions.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage provides documentation for multiple versions of the client library, spanning from version 2.11.0 up to 2.37.0-rc, allowing you to access specific version documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe content details how to override the default endpoint of the client library using the \u003ccode\u003eEndpointOption\u003c/code\u003e, which is essential for specific network configurations like Private Google Access.\u003c/p\u003e\n"],["\u003cp\u003eThere are code snippets and examples available for overriding the default endpoint for \u003ccode\u003eeventarc_publishing_v1::PublisherClient\u003c/code\u003e and \u003ccode\u003eeventarc_v1::EventarcClient\u003c/code\u003e classes, with links to the related documentation.\u003c/p\u003e\n"]]],[],null,[]]