Ignition Msgs

API Reference

8.1.0
planegeom.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/planegeom.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fplanegeom_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fplanegeom_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_2fplanegeom_2eproto();
53 
54 class PlaneGeom;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE PlaneGeom : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.PlaneGeom) */ {
59  public:
60  PlaneGeom();
61  virtual ~PlaneGeom();
62 
63  PlaneGeom(const PlaneGeom& from);
64 
65  inline PlaneGeom& operator=(const PlaneGeom& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const PlaneGeom& default_instance();
72 
73  void Swap(PlaneGeom* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline PlaneGeom* New() const { return New(NULL); }
78 
79  PlaneGeom* 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 PlaneGeom& from);
83  void MergeFrom(const PlaneGeom& 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(PlaneGeom* 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 .ignition.msgs.Vector3d normal = 2;
128  bool has_normal() const;
129  void clear_normal();
130  static const int kNormalFieldNumber = 2;
131  const ::ignition::msgs::Vector3d& normal() const;
132  ::ignition::msgs::Vector3d* mutable_normal();
133  ::ignition::msgs::Vector3d* release_normal();
134  void set_allocated_normal(::ignition::msgs::Vector3d* normal);
135 
136  // optional .ignition.msgs.Vector2d size = 3;
137  bool has_size() const;
138  void clear_size();
139  static const int kSizeFieldNumber = 3;
140  const ::ignition::msgs::Vector2d& size() const;
141  ::ignition::msgs::Vector2d* mutable_size();
142  ::ignition::msgs::Vector2d* release_size();
143  void set_allocated_size(::ignition::msgs::Vector2d* size);
144 
145  // optional double d = 4;
146  void clear_d();
147  static const int kDFieldNumber = 4;
148  double d() const;
149  void set_d(double value);
150 
151  // @@protoc_insertion_point(class_scope:ignition.msgs.PlaneGeom)
152  private:
153 
154  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
155  bool _is_default_instance_;
156  ::ignition::msgs::Header* header_;
159  double d_;
160  mutable int _cached_size_;
161  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fplanegeom_2eproto();
164 
165  void InitAsDefaultInstance();
166  static PlaneGeom* default_instance_;
167 };
168 // ===================================================================
169 
170 
171 // ===================================================================
172 
173 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
174 // PlaneGeom
175 
176 // optional .ignition.msgs.Header header = 1;
177 inline bool PlaneGeom::has_header() const {
178  return !_is_default_instance_ && header_ != NULL;
179 }
180 inline void PlaneGeom::clear_header() {
181  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
182  header_ = NULL;
183 }
184 inline const ::ignition::msgs::Header& PlaneGeom::header() const {
185  // @@protoc_insertion_point(field_get:ignition.msgs.PlaneGeom.header)
186  return header_ != NULL ? *header_ : *default_instance_->header_;
187 }
188 inline ::ignition::msgs::Header* PlaneGeom::mutable_header() {
189 
190  if (header_ == NULL) {
191  header_ = new ::ignition::msgs::Header;
192  }
193  // @@protoc_insertion_point(field_mutable:ignition.msgs.PlaneGeom.header)
194  return header_;
195 }
196 inline ::ignition::msgs::Header* PlaneGeom::release_header() {
197  // @@protoc_insertion_point(field_release:ignition.msgs.PlaneGeom.header)
198 
199  ::ignition::msgs::Header* temp = header_;
200  header_ = NULL;
201  return temp;
202 }
204  delete header_;
205  header_ = header;
206  if (header) {
207 
208  } else {
209 
210  }
211  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.PlaneGeom.header)
212 }
213 
214 // optional .ignition.msgs.Vector3d normal = 2;
215 inline bool PlaneGeom::has_normal() const {
216  return !_is_default_instance_ && normal_ != NULL;
217 }
218 inline void PlaneGeom::clear_normal() {
219  if (GetArenaNoVirtual() == NULL && normal_ != NULL) delete normal_;
220  normal_ = NULL;
221 }
222 inline const ::ignition::msgs::Vector3d& PlaneGeom::normal() const {
223  // @@protoc_insertion_point(field_get:ignition.msgs.PlaneGeom.normal)
224  return normal_ != NULL ? *normal_ : *default_instance_->normal_;
225 }
226 inline ::ignition::msgs::Vector3d* PlaneGeom::mutable_normal() {
227 
228  if (normal_ == NULL) {
229  normal_ = new ::ignition::msgs::Vector3d;
230  }
231  // @@protoc_insertion_point(field_mutable:ignition.msgs.PlaneGeom.normal)
232  return normal_;
233 }
234 inline ::ignition::msgs::Vector3d* PlaneGeom::release_normal() {
235  // @@protoc_insertion_point(field_release:ignition.msgs.PlaneGeom.normal)
236 
237  ::ignition::msgs::Vector3d* temp = normal_;
238  normal_ = NULL;
239  return temp;
240 }
242  delete normal_;
243  normal_ = normal;
244  if (normal) {
245 
246  } else {
247 
248  }
249  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.PlaneGeom.normal)
250 }
251 
252 // optional .ignition.msgs.Vector2d size = 3;
253 inline bool PlaneGeom::has_size() const {
254  return !_is_default_instance_ && size_ != NULL;
255 }
256 inline void PlaneGeom::clear_size() {
257  if (GetArenaNoVirtual() == NULL && size_ != NULL) delete size_;
258  size_ = NULL;
259 }
260 inline const ::ignition::msgs::Vector2d& PlaneGeom::size() const {
261  // @@protoc_insertion_point(field_get:ignition.msgs.PlaneGeom.size)
262  return size_ != NULL ? *size_ : *default_instance_->size_;
263 }
264 inline ::ignition::msgs::Vector2d* PlaneGeom::mutable_size() {
265 
266  if (size_ == NULL) {
267  size_ = new ::ignition::msgs::Vector2d;
268  }
269  // @@protoc_insertion_point(field_mutable:ignition.msgs.PlaneGeom.size)
270  return size_;
271 }
272 inline ::ignition::msgs::Vector2d* PlaneGeom::release_size() {
273  // @@protoc_insertion_point(field_release:ignition.msgs.PlaneGeom.size)
274 
275  ::ignition::msgs::Vector2d* temp = size_;
276  size_ = NULL;
277  return temp;
278 }
280  delete size_;
281  size_ = size;
282  if (size) {
283 
284  } else {
285 
286  }
287  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.PlaneGeom.size)
288 }
289 
290 // optional double d = 4;
291 inline void PlaneGeom::clear_d() {
292  d_ = 0;
293 }
294 inline double PlaneGeom::d() const {
295  // @@protoc_insertion_point(field_get:ignition.msgs.PlaneGeom.d)
296  return d_;
297 }
298 inline void PlaneGeom::set_d(double value) {
299 
300  d_ = value;
301  // @@protoc_insertion_point(field_set:ignition.msgs.PlaneGeom.d)
302 }
303 
304 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
305 
310 // @@protoc_insertion_point(namespace_scope)
311 
312 } // namespace msgs
313 } // namespace ignition
314 
315 #ifdef _MSC_VER
316 #pragma warning(pop)
317 #endif
318 // @@protoc_insertion_point(global_scope)
319 
320 #endif // PROTOBUF_ignition_2fmsgs_2fplanegeom_2eproto__INCLUDED
void clear_normal()
Definition: planegeom.pb.h:218
void set_allocated_header(::ignition::msgs::Header *header)
Definition: planegeom.pb.h:203
Definition: planegeom.pb.h:58
void clear_d()
Definition: planegeom.pb.h:291
::ignition::msgs::Header * mutable_header()
Definition: planegeom.pb.h:188
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fplanegeom_2eproto()
void clear_size()
Definition: planegeom.pb.h:256
const ::ignition::msgs::Vector3d & normal() const
Definition: planegeom.pb.h:222
Definition: vector2d.pb.h:56
void set_allocated_size(::ignition::msgs::Vector2d *size)
Definition: planegeom.pb.h:279
double d() const
Definition: planegeom.pb.h:294
void protobuf_AssignDesc_ignition_2fmsgs_2fplanegeom_2eproto()
void clear_header()
Definition: planegeom.pb.h:180
Definition: header.pb.h:161
std::unique_ptr< const PlaneGeom > ConstPlaneGeomUniquePtr
Definition: planegeom.pb.h:307
bool has_header() const
Definition: planegeom.pb.h:177
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: planegeom.pb.h:94
::ignition::msgs::Vector2d * mutable_size()
Definition: planegeom.pb.h:264
void set_allocated_normal(::ignition::msgs::Vector3d *normal)
Definition: planegeom.pb.h:241
::ignition::msgs::Vector3d * release_normal()
Definition: planegeom.pb.h:234
Definition: vector3d.pb.h:56
::ignition::msgs::Vector3d * mutable_normal()
Definition: planegeom.pb.h:226
std::shared_ptr< const PlaneGeom > ConstPlaneGeomSharedPtr
Definition: planegeom.pb.h:309
STL class.
PlaneGeom * New() const
Definition: planegeom.pb.h:77
const ::ignition::msgs::Vector2d & size() const
Definition: planegeom.pb.h:260
::ignition::msgs::Header * release_header()
Definition: planegeom.pb.h:196
bool has_normal() const
Definition: planegeom.pb.h:215
::ignition::msgs::Vector2d * release_size()
Definition: planegeom.pb.h:272
void set_d(double value)
Definition: planegeom.pb.h:298
void protobuf_ShutdownFile_ignition_2fmsgs_2fplanegeom_2eproto()
PlaneGeom & operator=(const PlaneGeom &from)
Definition: planegeom.pb.h:65
bool has_size() const
Definition: planegeom.pb.h:253
std::unique_ptr< PlaneGeom > PlaneGeomUniquePtr
Definition: planegeom.pb.h:306
int GetCachedSize() const
Definition: planegeom.pb.h:97
std::shared_ptr< PlaneGeom > PlaneGeomSharedPtr
Definition: planegeom.pb.h:308
const ::ignition::msgs::Header & header() const
Definition: planegeom.pb.h:184