Ignition Msgs

API Reference

7.1.0
polylinegeom.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/polylinegeom.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fpolylinegeom_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fpolylinegeom_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>
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.
52 
53 class Polyline;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Polyline : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Polyline) */ {
58  public:
59  Polyline();
60  virtual ~Polyline();
61 
62  Polyline(const Polyline& from);
63 
64  inline Polyline& operator=(const Polyline& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Polyline& default_instance();
71 
72  void Swap(Polyline* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Polyline* New() const { return New(NULL); }
77 
78  Polyline* 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 Polyline& from);
82  void MergeFrom(const Polyline& 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(Polyline* 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 double height = 2;
127  void clear_height();
128  static const int kHeightFieldNumber = 2;
129  double height() const;
130  void set_height(double value);
131 
132  // repeated .ignition.msgs.Vector2d point = 3;
133  int point_size() const;
134  void clear_point();
135  static const int kPointFieldNumber = 3;
136  const ::ignition::msgs::Vector2d& point(int index) const;
137  ::ignition::msgs::Vector2d* mutable_point(int index);
138  ::ignition::msgs::Vector2d* add_point();
139  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector2d >*
140  mutable_point();
141  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector2d >&
142  point() const;
143 
144  // @@protoc_insertion_point(class_scope:ignition.msgs.Polyline)
145  private:
146 
147  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
148  bool _is_default_instance_;
149  ::ignition::msgs::Header* header_;
150  double height_;
151  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector2d > point_;
152  mutable int _cached_size_;
153  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpolylinegeom_2eproto();
156 
157  void InitAsDefaultInstance();
158  static Polyline* default_instance_;
159 };
160 // ===================================================================
161 
162 
163 // ===================================================================
164 
165 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
166 // Polyline
167 
168 // optional .ignition.msgs.Header header = 1;
169 inline bool Polyline::has_header() const {
170  return !_is_default_instance_ && header_ != NULL;
171 }
172 inline void Polyline::clear_header() {
173  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
174  header_ = NULL;
175 }
176 inline const ::ignition::msgs::Header& Polyline::header() const {
177  // @@protoc_insertion_point(field_get:ignition.msgs.Polyline.header)
178  return header_ != NULL ? *header_ : *default_instance_->header_;
179 }
180 inline ::ignition::msgs::Header* Polyline::mutable_header() {
181 
182  if (header_ == NULL) {
183  header_ = new ::ignition::msgs::Header;
184  }
185  // @@protoc_insertion_point(field_mutable:ignition.msgs.Polyline.header)
186  return header_;
187 }
188 inline ::ignition::msgs::Header* Polyline::release_header() {
189  // @@protoc_insertion_point(field_release:ignition.msgs.Polyline.header)
190 
191  ::ignition::msgs::Header* temp = header_;
192  header_ = NULL;
193  return temp;
194 }
196  delete header_;
197  header_ = header;
198  if (header) {
199 
200  } else {
201 
202  }
203  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Polyline.header)
204 }
205 
206 // optional double height = 2;
207 inline void Polyline::clear_height() {
208  height_ = 0;
209 }
210 inline double Polyline::height() const {
211  // @@protoc_insertion_point(field_get:ignition.msgs.Polyline.height)
212  return height_;
213 }
214 inline void Polyline::set_height(double value) {
215 
216  height_ = value;
217  // @@protoc_insertion_point(field_set:ignition.msgs.Polyline.height)
218 }
219 
220 // repeated .ignition.msgs.Vector2d point = 3;
221 inline int Polyline::point_size() const {
222  return point_.size();
223 }
224 inline void Polyline::clear_point() {
225  point_.Clear();
226 }
227 inline const ::ignition::msgs::Vector2d& Polyline::point(int index) const {
228  // @@protoc_insertion_point(field_get:ignition.msgs.Polyline.point)
229  return point_.Get(index);
230 }
231 inline ::ignition::msgs::Vector2d* Polyline::mutable_point(int index) {
232  // @@protoc_insertion_point(field_mutable:ignition.msgs.Polyline.point)
233  return point_.Mutable(index);
234 }
235 inline ::ignition::msgs::Vector2d* Polyline::add_point() {
236  // @@protoc_insertion_point(field_add:ignition.msgs.Polyline.point)
237  return point_.Add();
238 }
239 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector2d >*
241  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Polyline.point)
242  return &point_;
243 }
244 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector2d >&
246  // @@protoc_insertion_point(field_list:ignition.msgs.Polyline.point)
247  return point_;
248 }
249 
250 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
251 
256 // @@protoc_insertion_point(namespace_scope)
257 
258 } // namespace msgs
259 } // namespace ignition
260 
261 #ifdef _MSC_VER
262 #pragma warning(pop)
263 #endif
264 // @@protoc_insertion_point(global_scope)
265 
266 #endif // PROTOBUF_ignition_2fmsgs_2fpolylinegeom_2eproto__INCLUDED
const ::ignition::msgs::Header & header() const
Definition: polylinegeom.pb.h:176
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: polylinegeom.pb.h:93
std::shared_ptr< const Polyline > ConstPolylineSharedPtr
Definition: polylinegeom.pb.h:255
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector2d > & point() const
Definition: polylinegeom.pb.h:245
void clear_height()
Definition: polylinegeom.pb.h:207
std::shared_ptr< Polyline > PolylineSharedPtr
Definition: polylinegeom.pb.h:254
Polyline * New() const
Definition: polylinegeom.pb.h:76
int point_size() const
Definition: polylinegeom.pb.h:221
double height() const
Definition: polylinegeom.pb.h:210
Definition: vector2d.pb.h:56
void clear_point()
Definition: polylinegeom.pb.h:224
void set_allocated_header(::ignition::msgs::Header *header)
Definition: polylinegeom.pb.h:195
void protobuf_AssignDesc_ignition_2fmsgs_2fpolylinegeom_2eproto()
int GetCachedSize() const
Definition: polylinegeom.pb.h:96
Definition: header.pb.h:161
std::unique_ptr< const Polyline > ConstPolylineUniquePtr
Definition: polylinegeom.pb.h:253
::ignition::msgs::Header * release_header()
Definition: polylinegeom.pb.h:188
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector2d > * mutable_point()
Definition: polylinegeom.pb.h:240
::ignition::msgs::Header * mutable_header()
Definition: polylinegeom.pb.h:180
void set_height(double value)
Definition: polylinegeom.pb.h:214
::ignition::msgs::Vector2d * add_point()
Definition: polylinegeom.pb.h:235
void clear_header()
Definition: polylinegeom.pb.h:172
Polyline & operator=(const Polyline &from)
Definition: polylinegeom.pb.h:64
Definition: polylinegeom.pb.h:57
STL class.
bool has_header() const
Definition: polylinegeom.pb.h:169
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpolylinegeom_2eproto()
void protobuf_ShutdownFile_ignition_2fmsgs_2fpolylinegeom_2eproto()
std::unique_ptr< Polyline > PolylineUniquePtr
Definition: polylinegeom.pb.h:252