15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_VERSION_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_VERSION_H
18#include "google/cloud/internal/attributes.h"
19#include "google/cloud/internal/port_platform.h"
20#include "google/cloud/internal/version_info.h"
23#define GOOGLE_CLOUD_CPP_VCONCAT(Ma, Mi, Pa) v##Ma##_##Mi##_##Pa
25#define GOOGLE_CLOUD_CPP_NS
27 GOOGLE_CLOUD_CPP_VERSION_MINOR
,
28 GOOGLE_CLOUD_CPP_VERSION_PATCH
)
31
32
33
34
35
36
37
38
39
40
41
42
43#define GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
45#define GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
55
56
61
62
63
64
65int constexpr version_major() {
return GOOGLE_CLOUD_CPP_VERSION_MAJOR; }
68
69
70
71
72int constexpr version_minor() {
return GOOGLE_CLOUD_CPP_VERSION_MINOR; }
75
76
77
78
79int constexpr version_patch() {
return GOOGLE_CLOUD_CPP_VERSION_PATCH; }
82
83
84
85
87 return GOOGLE_CLOUD_CPP_VERSION_PRE_RELEASE;
91auto constexpr kMaxMinorVersions = 100;
92auto constexpr kMaxPatchVersions = 100;
98 "version_minor() should be < kMaxMinorVersions");
100 "version_patch() should be < kMaxPatchVersions");
101 return internal::kMaxPatchVersions *
Contains all the Google Cloud C++ Library APIs.
Definition: async_operation.h:23
std::string version_string()
The version as a string, in MAJOR.MINOR.PATCH[-PRE][+gitrev] format.
int constexpr version()
A single integer representing the Major/Minor/Patch version.
Definition: version.h:96
int constexpr version_minor()
The Google Cloud C++ Client minor version.
Definition: version.h:72
int constexpr version_major()
The Google Cloud C++ Client major version.
Definition: version.h:65
constexpr char const * version_pre_release()
The Google Cloud C++ Client pre-release version.
Definition: version.h:86
int constexpr version_patch()
The Google Cloud C++ Client patch version.
Definition: version.h:79
Definition: async_operation.h:22
#define GOOGLE_CLOUD_CPP_NS
Definition: version.h:25
#define GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Definition: version.h:45
#define GOOGLE_CLOUD_CPP_VEVAL(Ma, Mi, Pa)
Definition: version.h:24
#define GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
Definition: version.h:43
#define GOOGLE_CLOUD_CPP_VCONCAT(Ma, Mi, Pa)
Definition: version.h:23