You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

empty.pb.h 7.1 kB

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