unittest_import_public_lite.pb.h 7.6 KB

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