empty.pb.h 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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_2epb_2eh
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto_2epb_2eh
  5. #include <limits>
  6. #include <string>
  7. #include <type_traits>
  8. #include "google/protobuf/port_def.inc"
  9. #if PROTOBUF_VERSION < 4022000
  10. #error "This file was generated by a newer version of protoc which is"
  11. #error "incompatible with your Protocol Buffer headers. Please update"
  12. #error "your headers."
  13. #endif // PROTOBUF_VERSION
  14. #if 4022003 < PROTOBUF_MIN_PROTOC_VERSION
  15. #error "This file was generated by an older version of protoc which is"
  16. #error "incompatible with your Protocol Buffer headers. Please"
  17. #error "regenerate this file with a newer version of protoc."
  18. #endif // PROTOBUF_MIN_PROTOC_VERSION
  19. #include "google/protobuf/port_undef.inc"
  20. #include "google/protobuf/io/coded_stream.h"
  21. #include "google/protobuf/arena.h"
  22. #include "google/protobuf/arenastring.h"
  23. #include "google/protobuf/generated_message_bases.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. // Must be included last.
  33. #include "google/protobuf/port_def.inc"
  34. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fempty_2eproto PROTOBUF_EXPORT
  35. PROTOBUF_NAMESPACE_OPEN
  36. namespace internal {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fempty_2eproto {
  42. static const ::uint32_t offsets[];
  43. };
  44. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable
  45. descriptor_table_google_2fprotobuf_2fempty_2eproto;
  46. PROTOBUF_NAMESPACE_OPEN
  47. class Empty;
  48. struct EmptyDefaultTypeInternal;
  49. PROTOBUF_EXPORT extern EmptyDefaultTypeInternal _Empty_default_instance_;
  50. template <>
  51. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Empty* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Empty>(Arena*);
  52. PROTOBUF_NAMESPACE_CLOSE
  53. PROTOBUF_NAMESPACE_OPEN
  54. // ===================================================================
  55. // -------------------------------------------------------------------
  56. class PROTOBUF_EXPORT Empty final :
  57. public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:google.protobuf.Empty) */ {
  58. public:
  59. inline Empty() : Empty(nullptr) {}
  60. explicit PROTOBUF_CONSTEXPR Empty(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  61. Empty(const Empty& from);
  62. Empty(Empty&& from) noexcept
  63. : Empty() {
  64. *this = ::std::move(from);
  65. }
  66. inline Empty& operator=(const Empty& from) {
  67. CopyFrom(from);
  68. return *this;
  69. }
  70. inline Empty& operator=(Empty&& from) noexcept {
  71. if (this == &from) return *this;
  72. if (GetOwningArena() == from.GetOwningArena()
  73. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  74. && GetOwningArena() != nullptr
  75. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  76. ) {
  77. InternalSwap(&from);
  78. } else {
  79. CopyFrom(from);
  80. }
  81. return *this;
  82. }
  83. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  84. return GetDescriptor();
  85. }
  86. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  87. return default_instance().GetMetadata().descriptor;
  88. }
  89. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  90. return default_instance().GetMetadata().reflection;
  91. }
  92. static const Empty& default_instance() {
  93. return *internal_default_instance();
  94. }
  95. static inline const Empty* internal_default_instance() {
  96. return reinterpret_cast<const Empty*>(
  97. &_Empty_default_instance_);
  98. }
  99. static constexpr int kIndexInFileMessages =
  100. 0;
  101. friend void swap(Empty& a, Empty& b) {
  102. a.Swap(&b);
  103. }
  104. inline void Swap(Empty* other) {
  105. if (other == this) return;
  106. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  107. if (GetOwningArena() != nullptr &&
  108. GetOwningArena() == other->GetOwningArena()) {
  109. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  110. if (GetOwningArena() == other->GetOwningArena()) {
  111. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  112. InternalSwap(other);
  113. } else {
  114. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  115. }
  116. }
  117. void UnsafeArenaSwap(Empty* other) {
  118. if (other == this) return;
  119. ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
  120. InternalSwap(other);
  121. }
  122. // implements Message ----------------------------------------------
  123. Empty* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  124. return CreateMaybeMessage<Empty>(arena);
  125. }
  126. using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom;
  127. inline void CopyFrom(const Empty& from) {
  128. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from);
  129. }
  130. using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom;
  131. void MergeFrom(const Empty& from) {
  132. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from);
  133. }
  134. public:
  135. private:
  136. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  137. static ::absl::string_view FullMessageName() {
  138. return "google.protobuf.Empty";
  139. }
  140. protected:
  141. explicit Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  142. public:
  143. static const ClassData _class_data_;
  144. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  145. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  146. // nested types ----------------------------------------------------
  147. // accessors -------------------------------------------------------
  148. // @@protoc_insertion_point(class_scope:google.protobuf.Empty)
  149. private:
  150. class _Internal;
  151. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  152. typedef void InternalArenaConstructable_;
  153. typedef void DestructorSkippable_;
  154. struct Impl_ {
  155. };
  156. friend struct ::TableStruct_google_2fprotobuf_2fempty_2eproto;
  157. };
  158. // ===================================================================
  159. // ===================================================================
  160. #ifdef __GNUC__
  161. #pragma GCC diagnostic push
  162. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  163. #endif // __GNUC__
  164. // -------------------------------------------------------------------
  165. // Empty
  166. #ifdef __GNUC__
  167. #pragma GCC diagnostic pop
  168. #endif // __GNUC__
  169. // @@protoc_insertion_point(namespace_scope)
  170. PROTOBUF_NAMESPACE_CLOSE
  171. // @@protoc_insertion_point(global_scope)
  172. #include "google/protobuf/port_undef.inc"
  173. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto_2epb_2eh