empty.pb.h 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: google/protobuf/empty.proto
  4. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto
  5. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto
  6. #include <limits>
  7. #include <string>
  8. #include <google/protobuf/port_def.inc>
  9. #if PROTOBUF_VERSION < 3013000
  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
  14. #if 3013000 < 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
  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_table_driven.h>
  24. #include <google/protobuf/generated_message_util.h>
  25. #include <google/protobuf/inlined_string_field.h>
  26. #include <google/protobuf/metadata_lite.h>
  27. #include <google/protobuf/generated_message_reflection.h>
  28. #include <google/protobuf/message.h>
  29. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  30. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  31. #include <google/protobuf/unknown_field_set.h>
  32. // @@protoc_insertion_point(includes)
  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 ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  50. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  51. };
  52. extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fempty_2eproto;
  53. PROTOBUF_NAMESPACE_OPEN
  54. class Empty;
  55. class EmptyDefaultTypeInternal;
  56. PROTOBUF_EXPORT extern EmptyDefaultTypeInternal _Empty_default_instance_;
  57. PROTOBUF_NAMESPACE_CLOSE
  58. PROTOBUF_NAMESPACE_OPEN
  59. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Empty* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Empty>(Arena*);
  60. PROTOBUF_NAMESPACE_CLOSE
  61. PROTOBUF_NAMESPACE_OPEN
  62. // ===================================================================
  63. class PROTOBUF_EXPORT Empty PROTOBUF_FINAL :
  64. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Empty) */ {
  65. public:
  66. inline Empty() : Empty(nullptr) {}
  67. virtual ~Empty();
  68. Empty(const Empty& from);
  69. Empty(Empty&& from) noexcept
  70. : Empty() {
  71. *this = ::std::move(from);
  72. }
  73. inline Empty& operator=(const Empty& from) {
  74. CopyFrom(from);
  75. return *this;
  76. }
  77. inline Empty& operator=(Empty&& from) noexcept {
  78. if (GetArena() == from.GetArena()) {
  79. if (this != &from) InternalSwap(&from);
  80. } else {
  81. CopyFrom(from);
  82. }
  83. return *this;
  84. }
  85. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  86. return GetDescriptor();
  87. }
  88. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  89. return GetMetadataStatic().descriptor;
  90. }
  91. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  92. return GetMetadataStatic().reflection;
  93. }
  94. static const Empty& default_instance();
  95. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  96. static inline const Empty* internal_default_instance() {
  97. return reinterpret_cast<const Empty*>(
  98. &_Empty_default_instance_);
  99. }
  100. static constexpr int kIndexInFileMessages =
  101. 0;
  102. friend void swap(Empty& a, Empty& b) {
  103. a.Swap(&b);
  104. }
  105. inline void Swap(Empty* other) {
  106. if (other == this) return;
  107. if (GetArena() == other->GetArena()) {
  108. InternalSwap(other);
  109. } else {
  110. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  111. }
  112. }
  113. void UnsafeArenaSwap(Empty* other) {
  114. if (other == this) return;
  115. GOOGLE_DCHECK(GetArena() == other->GetArena());
  116. InternalSwap(other);
  117. }
  118. // implements Message ----------------------------------------------
  119. inline Empty* New() const final {
  120. return CreateMaybeMessage<Empty>(nullptr);
  121. }
  122. Empty* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  123. return CreateMaybeMessage<Empty>(arena);
  124. }
  125. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  126. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  127. void CopyFrom(const Empty& from);
  128. void MergeFrom(const Empty& from);
  129. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  130. bool IsInitialized() const final;
  131. size_t ByteSizeLong() const final;
  132. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  133. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  134. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  135. int GetCachedSize() const final { return _cached_size_.Get(); }
  136. private:
  137. inline void SharedCtor();
  138. inline void SharedDtor();
  139. void SetCachedSize(int size) const final;
  140. void InternalSwap(Empty* other);
  141. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  142. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  143. return "google.protobuf.Empty";
  144. }
  145. protected:
  146. explicit Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  147. private:
  148. static void ArenaDtor(void* object);
  149. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  150. public:
  151. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  152. private:
  153. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  154. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fempty_2eproto);
  155. return ::descriptor_table_google_2fprotobuf_2fempty_2eproto.file_level_metadata[kIndexInFileMessages];
  156. }
  157. public:
  158. // nested types ----------------------------------------------------
  159. // accessors -------------------------------------------------------
  160. // @@protoc_insertion_point(class_scope:google.protobuf.Empty)
  161. private:
  162. class _Internal;
  163. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  164. typedef void InternalArenaConstructable_;
  165. typedef void DestructorSkippable_;
  166. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  167. friend struct ::TableStruct_google_2fprotobuf_2fempty_2eproto;
  168. };
  169. // ===================================================================
  170. // ===================================================================
  171. #ifdef __GNUC__
  172. #pragma GCC diagnostic push
  173. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  174. #endif // __GNUC__
  175. // Empty
  176. #ifdef __GNUC__
  177. #pragma GCC diagnostic pop
  178. #endif // __GNUC__
  179. // @@protoc_insertion_point(namespace_scope)
  180. PROTOBUF_NAMESPACE_CLOSE
  181. // @@protoc_insertion_point(global_scope)
  182. #include <google/protobuf/port_undef.inc>
  183. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto
  184. #else
  185. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  186. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)