Use Emit instead of format()

PiperOrigin-RevId: 582099455
pull/14724/head
Protobuf Team Bot 1 year ago committed by Copybara-Service
parent 32af7d211b
commit d2733119a4
  1. 1601
      src/google/protobuf/compiler/cpp/message.cc
  2. 5
      src/google/protobuf/compiler/cpp/message.h
  3. 61
      src/google/protobuf/compiler/java/java_features.pb.h
  4. 251
      src/google/protobuf/compiler/plugin.pb.h
  5. 60
      src/google/protobuf/cpp_features.pb.h
  6. 2047
      src/google/protobuf/descriptor.pb.h

File diff suppressed because it is too large Load Diff

@ -12,6 +12,7 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_CPP_MESSAGE_H__
#define GOOGLE_PROTOBUF_COMPILER_CPP_MESSAGE_H__
#include <cstddef>
#include <cstdint>
#include <limits>
#include <memory>
@ -20,6 +21,7 @@
#include <vector>
#include "absl/container/flat_hash_map.h"
#include "absl/strings/string_view.h"
#include "google/protobuf/compiler/cpp/enum.h"
#include "google/protobuf/compiler/cpp/extension.h"
#include "google/protobuf/compiler/cpp/field.h"
@ -119,6 +121,9 @@ class MessageGenerator {
void GenerateSerializeWithCachedSizesBodyShuffled(io::Printer* p);
void GenerateByteSize(io::Printer* p);
void GenerateClassData(io::Printer* p);
void GenerateMapEntryClassDefinition(io::Printer* p);
void GenerateAnyMethodDefinition(io::Printer* p);
void GenerateImplDefinition(io::Printer* p);
void GenerateMergeFrom(io::Printer* p);
void GenerateClassSpecificMergeImpl(io::Printer* p);
void GenerateCopyFrom(io::Printer* p);

@ -104,18 +104,17 @@ inline bool JavaFeatures_Utf8Validation_Parse(absl::string_view name, JavaFeatur
// -------------------------------------------------------------------
class PROTOC_EXPORT JavaFeatures final :
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.JavaFeatures) */ {
class PROTOC_EXPORT JavaFeatures final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:pb.JavaFeatures) */ {
public:
inline JavaFeatures() : JavaFeatures(nullptr) {}
~JavaFeatures() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR JavaFeatures(::google::protobuf::internal::ConstantInitialized);
template <typename = void>
explicit PROTOBUF_CONSTEXPR JavaFeatures(
::google::protobuf::internal::ConstantInitialized);
inline JavaFeatures(const JavaFeatures& from)
: JavaFeatures(nullptr, from) {}
JavaFeatures(JavaFeatures&& from) noexcept
: JavaFeatures() {
inline JavaFeatures(const JavaFeatures& from) : JavaFeatures(nullptr, from) {}
JavaFeatures(JavaFeatures&& from) noexcept : JavaFeatures() {
*this = ::std::move(from);
}
@ -126,9 +125,9 @@ class PROTOC_EXPORT JavaFeatures final :
inline JavaFeatures& operator=(JavaFeatures&& from) noexcept {
if (this == &from) return *this;
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
@ -159,17 +158,18 @@ class PROTOC_EXPORT JavaFeatures final :
return *internal_default_instance();
}
static inline const JavaFeatures* internal_default_instance() {
return reinterpret_cast<const JavaFeatures*>(&_JavaFeatures_default_instance_);
return reinterpret_cast<const JavaFeatures*>(
&_JavaFeatures_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(JavaFeatures& a, JavaFeatures& b) { a.Swap(&b); }
inline void Swap(JavaFeatures* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
@ -189,11 +189,12 @@ class PROTOC_EXPORT JavaFeatures final :
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const JavaFeatures& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const JavaFeatures& from) {
JavaFeatures::MergeImpl(*this, from);
}
void MergeFrom(const JavaFeatures& from) { JavaFeatures::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg,
const ::google::protobuf::Message& from_msg);
public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@ -201,29 +202,27 @@ class PROTOC_EXPORT JavaFeatures final :
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void InternalSwap(JavaFeatures* other);
private:
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "pb.JavaFeatures";
}
protected:
static ::absl::string_view FullMessageName() { return "pb.JavaFeatures"; }
protected:
explicit JavaFeatures(::google::protobuf::Arena* arena);
JavaFeatures(::google::protobuf::Arena* arena, const JavaFeatures& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
using Utf8Validation = JavaFeatures_Utf8Validation;
static constexpr Utf8Validation UTF8_VALIDATION_UNKNOWN = JavaFeatures_Utf8Validation_UTF8_VALIDATION_UNKNOWN;
static constexpr Utf8Validation DEFAULT = JavaFeatures_Utf8Validation_DEFAULT;
@ -246,7 +245,6 @@ class PROTOC_EXPORT JavaFeatures final :
}
// accessors -------------------------------------------------------
enum : int {
kLegacyClosedEnumFieldNumber = 1,
kUtf8ValidationFieldNumber = 2,
@ -276,7 +274,6 @@ class PROTOC_EXPORT JavaFeatures final :
// @@protoc_insertion_point(class_scope:pb.JavaFeatures)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
1, 2, 1,
@ -288,7 +285,7 @@ class PROTOC_EXPORT JavaFeatures final :
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOC_EXPORT Impl_ {
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -121,18 +121,17 @@ inline bool CodeGeneratorResponse_Feature_Parse(absl::string_view name, CodeGene
// -------------------------------------------------------------------
class PROTOC_EXPORT Version final :
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.Version) */ {
class PROTOC_EXPORT Version final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.compiler.Version) */ {
public:
inline Version() : Version(nullptr) {}
~Version() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR Version(::google::protobuf::internal::ConstantInitialized);
template <typename = void>
explicit PROTOBUF_CONSTEXPR Version(
::google::protobuf::internal::ConstantInitialized);
inline Version(const Version& from)
: Version(nullptr, from) {}
Version(Version&& from) noexcept
: Version() {
inline Version(const Version& from) : Version(nullptr, from) {}
Version(Version&& from) noexcept : Version() {
*this = ::std::move(from);
}
@ -143,9 +142,9 @@ class PROTOC_EXPORT Version final :
inline Version& operator=(Version&& from) noexcept {
if (this == &from) return *this;
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
@ -176,17 +175,18 @@ class PROTOC_EXPORT Version final :
return *internal_default_instance();
}
static inline const Version* internal_default_instance() {
return reinterpret_cast<const Version*>(&_Version_default_instance_);
return reinterpret_cast<const Version*>(
&_Version_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Version& a, Version& b) { a.Swap(&b); }
inline void Swap(Version* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
@ -206,11 +206,12 @@ class PROTOC_EXPORT Version final :
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Version& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const Version& from) {
Version::MergeImpl(*this, from);
}
void MergeFrom(const Version& from) { Version::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg,
const ::google::protobuf::Message& from_msg);
public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@ -218,31 +219,29 @@ class PROTOC_EXPORT Version final :
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void InternalSwap(Version* other);
private:
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "google.protobuf.compiler.Version";
}
protected:
static ::absl::string_view FullMessageName() { return "google.protobuf.compiler.Version"; }
protected:
explicit Version(::google::protobuf::Arena* arena);
Version(::google::protobuf::Arena* arena, const Version& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kSuffixFieldNumber = 4,
kMajorFieldNumber = 1,
@ -302,7 +301,6 @@ class PROTOC_EXPORT Version final :
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.Version)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
2, 4, 0,
@ -314,7 +312,7 @@ class PROTOC_EXPORT Version final :
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOC_EXPORT Impl_ {
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -331,20 +329,20 @@ class PROTOC_EXPORT Version final :
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
};// -------------------------------------------------------------------
};
// -------------------------------------------------------------------
class PROTOC_EXPORT CodeGeneratorResponse_File final :
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse.File) */ {
class PROTOC_EXPORT CodeGeneratorResponse_File final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse.File) */ {
public:
inline CodeGeneratorResponse_File() : CodeGeneratorResponse_File(nullptr) {}
~CodeGeneratorResponse_File() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse_File(::google::protobuf::internal::ConstantInitialized);
template <typename = void>
explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse_File(
::google::protobuf::internal::ConstantInitialized);
inline CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from)
: CodeGeneratorResponse_File(nullptr, from) {}
CodeGeneratorResponse_File(CodeGeneratorResponse_File&& from) noexcept
: CodeGeneratorResponse_File() {
inline CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from) : CodeGeneratorResponse_File(nullptr, from) {}
CodeGeneratorResponse_File(CodeGeneratorResponse_File&& from) noexcept : CodeGeneratorResponse_File() {
*this = ::std::move(from);
}
@ -355,9 +353,9 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
inline CodeGeneratorResponse_File& operator=(CodeGeneratorResponse_File&& from) noexcept {
if (this == &from) return *this;
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
@ -388,17 +386,18 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
return *internal_default_instance();
}
static inline const CodeGeneratorResponse_File* internal_default_instance() {
return reinterpret_cast<const CodeGeneratorResponse_File*>(&_CodeGeneratorResponse_File_default_instance_);
return reinterpret_cast<const CodeGeneratorResponse_File*>(
&_CodeGeneratorResponse_File_default_instance_);
}
static constexpr int kIndexInFileMessages = 2;
friend void swap(CodeGeneratorResponse_File& a, CodeGeneratorResponse_File& b) { a.Swap(&b); }
inline void Swap(CodeGeneratorResponse_File* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
@ -418,11 +417,12 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const CodeGeneratorResponse_File& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const CodeGeneratorResponse_File& from) {
CodeGeneratorResponse_File::MergeImpl(*this, from);
}
void MergeFrom(const CodeGeneratorResponse_File& from) { CodeGeneratorResponse_File::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg,
const ::google::protobuf::Message& from_msg);
public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@ -430,31 +430,29 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void InternalSwap(CodeGeneratorResponse_File* other);
private:
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "google.protobuf.compiler.CodeGeneratorResponse.File";
}
protected:
static ::absl::string_view FullMessageName() { return "google.protobuf.compiler.CodeGeneratorResponse.File"; }
protected:
explicit CodeGeneratorResponse_File(::google::protobuf::Arena* arena);
CodeGeneratorResponse_File(::google::protobuf::Arena* arena, const CodeGeneratorResponse_File& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kNameFieldNumber = 1,
kInsertionPointFieldNumber = 2,
@ -530,7 +528,6 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
2, 4, 1,
@ -542,7 +539,7 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOC_EXPORT Impl_ {
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -559,20 +556,20 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
};// -------------------------------------------------------------------
};
// -------------------------------------------------------------------
class PROTOC_EXPORT CodeGeneratorResponse final :
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse) */ {
class PROTOC_EXPORT CodeGeneratorResponse final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse) */ {
public:
inline CodeGeneratorResponse() : CodeGeneratorResponse(nullptr) {}
~CodeGeneratorResponse() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse(::google::protobuf::internal::ConstantInitialized);
template <typename = void>
explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse(
::google::protobuf::internal::ConstantInitialized);
inline CodeGeneratorResponse(const CodeGeneratorResponse& from)
: CodeGeneratorResponse(nullptr, from) {}
CodeGeneratorResponse(CodeGeneratorResponse&& from) noexcept
: CodeGeneratorResponse() {
inline CodeGeneratorResponse(const CodeGeneratorResponse& from) : CodeGeneratorResponse(nullptr, from) {}
CodeGeneratorResponse(CodeGeneratorResponse&& from) noexcept : CodeGeneratorResponse() {
*this = ::std::move(from);
}
@ -583,9 +580,9 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
inline CodeGeneratorResponse& operator=(CodeGeneratorResponse&& from) noexcept {
if (this == &from) return *this;
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
@ -616,17 +613,18 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
return *internal_default_instance();
}
static inline const CodeGeneratorResponse* internal_default_instance() {
return reinterpret_cast<const CodeGeneratorResponse*>(&_CodeGeneratorResponse_default_instance_);
return reinterpret_cast<const CodeGeneratorResponse*>(
&_CodeGeneratorResponse_default_instance_);
}
static constexpr int kIndexInFileMessages = 3;
friend void swap(CodeGeneratorResponse& a, CodeGeneratorResponse& b) { a.Swap(&b); }
inline void Swap(CodeGeneratorResponse* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
@ -646,11 +644,12 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const CodeGeneratorResponse& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const CodeGeneratorResponse& from) {
CodeGeneratorResponse::MergeImpl(*this, from);
}
void MergeFrom(const CodeGeneratorResponse& from) { CodeGeneratorResponse::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg,
const ::google::protobuf::Message& from_msg);
public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@ -658,31 +657,28 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void InternalSwap(CodeGeneratorResponse* other);
private:
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "google.protobuf.compiler.CodeGeneratorResponse";
}
protected:
static ::absl::string_view FullMessageName() { return "google.protobuf.compiler.CodeGeneratorResponse"; }
protected:
explicit CodeGeneratorResponse(::google::protobuf::Arena* arena);
CodeGeneratorResponse(::google::protobuf::Arena* arena, const CodeGeneratorResponse& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
using File = CodeGeneratorResponse_File;
using Feature = CodeGeneratorResponse_Feature;
static constexpr Feature FEATURE_NONE = CodeGeneratorResponse_Feature_FEATURE_NONE;
static constexpr Feature FEATURE_PROTO3_OPTIONAL = CodeGeneratorResponse_Feature_FEATURE_PROTO3_OPTIONAL;
@ -705,7 +701,6 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
}
// accessors -------------------------------------------------------
enum : int {
kFileFieldNumber = 15,
kErrorFieldNumber = 1,
@ -760,7 +755,6 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
2, 3, 1,
@ -772,7 +766,7 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOC_EXPORT Impl_ {
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
@ -788,20 +782,20 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
};// -------------------------------------------------------------------
};
// -------------------------------------------------------------------
class PROTOC_EXPORT CodeGeneratorRequest final :
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorRequest) */ {
class PROTOC_EXPORT CodeGeneratorRequest final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorRequest) */ {
public:
inline CodeGeneratorRequest() : CodeGeneratorRequest(nullptr) {}
~CodeGeneratorRequest() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR CodeGeneratorRequest(::google::protobuf::internal::ConstantInitialized);
template <typename = void>
explicit PROTOBUF_CONSTEXPR CodeGeneratorRequest(
::google::protobuf::internal::ConstantInitialized);
inline CodeGeneratorRequest(const CodeGeneratorRequest& from)
: CodeGeneratorRequest(nullptr, from) {}
CodeGeneratorRequest(CodeGeneratorRequest&& from) noexcept
: CodeGeneratorRequest() {
inline CodeGeneratorRequest(const CodeGeneratorRequest& from) : CodeGeneratorRequest(nullptr, from) {}
CodeGeneratorRequest(CodeGeneratorRequest&& from) noexcept : CodeGeneratorRequest() {
*this = ::std::move(from);
}
@ -812,9 +806,9 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
inline CodeGeneratorRequest& operator=(CodeGeneratorRequest&& from) noexcept {
if (this == &from) return *this;
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
@ -845,17 +839,18 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
return *internal_default_instance();
}
static inline const CodeGeneratorRequest* internal_default_instance() {
return reinterpret_cast<const CodeGeneratorRequest*>(&_CodeGeneratorRequest_default_instance_);
return reinterpret_cast<const CodeGeneratorRequest*>(
&_CodeGeneratorRequest_default_instance_);
}
static constexpr int kIndexInFileMessages = 1;
friend void swap(CodeGeneratorRequest& a, CodeGeneratorRequest& b) { a.Swap(&b); }
inline void Swap(CodeGeneratorRequest* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
@ -875,11 +870,12 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const CodeGeneratorRequest& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const CodeGeneratorRequest& from) {
CodeGeneratorRequest::MergeImpl(*this, from);
}
void MergeFrom(const CodeGeneratorRequest& from) { CodeGeneratorRequest::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg,
const ::google::protobuf::Message& from_msg);
public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@ -887,31 +883,29 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void InternalSwap(CodeGeneratorRequest* other);
private:
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "google.protobuf.compiler.CodeGeneratorRequest";
}
protected:
static ::absl::string_view FullMessageName() { return "google.protobuf.compiler.CodeGeneratorRequest"; }
protected:
explicit CodeGeneratorRequest(::google::protobuf::Arena* arena);
CodeGeneratorRequest(::google::protobuf::Arena* arena, const CodeGeneratorRequest& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kFileToGenerateFieldNumber = 1,
kProtoFileFieldNumber = 15,
@ -1018,7 +1012,6 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
3, 5, 3,
@ -1030,7 +1023,7 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOC_EXPORT Impl_ {
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

@ -73,18 +73,17 @@ namespace pb {
// -------------------------------------------------------------------
class PROTOBUF_EXPORT CppFeatures final :
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.CppFeatures) */ {
class PROTOBUF_EXPORT CppFeatures final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:pb.CppFeatures) */ {
public:
inline CppFeatures() : CppFeatures(nullptr) {}
~CppFeatures() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR CppFeatures(::google::protobuf::internal::ConstantInitialized);
template <typename = void>
explicit PROTOBUF_CONSTEXPR CppFeatures(
::google::protobuf::internal::ConstantInitialized);
inline CppFeatures(const CppFeatures& from)
: CppFeatures(nullptr, from) {}
CppFeatures(CppFeatures&& from) noexcept
: CppFeatures() {
inline CppFeatures(const CppFeatures& from) : CppFeatures(nullptr, from) {}
CppFeatures(CppFeatures&& from) noexcept : CppFeatures() {
*this = ::std::move(from);
}
@ -95,9 +94,9 @@ class PROTOBUF_EXPORT CppFeatures final :
inline CppFeatures& operator=(CppFeatures&& from) noexcept {
if (this == &from) return *this;
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
@ -128,17 +127,18 @@ class PROTOBUF_EXPORT CppFeatures final :
return *internal_default_instance();
}
static inline const CppFeatures* internal_default_instance() {
return reinterpret_cast<const CppFeatures*>(&_CppFeatures_default_instance_);
return reinterpret_cast<const CppFeatures*>(
&_CppFeatures_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(CppFeatures& a, CppFeatures& b) { a.Swap(&b); }
inline void Swap(CppFeatures* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
@ -158,11 +158,12 @@ class PROTOBUF_EXPORT CppFeatures final :
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const CppFeatures& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom( const CppFeatures& from) {
CppFeatures::MergeImpl(*this, from);
}
void MergeFrom(const CppFeatures& from) { CppFeatures::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
static void MergeImpl(::google::protobuf::Message& to_msg,
const ::google::protobuf::Message& from_msg);
public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
@ -170,31 +171,29 @@ class PROTOBUF_EXPORT CppFeatures final :
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void InternalSwap(CppFeatures* other);
private:
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "pb.CppFeatures";
}
protected:
static ::absl::string_view FullMessageName() { return "pb.CppFeatures"; }
protected:
explicit CppFeatures(::google::protobuf::Arena* arena);
CppFeatures(::google::protobuf::Arena* arena, const CppFeatures& from);
const ::google::protobuf::MessageLite::ClassData* GetClassData() const final;
public:
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kLegacyClosedEnumFieldNumber = 1,
};
@ -212,7 +211,6 @@ class PROTOBUF_EXPORT CppFeatures final :
// @@protoc_insertion_point(class_scope:pb.CppFeatures)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
0, 1, 0,
@ -224,7 +222,7 @@ class PROTOBUF_EXPORT CppFeatures final :
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct PROTOBUF_EXPORT Impl_ {
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save