Ignition Msgs

API Reference

6.4.0
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_ignition_2fmsgs_2froad_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2froad_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>
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
50 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2froad_2eproto();
53 
54 class Road;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE Road : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Road) */ {
59  public:
60  Road();
61  virtual ~Road();
62 
63  Road(const Road& from);
64 
65  inline Road& operator=(const Road& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const Road& default_instance();
72 
73  void Swap(Road* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline Road* New() const { return New(NULL); }
78 
79  Road* New(::google::protobuf::Arena* arena) const;
80  void CopyFrom(const ::google::protobuf::Message& from);
81  void MergeFrom(const ::google::protobuf::Message& from);
82  void CopyFrom(const Road& from);
83  void MergeFrom(const Road& from);
84  void Clear();
85  bool IsInitialized() const;
86 
87  int ByteSize() const;
88  bool MergePartialFromCodedStream(
89  ::google::protobuf::io::CodedInputStream* input);
90  void SerializeWithCachedSizes(
91  ::google::protobuf::io::CodedOutputStream* output) const;
92  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93  bool deterministic, ::google::protobuf::uint8* output) const;
94  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
95  return InternalSerializeWithCachedSizesToArray(false, output);
96  }
97  int GetCachedSize() const { return _cached_size_; }
98  private:
99  void SharedCtor();
100  void SharedDtor();
101  void SetCachedSize(int size) const;
102  void InternalSwap(Road* other);
103  private:
104  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
105  return _internal_metadata_.arena();
106  }
107  inline void* MaybeArenaPtr() const {
108  return _internal_metadata_.raw_arena_ptr();
109  }
110  public:
111 
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // optional .ignition.msgs.Header header = 1;
119  bool has_header() const;
120  void clear_header();
121  static const int kHeaderFieldNumber = 1;
122  const ::ignition::msgs::Header& header() const;
123  ::ignition::msgs::Header* mutable_header();
124  ::ignition::msgs::Header* release_header();
125  void set_allocated_header(::ignition::msgs::Header* header);
126 
127  // optional string name = 2;
128  void clear_name();
129  static const int kNameFieldNumber = 2;
130  const ::std::string& name() const;
131  void set_name(const ::std::string& value);
132  void set_name(const char* value);
133  void set_name(const char* value, size_t size);
134  ::std::string* mutable_name();
135  ::std::string* release_name();
136  void set_allocated_name(::std::string* name);
137 
138  // optional double width = 3;
139  void clear_width();
140  static const int kWidthFieldNumber = 3;
141  double width() const;
142  void set_width(double value);
143 
144  // repeated .ignition.msgs.Vector3d point = 4;
145  int point_size() const;
146  void clear_point();
147  static const int kPointFieldNumber = 4;
148  const ::ignition::msgs::Vector3d& point(int index) const;
149  ::ignition::msgs::Vector3d* mutable_point(int index);
150  ::ignition::msgs::Vector3d* add_point();
151  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
152  mutable_point();
153  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
154  point() const;
155 
156  // optional .ignition.msgs.Material material = 5;
157  bool has_material() const;
158  void clear_material();
159  static const int kMaterialFieldNumber = 5;
160  const ::ignition::msgs::Material& material() const;
161  ::ignition::msgs::Material* mutable_material();
162  ::ignition::msgs::Material* release_material();
163  void set_allocated_material(::ignition::msgs::Material* material);
164 
165  // @@protoc_insertion_point(class_scope:ignition.msgs.Road)
166  private:
167 
168  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
169  bool _is_default_instance_;
170  ::ignition::msgs::Header* header_;
171  ::google::protobuf::internal::ArenaStringPtr name_;
172  double width_;
173  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > point_;
174  ::ignition::msgs::Material* material_;
175  mutable int _cached_size_;
176  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2froad_2eproto();
179 
180  void InitAsDefaultInstance();
181  static Road* default_instance_;
182 };
183 // ===================================================================
184 
185 
186 // ===================================================================
187 
188 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
189 // Road
190 
191 // optional .ignition.msgs.Header header = 1;
192 inline bool Road::has_header() const {
193  return !_is_default_instance_ && header_ != NULL;
194 }
195 inline void Road::clear_header() {
196  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
197  header_ = NULL;
198 }
199 inline const ::ignition::msgs::Header& Road::header() const {
200  // @@protoc_insertion_point(field_get:ignition.msgs.Road.header)
201  return header_ != NULL ? *header_ : *default_instance_->header_;
202 }
203 inline ::ignition::msgs::Header* Road::mutable_header() {
204 
205  if (header_ == NULL) {
206  header_ = new ::ignition::msgs::Header;
207  }
208  // @@protoc_insertion_point(field_mutable:ignition.msgs.Road.header)
209  return header_;
210 }
211 inline ::ignition::msgs::Header* Road::release_header() {
212  // @@protoc_insertion_point(field_release:ignition.msgs.Road.header)
213 
214  ::ignition::msgs::Header* temp = header_;
215  header_ = NULL;
216  return temp;
217 }
219  delete header_;
220  header_ = header;
221  if (header) {
222 
223  } else {
224 
225  }
226  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Road.header)
227 }
228 
229 // optional string name = 2;
230 inline void Road::clear_name() {
231  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
232 }
233 inline const ::std::string& Road::name() const {
234  // @@protoc_insertion_point(field_get:ignition.msgs.Road.name)
235  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
236 }
237 inline void Road::set_name(const ::std::string& value) {
238 
239  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
240  // @@protoc_insertion_point(field_set:ignition.msgs.Road.name)
241 }
242 inline void Road::set_name(const char* value) {
243 
244  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
245  // @@protoc_insertion_point(field_set_char:ignition.msgs.Road.name)
246 }
247 inline void Road::set_name(const char* value, size_t size) {
248 
249  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
250  ::std::string(reinterpret_cast<const char*>(value), size));
251  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Road.name)
252 }
253 inline ::std::string* Road::mutable_name() {
254 
255  // @@protoc_insertion_point(field_mutable:ignition.msgs.Road.name)
256  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
257 }
258 inline ::std::string* Road::release_name() {
259  // @@protoc_insertion_point(field_release:ignition.msgs.Road.name)
260 
261  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
262 }
263 inline void Road::set_allocated_name(::std::string* name) {
264  if (name != NULL) {
265 
266  } else {
267 
268  }
269  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
270  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Road.name)
271 }
272 
273 // optional double width = 3;
274 inline void Road::clear_width() {
275  width_ = 0;
276 }
277 inline double Road::width() const {
278  // @@protoc_insertion_point(field_get:ignition.msgs.Road.width)
279  return width_;
280 }
281 inline void Road::set_width(double value) {
282 
283  width_ = value;
284  // @@protoc_insertion_point(field_set:ignition.msgs.Road.width)
285 }
286 
287 // repeated .ignition.msgs.Vector3d point = 4;
288 inline int Road::point_size() const {
289  return point_.size();
290 }
291 inline void Road::clear_point() {
292  point_.Clear();
293 }
294 inline const ::ignition::msgs::Vector3d& Road::point(int index) const {
295  // @@protoc_insertion_point(field_get:ignition.msgs.Road.point)
296  return point_.Get(index);
297 }
298 inline ::ignition::msgs::Vector3d* Road::mutable_point(int index) {
299  // @@protoc_insertion_point(field_mutable:ignition.msgs.Road.point)
300  return point_.Mutable(index);
301 }
302 inline ::ignition::msgs::Vector3d* Road::add_point() {
303  // @@protoc_insertion_point(field_add:ignition.msgs.Road.point)
304  return point_.Add();
305 }
306 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
308  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Road.point)
309  return &point_;
310 }
311 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
312 Road::point() const {
313  // @@protoc_insertion_point(field_list:ignition.msgs.Road.point)
314  return point_;
315 }
316 
317 // optional .ignition.msgs.Material material = 5;
318 inline bool Road::has_material() const {
319  return !_is_default_instance_ && material_ != NULL;
320 }
321 inline void Road::clear_material() {
322  if (GetArenaNoVirtual() == NULL && material_ != NULL) delete material_;
323  material_ = NULL;
324 }
325 inline const ::ignition::msgs::Material& Road::material() const {
326  // @@protoc_insertion_point(field_get:ignition.msgs.Road.material)
327  return material_ != NULL ? *material_ : *default_instance_->material_;
328 }
329 inline ::ignition::msgs::Material* Road::mutable_material() {
330 
331  if (material_ == NULL) {
332  material_ = new ::ignition::msgs::Material;
333  }
334  // @@protoc_insertion_point(field_mutable:ignition.msgs.Road.material)
335  return material_;
336 }
337 inline ::ignition::msgs::Material* Road::release_material() {
338  // @@protoc_insertion_point(field_release:ignition.msgs.Road.material)
339 
340  ::ignition::msgs::Material* temp = material_;
341  material_ = NULL;
342  return temp;
343 }
345  delete material_;
346  material_ = material;
347  if (material) {
348 
349  } else {
350 
351  }
352  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Road.material)
353 }
354 
355 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
356 
361 // @@protoc_insertion_point(namespace_scope)
362 
363 } // namespace msgs
364 } // namespace ignition
365 
366 #ifdef _MSC_VER
367 #pragma warning(pop)
368 #endif
369 // @@protoc_insertion_point(global_scope)
370 
371 #endif // PROTOBUF_ignition_2fmsgs_2froad_2eproto__INCLUDED
bool has_material() const
Definition: road.pb.h:318
const ::ignition::msgs::Header & header() const
Definition: road.pb.h:199
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: road.pb.h:94
void protobuf_AssignDesc_ignition_2fmsgs_2froad_2eproto()
void clear_header()
Definition: road.pb.h:195
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_point()
Definition: road.pb.h:307
::ignition::msgs::Header * mutable_header()
Definition: road.pb.h:203
void clear_width()
Definition: road.pb.h:274
void set_allocated_material(::ignition::msgs::Material *material)
Definition: road.pb.h:344
void protobuf_ShutdownFile_ignition_2fmsgs_2froad_2eproto()
void clear_material()
Definition: road.pb.h:321
Road & operator=(const Road &from)
Definition: road.pb.h:65
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2froad_2eproto()
Definition: header.pb.h:161
STL class.
Definition: road.pb.h:58
void clear_name()
Definition: road.pb.h:230
int point_size() const
Definition: road.pb.h:288
std::shared_ptr< const Road > ConstRoadSharedPtr
Definition: road.pb.h:360
std::unique_ptr< const Road > ConstRoadUniquePtr
Definition: road.pb.h:358
std::unique_ptr< Road > RoadUniquePtr
Definition: road.pb.h:357
void set_allocated_name(::std::string *name)
Definition: road.pb.h:263
::ignition::msgs::Header * release_header()
Definition: road.pb.h:211
void set_width(double value)
Definition: road.pb.h:281
Definition: material.pb.h:448
std::shared_ptr< Road > RoadSharedPtr
Definition: road.pb.h:359
Road * New() const
Definition: road.pb.h:77
void set_allocated_header(::ignition::msgs::Header *header)
Definition: road.pb.h:218
Definition: vector3d.pb.h:56
STL class.
void set_name(const ::std::string &value)
Definition: road.pb.h:237
bool has_header() const
Definition: road.pb.h:192
::ignition::msgs::Material * release_material()
Definition: road.pb.h:337
const ::ignition::msgs::Material & material() const
Definition: road.pb.h:325
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & point() const
Definition: road.pb.h:312
const ::std::string & name() const
Definition: road.pb.h:233
void clear_point()
Definition: road.pb.h:291
::std::string * mutable_name()
Definition: road.pb.h:253
int GetCachedSize() const
Definition: road.pb.h:97
::ignition::msgs::Vector3d * add_point()
Definition: road.pb.h:302
double width() const
Definition: road.pb.h:277
::ignition::msgs::Material * mutable_material()
Definition: road.pb.h:329
::std::string * release_name()
Definition: road.pb.h:258