unittest_import_lite.pb.h 7.9 KB

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