// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/unittest_no_generic_services.proto #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto #include #include #if GOOGLE_PROTOBUF_VERSION < 3006001 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include // @@protoc_insertion_point(includes) #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto namespace protobuf_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto { // Internal implementation detail -- do not use these members. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; static const ::google::protobuf::internal::ParseTable schema[1]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; void AddDescriptors(); } // namespace protobuf_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto namespace google { namespace protobuf { namespace no_generic_services_test { class TestMessage; class TestMessageDefaultTypeInternal; extern TestMessageDefaultTypeInternal _TestMessage_default_instance_; } // namespace no_generic_services_test } // namespace protobuf } // namespace google namespace google { namespace protobuf { template<> ::google::protobuf::no_generic_services_test::TestMessage* Arena::CreateMaybeMessage<::google::protobuf::no_generic_services_test::TestMessage>(Arena*); } // namespace protobuf } // namespace google namespace google { namespace protobuf { namespace no_generic_services_test { enum TestEnum { FOO = 1 }; bool TestEnum_IsValid(int value); const TestEnum TestEnum_MIN = FOO; const TestEnum TestEnum_MAX = FOO; const int TestEnum_ARRAYSIZE = TestEnum_MAX + 1; const ::google::protobuf::EnumDescriptor* TestEnum_descriptor(); inline const ::std::string& TestEnum_Name(TestEnum value) { return ::google::protobuf::internal::NameOfEnum( TestEnum_descriptor(), value); } inline bool TestEnum_Parse( const ::std::string& name, TestEnum* value) { return ::google::protobuf::internal::ParseNamedEnum( TestEnum_descriptor(), name, value); } // =================================================================== class TestMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.no_generic_services_test.TestMessage) */ { public: TestMessage(); virtual ~TestMessage(); TestMessage(const TestMessage& from); inline TestMessage& operator=(const TestMessage& from) { CopyFrom(from); return *this; } #if LANG_CXX11 TestMessage(TestMessage&& from) noexcept : TestMessage() { *this = ::std::move(from); } inline TestMessage& operator=(TestMessage&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const TestMessage& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const TestMessage* internal_default_instance() { return reinterpret_cast( &_TestMessage_default_instance_); } static constexpr int kIndexInFileMessages = 0; void Swap(TestMessage* other); friend void swap(TestMessage& a, TestMessage& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline TestMessage* New() const final { return CreateMaybeMessage(NULL); } TestMessage* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const TestMessage& from); void MergeFrom(const TestMessage& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TestMessage* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // optional int32 a = 1; bool has_a() const; void clear_a(); static const int kAFieldNumber = 1; ::google::protobuf::int32 a() const; void set_a(::google::protobuf::int32 value); GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestMessage) // @@protoc_insertion_point(class_scope:google.protobuf.no_generic_services_test.TestMessage) private: void set_has_a(); void clear_has_a(); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::int32 a_; friend struct ::protobuf_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto::TableStruct; }; // =================================================================== static const int kTestExtensionFieldNumber = 1000; extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::no_generic_services_test::TestMessage, ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false > test_extension; // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // TestMessage // optional int32 a = 1; inline bool TestMessage::has_a() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void TestMessage::set_has_a() { _has_bits_[0] |= 0x00000001u; } inline void TestMessage::clear_has_a() { _has_bits_[0] &= ~0x00000001u; } inline void TestMessage::clear_a() { a_ = 0; clear_has_a(); } inline ::google::protobuf::int32 TestMessage::a() const { // @@protoc_insertion_point(field_get:google.protobuf.no_generic_services_test.TestMessage.a) return a_; } inline void TestMessage::set_a(::google::protobuf::int32 value) { set_has_a(); a_ = value; // @@protoc_insertion_point(field_set:google.protobuf.no_generic_services_test.TestMessage.a) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace no_generic_services_test } // namespace protobuf } // namespace google namespace google { namespace protobuf { template <> struct is_proto_enum< ::google::protobuf::no_generic_services_test::TestEnum> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::no_generic_services_test::TestEnum>() { return ::google::protobuf::no_generic_services_test::TestEnum_descriptor(); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fno_5fgeneric_5fservices_2eproto