|
||||
File indexing completed on 2025-01-31 10:12:01
0001 // Protocol Buffers - Google's data interchange format 0002 // Copyright 2008 Google Inc. All rights reserved. 0003 // https://developers.google.com/protocol-buffers/ 0004 // 0005 // Redistribution and use in source and binary forms, with or without 0006 // modification, are permitted provided that the following conditions are 0007 // met: 0008 // 0009 // * Redistributions of source code must retain the above copyright 0010 // notice, this list of conditions and the following disclaimer. 0011 // * Redistributions in binary form must reproduce the above 0012 // copyright notice, this list of conditions and the following disclaimer 0013 // in the documentation and/or other materials provided with the 0014 // distribution. 0015 // * Neither the name of Google Inc. nor the names of its 0016 // contributors may be used to endorse or promote products derived from 0017 // this software without specific prior written permission. 0018 // 0019 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 0020 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 0021 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 0022 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 0023 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 0024 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 0025 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 0026 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 0027 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0028 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 0029 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0030 0031 #ifndef GOOGLE_PROTOBUF_VERSIONS_H__ 0032 #define GOOGLE_PROTOBUF_VERSIONS_H__ 0033 0034 #include "absl/strings/string_view.h" 0035 #include "google/protobuf/compiler/plugin.pb.h" 0036 0037 // Must be included last. 0038 #include "google/protobuf/port_def.inc" 0039 0040 // Defines compiler version strings for Protobuf code generators. 0041 // 0042 // When they are suffixed with "-dev", they reflect the version of the next 0043 // release, otherwise the current released version. 0044 // 0045 // Currently, they are embedded into comments at each gencode for public 0046 // Protobuf C++, Java and Python. Further, we will add version strings for rest 0047 // of languages in version.json, and they will be used to validate version 0048 // compatibility between gencode and runtime. 0049 // 0050 // Versions of other plugins should not put versions here since they will not 0051 // caught by Protobuf releases. Plugin owners should define their versions 0052 // separately. 0053 // 0054 // Please avoid changing them manually, as they should be updated automatically 0055 // by Protobuf release process. 0056 #define PROTOBUF_CPP_VERSION_STRING "5.28.2" 0057 #define PROTOBUF_JAVA_VERSION_STRING "4.28.2" 0058 #define PROTOBUF_PYTHON_VERSION_STRING "5.28.2" 0059 0060 0061 namespace google { 0062 namespace protobuf { 0063 namespace compiler { 0064 namespace internal { 0065 // For internal use to parse the Protobuf language version strings. 0066 PROTOC_EXPORT Version ParseProtobufVersion(absl::string_view version); 0067 } // namespace internal 0068 0069 // Gets the version message according to the version strings defined above. 0070 const Version& GetProtobufCPPVersion(bool oss_runtime); 0071 const Version& GetProtobufJavaVersion(bool oss_runtime); 0072 const Version& GetProtobufPythonVersion(bool oss_runtime); 0073 } // namespace compiler 0074 } // namespace protobuf 0075 } // namespace google 0076 #include "google/protobuf/port_undef.inc" 0077 #endif // GOOGLE_PROTOBUF_VERSIONS_H__
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |