Ignition Msgs

API Reference

8.0.0~pre1
track_visual.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/track_visual.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2ftrack_5fvisual_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2ftrack_5fvisual_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/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.
52 
53 class TrackVisual;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE TrackVisual : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.TrackVisual) */ {
58  public:
59  TrackVisual();
60  virtual ~TrackVisual();
61 
62  TrackVisual(const TrackVisual& from);
63 
64  inline TrackVisual& operator=(const TrackVisual& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const TrackVisual& default_instance();
71 
72  void Swap(TrackVisual* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline TrackVisual* New() const { return New(NULL); }
77 
78  TrackVisual* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const TrackVisual& from);
82  void MergeFrom(const TrackVisual& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(TrackVisual* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional string name = 2;
127  void clear_name();
128  static const int kNameFieldNumber = 2;
129  const ::std::string& name() const;
130  void set_name(const ::std::string& value);
131  void set_name(const char* value);
132  void set_name(const char* value, size_t size);
133  ::std::string* mutable_name();
134  ::std::string* release_name();
135  void set_allocated_name(::std::string* name);
136 
137  // optional uint32 id = 3;
138  void clear_id();
139  static const int kIdFieldNumber = 3;
140  ::google::protobuf::uint32 id() const;
141  void set_id(::google::protobuf::uint32 value);
142 
143  // optional bool inherit_orientation = 4;
144  void clear_inherit_orientation();
145  static const int kInheritOrientationFieldNumber = 4;
146  bool inherit_orientation() const;
147  void set_inherit_orientation(bool value);
148 
149  // optional double min_dist = 5;
150  void clear_min_dist();
151  static const int kMinDistFieldNumber = 5;
152  double min_dist() const;
153  void set_min_dist(double value);
154 
155  // optional double max_dist = 6;
156  void clear_max_dist();
157  static const int kMaxDistFieldNumber = 6;
158  double max_dist() const;
159  void set_max_dist(double value);
160 
161  // optional bool static = 7;
162  void clear_static_();
163  static const int kStaticFieldNumber = 7;
164  bool static_() const;
165  void set_static_(bool value);
166 
167  // optional bool use_model_frame = 8;
168  void clear_use_model_frame();
169  static const int kUseModelFrameFieldNumber = 8;
170  bool use_model_frame() const;
171  void set_use_model_frame(bool value);
172 
173  // optional .ignition.msgs.Vector3d xyz = 9;
174  bool has_xyz() const;
175  void clear_xyz();
176  static const int kXyzFieldNumber = 9;
177  const ::ignition::msgs::Vector3d& xyz() const;
178  ::ignition::msgs::Vector3d* mutable_xyz();
179  ::ignition::msgs::Vector3d* release_xyz();
180  void set_allocated_xyz(::ignition::msgs::Vector3d* xyz);
181 
182  // optional bool inherit_yaw = 10;
183  void clear_inherit_yaw();
184  static const int kInheritYawFieldNumber = 10;
185  bool inherit_yaw() const;
186  void set_inherit_yaw(bool value);
187 
188  // @@protoc_insertion_point(class_scope:ignition.msgs.TrackVisual)
189  private:
190 
191  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
192  bool _is_default_instance_;
193  ::ignition::msgs::Header* header_;
194  ::google::protobuf::internal::ArenaStringPtr name_;
195  double min_dist_;
196  double max_dist_;
197  ::google::protobuf::uint32 id_;
198  bool inherit_orientation_;
199  bool static__;
200  bool use_model_frame_;
201  bool inherit_yaw_;
203  mutable int _cached_size_;
204  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ftrack_5fvisual_2eproto();
207 
208  void InitAsDefaultInstance();
209  static TrackVisual* default_instance_;
210 };
211 // ===================================================================
212 
213 
214 // ===================================================================
215 
216 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
217 // TrackVisual
218 
219 // optional .ignition.msgs.Header header = 1;
220 inline bool TrackVisual::has_header() const {
221  return !_is_default_instance_ && header_ != NULL;
222 }
224  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
225  header_ = NULL;
226 }
227 inline const ::ignition::msgs::Header& TrackVisual::header() const {
228  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.header)
229  return header_ != NULL ? *header_ : *default_instance_->header_;
230 }
231 inline ::ignition::msgs::Header* TrackVisual::mutable_header() {
232 
233  if (header_ == NULL) {
234  header_ = new ::ignition::msgs::Header;
235  }
236  // @@protoc_insertion_point(field_mutable:ignition.msgs.TrackVisual.header)
237  return header_;
238 }
239 inline ::ignition::msgs::Header* TrackVisual::release_header() {
240  // @@protoc_insertion_point(field_release:ignition.msgs.TrackVisual.header)
241 
242  ::ignition::msgs::Header* temp = header_;
243  header_ = NULL;
244  return temp;
245 }
247  delete header_;
248  header_ = header;
249  if (header) {
250 
251  } else {
252 
253  }
254  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.TrackVisual.header)
255 }
256 
257 // optional string name = 2;
258 inline void TrackVisual::clear_name() {
259  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
260 }
261 inline const ::std::string& TrackVisual::name() const {
262  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.name)
263  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
264 }
265 inline void TrackVisual::set_name(const ::std::string& value) {
266 
267  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
268  // @@protoc_insertion_point(field_set:ignition.msgs.TrackVisual.name)
269 }
270 inline void TrackVisual::set_name(const char* value) {
271 
272  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
273  // @@protoc_insertion_point(field_set_char:ignition.msgs.TrackVisual.name)
274 }
275 inline void TrackVisual::set_name(const char* value, size_t size) {
276 
277  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
278  ::std::string(reinterpret_cast<const char*>(value), size));
279  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.TrackVisual.name)
280 }
281 inline ::std::string* TrackVisual::mutable_name() {
282 
283  // @@protoc_insertion_point(field_mutable:ignition.msgs.TrackVisual.name)
284  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
285 }
286 inline ::std::string* TrackVisual::release_name() {
287  // @@protoc_insertion_point(field_release:ignition.msgs.TrackVisual.name)
288 
289  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
290 }
292  if (name != NULL) {
293 
294  } else {
295 
296  }
297  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
298  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.TrackVisual.name)
299 }
300 
301 // optional uint32 id = 3;
302 inline void TrackVisual::clear_id() {
303  id_ = 0u;
304 }
305 inline ::google::protobuf::uint32 TrackVisual::id() const {
306  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.id)
307  return id_;
308 }
309 inline void TrackVisual::set_id(::google::protobuf::uint32 value) {
310 
311  id_ = value;
312  // @@protoc_insertion_point(field_set:ignition.msgs.TrackVisual.id)
313 }
314 
315 // optional bool inherit_orientation = 4;
317  inherit_orientation_ = false;
318 }
319 inline bool TrackVisual::inherit_orientation() const {
320  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.inherit_orientation)
321  return inherit_orientation_;
322 }
323 inline void TrackVisual::set_inherit_orientation(bool value) {
324 
325  inherit_orientation_ = value;
326  // @@protoc_insertion_point(field_set:ignition.msgs.TrackVisual.inherit_orientation)
327 }
328 
329 // optional double min_dist = 5;
331  min_dist_ = 0;
332 }
333 inline double TrackVisual::min_dist() const {
334  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.min_dist)
335  return min_dist_;
336 }
337 inline void TrackVisual::set_min_dist(double value) {
338 
339  min_dist_ = value;
340  // @@protoc_insertion_point(field_set:ignition.msgs.TrackVisual.min_dist)
341 }
342 
343 // optional double max_dist = 6;
345  max_dist_ = 0;
346 }
347 inline double TrackVisual::max_dist() const {
348  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.max_dist)
349  return max_dist_;
350 }
351 inline void TrackVisual::set_max_dist(double value) {
352 
353  max_dist_ = value;
354  // @@protoc_insertion_point(field_set:ignition.msgs.TrackVisual.max_dist)
355 }
356 
357 // optional bool static = 7;
359  static__ = false;
360 }
361 inline bool TrackVisual::static_() const {
362  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.static)
363  return static__;
364 }
365 inline void TrackVisual::set_static_(bool value) {
366 
367  static__ = value;
368  // @@protoc_insertion_point(field_set:ignition.msgs.TrackVisual.static)
369 }
370 
371 // optional bool use_model_frame = 8;
373  use_model_frame_ = false;
374 }
375 inline bool TrackVisual::use_model_frame() const {
376  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.use_model_frame)
377  return use_model_frame_;
378 }
379 inline void TrackVisual::set_use_model_frame(bool value) {
380 
381  use_model_frame_ = value;
382  // @@protoc_insertion_point(field_set:ignition.msgs.TrackVisual.use_model_frame)
383 }
384 
385 // optional .ignition.msgs.Vector3d xyz = 9;
386 inline bool TrackVisual::has_xyz() const {
387  return !_is_default_instance_ && xyz_ != NULL;
388 }
389 inline void TrackVisual::clear_xyz() {
390  if (GetArenaNoVirtual() == NULL && xyz_ != NULL) delete xyz_;
391  xyz_ = NULL;
392 }
393 inline const ::ignition::msgs::Vector3d& TrackVisual::xyz() const {
394  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.xyz)
395  return xyz_ != NULL ? *xyz_ : *default_instance_->xyz_;
396 }
397 inline ::ignition::msgs::Vector3d* TrackVisual::mutable_xyz() {
398 
399  if (xyz_ == NULL) {
400  xyz_ = new ::ignition::msgs::Vector3d;
401  }
402  // @@protoc_insertion_point(field_mutable:ignition.msgs.TrackVisual.xyz)
403  return xyz_;
404 }
405 inline ::ignition::msgs::Vector3d* TrackVisual::release_xyz() {
406  // @@protoc_insertion_point(field_release:ignition.msgs.TrackVisual.xyz)
407 
408  ::ignition::msgs::Vector3d* temp = xyz_;
409  xyz_ = NULL;
410  return temp;
411 }
413  delete xyz_;
414  xyz_ = xyz;
415  if (xyz) {
416 
417  } else {
418 
419  }
420  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.TrackVisual.xyz)
421 }
422 
423 // optional bool inherit_yaw = 10;
425  inherit_yaw_ = false;
426 }
427 inline bool TrackVisual::inherit_yaw() const {
428  // @@protoc_insertion_point(field_get:ignition.msgs.TrackVisual.inherit_yaw)
429  return inherit_yaw_;
430 }
431 inline void TrackVisual::set_inherit_yaw(bool value) {
432 
433  inherit_yaw_ = value;
434  // @@protoc_insertion_point(field_set:ignition.msgs.TrackVisual.inherit_yaw)
435 }
436 
437 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
438 
443 // @@protoc_insertion_point(namespace_scope)
444 
445 } // namespace msgs
446 } // namespace ignition
447 
448 #ifdef _MSC_VER
449 #pragma warning(pop)
450 #endif
451 // @@protoc_insertion_point(global_scope)
452 
453 #endif // PROTOBUF_ignition_2fmsgs_2ftrack_5fvisual_2eproto__INCLUDED
::ignition::msgs::Header * mutable_header()
Definition: track_visual.pb.h:231
int GetCachedSize() const
Definition: track_visual.pb.h:96
::google::protobuf::uint32 id() const
Definition: track_visual.pb.h:305
std::unique_ptr< TrackVisual > TrackVisualUniquePtr
Definition: track_visual.pb.h:439
void clear_inherit_orientation()
Definition: track_visual.pb.h:316
std::shared_ptr< TrackVisual > TrackVisualSharedPtr
Definition: track_visual.pb.h:441
void clear_use_model_frame()
Definition: track_visual.pb.h:372
bool has_xyz() const
Definition: track_visual.pb.h:386
void set_id(::google::protobuf::uint32 value)
Definition: track_visual.pb.h:309
std::unique_ptr< const TrackVisual > ConstTrackVisualUniquePtr
Definition: track_visual.pb.h:440
Definition: track_visual.pb.h:57
void clear_id()
Definition: track_visual.pb.h:302
void clear_inherit_yaw()
Definition: track_visual.pb.h:424
::ignition::msgs::Vector3d * release_xyz()
Definition: track_visual.pb.h:405
void clear_header()
Definition: track_visual.pb.h:223
const ::std::string & name() const
Definition: track_visual.pb.h:261
void set_use_model_frame(bool value)
Definition: track_visual.pb.h:379
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: track_visual.pb.h:93
::ignition::msgs::Vector3d * mutable_xyz()
Definition: track_visual.pb.h:397
void clear_static_()
Definition: track_visual.pb.h:358
TrackVisual * New() const
Definition: track_visual.pb.h:76
void protobuf_AssignDesc_ignition_2fmsgs_2ftrack_5fvisual_2eproto()
void set_inherit_orientation(bool value)
Definition: track_visual.pb.h:323
Definition: header.pb.h:161
STL class.
TrackVisual & operator=(const TrackVisual &from)
Definition: track_visual.pb.h:64
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ftrack_5fvisual_2eproto()
bool has_header() const
Definition: track_visual.pb.h:220
bool use_model_frame() const
Definition: track_visual.pb.h:375
::ignition::msgs::Header * release_header()
Definition: track_visual.pb.h:239
bool inherit_yaw() const
Definition: track_visual.pb.h:427
const ::ignition::msgs::Header & header() const
Definition: track_visual.pb.h:227
void clear_min_dist()
Definition: track_visual.pb.h:330
::std::string * release_name()
Definition: track_visual.pb.h:286
void set_allocated_xyz(::ignition::msgs::Vector3d *xyz)
Definition: track_visual.pb.h:412
::std::string * mutable_name()
Definition: track_visual.pb.h:281
Definition: vector3d.pb.h:56
std::shared_ptr< const TrackVisual > ConstTrackVisualSharedPtr
Definition: track_visual.pb.h:442
STL class.
bool static_() const
Definition: track_visual.pb.h:361
bool inherit_orientation() const
Definition: track_visual.pb.h:319
void clear_name()
Definition: track_visual.pb.h:258
void clear_max_dist()
Definition: track_visual.pb.h:344
void set_allocated_header(::ignition::msgs::Header *header)
Definition: track_visual.pb.h:246
void set_name(const ::std::string &value)
Definition: track_visual.pb.h:265
void set_min_dist(double value)
Definition: track_visual.pb.h:337
void set_static_(bool value)
Definition: track_visual.pb.h:365
double min_dist() const
Definition: track_visual.pb.h:333
void protobuf_ShutdownFile_ignition_2fmsgs_2ftrack_5fvisual_2eproto()
const ::ignition::msgs::Vector3d & xyz() const
Definition: track_visual.pb.h:393
double max_dist() const
Definition: track_visual.pb.h:347
void set_max_dist(double value)
Definition: track_visual.pb.h:351
void set_inherit_yaw(bool value)
Definition: track_visual.pb.h:431
void clear_xyz()
Definition: track_visual.pb.h:389
void set_allocated_name(::std::string *name)
Definition: track_visual.pb.h:291