15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_TABLE_RESOURCE_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_TABLE_RESOURCE_H
18#include "google/cloud/bigtable/instance_resource.h"
19#include "google/cloud/bigtable/version.h"
20#include "google/cloud/status_or.h"
27GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
30
31
32
33
34
35
36
37
38
39
40
41
42
43
47
48
49
53
54
55
56
57
58
59 TableResource(std::string project_id, std::string instance_id,
60 std::string table_id);
66 std::string
const&
table_id()
const {
return table_id_; }
69
70
71
81 friend std::ostream& operator<<(std::ostream&,
TableResource const&);
85 std::string table_id_;
89
90
91
94GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
This class identifies a Cloud Bigtable Instance.
Definition: instance_resource.h:45
This class identifies a Cloud Bigtable Table.
Definition: table_resource.h:44
friend bool operator==(TableResource const &a, TableResource const &b)
TableResource(std::string project_id, std::string instance_id, std::string table_id)
Constructs a TableResource object identified by the given IDs.
std::string const & table_id() const
Returns the Table ID.
Definition: table_resource.h:66
std::string FullName() const
Returns the fully qualified table name as a string of the form: "projects/<project-id>/instances/<ins...
friend bool operator!=(TableResource const &a, TableResource const &b)
TableResource(InstanceResource instance, std::string table_id)
Constructs a TableResource object identified by the given instance and table_id.
InstanceResource const & instance() const
Returns the InstanceResource containing this table.
Definition: table_resource.h:63
Contains all the Cloud Bigtable C++ client APIs.
Definition: admin_client.h:28
StatusOr< TableResource > MakeTableResource(std::string const &full_name)
Constructs a TableResource from the given full_name.