Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fentity_2eproto IGNITION_MSGS_VISIBLE
52 static const ::google::protobuf::internal::ParseTableField entries[];
53 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54 static const ::google::protobuf::internal::ParseTable schema[1];
55 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56 static const ::google::protobuf::internal::SerializationTable serialization_table[];
57 static const ::google::protobuf::uint32 offsets[];
64 class EntityDefaultTypeInternal;
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Entity* Arena::CreateMaybeMessage<::ignition::msgs::Entity>(Arena*);
97 return ::google::protobuf::internal::NameOfEnum(
102 return ::google::protobuf::internal::ParseNamedEnum<Entity_Type>(
107 class IGNITION_MSGS_VISIBLE
Entity :
public ::google::protobuf::Message {
121 *
this = ::std::move(from);
124 inline Entity& operator=(Entity&& from) noexcept {
125 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
126 if (
this != &from) InternalSwap(&from);
133 static const ::google::protobuf::Descriptor* descriptor();
134 static const Entity& default_instance();
136 static void InitAsDefaultInstance();
138 return reinterpret_cast<const Entity*
>(
141 static constexpr
int kIndexInFileMessages =
152 return CreateMaybeMessage<Entity>(NULL);
155 Entity*
New(::google::protobuf::Arena* arena)
const final {
156 return CreateMaybeMessage<Entity>(arena);
158 void CopyFrom(const ::google::protobuf::Message& from)
final;
159 void MergeFrom(const ::google::protobuf::Message& from)
final;
160 void CopyFrom(
const Entity& from);
161 void MergeFrom(
const Entity& from);
163 bool IsInitialized() const final;
165 size_t ByteSizeLong() const final;
166 bool MergePartialFromCodedStream(
167 ::
google::protobuf::io::CodedInputStream* input) final;
168 void SerializeWithCachedSizes(
169 ::
google::protobuf::io::CodedOutputStream* output) const final;
170 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
171 bool deterministic, ::
google::protobuf::uint8* target) const final;
172 int GetCachedSize() const final {
return _cached_size_.Get(); }
177 void SetCachedSize(
int size)
const final;
178 void InternalSwap(
Entity* other);
180 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
183 inline void* MaybeArenaPtr()
const {
188 ::google::protobuf::Metadata GetMetadata() const final;
213 static inline
bool Type_IsValid(
int value) {
220 static const int Type_ARRAYSIZE =
222 static inline const ::google::protobuf::EnumDescriptor*
238 static const int kNameFieldNumber = 3;
239 const ::std::string& name()
const;
240 void set_name(const ::std::string& value);
244 void set_name(
const char* value);
245 void set_name(
const char* value,
size_t size);
251 bool has_header()
const;
253 static const int kHeaderFieldNumber = 1;
255 const ::ignition::msgs::Header& _internal_header()
const;
257 const ::ignition::msgs::Header& header()
const;
264 static const int kIdFieldNumber = 2;
265 ::google::protobuf::uint64 id()
const;
266 void set_id(::google::protobuf::uint64 value);
270 static const int kTypeFieldNumber = 4;
277 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
278 ::google::protobuf::internal::ArenaStringPtr name_;
280 ::google::protobuf::uint64 id_;
282 mutable ::google::protobuf::internal::CachedSize _cached_size_;
283 friend struct ::protobuf_ignition_2fmsgs_2fentity_2eproto::TableStruct;
291 #pragma GCC diagnostic push
292 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
300 inline const ::ignition::msgs::Header& Entity::_internal_header()
const {
304 const ::ignition::msgs::Header* p = header_;
318 if (header_ == NULL) {
319 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
326 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
327 if (message_arena == NULL) {
328 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
331 ::google::protobuf::Arena* submessage_arena = NULL;
332 if (message_arena != submessage_arena) {
333 header = ::google::protobuf::internal::GetOwnedMessage(
334 message_arena,
header, submessage_arena);
346 id_ = GOOGLE_ULONGLONG(0);
360 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
364 return name_.GetNoArena();
368 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
375 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
380 GOOGLE_DCHECK(value != NULL);
382 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
387 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
388 ::
std::string(
reinterpret_cast<const char*
>(value), size));
394 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
399 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
407 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
426 #pragma GCC diagnostic pop
443 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Entity_Type>() {
455 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_2eproto
Entity & operator=(const Entity &from)
Definition: entity.pb.h:114
void clear_id()
Definition: entity.pb.h:345
static const Entity * internal_default_instance()
Definition: entity.pb.h:137
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: entity.pb.h:229
IGNITION_MSGS_VISIBLE EntityDefaultTypeInternal _Entity_default_instance_
static const ::std::string & Type_Name(Type value)
Definition: entity.pb.h:226
IGNITION_MSGS_VISIBLE bool Entity_Type_IsValid(int value)
::ignition::msgs::Header * mutable_header()
Definition: entity.pb.h:316
void set_allocated_name(::std::string *name)
Definition: entity.pb.h:401
const Entity_Type Entity_Type_Type_MAX
Definition: entity.pb.h:92
const ::std::string & Entity_Type_Name(Entity_Type value)
Definition: entity.pb.h:96
@ Entity_Type_JOINT
Definition: entity.pb.h:84
@ Entity_Type_Entity_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: entity.pb.h:87
std::shared_ptr< const Entity > ConstEntitySharedPtr
Definition: entity.pb.h:432
@ Entity_Type_WORLD
Definition: entity.pb.h:86
Entity_Type
Definition: entity.pb.h:76
Entity * New(::google::protobuf::Arena *arena) const final
Definition: entity.pb.h:155
::google::protobuf::uint64 id() const
Definition: entity.pb.h:348
@ Entity_Type_LINK
Definition: entity.pb.h:80
@ Entity_Type_ACTOR
Definition: entity.pb.h:85
void clear_type()
Definition: entity.pb.h:412
Entity * New() const final
Definition: entity.pb.h:151
std::unique_ptr< const Entity > ConstEntityUniquePtr
Definition: entity.pb.h:430
@ Entity_Type_Entity_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: entity.pb.h:88
Definition: entity.pb.h:107
::ignition::msgs::Header * release_header()
Definition: entity.pb.h:309
const ::std::string & name() const
Definition: entity.pb.h:362
void set_allocated_header(::ignition::msgs::Header *header)
Definition: entity.pb.h:325
bool has_header() const
Definition: entity.pb.h:297
void set_name(const ::std::string &value)
Definition: entity.pb.h:366
::std::string * release_name()
Definition: entity.pb.h:396
const int Entity_Type_Type_ARRAYSIZE
Definition: entity.pb.h:93
const ::ignition::msgs::Header & header() const
Definition: entity.pb.h:303
void IGNITION_MSGS_VISIBLE AddDescriptors()
const Entity_Type Entity_Type_Type_MIN
Definition: entity.pb.h:91
::ignition::msgs::Entity_Type type() const
Definition: entity.pb.h:415
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
::std::string * mutable_name()
Definition: entity.pb.h:391
Definition: entity.pb.h:49
@ Entity_Type_SENSOR
Definition: entity.pb.h:83
@ Entity_Type_NONE
Definition: entity.pb.h:77
@ Entity_Type_VISUAL
Definition: entity.pb.h:81
std::shared_ptr< Entity > EntitySharedPtr
Definition: entity.pb.h:431
void set_id(::google::protobuf::uint64 value)
Definition: entity.pb.h:352
friend void swap(Entity &a, Entity &b)
Definition: entity.pb.h:145
std::unique_ptr< Entity > EntityUniquePtr
Definition: entity.pb.h:429
@ Entity_Type_MODEL
Definition: entity.pb.h:79
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: entity.pb.h:223
@ Entity_Type_COLLISION
Definition: entity.pb.h:82
Definition: actor.pb.h:78
Definition: entity.pb.h:51
void set_type(::ignition::msgs::Entity_Type value)
Definition: entity.pb.h:419
void clear_name()
Definition: entity.pb.h:359
bool Entity_Type_Parse(const ::std::string &name, Entity_Type *value)
Definition: entity.pb.h:100
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * Entity_Type_descriptor()
@ Entity_Type_LIGHT
Definition: entity.pb.h:78