Ignition Msgs

API Reference

8.2.0
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_ignition_2fmsgs_2fentity_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fentity_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fentity_2eproto();
52 
53 class Entity;
54 
66 };
67 IGNITION_MSGS_VISIBLE bool Entity_Type_IsValid(int value);
70 const int Entity_Type_Type_ARRAYSIZE = Entity_Type_Type_MAX + 1;
71 
72 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Entity_Type_descriptor();
73 inline const ::std::string& Entity_Type_Name(Entity_Type value) {
74  return ::google::protobuf::internal::NameOfEnum(
75  Entity_Type_descriptor(), value);
76 }
77 inline bool Entity_Type_Parse(
78  const ::std::string& name, Entity_Type* value) {
79  return ::google::protobuf::internal::ParseNamedEnum<Entity_Type>(
80  Entity_Type_descriptor(), name, value);
81 }
82 // ===================================================================
83 
84 class IGNITION_MSGS_VISIBLE Entity : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Entity) */ {
85  public:
86  Entity();
87  virtual ~Entity();
88 
89  Entity(const Entity& from);
90 
91  inline Entity& operator=(const Entity& from) {
92  CopyFrom(from);
93  return *this;
94  }
95 
96  static const ::google::protobuf::Descriptor* descriptor();
97  static const Entity& default_instance();
98 
99  void Swap(Entity* other);
100 
101  // implements Message ----------------------------------------------
102 
103  inline Entity* New() const { return New(NULL); }
104 
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);
110  void Clear();
111  bool IsInitialized() const;
112 
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;
120  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
121  return InternalSerializeWithCachedSizesToArray(false, output);
122  }
123  int GetCachedSize() const { return _cached_size_; }
124  private:
125  void SharedCtor();
126  void SharedDtor();
127  void SetCachedSize(int size) const;
128  void InternalSwap(Entity* other);
129  private:
130  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
131  return _internal_metadata_.arena();
132  }
133  inline void* MaybeArenaPtr() const {
134  return _internal_metadata_.raw_arena_ptr();
135  }
136  public:
137 
138  ::google::protobuf::Metadata GetMetadata() const;
139 
140  // nested types ----------------------------------------------------
141 
142  typedef Entity_Type Type;
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 =
159  static inline bool Type_IsValid(int value) {
160  return Entity_Type_IsValid(value);
161  }
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*
170  return Entity_Type_descriptor();
171  }
172  static inline const ::std::string& Type_Name(Type value) {
173  return Entity_Type_Name(value);
174  }
175  static inline bool Type_Parse(const ::std::string& name,
176  Type* value) {
177  return Entity_Type_Parse(name, value);
178  }
179 
180  // accessors -------------------------------------------------------
181 
182  // optional .ignition.msgs.Header header = 1;
183  bool has_header() const;
184  void clear_header();
185  static const int kHeaderFieldNumber = 1;
186  const ::ignition::msgs::Header& header() const;
187  ::ignition::msgs::Header* mutable_header();
188  ::ignition::msgs::Header* release_header();
189  void set_allocated_header(::ignition::msgs::Header* header);
190 
191  // optional uint64 id = 2;
192  void clear_id();
193  static const int kIdFieldNumber = 2;
194  ::google::protobuf::uint64 id() const;
195  void set_id(::google::protobuf::uint64 value);
196 
197  // optional string name = 3;
198  void clear_name();
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);
204  ::std::string* mutable_name();
205  ::std::string* release_name();
206  void set_allocated_name(::std::string* name);
207 
208  // optional .ignition.msgs.Entity.Type type = 4;
209  void clear_type();
210  static const int kTypeFieldNumber = 4;
211  ::ignition::msgs::Entity_Type type() const;
212  void set_type(::ignition::msgs::Entity_Type value);
213 
214  // @@protoc_insertion_point(class_scope:ignition.msgs.Entity)
215  private:
216 
217  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
218  bool _is_default_instance_;
219  ::ignition::msgs::Header* header_;
220  ::google::protobuf::uint64 id_;
221  ::google::protobuf::internal::ArenaStringPtr name_;
222  int type_;
223  mutable int _cached_size_;
224  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fentity_2eproto();
227 
228  void InitAsDefaultInstance();
229  static Entity* default_instance_;
230 };
231 // ===================================================================
232 
233 
234 // ===================================================================
235 
236 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
237 // Entity
238 
239 // optional .ignition.msgs.Header header = 1;
240 inline bool Entity::has_header() const {
241  return !_is_default_instance_ && header_ != NULL;
242 }
243 inline void Entity::clear_header() {
244  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
245  header_ = NULL;
246 }
247 inline const ::ignition::msgs::Header& Entity::header() const {
248  // @@protoc_insertion_point(field_get:ignition.msgs.Entity.header)
249  return header_ != NULL ? *header_ : *default_instance_->header_;
250 }
251 inline ::ignition::msgs::Header* Entity::mutable_header() {
252 
253  if (header_ == NULL) {
254  header_ = new ::ignition::msgs::Header;
255  }
256  // @@protoc_insertion_point(field_mutable:ignition.msgs.Entity.header)
257  return header_;
258 }
259 inline ::ignition::msgs::Header* Entity::release_header() {
260  // @@protoc_insertion_point(field_release:ignition.msgs.Entity.header)
261 
262  ::ignition::msgs::Header* temp = header_;
263  header_ = NULL;
264  return temp;
265 }
267  delete header_;
268  header_ = header;
269  if (header) {
270 
271  } else {
272 
273  }
274  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Entity.header)
275 }
276 
277 // optional uint64 id = 2;
278 inline void Entity::clear_id() {
279  id_ = GOOGLE_ULONGLONG(0);
280 }
281 inline ::google::protobuf::uint64 Entity::id() const {
282  // @@protoc_insertion_point(field_get:ignition.msgs.Entity.id)
283  return id_;
284 }
285 inline void Entity::set_id(::google::protobuf::uint64 value) {
286 
287  id_ = value;
288  // @@protoc_insertion_point(field_set:ignition.msgs.Entity.id)
289 }
290 
291 // optional string name = 3;
292 inline void Entity::clear_name() {
293  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
294 }
295 inline const ::std::string& Entity::name() const {
296  // @@protoc_insertion_point(field_get:ignition.msgs.Entity.name)
297  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
298 }
299 inline void Entity::set_name(const ::std::string& value) {
300 
301  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
302  // @@protoc_insertion_point(field_set:ignition.msgs.Entity.name)
303 }
304 inline void Entity::set_name(const char* value) {
305 
306  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
307  // @@protoc_insertion_point(field_set_char:ignition.msgs.Entity.name)
308 }
309 inline void Entity::set_name(const char* value, size_t size) {
310 
311  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
312  ::std::string(reinterpret_cast<const char*>(value), size));
313  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Entity.name)
314 }
315 inline ::std::string* Entity::mutable_name() {
316 
317  // @@protoc_insertion_point(field_mutable:ignition.msgs.Entity.name)
318  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 }
320 inline ::std::string* Entity::release_name() {
321  // @@protoc_insertion_point(field_release:ignition.msgs.Entity.name)
322 
323  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
324 }
326  if (name != NULL) {
327 
328  } else {
329 
330  }
331  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
332  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Entity.name)
333 }
334 
335 // optional .ignition.msgs.Entity.Type type = 4;
336 inline void Entity::clear_type() {
337  type_ = 0;
338 }
340  // @@protoc_insertion_point(field_get:ignition.msgs.Entity.type)
341  return static_cast< ::ignition::msgs::Entity_Type >(type_);
342 }
344 
345  type_ = value;
346  // @@protoc_insertion_point(field_set:ignition.msgs.Entity.type)
347 }
348 
349 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
350 
355 // @@protoc_insertion_point(namespace_scope)
356 
357 } // namespace msgs
358 } // namespace ignition
359 
360 #ifndef SWIG
361 namespace google {
362 namespace protobuf {
363 
364 template <> struct is_proto_enum< ::ignition::msgs::Entity_Type> : ::google::protobuf::internal::true_type {};
365 template <>
366 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Entity_Type>() {
368 }
369 
370 } // namespace protobuf
371 } // namespace google
372 #endif // SWIG
373 
374 #ifdef _MSC_VER
375 #pragma warning(pop)
376 #endif
377 // @@protoc_insertion_point(global_scope)
378 
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
Definition: header.pb.h:161
STL class.
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
::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
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()
STL class.
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: any.pb.h:839
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