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-21 UTC."],[[["This document provides access to the pubsub endpoint examples across multiple versions, ranging from the latest release candidate `2.37.0-rc` down to version `2.11.0`."],["The document explains how to override the default endpoint for the client library using `google::cloud::EndpointOption` during initialization, demonstrating this process with `google::cloud::pubsub::Publisher`."],["Examples for overriding endpoints are provided for various `Client` classes, including `Subscriber`, `BlockingPublisher`, `TopicAdminClient`, `SubscriptionAdminClient`, `SchemaServiceClient`, and `Publisher`."],["Each version number is linked to its respective pubsub endpoint example documentation, such as the latest being `2.37.0-rc` with its related link `/cpp/docs/reference/pubsub/latest/pubsub-endpoint-example`."]]],[]]