Google Cloud Bigtable C++ Client 2.11.0
A C++ Client Library for Google Cloud Bigtable
No Matches
Override the default endpoint

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::bigtable::Table:

namespace bigtable = ::google::cloud::bigtable;
[](std::string const& project_id, std::string const& instance_id,
std::string const& table_id) {
auto resource = bigtable::TableResource(project_id, instance_id, table_id);
return bigtable::Table(bigtable::MakeDataConnection(options), resource);
Options & set(ValueTypeT< T > v)

Changing the default endpoint for other *Client classes is very similar, as shown in these examples: