Gazebo Msgs

API Reference

8.7.0
build/ignition-msgs8/include/ignition/msgs/entity.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/entity.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fentity_2eproto IGNITION_MSGS_VISIBLE
48 
50 // Internal implementation detail -- do not use these members.
51 struct IGNITION_MSGS_VISIBLE TableStruct {
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[];
58 };
59 void IGNITION_MSGS_VISIBLE AddDescriptors();
60 } // namespace protobuf_ignition_2fmsgs_2fentity_2eproto
61 namespace ignition {
62 namespace msgs {
63 class Entity;
64 class EntityDefaultTypeInternal;
65 IGNITION_MSGS_VISIBLE extern EntityDefaultTypeInternal _Entity_default_instance_;
66 } // namespace msgs
67 } // namespace ignition
68 namespace google {
69 namespace protobuf {
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Entity* Arena::CreateMaybeMessage<::ignition::msgs::Entity>(Arena*);
71 } // namespace protobuf
72 } // namespace google
73 namespace ignition {
74 namespace msgs {
75 
89 };
90 IGNITION_MSGS_VISIBLE bool Entity_Type_IsValid(int value);
94 
95 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Entity_Type_descriptor();
96 inline const ::std::string& Entity_Type_Name(Entity_Type value) {
97  return ::google::protobuf::internal::NameOfEnum(
98  Entity_Type_descriptor(), value);
99 }
100 inline bool Entity_Type_Parse(
101  const ::std::string& name, Entity_Type* value) {
102  return ::google::protobuf::internal::ParseNamedEnum<Entity_Type>(
103  Entity_Type_descriptor(), name, value);
104 }
105 // ===================================================================
106 
107 class IGNITION_MSGS_VISIBLE Entity : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Entity) */ {
108  public:
109  Entity();
110  virtual ~Entity();
111 
112  Entity(const Entity& from);
113 
114  inline Entity& operator=(const Entity& from) {
115  CopyFrom(from);
116  return *this;
117  }
118  #if LANG_CXX11
119  Entity(Entity&& from) noexcept
120  : Entity() {
121  *this = ::std::move(from);
122  }
123 
124  inline Entity& operator=(Entity&& from) noexcept {
125  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
126  if (this != &from) InternalSwap(&from);
127  } else {
128  CopyFrom(from);
129  }
130  return *this;
131  }
132  #endif
133  static const ::google::protobuf::Descriptor* descriptor();
134  static const Entity& default_instance();
135 
136  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
137  static inline const Entity* internal_default_instance() {
138  return reinterpret_cast<const Entity*>(
140  }
141  static constexpr int kIndexInFileMessages =
142  0;
143 
144  void Swap(Entity* other);
145  friend void swap(Entity& a, Entity& b) {
146  a.Swap(&b);
147  }
148 
149  // implements Message ----------------------------------------------
150 
151  inline Entity* New() const final {
152  return CreateMaybeMessage<Entity>(NULL);
153  }
154 
155  Entity* New(::google::protobuf::Arena* arena) const final {
156  return CreateMaybeMessage<Entity>(arena);
157  }
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);
162  void Clear() final;
163  bool IsInitialized() const final;
164 
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(); }
173 
174  private:
175  void SharedCtor();
176  void SharedDtor();
177  void SetCachedSize(int size) const final;
178  void InternalSwap(Entity* other);
179  private:
180  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
181  return NULL;
182  }
183  inline void* MaybeArenaPtr() const {
184  return NULL;
185  }
186  public:
187 
188  ::google::protobuf::Metadata GetMetadata() const final;
189 
190  // nested types ----------------------------------------------------
191 
192  typedef Entity_Type Type;
193  static const Type NONE =
195  static const Type LIGHT =
197  static const Type MODEL =
199  static const Type LINK =
201  static const Type VISUAL =
203  static const Type COLLISION =
205  static const Type SENSOR =
207  static const Type JOINT =
209  static const Type ACTOR =
211  static const Type WORLD =
213  static inline bool Type_IsValid(int value) {
214  return Entity_Type_IsValid(value);
215  }
216  static const Type Type_MIN =
218  static const Type Type_MAX =
220  static const int Type_ARRAYSIZE =
222  static inline const ::google::protobuf::EnumDescriptor*
224  return Entity_Type_descriptor();
225  }
226  static inline const ::std::string& Type_Name(Type value) {
227  return Entity_Type_Name(value);
228  }
229  static inline bool Type_Parse(const ::std::string& name,
230  Type* value) {
231  return Entity_Type_Parse(name, value);
232  }
233 
234  // accessors -------------------------------------------------------
235 
236  // string name = 3;
237  void clear_name();
238  static const int kNameFieldNumber = 3;
239  const ::std::string& name() const;
240  void set_name(const ::std::string& value);
241  #if LANG_CXX11
242  void set_name(::std::string&& value);
243  #endif
244  void set_name(const char* value);
245  void set_name(const char* value, size_t size);
246  ::std::string* mutable_name();
247  ::std::string* release_name();
248  void set_allocated_name(::std::string* name);
249 
250  // .ignition.msgs.Header header = 1;
251  bool has_header() const;
252  void clear_header();
253  static const int kHeaderFieldNumber = 1;
254  private:
255  const ::ignition::msgs::Header& _internal_header() const;
256  public:
257  const ::ignition::msgs::Header& header() const;
258  ::ignition::msgs::Header* release_header();
259  ::ignition::msgs::Header* mutable_header();
260  void set_allocated_header(::ignition::msgs::Header* header);
261 
262  // uint64 id = 2;
263  void clear_id();
264  static const int kIdFieldNumber = 2;
265  ::google::protobuf::uint64 id() const;
266  void set_id(::google::protobuf::uint64 value);
267 
268  // .ignition.msgs.Entity.Type type = 4;
269  void clear_type();
270  static const int kTypeFieldNumber = 4;
271  ::ignition::msgs::Entity_Type type() const;
272  void set_type(::ignition::msgs::Entity_Type value);
273 
274  // @@protoc_insertion_point(class_scope:ignition.msgs.Entity)
275  private:
276 
277  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
278  ::google::protobuf::internal::ArenaStringPtr name_;
279  ::ignition::msgs::Header* header_;
280  ::google::protobuf::uint64 id_;
281  int type_;
282  mutable ::google::protobuf::internal::CachedSize _cached_size_;
283  friend struct ::protobuf_ignition_2fmsgs_2fentity_2eproto::TableStruct;
284 };
285 // ===================================================================
286 
287 
288 // ===================================================================
289 
290 #ifdef __GNUC__
291  #pragma GCC diagnostic push
292  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
293 #endif // __GNUC__
294 // Entity
295 
296 // .ignition.msgs.Header header = 1;
297 inline bool Entity::has_header() const {
298  return this != internal_default_instance() && header_ != NULL;
299 }
300 inline const ::ignition::msgs::Header& Entity::_internal_header() const {
301  return *header_;
302 }
303 inline const ::ignition::msgs::Header& Entity::header() const {
304  const ::ignition::msgs::Header* p = header_;
305  // @@protoc_insertion_point(field_get:ignition.msgs.Entity.header)
306  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
308 }
309 inline ::ignition::msgs::Header* Entity::release_header() {
310  // @@protoc_insertion_point(field_release:ignition.msgs.Entity.header)
311 
312  ::ignition::msgs::Header* temp = header_;
313  header_ = NULL;
314  return temp;
315 }
316 inline ::ignition::msgs::Header* Entity::mutable_header() {
317 
318  if (header_ == NULL) {
319  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
320  header_ = p;
321  }
322  // @@protoc_insertion_point(field_mutable:ignition.msgs.Entity.header)
323  return header_;
324 }
326  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
327  if (message_arena == NULL) {
328  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
329  }
330  if (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);
335  }
336 
337  } else {
338 
339  }
340  header_ = header;
341  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Entity.header)
342 }
343 
344 // uint64 id = 2;
345 inline void Entity::clear_id() {
346  id_ = GOOGLE_ULONGLONG(0);
347 }
348 inline ::google::protobuf::uint64 Entity::id() const {
349  // @@protoc_insertion_point(field_get:ignition.msgs.Entity.id)
350  return id_;
351 }
352 inline void Entity::set_id(::google::protobuf::uint64 value) {
353 
354  id_ = value;
355  // @@protoc_insertion_point(field_set:ignition.msgs.Entity.id)
356 }
357 
358 // string name = 3;
359 inline void Entity::clear_name() {
360  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
361 }
362 inline const ::std::string& Entity::name() const {
363  // @@protoc_insertion_point(field_get:ignition.msgs.Entity.name)
364  return name_.GetNoArena();
365 }
366 inline void Entity::set_name(const ::std::string& value) {
367 
368  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
369  // @@protoc_insertion_point(field_set:ignition.msgs.Entity.name)
370 }
371 #if LANG_CXX11
372 inline void Entity::set_name(::std::string&& value) {
373 
374  name_.SetNoArena(
375  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
376  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Entity.name)
377 }
378 #endif
379 inline void Entity::set_name(const char* value) {
380  GOOGLE_DCHECK(value != NULL);
381 
382  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
383  // @@protoc_insertion_point(field_set_char:ignition.msgs.Entity.name)
384 }
385 inline void Entity::set_name(const char* value, size_t size) {
386 
387  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
388  ::std::string(reinterpret_cast<const char*>(value), size));
389  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Entity.name)
390 }
391 inline ::std::string* Entity::mutable_name() {
392 
393  // @@protoc_insertion_point(field_mutable:ignition.msgs.Entity.name)
394  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
395 }
396 inline ::std::string* Entity::release_name() {
397  // @@protoc_insertion_point(field_release:ignition.msgs.Entity.name)
398 
399  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
400 }
402  if (name != NULL) {
403 
404  } else {
405 
406  }
407  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
408  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Entity.name)
409 }
410 
411 // .ignition.msgs.Entity.Type type = 4;
412 inline void Entity::clear_type() {
413  type_ = 0;
414 }
416  // @@protoc_insertion_point(field_get:ignition.msgs.Entity.type)
417  return static_cast< ::ignition::msgs::Entity_Type >(type_);
418 }
420 
421  type_ = value;
422  // @@protoc_insertion_point(field_set:ignition.msgs.Entity.type)
423 }
424 
425 #ifdef __GNUC__
426  #pragma GCC diagnostic pop
427 #endif // __GNUC__
428 
433 // @@protoc_insertion_point(namespace_scope)
434 
435 } // namespace msgs
436 } // namespace ignition
437 
438 namespace google {
439 namespace protobuf {
440 
441 template <> struct is_proto_enum< ::ignition::msgs::Entity_Type> : ::std::true_type {};
442 template <>
443 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Entity_Type>() {
445 }
446 
447 } // namespace protobuf
448 } // namespace google
449 
450 #ifdef _MSC_VER
451 #pragma warning(pop)
452 #endif
453 // @@protoc_insertion_point(global_scope)
454 
455 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fentity_2eproto
Entity & operator=(const Entity &from)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:114
void clear_id()
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:345
static const Entity * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:137
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:229
IGNITION_MSGS_VISIBLE EntityDefaultTypeInternal _Entity_default_instance_
static const ::std::string & Type_Name(Type value)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:226
IGNITION_MSGS_VISIBLE bool Entity_Type_IsValid(int value)
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:316
void set_allocated_name(::std::string *name)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:401
STL class.
STL class.
T move(T... args)
const Entity_Type Entity_Type_Type_MAX
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:92
const ::std::string & Entity_Type_Name(Entity_Type value)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:96
@ Entity_Type_JOINT
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:84
@ Entity_Type_Entity_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:87
std::shared_ptr< const Entity > ConstEntitySharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:432
@ Entity_Type_WORLD
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:86
Entity_Type
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:76
Entity * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:155
::google::protobuf::uint64 id() const
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:348
@ Entity_Type_LINK
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:80
@ Entity_Type_ACTOR
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:85
void clear_type()
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:412
Entity * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:151
std::unique_ptr< const Entity > ConstEntityUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:430
@ Entity_Type_Entity_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:88
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:107
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:309
const ::std::string & name() const
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:362
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:325
bool has_header() const
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:297
void set_name(const ::std::string &value)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:366
::std::string * release_name()
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:396
const int Entity_Type_Type_ARRAYSIZE
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:93
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:303
void IGNITION_MSGS_VISIBLE AddDescriptors()
const Entity_Type Entity_Type_Type_MIN
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:91
::ignition::msgs::Entity_Type type() const
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:415
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
::std::string * mutable_name()
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:391
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:49
@ Entity_Type_SENSOR
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:83
Definition: build/ignition-msgs8/include/ignition/msgs/header.pb.h:215
@ Entity_Type_NONE
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:77
@ Entity_Type_VISUAL
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:81
std::shared_ptr< Entity > EntitySharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:431
void set_id(::google::protobuf::uint64 value)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:352
friend void swap(Entity &a, Entity &b)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:145
STL class.
std::unique_ptr< Entity > EntityUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:429
@ Entity_Type_MODEL
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:79
void Swap(Entity *other)
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:223
@ Entity_Type_COLLISION
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:82
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:78
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:51
void set_type(::ignition::msgs::Entity_Type value)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:419
void clear_name()
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:359
bool Entity_Type_Parse(const ::std::string &name, Entity_Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:100
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * Entity_Type_descriptor()
@ Entity_Type_LIGHT
Definition: build/ignition-msgs8/include/ignition/msgs/entity.pb.h:78