// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Segment.proto #ifndef PROTOBUF_Segment_2eproto__INCLUDED #define PROTOBUF_Segment_2eproto__INCLUDED #include #include #if GOOGLE_PROTOBUF_VERSION < 3004000 #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 3004000 < 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 // IWYU pragma: export #include // IWYU pragma: export #include #include "RGB.pb.h" // @@protoc_insertion_point(includes) namespace Tango { namespace PMR { namespace Jobs { class Segment; class SegmentDefaultTypeInternal; extern SegmentDefaultTypeInternal _Segment_default_instance_; } // namespace Jobs } // namespace PMR } // namespace Tango namespace Tango { namespace PMR { namespace Jobs { namespace protobuf_Segment_2eproto { // Internal implementation detail -- do not call these. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; static const ::google::protobuf::internal::ParseTable schema[]; static const ::google::protobuf::uint32 offsets[]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static void InitDefaultsImpl(); }; void AddDescriptors(); void InitDefaults(); } // namespace protobuf_Segment_2eproto // =================================================================== class Segment : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Jobs.Segment) */ { public: Segment(); virtual ~Segment(); Segment(const Segment& from); inline Segment& operator=(const Segment& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Segment(Segment&& from) noexcept : Segment() { *this = ::std::move(from); } inline Segment& operator=(Segment&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif static const ::google::protobuf::Descriptor* descriptor(); static const Segment& default_instance(); static inline const Segment* internal_default_instance() { return reinterpret_cast( &_Segment_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 0; void Swap(Segment* other); friend void swap(Segment& a, Segment& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Segment* New() const PROTOBUF_FINAL { return New(NULL); } Segment* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const Segment& from); void MergeFrom(const Segment& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(Segment* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // string Name = 1; void clear_name(); static const int kNameFieldNumber = 1; const ::std::string& name() const; void set_name(const ::std::string& value); #if LANG_CXX11 void set_name(::std::string&& value); #endif void set_name(const char* value); void set_name(const char* value, size_t size); ::std::string* mutable_name(); ::std::string* release_name(); void set_allocated_name(::std::string* name); // .Tango.PMR.Common.RGB Color = 3; bool has_color() const; void clear_color(); static const int kColorFieldNumber = 3; const ::Tango::PMR::Common::RGB& color() const; ::Tango::PMR::Common::RGB* mutable_color(); ::Tango::PMR::Common::RGB* release_color(); void set_allocated_color(::Tango::PMR::Common::RGB* color); // int32 Length = 2; void clear_length(); static const int kLengthFieldNumber = 2; ::google::protobuf::int32 length() const; void set_length(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:Tango.PMR.Jobs.Segment) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr name_; ::Tango::PMR::Common::RGB* color_; ::google::protobuf::int32 length_; mutable int _cached_size_; friend struct protobuf_Segment_2eproto::TableStruct; }; // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Segment // string Name = 1; inline void Segment::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& Segment::name() const { // @@protoc_insertion_point(field_get:Tango.PMR.Jobs.Segment.Name) return name_.GetNoArena(); } inline void Segment::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:Tango.PMR.Jobs.Segment.Name) } #if LANG_CXX11 inline void Segment::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Jobs.Segment.Name) } #endif inline void Segment::set_name(const char* value) { GOOGLE_DCHECK(value != NULL); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Tango.PMR.Jobs.Segment.Name) } inline void Segment::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Jobs.Segment.Name) } inline ::std::string* Segment::mutable_name() { // @@protoc_insertion_point(field_mutable:Tango.PMR.Jobs.Segment.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* Segment::release_name() { // @@protoc_insertion_point(field_release:Tango.PMR.Jobs.Segment.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void Segment::set_allocated_name(::std::string* name) { if (name != NULL) { } else { } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Jobs.Segment.Name) } // int32 Length = 2; inline void Segment::clear_length() { length_ = 0; } inline ::google::protobuf::int32 Segment::length() const { // @@protoc_insertion_point(field_get:Tango.PMR.Jobs.Segment.Length) return length_; } inline void Segment::set_length(::google::protobuf::int32 value) { length_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Jobs.Segment.Length) } // .Tango.PMR.Common.RGB Color = 3; inline bool Segment::has_color() const { return this != internal_default_instance() && color_ != NULL; } inline void Segment::clear_color() { if (GetArenaNoVirtual() == NULL && color_ != NULL) delete color_; color_ = NULL; } inline const ::Tango::PMR::Common::RGB& Segment::color() const { const ::Tango::PMR::Common::RGB* p = color_; // @@protoc_insertion_point(field_get:Tango.PMR.Jobs.Segment.Color) return p != NULL ? *p : *reinterpret_cast( &::Tango::PMR::Common::_RGB_default_instance_); } inline ::Tango::PMR::Common::RGB* Segment::mutable_color() { if (color_ == NULL) { color_ = new ::Tango::PMR::Common::RGB; } // @@protoc_insertion_point(field_mutable:Tango.PMR.Jobs.Segment.Color) return color_; } inline ::Tango::PMR::Common::RGB* Segment::release_color() { // @@protoc_insertion_point(field_release:Tango.PMR.Jobs.Segment.Color) ::Tango::PMR::Common::RGB* temp = color_; color_ = NULL; return temp; } inline void Segment::set_allocated_color(::Tango::PMR::Common::RGB* color) { delete color_; color_ = color; if (color) { } else { } // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Jobs.Segment.Color) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace Jobs } // namespace PMR } // namespace Tango // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_Segment_2eproto__INCLUDED