Gazebo Msgs

API Reference

9.5.0
tactile.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/tactile.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2ftactile_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2ftactile_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/header.pb.h"
34 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2ftactile_2eproto GZ_MSGS_VISIBLE
36 
38 // Internal implementation detail -- do not use these members.
39 struct GZ_MSGS_VISIBLE TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void GZ_MSGS_VISIBLE AddDescriptors();
48 } // namespace protobuf_gz_2fmsgs_2ftactile_2eproto
49 namespace gz {
50 namespace msgs {
51 class Tactile;
52 class TactileDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern TactileDefaultTypeInternal _Tactile_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::Tactile* Arena::CreateMaybeMessage<::gz::msgs::Tactile>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE Tactile : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Tactile) */ {
67  public:
68  Tactile();
69  virtual ~Tactile();
70 
71  Tactile(const Tactile& from);
72 
73  inline Tactile& operator=(const Tactile& from) {
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
78  Tactile(Tactile&& from) noexcept
79  : Tactile() {
80  *this = ::std::move(from);
81  }
82 
83  inline Tactile& operator=(Tactile&& from) noexcept {
84  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85  if (this != &from) InternalSwap(&from);
86  } else {
87  CopyFrom(from);
88  }
89  return *this;
90  }
91  #endif
92  static const ::google::protobuf::Descriptor* descriptor();
93  static const Tactile& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
96  static inline const Tactile* internal_default_instance() {
97  return reinterpret_cast<const Tactile*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(Tactile* other);
104  friend void swap(Tactile& a, Tactile& b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline Tactile* New() const final {
111  return CreateMaybeMessage<Tactile>(NULL);
112  }
113 
114  Tactile* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<Tactile>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const Tactile& from);
120  void MergeFrom(const Tactile& from);
121  void Clear() final;
122  bool IsInitialized() const final;
123 
124  size_t ByteSizeLong() const final;
125  bool MergePartialFromCodedStream(
126  ::google::protobuf::io::CodedInputStream* input) final;
127  void SerializeWithCachedSizes(
128  ::google::protobuf::io::CodedOutputStream* output) const final;
129  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130  bool deterministic, ::google::protobuf::uint8* target) const final;
131  int GetCachedSize() const final { return _cached_size_.Get(); }
132 
133  private:
134  void SharedCtor();
135  void SharedDtor();
136  void SetCachedSize(int size) const final;
137  void InternalSwap(Tactile* other);
138  private:
139  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
140  return NULL;
141  }
142  inline void* MaybeArenaPtr() const {
143  return NULL;
144  }
145  public:
146 
147  ::google::protobuf::Metadata GetMetadata() const final;
148 
149  // nested types ----------------------------------------------------
150 
151  // accessors -------------------------------------------------------
152 
153  // repeated string collision_name = 2;
154  int collision_name_size() const;
155  void clear_collision_name();
156  static const int kCollisionNameFieldNumber = 2;
157  const ::std::string& collision_name(int index) const;
158  ::std::string* mutable_collision_name(int index);
159  void set_collision_name(int index, const ::std::string& value);
160  #if LANG_CXX11
161  void set_collision_name(int index, ::std::string&& value);
162  #endif
163  void set_collision_name(int index, const char* value);
164  void set_collision_name(int index, const char* value, size_t size);
165  ::std::string* add_collision_name();
166  void add_collision_name(const ::std::string& value);
167  #if LANG_CXX11
168  void add_collision_name(::std::string&& value);
169  #endif
170  void add_collision_name(const char* value);
171  void add_collision_name(const char* value, size_t size);
172  const ::google::protobuf::RepeatedPtrField< ::std::string>& collision_name() const;
173  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_collision_name();
174 
175  // repeated uint32 collision_id = 3;
176  int collision_id_size() const;
177  void clear_collision_id();
178  static const int kCollisionIdFieldNumber = 3;
179  ::google::protobuf::uint32 collision_id(int index) const;
180  void set_collision_id(int index, ::google::protobuf::uint32 value);
181  void add_collision_id(::google::protobuf::uint32 value);
182  const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
183  collision_id() const;
184  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
185  mutable_collision_id();
186 
187  // repeated double pressure = 4;
188  int pressure_size() const;
189  void clear_pressure();
190  static const int kPressureFieldNumber = 4;
191  double pressure(int index) const;
192  void set_pressure(int index, double value);
193  void add_pressure(double value);
194  const ::google::protobuf::RepeatedField< double >&
195  pressure() const;
196  ::google::protobuf::RepeatedField< double >*
197  mutable_pressure();
198 
199  // .gz.msgs.Header header = 1;
200  bool has_header() const;
201  void clear_header();
202  static const int kHeaderFieldNumber = 1;
203  private:
204  const ::gz::msgs::Header& _internal_header() const;
205  public:
206  const ::gz::msgs::Header& header() const;
207  ::gz::msgs::Header* release_header();
208  ::gz::msgs::Header* mutable_header();
209  void set_allocated_header(::gz::msgs::Header* header);
210 
211  // @@protoc_insertion_point(class_scope:gz.msgs.Tactile)
212  private:
213 
214  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
215  ::google::protobuf::RepeatedPtrField< ::std::string> collision_name_;
216  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > collision_id_;
217  mutable int _collision_id_cached_byte_size_;
218  ::google::protobuf::RepeatedField< double > pressure_;
219  mutable int _pressure_cached_byte_size_;
220  ::gz::msgs::Header* header_;
221  mutable ::google::protobuf::internal::CachedSize _cached_size_;
222  friend struct ::protobuf_gz_2fmsgs_2ftactile_2eproto::TableStruct;
223 };
224 // ===================================================================
225 
226 
227 // ===================================================================
228 
229 #ifdef __GNUC__
230  #pragma GCC diagnostic push
231  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
232 #endif // __GNUC__
233 // Tactile
234 
235 // .gz.msgs.Header header = 1;
236 inline bool Tactile::has_header() const {
237  return this != internal_default_instance() && header_ != NULL;
238 }
239 inline const ::gz::msgs::Header& Tactile::_internal_header() const {
240  return *header_;
241 }
242 inline const ::gz::msgs::Header& Tactile::header() const {
243  const ::gz::msgs::Header* p = header_;
244  // @@protoc_insertion_point(field_get:gz.msgs.Tactile.header)
245  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
247 }
248 inline ::gz::msgs::Header* Tactile::release_header() {
249  // @@protoc_insertion_point(field_release:gz.msgs.Tactile.header)
250 
251  ::gz::msgs::Header* temp = header_;
252  header_ = NULL;
253  return temp;
254 }
255 inline ::gz::msgs::Header* Tactile::mutable_header() {
256 
257  if (header_ == NULL) {
258  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
259  header_ = p;
260  }
261  // @@protoc_insertion_point(field_mutable:gz.msgs.Tactile.header)
262  return header_;
263 }
265  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
266  if (message_arena == NULL) {
267  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
268  }
269  if (header) {
270  ::google::protobuf::Arena* submessage_arena = NULL;
271  if (message_arena != submessage_arena) {
272  header = ::google::protobuf::internal::GetOwnedMessage(
273  message_arena, header, submessage_arena);
274  }
275 
276  } else {
277 
278  }
279  header_ = header;
280  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Tactile.header)
281 }
282 
283 // repeated string collision_name = 2;
284 inline int Tactile::collision_name_size() const {
285  return collision_name_.size();
286 }
288  collision_name_.Clear();
289 }
290 inline const ::std::string& Tactile::collision_name(int index) const {
291  // @@protoc_insertion_point(field_get:gz.msgs.Tactile.collision_name)
292  return collision_name_.Get(index);
293 }
294 inline ::std::string* Tactile::mutable_collision_name(int index) {
295  // @@protoc_insertion_point(field_mutable:gz.msgs.Tactile.collision_name)
296  return collision_name_.Mutable(index);
297 }
298 inline void Tactile::set_collision_name(int index, const ::std::string& value) {
299  // @@protoc_insertion_point(field_set:gz.msgs.Tactile.collision_name)
300  collision_name_.Mutable(index)->assign(value);
301 }
302 #if LANG_CXX11
303 inline void Tactile::set_collision_name(int index, ::std::string&& value) {
304  // @@protoc_insertion_point(field_set:gz.msgs.Tactile.collision_name)
305  collision_name_.Mutable(index)->assign(std::move(value));
306 }
307 #endif
308 inline void Tactile::set_collision_name(int index, const char* value) {
309  GOOGLE_DCHECK(value != NULL);
310  collision_name_.Mutable(index)->assign(value);
311  // @@protoc_insertion_point(field_set_char:gz.msgs.Tactile.collision_name)
312 }
313 inline void Tactile::set_collision_name(int index, const char* value, size_t size) {
314  collision_name_.Mutable(index)->assign(
315  reinterpret_cast<const char*>(value), size);
316  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Tactile.collision_name)
317 }
318 inline ::std::string* Tactile::add_collision_name() {
319  // @@protoc_insertion_point(field_add_mutable:gz.msgs.Tactile.collision_name)
320  return collision_name_.Add();
321 }
322 inline void Tactile::add_collision_name(const ::std::string& value) {
323  collision_name_.Add()->assign(value);
324  // @@protoc_insertion_point(field_add:gz.msgs.Tactile.collision_name)
325 }
326 #if LANG_CXX11
327 inline void Tactile::add_collision_name(::std::string&& value) {
328  collision_name_.Add(std::move(value));
329  // @@protoc_insertion_point(field_add:gz.msgs.Tactile.collision_name)
330 }
331 #endif
332 inline void Tactile::add_collision_name(const char* value) {
333  GOOGLE_DCHECK(value != NULL);
334  collision_name_.Add()->assign(value);
335  // @@protoc_insertion_point(field_add_char:gz.msgs.Tactile.collision_name)
336 }
337 inline void Tactile::add_collision_name(const char* value, size_t size) {
338  collision_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
339  // @@protoc_insertion_point(field_add_pointer:gz.msgs.Tactile.collision_name)
340 }
341 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
343  // @@protoc_insertion_point(field_list:gz.msgs.Tactile.collision_name)
344  return collision_name_;
345 }
346 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
348  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Tactile.collision_name)
349  return &collision_name_;
350 }
351 
352 // repeated uint32 collision_id = 3;
353 inline int Tactile::collision_id_size() const {
354  return collision_id_.size();
355 }
357  collision_id_.Clear();
358 }
359 inline ::google::protobuf::uint32 Tactile::collision_id(int index) const {
360  // @@protoc_insertion_point(field_get:gz.msgs.Tactile.collision_id)
361  return collision_id_.Get(index);
362 }
363 inline void Tactile::set_collision_id(int index, ::google::protobuf::uint32 value) {
364  collision_id_.Set(index, value);
365  // @@protoc_insertion_point(field_set:gz.msgs.Tactile.collision_id)
366 }
367 inline void Tactile::add_collision_id(::google::protobuf::uint32 value) {
368  collision_id_.Add(value);
369  // @@protoc_insertion_point(field_add:gz.msgs.Tactile.collision_id)
370 }
371 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
373  // @@protoc_insertion_point(field_list:gz.msgs.Tactile.collision_id)
374  return collision_id_;
375 }
376 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
378  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Tactile.collision_id)
379  return &collision_id_;
380 }
381 
382 // repeated double pressure = 4;
383 inline int Tactile::pressure_size() const {
384  return pressure_.size();
385 }
386 inline void Tactile::clear_pressure() {
387  pressure_.Clear();
388 }
389 inline double Tactile::pressure(int index) const {
390  // @@protoc_insertion_point(field_get:gz.msgs.Tactile.pressure)
391  return pressure_.Get(index);
392 }
393 inline void Tactile::set_pressure(int index, double value) {
394  pressure_.Set(index, value);
395  // @@protoc_insertion_point(field_set:gz.msgs.Tactile.pressure)
396 }
397 inline void Tactile::add_pressure(double value) {
398  pressure_.Add(value);
399  // @@protoc_insertion_point(field_add:gz.msgs.Tactile.pressure)
400 }
401 inline const ::google::protobuf::RepeatedField< double >&
403  // @@protoc_insertion_point(field_list:gz.msgs.Tactile.pressure)
404  return pressure_;
405 }
406 inline ::google::protobuf::RepeatedField< double >*
408  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Tactile.pressure)
409  return &pressure_;
410 }
411 
412 #ifdef __GNUC__
413  #pragma GCC diagnostic pop
414 #endif // __GNUC__
415 
416 // @@protoc_insertion_point(namespace_scope)
417 
418 } // namespace msgs
419 } // namespace gz
420 
421 // @@protoc_insertion_point(global_scope)
422 
423 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2ftactile_2eproto