4 #ifndef PROTOBUF_ignition_2fmsgs_2fentity_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fentity_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 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 3000000 < 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/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/generated_enum_reflection.h> 30 #include <google/protobuf/unknown_field_set.h> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 74 return ::google::protobuf::internal::NameOfEnum(
79 return ::google::protobuf::internal::ParseNamedEnum<Entity_Type>(
84 class IGNITION_MSGS_VISIBLE
Entity :
public ::google::protobuf::Message {
96 static const ::google::protobuf::Descriptor* descriptor();
97 static const Entity& default_instance();
105 Entity* New(::google::protobuf::Arena* arena)
const;
106 void CopyFrom(const ::google::protobuf::Message& from);
107 void MergeFrom(const ::google::protobuf::Message& from);
108 void CopyFrom(
const Entity& from);
109 void MergeFrom(
const Entity& from);
111 bool IsInitialized()
const;
113 int ByteSize()
const;
114 bool MergePartialFromCodedStream(
115 ::google::protobuf::io::CodedInputStream* input);
116 void SerializeWithCachedSizes(
117 ::google::protobuf::io::CodedOutputStream* output)
const;
118 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
119 bool deterministic, ::google::protobuf::uint8* output)
const;
121 return InternalSerializeWithCachedSizesToArray(
false, output);
127 void SetCachedSize(
int size)
const;
128 void InternalSwap(
Entity* other);
130 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
131 return _internal_metadata_.arena();
133 inline void* MaybeArenaPtr()
const {
134 return _internal_metadata_.raw_arena_ptr();
138 ::google::protobuf::Metadata GetMetadata()
const;
143 static const Type NONE =
145 static const Type LIGHT =
147 static const Type MODEL =
149 static const Type LINK =
151 static const Type VISUAL =
153 static const Type COLLISION =
155 static const Type SENSOR =
157 static const Type JOINT =
162 static const Type Type_MIN =
164 static const Type Type_MAX =
166 static const int Type_ARRAYSIZE =
168 static inline const ::google::protobuf::EnumDescriptor*
172 static inline const ::std::string&
Type_Name(Type value) {
183 bool has_header()
const;
185 static const int kHeaderFieldNumber = 1;
186 const ::ignition::msgs::Header& header()
const;
193 static const int kIdFieldNumber = 2;
194 ::google::protobuf::uint64 id()
const;
195 void set_id(::google::protobuf::uint64 value);
199 static const int kNameFieldNumber = 3;
200 const ::std::string& name()
const;
201 void set_name(const ::std::string& value);
202 void set_name(
const char* value);
203 void set_name(
const char* value,
size_t size);
210 static const int kTypeFieldNumber = 4;
217 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
218 bool _is_default_instance_;
220 ::google::protobuf::uint64 id_;
221 ::google::protobuf::internal::ArenaStringPtr name_;
223 mutable int _cached_size_;
228 void InitAsDefaultInstance();
229 static Entity* default_instance_;
236 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 241 return !_is_default_instance_ && header_ != NULL;
244 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
249 return header_ != NULL ? *header_ : *default_instance_->header_;
253 if (header_ == NULL) {
254 header_ = new ::ignition::msgs::Header;
279 id_ = GOOGLE_ULONGLONG(0);
293 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
297 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
301 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
306 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
311 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
312 ::
std::string(reinterpret_cast<const char*>(value), size));
318 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
323 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
331 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
349 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 366 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Entity_Type>() {
379 #endif // PROTOBUF_ignition_2fmsgs_2fentity_2eproto__INCLUDED Definition: entity.pb.h:62
Definition: entity.pb.h:57
Definition: entity.pb.h:58
IGNITION_MSGS_VISIBLE bool Entity_Type_IsValid(int value)
Definition: entity.pb.h:63
::std::string * mutable_name()
Definition: entity.pb.h:315
void protobuf_ShutdownFile_ignition_2fmsgs_2fentity_2eproto()
void set_allocated_name(::std::string *name)
Definition: entity.pb.h:325
void protobuf_AssignDesc_ignition_2fmsgs_2fentity_2eproto()
const ::std::string & name() const
Definition: entity.pb.h:295
void set_allocated_header(::ignition::msgs::Header *header)
Definition: entity.pb.h:266
void clear_type()
Definition: entity.pb.h:336
Entity_Type
Definition: entity.pb.h:55
static const ::std::string & Type_Name(Type value)
Definition: entity.pb.h:172
static bool Type_IsValid(int value)
Definition: entity.pb.h:159
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: entity.pb.h:120
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: entity.pb.h:169
bool Entity_Type_Parse(const ::std::string &name, Entity_Type *value)
Definition: entity.pb.h:77
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fentity_2eproto()
Entity & operator=(const Entity &from)
Definition: entity.pb.h:91
std::shared_ptr< const Entity > ConstEntitySharedPtr
Definition: entity.pb.h:354
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: entity.pb.h:175
::ignition::msgs::Entity_Type type() const
Definition: entity.pb.h:339
void set_id(::google::protobuf::uint64 value)
Definition: entity.pb.h:285
const ::ignition::msgs::Header & header() const
Definition: entity.pb.h:247
const Entity_Type Entity_Type_Type_MAX
Definition: entity.pb.h:69
Definition: entity.pb.h:65
::ignition::msgs::Header * mutable_header()
Definition: entity.pb.h:251
Definition: entity.pb.h:60
void set_name(const ::std::string &value)
Definition: entity.pb.h:299
Definition: entity.pb.h:64
std::shared_ptr< Entity > EntitySharedPtr
Definition: entity.pb.h:353
Definition: entity.pb.h:59
std::unique_ptr< const Entity > ConstEntityUniquePtr
Definition: entity.pb.h:352
Definition: entity.pb.h:61
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Entity_Type_descriptor()
Entity * New() const
Definition: entity.pb.h:103
::google::protobuf::uint64 id() const
Definition: entity.pb.h:281
Definition: entity.pb.h:56
void clear_header()
Definition: entity.pb.h:243
Entity_Type Type
Definition: entity.pb.h:142
const int Entity_Type_Type_ARRAYSIZE
Definition: entity.pb.h:70
::std::string * release_name()
Definition: entity.pb.h:320
Definition: entity.pb.h:84
const ::std::string & Entity_Type_Name(Entity_Type value)
Definition: entity.pb.h:73
std::unique_ptr< Entity > EntityUniquePtr
Definition: entity.pb.h:351
::ignition::msgs::Header * release_header()
Definition: entity.pb.h:259
bool has_header() const
Definition: entity.pb.h:240
const Entity_Type Entity_Type_Type_MIN
Definition: entity.pb.h:68
int GetCachedSize() const
Definition: entity.pb.h:123
void set_type(::ignition::msgs::Entity_Type value)
Definition: entity.pb.h:343
void clear_name()
Definition: entity.pb.h:292
void clear_id()
Definition: entity.pb.h:278