Gazebo Msgs

API Reference

5.11.0
build/ignition-msgs5/include/ignition/msgs/road.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/road.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2froad_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2froad_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/unknown_field_set.h>
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2froad_2eproto IGNITION_MSGS_VISIBLE
49 
51 // Internal implementation detail -- do not use these members.
52 struct IGNITION_MSGS_VISIBLE TableStruct {
53  static const ::google::protobuf::internal::ParseTableField entries[];
54  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55  static const ::google::protobuf::internal::ParseTable schema[1];
56  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57  static const ::google::protobuf::internal::SerializationTable serialization_table[];
58  static const ::google::protobuf::uint32 offsets[];
59 };
60 void IGNITION_MSGS_VISIBLE AddDescriptors();
61 } // namespace protobuf_ignition_2fmsgs_2froad_2eproto
62 namespace ignition {
63 namespace msgs {
64 class Road;
65 class RoadDefaultTypeInternal;
66 IGNITION_MSGS_VISIBLE extern RoadDefaultTypeInternal _Road_default_instance_;
67 } // namespace msgs
68 } // namespace ignition
69 namespace google {
70 namespace protobuf {
71 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Road* Arena::CreateMaybeMessage<::ignition::msgs::Road>(Arena*);
72 } // namespace protobuf
73 } // namespace google
74 namespace ignition {
75 namespace msgs {
76 
77 // ===================================================================
78 
79 class IGNITION_MSGS_VISIBLE Road : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Road) */ {
80  public:
81  Road();
82  virtual ~Road();
83 
84  Road(const Road& from);
85 
86  inline Road& operator=(const Road& from) {
87  CopyFrom(from);
88  return *this;
89  }
90  #if LANG_CXX11
91  Road(Road&& from) noexcept
92  : Road() {
93  *this = ::std::move(from);
94  }
95 
96  inline Road& operator=(Road&& from) noexcept {
97  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98  if (this != &from) InternalSwap(&from);
99  } else {
100  CopyFrom(from);
101  }
102  return *this;
103  }
104  #endif
105  static const ::google::protobuf::Descriptor* descriptor();
106  static const Road& default_instance();
107 
108  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
109  static inline const Road* internal_default_instance() {
110  return reinterpret_cast<const Road*>(
112  }
113  static constexpr int kIndexInFileMessages =
114  0;
115 
116  void Swap(Road* other);
117  friend void swap(Road& a, Road& b) {
118  a.Swap(&b);
119  }
120 
121  // implements Message ----------------------------------------------
122 
123  inline Road* New() const final {
124  return CreateMaybeMessage<Road>(NULL);
125  }
126 
127  Road* New(::google::protobuf::Arena* arena) const final {
128  return CreateMaybeMessage<Road>(arena);
129  }
130  void CopyFrom(const ::google::protobuf::Message& from) final;
131  void MergeFrom(const ::google::protobuf::Message& from) final;
132  void CopyFrom(const Road& from);
133  void MergeFrom(const Road& from);
134  void Clear() final;
135  bool IsInitialized() const final;
136 
137  size_t ByteSizeLong() const final;
138  bool MergePartialFromCodedStream(
139  ::google::protobuf::io::CodedInputStream* input) final;
140  void SerializeWithCachedSizes(
141  ::google::protobuf::io::CodedOutputStream* output) const final;
142  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
143  bool deterministic, ::google::protobuf::uint8* target) const final;
144  int GetCachedSize() const final { return _cached_size_.Get(); }
145 
146  private:
147  void SharedCtor();
148  void SharedDtor();
149  void SetCachedSize(int size) const final;
150  void InternalSwap(Road* other);
151  private:
152  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
153  return NULL;
154  }
155  inline void* MaybeArenaPtr() const {
156  return NULL;
157  }
158  public:
159 
160  ::google::protobuf::Metadata GetMetadata() const final;
161 
162  // nested types ----------------------------------------------------
163 
164  // accessors -------------------------------------------------------
165 
166  // repeated .ignition.msgs.Vector3d point = 4;
167  int point_size() const;
168  void clear_point();
169  static const int kPointFieldNumber = 4;
170  ::ignition::msgs::Vector3d* mutable_point(int index);
171  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
172  mutable_point();
173  const ::ignition::msgs::Vector3d& point(int index) const;
174  ::ignition::msgs::Vector3d* add_point();
175  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
176  point() const;
177 
178  // string name = 2;
179  void clear_name();
180  static const int kNameFieldNumber = 2;
181  const ::std::string& name() const;
182  void set_name(const ::std::string& value);
183  #if LANG_CXX11
184  void set_name(::std::string&& value);
185  #endif
186  void set_name(const char* value);
187  void set_name(const char* value, size_t size);
188  ::std::string* mutable_name();
189  ::std::string* release_name();
190  void set_allocated_name(::std::string* name);
191 
192  // .ignition.msgs.Header header = 1;
193  bool has_header() const;
194  void clear_header();
195  static const int kHeaderFieldNumber = 1;
196  private:
197  const ::ignition::msgs::Header& _internal_header() const;
198  public:
199  const ::ignition::msgs::Header& header() const;
200  ::ignition::msgs::Header* release_header();
201  ::ignition::msgs::Header* mutable_header();
202  void set_allocated_header(::ignition::msgs::Header* header);
203 
204  // .ignition.msgs.Material material = 5;
205  bool has_material() const;
206  void clear_material();
207  static const int kMaterialFieldNumber = 5;
208  private:
209  const ::ignition::msgs::Material& _internal_material() const;
210  public:
211  const ::ignition::msgs::Material& material() const;
212  ::ignition::msgs::Material* release_material();
213  ::ignition::msgs::Material* mutable_material();
214  void set_allocated_material(::ignition::msgs::Material* material);
215 
216  // double width = 3;
217  void clear_width();
218  static const int kWidthFieldNumber = 3;
219  double width() const;
220  void set_width(double value);
221 
222  // @@protoc_insertion_point(class_scope:ignition.msgs.Road)
223  private:
224 
225  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
226  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > point_;
227  ::google::protobuf::internal::ArenaStringPtr name_;
228  ::ignition::msgs::Header* header_;
229  ::ignition::msgs::Material* material_;
230  double width_;
231  mutable ::google::protobuf::internal::CachedSize _cached_size_;
232  friend struct ::protobuf_ignition_2fmsgs_2froad_2eproto::TableStruct;
233 };
234 // ===================================================================
235 
236 
237 // ===================================================================
238 
239 #ifdef __GNUC__
240  #pragma GCC diagnostic push
241  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
242 #endif // __GNUC__
243 // Road
244 
245 // .ignition.msgs.Header header = 1;
246 inline bool Road::has_header() const {
247  return this != internal_default_instance() && header_ != NULL;
248 }
249 inline const ::ignition::msgs::Header& Road::_internal_header() const {
250  return *header_;
251 }
252 inline const ::ignition::msgs::Header& Road::header() const {
253  const ::ignition::msgs::Header* p = header_;
254  // @@protoc_insertion_point(field_get:ignition.msgs.Road.header)
255  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
257 }
258 inline ::ignition::msgs::Header* Road::release_header() {
259  // @@protoc_insertion_point(field_release:ignition.msgs.Road.header)
260 
261  ::ignition::msgs::Header* temp = header_;
262  header_ = NULL;
263  return temp;
264 }
265 inline ::ignition::msgs::Header* Road::mutable_header() {
266 
267  if (header_ == NULL) {
268  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
269  header_ = p;
270  }
271  // @@protoc_insertion_point(field_mutable:ignition.msgs.Road.header)
272  return header_;
273 }
275  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
276  if (message_arena == NULL) {
277  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
278  }
279  if (header) {
280  ::google::protobuf::Arena* submessage_arena = NULL;
281  if (message_arena != submessage_arena) {
282  header = ::google::protobuf::internal::GetOwnedMessage(
283  message_arena, header, submessage_arena);
284  }
285 
286  } else {
287 
288  }
289  header_ = header;
290  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Road.header)
291 }
292 
293 // string name = 2;
294 inline void Road::clear_name() {
295  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
296 }
297 inline const ::std::string& Road::name() const {
298  // @@protoc_insertion_point(field_get:ignition.msgs.Road.name)
299  return name_.GetNoArena();
300 }
301 inline void Road::set_name(const ::std::string& value) {
302 
303  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
304  // @@protoc_insertion_point(field_set:ignition.msgs.Road.name)
305 }
306 #if LANG_CXX11
307 inline void Road::set_name(::std::string&& value) {
308 
309  name_.SetNoArena(
310  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
311  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Road.name)
312 }
313 #endif
314 inline void Road::set_name(const char* value) {
315  GOOGLE_DCHECK(value != NULL);
316 
317  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
318  // @@protoc_insertion_point(field_set_char:ignition.msgs.Road.name)
319 }
320 inline void Road::set_name(const char* value, size_t size) {
321 
322  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
323  ::std::string(reinterpret_cast<const char*>(value), size));
324  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Road.name)
325 }
326 inline ::std::string* Road::mutable_name() {
327 
328  // @@protoc_insertion_point(field_mutable:ignition.msgs.Road.name)
329  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
330 }
331 inline ::std::string* Road::release_name() {
332  // @@protoc_insertion_point(field_release:ignition.msgs.Road.name)
333 
334  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
335 }
336 inline void Road::set_allocated_name(::std::string* name) {
337  if (name != NULL) {
338 
339  } else {
340 
341  }
342  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
343  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Road.name)
344 }
345 
346 // double width = 3;
347 inline void Road::clear_width() {
348  width_ = 0;
349 }
350 inline double Road::width() const {
351  // @@protoc_insertion_point(field_get:ignition.msgs.Road.width)
352  return width_;
353 }
354 inline void Road::set_width(double value) {
355 
356  width_ = value;
357  // @@protoc_insertion_point(field_set:ignition.msgs.Road.width)
358 }
359 
360 // repeated .ignition.msgs.Vector3d point = 4;
361 inline int Road::point_size() const {
362  return point_.size();
363 }
364 inline ::ignition::msgs::Vector3d* Road::mutable_point(int index) {
365  // @@protoc_insertion_point(field_mutable:ignition.msgs.Road.point)
366  return point_.Mutable(index);
367 }
368 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
370  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Road.point)
371  return &point_;
372 }
373 inline const ::ignition::msgs::Vector3d& Road::point(int index) const {
374  // @@protoc_insertion_point(field_get:ignition.msgs.Road.point)
375  return point_.Get(index);
376 }
377 inline ::ignition::msgs::Vector3d* Road::add_point() {
378  // @@protoc_insertion_point(field_add:ignition.msgs.Road.point)
379  return point_.Add();
380 }
381 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
382 Road::point() const {
383  // @@protoc_insertion_point(field_list:ignition.msgs.Road.point)
384  return point_;
385 }
386 
387 // .ignition.msgs.Material material = 5;
388 inline bool Road::has_material() const {
389  return this != internal_default_instance() && material_ != NULL;
390 }
391 inline const ::ignition::msgs::Material& Road::_internal_material() const {
392  return *material_;
393 }
394 inline const ::ignition::msgs::Material& Road::material() const {
395  const ::ignition::msgs::Material* p = material_;
396  // @@protoc_insertion_point(field_get:ignition.msgs.Road.material)
397  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Material*>(
399 }
400 inline ::ignition::msgs::Material* Road::release_material() {
401  // @@protoc_insertion_point(field_release:ignition.msgs.Road.material)
402 
403  ::ignition::msgs::Material* temp = material_;
404  material_ = NULL;
405  return temp;
406 }
407 inline ::ignition::msgs::Material* Road::mutable_material() {
408 
409  if (material_ == NULL) {
410  auto* p = CreateMaybeMessage<::ignition::msgs::Material>(GetArenaNoVirtual());
411  material_ = p;
412  }
413  // @@protoc_insertion_point(field_mutable:ignition.msgs.Road.material)
414  return material_;
415 }
417  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
418  if (message_arena == NULL) {
419  delete reinterpret_cast< ::google::protobuf::MessageLite*>(material_);
420  }
421  if (material) {
422  ::google::protobuf::Arena* submessage_arena = NULL;
423  if (message_arena != submessage_arena) {
424  material = ::google::protobuf::internal::GetOwnedMessage(
425  message_arena, material, submessage_arena);
426  }
427 
428  } else {
429 
430  }
431  material_ = material;
432  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Road.material)
433 }
434 
435 #ifdef __GNUC__
436  #pragma GCC diagnostic pop
437 #endif // __GNUC__
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_INCLUDED_ignition_2fmsgs_2froad_2eproto
void Swap(Road *other)
bool has_material() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:388
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:246
IGNITION_MSGS_VISIBLE RoadDefaultTypeInternal _Road_default_instance_
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:52
STL class.
STL class.
friend void swap(Road &a, Road &b)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:117
::std::string * release_name()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:331
T move(T... args)
Definition: build/ignition-msgs5/include/ignition/msgs/vector3d.pb.h:77
Road * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:127
std::unique_ptr< const Road > ConstRoadUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:440
void set_name(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:301
double width() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:350
void clear_name()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:294
Road * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:123
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:265
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_point()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:369
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:274
std::shared_ptr< Road > RoadSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:441
void IGNITION_MSGS_VISIBLE AddDescriptors()
const ::std::string & name() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:297
Definition: build/ignition-msgs5/include/ignition/msgs/material.pb.h:553
void set_allocated_name(::std::string *name)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:336
std::unique_ptr< Road > RoadUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:439
std::shared_ptr< const Road > ConstRoadSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:442
void set_allocated_material(::ignition::msgs::Material *material)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:416
::std::string * mutable_name()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:326
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:79
Road & operator=(const Road &from)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:86
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void set_width(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:354
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:258
STL namespace.
Definition: build/ignition-msgs5/include/ignition/msgs/header.pb.h:215
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & point() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:382
::ignition::msgs::Material * release_material()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:400
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:252
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:50
int point_size() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:361
STL class.
::ignition::msgs::Vector3d * add_point()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:377
IGNITION_MSGS_VISIBLE MaterialDefaultTypeInternal _Material_default_instance_
static const Road * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:109
void clear_width()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:347
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
::ignition::msgs::Material * mutable_material()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:407
const ::ignition::msgs::Material & material() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:394