Ignition Msgs

API Reference

8.2.0
link_data.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/link_data.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2flink_5fdata_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2flink_5fdata_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 LinkData;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE LinkData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.LinkData) */ {
58  public:
59  LinkData();
60  virtual ~LinkData();
61 
62  LinkData(const LinkData& from);
63 
64  inline LinkData& operator=(const LinkData& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const LinkData& default_instance();
71 
72  void Swap(LinkData* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline LinkData* New() const { return New(NULL); }
77 
78  LinkData* 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 LinkData& from);
82  void MergeFrom(const LinkData& 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(LinkData* 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 .ignition.msgs.Vector3d linear_velocity = 3;
138  bool has_linear_velocity() const;
139  void clear_linear_velocity();
140  static const int kLinearVelocityFieldNumber = 3;
141  const ::ignition::msgs::Vector3d& linear_velocity() const;
142  ::ignition::msgs::Vector3d* mutable_linear_velocity();
143  ::ignition::msgs::Vector3d* release_linear_velocity();
144  void set_allocated_linear_velocity(::ignition::msgs::Vector3d* linear_velocity);
145 
146  // optional .ignition.msgs.Vector3d angular_velocity = 4;
147  bool has_angular_velocity() const;
148  void clear_angular_velocity();
149  static const int kAngularVelocityFieldNumber = 4;
150  const ::ignition::msgs::Vector3d& angular_velocity() const;
151  ::ignition::msgs::Vector3d* mutable_angular_velocity();
152  ::ignition::msgs::Vector3d* release_angular_velocity();
153  void set_allocated_angular_velocity(::ignition::msgs::Vector3d* angular_velocity);
154 
155  // @@protoc_insertion_point(class_scope:ignition.msgs.LinkData)
156  private:
157 
158  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
159  bool _is_default_instance_;
160  ::ignition::msgs::Header* header_;
161  ::google::protobuf::internal::ArenaStringPtr name_;
162  ::ignition::msgs::Vector3d* linear_velocity_;
163  ::ignition::msgs::Vector3d* angular_velocity_;
164  mutable int _cached_size_;
165  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flink_5fdata_2eproto();
168 
169  void InitAsDefaultInstance();
170  static LinkData* default_instance_;
171 };
172 // ===================================================================
173 
174 
175 // ===================================================================
176 
177 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
178 // LinkData
179 
180 // optional .ignition.msgs.Header header = 1;
181 inline bool LinkData::has_header() const {
182  return !_is_default_instance_ && header_ != NULL;
183 }
184 inline void LinkData::clear_header() {
185  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
186  header_ = NULL;
187 }
188 inline const ::ignition::msgs::Header& LinkData::header() const {
189  // @@protoc_insertion_point(field_get:ignition.msgs.LinkData.header)
190  return header_ != NULL ? *header_ : *default_instance_->header_;
191 }
192 inline ::ignition::msgs::Header* LinkData::mutable_header() {
193 
194  if (header_ == NULL) {
195  header_ = new ::ignition::msgs::Header;
196  }
197  // @@protoc_insertion_point(field_mutable:ignition.msgs.LinkData.header)
198  return header_;
199 }
200 inline ::ignition::msgs::Header* LinkData::release_header() {
201  // @@protoc_insertion_point(field_release:ignition.msgs.LinkData.header)
202 
203  ::ignition::msgs::Header* temp = header_;
204  header_ = NULL;
205  return temp;
206 }
208  delete header_;
209  header_ = header;
210  if (header) {
211 
212  } else {
213 
214  }
215  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LinkData.header)
216 }
217 
218 // optional string name = 2;
219 inline void LinkData::clear_name() {
220  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
221 }
222 inline const ::std::string& LinkData::name() const {
223  // @@protoc_insertion_point(field_get:ignition.msgs.LinkData.name)
224  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
225 }
226 inline void LinkData::set_name(const ::std::string& value) {
227 
228  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
229  // @@protoc_insertion_point(field_set:ignition.msgs.LinkData.name)
230 }
231 inline void LinkData::set_name(const char* value) {
232 
233  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
234  // @@protoc_insertion_point(field_set_char:ignition.msgs.LinkData.name)
235 }
236 inline void LinkData::set_name(const char* value, size_t size) {
237 
238  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
239  ::std::string(reinterpret_cast<const char*>(value), size));
240  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.LinkData.name)
241 }
242 inline ::std::string* LinkData::mutable_name() {
243 
244  // @@protoc_insertion_point(field_mutable:ignition.msgs.LinkData.name)
245  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
246 }
247 inline ::std::string* LinkData::release_name() {
248  // @@protoc_insertion_point(field_release:ignition.msgs.LinkData.name)
249 
250  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
251 }
253  if (name != NULL) {
254 
255  } else {
256 
257  }
258  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
259  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LinkData.name)
260 }
261 
262 // optional .ignition.msgs.Vector3d linear_velocity = 3;
263 inline bool LinkData::has_linear_velocity() const {
264  return !_is_default_instance_ && linear_velocity_ != NULL;
265 }
267  if (GetArenaNoVirtual() == NULL && linear_velocity_ != NULL) delete linear_velocity_;
268  linear_velocity_ = NULL;
269 }
270 inline const ::ignition::msgs::Vector3d& LinkData::linear_velocity() const {
271  // @@protoc_insertion_point(field_get:ignition.msgs.LinkData.linear_velocity)
272  return linear_velocity_ != NULL ? *linear_velocity_ : *default_instance_->linear_velocity_;
273 }
274 inline ::ignition::msgs::Vector3d* LinkData::mutable_linear_velocity() {
275 
276  if (linear_velocity_ == NULL) {
277  linear_velocity_ = new ::ignition::msgs::Vector3d;
278  }
279  // @@protoc_insertion_point(field_mutable:ignition.msgs.LinkData.linear_velocity)
280  return linear_velocity_;
281 }
282 inline ::ignition::msgs::Vector3d* LinkData::release_linear_velocity() {
283  // @@protoc_insertion_point(field_release:ignition.msgs.LinkData.linear_velocity)
284 
285  ::ignition::msgs::Vector3d* temp = linear_velocity_;
286  linear_velocity_ = NULL;
287  return temp;
288 }
290  delete linear_velocity_;
291  linear_velocity_ = linear_velocity;
292  if (linear_velocity) {
293 
294  } else {
295 
296  }
297  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LinkData.linear_velocity)
298 }
299 
300 // optional .ignition.msgs.Vector3d angular_velocity = 4;
301 inline bool LinkData::has_angular_velocity() const {
302  return !_is_default_instance_ && angular_velocity_ != NULL;
303 }
305  if (GetArenaNoVirtual() == NULL && angular_velocity_ != NULL) delete angular_velocity_;
306  angular_velocity_ = NULL;
307 }
308 inline const ::ignition::msgs::Vector3d& LinkData::angular_velocity() const {
309  // @@protoc_insertion_point(field_get:ignition.msgs.LinkData.angular_velocity)
310  return angular_velocity_ != NULL ? *angular_velocity_ : *default_instance_->angular_velocity_;
311 }
312 inline ::ignition::msgs::Vector3d* LinkData::mutable_angular_velocity() {
313 
314  if (angular_velocity_ == NULL) {
315  angular_velocity_ = new ::ignition::msgs::Vector3d;
316  }
317  // @@protoc_insertion_point(field_mutable:ignition.msgs.LinkData.angular_velocity)
318  return angular_velocity_;
319 }
320 inline ::ignition::msgs::Vector3d* LinkData::release_angular_velocity() {
321  // @@protoc_insertion_point(field_release:ignition.msgs.LinkData.angular_velocity)
322 
323  ::ignition::msgs::Vector3d* temp = angular_velocity_;
324  angular_velocity_ = NULL;
325  return temp;
326 }
328  delete angular_velocity_;
329  angular_velocity_ = angular_velocity;
330  if (angular_velocity) {
331 
332  } else {
333 
334  }
335  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LinkData.angular_velocity)
336 }
337 
338 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
339 
344 // @@protoc_insertion_point(namespace_scope)
345 
346 } // namespace msgs
347 } // namespace ignition
348 
349 #ifdef _MSC_VER
350 #pragma warning(pop)
351 #endif
352 // @@protoc_insertion_point(global_scope)
353 
354 #endif // PROTOBUF_ignition_2fmsgs_2flink_5fdata_2eproto__INCLUDED
void set_allocated_header(::ignition::msgs::Header *header)
Definition: link_data.pb.h:207
::ignition::msgs::Header * mutable_header()
Definition: link_data.pb.h:192
bool has_linear_velocity() const
Definition: link_data.pb.h:263
const ::ignition::msgs::Header & header() const
Definition: link_data.pb.h:188
void clear_linear_velocity()
Definition: link_data.pb.h:266
std::unique_ptr< LinkData > LinkDataUniquePtr
Definition: link_data.pb.h:340
LinkData * New() const
Definition: link_data.pb.h:76
std::shared_ptr< const LinkData > ConstLinkDataSharedPtr
Definition: link_data.pb.h:343
const ::ignition::msgs::Vector3d & linear_velocity() const
Definition: link_data.pb.h:270
::ignition::msgs::Vector3d * mutable_linear_velocity()
Definition: link_data.pb.h:274
const ::ignition::msgs::Vector3d & angular_velocity() const
Definition: link_data.pb.h:308
Definition: header.pb.h:161
STL class.
void set_allocated_name(::std::string *name)
Definition: link_data.pb.h:252
LinkData & operator=(const LinkData &from)
Definition: link_data.pb.h:64
void protobuf_AssignDesc_ignition_2fmsgs_2flink_5fdata_2eproto()
Definition: link_data.pb.h:57
std::shared_ptr< LinkData > LinkDataSharedPtr
Definition: link_data.pb.h:342
bool has_header() const
Definition: link_data.pb.h:181
::std::string * mutable_name()
Definition: link_data.pb.h:242
void clear_angular_velocity()
Definition: link_data.pb.h:304
const ::std::string & name() const
Definition: link_data.pb.h:222
Definition: vector3d.pb.h:56
::std::string * release_name()
Definition: link_data.pb.h:247
STL class.
::ignition::msgs::Vector3d * mutable_angular_velocity()
Definition: link_data.pb.h:312
::ignition::msgs::Header * release_header()
Definition: link_data.pb.h:200
std::unique_ptr< const LinkData > ConstLinkDataUniquePtr
Definition: link_data.pb.h:341
void set_allocated_linear_velocity(::ignition::msgs::Vector3d *linear_velocity)
Definition: link_data.pb.h:289
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flink_5fdata_2eproto()
void clear_header()
Definition: link_data.pb.h:184
void clear_name()
Definition: link_data.pb.h:219
void protobuf_ShutdownFile_ignition_2fmsgs_2flink_5fdata_2eproto()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: link_data.pb.h:93
int GetCachedSize() const
Definition: link_data.pb.h:96
void set_name(const ::std::string &value)
Definition: link_data.pb.h:226
void set_allocated_angular_velocity(::ignition::msgs::Vector3d *angular_velocity)
Definition: link_data.pb.h:327
::ignition::msgs::Vector3d * release_angular_velocity()
Definition: link_data.pb.h:320
bool has_angular_velocity() const
Definition: link_data.pb.h:301
::ignition::msgs::Vector3d * release_linear_velocity()
Definition: link_data.pb.h:282