empty.pb.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/empty.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3019000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_bases.h>
  23. #include <google/protobuf/generated_message_table_driven.h>
  24. #include <google/protobuf/generated_message_util.h>
  25. #include <google/protobuf/metadata_lite.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/unknown_field_set.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fempty_2eproto PROTOBUF_EXPORT
  34. PROTOBUF_NAMESPACE_OPEN
  35. namespace internal {
  36. class AnyMetadata;
  37. } // namespace internal
  38. PROTOBUF_NAMESPACE_CLOSE
  39. // Internal implementation detail -- do not use these members.
  40. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fempty_2eproto {
  41. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  42. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  44. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  49. static const uint32_t offsets[];
  50. };
  51. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fempty_2eproto;
  52. PROTOBUF_NAMESPACE_OPEN
  53. class Empty;
  54. struct EmptyDefaultTypeInternal;
  55. PROTOBUF_EXPORT extern EmptyDefaultTypeInternal _Empty_default_instance_;
  56. PROTOBUF_NAMESPACE_CLOSE
  57. PROTOBUF_NAMESPACE_OPEN
  58. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Empty* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Empty>(Arena*);
  59. PROTOBUF_NAMESPACE_CLOSE
  60. PROTOBUF_NAMESPACE_OPEN
  61. // ===================================================================
  62. class PROTOBUF_EXPORT Empty final :
  63. public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:google.protobuf.Empty) */ {
  64. public:
  65. inline Empty() : Empty(nullptr) {}
  66. explicit constexpr Empty(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  67. Empty(const Empty& from);
  68. Empty(Empty&& from) noexcept
  69. : Empty() {
  70. *this = ::std::move(from);
  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(&from);
  84. } else {
  85. CopyFrom(from);
  86. }
  87. return *this;
  88. }
  89. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  90. return GetDescriptor();
  91. }
  92. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  93. return default_instance().GetMetadata().descriptor;
  94. }
  95. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  96. return default_instance().GetMetadata().reflection;
  97. }
  98. static const Empty& default_instance() {
  99. return *internal_default_instance();
  100. }
  101. static inline const Empty* internal_default_instance() {
  102. return reinterpret_cast<const Empty*>(
  103. &_Empty_default_instance_);
  104. }
  105. static constexpr int kIndexInFileMessages =
  106. 0;
  107. friend void swap(Empty& a, Empty& b) {
  108. a.Swap(&b);
  109. }
  110. inline void Swap(Empty* other) {
  111. if (other == this) return;
  112. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  113. if (GetOwningArena() != nullptr &&
  114. GetOwningArena() == other->GetOwningArena()) {
  115. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  116. if (GetOwningArena() == other->GetOwningArena()) {
  117. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  118. InternalSwap(other);
  119. } else {
  120. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  121. }
  122. }
  123. void UnsafeArenaSwap(Empty* other) {
  124. if (other == this) return;
  125. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  126. InternalSwap(other);
  127. }
  128. // implements Message ----------------------------------------------
  129. Empty* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  130. return CreateMaybeMessage<Empty>(arena);
  131. }
  132. using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom;
  133. inline void CopyFrom(const Empty& from) {
  134. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from);
  135. }
  136. using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom;
  137. void MergeFrom(const Empty& from) {
  138. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from);
  139. }
  140. public:
  141. private:
  142. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  143. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  144. return "google.protobuf.Empty";
  145. }
  146. protected:
  147. explicit Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  148. bool is_message_owned = false);
  149. private:
  150. public:
  151. static const ClassData _class_data_;
  152. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  153. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  154. // nested types ----------------------------------------------------
  155. // accessors -------------------------------------------------------
  156. // @@protoc_insertion_point(class_scope:google.protobuf.Empty)
  157. private:
  158. class _Internal;
  159. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  160. typedef void InternalArenaConstructable_;
  161. typedef void DestructorSkippable_;
  162. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  163. friend struct ::TableStruct_google_2fprotobuf_2fempty_2eproto;
  164. };
  165. // ===================================================================
  166. // ===================================================================
  167. #ifdef __GNUC__
  168. #pragma GCC diagnostic push
  169. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  170. #endif // __GNUC__
  171. // Empty
  172. #ifdef __GNUC__
  173. #pragma GCC diagnostic pop
  174. #endif // __GNUC__
  175. // @@protoc_insertion_point(namespace_scope)
  176. PROTOBUF_NAMESPACE_CLOSE
  177. // @@protoc_insertion_point(global_scope)
  178. #include <google/protobuf/port_undef.inc>
  179. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto