In some cases, you may need to override the default endpoint used by the client library. Use the google::cloud::EndpointOption when initializing the client library to change this default. For example, this will override the default endpoint for google::cloud::pubsub::Publisher:
[[["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-08-14 UTC."],[[["\u003cp\u003eThe webpage provides documentation and examples for various versions of the Pub/Sub C++ client library, ranging from version 2.11.0 up to the latest release candidate 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eUsers can access specific documentation for each version, including example snippets, by clicking on the corresponding version link, such as those for version 2.36.0, 2.35.0, and so on.\u003c/p\u003e\n"],["\u003cp\u003eThe content shows how to override the default endpoint used by the client library by using the \u003ccode\u003egoogle::cloud::EndpointOption\u003c/code\u003e when initializing, demonstrating this with an example using \u003ccode\u003egoogle::cloud::pubsub::Publisher\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eExamples are given on how to change the default endpoint for a variety of \u003ccode\u003e*Client\u003c/code\u003e classes such as \u003ccode\u003eSubscriber\u003c/code\u003e, \u003ccode\u003eBlockingPublisher\u003c/code\u003e, \u003ccode\u003eTopicAdminClient\u003c/code\u003e, \u003ccode\u003eSubscriptionAdminClient\u003c/code\u003e, \u003ccode\u003eSchemaServiceClient\u003c/code\u003e, and \u003ccode\u003ePublisher\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]