// Generated by the protocol buffer compiler. DO NOT EDIT! // source: hello.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_hello_2eproto #define GOOGLE_PROTOBUF_INCLUDED_hello_2eproto #include #include #include #if PROTOBUF_VERSION < 3021000 #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 3021012 < 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 // IWYU pragma: export #include // IWYU pragma: export // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_hello_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_hello_2eproto { static const uint32_t offsets[]; }; namespace control { class Hello; struct HelloDefaultTypeInternal; extern HelloDefaultTypeInternal _Hello_default_instance_; } // namespace control PROTOBUF_NAMESPACE_OPEN template<> ::control::Hello* Arena::CreateMaybeMessage<::control::Hello>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace control { // =================================================================== class Hello final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:control.Hello) */ { public: inline Hello() : Hello(nullptr) {} ~Hello() override; explicit PROTOBUF_CONSTEXPR Hello(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Hello(const Hello& from); Hello(Hello&& from) noexcept : Hello() { *this = ::std::move(from); } inline Hello& operator=(const Hello& from) { CopyFrom(from); return *this; } inline Hello& operator=(Hello&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const Hello& default_instance() { return *internal_default_instance(); } static inline const Hello* internal_default_instance() { return reinterpret_cast( &_Hello_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Hello& a, Hello& b) { a.Swap(&b); } inline void Swap(Hello* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Hello* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- Hello* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const Hello& from); void MergeFrom(const Hello& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(Hello* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "control.Hello"; } protected: explicit Hello(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kNameFieldNumber = 2, kIdFieldNumber = 1, }; // string name = 2; void clear_name(); const std::string& name() const; template void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* name); private: const std::string& _internal_name() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // int32 id = 1; void clear_id(); int32_t id() const; void set_id(int32_t value); private: int32_t _internal_id() const; void _internal_set_id(int32_t value); public: // @@protoc_insertion_point(class_scope:control.Hello) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; int32_t id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; friend struct ::TableStruct_hello_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Hello // int32 id = 1; inline void Hello::clear_id() { _impl_.id_ = 0; } inline int32_t Hello::_internal_id() const { return _impl_.id_; } inline int32_t Hello::id() const { // @@protoc_insertion_point(field_get:control.Hello.id) return _internal_id(); } inline void Hello::_internal_set_id(int32_t value) { _impl_.id_ = value; } inline void Hello::set_id(int32_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:control.Hello.id) } // string name = 2; inline void Hello::clear_name() { _impl_.name_.ClearToEmpty(); } inline const std::string& Hello::name() const { // @@protoc_insertion_point(field_get:control.Hello.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE void Hello::set_name(ArgT0&& arg0, ArgT... args) { _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:control.Hello.name) } inline std::string* Hello::mutable_name() { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:control.Hello.name) return _s; } inline const std::string& Hello::_internal_name() const { return _impl_.name_.Get(); } inline void Hello::_internal_set_name(const std::string& value) { _impl_.name_.Set(value, GetArenaForAllocation()); } inline std::string* Hello::_internal_mutable_name() { return _impl_.name_.Mutable(GetArenaForAllocation()); } inline std::string* Hello::release_name() { // @@protoc_insertion_point(field_release:control.Hello.name) return _impl_.name_.Release(); } inline void Hello::set_allocated_name(std::string* name) { if (name != nullptr) { } else { } _impl_.name_.SetAllocated(name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { _impl_.name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:control.Hello.name) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace control // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_hello_2eproto