unittest_lazy_dependencies_custom_option.pb.h 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest_lazy_dependencies_custom_option.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/unknown_field_set.h>
  28. #include <google/protobuf/unittest_lazy_dependencies_enum.pb.h>
  29. #include <google/protobuf/descriptor.pb.h>
  30. // @@protoc_insertion_point(includes)
  31. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto
  32. namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto {
  33. // Internal implementation detail -- do not use these members.
  34. struct TableStruct {
  35. static const ::google::protobuf::internal::ParseTableField entries[];
  36. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  37. static const ::google::protobuf::internal::ParseTable schema[1];
  38. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  39. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  40. static const ::google::protobuf::uint32 offsets[];
  41. };
  42. void AddDescriptors();
  43. } // namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto
  44. namespace protobuf_unittest {
  45. namespace lazy_imports {
  46. class LazyMessage;
  47. class LazyMessageDefaultTypeInternal;
  48. extern LazyMessageDefaultTypeInternal _LazyMessage_default_instance_;
  49. } // namespace lazy_imports
  50. } // namespace protobuf_unittest
  51. namespace google {
  52. namespace protobuf {
  53. template<> ::protobuf_unittest::lazy_imports::LazyMessage* Arena::CreateMaybeMessage<::protobuf_unittest::lazy_imports::LazyMessage>(Arena*);
  54. } // namespace protobuf
  55. } // namespace google
  56. namespace protobuf_unittest {
  57. namespace lazy_imports {
  58. // ===================================================================
  59. class LazyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.lazy_imports.LazyMessage) */ {
  60. public:
  61. LazyMessage();
  62. virtual ~LazyMessage();
  63. LazyMessage(const LazyMessage& from);
  64. inline LazyMessage& operator=(const LazyMessage& from) {
  65. CopyFrom(from);
  66. return *this;
  67. }
  68. #if LANG_CXX11
  69. LazyMessage(LazyMessage&& from) noexcept
  70. : LazyMessage() {
  71. *this = ::std::move(from);
  72. }
  73. inline LazyMessage& operator=(LazyMessage&& from) noexcept {
  74. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  75. if (this != &from) InternalSwap(&from);
  76. } else {
  77. CopyFrom(from);
  78. }
  79. return *this;
  80. }
  81. #endif
  82. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  83. return _internal_metadata_.unknown_fields();
  84. }
  85. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  86. return _internal_metadata_.mutable_unknown_fields();
  87. }
  88. inline ::google::protobuf::Arena* GetArena() const final {
  89. return GetArenaNoVirtual();
  90. }
  91. inline void* GetMaybeArenaPointer() const final {
  92. return MaybeArenaPtr();
  93. }
  94. static const ::google::protobuf::Descriptor* descriptor();
  95. static const LazyMessage& default_instance();
  96. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  97. static inline const LazyMessage* internal_default_instance() {
  98. return reinterpret_cast<const LazyMessage*>(
  99. &_LazyMessage_default_instance_);
  100. }
  101. static constexpr int kIndexInFileMessages =
  102. 0;
  103. void UnsafeArenaSwap(LazyMessage* other);
  104. void Swap(LazyMessage* other);
  105. friend void swap(LazyMessage& a, LazyMessage& b) {
  106. a.Swap(&b);
  107. }
  108. // implements Message ----------------------------------------------
  109. inline LazyMessage* New() const final {
  110. return CreateMaybeMessage<LazyMessage>(NULL);
  111. }
  112. LazyMessage* New(::google::protobuf::Arena* arena) const final {
  113. return CreateMaybeMessage<LazyMessage>(arena);
  114. }
  115. void CopyFrom(const ::google::protobuf::Message& from) final;
  116. void MergeFrom(const ::google::protobuf::Message& from) final;
  117. void CopyFrom(const LazyMessage& from);
  118. void MergeFrom(const LazyMessage& from);
  119. void Clear() final;
  120. bool IsInitialized() const final;
  121. size_t ByteSizeLong() const final;
  122. bool MergePartialFromCodedStream(
  123. ::google::protobuf::io::CodedInputStream* input) final;
  124. void SerializeWithCachedSizes(
  125. ::google::protobuf::io::CodedOutputStream* output) const final;
  126. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  127. bool deterministic, ::google::protobuf::uint8* target) const final;
  128. int GetCachedSize() const final { return _cached_size_.Get(); }
  129. private:
  130. void SharedCtor();
  131. void SharedDtor();
  132. void SetCachedSize(int size) const final;
  133. void InternalSwap(LazyMessage* other);
  134. protected:
  135. explicit LazyMessage(::google::protobuf::Arena* arena);
  136. private:
  137. static void ArenaDtor(void* object);
  138. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  139. private:
  140. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  141. return _internal_metadata_.arena();
  142. }
  143. inline void* MaybeArenaPtr() const {
  144. return _internal_metadata_.raw_arena_ptr();
  145. }
  146. public:
  147. ::google::protobuf::Metadata GetMetadata() const final;
  148. // nested types ----------------------------------------------------
  149. // accessors -------------------------------------------------------
  150. // optional int32 a = 1;
  151. bool has_a() const;
  152. void clear_a();
  153. static const int kAFieldNumber = 1;
  154. ::google::protobuf::int32 a() const;
  155. void set_a(::google::protobuf::int32 value);
  156. // @@protoc_insertion_point(class_scope:protobuf_unittest.lazy_imports.LazyMessage)
  157. private:
  158. void set_has_a();
  159. void clear_has_a();
  160. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  161. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  162. typedef void InternalArenaConstructable_;
  163. typedef void DestructorSkippable_;
  164. ::google::protobuf::internal::HasBits<1> _has_bits_;
  165. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  166. ::google::protobuf::int32 a_;
  167. friend struct ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto::TableStruct;
  168. };
  169. // ===================================================================
  170. static const int kLazyEnumOptionFieldNumber = 138596335;
  171. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  172. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::lazy_imports::LazyEnum, ::protobuf_unittest::lazy_imports::LazyEnum_IsValid>, 14, false >
  173. lazy_enum_option;
  174. // ===================================================================
  175. #ifdef __GNUC__
  176. #pragma GCC diagnostic push
  177. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  178. #endif // __GNUC__
  179. // LazyMessage
  180. // optional int32 a = 1;
  181. inline bool LazyMessage::has_a() const {
  182. return (_has_bits_[0] & 0x00000001u) != 0;
  183. }
  184. inline void LazyMessage::set_has_a() {
  185. _has_bits_[0] |= 0x00000001u;
  186. }
  187. inline void LazyMessage::clear_has_a() {
  188. _has_bits_[0] &= ~0x00000001u;
  189. }
  190. inline void LazyMessage::clear_a() {
  191. a_ = 0;
  192. clear_has_a();
  193. }
  194. inline ::google::protobuf::int32 LazyMessage::a() const {
  195. // @@protoc_insertion_point(field_get:protobuf_unittest.lazy_imports.LazyMessage.a)
  196. return a_;
  197. }
  198. inline void LazyMessage::set_a(::google::protobuf::int32 value) {
  199. set_has_a();
  200. a_ = value;
  201. // @@protoc_insertion_point(field_set:protobuf_unittest.lazy_imports.LazyMessage.a)
  202. }
  203. #ifdef __GNUC__
  204. #pragma GCC diagnostic pop
  205. #endif // __GNUC__
  206. // @@protoc_insertion_point(namespace_scope)
  207. } // namespace lazy_imports
  208. } // namespace protobuf_unittest
  209. // @@protoc_insertion_point(global_scope)
  210. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto