Gazebo Msgs

API Reference

9.5.1
entity.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/entity.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fentity_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fentity_2eproto
50 namespace gz {
51 namespace msgs {
52 class Entity;
53 class EntityDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern EntityDefaultTypeInternal _Entity_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Entity* Arena::CreateMaybeMessage<::gz::msgs::Entity>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
78 };
79 GZ_MSGS_VISIBLE bool Entity_Type_IsValid(int value);
83 
84 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Entity_Type_descriptor();
85 inline const ::std::string& Entity_Type_Name(Entity_Type value) {
86  return ::google::protobuf::internal::NameOfEnum(
87  Entity_Type_descriptor(), value);
88 }
89 inline bool Entity_Type_Parse(
90  const ::std::string& name, Entity_Type* value) {
91  return ::google::protobuf::internal::ParseNamedEnum<Entity_Type>(
92  Entity_Type_descriptor(), name, value);
93 }
94 // ===================================================================
95 
96 class GZ_MSGS_VISIBLE Entity : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Entity) */ {
97  public:
98  Entity();
99  virtual ~Entity();
100 
101  Entity(const Entity& from);
102 
103  inline Entity& operator=(const Entity& from) {
104  CopyFrom(from);
105  return *this;
106  }
107  #if LANG_CXX11
108  Entity(Entity&& from) noexcept
109  : Entity() {
110  *this = ::std::move(from);
111  }
112 
113  inline Entity& operator=(Entity&& from) noexcept {
114  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
115  if (this != &from) InternalSwap(&from);
116  } else {
117  CopyFrom(from);
118  }
119  return *this;
120  }
121  #endif
122  static const ::google::protobuf::Descriptor* descriptor();
123  static const Entity& default_instance();
124 
125  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
126  static inline const Entity* internal_default_instance() {
127  return reinterpret_cast<const Entity*>(
129  }
130  static constexpr int kIndexInFileMessages =
131  0;
132 
133  void Swap(Entity* other);
134  friend void swap(Entity& a, Entity& b) {
135  a.Swap(&b);
136  }
137 
138  // implements Message ----------------------------------------------
139 
140  inline Entity* New() const final {
141  return CreateMaybeMessage<Entity>(NULL);
142  }
143 
144  Entity* New(::google::protobuf::Arena* arena) const final {
145  return CreateMaybeMessage<Entity>(arena);
146  }
147  void CopyFrom(const ::google::protobuf::Message& from) final;
148  void MergeFrom(const ::google::protobuf::Message& from) final;
149  void CopyFrom(const Entity& from);
150  void MergeFrom(const Entity& from);
151  void Clear() final;
152  bool IsInitialized() const final;
153 
154  size_t ByteSizeLong() const final;
155  bool MergePartialFromCodedStream(
156  ::google::protobuf::io::CodedInputStream* input) final;
157  void SerializeWithCachedSizes(
158  ::google::protobuf::io::CodedOutputStream* output) const final;
159  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
160  bool deterministic, ::google::protobuf::uint8* target) const final;
161  int GetCachedSize() const final { return _cached_size_.Get(); }
162 
163  private:
164  void SharedCtor();
165  void SharedDtor();
166  void SetCachedSize(int size) const final;
167  void InternalSwap(Entity* other);
168  private:
169  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
170  return NULL;
171  }
172  inline void* MaybeArenaPtr() const {
173  return NULL;
174  }
175  public:
176 
177  ::google::protobuf::Metadata GetMetadata() const final;
178 
179  // nested types ----------------------------------------------------
180 
181  typedef Entity_Type Type;
182  static const Type NONE =
184  static const Type LIGHT =
186  static const Type MODEL =
188  static const Type LINK =
190  static const Type VISUAL =
192  static const Type COLLISION =
194  static const Type SENSOR =
196  static const Type JOINT =
198  static const Type ACTOR =
200  static const Type WORLD =
202  static inline bool Type_IsValid(int value) {
203  return Entity_Type_IsValid(value);
204  }
205  static const Type Type_MIN =
207  static const Type Type_MAX =
209  static const int Type_ARRAYSIZE =
211  static inline const ::google::protobuf::EnumDescriptor*
213  return Entity_Type_descriptor();
214  }
215  static inline const ::std::string& Type_Name(Type value) {
216  return Entity_Type_Name(value);
217  }
218  static inline bool Type_Parse(const ::std::string& name,
219  Type* value) {
220  return Entity_Type_Parse(name, value);
221  }
222 
223  // accessors -------------------------------------------------------
224 
225  // string name = 3;
226  void clear_name();
227  static const int kNameFieldNumber = 3;
228  const ::std::string& name() const;
229  void set_name(const ::std::string& value);
230  #if LANG_CXX11
231  void set_name(::std::string&& value);
232  #endif
233  void set_name(const char* value);
234  void set_name(const char* value, size_t size);
235  ::std::string* mutable_name();
236  ::std::string* release_name();
237  void set_allocated_name(::std::string* name);
238 
239  // .gz.msgs.Header header = 1;
240  bool has_header() const;
241  void clear_header();
242  static const int kHeaderFieldNumber = 1;
243  private:
244  const ::gz::msgs::Header& _internal_header() const;
245  public:
246  const ::gz::msgs::Header& header() const;
247  ::gz::msgs::Header* release_header();
248  ::gz::msgs::Header* mutable_header();
249  void set_allocated_header(::gz::msgs::Header* header);
250 
251  // uint64 id = 2;
252  void clear_id();
253  static const int kIdFieldNumber = 2;
254  ::google::protobuf::uint64 id() const;
255  void set_id(::google::protobuf::uint64 value);
256 
257  // .gz.msgs.Entity.Type type = 4;
258  void clear_type();
259  static const int kTypeFieldNumber = 4;
260  ::gz::msgs::Entity_Type type() const;
261  void set_type(::gz::msgs::Entity_Type value);
262 
263  // @@protoc_insertion_point(class_scope:gz.msgs.Entity)
264  private:
265 
266  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
267  ::google::protobuf::internal::ArenaStringPtr name_;
268  ::gz::msgs::Header* header_;
269  ::google::protobuf::uint64 id_;
270  int type_;
271  mutable ::google::protobuf::internal::CachedSize _cached_size_;
272  friend struct ::protobuf_gz_2fmsgs_2fentity_2eproto::TableStruct;
273 };
274 // ===================================================================
275 
276 
277 // ===================================================================
278 
279 #ifdef __GNUC__
280  #pragma GCC diagnostic push
281  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
282 #endif // __GNUC__
283 // Entity
284 
285 // .gz.msgs.Header header = 1;
286 inline bool Entity::has_header() const {
287  return this != internal_default_instance() && header_ != NULL;
288 }
289 inline const ::gz::msgs::Header& Entity::_internal_header() const {
290  return *header_;
291 }
292 inline const ::gz::msgs::Header& Entity::header() const {
293  const ::gz::msgs::Header* p = header_;
294  // @@protoc_insertion_point(field_get:gz.msgs.Entity.header)
295  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
297 }
298 inline ::gz::msgs::Header* Entity::release_header() {
299  // @@protoc_insertion_point(field_release:gz.msgs.Entity.header)
300 
301  ::gz::msgs::Header* temp = header_;
302  header_ = NULL;
303  return temp;
304 }
305 inline ::gz::msgs::Header* Entity::mutable_header() {
306 
307  if (header_ == NULL) {
308  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
309  header_ = p;
310  }
311  // @@protoc_insertion_point(field_mutable:gz.msgs.Entity.header)
312  return header_;
313 }
315  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
316  if (message_arena == NULL) {
317  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
318  }
319  if (header) {
320  ::google::protobuf::Arena* submessage_arena = NULL;
321  if (message_arena != submessage_arena) {
322  header = ::google::protobuf::internal::GetOwnedMessage(
323  message_arena, header, submessage_arena);
324  }
325 
326  } else {
327 
328  }
329  header_ = header;
330  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Entity.header)
331 }
332 
333 // uint64 id = 2;
334 inline void Entity::clear_id() {
335  id_ = GOOGLE_ULONGLONG(0);
336 }
337 inline ::google::protobuf::uint64 Entity::id() const {
338  // @@protoc_insertion_point(field_get:gz.msgs.Entity.id)
339  return id_;
340 }
341 inline void Entity::set_id(::google::protobuf::uint64 value) {
342 
343  id_ = value;
344  // @@protoc_insertion_point(field_set:gz.msgs.Entity.id)
345 }
346 
347 // string name = 3;
348 inline void Entity::clear_name() {
349  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
350 }
351 inline const ::std::string& Entity::name() const {
352  // @@protoc_insertion_point(field_get:gz.msgs.Entity.name)
353  return name_.GetNoArena();
354 }
355 inline void Entity::set_name(const ::std::string& value) {
356 
357  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
358  // @@protoc_insertion_point(field_set:gz.msgs.Entity.name)
359 }
360 #if LANG_CXX11
361 inline void Entity::set_name(::std::string&& value) {
362 
363  name_.SetNoArena(
364  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
365  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Entity.name)
366 }
367 #endif
368 inline void Entity::set_name(const char* value) {
369  GOOGLE_DCHECK(value != NULL);
370 
371  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
372  // @@protoc_insertion_point(field_set_char:gz.msgs.Entity.name)
373 }
374 inline void Entity::set_name(const char* value, size_t size) {
375 
376  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
377  ::std::string(reinterpret_cast<const char*>(value), size));
378  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Entity.name)
379 }
380 inline ::std::string* Entity::mutable_name() {
381 
382  // @@protoc_insertion_point(field_mutable:gz.msgs.Entity.name)
383  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
384 }
385 inline ::std::string* Entity::release_name() {
386  // @@protoc_insertion_point(field_release:gz.msgs.Entity.name)
387 
388  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
389 }
391  if (name != NULL) {
392 
393  } else {
394 
395  }
396  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
397  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Entity.name)
398 }
399 
400 // .gz.msgs.Entity.Type type = 4;
401 inline void Entity::clear_type() {
402  type_ = 0;
403 }
405  // @@protoc_insertion_point(field_get:gz.msgs.Entity.type)
406  return static_cast< ::gz::msgs::Entity_Type >(type_);
407 }
409 
410  type_ = value;
411  // @@protoc_insertion_point(field_set:gz.msgs.Entity.type)
412 }
413 
414 #ifdef __GNUC__
415  #pragma GCC diagnostic pop
416 #endif // __GNUC__
417 
418 // @@protoc_insertion_point(namespace_scope)
419 
420 } // namespace msgs
421 } // namespace gz
422 
423 namespace google {
424 namespace protobuf {
425 
426 template <> struct is_proto_enum< ::gz::msgs::Entity_Type> : ::std::true_type {};
427 template <>
428 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Entity_Type>() {
430 }
431 
432 } // namespace protobuf
433 } // namespace google
434 
435 // @@protoc_insertion_point(global_scope)
436 
437 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_2eproto