blob: a7b4f668bff10ea17f7f796281dcf24ec7843b5b [file] [edit]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/compiler/plugin.proto
// Protobuf C++ Version: 7.36.0-dev
#include "google/protobuf/compiler/plugin.pb.h"
#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/internal_visibility.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.h"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
#ifdef PROTOBUF_MESSAGE_GLOBALS
namespace {
PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData
file_reflection_data[] = {
// ::google::protobuf::compiler::Version
{&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto, /* tracker*/ nullptr,},
// ::google::protobuf::compiler::CodeGeneratorRequest
{&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto, /* tracker*/ nullptr,},
// ::google::protobuf::compiler::CodeGeneratorResponse_File
{&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto, /* tracker*/ nullptr,},
// ::google::protobuf::compiler::CodeGeneratorResponse
{&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto, /* tracker*/ nullptr,},
};
} // namespace
#endif
namespace google {
namespace protobuf {
namespace compiler {
class Version::_Internal {
public:
using HasBits = decltype(::std::declval<Version>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(Version, _impl_._has_bits_);
};
constexpr Version::ParseTableT_ Version::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
return ParseTableT_{
{
PROTOBUF_FIELD_OFFSET(Version, _impl_._has_bits_),
0, // no _extensions_
4, 24, // max_field_number, fast_idx_mask
offsetof(ParseTableT_, field_lookup_table),
4294967280, // skipmap
offsetof(ParseTableT_, field_entries),
4, // num_field_entries
0, // num_aux_entries
offsetof(ParseTableT_, field_names), // no aux_entries
class_data,
nullptr, // post_loop_handler
::_pbi::TcParser::MpUnknownFields, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::google::protobuf::compiler::Version>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional string suffix = 4;
{::_pbi::TcParser::FastBS1,
{34, 0, 0,
PROTOBUF_FIELD_OFFSET(Version, _impl_.suffix_)}},
// optional int32 major = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Version, _impl_.major_), 1>(),
{8, 1, 0,
PROTOBUF_FIELD_OFFSET(Version, _impl_.major_)}},
// optional int32 minor = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Version, _impl_.minor_), 2>(),
{16, 2, 0,
PROTOBUF_FIELD_OFFSET(Version, _impl_.minor_)}},
// optional int32 patch = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Version, _impl_.patch_), 3>(),
{24, 3, 0,
PROTOBUF_FIELD_OFFSET(Version, _impl_.patch_)}},
}}, {{
65535, 65535
}}, {{
// optional int32 major = 1;
{PROTOBUF_FIELD_OFFSET(Version, _impl_.major_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 minor = 2;
{PROTOBUF_FIELD_OFFSET(Version, _impl_.minor_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 patch = 3;
{PROTOBUF_FIELD_OFFSET(Version, _impl_.patch_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional string suffix = 4;
{PROTOBUF_FIELD_OFFSET(Version, _impl_.suffix_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
}},
// no aux_entries
{{
}},
};
}
inline constexpr Version::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
::_pbi::ConstantInitialized) noexcept
: suffix_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
major_{0},
minor_{0},
patch_{0} {}
template <typename>
constexpr Version::Version(::_pbi::ConstantInitialized,
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
: Super_(
#if defined(PROTOBUF_CUSTOM_VTABLE)
class_data
#endif // PROTOBUF_CUSTOM_VTABLE
),
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL Version::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) Version(arena);
}
constexpr auto Version::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Version), alignof(Version));
}
constexpr auto Version::InternalGenerateClassData_(
const MessageLite& prototype,
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
return ::google::protobuf::internal::ClassDataFull{
::google::protobuf::internal::ClassData{
&prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
&_table_.header,
#else
tc_table,
#endif
nullptr, // IsInitialized
&Version::MergeImpl,
Super_::GetNewImpl<Version>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&Version::SharedDtor,
Super_::GetClearImpl<Version>(), &Version::ByteSizeLong,
&Version::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(Version, _impl_._cached_size_),
false,
},
#ifdef PROTOBUF_MESSAGE_GLOBALS
&file_reflection_data[0],
#else // !PROTOBUF_MESSAGE_GLOBALS
&::_pbi::kDescriptorMethods,
&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
nullptr, // tracker
#endif // PROTOBUF_MESSAGE_GLOBALS
};
}
struct VersionGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
constexpr VersionGlobalsTypeInternal()
:
#ifndef PROTOBUF_MESSAGE_GLOBALS
_default(::_pbi::ConstantInitialized{},
Version_class_data_.base())
#else // !PROTOBUF_MESSAGE_GLOBALS
MessageGlobalsBase(Version::InternalGenerateClassData_(
_default, &Version_globals_._table.header)),
_default(::_pbi::ConstantInitialized{}, GetClassData()),
_table(::_pbi::PrivateAccess::GenerateParseTable<Version>(
GetClassData()))
#endif // PROTOBUF_MESSAGE_GLOBALS
{
}
~VersionGlobalsTypeInternal() {}
union {
alignas(::_pbi::kMaxMessageAlignment) Version _default;
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
decltype(::_pbi::PrivateAccess::GenerateParseTable<Version>(
::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(VersionGlobalsTypeInternal, _default) ==
::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif // PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST VersionGlobalsTypeInternal Version_globals_
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Version_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
return Version_globals_.GetClassData();
#else
return Version_class_data_.base();
#endif // PROTOBUF_MESSAGE_GLOBALS
}
} // namespace
#endif // PROTOBUF_CUSTOM_VTABLE
class CodeGeneratorResponse_File::_Internal {
public:
using HasBits = decltype(::std::declval<CodeGeneratorResponse_File>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._has_bits_);
};
constexpr CodeGeneratorResponse_File::ParseTableT_ CodeGeneratorResponse_File::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
return ParseTableT_{
{
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._has_bits_),
0, // no _extensions_
16, 24, // max_field_number, fast_idx_mask
offsetof(ParseTableT_, field_lookup_table),
4294918140, // skipmap
offsetof(ParseTableT_, field_entries),
4, // num_field_entries
1, // num_aux_entries
offsetof(ParseTableT_, aux_entries),
class_data,
nullptr, // post_loop_handler
::_pbi::TcParser::MpUnknownFields, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorResponse_File>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
{::_pbi::TcParser::FastMtS2,
{386, 3, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.generated_code_info_)}},
// optional string name = 1;
{::_pbi::TcParser::FastBS1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.name_)}},
// optional string insertion_point = 2;
{::_pbi::TcParser::FastBS1,
{18, 1, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.insertion_point_)}},
// optional string content = 15;
{::_pbi::TcParser::FastBS1,
{122, 2, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.content_)}},
}}, {{
65535, 65535
}}, {{
// optional string name = 1;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional string insertion_point = 2;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.insertion_point_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional string content = 15;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.content_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.generated_code_info_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
}},
{{
#ifndef PROTOBUF_MESSAGE_GLOBALS
{::_pbi::TcParser::GetTable<::google::protobuf::GeneratedCodeInfo>()},
#else
{::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::GeneratedCodeInfo_globals_},
#endif
}},
{{
}},
};
}
inline constexpr CodeGeneratorResponse_File::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
::_pbi::ConstantInitialized) noexcept
: name_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
insertion_point_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
content_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
generated_code_info_{nullptr} {}
template <typename>
constexpr CodeGeneratorResponse_File::CodeGeneratorResponse_File(::_pbi::ConstantInitialized,
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
: Super_(
#if defined(PROTOBUF_CUSTOM_VTABLE)
class_data
#endif // PROTOBUF_CUSTOM_VTABLE
),
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CodeGeneratorResponse_File::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) CodeGeneratorResponse_File(arena);
}
constexpr auto CodeGeneratorResponse_File::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CodeGeneratorResponse_File), alignof(CodeGeneratorResponse_File));
}
constexpr auto CodeGeneratorResponse_File::InternalGenerateClassData_(
const MessageLite& prototype,
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
return ::google::protobuf::internal::ClassDataFull{
::google::protobuf::internal::ClassData{
&prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
&_table_.header,
#else
tc_table,
#endif
nullptr, // IsInitialized
&CodeGeneratorResponse_File::MergeImpl,
Super_::GetNewImpl<CodeGeneratorResponse_File>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&CodeGeneratorResponse_File::SharedDtor,
Super_::GetClearImpl<CodeGeneratorResponse_File>(), &CodeGeneratorResponse_File::ByteSizeLong,
&CodeGeneratorResponse_File::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._cached_size_),
false,
},
#ifdef PROTOBUF_MESSAGE_GLOBALS
&file_reflection_data[2],
#else // !PROTOBUF_MESSAGE_GLOBALS
&::_pbi::kDescriptorMethods,
&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
nullptr, // tracker
#endif // PROTOBUF_MESSAGE_GLOBALS
};
}
struct CodeGeneratorResponse_FileGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
constexpr CodeGeneratorResponse_FileGlobalsTypeInternal()
:
#ifndef PROTOBUF_MESSAGE_GLOBALS
_default(::_pbi::ConstantInitialized{},
CodeGeneratorResponse_File_class_data_.base())
#else // !PROTOBUF_MESSAGE_GLOBALS
MessageGlobalsBase(CodeGeneratorResponse_File::InternalGenerateClassData_(
_default, &CodeGeneratorResponse_File_globals_._table.header)),
_default(::_pbi::ConstantInitialized{}, GetClassData()),
_table(::_pbi::PrivateAccess::GenerateParseTable<CodeGeneratorResponse_File>(
GetClassData()))
#endif // PROTOBUF_MESSAGE_GLOBALS
{
}
~CodeGeneratorResponse_FileGlobalsTypeInternal() {}
union {
alignas(::_pbi::kMaxMessageAlignment) CodeGeneratorResponse_File _default;
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
decltype(::_pbi::PrivateAccess::GenerateParseTable<CodeGeneratorResponse_File>(
::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_FileGlobalsTypeInternal, _default) ==
::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif // PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CodeGeneratorResponse_FileGlobalsTypeInternal CodeGeneratorResponse_File_globals_
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CodeGeneratorResponse_File_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
return CodeGeneratorResponse_File_globals_.GetClassData();
#else
return CodeGeneratorResponse_File_class_data_.base();
#endif // PROTOBUF_MESSAGE_GLOBALS
}
} // namespace
#endif // PROTOBUF_CUSTOM_VTABLE
class CodeGeneratorResponse::_Internal {
public:
using HasBits = decltype(::std::declval<CodeGeneratorResponse>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._has_bits_);
};
constexpr CodeGeneratorResponse::ParseTableT_ CodeGeneratorResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
return ParseTableT_{
{
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._has_bits_),
0, // no _extensions_
15, 56, // max_field_number, fast_idx_mask
offsetof(ParseTableT_, field_lookup_table),
4294950896, // skipmap
offsetof(ParseTableT_, field_entries),
5, // num_field_entries
1, // num_aux_entries
offsetof(ParseTableT_, aux_entries),
class_data,
nullptr, // post_loop_handler
::_pbi::TcParser::MpUnknownFields, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorResponse>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// optional string error = 1;
{::_pbi::TcParser::FastBS1,
{10, 1, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.error_)}},
// optional uint64 supported_features = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CodeGeneratorResponse, _impl_.supported_features_), 2>(),
{16, 2, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_)}},
// optional int32 minimum_edition = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CodeGeneratorResponse, _impl_.minimum_edition_), 3>(),
{24, 3, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.minimum_edition_)}},
// optional int32 maximum_edition = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CodeGeneratorResponse, _impl_.maximum_edition_), 4>(),
{32, 4, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.maximum_edition_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
{::_pbi::TcParser::FastMtR1,
{122, 0, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.file_)}},
}}, {{
65535, 65535
}}, {{
// optional string error = 1;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.error_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional uint64 supported_features = 2;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
// optional int32 minimum_edition = 3;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.minimum_edition_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// optional int32 maximum_edition = 4;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.maximum_edition_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.file_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}},
{{
#ifndef PROTOBUF_MESSAGE_GLOBALS
{::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorResponse_File>()},
#else
{::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::compiler::CodeGeneratorResponse_File_globals_},
#endif
}},
{{
}},
};
}
inline constexpr CodeGeneratorResponse::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
::_pbi::ConstantInitialized) noexcept
: file_ { visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorResponse,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.file_)>()
}
,
error_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
supported_features_{::uint64_t{0u}},
minimum_edition_{0},
maximum_edition_{0} {}
template <typename>
constexpr CodeGeneratorResponse::CodeGeneratorResponse(::_pbi::ConstantInitialized,
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
: Super_(
#if defined(PROTOBUF_CUSTOM_VTABLE)
class_data
#endif // PROTOBUF_CUSTOM_VTABLE
),
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CodeGeneratorResponse::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) CodeGeneratorResponse(arena);
}
constexpr auto CodeGeneratorResponse::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CodeGeneratorResponse), alignof(CodeGeneratorResponse));
}
constexpr auto CodeGeneratorResponse::InternalGenerateClassData_(
const MessageLite& prototype,
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
return ::google::protobuf::internal::ClassDataFull{
::google::protobuf::internal::ClassData{
&prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
&_table_.header,
#else
tc_table,
#endif
nullptr, // IsInitialized
&CodeGeneratorResponse::MergeImpl,
Super_::GetNewImpl<CodeGeneratorResponse>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&CodeGeneratorResponse::SharedDtor,
Super_::GetClearImpl<CodeGeneratorResponse>(), &CodeGeneratorResponse::ByteSizeLong,
&CodeGeneratorResponse::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._cached_size_),
false,
},
#ifdef PROTOBUF_MESSAGE_GLOBALS
&file_reflection_data[3],
#else // !PROTOBUF_MESSAGE_GLOBALS
&::_pbi::kDescriptorMethods,
&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
nullptr, // tracker
#endif // PROTOBUF_MESSAGE_GLOBALS
};
}
struct CodeGeneratorResponseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
constexpr CodeGeneratorResponseGlobalsTypeInternal()
:
#ifndef PROTOBUF_MESSAGE_GLOBALS
_default(::_pbi::ConstantInitialized{},
CodeGeneratorResponse_class_data_.base())
#else // !PROTOBUF_MESSAGE_GLOBALS
MessageGlobalsBase(CodeGeneratorResponse::InternalGenerateClassData_(
_default, &CodeGeneratorResponse_globals_._table.header)),
_default(::_pbi::ConstantInitialized{}, GetClassData()),
_table(::_pbi::PrivateAccess::GenerateParseTable<CodeGeneratorResponse>(
GetClassData()))
#endif // PROTOBUF_MESSAGE_GLOBALS
{
}
~CodeGeneratorResponseGlobalsTypeInternal() {}
union {
alignas(::_pbi::kMaxMessageAlignment) CodeGeneratorResponse _default;
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
decltype(::_pbi::PrivateAccess::GenerateParseTable<CodeGeneratorResponse>(
::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CodeGeneratorResponseGlobalsTypeInternal, _default) ==
::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif // PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CodeGeneratorResponseGlobalsTypeInternal CodeGeneratorResponse_globals_
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CodeGeneratorResponse_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
return CodeGeneratorResponse_globals_.GetClassData();
#else
return CodeGeneratorResponse_class_data_.base();
#endif // PROTOBUF_MESSAGE_GLOBALS
}
} // namespace
#endif // PROTOBUF_CUSTOM_VTABLE
class CodeGeneratorRequest::_Internal {
public:
using HasBits = decltype(::std::declval<CodeGeneratorRequest>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._has_bits_);
};
constexpr CodeGeneratorRequest::ParseTableT_ CodeGeneratorRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
return ParseTableT_{
{
PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._has_bits_),
0, // no _extensions_
17, 56, // max_field_number, fast_idx_mask
offsetof(ParseTableT_, field_lookup_table),
4294885368, // skipmap
offsetof(ParseTableT_, field_entries),
5, // num_field_entries
3, // num_aux_entries
offsetof(ParseTableT_, aux_entries),
class_data,
nullptr, // post_loop_handler
::_pbi::TcParser::MpUnknownFields, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorRequest>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// repeated string file_to_generate = 1;
{::_pbi::TcParser::FastBR1,
{10, 0, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.file_to_generate_)}},
// optional string parameter = 2;
{::_pbi::TcParser::FastBS1,
{18, 2, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.parameter_)}},
// optional .google.protobuf.compiler.Version compiler_version = 3;
{::_pbi::TcParser::FastMtS1,
{26, 3, 0,
PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.compiler_version_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
{::_pbi::TcParser::FastMtR1,
{122, 1, 1,
PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.proto_file_)}},
}}, {{
65535, 65535
}}, {{
// repeated string file_to_generate = 1;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.file_to_generate_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
// optional string parameter = 2;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.parameter_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
// optional .google.protobuf.compiler.Version compiler_version = 3;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.compiler_version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.proto_file_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17;
{PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.source_file_descriptors_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}},
{{
#ifndef PROTOBUF_MESSAGE_GLOBALS
{::_pbi::TcParser::GetTable<::google::protobuf::compiler::Version>()},
#else
{::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::compiler::Version_globals_},
#endif
#ifndef PROTOBUF_MESSAGE_GLOBALS
{::_pbi::TcParser::GetTable<::google::protobuf::FileDescriptorProto>()},
#else
{::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::FileDescriptorProto_globals_},
#endif
#ifndef PROTOBUF_MESSAGE_GLOBALS
{::_pbi::TcParser::GetTable<::google::protobuf::FileDescriptorProto>()},
#else
{::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::FileDescriptorProto_globals_},
#endif
}},
{{
}},
};
}
inline constexpr CodeGeneratorRequest::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
::_pbi::ConstantInitialized) noexcept
: file_to_generate_ { visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorRequest,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.file_to_generate_)>()
}
,
proto_file_ { visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorRequest,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.proto_file_)>()
}
,
parameter_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
compiler_version_{nullptr},
source_file_descriptors_ { visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorRequest,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.source_file_descriptors_)>()
}
{}
template <typename>
constexpr CodeGeneratorRequest::CodeGeneratorRequest(::_pbi::ConstantInitialized,
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
: Super_(
#if defined(PROTOBUF_CUSTOM_VTABLE)
class_data
#endif // PROTOBUF_CUSTOM_VTABLE
),
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CodeGeneratorRequest::PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
return ::new (mem) CodeGeneratorRequest(arena);
}
constexpr auto CodeGeneratorRequest::InternalNewImpl_() {
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CodeGeneratorRequest), alignof(CodeGeneratorRequest));
}
constexpr auto CodeGeneratorRequest::InternalGenerateClassData_(
const MessageLite& prototype,
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
return ::google::protobuf::internal::ClassDataFull{
::google::protobuf::internal::ClassData{
&prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
&_table_.header,
#else
tc_table,
#endif
CodeGeneratorRequest::IsInitializedImpl,
&CodeGeneratorRequest::MergeImpl,
Super_::GetNewImpl<CodeGeneratorRequest>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
&CodeGeneratorRequest::SharedDtor,
Super_::GetClearImpl<CodeGeneratorRequest>(), &CodeGeneratorRequest::ByteSizeLong,
&CodeGeneratorRequest::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._cached_size_),
false,
},
#ifdef PROTOBUF_MESSAGE_GLOBALS
&file_reflection_data[1],
#else // !PROTOBUF_MESSAGE_GLOBALS
&::_pbi::kDescriptorMethods,
&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
nullptr, // tracker
#endif // PROTOBUF_MESSAGE_GLOBALS
};
}
struct CodeGeneratorRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
constexpr CodeGeneratorRequestGlobalsTypeInternal()
:
#ifndef PROTOBUF_MESSAGE_GLOBALS
_default(::_pbi::ConstantInitialized{},
CodeGeneratorRequest_class_data_.base())
#else // !PROTOBUF_MESSAGE_GLOBALS
MessageGlobalsBase(CodeGeneratorRequest::InternalGenerateClassData_(
_default, &CodeGeneratorRequest_globals_._table.header)),
_default(::_pbi::ConstantInitialized{}, GetClassData()),
_table(::_pbi::PrivateAccess::GenerateParseTable<CodeGeneratorRequest>(
GetClassData()))
#endif // PROTOBUF_MESSAGE_GLOBALS
{
}
~CodeGeneratorRequestGlobalsTypeInternal() {}
union {
alignas(::_pbi::kMaxMessageAlignment) CodeGeneratorRequest _default;
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
decltype(::_pbi::PrivateAccess::GenerateParseTable<CodeGeneratorRequest>(
::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CodeGeneratorRequestGlobalsTypeInternal, _default) ==
::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif // PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CodeGeneratorRequestGlobalsTypeInternal CodeGeneratorRequest_globals_
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CodeGeneratorRequest_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
return CodeGeneratorRequest_globals_.GetClassData();
#else
return CodeGeneratorRequest_class_data_.base();
#endif // PROTOBUF_MESSAGE_GLOBALS
}
} // namespace
#endif // PROTOBUF_CUSTOM_VTABLE
} // namespace compiler
} // namespace protobuf
} // namespace google
static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto[1];
static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
file_level_service_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto = nullptr;
const ::uint32_t
TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
0x081, // bitmap
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_._has_bits_),
7, // hasbit index offset
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_.major_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_.minor_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_.patch_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_.suffix_),
1,
2,
3,
0,
0x081, // bitmap
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_._has_bits_),
8, // hasbit index offset
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.file_to_generate_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.parameter_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.proto_file_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.source_file_descriptors_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.compiler_version_),
0,
2,
1,
4,
3,
0x081, // bitmap
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_._has_bits_),
7, // hasbit index offset
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_.name_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_.insertion_point_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_.content_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_.generated_code_info_),
0,
1,
2,
3,
0x081, // bitmap
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_._has_bits_),
8, // hasbit index offset
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.error_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.supported_features_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.minimum_edition_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.maximum_edition_),
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.file_),
1,
2,
3,
4,
0,
};
static const ::_pbi::MigrationSchema
schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{0, sizeof(::google::protobuf::compiler::Version)},
{11, sizeof(::google::protobuf::compiler::CodeGeneratorRequest)},
{24, sizeof(::google::protobuf::compiler::CodeGeneratorResponse_File)},
{35, sizeof(::google::protobuf::compiler::CodeGeneratorResponse)},
};
static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const
file_message_globals[] = {
&::google::protobuf::compiler::Version_globals_,
&::google::protobuf::compiler::CodeGeneratorRequest_globals_,
&::google::protobuf::compiler::CodeGeneratorResponse_File_globals_,
&::google::protobuf::compiler::CodeGeneratorResponse_globals_,
};
const char descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
"\n%google/protobuf/compiler/plugin.proto\022"
"\030google.protobuf.compiler\032 google/protob"
"uf/descriptor.proto\"F\n\007Version\022\r\n\005major\030"
"\001 \001(\005\022\r\n\005minor\030\002 \001(\005\022\r\n\005patch\030\003 \001(\005\022\016\n\006s"
"uffix\030\004 \001(\t\"\201\002\n\024CodeGeneratorRequest\022\030\n\020"
"file_to_generate\030\001 \003(\t\022\021\n\tparameter\030\002 \001("
"\t\0228\n\nproto_file\030\017 \003(\0132$.google.protobuf."
"FileDescriptorProto\022E\n\027source_file_descr"
"iptors\030\021 \003(\0132$.google.protobuf.FileDescr"
"iptorProto\022;\n\020compiler_version\030\003 \001(\0132!.g"
"oogle.protobuf.compiler.Version\"\222\003\n\025Code"
"GeneratorResponse\022\r\n\005error\030\001 \001(\t\022\032\n\022supp"
"orted_features\030\002 \001(\004\022\027\n\017minimum_edition\030"
"\003 \001(\005\022\027\n\017maximum_edition\030\004 \001(\005\022B\n\004file\030\017"
" \003(\01324.google.protobuf.compiler.CodeGene"
"ratorResponse.File\032\177\n\004File\022\014\n\004name\030\001 \001(\t"
"\022\027\n\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001"
"(\t\022\?\n\023generated_code_info\030\020 \001(\0132\".google"
".protobuf.GeneratedCodeInfo\"W\n\007Feature\022\020"
"\n\014FEATURE_NONE\020\000\022\033\n\027FEATURE_PROTO3_OPTIO"
"NAL\020\001\022\035\n\031FEATURE_SUPPORTS_EDITIONS\020\002Br\n\034"
"com.google.protobuf.compilerB\014PluginProt"
"osZ)google.golang.org/protobuf/types/plu"
"ginpb\252\002\030Google.Protobuf.Compiler"
};
static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_deps[1] = {
&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
};
static ::absl::once_flag descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once;
PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto = {
false,
false,
952,
descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
"google/protobuf/compiler/plugin.proto",
&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once,
descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_deps,
1,
4,
schemas,
file_message_globals,
TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets,
file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
file_level_service_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
};
namespace google {
namespace protobuf {
namespace compiler {
[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL
CodeGeneratorResponse_Feature_descriptor() {
::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
return file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto[0];
}
PROTOBUF_CONSTINIT const uint32_t CodeGeneratorResponse_Feature_internal_data_[] = {
196608u, 0u, };
// ===================================================================
Version::Version(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: Super_(arena, Version_get_class_data()) {
#else // PROTOBUF_CUSTOM_VTABLE
: Super_(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.Version)
}
PROTOBUF_NDEBUG_INLINE Version::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::google::protobuf::compiler::Version& from_msg)
: _has_bits_{from._has_bits_},
suffix_(arena, from.suffix_) {}
Version::Version(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Version& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: Super_(arena, Version_get_class_data()) {
#else // PROTOBUF_CUSTOM_VTABLE
: Super_(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
Version* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, major_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, major_),
offsetof(Impl_, patch_) -
offsetof(Impl_, major_) +
sizeof(Impl_::patch_));
// @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.Version)
}
PROTOBUF_NDEBUG_INLINE Version::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: suffix_(arena) {}
inline void Version::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, major_),
0,
offsetof(Impl_, patch_) -
offsetof(Impl_, major_) +
sizeof(Impl_::patch_));
}
Version::~Version() {
// @@protoc_insertion_point(destructor:google.protobuf.compiler.Version)
SharedDtor(*this);
}
inline void Version::SharedDtor(MessageLite& self) {
Version& this_ = static_cast<Version&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.suffix_.Destroy();
this_._impl_.~Impl_();
}
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
::google::protobuf::internal::ClassDataFull Version_class_data_ =
Version::InternalGenerateClassData_(Version_globals_._default);
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Version::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&Version_class_data_);
::google::protobuf::internal::PrefetchToLocalCache(Version_class_data_.tc_table);
return Version_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Version::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&Version_globals_);
::google::protobuf::internal::PrefetchToLocalCache(
::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Version_globals_));
return Version_globals_.GetClassData();
}
#endif // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Version::ParseTableT_
Version::_table_ =
Version::InternalGenerateParseTable_(Version_class_data_.base());
#endif // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Version::Clear() {
auto& this_ [[maybe_unused]] = *this;
// @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.Version)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits [[maybe_unused]] = 0;
cached_has_bits = this_._impl_._has_bits_[0];
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
this_._impl_.suffix_.ClearNonDefaultToEmpty();
}
if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
::memset(&this_._impl_.major_, 0,
static_cast<::size_t>(
reinterpret_cast<char*>(&this_._impl_.patch_) -
reinterpret_cast<char*>(&this_._impl_.major_)) +
sizeof(_impl_.patch_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL Version::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const Version& this_ = static_cast<const Version&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL Version::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const Version& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.Version)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional int32 major = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
stream, this_._internal_major(), target);
}
// optional int32 minor = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
stream, this_._internal_minor(), target);
}
// optional int32 patch = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
stream, this_._internal_patch(), target);
}
// optional string suffix = 4;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_suffix();
target = stream->WriteStringMaybeAliased(4, _s, target);
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Version)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Version::ByteSizeLong(const MessageLite& base) {
const Version& this_ = static_cast<const Version&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t Version::ByteSizeLong() const {
const Version& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Version)
::size_t total_size = 0;
::uint32_t cached_has_bits [[maybe_unused]] = 0;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional string suffix = 4;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_suffix());
}
// optional int32 major = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_major());
}
// optional int32 minor = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_minor());
}
// optional int32 patch = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_patch());
}
}
return this_.MaybeComputeUnknownFieldsSize(total_size,
&this_._impl_._cached_size_);
}
void Version::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<Version*>(&to_msg);
auto& from = static_cast<const Version&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.Version)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_suffix(from._internal_suffix());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_impl_.major_ = from._impl_.major_;
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.minor_ = from._impl_.minor_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.patch_ = from._impl_.patch_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
}
void Version::CopyFrom(const Version& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.Version)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Version::InternalSwap(Version* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.suffix_, &other->_impl_.suffix_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(Version, _impl_.patch_)
+ sizeof(Version::_impl_.patch_)
- PROTOBUF_FIELD_OFFSET(Version, _impl_.major_)>(
reinterpret_cast<char*>(&_impl_.major_),
reinterpret_cast<char*>(&other->_impl_.major_));
}
::google::protobuf::Metadata Version::GetMetadata() const {
return Super_::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================
void CodeGeneratorRequest::clear_proto_file() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.proto_file_.Clear();
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
void CodeGeneratorRequest::clear_source_file_descriptors() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.source_file_descriptors_.Clear();
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
CodeGeneratorRequest::CodeGeneratorRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: Super_(arena, CodeGeneratorRequest_get_class_data()) {
#else // PROTOBUF_CUSTOM_VTABLE
: Super_(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorRequest)
}
PROTOBUF_NDEBUG_INLINE CodeGeneratorRequest::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::google::protobuf::compiler::CodeGeneratorRequest& from_msg)
: _has_bits_{from._has_bits_},
file_to_generate_ {
visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorRequest,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.file_to_generate_)>()
, arena, from.file_to_generate_
}
,
proto_file_ {
visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorRequest,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.proto_file_)>()
, arena, from.proto_file_
}
,
parameter_(arena, from.parameter_),
source_file_descriptors_ {
visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorRequest,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.source_file_descriptors_)>()
, arena, from.source_file_descriptors_
}
{}
CodeGeneratorRequest::CodeGeneratorRequest(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const CodeGeneratorRequest& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: Super_(arena, CodeGeneratorRequest_get_class_data()) {
#else // PROTOBUF_CUSTOM_VTABLE
: Super_(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
CodeGeneratorRequest* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::uint32_t cached_has_bits = _impl_._has_bits_[0];
_impl_.compiler_version_ = (CheckHasBit(cached_has_bits, 0x00000008U))
? Super_::CopyConstruct(arena, *from._impl_.compiler_version_)
: nullptr;
// @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorRequest)
}
PROTOBUF_NDEBUG_INLINE CodeGeneratorRequest::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: file_to_generate_ { visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorRequest,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.file_to_generate_)>()
}
,
proto_file_ { visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorRequest,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.proto_file_)>()
}
,
parameter_(arena),
source_file_descriptors_ { visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorRequest,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.source_file_descriptors_)>()
}
{}
inline void CodeGeneratorRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.compiler_version_ = {};
}
CodeGeneratorRequest::~CodeGeneratorRequest() {
// @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorRequest)
SharedDtor(*this);
}
inline void CodeGeneratorRequest::SharedDtor(MessageLite& self) {
CodeGeneratorRequest& this_ = static_cast<CodeGeneratorRequest&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.parameter_.Destroy();
delete this_._impl_.compiler_version_;
this_._impl_.~Impl_();
}
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
::google::protobuf::internal::ClassDataFull CodeGeneratorRequest_class_data_ =
CodeGeneratorRequest::InternalGenerateClassData_(CodeGeneratorRequest_globals_._default);
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CodeGeneratorRequest::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&CodeGeneratorRequest_class_data_);
::google::protobuf::internal::PrefetchToLocalCache(CodeGeneratorRequest_class_data_.tc_table);
return CodeGeneratorRequest_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CodeGeneratorRequest::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&CodeGeneratorRequest_globals_);
::google::protobuf::internal::PrefetchToLocalCache(
::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&CodeGeneratorRequest_globals_));
return CodeGeneratorRequest_globals_.GetClassData();
}
#endif // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CodeGeneratorRequest::ParseTableT_
CodeGeneratorRequest::_table_ =
CodeGeneratorRequest::InternalGenerateParseTable_(CodeGeneratorRequest_class_data_.base());
#endif // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CodeGeneratorRequest::Clear() {
auto& this_ [[maybe_unused]] = *this;
// @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorRequest)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits [[maybe_unused]] = 0;
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_impl_.file_to_generate_.Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_impl_.proto_file_.Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
this_._impl_.parameter_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(this_._impl_.compiler_version_ != nullptr);
this_._impl_.compiler_version_->Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_impl_.source_file_descriptors_.Clear();
}
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CodeGeneratorRequest::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const CodeGeneratorRequest& this_ = static_cast<const CodeGeneratorRequest&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CodeGeneratorRequest::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const CodeGeneratorRequest& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// repeated string file_to_generate = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
for (int i = 0, n = this_._internal_file_to_generate_size(); i < n; ++i) {
const auto& s = this_._internal_file_to_generate().Get(i);
target = stream->WriteString(1, s, target);
}
}
// optional string parameter = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
const ::std::string& _s = this_._internal_parameter();
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// optional .google.protobuf.compiler.Version compiler_version = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3, *this_._impl_.compiler_version_, this_._impl_.compiler_version_->GetCachedSize(), target,
stream);
}
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_proto_file_size());
i < n; i++) {
const auto& repfield = this_._internal_proto_file().Get(i);
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
15, repfield, repfield.GetCachedSize(), target,
stream);
}
}
// repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_source_file_descriptors_size());
i < n; i++) {
const auto& repfield = this_._internal_source_file_descriptors().Get(i);
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
17, repfield, repfield.GetCachedSize(), target,
stream);
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorRequest)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CodeGeneratorRequest::ByteSizeLong(const MessageLite& base) {
const CodeGeneratorRequest& this_ = static_cast<const CodeGeneratorRequest&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t CodeGeneratorRequest::ByteSizeLong() const {
const CodeGeneratorRequest& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorRequest)
::size_t total_size = 0;
::uint32_t cached_has_bits [[maybe_unused]] = 0;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
// repeated string file_to_generate = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size +=
1 * ::google::protobuf::internal::FromIntSize(this_._internal_file_to_generate().size());
for (int i = 0, n = this_._internal_file_to_generate().size(); i < n; ++i) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_file_to_generate().Get(i));
}
}
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1UL * this_._internal_proto_file_size();
for (const auto& msg : this_._internal_proto_file()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
// optional string parameter = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_parameter());
}
// optional .google.protobuf.compiler.Version compiler_version = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.compiler_version_);
}
// repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += 2UL * this_._internal_source_file_descriptors_size();
for (const auto& msg : this_._internal_source_file_descriptors()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
}
return this_.MaybeComputeUnknownFieldsSize(total_size,
&this_._impl_._cached_size_);
}
void CodeGeneratorRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<CodeGeneratorRequest*>(&to_msg);
auto& from = static_cast<const CodeGeneratorRequest&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorRequest)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_mutable_file_to_generate()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_file_to_generate());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_internal_mutable_proto_file()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_proto_file());
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_internal_set_parameter(from._internal_parameter());
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(from._impl_.compiler_version_ != nullptr);
if (_this->_impl_.compiler_version_ == nullptr) {
_this->_impl_.compiler_version_ = Super_::CopyConstruct(arena, *from._impl_.compiler_version_);
} else {
_this->_impl_.compiler_version_->MergeFrom(*from._impl_.compiler_version_);
}
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_internal_mutable_source_file_descriptors()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_source_file_descriptors());
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
}
void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorRequest)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool CodeGeneratorRequest::IsInitializedImpl(
const MessageLite& msg) {
auto& this_ = static_cast<const CodeGeneratorRequest&>(msg);
if (!::google::protobuf::internal::AllAreInitialized(this_._internal_proto_file()))
return false;
if (!::google::protobuf::internal::AllAreInitialized(this_._internal_source_file_descriptors()))
return false;
return true;
}
void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
_impl_.file_to_generate_.InternalSwap(&other->_impl_.file_to_generate_);
_impl_.proto_file_.InternalSwap(&other->_impl_.proto_file_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parameter_, &other->_impl_.parameter_, arena);
swap(_impl_.compiler_version_, other->_impl_.compiler_version_);
_impl_.source_file_descriptors_.InternalSwap(&other->_impl_.source_file_descriptors_);
}
::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const {
return Super_::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================
void CodeGeneratorResponse_File::clear_generated_code_info() {
::google::protobuf::internal::TSanWrite(&_impl_);
if (_impl_.generated_code_info_ != nullptr) _impl_.generated_code_info_->Clear();
ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
CodeGeneratorResponse_File::CodeGeneratorResponse_File(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: Super_(arena, CodeGeneratorResponse_File_get_class_data()) {
#else // PROTOBUF_CUSTOM_VTABLE
: Super_(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
}
PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse_File::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::google::protobuf::compiler::CodeGeneratorResponse_File& from_msg)
: _has_bits_{from._has_bits_},
name_(arena, from.name_),
insertion_point_(arena, from.insertion_point_),
content_(arena, from.content_) {}
CodeGeneratorResponse_File::CodeGeneratorResponse_File(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const CodeGeneratorResponse_File& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: Super_(arena, CodeGeneratorResponse_File_get_class_data()) {
#else // PROTOBUF_CUSTOM_VTABLE
: Super_(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
CodeGeneratorResponse_File* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::uint32_t cached_has_bits = _impl_._has_bits_[0];
_impl_.generated_code_info_ = (CheckHasBit(cached_has_bits, 0x00000008U))
? Super_::CopyConstruct(arena, *from._impl_.generated_code_info_)
: nullptr;
// @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
}
PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse_File::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: name_(arena),
insertion_point_(arena),
content_(arena) {}
inline void CodeGeneratorResponse_File::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
_impl_.generated_code_info_ = {};
}
CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
// @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse.File)
SharedDtor(*this);
}
inline void CodeGeneratorResponse_File::SharedDtor(MessageLite& self) {
CodeGeneratorResponse_File& this_ = static_cast<CodeGeneratorResponse_File&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.name_.Destroy();
this_._impl_.insertion_point_.Destroy();
this_._impl_.content_.Destroy();
delete this_._impl_.generated_code_info_;
this_._impl_.~Impl_();
}
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
::google::protobuf::internal::ClassDataFull CodeGeneratorResponse_File_class_data_ =
CodeGeneratorResponse_File::InternalGenerateClassData_(CodeGeneratorResponse_File_globals_._default);
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CodeGeneratorResponse_File::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&CodeGeneratorResponse_File_class_data_);
::google::protobuf::internal::PrefetchToLocalCache(CodeGeneratorResponse_File_class_data_.tc_table);
return CodeGeneratorResponse_File_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CodeGeneratorResponse_File::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&CodeGeneratorResponse_File_globals_);
::google::protobuf::internal::PrefetchToLocalCache(
::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&CodeGeneratorResponse_File_globals_));
return CodeGeneratorResponse_File_globals_.GetClassData();
}
#endif // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CodeGeneratorResponse_File::ParseTableT_
CodeGeneratorResponse_File::_table_ =
CodeGeneratorResponse_File::InternalGenerateParseTable_(CodeGeneratorResponse_File_class_data_.base());
#endif // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CodeGeneratorResponse_File::Clear() {
auto& this_ [[maybe_unused]] = *this;
// @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse.File)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits [[maybe_unused]] = 0;
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
this_._impl_.name_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
this_._impl_.insertion_point_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
this_._impl_.content_.ClearNonDefaultToEmpty();
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(this_._impl_.generated_code_info_ != nullptr);
this_._impl_.generated_code_info_->Clear();
}
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse_File::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const CodeGeneratorResponse_File& this_ = static_cast<const CodeGeneratorResponse_File&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse_File::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const CodeGeneratorResponse_File& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse.File)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional string name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
const ::std::string& _s = this_._internal_name();
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// optional string insertion_point = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
const ::std::string& _s = this_._internal_insertion_point();
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// optional string content = 15;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
const ::std::string& _s = this_._internal_content();
target = stream->WriteStringMaybeAliased(15, _s, target);
}
// optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
16, *this_._impl_.generated_code_info_, this_._impl_.generated_code_info_->GetCachedSize(), target,
stream);
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse.File)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CodeGeneratorResponse_File::ByteSizeLong(const MessageLite& base) {
const CodeGeneratorResponse_File& this_ = static_cast<const CodeGeneratorResponse_File&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t CodeGeneratorResponse_File::ByteSizeLong() const {
const CodeGeneratorResponse_File& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse.File)
::size_t total_size = 0;
::uint32_t cached_has_bits [[maybe_unused]] = 0;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
// optional string name = 1;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_name());
}
// optional string insertion_point = 2;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_insertion_point());
}
// optional string content = 15;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_content());
}
// optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.generated_code_info_);
}
}
return this_.MaybeComputeUnknownFieldsSize(total_size,
&this_._impl_._cached_size_);
}
void CodeGeneratorResponse_File::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<CodeGeneratorResponse_File*>(&to_msg);
auto& from = static_cast<const CodeGeneratorResponse_File&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_set_name(from._internal_name());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_internal_set_insertion_point(from._internal_insertion_point());
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_internal_set_content(from._internal_content());
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
ABSL_DCHECK(from._impl_.generated_code_info_ != nullptr);
if (_this->_impl_.generated_code_info_ == nullptr) {
_this->_impl_.generated_code_info_ = Super_::CopyConstruct(arena, *from._impl_.generated_code_info_);
} else {
_this->_impl_.generated_code_info_->MergeFrom(*from._impl_.generated_code_info_);
}
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
}
void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.insertion_point_, &other->_impl_.insertion_point_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_, &other->_impl_.content_, arena);
swap(_impl_.generated_code_info_, other->_impl_.generated_code_info_);
}
::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const {
return Super_::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================
CodeGeneratorResponse::CodeGeneratorResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: Super_(arena, CodeGeneratorResponse_get_class_data()) {
#else // PROTOBUF_CUSTOM_VTABLE
: Super_(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse)
}
PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
[[maybe_unused]] const ::google::protobuf::compiler::CodeGeneratorResponse& from_msg)
: _has_bits_{from._has_bits_},
file_ {
visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorResponse,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.file_)>()
, arena, from.file_
}
,
error_(arena, from.error_) {}
CodeGeneratorResponse::CodeGeneratorResponse(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const CodeGeneratorResponse& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: Super_(arena, CodeGeneratorResponse_get_class_data()) {
#else // PROTOBUF_CUSTOM_VTABLE
: Super_(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
CodeGeneratorResponse* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, supported_features_),
reinterpret_cast<const char*>(&from._impl_) +
offsetof(Impl_, supported_features_),
offsetof(Impl_, maximum_edition_) -
offsetof(Impl_, supported_features_) +
sizeof(Impl_::maximum_edition_));
// @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse)
}
PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse::Impl_::Impl_(
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
: file_ { visibility, ::_pbi::InternalMetadataOffset::Build<
::google::protobuf::compiler::CodeGeneratorResponse,
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.file_)>()
}
,
error_(arena) {}
inline void CodeGeneratorResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char*>(&_impl_) +
offsetof(Impl_, supported_features_),
0,
offsetof(Impl_, maximum_edition_) -
offsetof(Impl_, supported_features_) +
sizeof(Impl_::maximum_edition_));
}
CodeGeneratorResponse::~CodeGeneratorResponse() {
// @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse)
SharedDtor(*this);
}
inline void CodeGeneratorResponse::SharedDtor(MessageLite& self) {
CodeGeneratorResponse& this_ = static_cast<CodeGeneratorResponse&>(self);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
ABSL_DCHECK(this_.GetArena() == nullptr);
this_._impl_.error_.Destroy();
this_._impl_.~Impl_();
}
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
::google::protobuf::internal::ClassDataFull CodeGeneratorResponse_class_data_ =
CodeGeneratorResponse::InternalGenerateClassData_(CodeGeneratorResponse_globals_._default);
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CodeGeneratorResponse::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&CodeGeneratorResponse_class_data_);
::google::protobuf::internal::PrefetchToLocalCache(CodeGeneratorResponse_class_data_.tc_table);
return CodeGeneratorResponse_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CodeGeneratorResponse::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&CodeGeneratorResponse_globals_);
::google::protobuf::internal::PrefetchToLocalCache(
::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&CodeGeneratorResponse_globals_));
return CodeGeneratorResponse_globals_.GetClassData();
}
#endif // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CodeGeneratorResponse::ParseTableT_
CodeGeneratorResponse::_table_ =
CodeGeneratorResponse::InternalGenerateParseTable_(CodeGeneratorResponse_class_data_.base());
#endif // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CodeGeneratorResponse::Clear() {
auto& this_ [[maybe_unused]] = *this;
// @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits [[maybe_unused]] = 0;
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_impl_.file_.Clear();
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
this_._impl_.error_.ClearNonDefaultToEmpty();
}
}
if (BatchCheckHasBit(cached_has_bits, 0x0000001cU)) {
::memset(&this_._impl_.supported_features_, 0,
static_cast<::size_t>(
reinterpret_cast<char*>(&this_._impl_.maximum_edition_) -
reinterpret_cast<char*>(&this_._impl_.supported_features_)) +
sizeof(_impl_.maximum_edition_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse::_InternalSerialize(
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
const CodeGeneratorResponse& this_ = static_cast<const CodeGeneratorResponse&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CodeGeneratorResponse::_InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
const CodeGeneratorResponse& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
this_.CheckHasBitConsistency();
}
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = this_._impl_._has_bits_[0];
// optional string error = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
const ::std::string& _s = this_._internal_error();
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// optional uint64 supported_features = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
2, this_._internal_supported_features(), target);
}
// optional int32 minimum_edition = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
stream, this_._internal_minimum_edition(), target);
}
// optional int32 maximum_edition = 4;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
target =
::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
stream, this_._internal_maximum_edition(), target);
}
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
for (unsigned i = 0, n = static_cast<unsigned>(
this_._internal_file_size());
i < n; i++) {
const auto& repfield = this_._internal_file().Get(i);
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
15, repfield, repfield.GetCachedSize(), target,
stream);
}
}
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CodeGeneratorResponse::ByteSizeLong(const MessageLite& base) {
const CodeGeneratorResponse& this_ = static_cast<const CodeGeneratorResponse&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t CodeGeneratorResponse::ByteSizeLong() const {
const CodeGeneratorResponse& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse)
::size_t total_size = 0;
::uint32_t cached_has_bits [[maybe_unused]] = 0;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
cached_has_bits = this_._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
total_size += 1UL * this_._internal_file_size();
for (const auto& msg : this_._internal_file()) {
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
}
// optional string error = 1;
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_error());
}
// optional uint64 supported_features = 2;
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
this_._internal_supported_features());
}
// optional int32 minimum_edition = 3;
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_minimum_edition());
}
// optional int32 maximum_edition = 4;
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_maximum_edition());
}
}
return this_.MaybeComputeUnknownFieldsSize(total_size,
&this_._impl_._cached_size_);
}
void CodeGeneratorResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<CodeGeneratorResponse*>(&to_msg);
auto& from = static_cast<const CodeGeneratorResponse&>(from_msg);
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
from.CheckHasBitConsistency();
}
::google::protobuf::Arena* arena = _this->GetArena();
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = from._impl_._has_bits_[0];
if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
_this->_internal_mutable_file()->InternalMergeFromWithArena(
::google::protobuf::MessageLite::internal_visibility(), arena,
from._internal_file());
}
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
_this->_internal_set_error(from._internal_error());
}
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
_this->_impl_.supported_features_ = from._impl_.supported_features_;
}
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
_this->_impl_.minimum_edition_ = from._impl_.minimum_edition_;
}
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
_this->_impl_.maximum_edition_ = from._impl_.maximum_edition_;
}
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
}
void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
using ::std::swap;
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
_impl_.file_.InternalSwap(&other->_impl_.file_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.maximum_edition_)
+ sizeof(CodeGeneratorResponse::_impl_.maximum_edition_)
- PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_)>(
reinterpret_cast<char*>(&_impl_.supported_features_),
reinterpret_cast<char*>(&other->_impl_.supported_features_));
}
::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const {
return Super_::GetMetadataImpl(GetClassData()->full());
}
// @@protoc_insertion_point(namespace_scope)
} // namespace compiler
} // namespace protobuf
} // namespace google
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
_static_init2_ [[maybe_unused]] =
(::_pbi::AddDescriptors(&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto),
::std::false_type{});
#include "google/protobuf/port_undef.inc"