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 6.7 kB

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