unittest_no_generic_services.pb.h 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest_no_generic_services.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_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/generated_enum_reflection.h>
  28. #include <google/protobuf/unknown_field_set.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto
  31. namespace protobuf_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_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. void AddDescriptors();
  42. } // namespace protobuf_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto
  43. namespace google {
  44. namespace protobuf {
  45. namespace no_generic_services_test {
  46. class TestMessage;
  47. class TestMessageDefaultTypeInternal;
  48. extern TestMessageDefaultTypeInternal _TestMessage_default_instance_;
  49. } // namespace no_generic_services_test
  50. } // namespace protobuf
  51. } // namespace google
  52. namespace google {
  53. namespace protobuf {
  54. template<> ::google::protobuf::no_generic_services_test::TestMessage* Arena::CreateMaybeMessage<::google::protobuf::no_generic_services_test::TestMessage>(Arena*);
  55. } // namespace protobuf
  56. } // namespace google
  57. namespace google {
  58. namespace protobuf {
  59. namespace no_generic_services_test {
  60. enum TestEnum {
  61. FOO = 1
  62. };
  63. bool TestEnum_IsValid(int value);
  64. const TestEnum TestEnum_MIN = FOO;
  65. const TestEnum TestEnum_MAX = FOO;
  66. const int TestEnum_ARRAYSIZE = TestEnum_MAX + 1;
  67. const ::google::protobuf::EnumDescriptor* TestEnum_descriptor();
  68. inline const ::std::string& TestEnum_Name(TestEnum value) {
  69. return ::google::protobuf::internal::NameOfEnum(
  70. TestEnum_descriptor(), value);
  71. }
  72. inline bool TestEnum_Parse(
  73. const ::std::string& name, TestEnum* value) {
  74. return ::google::protobuf::internal::ParseNamedEnum<TestEnum>(
  75. TestEnum_descriptor(), name, value);
  76. }
  77. // ===================================================================
  78. class TestMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.no_generic_services_test.TestMessage) */ {
  79. public:
  80. TestMessage();
  81. virtual ~TestMessage();
  82. TestMessage(const TestMessage& from);
  83. inline TestMessage& operator=(const TestMessage& from) {
  84. CopyFrom(from);
  85. return *this;
  86. }
  87. #if LANG_CXX11
  88. TestMessage(TestMessage&& from) noexcept
  89. : TestMessage() {
  90. *this = ::std::move(from);
  91. }
  92. inline TestMessage& operator=(TestMessage&& from) noexcept {
  93. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  94. if (this != &from) InternalSwap(&from);
  95. } else {
  96. CopyFrom(from);
  97. }
  98. return *this;
  99. }
  100. #endif
  101. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  102. return _internal_metadata_.unknown_fields();
  103. }
  104. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  105. return _internal_metadata_.mutable_unknown_fields();
  106. }
  107. static const ::google::protobuf::Descriptor* descriptor();
  108. static const TestMessage& default_instance();
  109. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  110. static inline const TestMessage* internal_default_instance() {
  111. return reinterpret_cast<const TestMessage*>(
  112. &_TestMessage_default_instance_);
  113. }
  114. static constexpr int kIndexInFileMessages =
  115. 0;
  116. void Swap(TestMessage* other);
  117. friend void swap(TestMessage& a, TestMessage& b) {
  118. a.Swap(&b);
  119. }
  120. // implements Message ----------------------------------------------
  121. inline TestMessage* New() const final {
  122. return CreateMaybeMessage<TestMessage>(NULL);
  123. }
  124. TestMessage* New(::google::protobuf::Arena* arena) const final {
  125. return CreateMaybeMessage<TestMessage>(arena);
  126. }
  127. void CopyFrom(const ::google::protobuf::Message& from) final;
  128. void MergeFrom(const ::google::protobuf::Message& from) final;
  129. void CopyFrom(const TestMessage& from);
  130. void MergeFrom(const TestMessage& from);
  131. void Clear() final;
  132. bool IsInitialized() const final;
  133. size_t ByteSizeLong() const final;
  134. bool MergePartialFromCodedStream(
  135. ::google::protobuf::io::CodedInputStream* input) final;
  136. void SerializeWithCachedSizes(
  137. ::google::protobuf::io::CodedOutputStream* output) const final;
  138. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  139. bool deterministic, ::google::protobuf::uint8* target) const final;
  140. int GetCachedSize() const final { return _cached_size_.Get(); }
  141. private:
  142. void SharedCtor();
  143. void SharedDtor();
  144. void SetCachedSize(int size) const final;
  145. void InternalSwap(TestMessage* other);
  146. private:
  147. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  148. return NULL;
  149. }
  150. inline void* MaybeArenaPtr() const {
  151. return NULL;
  152. }
  153. public:
  154. ::google::protobuf::Metadata GetMetadata() const final;
  155. // nested types ----------------------------------------------------
  156. // accessors -------------------------------------------------------
  157. // optional int32 a = 1;
  158. bool has_a() const;
  159. void clear_a();
  160. static const int kAFieldNumber = 1;
  161. ::google::protobuf::int32 a() const;
  162. void set_a(::google::protobuf::int32 value);
  163. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestMessage)
  164. // @@protoc_insertion_point(class_scope:google.protobuf.no_generic_services_test.TestMessage)
  165. private:
  166. void set_has_a();
  167. void clear_has_a();
  168. ::google::protobuf::internal::ExtensionSet _extensions_;
  169. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  170. ::google::protobuf::internal::HasBits<1> _has_bits_;
  171. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  172. ::google::protobuf::int32 a_;
  173. friend struct ::protobuf_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto::TableStruct;
  174. };
  175. // ===================================================================
  176. static const int kTestExtensionFieldNumber = 1000;
  177. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::no_generic_services_test::TestMessage,
  178. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  179. test_extension;
  180. // ===================================================================
  181. #ifdef __GNUC__
  182. #pragma GCC diagnostic push
  183. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  184. #endif // __GNUC__
  185. // TestMessage
  186. // optional int32 a = 1;
  187. inline bool TestMessage::has_a() const {
  188. return (_has_bits_[0] & 0x00000001u) != 0;
  189. }
  190. inline void TestMessage::set_has_a() {
  191. _has_bits_[0] |= 0x00000001u;
  192. }
  193. inline void TestMessage::clear_has_a() {
  194. _has_bits_[0] &= ~0x00000001u;
  195. }
  196. inline void TestMessage::clear_a() {
  197. a_ = 0;
  198. clear_has_a();
  199. }
  200. inline ::google::protobuf::int32 TestMessage::a() const {
  201. // @@protoc_insertion_point(field_get:google.protobuf.no_generic_services_test.TestMessage.a)
  202. return a_;
  203. }
  204. inline void TestMessage::set_a(::google::protobuf::int32 value) {
  205. set_has_a();
  206. a_ = value;
  207. // @@protoc_insertion_point(field_set:google.protobuf.no_generic_services_test.TestMessage.a)
  208. }
  209. #ifdef __GNUC__
  210. #pragma GCC diagnostic pop
  211. #endif // __GNUC__
  212. // @@protoc_insertion_point(namespace_scope)
  213. } // namespace no_generic_services_test
  214. } // namespace protobuf
  215. } // namespace google
  216. namespace google {
  217. namespace protobuf {
  218. template <> struct is_proto_enum< ::google::protobuf::no_generic_services_test::TestEnum> : ::std::true_type {};
  219. template <>
  220. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::no_generic_services_test::TestEnum>() {
  221. return ::google::protobuf::no_generic_services_test::TestEnum_descriptor();
  222. }
  223. } // namespace protobuf
  224. } // namespace google
  225. // @@protoc_insertion_point(global_scope)
  226. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto