Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
Loading...
Searching...
No Matches
version.h
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/version.h"
20#include <string>
21
22#define GOOGLE_CLOUD_CPP_BIGTABLE_DATA_CLIENT_DEPRECATED(name)
23 GOOGLE_CLOUD_CPP_DEPRECATED(
24 "google::cloud::bigtable::DataClient::" name
25 " is deprecated, and will be removed on or shortly after 2023-05-01."
26 " See GitHub issue #8800 for more information.")
27
28#define GOOGLE_CLOUD_CPP_BIGTABLE_ROW_READER_CTOR_DEPRECATED()
29 GOOGLE_CLOUD_CPP_DEPRECATED(
30 "RowReader public constructors have been deprecated. They are "
31 " scheduled for deletion on 2023-05-01. Please use the `RowReader` "
32 "returned by `Table::ReadRows()`.")
33
34// This preprocessor symbol is deprecated and should never be used anywhere. It
35// exists solely for backward compatibility to avoid breaking anyone who may
36// have been using it.
37#define BIGTABLE_CLIENT_NS GOOGLE_CLOUD_CPP_NS
38
39namespace google {
40namespace cloud {
41/**
42 * Contains all the Cloud Bigtable C++ client APIs.
43 */
44namespace bigtable {
45GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
46
47/**
48 * The Cloud Bigtable C++ Client major version.
49 *
50 * @see https://semver.org/spec/v2.0.0.html for details.
51 */
52int constexpr version_major() { return google::cloud::version_major(); }
53
54/**
55 * The Cloud Bigtable C++ Client minor version.
56 *
57 * @see https://semver.org/spec/v2.0.0.html for details.
58 */
59int constexpr version_minor() { return google::cloud::version_minor(); }
60
61/**
62 * The Cloud Bigtable C++ Client patch version.
63 *
64 * @see https://semver.org/spec/v2.0.0.html for details.
65 */
66int constexpr version_patch() { return google::cloud::version_patch(); }
67
68/**
69 * The Cloud Bigtable C++ Client pre-release version.
70 *
71 * @see https://semver.org/spec/v2.0.0.html for details.
72 */
73constexpr char const* version_pre_release() {
75}
76
77/// A single integer representing the Major/Minor/Patch version.
78int constexpr version() { return google::cloud::version(); }
79
80/// The version as a string, in MAJOR.MINOR.PATCH[-PRE][+gitrev] format.
81std::string version_string();
82
83GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
84// TODO(#7463) - remove backwards compatibility namespaces
85namespace v1 = GOOGLE_CLOUD_CPP_NS; // NOLINT(misc-unused-alias-decls)
86} // namespace bigtable
87} // namespace cloud
88} // namespace google
89
90#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_VERSION_H
Contains all the Cloud Bigtable C++ client APIs.
Definition: admin_client.h:28
int constexpr version()
A single integer representing the Major/Minor/Patch version.
Definition: version.h:78
int constexpr version_patch()
The Cloud Bigtable C++ Client patch version.
Definition: version.h:66
int constexpr version_minor()
The Cloud Bigtable C++ Client minor version.
Definition: version.h:59
constexpr char const * version_pre_release()
The Cloud Bigtable C++ Client pre-release version.
Definition: version.h:73
std::string version_string()
The version as a string, in MAJOR.MINOR.PATCH[-PRE][+gitrev] format.
int constexpr version_major()
The Cloud Bigtable C++ Client major version.
Definition: version.h:52
int constexpr version()
int constexpr version_minor()
int constexpr version_major()
constexpr char const * version_pre_release()
int constexpr version_patch()