Gazebo Msgs

API Reference

9.5.0
entity_wrench.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/entity_wrench.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5fwrench_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5fwrench_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/entity.pb.h"
34 #include "gz/msgs/header.pb.h"
35 #include "gz/msgs/wrench.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fentity_5fwrench_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fentity_5fwrench_2eproto
51 namespace gz {
52 namespace msgs {
53 class EntityWrench;
54 class EntityWrenchDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern EntityWrenchDefaultTypeInternal _EntityWrench_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::EntityWrench* Arena::CreateMaybeMessage<::gz::msgs::EntityWrench>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE EntityWrench : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.EntityWrench) */ {
69  public:
70  EntityWrench();
71  virtual ~EntityWrench();
72 
73  EntityWrench(const EntityWrench& from);
74 
75  inline EntityWrench& operator=(const EntityWrench& from) {
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  EntityWrench(EntityWrench&& from) noexcept
81  : EntityWrench() {
82  *this = ::std::move(from);
83  }
84 
85  inline EntityWrench& operator=(EntityWrench&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93  #endif
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const EntityWrench& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const EntityWrench* internal_default_instance() {
99  return reinterpret_cast<const EntityWrench*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(EntityWrench* other);
106  friend void swap(EntityWrench& a, EntityWrench& b) {
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline EntityWrench* New() const final {
113  return CreateMaybeMessage<EntityWrench>(NULL);
114  }
115 
116  EntityWrench* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<EntityWrench>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const EntityWrench& from);
122  void MergeFrom(const EntityWrench& from);
123  void Clear() final;
124  bool IsInitialized() const final;
125 
126  size_t ByteSizeLong() const final;
127  bool MergePartialFromCodedStream(
128  ::google::protobuf::io::CodedInputStream* input) final;
129  void SerializeWithCachedSizes(
130  ::google::protobuf::io::CodedOutputStream* output) const final;
131  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132  bool deterministic, ::google::protobuf::uint8* target) const final;
133  int GetCachedSize() const final { return _cached_size_.Get(); }
134 
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const final;
139  void InternalSwap(EntityWrench* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return NULL;
143  }
144  inline void* MaybeArenaPtr() const {
145  return NULL;
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const final;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // .gz.msgs.Header header = 1;
156  bool has_header() const;
157  void clear_header();
158  static const int kHeaderFieldNumber = 1;
159  private:
160  const ::gz::msgs::Header& _internal_header() const;
161  public:
162  const ::gz::msgs::Header& header() const;
163  ::gz::msgs::Header* release_header();
164  ::gz::msgs::Header* mutable_header();
165  void set_allocated_header(::gz::msgs::Header* header);
166 
167  // .gz.msgs.Entity entity = 2;
168  bool has_entity() const;
169  void clear_entity();
170  static const int kEntityFieldNumber = 2;
171  private:
172  const ::gz::msgs::Entity& _internal_entity() const;
173  public:
174  const ::gz::msgs::Entity& entity() const;
175  ::gz::msgs::Entity* release_entity();
176  ::gz::msgs::Entity* mutable_entity();
177  void set_allocated_entity(::gz::msgs::Entity* entity);
178 
179  // .gz.msgs.Wrench wrench = 3;
180  bool has_wrench() const;
181  void clear_wrench();
182  static const int kWrenchFieldNumber = 3;
183  private:
184  const ::gz::msgs::Wrench& _internal_wrench() const;
185  public:
186  const ::gz::msgs::Wrench& wrench() const;
187  ::gz::msgs::Wrench* release_wrench();
188  ::gz::msgs::Wrench* mutable_wrench();
189  void set_allocated_wrench(::gz::msgs::Wrench* wrench);
190 
191  // @@protoc_insertion_point(class_scope:gz.msgs.EntityWrench)
192  private:
193 
194  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
195  ::gz::msgs::Header* header_;
196  ::gz::msgs::Entity* entity_;
197  ::gz::msgs::Wrench* wrench_;
198  mutable ::google::protobuf::internal::CachedSize _cached_size_;
199  friend struct ::protobuf_gz_2fmsgs_2fentity_5fwrench_2eproto::TableStruct;
200 };
201 // ===================================================================
202 
203 
204 // ===================================================================
205 
206 #ifdef __GNUC__
207  #pragma GCC diagnostic push
208  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
209 #endif // __GNUC__
210 // EntityWrench
211 
212 // .gz.msgs.Header header = 1;
213 inline bool EntityWrench::has_header() const {
214  return this != internal_default_instance() && header_ != NULL;
215 }
216 inline const ::gz::msgs::Header& EntityWrench::_internal_header() const {
217  return *header_;
218 }
219 inline const ::gz::msgs::Header& EntityWrench::header() const {
220  const ::gz::msgs::Header* p = header_;
221  // @@protoc_insertion_point(field_get:gz.msgs.EntityWrench.header)
222  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
224 }
225 inline ::gz::msgs::Header* EntityWrench::release_header() {
226  // @@protoc_insertion_point(field_release:gz.msgs.EntityWrench.header)
227 
228  ::gz::msgs::Header* temp = header_;
229  header_ = NULL;
230  return temp;
231 }
232 inline ::gz::msgs::Header* EntityWrench::mutable_header() {
233 
234  if (header_ == NULL) {
235  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
236  header_ = p;
237  }
238  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityWrench.header)
239  return header_;
240 }
242  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
243  if (message_arena == NULL) {
244  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
245  }
246  if (header) {
247  ::google::protobuf::Arena* submessage_arena = NULL;
248  if (message_arena != submessage_arena) {
249  header = ::google::protobuf::internal::GetOwnedMessage(
250  message_arena, header, submessage_arena);
251  }
252 
253  } else {
254 
255  }
256  header_ = header;
257  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityWrench.header)
258 }
259 
260 // .gz.msgs.Entity entity = 2;
261 inline bool EntityWrench::has_entity() const {
262  return this != internal_default_instance() && entity_ != NULL;
263 }
264 inline const ::gz::msgs::Entity& EntityWrench::_internal_entity() const {
265  return *entity_;
266 }
267 inline const ::gz::msgs::Entity& EntityWrench::entity() const {
268  const ::gz::msgs::Entity* p = entity_;
269  // @@protoc_insertion_point(field_get:gz.msgs.EntityWrench.entity)
270  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Entity*>(
272 }
273 inline ::gz::msgs::Entity* EntityWrench::release_entity() {
274  // @@protoc_insertion_point(field_release:gz.msgs.EntityWrench.entity)
275 
276  ::gz::msgs::Entity* temp = entity_;
277  entity_ = NULL;
278  return temp;
279 }
280 inline ::gz::msgs::Entity* EntityWrench::mutable_entity() {
281 
282  if (entity_ == NULL) {
283  auto* p = CreateMaybeMessage<::gz::msgs::Entity>(GetArenaNoVirtual());
284  entity_ = p;
285  }
286  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityWrench.entity)
287  return entity_;
288 }
290  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
291  if (message_arena == NULL) {
292  delete reinterpret_cast< ::google::protobuf::MessageLite*>(entity_);
293  }
294  if (entity) {
295  ::google::protobuf::Arena* submessage_arena = NULL;
296  if (message_arena != submessage_arena) {
297  entity = ::google::protobuf::internal::GetOwnedMessage(
298  message_arena, entity, submessage_arena);
299  }
300 
301  } else {
302 
303  }
304  entity_ = entity;
305  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityWrench.entity)
306 }
307 
308 // .gz.msgs.Wrench wrench = 3;
309 inline bool EntityWrench::has_wrench() const {
310  return this != internal_default_instance() && wrench_ != NULL;
311 }
312 inline const ::gz::msgs::Wrench& EntityWrench::_internal_wrench() const {
313  return *wrench_;
314 }
315 inline const ::gz::msgs::Wrench& EntityWrench::wrench() const {
316  const ::gz::msgs::Wrench* p = wrench_;
317  // @@protoc_insertion_point(field_get:gz.msgs.EntityWrench.wrench)
318  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Wrench*>(
320 }
321 inline ::gz::msgs::Wrench* EntityWrench::release_wrench() {
322  // @@protoc_insertion_point(field_release:gz.msgs.EntityWrench.wrench)
323 
324  ::gz::msgs::Wrench* temp = wrench_;
325  wrench_ = NULL;
326  return temp;
327 }
328 inline ::gz::msgs::Wrench* EntityWrench::mutable_wrench() {
329 
330  if (wrench_ == NULL) {
331  auto* p = CreateMaybeMessage<::gz::msgs::Wrench>(GetArenaNoVirtual());
332  wrench_ = p;
333  }
334  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityWrench.wrench)
335  return wrench_;
336 }
338  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
339  if (message_arena == NULL) {
340  delete reinterpret_cast< ::google::protobuf::MessageLite*>(wrench_);
341  }
342  if (wrench) {
343  ::google::protobuf::Arena* submessage_arena = NULL;
344  if (message_arena != submessage_arena) {
345  wrench = ::google::protobuf::internal::GetOwnedMessage(
346  message_arena, wrench, submessage_arena);
347  }
348 
349  } else {
350 
351  }
352  wrench_ = wrench;
353  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityWrench.wrench)
354 }
355 
356 #ifdef __GNUC__
357  #pragma GCC diagnostic pop
358 #endif // __GNUC__
359 
360 // @@protoc_insertion_point(namespace_scope)
361 
362 } // namespace msgs
363 } // namespace gz
364 
365 // @@protoc_insertion_point(global_scope)
366 
367 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5fwrench_2eproto