Gazebo Msgs

API Reference

9.5.0
camera_lens.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/camera_lens.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcamera_5flens_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fcamera_5flens_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/header.pb.h"
34 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcamera_5flens_2eproto GZ_MSGS_VISIBLE
36 
38 // Internal implementation detail -- do not use these members.
39 struct GZ_MSGS_VISIBLE TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void GZ_MSGS_VISIBLE AddDescriptors();
48 } // namespace protobuf_gz_2fmsgs_2fcamera_5flens_2eproto
49 namespace gz {
50 namespace msgs {
51 class CameraLens;
52 class CameraLensDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern CameraLensDefaultTypeInternal _CameraLens_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::CameraLens* Arena::CreateMaybeMessage<::gz::msgs::CameraLens>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE CameraLens : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.CameraLens) */ {
67  public:
68  CameraLens();
69  virtual ~CameraLens();
70 
71  CameraLens(const CameraLens& from);
72 
73  inline CameraLens& operator=(const CameraLens& from) {
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
78  CameraLens(CameraLens&& from) noexcept
79  : CameraLens() {
80  *this = ::std::move(from);
81  }
82 
83  inline CameraLens& operator=(CameraLens&& from) noexcept {
84  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85  if (this != &from) InternalSwap(&from);
86  } else {
87  CopyFrom(from);
88  }
89  return *this;
90  }
91  #endif
92  static const ::google::protobuf::Descriptor* descriptor();
93  static const CameraLens& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
96  static inline const CameraLens* internal_default_instance() {
97  return reinterpret_cast<const CameraLens*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(CameraLens* other);
104  friend void swap(CameraLens& a, CameraLens& b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline CameraLens* New() const final {
111  return CreateMaybeMessage<CameraLens>(NULL);
112  }
113 
114  CameraLens* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<CameraLens>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const CameraLens& from);
120  void MergeFrom(const CameraLens& from);
121  void Clear() final;
122  bool IsInitialized() const final;
123 
124  size_t ByteSizeLong() const final;
125  bool MergePartialFromCodedStream(
126  ::google::protobuf::io::CodedInputStream* input) final;
127  void SerializeWithCachedSizes(
128  ::google::protobuf::io::CodedOutputStream* output) const final;
129  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130  bool deterministic, ::google::protobuf::uint8* target) const final;
131  int GetCachedSize() const final { return _cached_size_.Get(); }
132 
133  private:
134  void SharedCtor();
135  void SharedDtor();
136  void SetCachedSize(int size) const final;
137  void InternalSwap(CameraLens* other);
138  private:
139  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
140  return NULL;
141  }
142  inline void* MaybeArenaPtr() const {
143  return NULL;
144  }
145  public:
146 
147  ::google::protobuf::Metadata GetMetadata() const final;
148 
149  // nested types ----------------------------------------------------
150 
151  // accessors -------------------------------------------------------
152 
153  // string type = 2;
154  void clear_type();
155  static const int kTypeFieldNumber = 2;
156  const ::std::string& type() const;
157  void set_type(const ::std::string& value);
158  #if LANG_CXX11
159  void set_type(::std::string&& value);
160  #endif
161  void set_type(const char* value);
162  void set_type(const char* value, size_t size);
163  ::std::string* mutable_type();
164  ::std::string* release_type();
165  void set_allocated_type(::std::string* type);
166 
167  // string fun = 7;
168  void clear_fun();
169  static const int kFunFieldNumber = 7;
170  const ::std::string& fun() const;
171  void set_fun(const ::std::string& value);
172  #if LANG_CXX11
173  void set_fun(::std::string&& value);
174  #endif
175  void set_fun(const char* value);
176  void set_fun(const char* value, size_t size);
177  ::std::string* mutable_fun();
178  ::std::string* release_fun();
179  void set_allocated_fun(::std::string* fun);
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  // double c1 = 3;
194  void clear_c1();
195  static const int kC1FieldNumber = 3;
196  double c1() const;
197  void set_c1(double value);
198 
199  // double c2 = 4;
200  void clear_c2();
201  static const int kC2FieldNumber = 4;
202  double c2() const;
203  void set_c2(double value);
204 
205  // double c3 = 5;
206  void clear_c3();
207  static const int kC3FieldNumber = 5;
208  double c3() const;
209  void set_c3(double value);
210 
211  // double f = 6;
212  void clear_f();
213  static const int kFFieldNumber = 6;
214  double f() const;
215  void set_f(double value);
216 
217  // double cutoff_angle = 9;
218  void clear_cutoff_angle();
219  static const int kCutoffAngleFieldNumber = 9;
220  double cutoff_angle() const;
221  void set_cutoff_angle(double value);
222 
223  // bool scale_to_hfov = 8;
224  void clear_scale_to_hfov();
225  static const int kScaleToHfovFieldNumber = 8;
226  bool scale_to_hfov() const;
227  void set_scale_to_hfov(bool value);
228 
229  // int32 env_texture_size = 11;
230  void clear_env_texture_size();
231  static const int kEnvTextureSizeFieldNumber = 11;
232  ::google::protobuf::int32 env_texture_size() const;
233  void set_env_texture_size(::google::protobuf::int32 value);
234 
235  // double hfov = 10;
236  void clear_hfov();
237  static const int kHfovFieldNumber = 10;
238  double hfov() const;
239  void set_hfov(double value);
240 
241  // @@protoc_insertion_point(class_scope:gz.msgs.CameraLens)
242  private:
243 
244  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
245  ::google::protobuf::internal::ArenaStringPtr type_;
246  ::google::protobuf::internal::ArenaStringPtr fun_;
247  ::gz::msgs::Header* header_;
248  double c1_;
249  double c2_;
250  double c3_;
251  double f_;
252  double cutoff_angle_;
253  bool scale_to_hfov_;
254  ::google::protobuf::int32 env_texture_size_;
255  double hfov_;
256  mutable ::google::protobuf::internal::CachedSize _cached_size_;
257  friend struct ::protobuf_gz_2fmsgs_2fcamera_5flens_2eproto::TableStruct;
258 };
259 // ===================================================================
260 
261 
262 // ===================================================================
263 
264 #ifdef __GNUC__
265  #pragma GCC diagnostic push
266  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
267 #endif // __GNUC__
268 // CameraLens
269 
270 // .gz.msgs.Header header = 1;
271 inline bool CameraLens::has_header() const {
272  return this != internal_default_instance() && header_ != NULL;
273 }
274 inline const ::gz::msgs::Header& CameraLens::_internal_header() const {
275  return *header_;
276 }
277 inline const ::gz::msgs::Header& CameraLens::header() const {
278  const ::gz::msgs::Header* p = header_;
279  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.header)
280  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
282 }
283 inline ::gz::msgs::Header* CameraLens::release_header() {
284  // @@protoc_insertion_point(field_release:gz.msgs.CameraLens.header)
285 
286  ::gz::msgs::Header* temp = header_;
287  header_ = NULL;
288  return temp;
289 }
290 inline ::gz::msgs::Header* CameraLens::mutable_header() {
291 
292  if (header_ == NULL) {
293  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
294  header_ = p;
295  }
296  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraLens.header)
297  return header_;
298 }
300  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
301  if (message_arena == NULL) {
302  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
303  }
304  if (header) {
305  ::google::protobuf::Arena* submessage_arena = NULL;
306  if (message_arena != submessage_arena) {
307  header = ::google::protobuf::internal::GetOwnedMessage(
308  message_arena, header, submessage_arena);
309  }
310 
311  } else {
312 
313  }
314  header_ = header;
315  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraLens.header)
316 }
317 
318 // string type = 2;
319 inline void CameraLens::clear_type() {
320  type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
321 }
322 inline const ::std::string& CameraLens::type() const {
323  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.type)
324  return type_.GetNoArena();
325 }
326 inline void CameraLens::set_type(const ::std::string& value) {
327 
328  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
329  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.type)
330 }
331 #if LANG_CXX11
332 inline void CameraLens::set_type(::std::string&& value) {
333 
334  type_.SetNoArena(
335  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
336  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.CameraLens.type)
337 }
338 #endif
339 inline void CameraLens::set_type(const char* value) {
340  GOOGLE_DCHECK(value != NULL);
341 
342  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
343  // @@protoc_insertion_point(field_set_char:gz.msgs.CameraLens.type)
344 }
345 inline void CameraLens::set_type(const char* value, size_t size) {
346 
347  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
348  ::std::string(reinterpret_cast<const char*>(value), size));
349  // @@protoc_insertion_point(field_set_pointer:gz.msgs.CameraLens.type)
350 }
351 inline ::std::string* CameraLens::mutable_type() {
352 
353  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraLens.type)
354  return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
355 }
356 inline ::std::string* CameraLens::release_type() {
357  // @@protoc_insertion_point(field_release:gz.msgs.CameraLens.type)
358 
359  return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
360 }
362  if (type != NULL) {
363 
364  } else {
365 
366  }
367  type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
368  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraLens.type)
369 }
370 
371 // double c1 = 3;
372 inline void CameraLens::clear_c1() {
373  c1_ = 0;
374 }
375 inline double CameraLens::c1() const {
376  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.c1)
377  return c1_;
378 }
379 inline void CameraLens::set_c1(double value) {
380 
381  c1_ = value;
382  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.c1)
383 }
384 
385 // double c2 = 4;
386 inline void CameraLens::clear_c2() {
387  c2_ = 0;
388 }
389 inline double CameraLens::c2() const {
390  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.c2)
391  return c2_;
392 }
393 inline void CameraLens::set_c2(double value) {
394 
395  c2_ = value;
396  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.c2)
397 }
398 
399 // double c3 = 5;
400 inline void CameraLens::clear_c3() {
401  c3_ = 0;
402 }
403 inline double CameraLens::c3() const {
404  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.c3)
405  return c3_;
406 }
407 inline void CameraLens::set_c3(double value) {
408 
409  c3_ = value;
410  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.c3)
411 }
412 
413 // double f = 6;
414 inline void CameraLens::clear_f() {
415  f_ = 0;
416 }
417 inline double CameraLens::f() const {
418  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.f)
419  return f_;
420 }
421 inline void CameraLens::set_f(double value) {
422 
423  f_ = value;
424  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.f)
425 }
426 
427 // string fun = 7;
428 inline void CameraLens::clear_fun() {
429  fun_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
430 }
431 inline const ::std::string& CameraLens::fun() const {
432  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.fun)
433  return fun_.GetNoArena();
434 }
435 inline void CameraLens::set_fun(const ::std::string& value) {
436 
437  fun_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
438  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.fun)
439 }
440 #if LANG_CXX11
441 inline void CameraLens::set_fun(::std::string&& value) {
442 
443  fun_.SetNoArena(
444  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
445  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.CameraLens.fun)
446 }
447 #endif
448 inline void CameraLens::set_fun(const char* value) {
449  GOOGLE_DCHECK(value != NULL);
450 
451  fun_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
452  // @@protoc_insertion_point(field_set_char:gz.msgs.CameraLens.fun)
453 }
454 inline void CameraLens::set_fun(const char* value, size_t size) {
455 
456  fun_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
457  ::std::string(reinterpret_cast<const char*>(value), size));
458  // @@protoc_insertion_point(field_set_pointer:gz.msgs.CameraLens.fun)
459 }
460 inline ::std::string* CameraLens::mutable_fun() {
461 
462  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraLens.fun)
463  return fun_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
464 }
465 inline ::std::string* CameraLens::release_fun() {
466  // @@protoc_insertion_point(field_release:gz.msgs.CameraLens.fun)
467 
468  return fun_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
469 }
471  if (fun != NULL) {
472 
473  } else {
474 
475  }
476  fun_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), fun);
477  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraLens.fun)
478 }
479 
480 // bool scale_to_hfov = 8;
482  scale_to_hfov_ = false;
483 }
484 inline bool CameraLens::scale_to_hfov() const {
485  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.scale_to_hfov)
486  return scale_to_hfov_;
487 }
488 inline void CameraLens::set_scale_to_hfov(bool value) {
489 
490  scale_to_hfov_ = value;
491  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.scale_to_hfov)
492 }
493 
494 // double cutoff_angle = 9;
496  cutoff_angle_ = 0;
497 }
498 inline double CameraLens::cutoff_angle() const {
499  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.cutoff_angle)
500  return cutoff_angle_;
501 }
502 inline void CameraLens::set_cutoff_angle(double value) {
503 
504  cutoff_angle_ = value;
505  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.cutoff_angle)
506 }
507 
508 // double hfov = 10;
509 inline void CameraLens::clear_hfov() {
510  hfov_ = 0;
511 }
512 inline double CameraLens::hfov() const {
513  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.hfov)
514  return hfov_;
515 }
516 inline void CameraLens::set_hfov(double value) {
517 
518  hfov_ = value;
519  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.hfov)
520 }
521 
522 // int32 env_texture_size = 11;
524  env_texture_size_ = 0;
525 }
526 inline ::google::protobuf::int32 CameraLens::env_texture_size() const {
527  // @@protoc_insertion_point(field_get:gz.msgs.CameraLens.env_texture_size)
528  return env_texture_size_;
529 }
530 inline void CameraLens::set_env_texture_size(::google::protobuf::int32 value) {
531 
532  env_texture_size_ = value;
533  // @@protoc_insertion_point(field_set:gz.msgs.CameraLens.env_texture_size)
534 }
535 
536 #ifdef __GNUC__
537  #pragma GCC diagnostic pop
538 #endif // __GNUC__
539 
540 // @@protoc_insertion_point(namespace_scope)
541 
542 } // namespace msgs
543 } // namespace gz
544 
545 // @@protoc_insertion_point(global_scope)
546 
547 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcamera_5flens_2eproto