Gazebo Msgs

API Reference

9.5.1
entity_wrench_map.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_map.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5fwrench_5fmap_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5fwrench_5fmap_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/map.h> // IWYU pragma: export
33 #include <google/protobuf/map_entry.h>
34 #include <google/protobuf/map_field_inl.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include "gz/msgs/entity_wrench.pb.h"
37 #include "gz/msgs/header.pb.h"
38 // @@protoc_insertion_point(includes)
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fentity_5fwrench_5fmap_2eproto GZ_MSGS_VISIBLE
40 
42 // Internal implementation detail -- do not use these members.
43 struct GZ_MSGS_VISIBLE TableStruct {
44  static const ::google::protobuf::internal::ParseTableField entries[];
45  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
46  static const ::google::protobuf::internal::ParseTable schema[2];
47  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
48  static const ::google::protobuf::internal::SerializationTable serialization_table[];
49  static const ::google::protobuf::uint32 offsets[];
50 };
51 void GZ_MSGS_VISIBLE AddDescriptors();
52 } // namespace protobuf_gz_2fmsgs_2fentity_5fwrench_5fmap_2eproto
53 namespace gz {
54 namespace msgs {
55 class EntityWrenchMap;
56 class EntityWrenchMapDefaultTypeInternal;
57 GZ_MSGS_VISIBLE extern EntityWrenchMapDefaultTypeInternal _EntityWrenchMap_default_instance_;
58 class EntityWrenchMap_WrenchesEntry_DoNotUse;
59 class EntityWrenchMap_WrenchesEntry_DoNotUseDefaultTypeInternal;
60 GZ_MSGS_VISIBLE extern EntityWrenchMap_WrenchesEntry_DoNotUseDefaultTypeInternal _EntityWrenchMap_WrenchesEntry_DoNotUse_default_instance_;
61 } // namespace msgs
62 } // namespace gz
63 namespace google {
64 namespace protobuf {
65 template<> GZ_MSGS_VISIBLE ::gz::msgs::EntityWrenchMap* Arena::CreateMaybeMessage<::gz::msgs::EntityWrenchMap>(Arena*);
66 template<> GZ_MSGS_VISIBLE ::gz::msgs::EntityWrenchMap_WrenchesEntry_DoNotUse* Arena::CreateMaybeMessage<::gz::msgs::EntityWrenchMap_WrenchesEntry_DoNotUse>(Arena*);
67 } // namespace protobuf
68 } // namespace google
69 namespace gz {
70 namespace msgs {
71 
72 // ===================================================================
73 
74 class EntityWrenchMap_WrenchesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<EntityWrenchMap_WrenchesEntry_DoNotUse,
75  ::std::string, ::gz::msgs::EntityWrench,
76  ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
77  ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
78  0 > {
79 public:
80  typedef ::google::protobuf::internal::MapEntry<EntityWrenchMap_WrenchesEntry_DoNotUse,
82  ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
83  ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
84  0 > SuperType;
86  EntityWrenchMap_WrenchesEntry_DoNotUse(::google::protobuf::Arena* arena);
89  void MergeFrom(const ::google::protobuf::Message& other) final;
90  ::google::protobuf::Metadata GetMetadata() const;
91 };
92 
93 // -------------------------------------------------------------------
94 
95 class GZ_MSGS_VISIBLE EntityWrenchMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.EntityWrenchMap) */ {
96  public:
98  virtual ~EntityWrenchMap();
99 
100  EntityWrenchMap(const EntityWrenchMap& from);
101 
103  CopyFrom(from);
104  return *this;
105  }
106  #if LANG_CXX11
107  EntityWrenchMap(EntityWrenchMap&& from) noexcept
108  : EntityWrenchMap() {
109  *this = ::std::move(from);
110  }
111 
112  inline EntityWrenchMap& operator=(EntityWrenchMap&& from) noexcept {
113  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
114  if (this != &from) InternalSwap(&from);
115  } else {
116  CopyFrom(from);
117  }
118  return *this;
119  }
120  #endif
121  static const ::google::protobuf::Descriptor* descriptor();
122  static const EntityWrenchMap& default_instance();
123 
124  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
126  return reinterpret_cast<const EntityWrenchMap*>(
128  }
129  static constexpr int kIndexInFileMessages =
130  1;
131 
132  void Swap(EntityWrenchMap* other);
133  friend void swap(EntityWrenchMap& a, EntityWrenchMap& b) {
134  a.Swap(&b);
135  }
136 
137  // implements Message ----------------------------------------------
138 
139  inline EntityWrenchMap* New() const final {
140  return CreateMaybeMessage<EntityWrenchMap>(NULL);
141  }
142 
143  EntityWrenchMap* New(::google::protobuf::Arena* arena) const final {
144  return CreateMaybeMessage<EntityWrenchMap>(arena);
145  }
146  void CopyFrom(const ::google::protobuf::Message& from) final;
147  void MergeFrom(const ::google::protobuf::Message& from) final;
148  void CopyFrom(const EntityWrenchMap& from);
149  void MergeFrom(const EntityWrenchMap& from);
150  void Clear() final;
151  bool IsInitialized() const final;
152 
153  size_t ByteSizeLong() const final;
154  bool MergePartialFromCodedStream(
155  ::google::protobuf::io::CodedInputStream* input) final;
156  void SerializeWithCachedSizes(
157  ::google::protobuf::io::CodedOutputStream* output) const final;
158  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
159  bool deterministic, ::google::protobuf::uint8* target) const final;
160  int GetCachedSize() const final { return _cached_size_.Get(); }
161 
162  private:
163  void SharedCtor();
164  void SharedDtor();
165  void SetCachedSize(int size) const final;
166  void InternalSwap(EntityWrenchMap* other);
167  private:
168  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
169  return NULL;
170  }
171  inline void* MaybeArenaPtr() const {
172  return NULL;
173  }
174  public:
175 
176  ::google::protobuf::Metadata GetMetadata() const final;
177 
178  // nested types ----------------------------------------------------
179 
180 
181  // accessors -------------------------------------------------------
182 
183  // map<string, .gz.msgs.EntityWrench> wrenches = 2;
184  int wrenches_size() const;
185  void clear_wrenches();
186  static const int kWrenchesFieldNumber = 2;
187  const ::google::protobuf::Map< ::std::string, ::gz::msgs::EntityWrench >&
188  wrenches() const;
189  ::google::protobuf::Map< ::std::string, ::gz::msgs::EntityWrench >*
190  mutable_wrenches();
191 
192  // .gz.msgs.Header header = 1;
193  bool has_header() const;
194  void clear_header();
195  static const int kHeaderFieldNumber = 1;
196  private:
197  const ::gz::msgs::Header& _internal_header() const;
198  public:
199  const ::gz::msgs::Header& header() const;
200  ::gz::msgs::Header* release_header();
201  ::gz::msgs::Header* mutable_header();
202  void set_allocated_header(::gz::msgs::Header* header);
203 
204  // @@protoc_insertion_point(class_scope:gz.msgs.EntityWrenchMap)
205  private:
206 
207  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
208  ::google::protobuf::internal::MapField<
210  ::std::string, ::gz::msgs::EntityWrench,
211  ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
212  ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
213  0 > wrenches_;
214  ::gz::msgs::Header* header_;
215  mutable ::google::protobuf::internal::CachedSize _cached_size_;
217 };
218 // ===================================================================
219 
220 
221 // ===================================================================
222 
223 #ifdef __GNUC__
224  #pragma GCC diagnostic push
225  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
226 #endif // __GNUC__
227 // -------------------------------------------------------------------
228 
229 // EntityWrenchMap
230 
231 // .gz.msgs.Header header = 1;
232 inline bool EntityWrenchMap::has_header() const {
233  return this != internal_default_instance() && header_ != NULL;
234 }
235 inline const ::gz::msgs::Header& EntityWrenchMap::_internal_header() const {
236  return *header_;
237 }
238 inline const ::gz::msgs::Header& EntityWrenchMap::header() const {
239  const ::gz::msgs::Header* p = header_;
240  // @@protoc_insertion_point(field_get:gz.msgs.EntityWrenchMap.header)
241  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
243 }
244 inline ::gz::msgs::Header* EntityWrenchMap::release_header() {
245  // @@protoc_insertion_point(field_release:gz.msgs.EntityWrenchMap.header)
246 
247  ::gz::msgs::Header* temp = header_;
248  header_ = NULL;
249  return temp;
250 }
251 inline ::gz::msgs::Header* EntityWrenchMap::mutable_header() {
252 
253  if (header_ == NULL) {
254  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
255  header_ = p;
256  }
257  // @@protoc_insertion_point(field_mutable:gz.msgs.EntityWrenchMap.header)
258  return header_;
259 }
261  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
262  if (message_arena == NULL) {
263  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
264  }
265  if (header) {
266  ::google::protobuf::Arena* submessage_arena = NULL;
267  if (message_arena != submessage_arena) {
268  header = ::google::protobuf::internal::GetOwnedMessage(
269  message_arena, header, submessage_arena);
270  }
271 
272  } else {
273 
274  }
275  header_ = header;
276  // @@protoc_insertion_point(field_set_allocated:gz.msgs.EntityWrenchMap.header)
277 }
278 
279 // map<string, .gz.msgs.EntityWrench> wrenches = 2;
280 inline int EntityWrenchMap::wrenches_size() const {
281  return wrenches_.size();
282 }
283 inline const ::google::protobuf::Map< ::std::string, ::gz::msgs::EntityWrench >&
285  // @@protoc_insertion_point(field_map:gz.msgs.EntityWrenchMap.wrenches)
286  return wrenches_.GetMap();
287 }
288 inline ::google::protobuf::Map< ::std::string, ::gz::msgs::EntityWrench >*
290  // @@protoc_insertion_point(field_mutable_map:gz.msgs.EntityWrenchMap.wrenches)
291  return wrenches_.MutableMap();
292 }
293 
294 #ifdef __GNUC__
295  #pragma GCC diagnostic pop
296 #endif // __GNUC__
297 // -------------------------------------------------------------------
298 
299 
300 // @@protoc_insertion_point(namespace_scope)
301 
302 } // namespace msgs
303 } // namespace gz
304 
305 // @@protoc_insertion_point(global_scope)
306 
307 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5fwrench_5fmap_2eproto