Ignition Msgs

API Reference

8.2.0
camerasensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/camerasensor.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fcamerasensor_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fcamerasensor_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.
53 
54 class CameraSensor;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE CameraSensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.CameraSensor) */ {
59  public:
60  CameraSensor();
61  virtual ~CameraSensor();
62 
63  CameraSensor(const CameraSensor& from);
64 
65  inline CameraSensor& operator=(const CameraSensor& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const CameraSensor& default_instance();
72 
73  void Swap(CameraSensor* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline CameraSensor* New() const { return New(NULL); }
78 
79  CameraSensor* 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 CameraSensor& from);
83  void MergeFrom(const CameraSensor& 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(CameraSensor* 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 double horizontal_fov = 2;
128  void clear_horizontal_fov();
129  static const int kHorizontalFovFieldNumber = 2;
130  double horizontal_fov() const;
131  void set_horizontal_fov(double value);
132 
133  // optional .ignition.msgs.Vector2d image_size = 3;
134  bool has_image_size() const;
135  void clear_image_size();
136  static const int kImageSizeFieldNumber = 3;
137  const ::ignition::msgs::Vector2d& image_size() const;
138  ::ignition::msgs::Vector2d* mutable_image_size();
139  ::ignition::msgs::Vector2d* release_image_size();
140  void set_allocated_image_size(::ignition::msgs::Vector2d* image_size);
141 
142  // optional string image_format = 4;
143  void clear_image_format();
144  static const int kImageFormatFieldNumber = 4;
145  const ::std::string& image_format() const;
146  void set_image_format(const ::std::string& value);
147  void set_image_format(const char* value);
148  void set_image_format(const char* value, size_t size);
149  ::std::string* mutable_image_format();
150  ::std::string* release_image_format();
151  void set_allocated_image_format(::std::string* image_format);
152 
153  // optional double near_clip = 5;
154  void clear_near_clip();
155  static const int kNearClipFieldNumber = 5;
156  double near_clip() const;
157  void set_near_clip(double value);
158 
159  // optional double far_clip = 6;
160  void clear_far_clip();
161  static const int kFarClipFieldNumber = 6;
162  double far_clip() const;
163  void set_far_clip(double value);
164 
165  // optional bool save_enabled = 7;
166  void clear_save_enabled();
167  static const int kSaveEnabledFieldNumber = 7;
168  bool save_enabled() const;
169  void set_save_enabled(bool value);
170 
171  // optional string save_path = 8;
172  void clear_save_path();
173  static const int kSavePathFieldNumber = 8;
174  const ::std::string& save_path() const;
175  void set_save_path(const ::std::string& value);
176  void set_save_path(const char* value);
177  void set_save_path(const char* value, size_t size);
178  ::std::string* mutable_save_path();
179  ::std::string* release_save_path();
180  void set_allocated_save_path(::std::string* save_path);
181 
182  // optional .ignition.msgs.Distortion distortion = 9;
183  bool has_distortion() const;
184  void clear_distortion();
185  static const int kDistortionFieldNumber = 9;
186  const ::ignition::msgs::Distortion& distortion() const;
187  ::ignition::msgs::Distortion* mutable_distortion();
188  ::ignition::msgs::Distortion* release_distortion();
189  void set_allocated_distortion(::ignition::msgs::Distortion* distortion);
190 
191  // @@protoc_insertion_point(class_scope:ignition.msgs.CameraSensor)
192  private:
193 
194  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
195  bool _is_default_instance_;
196  ::ignition::msgs::Header* header_;
197  double horizontal_fov_;
198  ::ignition::msgs::Vector2d* image_size_;
199  ::google::protobuf::internal::ArenaStringPtr image_format_;
200  double near_clip_;
201  double far_clip_;
202  ::google::protobuf::internal::ArenaStringPtr save_path_;
203  ::ignition::msgs::Distortion* distortion_;
204  bool save_enabled_;
205  mutable int _cached_size_;
206  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcamerasensor_2eproto();
209 
210  void InitAsDefaultInstance();
211  static CameraSensor* default_instance_;
212 };
213 // ===================================================================
214 
215 
216 // ===================================================================
217 
218 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
219 // CameraSensor
220 
221 // optional .ignition.msgs.Header header = 1;
222 inline bool CameraSensor::has_header() const {
223  return !_is_default_instance_ && header_ != NULL;
224 }
226  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
227  header_ = NULL;
228 }
229 inline const ::ignition::msgs::Header& CameraSensor::header() const {
230  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.header)
231  return header_ != NULL ? *header_ : *default_instance_->header_;
232 }
233 inline ::ignition::msgs::Header* CameraSensor::mutable_header() {
234 
235  if (header_ == NULL) {
236  header_ = new ::ignition::msgs::Header;
237  }
238  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.header)
239  return header_;
240 }
241 inline ::ignition::msgs::Header* CameraSensor::release_header() {
242  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.header)
243 
244  ::ignition::msgs::Header* temp = header_;
245  header_ = NULL;
246  return temp;
247 }
249  delete header_;
250  header_ = header;
251  if (header) {
252 
253  } else {
254 
255  }
256  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.header)
257 }
258 
259 // optional double horizontal_fov = 2;
261  horizontal_fov_ = 0;
262 }
263 inline double CameraSensor::horizontal_fov() const {
264  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.horizontal_fov)
265  return horizontal_fov_;
266 }
267 inline void CameraSensor::set_horizontal_fov(double value) {
268 
269  horizontal_fov_ = value;
270  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.horizontal_fov)
271 }
272 
273 // optional .ignition.msgs.Vector2d image_size = 3;
274 inline bool CameraSensor::has_image_size() const {
275  return !_is_default_instance_ && image_size_ != NULL;
276 }
278  if (GetArenaNoVirtual() == NULL && image_size_ != NULL) delete image_size_;
279  image_size_ = NULL;
280 }
281 inline const ::ignition::msgs::Vector2d& CameraSensor::image_size() const {
282  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.image_size)
283  return image_size_ != NULL ? *image_size_ : *default_instance_->image_size_;
284 }
285 inline ::ignition::msgs::Vector2d* CameraSensor::mutable_image_size() {
286 
287  if (image_size_ == NULL) {
288  image_size_ = new ::ignition::msgs::Vector2d;
289  }
290  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.image_size)
291  return image_size_;
292 }
293 inline ::ignition::msgs::Vector2d* CameraSensor::release_image_size() {
294  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.image_size)
295 
296  ::ignition::msgs::Vector2d* temp = image_size_;
297  image_size_ = NULL;
298  return temp;
299 }
301  delete image_size_;
302  image_size_ = image_size;
303  if (image_size) {
304 
305  } else {
306 
307  }
308  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.image_size)
309 }
310 
311 // optional string image_format = 4;
313  image_format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314 }
315 inline const ::std::string& CameraSensor::image_format() const {
316  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.image_format)
317  return image_format_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
318 }
319 inline void CameraSensor::set_image_format(const ::std::string& value) {
320 
321  image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
322  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.image_format)
323 }
324 inline void CameraSensor::set_image_format(const char* value) {
325 
326  image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
327  // @@protoc_insertion_point(field_set_char:ignition.msgs.CameraSensor.image_format)
328 }
329 inline void CameraSensor::set_image_format(const char* value, size_t size) {
330 
331  image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
332  ::std::string(reinterpret_cast<const char*>(value), size));
333  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.CameraSensor.image_format)
334 }
335 inline ::std::string* CameraSensor::mutable_image_format() {
336 
337  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.image_format)
338  return image_format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
339 }
340 inline ::std::string* CameraSensor::release_image_format() {
341  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.image_format)
342 
343  return image_format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
344 }
346  if (image_format != NULL) {
347 
348  } else {
349 
350  }
351  image_format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image_format);
352  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.image_format)
353 }
354 
355 // optional double near_clip = 5;
357  near_clip_ = 0;
358 }
359 inline double CameraSensor::near_clip() const {
360  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.near_clip)
361  return near_clip_;
362 }
363 inline void CameraSensor::set_near_clip(double value) {
364 
365  near_clip_ = value;
366  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.near_clip)
367 }
368 
369 // optional double far_clip = 6;
371  far_clip_ = 0;
372 }
373 inline double CameraSensor::far_clip() const {
374  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.far_clip)
375  return far_clip_;
376 }
377 inline void CameraSensor::set_far_clip(double value) {
378 
379  far_clip_ = value;
380  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.far_clip)
381 }
382 
383 // optional bool save_enabled = 7;
385  save_enabled_ = false;
386 }
387 inline bool CameraSensor::save_enabled() const {
388  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.save_enabled)
389  return save_enabled_;
390 }
391 inline void CameraSensor::set_save_enabled(bool value) {
392 
393  save_enabled_ = value;
394  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.save_enabled)
395 }
396 
397 // optional string save_path = 8;
399  save_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
400 }
401 inline const ::std::string& CameraSensor::save_path() const {
402  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.save_path)
403  return save_path_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
404 }
405 inline void CameraSensor::set_save_path(const ::std::string& value) {
406 
407  save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
408  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.save_path)
409 }
410 inline void CameraSensor::set_save_path(const char* value) {
411 
412  save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
413  // @@protoc_insertion_point(field_set_char:ignition.msgs.CameraSensor.save_path)
414 }
415 inline void CameraSensor::set_save_path(const char* value, size_t size) {
416 
417  save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
418  ::std::string(reinterpret_cast<const char*>(value), size));
419  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.CameraSensor.save_path)
420 }
421 inline ::std::string* CameraSensor::mutable_save_path() {
422 
423  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.save_path)
424  return save_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
425 }
426 inline ::std::string* CameraSensor::release_save_path() {
427  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.save_path)
428 
429  return save_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
430 }
432  if (save_path != NULL) {
433 
434  } else {
435 
436  }
437  save_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), save_path);
438  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.save_path)
439 }
440 
441 // optional .ignition.msgs.Distortion distortion = 9;
442 inline bool CameraSensor::has_distortion() const {
443  return !_is_default_instance_ && distortion_ != NULL;
444 }
446  if (GetArenaNoVirtual() == NULL && distortion_ != NULL) delete distortion_;
447  distortion_ = NULL;
448 }
449 inline const ::ignition::msgs::Distortion& CameraSensor::distortion() const {
450  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.distortion)
451  return distortion_ != NULL ? *distortion_ : *default_instance_->distortion_;
452 }
453 inline ::ignition::msgs::Distortion* CameraSensor::mutable_distortion() {
454 
455  if (distortion_ == NULL) {
456  distortion_ = new ::ignition::msgs::Distortion;
457  }
458  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.distortion)
459  return distortion_;
460 }
461 inline ::ignition::msgs::Distortion* CameraSensor::release_distortion() {
462  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.distortion)
463 
464  ::ignition::msgs::Distortion* temp = distortion_;
465  distortion_ = NULL;
466  return temp;
467 }
469  delete distortion_;
470  distortion_ = distortion;
471  if (distortion) {
472 
473  } else {
474 
475  }
476  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.distortion)
477 }
478 
479 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
480 
485 // @@protoc_insertion_point(namespace_scope)
486 
487 } // namespace msgs
488 } // namespace ignition
489 
490 #ifdef _MSC_VER
491 #pragma warning(pop)
492 #endif
493 // @@protoc_insertion_point(global_scope)
494 
495 #endif // PROTOBUF_ignition_2fmsgs_2fcamerasensor_2eproto__INCLUDED
void set_horizontal_fov(double value)
Definition: camerasensor.pb.h:267
void set_far_clip(double value)
Definition: camerasensor.pb.h:377
::std::string * mutable_save_path()
Definition: camerasensor.pb.h:421
double far_clip() const
Definition: camerasensor.pb.h:373
::ignition::msgs::Vector2d * release_image_size()
Definition: camerasensor.pb.h:293
void set_save_enabled(bool value)
Definition: camerasensor.pb.h:391
Definition: camerasensor.pb.h:58
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcamerasensor_2eproto()
CameraSensor * New() const
Definition: camerasensor.pb.h:77
const ::ignition::msgs::Vector2d & image_size() const
Definition: camerasensor.pb.h:281
void set_allocated_header(::ignition::msgs::Header *header)
Definition: camerasensor.pb.h:248
Definition: vector2d.pb.h:56
std::shared_ptr< CameraSensor > CameraSensorSharedPtr
Definition: camerasensor.pb.h:483
double near_clip() const
Definition: camerasensor.pb.h:359
void clear_save_path()
Definition: camerasensor.pb.h:398
void clear_header()
Definition: camerasensor.pb.h:225
void clear_horizontal_fov()
Definition: camerasensor.pb.h:260
void clear_distortion()
Definition: camerasensor.pb.h:445
void clear_image_size()
Definition: camerasensor.pb.h:277
std::shared_ptr< const CameraSensor > ConstCameraSensorSharedPtr
Definition: camerasensor.pb.h:484
Definition: header.pb.h:161
const ::std::string & image_format() const
Definition: camerasensor.pb.h:315
STL class.
std::unique_ptr< const CameraSensor > ConstCameraSensorUniquePtr
Definition: camerasensor.pb.h:482
const ::std::string & save_path() const
Definition: camerasensor.pb.h:401
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: camerasensor.pb.h:94
::ignition::msgs::Header * mutable_header()
Definition: camerasensor.pb.h:233
std::unique_ptr< CameraSensor > CameraSensorUniquePtr
Definition: camerasensor.pb.h:481
void clear_save_enabled()
Definition: camerasensor.pb.h:384
void set_save_path(const ::std::string &value)
Definition: camerasensor.pb.h:405
::std::string * release_save_path()
Definition: camerasensor.pb.h:426
void set_allocated_image_size(::ignition::msgs::Vector2d *image_size)
Definition: camerasensor.pb.h:300
CameraSensor & operator=(const CameraSensor &from)
Definition: camerasensor.pb.h:65
bool save_enabled() const
Definition: camerasensor.pb.h:387
void clear_image_format()
Definition: camerasensor.pb.h:312
void clear_far_clip()
Definition: camerasensor.pb.h:370
::std::string * release_image_format()
Definition: camerasensor.pb.h:340
STL class.
void set_allocated_distortion(::ignition::msgs::Distortion *distortion)
Definition: camerasensor.pb.h:468
void set_allocated_save_path(::std::string *save_path)
Definition: camerasensor.pb.h:431
bool has_image_size() const
Definition: camerasensor.pb.h:274
::std::string * mutable_image_format()
Definition: camerasensor.pb.h:335
::ignition::msgs::Header * release_header()
Definition: camerasensor.pb.h:241
Definition: distortion.pb.h:57
void set_allocated_image_format(::std::string *image_format)
Definition: camerasensor.pb.h:345
bool has_header() const
Definition: camerasensor.pb.h:222
void protobuf_ShutdownFile_ignition_2fmsgs_2fcamerasensor_2eproto()
::ignition::msgs::Distortion * mutable_distortion()
Definition: camerasensor.pb.h:453
double horizontal_fov() const
Definition: camerasensor.pb.h:263
bool has_distortion() const
Definition: camerasensor.pb.h:442
const ::ignition::msgs::Header & header() const
Definition: camerasensor.pb.h:229
void set_near_clip(double value)
Definition: camerasensor.pb.h:363
::ignition::msgs::Distortion * release_distortion()
Definition: camerasensor.pb.h:461
::ignition::msgs::Vector2d * mutable_image_size()
Definition: camerasensor.pb.h:285
void set_image_format(const ::std::string &value)
Definition: camerasensor.pb.h:319
const ::ignition::msgs::Distortion & distortion() const
Definition: camerasensor.pb.h:449
void protobuf_AssignDesc_ignition_2fmsgs_2fcamerasensor_2eproto()
void clear_near_clip()
Definition: camerasensor.pb.h:356
int GetCachedSize() const
Definition: camerasensor.pb.h:97