Google Cloud Bigtable C++ Client  0.11.0
A C++ Client Library for Google Cloud Bigtable
Public Member Functions | Static Public Member Functions | List of all members
google::cloud::bigtable::v0::MetadataUpdatePolicy Class Reference

MetadataUpdatePolicy holds supported metadata and setup ClientContext. More...

#include <google/cloud/bigtable/metadata_update_policy.h>

Public Member Functions

 MetadataUpdatePolicy (std::string const &resource_name, MetadataParamTypes const &metadata_param_type)
 Constructor with default metadata pair. More...
 
 MetadataUpdatePolicy (MetadataUpdatePolicy &&) noexcept=default
 
 MetadataUpdatePolicy (MetadataUpdatePolicy const &)=default
 
MetadataUpdatePolicyoperator= (MetadataUpdatePolicy const &)=default
 
void Setup (grpc::ClientContext &context) const
 
std::string const & value () const
 
std::string const & api_client_header () const
 

Static Public Member Functions

static MetadataUpdatePolicy FromTableId (std::string const &resource_name, MetadataParamTypes const &metadata_param_type, std::string const &table_id)
 Constructor with default metadata pair. More...
 
static MetadataUpdatePolicy FromClusterId (std::string const &resource_name, MetadataParamTypes const &metadata_param_type, std::string const &cluster_id)
 Constructor with default metadata pair. More...
 

Detailed Description

MetadataUpdatePolicy holds supported metadata and setup ClientContext.

Definition at line 65 of file metadata_update_policy.h.

Constructor & Destructor Documentation

◆ MetadataUpdatePolicy() [1/3]

google::cloud::bigtable::v0::MetadataUpdatePolicy::MetadataUpdatePolicy ( std::string const &  resource_name,
MetadataParamTypes const &  metadata_param_type 
)

Constructor with default metadata pair.

Parameters
resource_namehierarchical name of resource, including project id, instance id and/or table_id.
metadata_param_typetype to decide prefix for the value of x-goog-request-params

Definition at line 34 of file metadata_update_policy.cc.

◆ MetadataUpdatePolicy() [2/3]

google::cloud::bigtable::v0::MetadataUpdatePolicy::MetadataUpdatePolicy ( MetadataUpdatePolicy &&  )
defaultnoexcept

◆ MetadataUpdatePolicy() [3/3]

google::cloud::bigtable::v0::MetadataUpdatePolicy::MetadataUpdatePolicy ( MetadataUpdatePolicy const &  )
default

Member Function Documentation

◆ api_client_header()

std::string const& google::cloud::bigtable::v0::MetadataUpdatePolicy::api_client_header ( ) const
inline

Definition at line 115 of file metadata_update_policy.h.

◆ FromClusterId()

MetadataUpdatePolicy google::cloud::bigtable::v0::MetadataUpdatePolicy::FromClusterId ( std::string const &  resource_name,
MetadataParamTypes const &  metadata_param_type,
std::string const &  cluster_id 
)
static

Constructor with default metadata pair.

Parameters
resource_namehierarchical name of resource, including project id, instance id and/or table_id.
metadata_param_typetype to decide prefix for the value of x-goog-request-params.
cluster_idcluster_id of the cluster.

Definition at line 56 of file metadata_update_policy.cc.

◆ FromTableId()

MetadataUpdatePolicy google::cloud::bigtable::v0::MetadataUpdatePolicy::FromTableId ( std::string const &  resource_name,
MetadataParamTypes const &  metadata_param_type,
std::string const &  table_id 
)
static

Constructor with default metadata pair.

Parameters
resource_namehierarchical name of resource, including project id, instance id and/or table_id.
metadata_param_typetype to decide prefix for the value of x-goog-request-params.
table_idtable_id used in RPC call.

Definition at line 47 of file metadata_update_policy.cc.

◆ operator=()

MetadataUpdatePolicy& google::cloud::bigtable::v0::MetadataUpdatePolicy::operator= ( MetadataUpdatePolicy const &  )
default

◆ Setup()

void google::cloud::bigtable::v0::MetadataUpdatePolicy::Setup ( grpc::ClientContext &  context) const

Definition at line 65 of file metadata_update_policy.cc.

◆ value()

std::string const& google::cloud::bigtable::v0::MetadataUpdatePolicy::value ( ) const
inline

Definition at line 114 of file metadata_update_policy.h.