Gazebo Msgs

API Reference

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