1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: google/protobuf/struct.proto
3
4#include <google/protobuf/struct.pb.h>
5
6#include <algorithm>
7
8#include <google/protobuf/io/coded_stream.h>
9#include <google/protobuf/extension_set.h>
10#include <google/protobuf/wire_format_lite.h>
11#include <google/protobuf/descriptor.h>
12#include <google/protobuf/generated_message_reflection.h>
13#include <google/protobuf/reflection_ops.h>
14#include <google/protobuf/wire_format.h>
15// @@protoc_insertion_point(includes)
16#include <google/protobuf/port_def.inc>
17
18PROTOBUF_PRAGMA_INIT_SEG
19
20namespace _pb = ::PROTOBUF_NAMESPACE_ID;
21namespace _pbi = _pb::internal;
22
23PROTOBUF_NAMESPACE_OPEN
24PROTOBUF_CONSTEXPR Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(
25 ::_pbi::ConstantInitialized) {}
26struct Struct_FieldsEntry_DoNotUseDefaultTypeInternal {
27 PROTOBUF_CONSTEXPR Struct_FieldsEntry_DoNotUseDefaultTypeInternal()
28 : _instance(::_pbi::ConstantInitialized{}) {}
29 ~Struct_FieldsEntry_DoNotUseDefaultTypeInternal() {}
30 union {
31 Struct_FieldsEntry_DoNotUse _instance;
32 };
33};
34PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_;
35PROTOBUF_CONSTEXPR Struct::Struct(
36 ::_pbi::ConstantInitialized): _impl_{
37 /*decltype(_impl_.fields_)*/.fields_: {::_pbi::ConstantInitialized()}
38 , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {}
39struct StructDefaultTypeInternal {
40 PROTOBUF_CONSTEXPR StructDefaultTypeInternal()
41 : _instance(::_pbi::ConstantInitialized{}) {}
42 ~StructDefaultTypeInternal() {}
43 union {
44 Struct _instance;
45 };
46};
47PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructDefaultTypeInternal _Struct_default_instance_;
48PROTOBUF_CONSTEXPR Value::Value(
49 ::_pbi::ConstantInitialized): _impl_{
50 /*decltype(_impl_.kind_)*/.kind_: {}
51 , /*decltype(_impl_._cached_size_)*/._cached_size_: {}
52 , /*decltype(_impl_._oneof_case_)*/._oneof_case_: {}} {}
53struct ValueDefaultTypeInternal {
54 PROTOBUF_CONSTEXPR ValueDefaultTypeInternal()
55 : _instance(::_pbi::ConstantInitialized{}) {}
56 ~ValueDefaultTypeInternal() {}
57 union {
58 Value _instance;
59 };
60};
61PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_;
62PROTOBUF_CONSTEXPR ListValue::ListValue(
63 ::_pbi::ConstantInitialized): _impl_{
64 /*decltype(_impl_.values_)*/.values_: {}
65 , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {}
66struct ListValueDefaultTypeInternal {
67 PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal()
68 : _instance(::_pbi::ConstantInitialized{}) {}
69 ~ListValueDefaultTypeInternal() {}
70 union {
71 ListValue _instance;
72 };
73};
74PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_;
75PROTOBUF_NAMESPACE_CLOSE
76static ::_pb::Metadata file_level_metadata_google_2fprotobuf_2fstruct_2eproto[4];
77static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto[1];
78static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fstruct_2eproto = nullptr;
79
80const uint32_t TableStruct_google_2fprotobuf_2fstruct_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
81 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse, _has_bits_),
82 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse, _internal_metadata_),
83 ~0u, // no _extensions_
84 ~0u, // no _oneof_case_
85 ~0u, // no _weak_field_map_
86 ~0u, // no _inlined_string_donated_
87 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse, key_),
88 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse, value_),
89 0,
90 1,
91 ~0u, // no _has_bits_
92 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Struct, _internal_metadata_),
93 ~0u, // no _extensions_
94 ~0u, // no _oneof_case_
95 ~0u, // no _weak_field_map_
96 ~0u, // no _inlined_string_donated_
97 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Struct, _impl_.fields_),
98 ~0u, // no _has_bits_
99 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Value, _internal_metadata_),
100 ~0u, // no _extensions_
101 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Value, _impl_._oneof_case_[0]),
102 ~0u, // no _weak_field_map_
103 ~0u, // no _inlined_string_donated_
104 ::_pbi::kInvalidFieldOffsetTag,
105 ::_pbi::kInvalidFieldOffsetTag,
106 ::_pbi::kInvalidFieldOffsetTag,
107 ::_pbi::kInvalidFieldOffsetTag,
108 ::_pbi::kInvalidFieldOffsetTag,
109 ::_pbi::kInvalidFieldOffsetTag,
110 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Value, _impl_.kind_),
111 ~0u, // no _has_bits_
112 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ListValue, _internal_metadata_),
113 ~0u, // no _extensions_
114 ~0u, // no _oneof_case_
115 ~0u, // no _weak_field_map_
116 ~0u, // no _inlined_string_donated_
117 PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::ListValue, _impl_.values_),
118};
119static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
120 { .offsets_index: 0, .has_bit_indices_index: 8, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse)},
121 { .offsets_index: 10, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::Struct)},
122 { .offsets_index: 17, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::Value)},
123 { .offsets_index: 30, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::ListValue)},
124};
125
126static const ::_pb::Message* const file_default_instances[] = {
127 &::PROTOBUF_NAMESPACE_ID::_Struct_FieldsEntry_DoNotUse_default_instance_._instance,
128 &::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_._instance,
129 &::PROTOBUF_NAMESPACE_ID::_Value_default_instance_._instance,
130 &::PROTOBUF_NAMESPACE_ID::_ListValue_default_instance_._instance,
131};
132
133const char descriptor_table_protodef_google_2fprotobuf_2fstruct_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
134 "\n\034google/protobuf/struct.proto\022\017google.p"
135 "rotobuf\"\204\001\n\006Struct\0223\n\006fields\030\001 \003(\0132#.goo"
136 "gle.protobuf.Struct.FieldsEntry\032E\n\013Field"
137 "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo"
138 "gle.protobuf.Value:\0028\001\"\352\001\n\005Value\0220\n\nnull"
139 "_value\030\001 \001(\0162\032.google.protobuf.NullValue"
140 "H\000\022\026\n\014number_value\030\002 \001(\001H\000\022\026\n\014string_val"
141 "ue\030\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\022/\n\014stru"
142 "ct_value\030\005 \001(\0132\027.google.protobuf.StructH"
143 "\000\0220\n\nlist_value\030\006 \001(\0132\032.google.protobuf."
144 "ListValueH\000B\006\n\004kind\"3\n\tListValue\022&\n\006valu"
145 "es\030\001 \003(\0132\026.google.protobuf.Value*\033\n\tNull"
146 "Value\022\016\n\nNULL_VALUE\020\000B\177\n\023com.google.prot"
147 "obufB\013StructProtoP\001Z/google.golang.org/p"
148 "rotobuf/types/known/structpb\370\001\001\242\002\003GPB\252\002\036"
149 "Google.Protobuf.WellKnownTypesb\006proto3"
150 ;
151static ::_pbi::once_flag descriptor_table_google_2fprotobuf_2fstruct_2eproto_once;
152const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fstruct_2eproto = {
153 .is_initialized: false, .is_eager: false, .size: 638, .descriptor: descriptor_table_protodef_google_2fprotobuf_2fstruct_2eproto,
154 .filename: "google/protobuf/struct.proto",
155 .once: &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once, .deps: nullptr, .num_deps: 0, .num_messages: 4,
156 .schemas: schemas, .default_instances: file_default_instances, .offsets: TableStruct_google_2fprotobuf_2fstruct_2eproto::offsets,
157 .file_level_metadata: file_level_metadata_google_2fprotobuf_2fstruct_2eproto, .file_level_enum_descriptors: file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto,
158 .file_level_service_descriptors: file_level_service_descriptors_google_2fprotobuf_2fstruct_2eproto,
159};
160PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter() {
161 return &descriptor_table_google_2fprotobuf_2fstruct_2eproto;
162}
163
164// Force running AddDescriptors() at dynamic initialization time.
165PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fprotobuf_2fstruct_2eproto(&descriptor_table_google_2fprotobuf_2fstruct_2eproto);
166PROTOBUF_NAMESPACE_OPEN
167const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NullValue_descriptor() {
168 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(table: &descriptor_table_google_2fprotobuf_2fstruct_2eproto);
169 return file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto[0];
170}
171bool NullValue_IsValid(int value) {
172 switch (value) {
173 case 0:
174 return true;
175 default:
176 return false;
177 }
178}
179
180
181// ===================================================================
182
183Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse() {}
184Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
185 : SuperType(arena) {}
186void Struct_FieldsEntry_DoNotUse::MergeFrom(const Struct_FieldsEntry_DoNotUse& other) {
187 MergeFromInternal(from: other);
188}
189::PROTOBUF_NAMESPACE_ID::Metadata Struct_FieldsEntry_DoNotUse::GetMetadata() const {
190 return ::_pbi::AssignDescriptors(
191 table: &descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once,
192 metadata: file_level_metadata_google_2fprotobuf_2fstruct_2eproto[0]);
193}
194
195// ===================================================================
196
197class Struct::_Internal {
198 public:
199};
200
201Struct::Struct(::PROTOBUF_NAMESPACE_ID::Arena* arena,
202 bool is_message_owned)
203 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
204 SharedCtor(arena, is_message_owned);
205 if (arena != nullptr && !is_message_owned) {
206 arena->OwnCustomDestructor(object: this, destruct: &Struct::ArenaDtor);
207 }
208 // @@protoc_insertion_point(arena_constructor:google.protobuf.Struct)
209}
210Struct::Struct(const Struct& from)
211 : ::PROTOBUF_NAMESPACE_ID::Message() {
212 Struct* const _this = this; (void)_this;
213 new (&_impl_) Impl_{
214 /*decltype(_impl_.fields_)*/.fields_: {}
215 , /*decltype(_impl_._cached_size_)*/._cached_size_: {}};
216
217 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_);
218 _this->_impl_.fields_.MergeFrom(other: from._impl_.fields_);
219 // @@protoc_insertion_point(copy_constructor:google.protobuf.Struct)
220}
221
222inline void Struct::SharedCtor(
223 ::_pb::Arena* arena, bool is_message_owned) {
224 (void)arena;
225 (void)is_message_owned;
226 new (&_impl_) Impl_{
227 /*decltype(_impl_.fields_)*/.fields_: {::_pbi::ArenaInitialized(), arena}
228 , /*decltype(_impl_._cached_size_)*/._cached_size_: {}
229 };
230}
231
232Struct::~Struct() {
233 // @@protoc_insertion_point(destructor:google.protobuf.Struct)
234 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
235 (void)arena;
236 ArenaDtor(object: this);
237 return;
238 }
239 SharedDtor();
240}
241
242inline void Struct::SharedDtor() {
243 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
244 _impl_.fields_.Destruct();
245 _impl_.fields_.~MapField();
246}
247
248void Struct::ArenaDtor(void* object) {
249 Struct* _this = reinterpret_cast< Struct* >(object);
250 _this->_impl_.fields_.Destruct();
251}
252void Struct::SetCachedSize(int size) const {
253 _impl_._cached_size_.Set(size);
254}
255
256void Struct::Clear() {
257// @@protoc_insertion_point(message_clear_start:google.protobuf.Struct)
258 uint32_t cached_has_bits = 0;
259 // Prevent compiler warnings about cached_has_bits being unused
260 (void) cached_has_bits;
261
262 _impl_.fields_.Clear();
263 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
264}
265
266const char* Struct::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
267#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
268 while (!ctx->Done(ptr: &ptr)) {
269 uint32_t tag;
270 ptr = ::_pbi::ReadTag(p: ptr, out: &tag);
271 switch (tag >> 3) {
272 // map<string, .google.protobuf.Value> fields = 1;
273 case 1:
274 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
275 ptr -= 1;
276 do {
277 ptr += 1;
278 ptr = ctx->ParseMessage(msg: &_impl_.fields_, ptr);
279 CHK_(ptr);
280 if (!ctx->DataAvailable(ptr)) break;
281 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
282 } else
283 goto handle_unusual;
284 continue;
285 default:
286 goto handle_unusual;
287 } // switch
288 handle_unusual:
289 if ((tag == 0) || ((tag & 7) == 4)) {
290 CHK_(ptr);
291 ctx->SetLastTag(tag);
292 goto message_done;
293 }
294 ptr = UnknownFieldParse(
295 tag,
296 unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
297 ptr, ctx);
298 CHK_(ptr != nullptr);
299 } // while
300message_done:
301 return ptr;
302failure:
303 ptr = nullptr;
304 goto message_done;
305#undef CHK_
306}
307
308uint8_t* Struct::_InternalSerialize(
309 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
310 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct)
311 uint32_t cached_has_bits = 0;
312 (void) cached_has_bits;
313
314 // map<string, .google.protobuf.Value> fields = 1;
315 if (!this->_internal_fields().empty()) {
316 using MapType = ::_pb::Map<std::string, ::PROTOBUF_NAMESPACE_ID::Value>;
317 using WireHelper = Struct_FieldsEntry_DoNotUse::Funcs;
318 const auto& map_field = this->_internal_fields();
319 auto check_utf8 = [](const MapType::value_type& entry) {
320 (void)entry;
321 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
322 data: entry.first.data(), size: static_cast<int>(entry.first.length()),
323 op: ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
324 field_name: "google.protobuf.Struct.FieldsEntry.key");
325 };
326
327 if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
328 for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
329 target = WireHelper::InternalSerialize(field_number: 1, key: entry.first, value: entry.second, ptr: target, stream);
330 check_utf8(entry);
331 }
332 } else {
333 for (const auto& entry : map_field) {
334 target = WireHelper::InternalSerialize(field_number: 1, key: entry.first, value: entry.second, ptr: target, stream);
335 check_utf8(entry);
336 }
337 }
338 }
339
340 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
341 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
342 unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
343 }
344 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Struct)
345 return target;
346}
347
348size_t Struct::ByteSizeLong() const {
349// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Struct)
350 size_t total_size = 0;
351
352 uint32_t cached_has_bits = 0;
353 // Prevent compiler warnings about cached_has_bits being unused
354 (void) cached_has_bits;
355
356 // map<string, .google.protobuf.Value> fields = 1;
357 total_size += 1 *
358 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(size: this->_internal_fields_size());
359 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator
360 it = this->_internal_fields().begin();
361 it != this->_internal_fields().end(); ++it) {
362 total_size += Struct_FieldsEntry_DoNotUse::Funcs::ByteSizeLong(key: it->first, value: it->second);
363 }
364
365 return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_);
366}
367
368const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Struct::_class_data_ = {
369 .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
370 .merge_to_from: Struct::MergeImpl
371};
372const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Struct::GetClassData() const { return &_class_data_; }
373
374
375void Struct::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
376 auto* const _this = static_cast<Struct*>(&to_msg);
377 auto& from = static_cast<const Struct&>(from_msg);
378 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Struct)
379 GOOGLE_DCHECK_NE(&from, _this);
380 uint32_t cached_has_bits = 0;
381 (void) cached_has_bits;
382
383 _this->_impl_.fields_.MergeFrom(other: from._impl_.fields_);
384 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_);
385}
386
387void Struct::CopyFrom(const Struct& from) {
388// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Struct)
389 if (&from == this) return;
390 Clear();
391 MergeFrom(from);
392}
393
394bool Struct::IsInitialized() const {
395 return true;
396}
397
398void Struct::InternalSwap(Struct* other) {
399 using std::swap;
400 _internal_metadata_.InternalSwap(other: &other->_internal_metadata_);
401 _impl_.fields_.InternalSwap(other: &other->_impl_.fields_);
402}
403
404::PROTOBUF_NAMESPACE_ID::Metadata Struct::GetMetadata() const {
405 return ::_pbi::AssignDescriptors(
406 table: &descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once,
407 metadata: file_level_metadata_google_2fprotobuf_2fstruct_2eproto[1]);
408}
409
410// ===================================================================
411
412class Value::_Internal {
413 public:
414 static const ::PROTOBUF_NAMESPACE_ID::Struct& struct_value(const Value* msg);
415 static const ::PROTOBUF_NAMESPACE_ID::ListValue& list_value(const Value* msg);
416};
417
418const ::PROTOBUF_NAMESPACE_ID::Struct&
419Value::_Internal::struct_value(const Value* msg) {
420 return *msg->_impl_.kind_.struct_value_;
421}
422const ::PROTOBUF_NAMESPACE_ID::ListValue&
423Value::_Internal::list_value(const Value* msg) {
424 return *msg->_impl_.kind_.list_value_;
425}
426void Value::set_allocated_struct_value(::PROTOBUF_NAMESPACE_ID::Struct* struct_value) {
427 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
428 clear_kind();
429 if (struct_value) {
430 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
431 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(p: struct_value);
432 if (message_arena != submessage_arena) {
433 struct_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
434 message_arena, submessage: struct_value, submessage_arena);
435 }
436 set_has_struct_value();
437 _impl_.kind_.struct_value_ = struct_value;
438 }
439 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_value)
440}
441void Value::set_allocated_list_value(::PROTOBUF_NAMESPACE_ID::ListValue* list_value) {
442 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
443 clear_kind();
444 if (list_value) {
445 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
446 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(p: list_value);
447 if (message_arena != submessage_arena) {
448 list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
449 message_arena, submessage: list_value, submessage_arena);
450 }
451 set_has_list_value();
452 _impl_.kind_.list_value_ = list_value;
453 }
454 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_value)
455}
456Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena,
457 bool is_message_owned)
458 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
459 SharedCtor(arena, is_message_owned);
460 // @@protoc_insertion_point(arena_constructor:google.protobuf.Value)
461}
462Value::Value(const Value& from)
463 : ::PROTOBUF_NAMESPACE_ID::Message() {
464 Value* const _this = this; (void)_this;
465 new (&_impl_) Impl_{
466 .kind_: decltype(_impl_.kind_){}
467 , /*decltype(_impl_._cached_size_)*/._cached_size_: {}
468 , /*decltype(_impl_._oneof_case_)*/._oneof_case_: {}};
469
470 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_);
471 clear_has_kind();
472 switch (from.kind_case()) {
473 case kNullValue: {
474 _this->_internal_set_null_value(value: from._internal_null_value());
475 break;
476 }
477 case kNumberValue: {
478 _this->_internal_set_number_value(value: from._internal_number_value());
479 break;
480 }
481 case kStringValue: {
482 _this->_internal_set_string_value(value: from._internal_string_value());
483 break;
484 }
485 case kBoolValue: {
486 _this->_internal_set_bool_value(value: from._internal_bool_value());
487 break;
488 }
489 case kStructValue: {
490 _this->_internal_mutable_struct_value()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(
491 from: from._internal_struct_value());
492 break;
493 }
494 case kListValue: {
495 _this->_internal_mutable_list_value()->::PROTOBUF_NAMESPACE_ID::ListValue::MergeFrom(
496 from: from._internal_list_value());
497 break;
498 }
499 case KIND_NOT_SET: {
500 break;
501 }
502 }
503 // @@protoc_insertion_point(copy_constructor:google.protobuf.Value)
504}
505
506inline void Value::SharedCtor(
507 ::_pb::Arena* arena, bool is_message_owned) {
508 (void)arena;
509 (void)is_message_owned;
510 new (&_impl_) Impl_{
511 .kind_: decltype(_impl_.kind_){}
512 , /*decltype(_impl_._cached_size_)*/._cached_size_: {}
513 , /*decltype(_impl_._oneof_case_)*/._oneof_case_: {}
514 };
515 clear_has_kind();
516}
517
518Value::~Value() {
519 // @@protoc_insertion_point(destructor:google.protobuf.Value)
520 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
521 (void)arena;
522 return;
523 }
524 SharedDtor();
525}
526
527inline void Value::SharedDtor() {
528 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
529 if (has_kind()) {
530 clear_kind();
531 }
532}
533
534void Value::SetCachedSize(int size) const {
535 _impl_._cached_size_.Set(size);
536}
537
538void Value::clear_kind() {
539// @@protoc_insertion_point(one_of_clear_start:google.protobuf.Value)
540 switch (kind_case()) {
541 case kNullValue: {
542 // No need to clear
543 break;
544 }
545 case kNumberValue: {
546 // No need to clear
547 break;
548 }
549 case kStringValue: {
550 _impl_.kind_.string_value_.Destroy();
551 break;
552 }
553 case kBoolValue: {
554 // No need to clear
555 break;
556 }
557 case kStructValue: {
558 if (GetArenaForAllocation() == nullptr) {
559 delete _impl_.kind_.struct_value_;
560 }
561 break;
562 }
563 case kListValue: {
564 if (GetArenaForAllocation() == nullptr) {
565 delete _impl_.kind_.list_value_;
566 }
567 break;
568 }
569 case KIND_NOT_SET: {
570 break;
571 }
572 }
573 _impl_._oneof_case_[0] = KIND_NOT_SET;
574}
575
576
577void Value::Clear() {
578// @@protoc_insertion_point(message_clear_start:google.protobuf.Value)
579 uint32_t cached_has_bits = 0;
580 // Prevent compiler warnings about cached_has_bits being unused
581 (void) cached_has_bits;
582
583 clear_kind();
584 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
585}
586
587const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
588#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
589 while (!ctx->Done(ptr: &ptr)) {
590 uint32_t tag;
591 ptr = ::_pbi::ReadTag(p: ptr, out: &tag);
592 switch (tag >> 3) {
593 // .google.protobuf.NullValue null_value = 1;
594 case 1:
595 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
596 uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(p: &ptr);
597 CHK_(ptr);
598 _internal_set_null_value(value: static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(val));
599 } else
600 goto handle_unusual;
601 continue;
602 // double number_value = 2;
603 case 2:
604 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
605 _internal_set_number_value(value: ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(p: ptr));
606 ptr += sizeof(double);
607 } else
608 goto handle_unusual;
609 continue;
610 // string string_value = 3;
611 case 3:
612 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
613 auto str = _internal_mutable_string_value();
614 ptr = ::_pbi::InlineGreedyStringParser(s: str, ptr, ctx);
615 CHK_(ptr);
616 CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Value.string_value"));
617 } else
618 goto handle_unusual;
619 continue;
620 // bool bool_value = 4;
621 case 4:
622 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
623 _internal_set_bool_value(value: ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(p: &ptr));
624 CHK_(ptr);
625 } else
626 goto handle_unusual;
627 continue;
628 // .google.protobuf.Struct struct_value = 5;
629 case 5:
630 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
631 ptr = ctx->ParseMessage(msg: _internal_mutable_struct_value(), ptr);
632 CHK_(ptr);
633 } else
634 goto handle_unusual;
635 continue;
636 // .google.protobuf.ListValue list_value = 6;
637 case 6:
638 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
639 ptr = ctx->ParseMessage(msg: _internal_mutable_list_value(), ptr);
640 CHK_(ptr);
641 } else
642 goto handle_unusual;
643 continue;
644 default:
645 goto handle_unusual;
646 } // switch
647 handle_unusual:
648 if ((tag == 0) || ((tag & 7) == 4)) {
649 CHK_(ptr);
650 ctx->SetLastTag(tag);
651 goto message_done;
652 }
653 ptr = UnknownFieldParse(
654 tag,
655 unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
656 ptr, ctx);
657 CHK_(ptr != nullptr);
658 } // while
659message_done:
660 return ptr;
661failure:
662 ptr = nullptr;
663 goto message_done;
664#undef CHK_
665}
666
667uint8_t* Value::_InternalSerialize(
668 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
669 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value)
670 uint32_t cached_has_bits = 0;
671 (void) cached_has_bits;
672
673 // .google.protobuf.NullValue null_value = 1;
674 if (_internal_has_null_value()) {
675 target = stream->EnsureSpace(ptr: target);
676 target = ::_pbi::WireFormatLite::WriteEnumToArray(
677 field_number: 1, value: this->_internal_null_value(), target);
678 }
679
680 // double number_value = 2;
681 if (_internal_has_number_value()) {
682 target = stream->EnsureSpace(ptr: target);
683 target = ::_pbi::WireFormatLite::WriteDoubleToArray(field_number: 2, value: this->_internal_number_value(), target);
684 }
685
686 // string string_value = 3;
687 if (_internal_has_string_value()) {
688 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
689 data: this->_internal_string_value().data(), size: static_cast<int>(this->_internal_string_value().length()),
690 op: ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
691 field_name: "google.protobuf.Value.string_value");
692 target = stream->WriteStringMaybeAliased(
693 num: 3, s: this->_internal_string_value(), ptr: target);
694 }
695
696 // bool bool_value = 4;
697 if (_internal_has_bool_value()) {
698 target = stream->EnsureSpace(ptr: target);
699 target = ::_pbi::WireFormatLite::WriteBoolToArray(field_number: 4, value: this->_internal_bool_value(), target);
700 }
701
702 // .google.protobuf.Struct struct_value = 5;
703 if (_internal_has_struct_value()) {
704 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
705 InternalWriteMessage(field_number: 5, value: _Internal::struct_value(msg: this),
706 cached_size: _Internal::struct_value(msg: this).GetCachedSize(), target, stream);
707 }
708
709 // .google.protobuf.ListValue list_value = 6;
710 if (_internal_has_list_value()) {
711 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
712 InternalWriteMessage(field_number: 6, value: _Internal::list_value(msg: this),
713 cached_size: _Internal::list_value(msg: this).GetCachedSize(), target, stream);
714 }
715
716 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
717 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
718 unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
719 }
720 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Value)
721 return target;
722}
723
724size_t Value::ByteSizeLong() const {
725// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Value)
726 size_t total_size = 0;
727
728 uint32_t cached_has_bits = 0;
729 // Prevent compiler warnings about cached_has_bits being unused
730 (void) cached_has_bits;
731
732 switch (kind_case()) {
733 // .google.protobuf.NullValue null_value = 1;
734 case kNullValue: {
735 total_size += 1 +
736 ::_pbi::WireFormatLite::EnumSize(value: this->_internal_null_value());
737 break;
738 }
739 // double number_value = 2;
740 case kNumberValue: {
741 total_size += 1 + 8;
742 break;
743 }
744 // string string_value = 3;
745 case kStringValue: {
746 total_size += 1 +
747 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
748 value: this->_internal_string_value());
749 break;
750 }
751 // bool bool_value = 4;
752 case kBoolValue: {
753 total_size += 1 + 1;
754 break;
755 }
756 // .google.protobuf.Struct struct_value = 5;
757 case kStructValue: {
758 total_size += 1 +
759 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
760 value: *_impl_.kind_.struct_value_);
761 break;
762 }
763 // .google.protobuf.ListValue list_value = 6;
764 case kListValue: {
765 total_size += 1 +
766 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
767 value: *_impl_.kind_.list_value_);
768 break;
769 }
770 case KIND_NOT_SET: {
771 break;
772 }
773 }
774 return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_);
775}
776
777const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value::_class_data_ = {
778 .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
779 .merge_to_from: Value::MergeImpl
780};
781const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value::GetClassData() const { return &_class_data_; }
782
783
784void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
785 auto* const _this = static_cast<Value*>(&to_msg);
786 auto& from = static_cast<const Value&>(from_msg);
787 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Value)
788 GOOGLE_DCHECK_NE(&from, _this);
789 uint32_t cached_has_bits = 0;
790 (void) cached_has_bits;
791
792 switch (from.kind_case()) {
793 case kNullValue: {
794 _this->_internal_set_null_value(value: from._internal_null_value());
795 break;
796 }
797 case kNumberValue: {
798 _this->_internal_set_number_value(value: from._internal_number_value());
799 break;
800 }
801 case kStringValue: {
802 _this->_internal_set_string_value(value: from._internal_string_value());
803 break;
804 }
805 case kBoolValue: {
806 _this->_internal_set_bool_value(value: from._internal_bool_value());
807 break;
808 }
809 case kStructValue: {
810 _this->_internal_mutable_struct_value()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(
811 from: from._internal_struct_value());
812 break;
813 }
814 case kListValue: {
815 _this->_internal_mutable_list_value()->::PROTOBUF_NAMESPACE_ID::ListValue::MergeFrom(
816 from: from._internal_list_value());
817 break;
818 }
819 case KIND_NOT_SET: {
820 break;
821 }
822 }
823 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_);
824}
825
826void Value::CopyFrom(const Value& from) {
827// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Value)
828 if (&from == this) return;
829 Clear();
830 MergeFrom(from);
831}
832
833bool Value::IsInitialized() const {
834 return true;
835}
836
837void Value::InternalSwap(Value* other) {
838 using std::swap;
839 _internal_metadata_.InternalSwap(other: &other->_internal_metadata_);
840 swap(a&: _impl_.kind_, b&: other->_impl_.kind_);
841 swap(a&: _impl_._oneof_case_[0], b&: other->_impl_._oneof_case_[0]);
842}
843
844::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const {
845 return ::_pbi::AssignDescriptors(
846 table: &descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once,
847 metadata: file_level_metadata_google_2fprotobuf_2fstruct_2eproto[2]);
848}
849
850// ===================================================================
851
852class ListValue::_Internal {
853 public:
854};
855
856ListValue::ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
857 bool is_message_owned)
858 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
859 SharedCtor(arena, is_message_owned);
860 // @@protoc_insertion_point(arena_constructor:google.protobuf.ListValue)
861}
862ListValue::ListValue(const ListValue& from)
863 : ::PROTOBUF_NAMESPACE_ID::Message() {
864 ListValue* const _this = this; (void)_this;
865 new (&_impl_) Impl_{
866 .values_: decltype(_impl_.values_){from._impl_.values_}
867 , /*decltype(_impl_._cached_size_)*/._cached_size_: {}};
868
869 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_);
870 // @@protoc_insertion_point(copy_constructor:google.protobuf.ListValue)
871}
872
873inline void ListValue::SharedCtor(
874 ::_pb::Arena* arena, bool is_message_owned) {
875 (void)arena;
876 (void)is_message_owned;
877 new (&_impl_) Impl_{
878 .values_: decltype(_impl_.values_){arena}
879 , /*decltype(_impl_._cached_size_)*/._cached_size_: {}
880 };
881}
882
883ListValue::~ListValue() {
884 // @@protoc_insertion_point(destructor:google.protobuf.ListValue)
885 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
886 (void)arena;
887 return;
888 }
889 SharedDtor();
890}
891
892inline void ListValue::SharedDtor() {
893 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
894 _impl_.values_.~RepeatedPtrField();
895}
896
897void ListValue::SetCachedSize(int size) const {
898 _impl_._cached_size_.Set(size);
899}
900
901void ListValue::Clear() {
902// @@protoc_insertion_point(message_clear_start:google.protobuf.ListValue)
903 uint32_t cached_has_bits = 0;
904 // Prevent compiler warnings about cached_has_bits being unused
905 (void) cached_has_bits;
906
907 _impl_.values_.Clear();
908 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
909}
910
911const char* ListValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
912#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
913 while (!ctx->Done(ptr: &ptr)) {
914 uint32_t tag;
915 ptr = ::_pbi::ReadTag(p: ptr, out: &tag);
916 switch (tag >> 3) {
917 // repeated .google.protobuf.Value values = 1;
918 case 1:
919 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
920 ptr -= 1;
921 do {
922 ptr += 1;
923 ptr = ctx->ParseMessage(msg: _internal_add_values(), ptr);
924 CHK_(ptr);
925 if (!ctx->DataAvailable(ptr)) break;
926 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
927 } else
928 goto handle_unusual;
929 continue;
930 default:
931 goto handle_unusual;
932 } // switch
933 handle_unusual:
934 if ((tag == 0) || ((tag & 7) == 4)) {
935 CHK_(ptr);
936 ctx->SetLastTag(tag);
937 goto message_done;
938 }
939 ptr = UnknownFieldParse(
940 tag,
941 unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
942 ptr, ctx);
943 CHK_(ptr != nullptr);
944 } // while
945message_done:
946 return ptr;
947failure:
948 ptr = nullptr;
949 goto message_done;
950#undef CHK_
951}
952
953uint8_t* ListValue::_InternalSerialize(
954 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
955 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue)
956 uint32_t cached_has_bits = 0;
957 (void) cached_has_bits;
958
959 // repeated .google.protobuf.Value values = 1;
960 for (unsigned i = 0,
961 n = static_cast<unsigned>(this->_internal_values_size()); i < n; i++) {
962 const auto& repfield = this->_internal_values(index: i);
963 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
964 InternalWriteMessage(field_number: 1, value: repfield, cached_size: repfield.GetCachedSize(), target, stream);
965 }
966
967 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
968 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
969 unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
970 }
971 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ListValue)
972 return target;
973}
974
975size_t ListValue::ByteSizeLong() const {
976// @@protoc_insertion_point(message_byte_size_start:google.protobuf.ListValue)
977 size_t total_size = 0;
978
979 uint32_t cached_has_bits = 0;
980 // Prevent compiler warnings about cached_has_bits being unused
981 (void) cached_has_bits;
982
983 // repeated .google.protobuf.Value values = 1;
984 total_size += 1UL * this->_internal_values_size();
985 for (const auto& msg : this->_impl_.values_) {
986 total_size +=
987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(value: msg);
988 }
989
990 return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_);
991}
992
993const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListValue::_class_data_ = {
994 .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
995 .merge_to_from: ListValue::MergeImpl
996};
997const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListValue::GetClassData() const { return &_class_data_; }
998
999
1000void ListValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1001 auto* const _this = static_cast<ListValue*>(&to_msg);
1002 auto& from = static_cast<const ListValue&>(from_msg);
1003 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ListValue)
1004 GOOGLE_DCHECK_NE(&from, _this);
1005 uint32_t cached_has_bits = 0;
1006 (void) cached_has_bits;
1007
1008 _this->_impl_.values_.MergeFrom(other: from._impl_.values_);
1009 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_);
1010}
1011
1012void ListValue::CopyFrom(const ListValue& from) {
1013// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ListValue)
1014 if (&from == this) return;
1015 Clear();
1016 MergeFrom(from);
1017}
1018
1019bool ListValue::IsInitialized() const {
1020 return true;
1021}
1022
1023void ListValue::InternalSwap(ListValue* other) {
1024 using std::swap;
1025 _internal_metadata_.InternalSwap(other: &other->_internal_metadata_);
1026 _impl_.values_.InternalSwap(other: &other->_impl_.values_);
1027}
1028
1029::PROTOBUF_NAMESPACE_ID::Metadata ListValue::GetMetadata() const {
1030 return ::_pbi::AssignDescriptors(
1031 table: &descriptor_table_google_2fprotobuf_2fstruct_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once,
1032 metadata: file_level_metadata_google_2fprotobuf_2fstruct_2eproto[3]);
1033}
1034
1035// @@protoc_insertion_point(namespace_scope)
1036PROTOBUF_NAMESPACE_CLOSE
1037PROTOBUF_NAMESPACE_OPEN
1038template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse*
1039Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse >(Arena* arena) {
1040 return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse >(arena);
1041}
1042template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Struct*
1043Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Struct >(Arena* arena) {
1044 return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Struct >(arena);
1045}
1046template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Value*
1047Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Value >(Arena* arena) {
1048 return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Value >(arena);
1049}
1050template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::ListValue*
1051Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::ListValue >(Arena* arena) {
1052 return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::ListValue >(arena);
1053}
1054PROTOBUF_NAMESPACE_CLOSE
1055
1056// @@protoc_insertion_point(global_scope)
1057#include <google/protobuf/port_undef.inc>
1058