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 < 3014000
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 3014000 < 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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class 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 PROTOBUF_FINAL :
116 public ::PROTOBUF_NAMESPACE_ID::Message {
124 *
this = ::std::move(from);
132 if (GetArena() == from.GetArena()) {
133 if (
this != &from) InternalSwap(&from);
140 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
141 return GetDescriptor();
144 return GetMetadataStatic().descriptor;
147 return GetMetadataStatic().reflection;
152 return reinterpret_cast<const Entity*
>(
155 static constexpr
int kIndexInFileMessages =
158 friend void swap(Entity& a, Entity& b) {
161 inline void Swap(Entity* other) {
162 if (other ==
this)
return;
163 if (GetArena() == other->GetArena()) {
166 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
170 if (other ==
this)
return;
171 GOOGLE_DCHECK(GetArena() == other->GetArena());
177 inline Entity*
New() const final {
178 return CreateMaybeMessage<Entity>(
nullptr);
181 Entity*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
182 return CreateMaybeMessage<Entity>(arena);
184 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
185 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
188 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
189 bool IsInitialized() const final;
191 size_t ByteSizeLong() const final;
192 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
193 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
194 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
195 int GetCachedSize() const final {
return _cached_size_.Get(); }
198 inline void SharedCtor();
199 inline void SharedDtor();
200 void SetCachedSize(
int size)
const final;
201 void InternalSwap(Entity* other);
202 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
203 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
204 return "ignition.msgs.Entity";
207 explicit Entity(::PROTOBUF_NAMESPACE_ID::Arena* arena);
209 static void ArenaDtor(
void*
object);
210 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
215 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
235 static constexpr
Type COLLISION =
244 static constexpr Type Type_MIN =
246 static constexpr Type Type_MAX =
248 static constexpr
int Type_ARRAYSIZE =
250 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
258 "Incorrect type passed to function Type_Name.");
261 static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
269 kNameFieldNumber = 3,
270 kHeaderFieldNumber = 1,
272 kTypeFieldNumber = 4,
293 bool _internal_has_header()
const;
296 const ::ignition::msgs::Header&
header()
const;
301 const ::ignition::msgs::Header& _internal_header()
const;
302 ::ignition::msgs::Header* _internal_mutable_header();
305 ::ignition::msgs::Header* header);
310 ::PROTOBUF_NAMESPACE_ID::uint64
id()
const;
311 void set_id(::PROTOBUF_NAMESPACE_ID::uint64 value);
313 ::PROTOBUF_NAMESPACE_ID::uint64 _internal_id()
const;
314 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint64 value);
330 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
331 typedef void InternalArenaConstructable_;
332 typedef void DestructorSkippable_;
333 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
334 ::ignition::msgs::Header* header_;
335 ::PROTOBUF_NAMESPACE_ID::uint64 id_;
337 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
338 friend struct ::TableStruct_ignition_2fmsgs_2fentity_2eproto;
346 #pragma GCC diagnostic push
347 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
352 inline bool Entity::_internal_has_header()
const {
353 return this != internal_default_instance() && header_ !=
nullptr;
355 inline bool Entity::has_header()
const {
356 return _internal_has_header();
358 inline const ::ignition::msgs::Header& Entity::_internal_header()
const {
359 const ::ignition::msgs::Header* p = header_;
360 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
363 inline const ::ignition::msgs::Header& Entity::header()
const {
365 return _internal_header();
367 inline void Entity::unsafe_arena_set_allocated_header(
368 ::ignition::msgs::Header* header) {
369 if (GetArena() ==
nullptr) {
370 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
380 inline ::ignition::msgs::Header* Entity::release_header() {
382 ::ignition::msgs::Header* temp = header_;
384 if (GetArena() !=
nullptr) {
385 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
389 inline ::ignition::msgs::Header* Entity::unsafe_arena_release_header() {
392 ::ignition::msgs::Header* temp = header_;
396 inline ::ignition::msgs::Header* Entity::_internal_mutable_header() {
398 if (header_ ==
nullptr) {
399 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
404 inline ::ignition::msgs::Header* Entity::mutable_header() {
406 return _internal_mutable_header();
408 inline void Entity::set_allocated_header(::ignition::msgs::Header* header) {
409 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
410 if (message_arena ==
nullptr) {
411 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
414 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
415 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
416 if (message_arena != submessage_arena) {
417 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
418 message_arena, header, submessage_arena);
429 inline void Entity::clear_id() {
430 id_ = PROTOBUF_ULONGLONG(0);
432 inline ::PROTOBUF_NAMESPACE_ID::uint64 Entity::_internal_id()
const {
435 inline ::PROTOBUF_NAMESPACE_ID::uint64 Entity::id()
const {
437 return _internal_id();
439 inline void Entity::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint64 value) {
443 inline void Entity::set_id(::PROTOBUF_NAMESPACE_ID::uint64 value) {
444 _internal_set_id(value);
449 inline void Entity::clear_name() {
450 name_.ClearToEmpty();
454 return _internal_name();
456 inline void Entity::set_name(
const std::string& value) {
457 _internal_set_name(value);
462 return _internal_mutable_name();
464 inline const std::string& Entity::_internal_name()
const {
467 inline void Entity::_internal_set_name(
const std::string& value) {
469 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
471 inline void Entity::set_name(
std::string&& value) {
474 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
477 inline void Entity::set_name(
const char* value) {
478 GOOGLE_DCHECK(value !=
nullptr);
480 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
483 inline void Entity::set_name(
const char* value,
486 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
487 reinterpret_cast<const char*
>(value), size), GetArena());
490 inline std::string* Entity::_internal_mutable_name() {
492 return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
496 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
498 inline void Entity::set_allocated_name(
std::string* name) {
499 if (name !=
nullptr) {
504 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
510 inline void Entity::clear_type() {
518 return _internal_type();
525 _internal_set_type(value);
530 #pragma GCC diagnostic pop
542 PROTOBUF_NAMESPACE_OPEN
546 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Entity_Type>() {
550 PROTOBUF_NAMESPACE_CLOSE
557 #include <google/protobuf/port_undef.inc>
Entity * New() const final
Definition: entity.pb.h:177
void Swap(Entity *other)
Definition: entity.pb.h:161
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: entity.pb.h:146
static const std::string & Type_Name(T enum_t_value)
Definition: entity.pb.h:255
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void set_name(const char *value, size_t size)
friend void swap(Entity &a, Entity &b)
Definition: entity.pb.h:158
void set_id(::PROTOBUF_NAMESPACE_ID::uint64 value)
::ignition::msgs::Header * mutable_header()
Entity * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: entity.pb.h:181
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: entity.pb.h:140
void set_name(const std::string &value)
Entity & operator=(Entity &&from) noexcept
Definition: entity.pb.h:131
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: entity.pb.h:251
static const Entity * internal_default_instance()
Definition: entity.pb.h:151
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * mutable_name()
std::string * release_name()
Entity & operator=(const Entity &from)
Definition: entity.pb.h:127
static bool Type_IsValid(int value)
Definition: entity.pb.h:241
::ignition::msgs::Entity_Type type() const
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Entity_Type Type
Definition: entity.pb.h:224
::ignition::msgs::Header * unsafe_arena_release_header()
Entity(const Entity &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const Entity &from)
void set_type(::ignition::msgs::Entity_Type value)
void CopyFrom(const Entity &from)
static bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type *value)
Definition: entity.pb.h:261
Entity(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::PROTOBUF_NAMESPACE_ID::uint64 id() const
void set_allocated_header(::ignition::msgs::Header *header)
Entity(Entity &&from) noexcept
Definition: entity.pb.h:122
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: entity.pb.h:143
const std::string & name() const
void set_name(const char *value)
void set_name(std::string &&value)
void set_allocated_name(std::string *name)
void UnsafeArenaSwap(Entity *other)
Definition: entity.pb.h:169
const ::ignition::msgs::Header & header() const
static const Entity & default_instance()
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:534
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:533
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Entity_Type_descriptor()
std::shared_ptr< Entity > EntitySharedPtr
Definition: entity.pb.h:535
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const Entity > ConstEntitySharedPtr
Definition: entity.pb.h:536
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
Atmosphere_Type
Definition: atmosphere.pb.h:82
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)