Gazebo Msgs

API Reference

9.5.1
link_data.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/link_data.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flink_5fdata_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flink_5fdata_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/vector3d.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flink_5fdata_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_2flink_5fdata_2eproto
50 namespace gz {
51 namespace msgs {
52 class LinkData;
53 class LinkDataDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern LinkDataDefaultTypeInternal _LinkData_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::LinkData* Arena::CreateMaybeMessage<::gz::msgs::LinkData>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE LinkData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.LinkData) */ {
68  public:
69  LinkData();
70  virtual ~LinkData();
71 
72  LinkData(const LinkData& from);
73 
74  inline LinkData& operator=(const LinkData& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  LinkData(LinkData&& from) noexcept
80  : LinkData() {
81  *this = ::std::move(from);
82  }
83 
84  inline LinkData& operator=(LinkData&& 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 LinkData& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const LinkData* internal_default_instance() {
98  return reinterpret_cast<const LinkData*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(LinkData* other);
105  friend void swap(LinkData& a, LinkData& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline LinkData* New() const final {
112  return CreateMaybeMessage<LinkData>(NULL);
113  }
114 
115  LinkData* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<LinkData>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const LinkData& from);
121  void MergeFrom(const LinkData& 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(LinkData* 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  // .gz.msgs.Header header = 1;
169  bool has_header() const;
170  void clear_header();
171  static const int kHeaderFieldNumber = 1;
172  private:
173  const ::gz::msgs::Header& _internal_header() const;
174  public:
175  const ::gz::msgs::Header& header() const;
176  ::gz::msgs::Header* release_header();
177  ::gz::msgs::Header* mutable_header();
178  void set_allocated_header(::gz::msgs::Header* header);
179 
180  // .gz.msgs.Vector3d linear_velocity = 3;
181  bool has_linear_velocity() const;
182  void clear_linear_velocity();
183  static const int kLinearVelocityFieldNumber = 3;
184  private:
185  const ::gz::msgs::Vector3d& _internal_linear_velocity() const;
186  public:
187  const ::gz::msgs::Vector3d& linear_velocity() const;
188  ::gz::msgs::Vector3d* release_linear_velocity();
189  ::gz::msgs::Vector3d* mutable_linear_velocity();
190  void set_allocated_linear_velocity(::gz::msgs::Vector3d* linear_velocity);
191 
192  // .gz.msgs.Vector3d angular_velocity = 4;
193  bool has_angular_velocity() const;
194  void clear_angular_velocity();
195  static const int kAngularVelocityFieldNumber = 4;
196  private:
197  const ::gz::msgs::Vector3d& _internal_angular_velocity() const;
198  public:
199  const ::gz::msgs::Vector3d& angular_velocity() const;
200  ::gz::msgs::Vector3d* release_angular_velocity();
201  ::gz::msgs::Vector3d* mutable_angular_velocity();
202  void set_allocated_angular_velocity(::gz::msgs::Vector3d* angular_velocity);
203 
204  // @@protoc_insertion_point(class_scope:gz.msgs.LinkData)
205  private:
206 
207  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
208  ::google::protobuf::internal::ArenaStringPtr name_;
209  ::gz::msgs::Header* header_;
210  ::gz::msgs::Vector3d* linear_velocity_;
211  ::gz::msgs::Vector3d* angular_velocity_;
212  mutable ::google::protobuf::internal::CachedSize _cached_size_;
213  friend struct ::protobuf_gz_2fmsgs_2flink_5fdata_2eproto::TableStruct;
214 };
215 // ===================================================================
216 
217 
218 // ===================================================================
219 
220 #ifdef __GNUC__
221  #pragma GCC diagnostic push
222  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
223 #endif // __GNUC__
224 // LinkData
225 
226 // .gz.msgs.Header header = 1;
227 inline bool LinkData::has_header() const {
228  return this != internal_default_instance() && header_ != NULL;
229 }
230 inline const ::gz::msgs::Header& LinkData::_internal_header() const {
231  return *header_;
232 }
233 inline const ::gz::msgs::Header& LinkData::header() const {
234  const ::gz::msgs::Header* p = header_;
235  // @@protoc_insertion_point(field_get:gz.msgs.LinkData.header)
236  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
238 }
239 inline ::gz::msgs::Header* LinkData::release_header() {
240  // @@protoc_insertion_point(field_release:gz.msgs.LinkData.header)
241 
242  ::gz::msgs::Header* temp = header_;
243  header_ = NULL;
244  return temp;
245 }
246 inline ::gz::msgs::Header* LinkData::mutable_header() {
247 
248  if (header_ == NULL) {
249  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
250  header_ = p;
251  }
252  // @@protoc_insertion_point(field_mutable:gz.msgs.LinkData.header)
253  return header_;
254 }
256  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
257  if (message_arena == NULL) {
258  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
259  }
260  if (header) {
261  ::google::protobuf::Arena* submessage_arena = NULL;
262  if (message_arena != submessage_arena) {
263  header = ::google::protobuf::internal::GetOwnedMessage(
264  message_arena, header, submessage_arena);
265  }
266 
267  } else {
268 
269  }
270  header_ = header;
271  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LinkData.header)
272 }
273 
274 // string name = 2;
275 inline void LinkData::clear_name() {
276  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
277 }
278 inline const ::std::string& LinkData::name() const {
279  // @@protoc_insertion_point(field_get:gz.msgs.LinkData.name)
280  return name_.GetNoArena();
281 }
282 inline void LinkData::set_name(const ::std::string& value) {
283 
284  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
285  // @@protoc_insertion_point(field_set:gz.msgs.LinkData.name)
286 }
287 #if LANG_CXX11
288 inline void LinkData::set_name(::std::string&& value) {
289 
290  name_.SetNoArena(
291  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
292  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.LinkData.name)
293 }
294 #endif
295 inline void LinkData::set_name(const char* value) {
296  GOOGLE_DCHECK(value != NULL);
297 
298  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
299  // @@protoc_insertion_point(field_set_char:gz.msgs.LinkData.name)
300 }
301 inline void LinkData::set_name(const char* value, size_t size) {
302 
303  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
304  ::std::string(reinterpret_cast<const char*>(value), size));
305  // @@protoc_insertion_point(field_set_pointer:gz.msgs.LinkData.name)
306 }
307 inline ::std::string* LinkData::mutable_name() {
308 
309  // @@protoc_insertion_point(field_mutable:gz.msgs.LinkData.name)
310  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
311 }
312 inline ::std::string* LinkData::release_name() {
313  // @@protoc_insertion_point(field_release:gz.msgs.LinkData.name)
314 
315  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
316 }
318  if (name != NULL) {
319 
320  } else {
321 
322  }
323  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
324  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LinkData.name)
325 }
326 
327 // .gz.msgs.Vector3d linear_velocity = 3;
328 inline bool LinkData::has_linear_velocity() const {
329  return this != internal_default_instance() && linear_velocity_ != NULL;
330 }
331 inline const ::gz::msgs::Vector3d& LinkData::_internal_linear_velocity() const {
332  return *linear_velocity_;
333 }
334 inline const ::gz::msgs::Vector3d& LinkData::linear_velocity() const {
335  const ::gz::msgs::Vector3d* p = linear_velocity_;
336  // @@protoc_insertion_point(field_get:gz.msgs.LinkData.linear_velocity)
337  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
339 }
340 inline ::gz::msgs::Vector3d* LinkData::release_linear_velocity() {
341  // @@protoc_insertion_point(field_release:gz.msgs.LinkData.linear_velocity)
342 
343  ::gz::msgs::Vector3d* temp = linear_velocity_;
344  linear_velocity_ = NULL;
345  return temp;
346 }
347 inline ::gz::msgs::Vector3d* LinkData::mutable_linear_velocity() {
348 
349  if (linear_velocity_ == NULL) {
350  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
351  linear_velocity_ = p;
352  }
353  // @@protoc_insertion_point(field_mutable:gz.msgs.LinkData.linear_velocity)
354  return linear_velocity_;
355 }
357  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
358  if (message_arena == NULL) {
359  delete reinterpret_cast< ::google::protobuf::MessageLite*>(linear_velocity_);
360  }
361  if (linear_velocity) {
362  ::google::protobuf::Arena* submessage_arena = NULL;
363  if (message_arena != submessage_arena) {
364  linear_velocity = ::google::protobuf::internal::GetOwnedMessage(
365  message_arena, linear_velocity, submessage_arena);
366  }
367 
368  } else {
369 
370  }
371  linear_velocity_ = linear_velocity;
372  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LinkData.linear_velocity)
373 }
374 
375 // .gz.msgs.Vector3d angular_velocity = 4;
376 inline bool LinkData::has_angular_velocity() const {
377  return this != internal_default_instance() && angular_velocity_ != NULL;
378 }
379 inline const ::gz::msgs::Vector3d& LinkData::_internal_angular_velocity() const {
380  return *angular_velocity_;
381 }
382 inline const ::gz::msgs::Vector3d& LinkData::angular_velocity() const {
383  const ::gz::msgs::Vector3d* p = angular_velocity_;
384  // @@protoc_insertion_point(field_get:gz.msgs.LinkData.angular_velocity)
385  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
387 }
388 inline ::gz::msgs::Vector3d* LinkData::release_angular_velocity() {
389  // @@protoc_insertion_point(field_release:gz.msgs.LinkData.angular_velocity)
390 
391  ::gz::msgs::Vector3d* temp = angular_velocity_;
392  angular_velocity_ = NULL;
393  return temp;
394 }
395 inline ::gz::msgs::Vector3d* LinkData::mutable_angular_velocity() {
396 
397  if (angular_velocity_ == NULL) {
398  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
399  angular_velocity_ = p;
400  }
401  // @@protoc_insertion_point(field_mutable:gz.msgs.LinkData.angular_velocity)
402  return angular_velocity_;
403 }
405  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
406  if (message_arena == NULL) {
407  delete reinterpret_cast< ::google::protobuf::MessageLite*>(angular_velocity_);
408  }
409  if (angular_velocity) {
410  ::google::protobuf::Arena* submessage_arena = NULL;
411  if (message_arena != submessage_arena) {
412  angular_velocity = ::google::protobuf::internal::GetOwnedMessage(
413  message_arena, angular_velocity, submessage_arena);
414  }
415 
416  } else {
417 
418  }
419  angular_velocity_ = angular_velocity;
420  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LinkData.angular_velocity)
421 }
422 
423 #ifdef __GNUC__
424  #pragma GCC diagnostic pop
425 #endif // __GNUC__
426 
427 // @@protoc_insertion_point(namespace_scope)
428 
429 } // namespace msgs
430 } // namespace gz
431 
432 // @@protoc_insertion_point(global_scope)
433 
434 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flink_5fdata_2eproto