19 #include "google/cloud/spanner/admin/internal/instance_admin_option_defaults.h"
20 #include "google/cloud/spanner/admin/instance_admin_connection.h"
21 #include "google/cloud/spanner/admin/instance_admin_options.h"
22 #include "google/cloud/common_options.h"
23 #include "google/cloud/connection_options.h"
24 #include "google/cloud/grpc_options.h"
25 #include "google/cloud/internal/getenv.h"
26 #include "google/cloud/internal/user_agent_prefix.h"
27 #include "google/cloud/options.h"
36 auto constexpr kBackoffScaling = 2.0;
41 auto env = internal::GetEnv(
"GOOGLE_CLOUD_CPP_SPANNER_DEFAULT_ENDPOINT");
43 env && !env->empty() ? *env :
"spanner.googleapis.com");
45 if (
auto emulator = internal::GetEnv(
"SPANNER_EMULATOR_HOST")) {
47 grpc::InsecureChannelCredentials()
);
59 products.insert(products.begin(),
google::
cloud::internal::UserAgentPrefix());
64 std::chrono::minutes(30))
69 ExponentialBackoffPolicy(std::chrono::seconds(1),
70 std::chrono::minutes(5), kBackoffScaling)