4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3019000 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fentity_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const uint32_t offsets[];
72 struct EntityDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Entity* Arena::CreateMaybeMessage<::ignition::msgs::Entity>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
104 "Incorrect type passed to function Entity_Type_Name.");
105 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
109 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Entity_Type* value) {
110 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Entity_Type>(
115 class IGNITION_MSGS_VISIBLE
Entity final :
116 public ::PROTOBUF_NAMESPACE_ID::Message {
120 explicit constexpr
Entity(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
125 *
this = ::std::move(from);
133 if (
this == &from)
return *
this;
134 if (GetOwningArena() == from.GetOwningArena()
135 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
136 && GetOwningArena() !=
nullptr
146 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
147 return GetDescriptor();
150 return default_instance().GetMetadata().descriptor;
153 return default_instance().GetMetadata().reflection;
156 return *internal_default_instance();
159 return reinterpret_cast<const Entity*
>(
162 static constexpr
int kIndexInFileMessages =
169 if (other ==
this)
return;
170 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
171 if (GetOwningArena() !=
nullptr &&
172 GetOwningArena() == other->GetOwningArena()) {
174 if (GetOwningArena() == other->GetOwningArena()) {
178 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
182 if (other ==
this)
return;
183 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
189 Entity*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
190 return CreateMaybeMessage<Entity>(arena);
192 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
194 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
197 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
199 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
200 bool IsInitialized() const final;
202 size_t ByteSizeLong() const final;
203 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
204 uint8_t* _InternalSerialize(
205 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
206 int GetCachedSize() const final {
return _cached_size_.Get(); }
211 void SetCachedSize(
int size)
const final;
212 void InternalSwap(
Entity* other);
215 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
216 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
217 return "ignition.msgs.Entity";
220 explicit Entity(::PROTOBUF_NAMESPACE_ID::Arena* arena,
221 bool is_message_owned =
false);
223 static void ArenaDtor(
void*
object);
224 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
228 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
230 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
245 static constexpr
Type COLLISION =
251 static inline
bool Type_IsValid(
int value) {
254 static constexpr
Type Type_MIN =
256 static constexpr
Type Type_MAX =
258 static constexpr
int Type_ARRAYSIZE =
260 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
268 "Incorrect type passed to function Type_Name.");
271 static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
279 kNameFieldNumber = 3,
280 kHeaderFieldNumber = 1,
282 kTypeFieldNumber = 4,
287 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
294 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_name(
const std::string& value);
299 bool has_header()
const;
301 bool _internal_has_header()
const;
304 const ::ignition::msgs::Header& header()
const;
305 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
309 const ::ignition::msgs::Header& _internal_header()
const;
312 void unsafe_arena_set_allocated_header(
319 void set_id(uint64_t value);
321 uint64_t _internal_id()
const;
322 void _internal_set_id(uint64_t value);
338 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
339 typedef void InternalArenaConstructable_;
340 typedef void DestructorSkippable_;
341 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
345 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
346 friend struct ::TableStruct_ignition_2fmsgs_2fentity_2eproto;
354 #pragma GCC diagnostic push
355 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
360 inline bool Entity::_internal_has_header()
const {
361 return this != internal_default_instance() && header_ !=
nullptr;
364 return _internal_has_header();
366 inline const ::ignition::msgs::Header& Entity::_internal_header()
const {
367 const ::ignition::msgs::Header* p = header_;
373 return _internal_header();
377 if (GetArenaForAllocation() ==
nullptr) {
378 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
392 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
393 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
394 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
395 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
397 if (GetArenaForAllocation() !=
nullptr) {
398 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
410 inline ::ignition::msgs::Header* Entity::_internal_mutable_header() {
412 if (header_ ==
nullptr) {
413 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
424 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
425 if (message_arena ==
nullptr) {
426 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
429 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
430 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
431 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
432 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
433 if (message_arena != submessage_arena) {
434 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
435 message_arena, header, submessage_arena);
449 inline uint64_t Entity::_internal_id()
const {
454 return _internal_id();
456 inline void Entity::_internal_set_id(uint64_t value) {
461 _internal_set_id(value);
467 name_.ClearToEmpty();
471 return _internal_name();
473 template <
typename ArgT0,
typename... ArgT>
474 inline PROTOBUF_ALWAYS_INLINE
477 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
485 inline const std::string& Entity::_internal_name()
const {
488 inline void Entity::_internal_set_name(
const std::string& value) {
490 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
492 inline std::string* Entity::_internal_mutable_name() {
494 return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
498 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
501 if (name !=
nullptr) {
506 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
507 GetArenaForAllocation());
508 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
509 if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
510 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
525 return _internal_type();
532 _internal_set_type(value);
537 #pragma GCC diagnostic pop
549 PROTOBUF_NAMESPACE_OPEN
553 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Entity_Type>() {
557 PROTOBUF_NAMESPACE_CLOSE
564 #include <google/protobuf/port_undef.inc>
Definition: entity.pb.h:116
void Swap(Entity *other)
Definition: entity.pb.h:168
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: entity.pb.h:152
bool has_header() const
Definition: entity.pb.h:363
static const std::string & Type_Name(T enum_t_value)
Definition: entity.pb.h:265
::ignition::msgs::Entity_Type type() const
Definition: entity.pb.h:523
::ignition::msgs::Header * mutable_header()
Definition: entity.pb.h:418
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_NODISCARD std::string * release_name()
Definition: entity.pb.h:496
void set_id(uint64_t value)
Definition: entity.pb.h:460
uint64_t id() const
Definition: entity.pb.h:452
const std::string & name() const
Definition: entity.pb.h:469
friend void swap(Entity &a, Entity &b)
Definition: entity.pb.h:165
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: entity.pb.h:146
Entity & operator=(Entity &&from) noexcept
Definition: entity.pb.h:132
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: entity.pb.h:261
constexpr Entity(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const Entity * internal_default_instance()
Definition: entity.pb.h:158
void clear_name()
Definition: entity.pb.h:466
Entity & operator=(const Entity &from)
Definition: entity.pb.h:128
void clear_id()
Definition: entity.pb.h:446
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: entity.pb.h:375
void set_name(ArgT0 &&arg0, ArgT... args)
Entity(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
Entity(const Entity &from)
void MergeFrom(const Entity &from)
void set_type(::ignition::msgs::Entity_Type value)
Definition: entity.pb.h:531
void CopyFrom(const Entity &from)
static bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type *value)
Definition: entity.pb.h:271
void clear_type()
Definition: entity.pb.h:517
void set_allocated_header(::ignition::msgs::Header *header)
Definition: entity.pb.h:423
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: entity.pb.h:388
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Entity(Entity &&from) noexcept
Definition: entity.pb.h:123
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: entity.pb.h:149
const ::ignition::msgs::Header & header() const
Definition: entity.pb.h:371
std::string * mutable_name()
Definition: entity.pb.h:480
static const ClassData _class_data_
Definition: entity.pb.h:227
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: entity.pb.h:403
void set_allocated_name(std::string *name)
Definition: entity.pb.h:500
void UnsafeArenaSwap(Entity *other)
Definition: entity.pb.h:181
static const Entity & default_instance()
Definition: entity.pb.h:155
Entity * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: entity.pb.h:189
Entity()
Definition: entity.pb.h:118
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fentity_2eproto
IGNITION_MSGS_VISIBLE EntityDefaultTypeInternal _Entity_default_instance_
IGNITION_MSGS_VISIBLE bool Entity_Type_IsValid(int value)
std::unique_ptr< const Entity > ConstEntityUniquePtr
Definition: entity.pb.h:541
constexpr int Entity_Type_Type_ARRAYSIZE
Definition: entity.pb.h:97
const std::string & Entity_Type_Name(T enum_t_value)
Definition: entity.pb.h:101
std::unique_ptr< Entity > EntityUniquePtr
Definition: entity.pb.h:540
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Entity_Type_descriptor()
std::shared_ptr< Entity > EntitySharedPtr
Definition: entity.pb.h:542
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const Entity > ConstEntitySharedPtr
Definition: entity.pb.h:543
bool Entity_Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Entity_Type *value)
Definition: entity.pb.h:108
Entity_Type
Definition: entity.pb.h:82
@ Entity_Type_JOINT
Definition: entity.pb.h:90
@ Entity_Type_LIGHT
Definition: entity.pb.h:84
@ Entity_Type_SENSOR
Definition: entity.pb.h:89
@ Entity_Type_Entity_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: entity.pb.h:92
@ Entity_Type_VISUAL
Definition: entity.pb.h:87
@ Entity_Type_LINK
Definition: entity.pb.h:86
@ Entity_Type_Entity_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: entity.pb.h:91
@ Entity_Type_COLLISION
Definition: entity.pb.h:88
@ Entity_Type_NONE
Definition: entity.pb.h:83
@ Entity_Type_MODEL
Definition: entity.pb.h:85
constexpr Entity_Type Entity_Type_Type_MAX
Definition: entity.pb.h:96
constexpr Entity_Type Entity_Type_Type_MIN
Definition: entity.pb.h:95
Definition: actor.pb.h:52
Definition: entity.pb.h:57
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)