Gazebo Msgs

API Reference

9.5.1
projector.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/projector.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fprojector_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fprojector_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/pose.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fprojector_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fprojector_2eproto
50 namespace gz {
51 namespace msgs {
52 class Projector;
53 class ProjectorDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern ProjectorDefaultTypeInternal _Projector_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Projector* Arena::CreateMaybeMessage<::gz::msgs::Projector>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Projector : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Projector) */ {
68  public:
69  Projector();
70  virtual ~Projector();
71 
72  Projector(const Projector& from);
73 
74  inline Projector& operator=(const Projector& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Projector(Projector&& from) noexcept
80  : Projector() {
81  *this = ::std::move(from);
82  }
83 
84  inline Projector& operator=(Projector&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Projector& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Projector* internal_default_instance() {
98  return reinterpret_cast<const Projector*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Projector* other);
105  friend void swap(Projector& a, Projector& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Projector* New() const final {
112  return CreateMaybeMessage<Projector>(NULL);
113  }
114 
115  Projector* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Projector>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const Projector& from);
121  void MergeFrom(const Projector& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(Projector* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // string name = 2;
155  void clear_name();
156  static const int kNameFieldNumber = 2;
157  const ::std::string& name() const;
158  void set_name(const ::std::string& value);
159  #if LANG_CXX11
160  void set_name(::std::string&& value);
161  #endif
162  void set_name(const char* value);
163  void set_name(const char* value, size_t size);
164  ::std::string* mutable_name();
165  ::std::string* release_name();
166  void set_allocated_name(::std::string* name);
167 
168  // string texture = 3;
169  void clear_texture();
170  static const int kTextureFieldNumber = 3;
171  const ::std::string& texture() const;
172  void set_texture(const ::std::string& value);
173  #if LANG_CXX11
174  void set_texture(::std::string&& value);
175  #endif
176  void set_texture(const char* value);
177  void set_texture(const char* value, size_t size);
178  ::std::string* mutable_texture();
179  ::std::string* release_texture();
180  void set_allocated_texture(::std::string* texture);
181 
182  // .gz.msgs.Header header = 1;
183  bool has_header() const;
184  void clear_header();
185  static const int kHeaderFieldNumber = 1;
186  private:
187  const ::gz::msgs::Header& _internal_header() const;
188  public:
189  const ::gz::msgs::Header& header() const;
190  ::gz::msgs::Header* release_header();
191  ::gz::msgs::Header* mutable_header();
192  void set_allocated_header(::gz::msgs::Header* header);
193 
194  // .gz.msgs.Pose pose = 4;
195  bool has_pose() const;
196  void clear_pose();
197  static const int kPoseFieldNumber = 4;
198  private:
199  const ::gz::msgs::Pose& _internal_pose() const;
200  public:
201  const ::gz::msgs::Pose& pose() const;
202  ::gz::msgs::Pose* release_pose();
203  ::gz::msgs::Pose* mutable_pose();
204  void set_allocated_pose(::gz::msgs::Pose* pose);
205 
206  // double fov = 5;
207  void clear_fov();
208  static const int kFovFieldNumber = 5;
209  double fov() const;
210  void set_fov(double value);
211 
212  // double near_clip = 6;
213  void clear_near_clip();
214  static const int kNearClipFieldNumber = 6;
215  double near_clip() const;
216  void set_near_clip(double value);
217 
218  // double far_clip = 7;
219  void clear_far_clip();
220  static const int kFarClipFieldNumber = 7;
221  double far_clip() const;
222  void set_far_clip(double value);
223 
224  // bool enabled = 8;
225  void clear_enabled();
226  static const int kEnabledFieldNumber = 8;
227  bool enabled() const;
228  void set_enabled(bool value);
229 
230  // @@protoc_insertion_point(class_scope:gz.msgs.Projector)
231  private:
232 
233  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
234  ::google::protobuf::internal::ArenaStringPtr name_;
235  ::google::protobuf::internal::ArenaStringPtr texture_;
236  ::gz::msgs::Header* header_;
237  ::gz::msgs::Pose* pose_;
238  double fov_;
239  double near_clip_;
240  double far_clip_;
241  bool enabled_;
242  mutable ::google::protobuf::internal::CachedSize _cached_size_;
243  friend struct ::protobuf_gz_2fmsgs_2fprojector_2eproto::TableStruct;
244 };
245 // ===================================================================
246 
247 
248 // ===================================================================
249 
250 #ifdef __GNUC__
251  #pragma GCC diagnostic push
252  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
253 #endif // __GNUC__
254 // Projector
255 
256 // .gz.msgs.Header header = 1;
257 inline bool Projector::has_header() const {
258  return this != internal_default_instance() && header_ != NULL;
259 }
260 inline const ::gz::msgs::Header& Projector::_internal_header() const {
261  return *header_;
262 }
263 inline const ::gz::msgs::Header& Projector::header() const {
264  const ::gz::msgs::Header* p = header_;
265  // @@protoc_insertion_point(field_get:gz.msgs.Projector.header)
266  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
268 }
269 inline ::gz::msgs::Header* Projector::release_header() {
270  // @@protoc_insertion_point(field_release:gz.msgs.Projector.header)
271 
272  ::gz::msgs::Header* temp = header_;
273  header_ = NULL;
274  return temp;
275 }
276 inline ::gz::msgs::Header* Projector::mutable_header() {
277 
278  if (header_ == NULL) {
279  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
280  header_ = p;
281  }
282  // @@protoc_insertion_point(field_mutable:gz.msgs.Projector.header)
283  return header_;
284 }
286  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
287  if (message_arena == NULL) {
288  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
289  }
290  if (header) {
291  ::google::protobuf::Arena* submessage_arena = NULL;
292  if (message_arena != submessage_arena) {
293  header = ::google::protobuf::internal::GetOwnedMessage(
294  message_arena, header, submessage_arena);
295  }
296 
297  } else {
298 
299  }
300  header_ = header;
301  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Projector.header)
302 }
303 
304 // string name = 2;
305 inline void Projector::clear_name() {
306  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
307 }
308 inline const ::std::string& Projector::name() const {
309  // @@protoc_insertion_point(field_get:gz.msgs.Projector.name)
310  return name_.GetNoArena();
311 }
312 inline void Projector::set_name(const ::std::string& value) {
313 
314  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
315  // @@protoc_insertion_point(field_set:gz.msgs.Projector.name)
316 }
317 #if LANG_CXX11
318 inline void Projector::set_name(::std::string&& value) {
319 
320  name_.SetNoArena(
321  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
322  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Projector.name)
323 }
324 #endif
325 inline void Projector::set_name(const char* value) {
326  GOOGLE_DCHECK(value != NULL);
327 
328  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
329  // @@protoc_insertion_point(field_set_char:gz.msgs.Projector.name)
330 }
331 inline void Projector::set_name(const char* value, size_t size) {
332 
333  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
334  ::std::string(reinterpret_cast<const char*>(value), size));
335  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Projector.name)
336 }
337 inline ::std::string* Projector::mutable_name() {
338 
339  // @@protoc_insertion_point(field_mutable:gz.msgs.Projector.name)
340  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
341 }
342 inline ::std::string* Projector::release_name() {
343  // @@protoc_insertion_point(field_release:gz.msgs.Projector.name)
344 
345  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
346 }
348  if (name != NULL) {
349 
350  } else {
351 
352  }
353  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
354  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Projector.name)
355 }
356 
357 // string texture = 3;
359  texture_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
360 }
361 inline const ::std::string& Projector::texture() const {
362  // @@protoc_insertion_point(field_get:gz.msgs.Projector.texture)
363  return texture_.GetNoArena();
364 }
365 inline void Projector::set_texture(const ::std::string& value) {
366 
367  texture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
368  // @@protoc_insertion_point(field_set:gz.msgs.Projector.texture)
369 }
370 #if LANG_CXX11
371 inline void Projector::set_texture(::std::string&& value) {
372 
373  texture_.SetNoArena(
374  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
375  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Projector.texture)
376 }
377 #endif
378 inline void Projector::set_texture(const char* value) {
379  GOOGLE_DCHECK(value != NULL);
380 
381  texture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
382  // @@protoc_insertion_point(field_set_char:gz.msgs.Projector.texture)
383 }
384 inline void Projector::set_texture(const char* value, size_t size) {
385 
386  texture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
387  ::std::string(reinterpret_cast<const char*>(value), size));
388  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Projector.texture)
389 }
390 inline ::std::string* Projector::mutable_texture() {
391 
392  // @@protoc_insertion_point(field_mutable:gz.msgs.Projector.texture)
393  return texture_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
394 }
395 inline ::std::string* Projector::release_texture() {
396  // @@protoc_insertion_point(field_release:gz.msgs.Projector.texture)
397 
398  return texture_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
399 }
401  if (texture != NULL) {
402 
403  } else {
404 
405  }
406  texture_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), texture);
407  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Projector.texture)
408 }
409 
410 // .gz.msgs.Pose pose = 4;
411 inline bool Projector::has_pose() const {
412  return this != internal_default_instance() && pose_ != NULL;
413 }
414 inline const ::gz::msgs::Pose& Projector::_internal_pose() const {
415  return *pose_;
416 }
417 inline const ::gz::msgs::Pose& Projector::pose() const {
418  const ::gz::msgs::Pose* p = pose_;
419  // @@protoc_insertion_point(field_get:gz.msgs.Projector.pose)
420  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Pose*>(
422 }
423 inline ::gz::msgs::Pose* Projector::release_pose() {
424  // @@protoc_insertion_point(field_release:gz.msgs.Projector.pose)
425 
426  ::gz::msgs::Pose* temp = pose_;
427  pose_ = NULL;
428  return temp;
429 }
430 inline ::gz::msgs::Pose* Projector::mutable_pose() {
431 
432  if (pose_ == NULL) {
433  auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
434  pose_ = p;
435  }
436  // @@protoc_insertion_point(field_mutable:gz.msgs.Projector.pose)
437  return pose_;
438 }
440  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
441  if (message_arena == NULL) {
442  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
443  }
444  if (pose) {
445  ::google::protobuf::Arena* submessage_arena = NULL;
446  if (message_arena != submessage_arena) {
447  pose = ::google::protobuf::internal::GetOwnedMessage(
448  message_arena, pose, submessage_arena);
449  }
450 
451  } else {
452 
453  }
454  pose_ = pose;
455  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Projector.pose)
456 }
457 
458 // double fov = 5;
459 inline void Projector::clear_fov() {
460  fov_ = 0;
461 }
462 inline double Projector::fov() const {
463  // @@protoc_insertion_point(field_get:gz.msgs.Projector.fov)
464  return fov_;
465 }
466 inline void Projector::set_fov(double value) {
467 
468  fov_ = value;
469  // @@protoc_insertion_point(field_set:gz.msgs.Projector.fov)
470 }
471 
472 // double near_clip = 6;
474  near_clip_ = 0;
475 }
476 inline double Projector::near_clip() const {
477  // @@protoc_insertion_point(field_get:gz.msgs.Projector.near_clip)
478  return near_clip_;
479 }
480 inline void Projector::set_near_clip(double value) {
481 
482  near_clip_ = value;
483  // @@protoc_insertion_point(field_set:gz.msgs.Projector.near_clip)
484 }
485 
486 // double far_clip = 7;
488  far_clip_ = 0;
489 }
490 inline double Projector::far_clip() const {
491  // @@protoc_insertion_point(field_get:gz.msgs.Projector.far_clip)
492  return far_clip_;
493 }
494 inline void Projector::set_far_clip(double value) {
495 
496  far_clip_ = value;
497  // @@protoc_insertion_point(field_set:gz.msgs.Projector.far_clip)
498 }
499 
500 // bool enabled = 8;
502  enabled_ = false;
503 }
504 inline bool Projector::enabled() const {
505  // @@protoc_insertion_point(field_get:gz.msgs.Projector.enabled)
506  return enabled_;
507 }
508 inline void Projector::set_enabled(bool value) {
509 
510  enabled_ = value;
511  // @@protoc_insertion_point(field_set:gz.msgs.Projector.enabled)
512 }
513 
514 #ifdef __GNUC__
515  #pragma GCC diagnostic pop
516 #endif // __GNUC__
517 
518 // @@protoc_insertion_point(namespace_scope)
519 
520 } // namespace msgs
521 } // namespace gz
522 
523 // @@protoc_insertion_point(global_scope)
524 
525 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fprojector_2eproto