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