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"]],[["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-05 UTC."],[[["The latest release candidate version is 2.37.0-rc, and this page includes version documentation from 2.37.0-rc down to 2.11.0 for the pubsub C++ library."],["The primary function documented is the ability to override the default endpoint used by the pubsub client library, using `google::cloud::EndpointOption` during client initialization."],["Examples of endpoint overrides are provided for several `*Client` classes, including `Subscriber`, `BlockingPublisher`, `TopicAdminClient`, `SubscriptionAdminClient`, `SchemaServiceClient`, and `Publisher`."],["The example code snippet demonstrates how to override the default endpoint for the `google::cloud::pubsub::Publisher` class, redirecting it to \"private.googleapis.com\"."]]],[]]