1012 lines
36 KiB
C++
1012 lines
36 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: google/protobuf/struct.proto
|
|
|
|
#include "google/protobuf/struct.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 {
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
|
|
struct Struct_FieldsEntry_DoNotUseDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR Struct_FieldsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~Struct_FieldsEntry_DoNotUseDefaultTypeInternal() {}
|
|
union {
|
|
Struct_FieldsEntry_DoNotUse _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_;
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR Struct::Struct(::_pbi::ConstantInitialized)
|
|
: _impl_{
|
|
/* decltype(_impl_.fields_) */ {},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
} {}
|
|
struct StructDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR StructDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~StructDefaultTypeInternal() {}
|
|
union {
|
|
Struct _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructDefaultTypeInternal _Struct_default_instance_;
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized)
|
|
: _impl_{
|
|
/*decltype(_impl_.kind_)*/ {},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
/*decltype(_impl_._oneof_case_)*/ {},
|
|
} {}
|
|
struct ValueDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ValueDefaultTypeInternal() {}
|
|
union {
|
|
Value _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_;
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR ListValue::ListValue(::_pbi::ConstantInitialized)
|
|
: _impl_{
|
|
/*decltype(_impl_.values_)*/ {},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
} {}
|
|
struct ListValueDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ListValueDefaultTypeInternal() {}
|
|
union {
|
|
ListValue _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_;
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
static ::_pb::Metadata file_level_metadata_google_2fprotobuf_2fstruct_2eproto[4];
|
|
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto[1];
|
|
static constexpr const ::_pb::ServiceDescriptor**
|
|
file_level_service_descriptors_google_2fprotobuf_2fstruct_2eproto = nullptr;
|
|
const ::uint32_t TableStruct_google_2fprotobuf_2fstruct_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
|
|
protodesc_cold) = {
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, _has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, _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::Struct_FieldsEntry_DoNotUse, key_),
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, value_),
|
|
0,
|
|
1,
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct, _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::Struct, _impl_.fields_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_._oneof_case_[0]),
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
~0u, // no _split_
|
|
~0u, // no sizeof(Split)
|
|
::_pbi::kInvalidFieldOffsetTag,
|
|
::_pbi::kInvalidFieldOffsetTag,
|
|
::_pbi::kInvalidFieldOffsetTag,
|
|
::_pbi::kInvalidFieldOffsetTag,
|
|
::_pbi::kInvalidFieldOffsetTag,
|
|
::_pbi::kInvalidFieldOffsetTag,
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_.kind_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::ListValue, _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::ListValue, _impl_.values_),
|
|
};
|
|
|
|
static const ::_pbi::MigrationSchema
|
|
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{0, 10, -1, sizeof(::google::protobuf::Struct_FieldsEntry_DoNotUse)},
|
|
{12, -1, -1, sizeof(::google::protobuf::Struct)},
|
|
{21, -1, -1, sizeof(::google::protobuf::Value)},
|
|
{36, -1, -1, sizeof(::google::protobuf::ListValue)},
|
|
};
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
&::google::protobuf::_Struct_FieldsEntry_DoNotUse_default_instance_._instance,
|
|
&::google::protobuf::_Struct_default_instance_._instance,
|
|
&::google::protobuf::_Value_default_instance_._instance,
|
|
&::google::protobuf::_ListValue_default_instance_._instance,
|
|
};
|
|
const char descriptor_table_protodef_google_2fprotobuf_2fstruct_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
"\n\034google/protobuf/struct.proto\022\017google.p"
|
|
"rotobuf\"\204\001\n\006Struct\0223\n\006fields\030\001 \003(\0132#.goo"
|
|
"gle.protobuf.Struct.FieldsEntry\032E\n\013Field"
|
|
"sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo"
|
|
"gle.protobuf.Value:\0028\001\"\352\001\n\005Value\0220\n\nnull"
|
|
"_value\030\001 \001(\0162\032.google.protobuf.NullValue"
|
|
"H\000\022\026\n\014number_value\030\002 \001(\001H\000\022\026\n\014string_val"
|
|
"ue\030\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\022/\n\014stru"
|
|
"ct_value\030\005 \001(\0132\027.google.protobuf.StructH"
|
|
"\000\0220\n\nlist_value\030\006 \001(\0132\032.google.protobuf."
|
|
"ListValueH\000B\006\n\004kind\"3\n\tListValue\022&\n\006valu"
|
|
"es\030\001 \003(\0132\026.google.protobuf.Value*\033\n\tNull"
|
|
"Value\022\016\n\nNULL_VALUE\020\000B\177\n\023com.google.prot"
|
|
"obufB\013StructProtoP\001Z/google.golang.org/p"
|
|
"rotobuf/types/known/structpb\370\001\001\242\002\003GPB\252\002\036"
|
|
"Google.Protobuf.WellKnownTypesb\006proto3"
|
|
};
|
|
static ::absl::once_flag descriptor_table_google_2fprotobuf_2fstruct_2eproto_once;
|
|
const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fstruct_2eproto = {
|
|
false,
|
|
false,
|
|
638,
|
|
descriptor_table_protodef_google_2fprotobuf_2fstruct_2eproto,
|
|
"google/protobuf/struct.proto",
|
|
&descriptor_table_google_2fprotobuf_2fstruct_2eproto_once,
|
|
nullptr,
|
|
0,
|
|
4,
|
|
schemas,
|
|
file_default_instances,
|
|
TableStruct_google_2fprotobuf_2fstruct_2eproto::offsets,
|
|
file_level_metadata_google_2fprotobuf_2fstruct_2eproto,
|
|
file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto,
|
|
file_level_service_descriptors_google_2fprotobuf_2fstruct_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_2fstruct_2eproto_getter() {
|
|
return &descriptor_table_google_2fprotobuf_2fstruct_2eproto;
|
|
}
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
|
|
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fprotobuf_2fstruct_2eproto(&descriptor_table_google_2fprotobuf_2fstruct_2eproto);
|
|
namespace google {
|
|
namespace protobuf {
|
|
const ::google::protobuf::EnumDescriptor* NullValue_descriptor() {
|
|
::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fstruct_2eproto);
|
|
return file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto[0];
|
|
}
|
|
bool NullValue_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
// ===================================================================
|
|
|
|
Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse() {}
|
|
Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena)
|
|
: SuperType(arena) {}
|
|
void Struct_FieldsEntry_DoNotUse::MergeFrom(const Struct_FieldsEntry_DoNotUse& other) {
|
|
MergeFromInternal(other);
|
|
}
|
|
::google::protobuf::Metadata Struct_FieldsEntry_DoNotUse::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once,
|
|
file_level_metadata_google_2fprotobuf_2fstruct_2eproto[0]);
|
|
}
|
|
// ===================================================================
|
|
|
|
class Struct::_Internal {
|
|
public:
|
|
};
|
|
|
|
Struct::Struct(::google::protobuf::Arena* arena)
|
|
: ::google::protobuf::Message(arena) {
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.Struct)
|
|
}
|
|
Struct::Struct(const Struct& from) : ::google::protobuf::Message() {
|
|
Struct* const _this = this;
|
|
(void)_this;
|
|
new (&_impl_) Impl_{
|
|
/* decltype(_impl_.fields_) */ {},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
};
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
|
from._internal_metadata_);
|
|
_this->_impl_.fields_.MergeFrom(from._impl_.fields_);
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.Struct)
|
|
}
|
|
inline void Struct::SharedCtor(::_pb::Arena* arena) {
|
|
(void)arena;
|
|
new (&_impl_) Impl_{
|
|
/* decltype(_impl_.fields_) */ {::google::protobuf::internal::ArenaInitialized(), arena},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
};
|
|
}
|
|
Struct::~Struct() {
|
|
// @@protoc_insertion_point(destructor:google.protobuf.Struct)
|
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
|
SharedDtor();
|
|
}
|
|
inline void Struct::SharedDtor() {
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.fields_.~MapField();
|
|
}
|
|
void Struct::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE void Struct::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.Struct)
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.fields_.Clear();
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Struct::_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<0, 1, 2, 37, 2> Struct::_table_ = {
|
|
{
|
|
0, // no _has_bits_
|
|
0, // no _extensions_
|
|
1, 0, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967294, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
1, // num_field_entries
|
|
2, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
&_Struct_default_instance_._instance,
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// map<string, .google.protobuf.Value> fields = 1;
|
|
{PROTOBUF_FIELD_OFFSET(Struct, _impl_.fields_), 0, 0,
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMap)},
|
|
}}, {{
|
|
{::_pbi::TcParser::GetMapAuxInfo<decltype(Struct()._impl_.fields_)>(1, 0, 0)},
|
|
{::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>},
|
|
}}, {{
|
|
"\26\6\0\0\0\0\0\0"
|
|
"google.protobuf.Struct"
|
|
"fields"
|
|
}},
|
|
};
|
|
|
|
::uint8_t* Struct::_InternalSerialize(
|
|
::uint8_t* target,
|
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
// map<string, .google.protobuf.Value> fields = 1;
|
|
if (!_internal_fields().empty()) {
|
|
using MapType = ::google::protobuf::Map<std::string, ::google::protobuf::Value>;
|
|
using WireHelper = Struct_FieldsEntry_DoNotUse::Funcs;
|
|
const auto& field = _internal_fields();
|
|
|
|
if (stream->IsSerializationDeterministic() && field.size() > 1) {
|
|
for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
|
|
target = WireHelper::InternalSerialize(
|
|
1, entry.first, entry.second, target, stream);
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
entry.first.data(), static_cast<int>(entry.first.length()),
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Struct.fields");
|
|
}
|
|
} else {
|
|
for (const auto& entry : field) {
|
|
target = WireHelper::InternalSerialize(
|
|
1, entry.first, entry.second, target, stream);
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
entry.first.data(), static_cast<int>(entry.first.length()),
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Struct.fields");
|
|
}
|
|
}
|
|
}
|
|
|
|
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.Struct)
|
|
return target;
|
|
}
|
|
|
|
::size_t Struct::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Struct)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// map<string, .google.protobuf.Value> fields = 1;
|
|
total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_fields_size());
|
|
for (const auto& entry : _internal_fields()) {
|
|
total_size += Struct_FieldsEntry_DoNotUse::Funcs::ByteSizeLong(entry.first, entry.second);
|
|
}
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::google::protobuf::Message::ClassData Struct::_class_data_ = {
|
|
::google::protobuf::Message::CopyWithSourceCheck,
|
|
Struct::MergeImpl
|
|
};
|
|
const ::google::protobuf::Message::ClassData*Struct::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void Struct::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
|
auto* const _this = static_cast<Struct*>(&to_msg);
|
|
auto& from = static_cast<const Struct&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Struct)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
_this->_impl_.fields_.MergeFrom(from._impl_.fields_);
|
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void Struct::CopyFrom(const Struct& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Struct)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool Struct::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void Struct::InternalSwap(Struct* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
_impl_.fields_.InternalSwap(&other->_impl_.fields_);
|
|
}
|
|
|
|
::google::protobuf::Metadata Struct::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once,
|
|
file_level_metadata_google_2fprotobuf_2fstruct_2eproto[1]);
|
|
}
|
|
// ===================================================================
|
|
|
|
class Value::_Internal {
|
|
public:
|
|
static constexpr ::int32_t kOneofCaseOffset =
|
|
PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_._oneof_case_);
|
|
static const ::google::protobuf::Struct& struct_value(const Value* msg);
|
|
static const ::google::protobuf::ListValue& list_value(const Value* msg);
|
|
};
|
|
|
|
const ::google::protobuf::Struct& Value::_Internal::struct_value(const Value* msg) {
|
|
return *msg->_impl_.kind_.struct_value_;
|
|
}
|
|
const ::google::protobuf::ListValue& Value::_Internal::list_value(const Value* msg) {
|
|
return *msg->_impl_.kind_.list_value_;
|
|
}
|
|
void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value) {
|
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
|
clear_kind();
|
|
if (struct_value) {
|
|
::google::protobuf::Arena* submessage_arena =
|
|
::google::protobuf::Arena::InternalGetOwningArena(struct_value);
|
|
if (message_arena != submessage_arena) {
|
|
struct_value = ::google::protobuf::internal::GetOwnedMessage(
|
|
message_arena, struct_value, submessage_arena);
|
|
}
|
|
set_has_struct_value();
|
|
_impl_.kind_.struct_value_ = struct_value;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_value)
|
|
}
|
|
void Value::set_allocated_list_value(::google::protobuf::ListValue* list_value) {
|
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
|
clear_kind();
|
|
if (list_value) {
|
|
::google::protobuf::Arena* submessage_arena =
|
|
::google::protobuf::Arena::InternalGetOwningArena(list_value);
|
|
if (message_arena != submessage_arena) {
|
|
list_value = ::google::protobuf::internal::GetOwnedMessage(
|
|
message_arena, list_value, submessage_arena);
|
|
}
|
|
set_has_list_value();
|
|
_impl_.kind_.list_value_ = list_value;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_value)
|
|
}
|
|
Value::Value(::google::protobuf::Arena* arena)
|
|
: ::google::protobuf::Message(arena) {
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.Value)
|
|
}
|
|
Value::Value(const Value& from) : ::google::protobuf::Message() {
|
|
Value* const _this = this;
|
|
(void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.kind_){},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
/*decltype(_impl_._oneof_case_)*/ {},
|
|
};
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
|
from._internal_metadata_);
|
|
clear_has_kind();
|
|
switch (from.kind_case()) {
|
|
case kNullValue: {
|
|
_this->_internal_set_null_value(from._internal_null_value());
|
|
break;
|
|
}
|
|
case kNumberValue: {
|
|
_this->_internal_set_number_value(from._internal_number_value());
|
|
break;
|
|
}
|
|
case kStringValue: {
|
|
_this->_internal_set_string_value(from._internal_string_value());
|
|
break;
|
|
}
|
|
case kBoolValue: {
|
|
_this->_internal_set_bool_value(from._internal_bool_value());
|
|
break;
|
|
}
|
|
case kStructValue: {
|
|
_this->_internal_mutable_struct_value()->::google::protobuf::Struct::MergeFrom(
|
|
from._internal_struct_value());
|
|
break;
|
|
}
|
|
case kListValue: {
|
|
_this->_internal_mutable_list_value()->::google::protobuf::ListValue::MergeFrom(
|
|
from._internal_list_value());
|
|
break;
|
|
}
|
|
case KIND_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.Value)
|
|
}
|
|
inline void Value::SharedCtor(::_pb::Arena* arena) {
|
|
(void)arena;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.kind_){},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
/*decltype(_impl_._oneof_case_)*/ {},
|
|
};
|
|
clear_has_kind();
|
|
}
|
|
Value::~Value() {
|
|
// @@protoc_insertion_point(destructor:google.protobuf.Value)
|
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
|
SharedDtor();
|
|
}
|
|
inline void Value::SharedDtor() {
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
if (has_kind()) {
|
|
clear_kind();
|
|
}
|
|
}
|
|
void Value::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void Value::clear_kind() {
|
|
// @@protoc_insertion_point(one_of_clear_start:google.protobuf.Value)
|
|
switch (kind_case()) {
|
|
case kNullValue: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kNumberValue: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kStringValue: {
|
|
_impl_.kind_.string_value_.Destroy();
|
|
break;
|
|
}
|
|
case kBoolValue: {
|
|
// No need to clear
|
|
break;
|
|
}
|
|
case kStructValue: {
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
delete _impl_.kind_.struct_value_;
|
|
}
|
|
break;
|
|
}
|
|
case kListValue: {
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
delete _impl_.kind_.list_value_;
|
|
}
|
|
break;
|
|
}
|
|
case KIND_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
_impl_._oneof_case_[0] = KIND_NOT_SET;
|
|
}
|
|
|
|
|
|
PROTOBUF_NOINLINE void Value::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.Value)
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
clear_kind();
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Value::_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<0, 6, 2, 42, 2> Value::_table_ = {
|
|
{
|
|
0, // no _has_bits_
|
|
0, // no _extensions_
|
|
6, 0, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967232, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
6, // num_field_entries
|
|
2, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
&_Value_default_instance_._instance,
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// .google.protobuf.NullValue null_value = 1;
|
|
{PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.null_value_), _Internal::kOneofCaseOffset + 0, 0,
|
|
(0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)},
|
|
// double number_value = 2;
|
|
{PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.number_value_), _Internal::kOneofCaseOffset + 0, 0,
|
|
(0 | ::_fl::kFcOneof | ::_fl::kDouble)},
|
|
// string string_value = 3;
|
|
{PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.string_value_), _Internal::kOneofCaseOffset + 0, 0,
|
|
(0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
|
|
// bool bool_value = 4;
|
|
{PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.bool_value_), _Internal::kOneofCaseOffset + 0, 0,
|
|
(0 | ::_fl::kFcOneof | ::_fl::kBool)},
|
|
// .google.protobuf.Struct struct_value = 5;
|
|
{PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.struct_value_), _Internal::kOneofCaseOffset + 0, 0,
|
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// .google.protobuf.ListValue list_value = 6;
|
|
{PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.list_value_), _Internal::kOneofCaseOffset + 0, 1,
|
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}}, {{
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Struct>()},
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::ListValue>()},
|
|
}}, {{
|
|
"\25\0\0\14\0\0\0\0"
|
|
"google.protobuf.Value"
|
|
"string_value"
|
|
}},
|
|
};
|
|
|
|
::uint8_t* Value::_InternalSerialize(
|
|
::uint8_t* target,
|
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
switch (kind_case()) {
|
|
case kNullValue: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this->_internal_null_value(), target);
|
|
break;
|
|
}
|
|
case kNumberValue: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
|
|
2, this->_internal_number_value(), target);
|
|
break;
|
|
}
|
|
case kStringValue: {
|
|
const std::string& _s = this->_internal_string_value();
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Value.string_value");
|
|
target = stream->WriteStringMaybeAliased(3, _s, target);
|
|
break;
|
|
}
|
|
case kBoolValue: {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
|
4, this->_internal_bool_value(), target);
|
|
break;
|
|
}
|
|
case kStructValue: {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessage(5, _Internal::struct_value(this),
|
|
_Internal::struct_value(this).GetCachedSize(), target, stream);
|
|
break;
|
|
}
|
|
case kListValue: {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessage(6, _Internal::list_value(this),
|
|
_Internal::list_value(this).GetCachedSize(), target, stream);
|
|
break;
|
|
}
|
|
default:
|
|
break;
|
|
}
|
|
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.Value)
|
|
return target;
|
|
}
|
|
|
|
::size_t Value::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Value)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
switch (kind_case()) {
|
|
// .google.protobuf.NullValue null_value = 1;
|
|
case kNullValue: {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this->_internal_null_value());
|
|
break;
|
|
}
|
|
// double number_value = 2;
|
|
case kNumberValue: {
|
|
total_size += 9;
|
|
break;
|
|
}
|
|
// string string_value = 3;
|
|
case kStringValue: {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->_internal_string_value());
|
|
break;
|
|
}
|
|
// bool bool_value = 4;
|
|
case kBoolValue: {
|
|
total_size += 2;
|
|
break;
|
|
}
|
|
// .google.protobuf.Struct struct_value = 5;
|
|
case kStructValue: {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*_impl_.kind_.struct_value_);
|
|
break;
|
|
}
|
|
// .google.protobuf.ListValue list_value = 6;
|
|
case kListValue: {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*_impl_.kind_.list_value_);
|
|
break;
|
|
}
|
|
case KIND_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::google::protobuf::Message::ClassData Value::_class_data_ = {
|
|
::google::protobuf::Message::CopyWithSourceCheck,
|
|
Value::MergeImpl
|
|
};
|
|
const ::google::protobuf::Message::ClassData*Value::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void Value::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
|
auto* const _this = static_cast<Value*>(&to_msg);
|
|
auto& from = static_cast<const Value&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Value)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
switch (from.kind_case()) {
|
|
case kNullValue: {
|
|
_this->_internal_set_null_value(from._internal_null_value());
|
|
break;
|
|
}
|
|
case kNumberValue: {
|
|
_this->_internal_set_number_value(from._internal_number_value());
|
|
break;
|
|
}
|
|
case kStringValue: {
|
|
_this->_internal_set_string_value(from._internal_string_value());
|
|
break;
|
|
}
|
|
case kBoolValue: {
|
|
_this->_internal_set_bool_value(from._internal_bool_value());
|
|
break;
|
|
}
|
|
case kStructValue: {
|
|
_this->_internal_mutable_struct_value()->::google::protobuf::Struct::MergeFrom(
|
|
from._internal_struct_value());
|
|
break;
|
|
}
|
|
case kListValue: {
|
|
_this->_internal_mutable_list_value()->::google::protobuf::ListValue::MergeFrom(
|
|
from._internal_list_value());
|
|
break;
|
|
}
|
|
case KIND_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void Value::CopyFrom(const Value& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Value)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool Value::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void Value::InternalSwap(Value* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_.kind_, other->_impl_.kind_);
|
|
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
|
|
}
|
|
|
|
::google::protobuf::Metadata Value::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once,
|
|
file_level_metadata_google_2fprotobuf_2fstruct_2eproto[2]);
|
|
}
|
|
// ===================================================================
|
|
|
|
class ListValue::_Internal {
|
|
public:
|
|
};
|
|
|
|
ListValue::ListValue(::google::protobuf::Arena* arena)
|
|
: ::google::protobuf::Message(arena) {
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.ListValue)
|
|
}
|
|
ListValue::ListValue(const ListValue& from) : ::google::protobuf::Message() {
|
|
ListValue* const _this = this;
|
|
(void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.values_){from._impl_.values_},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
};
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
|
from._internal_metadata_);
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.ListValue)
|
|
}
|
|
inline void ListValue::SharedCtor(::_pb::Arena* arena) {
|
|
(void)arena;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.values_){arena},
|
|
/*decltype(_impl_._cached_size_)*/ {},
|
|
};
|
|
}
|
|
ListValue::~ListValue() {
|
|
// @@protoc_insertion_point(destructor:google.protobuf.ListValue)
|
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
|
SharedDtor();
|
|
}
|
|
inline void ListValue::SharedDtor() {
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.values_.~RepeatedPtrField();
|
|
}
|
|
void ListValue::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE void ListValue::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.ListValue)
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_internal_mutable_values()->Clear();
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* ListValue::_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<0, 1, 1, 0, 2> ListValue::_table_ = {
|
|
{
|
|
0, // no _has_bits_
|
|
0, // no _extensions_
|
|
1, 0, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967294, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
1, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(decltype(_table_), aux_entries),
|
|
&_ListValue_default_instance_._instance,
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
}, {{
|
|
// repeated .google.protobuf.Value values = 1;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// repeated .google.protobuf.Value values = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_), 0, 0,
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}}, {{
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Value>()},
|
|
}}, {{
|
|
}},
|
|
};
|
|
|
|
::uint8_t* ListValue::_InternalSerialize(
|
|
::uint8_t* target,
|
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
// repeated .google.protobuf.Value values = 1;
|
|
for (unsigned i = 0,
|
|
n = static_cast<unsigned>(this->_internal_values_size()); i < n; i++) {
|
|
const auto& repfield = this->_internal_values().Get(i);
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessage(1, 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.ListValue)
|
|
return target;
|
|
}
|
|
|
|
::size_t ListValue::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.ListValue)
|
|
::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.Value values = 1;
|
|
total_size += 1UL * this->_internal_values_size();
|
|
for (const auto& msg : this->_internal_values()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::google::protobuf::Message::ClassData ListValue::_class_data_ = {
|
|
::google::protobuf::Message::CopyWithSourceCheck,
|
|
ListValue::MergeImpl
|
|
};
|
|
const ::google::protobuf::Message::ClassData*ListValue::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void ListValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
|
auto* const _this = static_cast<ListValue*>(&to_msg);
|
|
auto& from = static_cast<const ListValue&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ListValue)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
_this->_internal_mutable_values()->MergeFrom(from._internal_values());
|
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void ListValue::CopyFrom(const ListValue& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ListValue)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool ListValue::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void ListValue::InternalSwap(ListValue* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
_impl_.values_.InternalSwap(&other->_impl_.values_);
|
|
}
|
|
|
|
::google::protobuf::Metadata ListValue::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once,
|
|
file_level_metadata_google_2fprotobuf_2fstruct_2eproto[3]);
|
|
}
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
namespace google {
|
|
namespace protobuf {
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include "google/protobuf/port_undef.inc"
|