19 #include "google/cloud/spanner/admin/internal/database_admin_stub_factory.h"
20 #include "google/cloud/spanner/admin/internal/database_admin_auth_decorator.h"
21 #include "google/cloud/spanner/admin/internal/database_admin_logging_decorator.h"
22 #include "google/cloud/spanner/admin/internal/database_admin_metadata_decorator.h"
23 #include "google/cloud/spanner/admin/internal/database_admin_stub.h"
24 #include "google/cloud/common_options.h"
25 #include "google/cloud/grpc_options.h"
26 #include "google/cloud/internal/algorithm.h"
27 #include "google/cloud/log.h"
28 #include "google/cloud/options.h"
40 return google::
cloud::internal::CreateAuthenticationStrategy(
44 return google::
cloud::internal::CreateAuthenticationStrategy(
48 internal::MakeChannelArguments(options));
49 auto service_grpc_stub =
50 google::spanner::admin::database::v1::DatabaseAdmin::NewStub(channel);
53 std::move(service_grpc_stub),
54 google::longrunning::Operations::NewStub(channel));
56 if (auth->RequiresConfigureContext()) {
62 GCP_LOG(INFO) <<
"Enabled logging for gRPC calls";