// Generated by the protocol buffer compiler. DO NOT EDIT! // source: base.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_base_2eproto #define GOOGLE_PROTOBUF_INCLUDED_base_2eproto #include #include #include #if PROTOBUF_VERSION < 3017000 #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 3017003 < 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 #include // IWYU pragma: export #include // IWYU pragma: export #include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_base_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_base_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_base_2eproto; namespace protomsg { class Point; struct PointDefaultTypeInternal; extern PointDefaultTypeInternal _Point_default_instance_; class Rect; struct RectDefaultTypeInternal; extern RectDefaultTypeInternal _Rect_default_instance_; } // namespace protomsg PROTOBUF_NAMESPACE_OPEN template<> ::protomsg::Point* Arena::CreateMaybeMessage<::protomsg::Point>(Arena*); template<> ::protomsg::Rect* Arena::CreateMaybeMessage<::protomsg::Rect>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace protomsg { // =================================================================== class Point final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protomsg.Point) */ { public: inline Point() : Point(nullptr) {} ~Point() override; explicit constexpr Point(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Point(const Point& from); Point(Point&& from) noexcept : Point() { *this = ::std::move(from); } inline Point& operator=(const Point& from) { CopyFrom(from); return *this; } inline Point& operator=(Point&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Point& default_instance() { return *internal_default_instance(); } static inline const Point* internal_default_instance() { return reinterpret_cast( &_Point_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Point& a, Point& b) { a.Swap(&b); } inline void Swap(Point* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Point* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Point* New() const final { return new Point(); } Point* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Point& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Point& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from); public: 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; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Point* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "protomsg.Point"; } protected: explicit Point(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kXFieldNumber = 1, kYFieldNumber = 2, }; // int32 x = 1; void clear_x(); ::PROTOBUF_NAMESPACE_ID::int32 x() const; void set_x(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_x() const; void _internal_set_x(::PROTOBUF_NAMESPACE_ID::int32 value); public: // int32 y = 2; void clear_y(); ::PROTOBUF_NAMESPACE_ID::int32 y() const; void set_y(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_y() const; void _internal_set_y(::PROTOBUF_NAMESPACE_ID::int32 value); public: // @@protoc_insertion_point(class_scope:protomsg.Point) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::int32 x_; ::PROTOBUF_NAMESPACE_ID::int32 y_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_base_2eproto; }; // ------------------------------------------------------------------- class Rect final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protomsg.Rect) */ { public: inline Rect() : Rect(nullptr) {} ~Rect() override; explicit constexpr Rect(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Rect(const Rect& from); Rect(Rect&& from) noexcept : Rect() { *this = ::std::move(from); } inline Rect& operator=(const Rect& from) { CopyFrom(from); return *this; } inline Rect& operator=(Rect&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Rect& default_instance() { return *internal_default_instance(); } static inline const Rect* internal_default_instance() { return reinterpret_cast( &_Rect_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(Rect& a, Rect& b) { a.Swap(&b); } inline void Swap(Rect* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Rect* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Rect* New() const final { return new Rect(); } Rect* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Rect& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Rect& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from); public: 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; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Rect* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "protomsg.Rect"; } protected: explicit Rect(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kLeftFieldNumber = 1, kTopFieldNumber = 2, kRightFieldNumber = 3, kBottomFieldNumber = 4, }; // int32 left = 1; void clear_left(); ::PROTOBUF_NAMESPACE_ID::int32 left() const; void set_left(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_left() const; void _internal_set_left(::PROTOBUF_NAMESPACE_ID::int32 value); public: // int32 top = 2; void clear_top(); ::PROTOBUF_NAMESPACE_ID::int32 top() const; void set_top(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_top() const; void _internal_set_top(::PROTOBUF_NAMESPACE_ID::int32 value); public: // int32 right = 3; void clear_right(); ::PROTOBUF_NAMESPACE_ID::int32 right() const; void set_right(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_right() const; void _internal_set_right(::PROTOBUF_NAMESPACE_ID::int32 value); public: // int32 bottom = 4; void clear_bottom(); ::PROTOBUF_NAMESPACE_ID::int32 bottom() const; void set_bottom(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_bottom() const; void _internal_set_bottom(::PROTOBUF_NAMESPACE_ID::int32 value); public: // @@protoc_insertion_point(class_scope:protomsg.Rect) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::int32 left_; ::PROTOBUF_NAMESPACE_ID::int32 top_; ::PROTOBUF_NAMESPACE_ID::int32 right_; ::PROTOBUF_NAMESPACE_ID::int32 bottom_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_base_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Point // int32 x = 1; inline void Point::clear_x() { x_ = 0; } inline ::PROTOBUF_NAMESPACE_ID::int32 Point::_internal_x() const { return x_; } inline ::PROTOBUF_NAMESPACE_ID::int32 Point::x() const { // @@protoc_insertion_point(field_get:protomsg.Point.x) return _internal_x(); } inline void Point::_internal_set_x(::PROTOBUF_NAMESPACE_ID::int32 value) { x_ = value; } inline void Point::set_x(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_x(value); // @@protoc_insertion_point(field_set:protomsg.Point.x) } // int32 y = 2; inline void Point::clear_y() { y_ = 0; } inline ::PROTOBUF_NAMESPACE_ID::int32 Point::_internal_y() const { return y_; } inline ::PROTOBUF_NAMESPACE_ID::int32 Point::y() const { // @@protoc_insertion_point(field_get:protomsg.Point.y) return _internal_y(); } inline void Point::_internal_set_y(::PROTOBUF_NAMESPACE_ID::int32 value) { y_ = value; } inline void Point::set_y(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_y(value); // @@protoc_insertion_point(field_set:protomsg.Point.y) } // ------------------------------------------------------------------- // Rect // int32 left = 1; inline void Rect::clear_left() { left_ = 0; } inline ::PROTOBUF_NAMESPACE_ID::int32 Rect::_internal_left() const { return left_; } inline ::PROTOBUF_NAMESPACE_ID::int32 Rect::left() const { // @@protoc_insertion_point(field_get:protomsg.Rect.left) return _internal_left(); } inline void Rect::_internal_set_left(::PROTOBUF_NAMESPACE_ID::int32 value) { left_ = value; } inline void Rect::set_left(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_left(value); // @@protoc_insertion_point(field_set:protomsg.Rect.left) } // int32 top = 2; inline void Rect::clear_top() { top_ = 0; } inline ::PROTOBUF_NAMESPACE_ID::int32 Rect::_internal_top() const { return top_; } inline ::PROTOBUF_NAMESPACE_ID::int32 Rect::top() const { // @@protoc_insertion_point(field_get:protomsg.Rect.top) return _internal_top(); } inline void Rect::_internal_set_top(::PROTOBUF_NAMESPACE_ID::int32 value) { top_ = value; } inline void Rect::set_top(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_top(value); // @@protoc_insertion_point(field_set:protomsg.Rect.top) } // int32 right = 3; inline void Rect::clear_right() { right_ = 0; } inline ::PROTOBUF_NAMESPACE_ID::int32 Rect::_internal_right() const { return right_; } inline ::PROTOBUF_NAMESPACE_ID::int32 Rect::right() const { // @@protoc_insertion_point(field_get:protomsg.Rect.right) return _internal_right(); } inline void Rect::_internal_set_right(::PROTOBUF_NAMESPACE_ID::int32 value) { right_ = value; } inline void Rect::set_right(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_right(value); // @@protoc_insertion_point(field_set:protomsg.Rect.right) } // int32 bottom = 4; inline void Rect::clear_bottom() { bottom_ = 0; } inline ::PROTOBUF_NAMESPACE_ID::int32 Rect::_internal_bottom() const { return bottom_; } inline ::PROTOBUF_NAMESPACE_ID::int32 Rect::bottom() const { // @@protoc_insertion_point(field_get:protomsg.Rect.bottom) return _internal_bottom(); } inline void Rect::_internal_set_bottom(::PROTOBUF_NAMESPACE_ID::int32 value) { bottom_ = value; } inline void Rect::set_bottom(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_bottom(value); // @@protoc_insertion_point(field_set:protomsg.Rect.bottom) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace protomsg // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_base_2eproto