1591 lines
67 KiB
C++
1591 lines
67 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: google/protobuf/compiler/plugin.proto
|
|
|
|
#include "google/protobuf/compiler/plugin.pb.h"
|
|
|
|
#include <algorithm>
|
|
#include "google/protobuf/io/coded_stream.h"
|
|
#include "google/protobuf/extension_set.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"
|
|
#include "google/protobuf/generated_message_tctable_impl.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;
|
|
namespace google {
|
|
namespace protobuf {
|
|
namespace compiler {
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR Version::Version(::_pbi::ConstantInitialized)
|
|
: _impl_{
|
|
/*decltype(_impl_._has_bits_)*/ {},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
/*decltype(_impl_.suffix_)*/ {
|
|
&::_pbi::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized{},
|
|
},
|
|
/*decltype(_impl_.major_)*/ 0,
|
|
/*decltype(_impl_.minor_)*/ 0,
|
|
/*decltype(_impl_.patch_)*/ 0,
|
|
} {}
|
|
struct VersionDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR VersionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~VersionDefaultTypeInternal() {}
|
|
union {
|
|
Version _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VersionDefaultTypeInternal _Version_default_instance_;
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR CodeGeneratorRequest::CodeGeneratorRequest(::_pbi::ConstantInitialized)
|
|
: _impl_{
|
|
/*decltype(_impl_._has_bits_)*/ {},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
/*decltype(_impl_.file_to_generate_)*/ {},
|
|
/*decltype(_impl_.proto_file_)*/ {},
|
|
/*decltype(_impl_.source_file_descriptors_)*/ {},
|
|
/*decltype(_impl_.parameter_)*/ {
|
|
&::_pbi::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized{},
|
|
},
|
|
/*decltype(_impl_.compiler_version_)*/ nullptr,
|
|
} {}
|
|
struct CodeGeneratorRequestDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR CodeGeneratorRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~CodeGeneratorRequestDefaultTypeInternal() {}
|
|
union {
|
|
CodeGeneratorRequest _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_;
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR CodeGeneratorResponse_File::CodeGeneratorResponse_File(::_pbi::ConstantInitialized)
|
|
: _impl_{
|
|
/*decltype(_impl_._has_bits_)*/ {},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
/*decltype(_impl_.name_)*/ {
|
|
&::_pbi::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized{},
|
|
},
|
|
/*decltype(_impl_.insertion_point_)*/ {
|
|
&::_pbi::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized{},
|
|
},
|
|
/*decltype(_impl_.content_)*/ {
|
|
&::_pbi::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized{},
|
|
},
|
|
/*decltype(_impl_.generated_code_info_)*/ nullptr,
|
|
} {}
|
|
struct CodeGeneratorResponse_FileDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR CodeGeneratorResponse_FileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~CodeGeneratorResponse_FileDefaultTypeInternal() {}
|
|
union {
|
|
CodeGeneratorResponse_File _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_;
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR CodeGeneratorResponse::CodeGeneratorResponse(::_pbi::ConstantInitialized)
|
|
: _impl_{
|
|
/*decltype(_impl_._has_bits_)*/ {},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
/*decltype(_impl_.file_)*/ {},
|
|
/*decltype(_impl_.error_)*/ {
|
|
&::_pbi::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized{},
|
|
},
|
|
/*decltype(_impl_.supported_features_)*/ ::uint64_t{0u},
|
|
} {}
|
|
struct CodeGeneratorResponseDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR CodeGeneratorResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~CodeGeneratorResponseDefaultTypeInternal() {}
|
|
union {
|
|
CodeGeneratorResponse _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_;
|
|
} // namespace compiler
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
static ::_pb::Metadata file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto[4];
|
|
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto[1];
|
|
static constexpr const ::_pb::ServiceDescriptor**
|
|
file_level_service_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto = nullptr;
|
|
const ::uint32_t TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
|
|
protodesc_cold) = {
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
~0u, // no _split_
|
|
~0u, // no sizeof(Split)
|
|
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,
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
~0u, // no _split_
|
|
~0u, // no sizeof(Split)
|
|
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_),
|
|
~0u,
|
|
0,
|
|
~0u,
|
|
~0u,
|
|
1,
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
~0u, // no _split_
|
|
~0u, // no sizeof(Split)
|
|
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,
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
~0u, // no _split_
|
|
~0u, // no sizeof(Split)
|
|
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_.file_),
|
|
0,
|
|
1,
|
|
~0u,
|
|
};
|
|
|
|
static const ::_pbi::MigrationSchema
|
|
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{0, 12, -1, sizeof(::google::protobuf::compiler::Version)},
|
|
{16, 29, -1, sizeof(::google::protobuf::compiler::CodeGeneratorRequest)},
|
|
{34, 46, -1, sizeof(::google::protobuf::compiler::CodeGeneratorResponse_File)},
|
|
{50, 61, -1, sizeof(::google::protobuf::compiler::CodeGeneratorResponse)},
|
|
};
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
&::google::protobuf::compiler::_Version_default_instance_._instance,
|
|
&::google::protobuf::compiler::_CodeGeneratorRequest_default_instance_._instance,
|
|
&::google::protobuf::compiler::_CodeGeneratorResponse_File_default_instance_._instance,
|
|
&::google::protobuf::compiler::_CodeGeneratorResponse_default_instance_._instance,
|
|
};
|
|
const char descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto[] PROTOBUF_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\"\340\002\n\025Code"
|
|
"GeneratorResponse\022\r\n\005error\030\001 \001(\t\022\032\n\022supp"
|
|
"orted_features\030\002 \001(\004\022B\n\004file\030\017 \003(\01324.goo"
|
|
"gle.protobuf.compiler.CodeGeneratorRespo"
|
|
"nse.File\032\177\n\004File\022\014\n\004name\030\001 \001(\t\022\027\n\017insert"
|
|
"ion_point\030\002 \001(\t\022\017\n\007content\030\017 \001(\t\022\?\n\023gene"
|
|
"rated_code_info\030\020 \001(\0132\".google.protobuf."
|
|
"GeneratedCodeInfo\"W\n\007Feature\022\020\n\014FEATURE_"
|
|
"NONE\020\000\022\033\n\027FEATURE_PROTO3_OPTIONAL\020\001\022\035\n\031F"
|
|
"EATURE_SUPPORTS_EDITIONS\020\002Br\n\034com.google"
|
|
".protobuf.compilerB\014PluginProtosZ)google"
|
|
".golang.org/protobuf/types/pluginpb\252\002\030Go"
|
|
"ogle.Protobuf.Compiler"
|
|
};
|
|
static const ::_pbi::DescriptorTable* 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;
|
|
const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto = {
|
|
false,
|
|
false,
|
|
902,
|
|
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_default_instances,
|
|
TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets,
|
|
file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
|
|
file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
|
|
file_level_service_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
|
|
};
|
|
|
|
// This function exists to be marked as weak.
|
|
// It can significantly speed up compilation by breaking up LLVM's SCC
|
|
// in the .pb.cc translation units. Large translation units see a
|
|
// reduction of more than 35% of walltime for optimized builds. Without
|
|
// the weak attribute all the messages in the file, including all the
|
|
// vtables and everything they use become part of the same SCC through
|
|
// a cycle like:
|
|
// GetMetadata -> descriptor table -> default instances ->
|
|
// vtables -> GetMetadata
|
|
// By adding a weak function here we break the connection from the
|
|
// individual vtables back into the descriptor table.
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_getter() {
|
|
return &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
|
|
}
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
|
|
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fprotobuf_2fcompiler_2fplugin_2eproto(&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
|
|
namespace google {
|
|
namespace protobuf {
|
|
namespace compiler {
|
|
const ::google::protobuf::EnumDescriptor* 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];
|
|
}
|
|
bool CodeGeneratorResponse_Feature_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
#if (__cplusplus < 201703) && \
|
|
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
|
|
constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::FEATURE_NONE;
|
|
constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::FEATURE_PROTO3_OPTIONAL;
|
|
constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::FEATURE_SUPPORTS_EDITIONS;
|
|
constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::Feature_MIN;
|
|
constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::Feature_MAX;
|
|
constexpr int CodeGeneratorResponse::Feature_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) &&
|
|
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
// ===================================================================
|
|
|
|
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_);
|
|
static void set_has_major(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 2u;
|
|
}
|
|
static void set_has_minor(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 4u;
|
|
}
|
|
static void set_has_patch(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 8u;
|
|
}
|
|
static void set_has_suffix(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
};
|
|
|
|
Version::Version(::google::protobuf::Arena* arena)
|
|
: ::google::protobuf::Message(arena) {
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.Version)
|
|
}
|
|
Version::Version(const Version& from) : ::google::protobuf::Message() {
|
|
Version* const _this = this;
|
|
(void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
decltype(_impl_.suffix_){},
|
|
decltype(_impl_.major_){},
|
|
decltype(_impl_.minor_){},
|
|
decltype(_impl_.patch_){},
|
|
};
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
|
from._internal_metadata_);
|
|
_impl_.suffix_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.suffix_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
|
|
_this->_impl_.suffix_.Set(from._internal_suffix(), _this->GetArenaForAllocation());
|
|
}
|
|
::memcpy(&_impl_.major_, &from._impl_.major_,
|
|
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.patch_) -
|
|
reinterpret_cast<char*>(&_impl_.major_)) + sizeof(_impl_.patch_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.Version)
|
|
}
|
|
inline void Version::SharedCtor(::_pb::Arena* arena) {
|
|
(void)arena;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
decltype(_impl_.suffix_){},
|
|
decltype(_impl_.major_){0},
|
|
decltype(_impl_.minor_){0},
|
|
decltype(_impl_.patch_){0},
|
|
};
|
|
_impl_.suffix_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.suffix_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
Version::~Version() {
|
|
// @@protoc_insertion_point(destructor:google.protobuf.compiler.Version)
|
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
|
SharedDtor();
|
|
}
|
|
inline void Version::SharedDtor() {
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.suffix_.Destroy();
|
|
}
|
|
void Version::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE void Version::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.Version)
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_impl_.suffix_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (cached_has_bits & 0x0000000eu) {
|
|
::memset(&_impl_.major_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.patch_) -
|
|
reinterpret_cast<char*>(&_impl_.major_)) + sizeof(_impl_.patch_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Version::_InternalParse(
|
|
const char* ptr, ::_pbi::ParseContext* ctx) {
|
|
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
|
|
return ptr;
|
|
}
|
|
|
|
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 4, 0, 47, 2> Version::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(Version, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
4, 24, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967280, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
4, // num_field_entries
|
|
0, // num_aux_entries
|
|
offsetof(decltype(_table_), field_names), // no aux_entries
|
|
&_Version_default_instance_._instance,
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
}, {{
|
|
// optional string suffix = 4;
|
|
{::_pbi::TcParser::FastSS1,
|
|
{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::kRawString | ::_fl::kRepAString)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
"\40\0\0\0\6\0\0\0"
|
|
"google.protobuf.compiler.Version"
|
|
"suffix"
|
|
}},
|
|
};
|
|
|
|
::uint8_t* Version::_InternalSerialize(
|
|
::uint8_t* target,
|
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.Version)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
// optional int32 major = 1;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteInt32ToArrayWithField<1>(
|
|
stream, this->_internal_major(), target);
|
|
}
|
|
|
|
// optional int32 minor = 2;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteInt32ToArrayWithField<2>(
|
|
stream, this->_internal_minor(), target);
|
|
}
|
|
|
|
// optional int32 patch = 3;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteInt32ToArrayWithField<3>(
|
|
stream, this->_internal_patch(), target);
|
|
}
|
|
|
|
// optional string suffix = 4;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
const std::string& _s = this->_internal_suffix();
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"google.protobuf.compiler.Version.suffix");
|
|
target = stream->WriteStringMaybeAliased(4, _s, target);
|
|
}
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
target =
|
|
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
_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;
|
|
}
|
|
|
|
::size_t Version::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Version)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x0000000fu) {
|
|
// optional string suffix = 4;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->_internal_suffix());
|
|
}
|
|
|
|
// optional int32 major = 1;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this->_internal_major());
|
|
}
|
|
|
|
// optional int32 minor = 2;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this->_internal_minor());
|
|
}
|
|
|
|
// optional int32 patch = 3;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
this->_internal_patch());
|
|
}
|
|
|
|
}
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::google::protobuf::Message::ClassData Version::_class_data_ = {
|
|
::google::protobuf::Message::CopyWithSourceCheck,
|
|
Version::MergeImpl
|
|
};
|
|
const ::google::protobuf::Message::ClassData*Version::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void Version::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
|
auto* const _this = static_cast<Version*>(&to_msg);
|
|
auto& from = static_cast<const Version&>(from_msg);
|
|
// @@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 (cached_has_bits & 0x0000000fu) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_this->_internal_set_suffix(from._internal_suffix());
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
_this->_impl_.major_ = from._impl_.major_;
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
_this->_impl_.minor_ = from._impl_.minor_;
|
|
}
|
|
if (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);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool Version::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void Version::InternalSwap(Version* other) {
|
|
using std::swap;
|
|
auto* lhs_arena = GetArenaForAllocation();
|
|
auto* rhs_arena = other->GetArenaForAllocation();
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.suffix_, lhs_arena,
|
|
&other->_impl_.suffix_, rhs_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 ::_pbi::AssignDescriptors(
|
|
&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_getter, &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once,
|
|
file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto[0]);
|
|
}
|
|
// ===================================================================
|
|
|
|
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_);
|
|
static void set_has_parameter(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
static const ::google::protobuf::compiler::Version& compiler_version(const CodeGeneratorRequest* msg);
|
|
static void set_has_compiler_version(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 2u;
|
|
}
|
|
};
|
|
|
|
const ::google::protobuf::compiler::Version& CodeGeneratorRequest::_Internal::compiler_version(const CodeGeneratorRequest* msg) {
|
|
return *msg->_impl_.compiler_version_;
|
|
}
|
|
void CodeGeneratorRequest::clear_proto_file() {
|
|
_internal_mutable_proto_file()->Clear();
|
|
}
|
|
void CodeGeneratorRequest::clear_source_file_descriptors() {
|
|
_internal_mutable_source_file_descriptors()->Clear();
|
|
}
|
|
CodeGeneratorRequest::CodeGeneratorRequest(::google::protobuf::Arena* arena)
|
|
: ::google::protobuf::Message(arena) {
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorRequest)
|
|
}
|
|
CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from) : ::google::protobuf::Message() {
|
|
CodeGeneratorRequest* const _this = this;
|
|
(void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
decltype(_impl_.file_to_generate_){from._impl_.file_to_generate_},
|
|
decltype(_impl_.proto_file_){from._impl_.proto_file_},
|
|
decltype(_impl_.source_file_descriptors_){from._impl_.source_file_descriptors_},
|
|
decltype(_impl_.parameter_){},
|
|
decltype(_impl_.compiler_version_){nullptr},
|
|
};
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
|
from._internal_metadata_);
|
|
_impl_.parameter_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.parameter_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
|
|
_this->_impl_.parameter_.Set(from._internal_parameter(), _this->GetArenaForAllocation());
|
|
}
|
|
if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
|
|
_this->_impl_.compiler_version_ = new ::google::protobuf::compiler::Version(*from._impl_.compiler_version_);
|
|
}
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorRequest)
|
|
}
|
|
inline void CodeGeneratorRequest::SharedCtor(::_pb::Arena* arena) {
|
|
(void)arena;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
decltype(_impl_.file_to_generate_){arena},
|
|
decltype(_impl_.proto_file_){arena},
|
|
decltype(_impl_.source_file_descriptors_){arena},
|
|
decltype(_impl_.parameter_){},
|
|
decltype(_impl_.compiler_version_){nullptr},
|
|
};
|
|
_impl_.parameter_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.parameter_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
CodeGeneratorRequest::~CodeGeneratorRequest() {
|
|
// @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorRequest)
|
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
|
SharedDtor();
|
|
}
|
|
inline void CodeGeneratorRequest::SharedDtor() {
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_internal_mutable_file_to_generate()->~RepeatedPtrField();
|
|
_impl_.proto_file_.~RepeatedPtrField();
|
|
_impl_.source_file_descriptors_.~RepeatedPtrField();
|
|
_impl_.parameter_.Destroy();
|
|
if (this != internal_default_instance()) delete _impl_.compiler_version_;
|
|
}
|
|
void CodeGeneratorRequest::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE void CodeGeneratorRequest::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorRequest)
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_internal_mutable_file_to_generate()->Clear();
|
|
_internal_mutable_proto_file()->Clear();
|
|
_internal_mutable_source_file_descriptors()->Clear();
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000003u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_impl_.parameter_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
ABSL_DCHECK(_impl_.compiler_version_ != nullptr);
|
|
_impl_.compiler_version_->Clear();
|
|
}
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* CodeGeneratorRequest::_InternalParse(
|
|
const char* ptr, ::_pbi::ParseContext* ctx) {
|
|
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
|
|
return ptr;
|
|
}
|
|
|
|
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<3, 5, 3, 79, 2> CodeGeneratorRequest::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
17, 56, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294885368, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
5, // num_field_entries
|
|
3, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
&_CodeGeneratorRequest_default_instance_._instance,
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// repeated string file_to_generate = 1;
|
|
{::_pbi::TcParser::FastSR1,
|
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.file_to_generate_)}},
|
|
// optional string parameter = 2;
|
|
{::_pbi::TcParser::FastSS1,
|
|
{18, 0, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.parameter_)}},
|
|
// optional .google.protobuf.compiler.Version compiler_version = 3;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{26, 1, 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, 63, 1, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.proto_file_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// repeated string file_to_generate = 1;
|
|
{PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.file_to_generate_), -1, 0,
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)},
|
|
// optional string parameter = 2;
|
|
{PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.parameter_), _Internal::kHasBitsOffset + 0, 0,
|
|
(0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
|
|
// optional .google.protobuf.compiler.Version compiler_version = 3;
|
|
{PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.compiler_version_), _Internal::kHasBitsOffset + 1, 0,
|
|
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
|
|
{PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.proto_file_), -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_), -1, 2,
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}}, {{
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::compiler::Version>()},
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::FileDescriptorProto>()},
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::FileDescriptorProto>()},
|
|
}}, {{
|
|
"\55\20\11\0\0\0\0\0"
|
|
"google.protobuf.compiler.CodeGeneratorRequest"
|
|
"file_to_generate"
|
|
"parameter"
|
|
}},
|
|
};
|
|
|
|
::uint8_t* CodeGeneratorRequest::_InternalSerialize(
|
|
::uint8_t* target,
|
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
// repeated string file_to_generate = 1;
|
|
for (int i = 0, n = this->_internal_file_to_generate_size(); i < n; ++i) {
|
|
const auto& s = this->_internal_file_to_generate().Get(i);
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
|
|
target = stream->WriteString(1, s, target);
|
|
}
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
// optional string parameter = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
const std::string& _s = this->_internal_parameter();
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"google.protobuf.compiler.CodeGeneratorRequest.parameter");
|
|
target = stream->WriteStringMaybeAliased(2, _s, target);
|
|
}
|
|
|
|
// optional .google.protobuf.compiler.Version compiler_version = 3;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessage(3, _Internal::compiler_version(this),
|
|
_Internal::compiler_version(this).GetCachedSize(), target, stream);
|
|
}
|
|
|
|
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
|
|
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;
|
|
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 (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
target =
|
|
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
_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;
|
|
}
|
|
|
|
::size_t CodeGeneratorRequest::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorRequest)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated string file_to_generate = 1;
|
|
total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_file_to_generate().size());
|
|
for (int i = 0, n = _internal_file_to_generate().size(); i < n; ++i) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
_internal_file_to_generate().Get(i));
|
|
}
|
|
// repeated .google.protobuf.FileDescriptorProto proto_file = 15;
|
|
total_size += 1UL * this->_internal_proto_file_size();
|
|
for (const auto& msg : this->_internal_proto_file()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
// repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17;
|
|
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);
|
|
}
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000003u) {
|
|
// optional string parameter = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->_internal_parameter());
|
|
}
|
|
|
|
// optional .google.protobuf.compiler.Version compiler_version = 3;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*_impl_.compiler_version_);
|
|
}
|
|
|
|
}
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::google::protobuf::Message::ClassData CodeGeneratorRequest::_class_data_ = {
|
|
::google::protobuf::Message::CopyWithSourceCheck,
|
|
CodeGeneratorRequest::MergeImpl
|
|
};
|
|
const ::google::protobuf::Message::ClassData*CodeGeneratorRequest::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void CodeGeneratorRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
|
auto* const _this = static_cast<CodeGeneratorRequest*>(&to_msg);
|
|
auto& from = static_cast<const CodeGeneratorRequest&>(from_msg);
|
|
// @@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;
|
|
|
|
_this->_internal_mutable_file_to_generate()->MergeFrom(from._internal_file_to_generate());
|
|
_this->_internal_mutable_proto_file()->MergeFrom(from._internal_proto_file());
|
|
_this->_internal_mutable_source_file_descriptors()->MergeFrom(from._internal_source_file_descriptors());
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000003u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_this->_internal_set_parameter(from._internal_parameter());
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
_this->_internal_mutable_compiler_version()->::google::protobuf::compiler::Version::MergeFrom(
|
|
from._internal_compiler_version());
|
|
}
|
|
}
|
|
_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::IsInitialized() const {
|
|
if (!::google::protobuf::internal::AllAreInitialized(_internal_proto_file()))
|
|
return false;
|
|
if (!::google::protobuf::internal::AllAreInitialized(_internal_source_file_descriptors()))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) {
|
|
using std::swap;
|
|
auto* lhs_arena = GetArenaForAllocation();
|
|
auto* rhs_arena = other->GetArenaForAllocation();
|
|
_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_);
|
|
_impl_.source_file_descriptors_.InternalSwap(&other->_impl_.source_file_descriptors_);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parameter_, lhs_arena,
|
|
&other->_impl_.parameter_, rhs_arena);
|
|
swap(_impl_.compiler_version_, other->_impl_.compiler_version_);
|
|
}
|
|
|
|
::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_getter, &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once,
|
|
file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto[1]);
|
|
}
|
|
// ===================================================================
|
|
|
|
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_);
|
|
static void set_has_name(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
static void set_has_insertion_point(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 2u;
|
|
}
|
|
static void set_has_content(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 4u;
|
|
}
|
|
static const ::google::protobuf::GeneratedCodeInfo& generated_code_info(const CodeGeneratorResponse_File* msg);
|
|
static void set_has_generated_code_info(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 8u;
|
|
}
|
|
};
|
|
|
|
const ::google::protobuf::GeneratedCodeInfo& CodeGeneratorResponse_File::_Internal::generated_code_info(const CodeGeneratorResponse_File* msg) {
|
|
return *msg->_impl_.generated_code_info_;
|
|
}
|
|
void CodeGeneratorResponse_File::clear_generated_code_info() {
|
|
if (_impl_.generated_code_info_ != nullptr) _impl_.generated_code_info_->Clear();
|
|
_impl_._has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
CodeGeneratorResponse_File::CodeGeneratorResponse_File(::google::protobuf::Arena* arena)
|
|
: ::google::protobuf::Message(arena) {
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
|
|
}
|
|
CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from) : ::google::protobuf::Message() {
|
|
CodeGeneratorResponse_File* const _this = this;
|
|
(void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
decltype(_impl_.name_){},
|
|
decltype(_impl_.insertion_point_){},
|
|
decltype(_impl_.content_){},
|
|
decltype(_impl_.generated_code_info_){nullptr},
|
|
};
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
|
from._internal_metadata_);
|
|
_impl_.name_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.name_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
|
|
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
|
|
}
|
|
_impl_.insertion_point_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.insertion_point_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
|
|
_this->_impl_.insertion_point_.Set(from._internal_insertion_point(), _this->GetArenaForAllocation());
|
|
}
|
|
_impl_.content_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.content_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
|
|
_this->_impl_.content_.Set(from._internal_content(), _this->GetArenaForAllocation());
|
|
}
|
|
if ((from._impl_._has_bits_[0] & 0x00000008u) != 0) {
|
|
_this->_impl_.generated_code_info_ = new ::google::protobuf::GeneratedCodeInfo(*from._impl_.generated_code_info_);
|
|
}
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
|
|
}
|
|
inline void CodeGeneratorResponse_File::SharedCtor(::_pb::Arena* arena) {
|
|
(void)arena;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
decltype(_impl_.name_){},
|
|
decltype(_impl_.insertion_point_){},
|
|
decltype(_impl_.content_){},
|
|
decltype(_impl_.generated_code_info_){nullptr},
|
|
};
|
|
_impl_.name_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.name_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.insertion_point_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.insertion_point_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.content_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.content_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
|
|
// @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse.File)
|
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
|
SharedDtor();
|
|
}
|
|
inline void CodeGeneratorResponse_File::SharedDtor() {
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.name_.Destroy();
|
|
_impl_.insertion_point_.Destroy();
|
|
_impl_.content_.Destroy();
|
|
if (this != internal_default_instance()) delete _impl_.generated_code_info_;
|
|
}
|
|
void CodeGeneratorResponse_File::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE void CodeGeneratorResponse_File::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse.File)
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x0000000fu) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_impl_.name_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
_impl_.insertion_point_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
_impl_.content_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
ABSL_DCHECK(_impl_.generated_code_info_ != nullptr);
|
|
_impl_.generated_code_info_->Clear();
|
|
}
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* CodeGeneratorResponse_File::_InternalParse(
|
|
const char* ptr, ::_pbi::ParseContext* ctx) {
|
|
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
|
|
return ptr;
|
|
}
|
|
|
|
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 4, 1, 86, 2> CodeGeneratorResponse_File::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
16, 24, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294918140, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
4, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
&_CodeGeneratorResponse_File_default_instance_._instance,
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
}, {{
|
|
// 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::FastSS1,
|
|
{10, 0, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.name_)}},
|
|
// optional string insertion_point = 2;
|
|
{::_pbi::TcParser::FastSS1,
|
|
{18, 1, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.insertion_point_)}},
|
|
// optional string content = 15;
|
|
{::_pbi::TcParser::FastSS1,
|
|
{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::kRawString | ::_fl::kRepAString)},
|
|
// optional string insertion_point = 2;
|
|
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.insertion_point_), _Internal::kHasBitsOffset + 1, 0,
|
|
(0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
|
|
// optional string content = 15;
|
|
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.content_), _Internal::kHasBitsOffset + 2, 0,
|
|
(0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_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)},
|
|
}}, {{
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::GeneratedCodeInfo>()},
|
|
}}, {{
|
|
"\63\4\17\7\0\0\0\0"
|
|
"google.protobuf.compiler.CodeGeneratorResponse.File"
|
|
"name"
|
|
"insertion_point"
|
|
"content"
|
|
}},
|
|
};
|
|
|
|
::uint8_t* CodeGeneratorResponse_File::_InternalSerialize(
|
|
::uint8_t* target,
|
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
|
// @@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 = _impl_._has_bits_[0];
|
|
// optional string name = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
const std::string& _s = this->_internal_name();
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"google.protobuf.compiler.CodeGeneratorResponse.File.name");
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional string insertion_point = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
const std::string& _s = this->_internal_insertion_point();
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
|
|
target = stream->WriteStringMaybeAliased(2, _s, target);
|
|
}
|
|
|
|
// optional string content = 15;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
const std::string& _s = this->_internal_content();
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"google.protobuf.compiler.CodeGeneratorResponse.File.content");
|
|
target = stream->WriteStringMaybeAliased(15, _s, target);
|
|
}
|
|
|
|
// optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessage(16, _Internal::generated_code_info(this),
|
|
_Internal::generated_code_info(this).GetCachedSize(), target, stream);
|
|
}
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
target =
|
|
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
_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;
|
|
}
|
|
|
|
::size_t CodeGeneratorResponse_File::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse.File)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x0000000fu) {
|
|
// optional string name = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->_internal_name());
|
|
}
|
|
|
|
// optional string insertion_point = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->_internal_insertion_point());
|
|
}
|
|
|
|
// optional string content = 15;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->_internal_content());
|
|
}
|
|
|
|
// optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*_impl_.generated_code_info_);
|
|
}
|
|
|
|
}
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::google::protobuf::Message::ClassData CodeGeneratorResponse_File::_class_data_ = {
|
|
::google::protobuf::Message::CopyWithSourceCheck,
|
|
CodeGeneratorResponse_File::MergeImpl
|
|
};
|
|
const ::google::protobuf::Message::ClassData*CodeGeneratorResponse_File::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void CodeGeneratorResponse_File::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
|
auto* const _this = static_cast<CodeGeneratorResponse_File*>(&to_msg);
|
|
auto& from = static_cast<const CodeGeneratorResponse_File&>(from_msg);
|
|
// @@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 (cached_has_bits & 0x0000000fu) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_this->_internal_set_name(from._internal_name());
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
_this->_internal_set_insertion_point(from._internal_insertion_point());
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
_this->_internal_set_content(from._internal_content());
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
_this->_internal_mutable_generated_code_info()->::google::protobuf::GeneratedCodeInfo::MergeFrom(
|
|
from._internal_generated_code_info());
|
|
}
|
|
}
|
|
_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);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool CodeGeneratorResponse_File::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) {
|
|
using std::swap;
|
|
auto* lhs_arena = GetArenaForAllocation();
|
|
auto* rhs_arena = other->GetArenaForAllocation();
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
|
|
&other->_impl_.name_, rhs_arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.insertion_point_, lhs_arena,
|
|
&other->_impl_.insertion_point_, rhs_arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_, lhs_arena,
|
|
&other->_impl_.content_, rhs_arena);
|
|
swap(_impl_.generated_code_info_, other->_impl_.generated_code_info_);
|
|
}
|
|
|
|
::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_getter, &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once,
|
|
file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto[2]);
|
|
}
|
|
// ===================================================================
|
|
|
|
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_);
|
|
static void set_has_error(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
static void set_has_supported_features(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 2u;
|
|
}
|
|
};
|
|
|
|
CodeGeneratorResponse::CodeGeneratorResponse(::google::protobuf::Arena* arena)
|
|
: ::google::protobuf::Message(arena) {
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse)
|
|
}
|
|
CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from) : ::google::protobuf::Message() {
|
|
CodeGeneratorResponse* const _this = this;
|
|
(void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
decltype(_impl_.file_){from._impl_.file_},
|
|
decltype(_impl_.error_){},
|
|
decltype(_impl_.supported_features_){},
|
|
};
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
|
from._internal_metadata_);
|
|
_impl_.error_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.error_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
|
|
_this->_impl_.error_.Set(from._internal_error(), _this->GetArenaForAllocation());
|
|
}
|
|
_this->_impl_.supported_features_ = from._impl_.supported_features_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse)
|
|
}
|
|
inline void CodeGeneratorResponse::SharedCtor(::_pb::Arena* arena) {
|
|
(void)arena;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
decltype(_impl_.file_){arena},
|
|
decltype(_impl_.error_){},
|
|
decltype(_impl_.supported_features_){::uint64_t{0u}},
|
|
};
|
|
_impl_.error_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.error_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
CodeGeneratorResponse::~CodeGeneratorResponse() {
|
|
// @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse)
|
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
|
SharedDtor();
|
|
}
|
|
inline void CodeGeneratorResponse::SharedDtor() {
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.file_.~RepeatedPtrField();
|
|
_impl_.error_.Destroy();
|
|
}
|
|
void CodeGeneratorResponse::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE void CodeGeneratorResponse::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse)
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_internal_mutable_file()->Clear();
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_impl_.error_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_.supported_features_ = ::uint64_t{0u};
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* CodeGeneratorResponse::_InternalParse(
|
|
const char* ptr, ::_pbi::ParseContext* ctx) {
|
|
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
|
|
return ptr;
|
|
}
|
|
|
|
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<2, 3, 1, 60, 2> CodeGeneratorResponse::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
15, 24, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294950908, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
3, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
&_CodeGeneratorResponse_default_instance_._instance,
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional string error = 1;
|
|
{::_pbi::TcParser::FastSS1,
|
|
{10, 0, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.error_)}},
|
|
// optional uint64 supported_features = 2;
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CodeGeneratorResponse, _impl_.supported_features_), 1>(),
|
|
{16, 1, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_)}},
|
|
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{122, 63, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.file_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string error = 1;
|
|
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0,
|
|
(0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
|
|
// optional uint64 supported_features = 2;
|
|
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_), _Internal::kHasBitsOffset + 1, 0,
|
|
(0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
|
|
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
|
{PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.file_), -1, 0,
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}}, {{
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorResponse_File>()},
|
|
}}, {{
|
|
"\56\5\0\0\0\0\0\0"
|
|
"google.protobuf.compiler.CodeGeneratorResponse"
|
|
"error"
|
|
}},
|
|
};
|
|
|
|
::uint8_t* CodeGeneratorResponse::_InternalSerialize(
|
|
::uint8_t* target,
|
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
// optional string error = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
const std::string& _s = this->_internal_error();
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"google.protobuf.compiler.CodeGeneratorResponse.error");
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional uint64 supported_features = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
|
|
2, this->_internal_supported_features(), target);
|
|
}
|
|
|
|
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
|
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 (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
target =
|
|
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
_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;
|
|
}
|
|
|
|
::size_t CodeGeneratorResponse::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
|
total_size += 1UL * this->_internal_file_size();
|
|
for (const auto& msg : this->_internal_file()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000003u) {
|
|
// optional string error = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->_internal_error());
|
|
}
|
|
|
|
// optional uint64 supported_features = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
|
|
this->_internal_supported_features());
|
|
}
|
|
|
|
}
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::google::protobuf::Message::ClassData CodeGeneratorResponse::_class_data_ = {
|
|
::google::protobuf::Message::CopyWithSourceCheck,
|
|
CodeGeneratorResponse::MergeImpl
|
|
};
|
|
const ::google::protobuf::Message::ClassData*CodeGeneratorResponse::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void CodeGeneratorResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
|
auto* const _this = static_cast<CodeGeneratorResponse*>(&to_msg);
|
|
auto& from = static_cast<const CodeGeneratorResponse&>(from_msg);
|
|
// @@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;
|
|
|
|
_this->_internal_mutable_file()->MergeFrom(from._internal_file());
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000003u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_this->_internal_set_error(from._internal_error());
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
_this->_impl_.supported_features_ = from._impl_.supported_features_;
|
|
}
|
|
_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);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool CodeGeneratorResponse::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) {
|
|
using std::swap;
|
|
auto* lhs_arena = GetArenaForAllocation();
|
|
auto* rhs_arena = other->GetArenaForAllocation();
|
|
_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_, lhs_arena,
|
|
&other->_impl_.error_, rhs_arena);
|
|
swap(_impl_.supported_features_, other->_impl_.supported_features_);
|
|
}
|
|
|
|
::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_getter, &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once,
|
|
file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto[3]);
|
|
}
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace compiler
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
namespace google {
|
|
namespace protobuf {
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include "google/protobuf/port_undef.inc"
|