Google Cloud Bigtable C++ Client  1.35.0
A C++ Client Library for Google Cloud Bigtable
version.h
Go to the documentation of this file.
1 // Copyright 2017 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_VERSION_H
16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_VERSION_H
17 
18 #include "google/cloud/bigtable/version_info.h"
19 #include "google/cloud/internal/attributes.h"
20 #include "google/cloud/version.h"
21 #include <string>
22 
23 #define GOOGLE_CLOUD_CPP_BIGTABLE_IAM_DEPRECATED(alternative)
24  GOOGLE_CLOUD_CPP_DEPRECATED(
25  "this function predates IAM conditions and does not work with policies "
26  "that include IAM conditions. Please use " alternative
27  " instead. The function will be removed on 2022-04-01 or shortly "
28  "after. See GitHub issue #5929 for more information.")
29 
30 // This preprocessor symbol is deprecated and should never be used anywhere. It
31 // exists solely for backward compatibility to avoid breaking anyone who may
32 // have been using it.
33 #define BIGTABLE_CLIENT_NS GOOGLE_CLOUD_CPP_NS
34 
35 namespace google {
36 namespace cloud {
37 /**
38  * Contains all the Cloud Bigtable C++ client APIs.
39  */
40 namespace bigtable {
42 /**
43  * The Cloud Bigtable C++ Client major version.
44  *
45  * @see https://semver.org/spec/v2.0.0.html for details.
46  */
47 int constexpr version_major() { return google::cloud::version_major(); }
48 
49 /**
50  * The Cloud Bigtable C++ Client minor version.
51  *
52  * @see https://semver.org/spec/v2.0.0.html for details.
53  */
54 int constexpr version_minor() { return google::cloud::version_minor(); }
55 
56 /**
57  * The Cloud Bigtable C++ Client patch version.
58  *
59  * @see https://semver.org/spec/v2.0.0.html for details.
60  */
61 int constexpr version_patch() { return google::cloud::version_patch(); }
62 
63 /// A single integer representing the Major/Minor/Patch version.
64 int constexpr version() { return google::cloud::version(); }
65 
66 /// The version as a string, in MAJOR.MINOR.PATCH+gitrev format.
67 std::string version_string();
68 
70 // TODO(#7463) - remove backwards compatibility namespaces
71 namespace v1 = GOOGLE_CLOUD_CPP_NS; // NOLINT(misc-unused-alias-decls)
72 } // namespace bigtable
73 } // namespace cloud
74 } // namespace google
75 
76 #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_VERSION_H