15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_CLUSTER_CONFIG_H
16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_CLUSTER_CONFIG_H
18 #include "google/cloud/bigtable/version.h"
19 #include <google/bigtable/admin/v2/bigtable_instance_admin.pb.h>
30 using StorageType = ::
google::bigtable::admin::v2::StorageType;
33 google::bigtable::admin::v2::STORAGE_TYPE_UNSPECIFIED;
35 constexpr static StorageType
SSD =
google::bigtable::admin::v2::SSD;
37 constexpr static StorageType
HDD =
google::bigtable::admin::v2::HDD;
41 : proto_(std::move(cluster)) {}
44 StorageType storage) {
45 proto_.set_location(std::move(location));
46 proto_.set_serve_nodes(serve_nodes);
47 proto_.set_default_storage_type(storage);
51 google::bigtable::admin::v2::Cluster::EncryptionConfig encryption) & {
52 *proto_.mutable_encryption_config() = std::move(encryption);
56 google::bigtable::admin::v2::Cluster::EncryptionConfig encryption) && {
60 std::string
const&
GetName() {
return proto_.name(); }
67 return std::move(proto_);
71 google::bigtable::admin::v2::Cluster proto_;