unittest_import_public.pb.h 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest_import_public.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fimport_5fpublic_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. // @@protoc_insertion_point(includes)
  29. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto
  30. namespace protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[1];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void AddDescriptors();
  41. } // namespace protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto
  42. namespace protobuf_unittest_import {
  43. class PublicImportMessage;
  44. class PublicImportMessageDefaultTypeInternal;
  45. extern PublicImportMessageDefaultTypeInternal _PublicImportMessage_default_instance_;
  46. } // namespace protobuf_unittest_import
  47. namespace google {
  48. namespace protobuf {
  49. template<> ::protobuf_unittest_import::PublicImportMessage* Arena::CreateMaybeMessage<::protobuf_unittest_import::PublicImportMessage>(Arena*);
  50. } // namespace protobuf
  51. } // namespace google
  52. namespace protobuf_unittest_import {
  53. // ===================================================================
  54. class PublicImportMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest_import.PublicImportMessage) */ {
  55. public:
  56. PublicImportMessage();
  57. virtual ~PublicImportMessage();
  58. PublicImportMessage(const PublicImportMessage& from);
  59. inline PublicImportMessage& operator=(const PublicImportMessage& from) {
  60. CopyFrom(from);
  61. return *this;
  62. }
  63. #if LANG_CXX11
  64. PublicImportMessage(PublicImportMessage&& from) noexcept
  65. : PublicImportMessage() {
  66. *this = ::std::move(from);
  67. }
  68. inline PublicImportMessage& operator=(PublicImportMessage&& from) noexcept {
  69. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  70. if (this != &from) InternalSwap(&from);
  71. } else {
  72. CopyFrom(from);
  73. }
  74. return *this;
  75. }
  76. #endif
  77. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  78. return _internal_metadata_.unknown_fields();
  79. }
  80. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  81. return _internal_metadata_.mutable_unknown_fields();
  82. }
  83. static const ::google::protobuf::Descriptor* descriptor();
  84. static const PublicImportMessage& default_instance();
  85. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  86. static inline const PublicImportMessage* internal_default_instance() {
  87. return reinterpret_cast<const PublicImportMessage*>(
  88. &_PublicImportMessage_default_instance_);
  89. }
  90. static constexpr int kIndexInFileMessages =
  91. 0;
  92. void Swap(PublicImportMessage* other);
  93. friend void swap(PublicImportMessage& a, PublicImportMessage& b) {
  94. a.Swap(&b);
  95. }
  96. // implements Message ----------------------------------------------
  97. inline PublicImportMessage* New() const final {
  98. return CreateMaybeMessage<PublicImportMessage>(NULL);
  99. }
  100. PublicImportMessage* New(::google::protobuf::Arena* arena) const final {
  101. return CreateMaybeMessage<PublicImportMessage>(arena);
  102. }
  103. void CopyFrom(const ::google::protobuf::Message& from) final;
  104. void MergeFrom(const ::google::protobuf::Message& from) final;
  105. void CopyFrom(const PublicImportMessage& from);
  106. void MergeFrom(const PublicImportMessage& from);
  107. void Clear() final;
  108. bool IsInitialized() const final;
  109. size_t ByteSizeLong() const final;
  110. bool MergePartialFromCodedStream(
  111. ::google::protobuf::io::CodedInputStream* input) final;
  112. void SerializeWithCachedSizes(
  113. ::google::protobuf::io::CodedOutputStream* output) const final;
  114. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  115. bool deterministic, ::google::protobuf::uint8* target) const final;
  116. int GetCachedSize() const final { return _cached_size_.Get(); }
  117. private:
  118. void SharedCtor();
  119. void SharedDtor();
  120. void SetCachedSize(int size) const final;
  121. void InternalSwap(PublicImportMessage* other);
  122. private:
  123. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  124. return NULL;
  125. }
  126. inline void* MaybeArenaPtr() const {
  127. return NULL;
  128. }
  129. public:
  130. ::google::protobuf::Metadata GetMetadata() const final;
  131. // nested types ----------------------------------------------------
  132. // accessors -------------------------------------------------------
  133. // optional int32 e = 1;
  134. bool has_e() const;
  135. void clear_e();
  136. static const int kEFieldNumber = 1;
  137. ::google::protobuf::int32 e() const;
  138. void set_e(::google::protobuf::int32 value);
  139. // @@protoc_insertion_point(class_scope:protobuf_unittest_import.PublicImportMessage)
  140. private:
  141. void set_has_e();
  142. void clear_has_e();
  143. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  144. ::google::protobuf::internal::HasBits<1> _has_bits_;
  145. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  146. ::google::protobuf::int32 e_;
  147. friend struct ::protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto::TableStruct;
  148. };
  149. // ===================================================================
  150. // ===================================================================
  151. #ifdef __GNUC__
  152. #pragma GCC diagnostic push
  153. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  154. #endif // __GNUC__
  155. // PublicImportMessage
  156. // optional int32 e = 1;
  157. inline bool PublicImportMessage::has_e() const {
  158. return (_has_bits_[0] & 0x00000001u) != 0;
  159. }
  160. inline void PublicImportMessage::set_has_e() {
  161. _has_bits_[0] |= 0x00000001u;
  162. }
  163. inline void PublicImportMessage::clear_has_e() {
  164. _has_bits_[0] &= ~0x00000001u;
  165. }
  166. inline void PublicImportMessage::clear_e() {
  167. e_ = 0;
  168. clear_has_e();
  169. }
  170. inline ::google::protobuf::int32 PublicImportMessage::e() const {
  171. // @@protoc_insertion_point(field_get:protobuf_unittest_import.PublicImportMessage.e)
  172. return e_;
  173. }
  174. inline void PublicImportMessage::set_e(::google::protobuf::int32 value) {
  175. set_has_e();
  176. e_ = value;
  177. // @@protoc_insertion_point(field_set:protobuf_unittest_import.PublicImportMessage.e)
  178. }
  179. #ifdef __GNUC__
  180. #pragma GCC diagnostic pop
  181. #endif // __GNUC__
  182. // @@protoc_insertion_point(namespace_scope)
  183. } // namespace protobuf_unittest_import
  184. // @@protoc_insertion_point(global_scope)
  185. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto