1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: google/protobuf/empty.proto 3 4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto 5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto 6 7 #include <limits> 8 #include <string> 9 10 #include <google/protobuf/port_def.inc> 11 #if PROTOBUF_VERSION < 3014000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 14 #error your headers. 15 #endif 16 #if 3014000 < 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. 20 #endif 21 22 #include <google/protobuf/port_undef.inc> 23 #include <google/protobuf/io/coded_stream.h> 24 #include <google/protobuf/arena.h> 25 #include <google/protobuf/arenastring.h> 26 #include <google/protobuf/generated_message_table_driven.h> 27 #include <google/protobuf/generated_message_util.h> 28 #include <google/protobuf/metadata_lite.h> 29 #include <google/protobuf/generated_message_reflection.h> 30 #include <google/protobuf/message.h> 31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export 32 #include <google/protobuf/extension_set.h> // IWYU pragma: export 33 #include <google/protobuf/unknown_field_set.h> 34 // @@protoc_insertion_point(includes) 35 #include <google/protobuf/port_def.inc> 36 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fempty_2eproto PROTOBUF_EXPORT 37 PROTOBUF_NAMESPACE_OPEN 38 namespace internal { 39 class AnyMetadata; 40 } // namespace internal 41 PROTOBUF_NAMESPACE_CLOSE 42 43 // Internal implementation detail -- do not use these members. 44 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fempty_2eproto { 45 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] 46 PROTOBUF_SECTION_VARIABLE(protodesc_cold); 47 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] 48 PROTOBUF_SECTION_VARIABLE(protodesc_cold); 49 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] 50 PROTOBUF_SECTION_VARIABLE(protodesc_cold); 51 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; 52 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; 53 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; 54 }; 55 extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fempty_2eproto; 56 PROTOBUF_NAMESPACE_OPEN 57 class Empty; 58 class EmptyDefaultTypeInternal; 59 PROTOBUF_EXPORT extern EmptyDefaultTypeInternal _Empty_default_instance_; 60 PROTOBUF_NAMESPACE_CLOSE 61 PROTOBUF_NAMESPACE_OPEN 62 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Empty* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Empty>(Arena*); 63 PROTOBUF_NAMESPACE_CLOSE 64 PROTOBUF_NAMESPACE_OPEN 65 66 // =================================================================== 67 68 class PROTOBUF_EXPORT Empty PROTOBUF_FINAL : 69 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Empty) */ { 70 public: Empty()71 inline Empty() : Empty(nullptr) {} 72 virtual ~Empty(); 73 74 Empty(const Empty& from); Empty(Empty && from)75 Empty(Empty&& from) noexcept 76 : Empty() { 77 *this = ::std::move(from); 78 } 79 80 inline Empty& operator=(const Empty& from) { 81 CopyFrom(from); 82 return *this; 83 } 84 inline Empty& operator=(Empty&& from) noexcept { 85 if (GetArena() == from.GetArena()) { 86 if (this != &from) InternalSwap(&from); 87 } else { 88 CopyFrom(from); 89 } 90 return *this; 91 } 92 descriptor()93 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { 94 return GetDescriptor(); 95 } GetDescriptor()96 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { 97 return GetMetadataStatic().descriptor; 98 } GetReflection()99 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { 100 return GetMetadataStatic().reflection; 101 } 102 static const Empty& default_instance(); 103 internal_default_instance()104 static inline const Empty* internal_default_instance() { 105 return reinterpret_cast<const Empty*>( 106 &_Empty_default_instance_); 107 } 108 static constexpr int kIndexInFileMessages = 109 0; 110 swap(Empty & a,Empty & b)111 friend void swap(Empty& a, Empty& b) { 112 a.Swap(&b); 113 } Swap(Empty * other)114 inline void Swap(Empty* other) { 115 if (other == this) return; 116 if (GetArena() == other->GetArena()) { 117 InternalSwap(other); 118 } else { 119 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); 120 } 121 } UnsafeArenaSwap(Empty * other)122 void UnsafeArenaSwap(Empty* other) { 123 if (other == this) return; 124 GOOGLE_DCHECK(GetArena() == other->GetArena()); 125 InternalSwap(other); 126 } 127 128 // implements Message ---------------------------------------------- 129 New()130 inline Empty* New() const final { 131 return CreateMaybeMessage<Empty>(nullptr); 132 } 133 New(::PROTOBUF_NAMESPACE_ID::Arena * arena)134 Empty* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { 135 return CreateMaybeMessage<Empty>(arena); 136 } 137 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; 138 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; 139 void CopyFrom(const Empty& from); 140 void MergeFrom(const Empty& from); 141 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; 142 bool IsInitialized() const final; 143 144 size_t ByteSizeLong() const final; 145 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; 146 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( 147 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; GetCachedSize()148 int GetCachedSize() const final { return _cached_size_.Get(); } 149 150 private: 151 inline void SharedCtor(); 152 inline void SharedDtor(); 153 void SetCachedSize(int size) const final; 154 void InternalSwap(Empty* other); 155 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; FullMessageName()156 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { 157 return "google.protobuf.Empty"; 158 } 159 protected: 160 explicit Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena); 161 private: 162 static void ArenaDtor(void* object); 163 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); 164 public: 165 166 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; 167 private: GetMetadataStatic()168 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { 169 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fempty_2eproto); 170 return ::descriptor_table_google_2fprotobuf_2fempty_2eproto.file_level_metadata[kIndexInFileMessages]; 171 } 172 173 public: 174 175 // nested types ---------------------------------------------------- 176 177 // accessors ------------------------------------------------------- 178 179 // @@protoc_insertion_point(class_scope:google.protobuf.Empty) 180 private: 181 class _Internal; 182 183 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; 184 typedef void InternalArenaConstructable_; 185 typedef void DestructorSkippable_; 186 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; 187 friend struct ::TableStruct_google_2fprotobuf_2fempty_2eproto; 188 }; 189 // =================================================================== 190 191 192 // =================================================================== 193 194 #ifdef __GNUC__ 195 #pragma GCC diagnostic push 196 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 197 #endif // __GNUC__ 198 // Empty 199 200 #ifdef __GNUC__ 201 #pragma GCC diagnostic pop 202 #endif // __GNUC__ 203 204 // @@protoc_insertion_point(namespace_scope) 205 206 PROTOBUF_NAMESPACE_CLOSE 207 208 // @@protoc_insertion_point(global_scope) 209 210 #include <google/protobuf/port_undef.inc> 211 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto 212