| 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 < 3021000 |
| 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 3021004 < 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_bases.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 uint32_t offsets[]; |
| 46 | }; |
| 47 | PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fempty_2eproto; |
| 48 | PROTOBUF_NAMESPACE_OPEN |
| 49 | class Empty; |
| 50 | struct EmptyDefaultTypeInternal; |
| 51 | PROTOBUF_EXPORT extern EmptyDefaultTypeInternal _Empty_default_instance_; |
| 52 | PROTOBUF_NAMESPACE_CLOSE |
| 53 | PROTOBUF_NAMESPACE_OPEN |
| 54 | template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Empty* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Empty>(Arena*); |
| 55 | PROTOBUF_NAMESPACE_CLOSE |
| 56 | PROTOBUF_NAMESPACE_OPEN |
| 57 | |
| 58 | // =================================================================== |
| 59 | |
| 60 | class PROTOBUF_EXPORT Empty final : |
| 61 | public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:google.protobuf.Empty) */ { |
| 62 | public: |
| 63 | inline Empty() : Empty(nullptr) {} |
| 64 | explicit PROTOBUF_CONSTEXPR Empty(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 65 | |
| 66 | Empty(const Empty& from); |
| 67 | Empty(Empty&& from) noexcept |
| 68 | : Empty() { |
| 69 | *this = ::std::move(from); |
| 70 | } |
| 71 | |
| 72 | inline Empty& operator=(const Empty& from) { |
| 73 | CopyFrom(from); |
| 74 | return *this; |
| 75 | } |
| 76 | inline Empty& operator=(Empty&& from) noexcept { |
| 77 | if (this == &from) return *this; |
| 78 | if (GetOwningArena() == from.GetOwningArena() |
| 79 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 80 | && GetOwningArena() != nullptr |
| 81 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 82 | ) { |
| 83 | InternalSwap(other: &from); |
| 84 | } else { |
| 85 | CopyFrom(from); |
| 86 | } |
| 87 | return *this; |
| 88 | } |
| 89 | |
| 90 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
| 91 | return GetDescriptor(); |
| 92 | } |
| 93 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
| 94 | return default_instance().GetMetadata().descriptor; |
| 95 | } |
| 96 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
| 97 | return default_instance().GetMetadata().reflection; |
| 98 | } |
| 99 | static const Empty& default_instance() { |
| 100 | return *internal_default_instance(); |
| 101 | } |
| 102 | static inline const Empty* internal_default_instance() { |
| 103 | return reinterpret_cast<const Empty*>( |
| 104 | &_Empty_default_instance_); |
| 105 | } |
| 106 | static constexpr int kIndexInFileMessages = |
| 107 | 0; |
| 108 | |
| 109 | friend void swap(Empty& a, Empty& b) { |
| 110 | a.Swap(other: &b); |
| 111 | } |
| 112 | inline void Swap(Empty* other) { |
| 113 | if (other == this) return; |
| 114 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 115 | if (GetOwningArena() != nullptr && |
| 116 | GetOwningArena() == other->GetOwningArena()) { |
| 117 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 118 | if (GetOwningArena() == other->GetOwningArena()) { |
| 119 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 120 | InternalSwap(other); |
| 121 | } else { |
| 122 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(m1: this, m2: other); |
| 123 | } |
| 124 | } |
| 125 | void UnsafeArenaSwap(Empty* other) { |
| 126 | if (other == this) return; |
| 127 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 128 | InternalSwap(other); |
| 129 | } |
| 130 | |
| 131 | // implements Message ---------------------------------------------- |
| 132 | |
| 133 | Empty* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 134 | return CreateMaybeMessage<Empty>(arena); |
| 135 | } |
| 136 | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; |
| 137 | inline void CopyFrom(const Empty& from) { |
| 138 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(to&: *this, from); |
| 139 | } |
| 140 | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; |
| 141 | void MergeFrom(const Empty& from) { |
| 142 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(to&: *this, from); |
| 143 | } |
| 144 | public: |
| 145 | |
| 146 | private: |
| 147 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 148 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 149 | return "google.protobuf.Empty"; |
| 150 | } |
| 151 | protected: |
| 152 | explicit Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 153 | bool is_message_owned = false); |
| 154 | public: |
| 155 | |
| 156 | static const ClassData _class_data_; |
| 157 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
| 158 | |
| 159 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
| 160 | |
| 161 | // nested types ---------------------------------------------------- |
| 162 | |
| 163 | // accessors ------------------------------------------------------- |
| 164 | |
| 165 | // @@protoc_insertion_point(class_scope:google.protobuf.Empty) |
| 166 | private: |
| 167 | class _Internal; |
| 168 | |
| 169 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 170 | typedef void InternalArenaConstructable_; |
| 171 | typedef void DestructorSkippable_; |
| 172 | struct Impl_ { |
| 173 | }; |
| 174 | friend struct ::TableStruct_google_2fprotobuf_2fempty_2eproto; |
| 175 | }; |
| 176 | // =================================================================== |
| 177 | |
| 178 | |
| 179 | // =================================================================== |
| 180 | |
| 181 | #ifdef __GNUC__ |
| 182 | #pragma GCC diagnostic push |
| 183 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
| 184 | #endif // __GNUC__ |
| 185 | // Empty |
| 186 | |
| 187 | #ifdef __GNUC__ |
| 188 | #pragma GCC diagnostic pop |
| 189 | #endif // __GNUC__ |
| 190 | |
| 191 | // @@protoc_insertion_point(namespace_scope) |
| 192 | |
| 193 | PROTOBUF_NAMESPACE_CLOSE |
| 194 | |
| 195 | // @@protoc_insertion_point(global_scope) |
| 196 | |
| 197 | #include <google/protobuf/port_undef.inc> |
| 198 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto |
| 199 |