Ignition Msgs

API Reference

6.4.0
projector.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/projector.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fprojector_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fprojector_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>
30 #include "ignition/msgs/pose.pb.h"
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fprojector_2eproto();
52 
53 class Projector;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Projector : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Projector) */ {
58  public:
59  Projector();
60  virtual ~Projector();
61 
62  Projector(const Projector& from);
63 
64  inline Projector& operator=(const Projector& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Projector& default_instance();
71 
72  void Swap(Projector* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Projector* New() const { return New(NULL); }
77 
78  Projector* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const Projector& from);
82  void MergeFrom(const Projector& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(Projector* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional string name = 2;
127  void clear_name();
128  static const int kNameFieldNumber = 2;
129  const ::std::string& name() const;
130  void set_name(const ::std::string& value);
131  void set_name(const char* value);
132  void set_name(const char* value, size_t size);
133  ::std::string* mutable_name();
134  ::std::string* release_name();
135  void set_allocated_name(::std::string* name);
136 
137  // optional string texture = 3;
138  void clear_texture();
139  static const int kTextureFieldNumber = 3;
140  const ::std::string& texture() const;
141  void set_texture(const ::std::string& value);
142  void set_texture(const char* value);
143  void set_texture(const char* value, size_t size);
144  ::std::string* mutable_texture();
145  ::std::string* release_texture();
146  void set_allocated_texture(::std::string* texture);
147 
148  // optional .ignition.msgs.Pose pose = 4;
149  bool has_pose() const;
150  void clear_pose();
151  static const int kPoseFieldNumber = 4;
152  const ::ignition::msgs::Pose& pose() const;
153  ::ignition::msgs::Pose* mutable_pose();
154  ::ignition::msgs::Pose* release_pose();
155  void set_allocated_pose(::ignition::msgs::Pose* pose);
156 
157  // optional double fov = 5;
158  void clear_fov();
159  static const int kFovFieldNumber = 5;
160  double fov() const;
161  void set_fov(double value);
162 
163  // optional double near_clip = 6;
164  void clear_near_clip();
165  static const int kNearClipFieldNumber = 6;
166  double near_clip() const;
167  void set_near_clip(double value);
168 
169  // optional double far_clip = 7;
170  void clear_far_clip();
171  static const int kFarClipFieldNumber = 7;
172  double far_clip() const;
173  void set_far_clip(double value);
174 
175  // optional bool enabled = 8;
176  void clear_enabled();
177  static const int kEnabledFieldNumber = 8;
178  bool enabled() const;
179  void set_enabled(bool value);
180 
181  // @@protoc_insertion_point(class_scope:ignition.msgs.Projector)
182  private:
183 
184  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
185  bool _is_default_instance_;
186  ::ignition::msgs::Header* header_;
187  ::google::protobuf::internal::ArenaStringPtr name_;
188  ::google::protobuf::internal::ArenaStringPtr texture_;
189  ::ignition::msgs::Pose* pose_;
190  double fov_;
191  double near_clip_;
192  double far_clip_;
193  bool enabled_;
194  mutable int _cached_size_;
195  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fprojector_2eproto();
198 
199  void InitAsDefaultInstance();
200  static Projector* default_instance_;
201 };
202 // ===================================================================
203 
204 
205 // ===================================================================
206 
207 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
208 // Projector
209 
210 // optional .ignition.msgs.Header header = 1;
211 inline bool Projector::has_header() const {
212  return !_is_default_instance_ && header_ != NULL;
213 }
214 inline void Projector::clear_header() {
215  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
216  header_ = NULL;
217 }
218 inline const ::ignition::msgs::Header& Projector::header() const {
219  // @@protoc_insertion_point(field_get:ignition.msgs.Projector.header)
220  return header_ != NULL ? *header_ : *default_instance_->header_;
221 }
222 inline ::ignition::msgs::Header* Projector::mutable_header() {
223 
224  if (header_ == NULL) {
225  header_ = new ::ignition::msgs::Header;
226  }
227  // @@protoc_insertion_point(field_mutable:ignition.msgs.Projector.header)
228  return header_;
229 }
230 inline ::ignition::msgs::Header* Projector::release_header() {
231  // @@protoc_insertion_point(field_release:ignition.msgs.Projector.header)
232 
233  ::ignition::msgs::Header* temp = header_;
234  header_ = NULL;
235  return temp;
236 }
238  delete header_;
239  header_ = header;
240  if (header) {
241 
242  } else {
243 
244  }
245  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Projector.header)
246 }
247 
248 // optional string name = 2;
249 inline void Projector::clear_name() {
250  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
251 }
252 inline const ::std::string& Projector::name() const {
253  // @@protoc_insertion_point(field_get:ignition.msgs.Projector.name)
254  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
255 }
256 inline void Projector::set_name(const ::std::string& value) {
257 
258  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
259  // @@protoc_insertion_point(field_set:ignition.msgs.Projector.name)
260 }
261 inline void Projector::set_name(const char* value) {
262 
263  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
264  // @@protoc_insertion_point(field_set_char:ignition.msgs.Projector.name)
265 }
266 inline void Projector::set_name(const char* value, size_t size) {
267 
268  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
269  ::std::string(reinterpret_cast<const char*>(value), size));
270  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Projector.name)
271 }
272 inline ::std::string* Projector::mutable_name() {
273 
274  // @@protoc_insertion_point(field_mutable:ignition.msgs.Projector.name)
275  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
276 }
277 inline ::std::string* Projector::release_name() {
278  // @@protoc_insertion_point(field_release:ignition.msgs.Projector.name)
279 
280  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
281 }
283  if (name != NULL) {
284 
285  } else {
286 
287  }
288  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
289  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Projector.name)
290 }
291 
292 // optional string texture = 3;
294  texture_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
295 }
296 inline const ::std::string& Projector::texture() const {
297  // @@protoc_insertion_point(field_get:ignition.msgs.Projector.texture)
298  return texture_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
299 }
300 inline void Projector::set_texture(const ::std::string& value) {
301 
302  texture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
303  // @@protoc_insertion_point(field_set:ignition.msgs.Projector.texture)
304 }
305 inline void Projector::set_texture(const char* value) {
306 
307  texture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
308  // @@protoc_insertion_point(field_set_char:ignition.msgs.Projector.texture)
309 }
310 inline void Projector::set_texture(const char* value, size_t size) {
311 
312  texture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
313  ::std::string(reinterpret_cast<const char*>(value), size));
314  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Projector.texture)
315 }
316 inline ::std::string* Projector::mutable_texture() {
317 
318  // @@protoc_insertion_point(field_mutable:ignition.msgs.Projector.texture)
319  return texture_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
320 }
321 inline ::std::string* Projector::release_texture() {
322  // @@protoc_insertion_point(field_release:ignition.msgs.Projector.texture)
323 
324  return texture_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
325 }
327  if (texture != NULL) {
328 
329  } else {
330 
331  }
332  texture_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), texture);
333  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Projector.texture)
334 }
335 
336 // optional .ignition.msgs.Pose pose = 4;
337 inline bool Projector::has_pose() const {
338  return !_is_default_instance_ && pose_ != NULL;
339 }
340 inline void Projector::clear_pose() {
341  if (GetArenaNoVirtual() == NULL && pose_ != NULL) delete pose_;
342  pose_ = NULL;
343 }
344 inline const ::ignition::msgs::Pose& Projector::pose() const {
345  // @@protoc_insertion_point(field_get:ignition.msgs.Projector.pose)
346  return pose_ != NULL ? *pose_ : *default_instance_->pose_;
347 }
348 inline ::ignition::msgs::Pose* Projector::mutable_pose() {
349 
350  if (pose_ == NULL) {
351  pose_ = new ::ignition::msgs::Pose;
352  }
353  // @@protoc_insertion_point(field_mutable:ignition.msgs.Projector.pose)
354  return pose_;
355 }
356 inline ::ignition::msgs::Pose* Projector::release_pose() {
357  // @@protoc_insertion_point(field_release:ignition.msgs.Projector.pose)
358 
359  ::ignition::msgs::Pose* temp = pose_;
360  pose_ = NULL;
361  return temp;
362 }
364  delete pose_;
365  pose_ = pose;
366  if (pose) {
367 
368  } else {
369 
370  }
371  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Projector.pose)
372 }
373 
374 // optional double fov = 5;
375 inline void Projector::clear_fov() {
376  fov_ = 0;
377 }
378 inline double Projector::fov() const {
379  // @@protoc_insertion_point(field_get:ignition.msgs.Projector.fov)
380  return fov_;
381 }
382 inline void Projector::set_fov(double value) {
383 
384  fov_ = value;
385  // @@protoc_insertion_point(field_set:ignition.msgs.Projector.fov)
386 }
387 
388 // optional double near_clip = 6;
390  near_clip_ = 0;
391 }
392 inline double Projector::near_clip() const {
393  // @@protoc_insertion_point(field_get:ignition.msgs.Projector.near_clip)
394  return near_clip_;
395 }
396 inline void Projector::set_near_clip(double value) {
397 
398  near_clip_ = value;
399  // @@protoc_insertion_point(field_set:ignition.msgs.Projector.near_clip)
400 }
401 
402 // optional double far_clip = 7;
404  far_clip_ = 0;
405 }
406 inline double Projector::far_clip() const {
407  // @@protoc_insertion_point(field_get:ignition.msgs.Projector.far_clip)
408  return far_clip_;
409 }
410 inline void Projector::set_far_clip(double value) {
411 
412  far_clip_ = value;
413  // @@protoc_insertion_point(field_set:ignition.msgs.Projector.far_clip)
414 }
415 
416 // optional bool enabled = 8;
418  enabled_ = false;
419 }
420 inline bool Projector::enabled() const {
421  // @@protoc_insertion_point(field_get:ignition.msgs.Projector.enabled)
422  return enabled_;
423 }
424 inline void Projector::set_enabled(bool value) {
425 
426  enabled_ = value;
427  // @@protoc_insertion_point(field_set:ignition.msgs.Projector.enabled)
428 }
429 
430 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
431 
436 // @@protoc_insertion_point(namespace_scope)
437 
438 } // namespace msgs
439 } // namespace ignition
440 
441 #ifdef _MSC_VER
442 #pragma warning(pop)
443 #endif
444 // @@protoc_insertion_point(global_scope)
445 
446 #endif // PROTOBUF_ignition_2fmsgs_2fprojector_2eproto__INCLUDED
Definition: pose.pb.h:58
void clear_pose()
Definition: projector.pb.h:340
void set_texture(const ::std::string &value)
Definition: projector.pb.h:300
const ::ignition::msgs::Header & header() const
Definition: projector.pb.h:218
double far_clip() const
Definition: projector.pb.h:406
::ignition::msgs::Pose * mutable_pose()
Definition: projector.pb.h:348
bool has_pose() const
Definition: projector.pb.h:337
void set_near_clip(double value)
Definition: projector.pb.h:396
::std::string * mutable_name()
Definition: projector.pb.h:272
void set_far_clip(double value)
Definition: projector.pb.h:410
::ignition::msgs::Pose * release_pose()
Definition: projector.pb.h:356
void set_allocated_header(::ignition::msgs::Header *header)
Definition: projector.pb.h:237
void clear_texture()
Definition: projector.pb.h:293
std::unique_ptr< const Projector > ConstProjectorUniquePtr
Definition: projector.pb.h:433
void clear_fov()
Definition: projector.pb.h:375
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: projector.pb.h:363
void protobuf_ShutdownFile_ignition_2fmsgs_2fprojector_2eproto()
std::shared_ptr< const Projector > ConstProjectorSharedPtr
Definition: projector.pb.h:435
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: projector.pb.h:93
::ignition::msgs::Header * release_header()
Definition: projector.pb.h:230
void clear_near_clip()
Definition: projector.pb.h:389
Definition: header.pb.h:161
STL class.
const ::std::string & name() const
Definition: projector.pb.h:252
const ::ignition::msgs::Pose & pose() const
Definition: projector.pb.h:344
void clear_header()
Definition: projector.pb.h:214
::ignition::msgs::Header * mutable_header()
Definition: projector.pb.h:222
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fprojector_2eproto()
bool enabled() const
Definition: projector.pb.h:420
double near_clip() const
Definition: projector.pb.h:392
int GetCachedSize() const
Definition: projector.pb.h:96
::std::string * release_texture()
Definition: projector.pb.h:321
void set_allocated_texture(::std::string *texture)
Definition: projector.pb.h:326
::std::string * mutable_texture()
Definition: projector.pb.h:316
void clear_far_clip()
Definition: projector.pb.h:403
void clear_name()
Definition: projector.pb.h:249
void protobuf_AssignDesc_ignition_2fmsgs_2fprojector_2eproto()
STL class.
std::shared_ptr< Projector > ProjectorSharedPtr
Definition: projector.pb.h:434
void set_allocated_name(::std::string *name)
Definition: projector.pb.h:282
void set_fov(double value)
Definition: projector.pb.h:382
void set_enabled(bool value)
Definition: projector.pb.h:424
Definition: projector.pb.h:57
Projector & operator=(const Projector &from)
Definition: projector.pb.h:64
Projector * New() const
Definition: projector.pb.h:76
bool has_header() const
Definition: projector.pb.h:211
std::unique_ptr< Projector > ProjectorUniquePtr
Definition: projector.pb.h:432
double fov() const
Definition: projector.pb.h:378
::std::string * release_name()
Definition: projector.pb.h:277
void set_name(const ::std::string &value)
Definition: projector.pb.h:256
const ::std::string & texture() const
Definition: projector.pb.h:296
void clear_enabled()
Definition: projector.pb.h:417