4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3009000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/port_undef.inc>
40 #include <google/protobuf/port_def.inc>
41 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto PROTOBUF_EXPORT
42 PROTOBUF_NAMESPACE_OPEN
46 PROTOBUF_NAMESPACE_CLOSE
50 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
52 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
54 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
57 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
61 PROTOBUF_NAMESPACE_OPEN
74 PROTOBUF_NAMESPACE_CLOSE
75 PROTOBUF_NAMESPACE_OPEN
78 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
81 PROTOBUF_NAMESPACE_OPEN
98 "Incorrect type passed to function NullValue_Name.");
104 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<NullValue>(
110 std::string, PROTOBUF_NAMESPACE_ID::Value,
111 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
112 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
117 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
118 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
125 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
s->data(),
s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
"google.protobuf.Struct.FieldsEntry.key");
128 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other)
final;
142 public ::PROTOBUF_NAMESPACE_ID::Message {
150 *
this = ::std::move(from);
159 if (
this != &from) InternalSwap(&from);
167 return GetArenaNoVirtual();
170 return MaybeArenaPtr();
176 return GetMetadataStatic().descriptor;
179 return GetMetadataStatic().reflection;
181 static const Struct& default_instance();
183 static void InitAsDefaultInstance();
185 return reinterpret_cast<const Struct*
>(
188 static constexpr
int kIndexInFileMessages =
195 if (other ==
this)
return;
203 if (other ==
this)
return;
211 return CreateMaybeMessage<Struct>(
nullptr);
214 Struct*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
215 return CreateMaybeMessage<Struct>(arena);
217 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
218 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
221 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
224 size_t ByteSizeLong()
const final;
225 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
226 const char*
_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
229 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input)
final;
230 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
231 void SerializeWithCachedSizes(
232 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const final;
238 inline void SharedCtor();
239 inline void SharedDtor();
240 void SetCachedSize(
int size)
const final;
241 void InternalSwap(
Struct* other);
242 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
244 return "google.protobuf.Struct";
247 explicit Struct(::PROTOBUF_NAMESPACE_ID::Arena* arena);
249 static void ArenaDtor(
void*
object);
250 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
253 return _internal_metadata_.arena();
256 return _internal_metadata_.raw_arena_ptr();
260 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata()
const final;
262 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
275 kFieldsFieldNumber = 1,
278 int fields_size()
const;
280 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >&
282 ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >*
290 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
293 ::PROTOBUF_NAMESPACE_ID::internal::MapField<
296 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
297 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
300 friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
305 public ::PROTOBUF_NAMESPACE_ID::Message {
313 *
this = ::std::move(from);
322 if (
this != &from) InternalSwap(&from);
330 return GetArenaNoVirtual();
333 return MaybeArenaPtr();
339 return GetMetadataStatic().descriptor;
342 return GetMetadataStatic().reflection;
344 static const Value& default_instance();
356 static void InitAsDefaultInstance();
358 return reinterpret_cast<const Value*
>(
361 static constexpr
int kIndexInFileMessages =
368 if (other ==
this)
return;
376 if (other ==
this)
return;
384 return CreateMaybeMessage<Value>(
nullptr);
387 Value*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
388 return CreateMaybeMessage<Value>(arena);
390 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
391 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
394 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
397 size_t ByteSizeLong()
const final;
398 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
399 const char*
_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
402 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input)
final;
403 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
404 void SerializeWithCachedSizes(
405 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const final;
411 inline void SharedCtor();
412 inline void SharedDtor();
413 void SetCachedSize(
int size)
const final;
414 void InternalSwap(
Value* other);
415 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
417 return "google.protobuf.Value";
420 explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena);
422 static void ArenaDtor(
void*
object);
423 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
426 return _internal_metadata_.arena();
429 return _internal_metadata_.raw_arena_ptr();
433 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata()
const final;
435 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
447 kNullValueFieldNumber = 1,
448 kNumberValueFieldNumber = 2,
449 kStringValueFieldNumber = 3,
450 kBoolValueFieldNumber = 4,
451 kStructValueFieldNumber = 5,
452 kListValueFieldNumber = 6,
456 bool has_null_value()
const;
458 void clear_null_value();
464 bool has_number_value()
const;
466 void clear_number_value();
467 double number_value()
const;
468 void set_number_value(
double value);
472 bool has_string_value()
const;
474 void clear_string_value();
478 void set_string_value(
const char*
value);
479 void set_string_value(
const char*
value,
size_t size);
482 void set_allocated_string_value(
std::string* string_value);
484 " string fields are deprecated and will be removed in a"
486 std::
string* unsafe_arena_release_string_value();
488 "
string fields are deprecated and will be removed in
a"
490 void unsafe_arena_set_allocated_string_value(
491 std::
string* string_value);
495 bool has_bool_value()
const;
497 void clear_bool_value();
498 bool bool_value()
const;
499 void set_bool_value(
bool value);
502 bool has_struct_value()
const;
503 void clear_struct_value();
505 PROTOBUF_NAMESPACE_ID::
Struct* release_struct_value();
506 PROTOBUF_NAMESPACE_ID::
Struct* mutable_struct_value();
507 void set_allocated_struct_value(PROTOBUF_NAMESPACE_ID::
Struct* struct_value);
508 void unsafe_arena_set_allocated_struct_value(
509 PROTOBUF_NAMESPACE_ID::
Struct* struct_value);
510 PROTOBUF_NAMESPACE_ID::
Struct* unsafe_arena_release_struct_value();
513 bool has_list_value()
const;
514 void clear_list_value();
516 PROTOBUF_NAMESPACE_ID::
ListValue* release_list_value();
517 PROTOBUF_NAMESPACE_ID::
ListValue* mutable_list_value();
518 void set_allocated_list_value(PROTOBUF_NAMESPACE_ID::
ListValue* list_value);
519 void unsafe_arena_set_allocated_list_value(
520 PROTOBUF_NAMESPACE_ID::
ListValue* list_value);
521 PROTOBUF_NAMESPACE_ID::
ListValue* unsafe_arena_release_list_value();
524 KindCase kind_case()
const;
528 void set_has_null_value();
529 void set_has_number_value();
530 void set_has_string_value();
531 void set_has_bool_value();
532 void set_has_struct_value();
533 void set_has_list_value();
535 inline
bool has_kind()
const;
536 inline
void clear_has_kind();
538 ::PROTOBUF_NAMESPACE_ID::
internal::InternalMetadataWithArena _internal_metadata_;
539 template <typename
T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
554 friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
559 public ::PROTOBUF_NAMESPACE_ID::Message {
567 *
this = ::std::move(from);
576 if (
this != &from) InternalSwap(&from);
584 return GetArenaNoVirtual();
587 return MaybeArenaPtr();
593 return GetMetadataStatic().descriptor;
596 return GetMetadataStatic().reflection;
598 static const ListValue& default_instance();
600 static void InitAsDefaultInstance();
602 return reinterpret_cast<const ListValue*
>(
605 static constexpr
int kIndexInFileMessages =
612 if (other ==
this)
return;
620 if (other ==
this)
return;
628 return CreateMaybeMessage<ListValue>(
nullptr);
632 return CreateMaybeMessage<ListValue>(arena);
634 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
635 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
638 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
641 size_t ByteSizeLong()
const final;
642 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
643 const char*
_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
646 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input)
final;
647 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
648 void SerializeWithCachedSizes(
649 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const final;
655 inline void SharedCtor();
656 inline void SharedDtor();
657 void SetCachedSize(
int size)
const final;
659 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
661 return "google.protobuf.ListValue";
664 explicit ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena);
666 static void ArenaDtor(
void*
object);
667 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
670 return _internal_metadata_.arena();
673 return _internal_metadata_.raw_arena_ptr();
677 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata()
const final;
679 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
691 kValuesFieldNumber = 1,
694 int values_size()
const;
697 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >*
701 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >&
709 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
712 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >
values_;
714 friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
722 #pragma GCC diagnostic push
723 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
736 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >&
741 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >*
871 reinterpret_cast<const char*
>(
value),
size),
905 inline std::string* Value::unsafe_arena_release_string_value() {
916 inline void Value::unsafe_arena_set_allocated_string_value(
std::string* string_value) {
1081 kind_.
list_value_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::ListValue >(
1112 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >*
1125 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >&
1132 #pragma GCC diagnostic pop
1143 PROTOBUF_NAMESPACE_CLOSE
1145 PROTOBUF_NAMESPACE_OPEN
1149 inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::NullValue>() {
1153 PROTOBUF_NAMESPACE_CLOSE
1157 #include <google/protobuf/port_undef.inc>
1158 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto