Gazebo Msgs

API Reference

9.5.0
header.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/header.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fheader_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fheader_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/time.pb.h"
34 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fheader_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[2];
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_2fheader_2eproto
49 namespace gz {
50 namespace msgs {
51 class Header;
52 class HeaderDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern HeaderDefaultTypeInternal _Header_default_instance_;
54 class Header_Map;
55 class Header_MapDefaultTypeInternal;
56 GZ_MSGS_VISIBLE extern Header_MapDefaultTypeInternal _Header_Map_default_instance_;
57 } // namespace msgs
58 } // namespace gz
59 namespace google {
60 namespace protobuf {
61 template<> GZ_MSGS_VISIBLE ::gz::msgs::Header* Arena::CreateMaybeMessage<::gz::msgs::Header>(Arena*);
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::Header_Map* Arena::CreateMaybeMessage<::gz::msgs::Header_Map>(Arena*);
63 } // namespace protobuf
64 } // namespace google
65 namespace gz {
66 namespace msgs {
67 
68 // ===================================================================
69 
70 class GZ_MSGS_VISIBLE Header_Map : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Header.Map) */ {
71  public:
72  Header_Map();
73  virtual ~Header_Map();
74 
75  Header_Map(const Header_Map& from);
76 
77  inline Header_Map& operator=(const Header_Map& from) {
78  CopyFrom(from);
79  return *this;
80  }
81  #if LANG_CXX11
82  Header_Map(Header_Map&& from) noexcept
83  : Header_Map() {
84  *this = ::std::move(from);
85  }
86 
87  inline Header_Map& operator=(Header_Map&& from) noexcept {
88  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
89  if (this != &from) InternalSwap(&from);
90  } else {
91  CopyFrom(from);
92  }
93  return *this;
94  }
95  #endif
96  static const ::google::protobuf::Descriptor* descriptor();
97  static const Header_Map& default_instance();
98 
99  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
100  static inline const Header_Map* internal_default_instance() {
101  return reinterpret_cast<const Header_Map*>(
103  }
104  static constexpr int kIndexInFileMessages =
105  0;
106 
107  void Swap(Header_Map* other);
108  friend void swap(Header_Map& a, Header_Map& b) {
109  a.Swap(&b);
110  }
111 
112  // implements Message ----------------------------------------------
113 
114  inline Header_Map* New() const final {
115  return CreateMaybeMessage<Header_Map>(NULL);
116  }
117 
118  Header_Map* New(::google::protobuf::Arena* arena) const final {
119  return CreateMaybeMessage<Header_Map>(arena);
120  }
121  void CopyFrom(const ::google::protobuf::Message& from) final;
122  void MergeFrom(const ::google::protobuf::Message& from) final;
123  void CopyFrom(const Header_Map& from);
124  void MergeFrom(const Header_Map& from);
125  void Clear() final;
126  bool IsInitialized() const final;
127 
128  size_t ByteSizeLong() const final;
129  bool MergePartialFromCodedStream(
130  ::google::protobuf::io::CodedInputStream* input) final;
131  void SerializeWithCachedSizes(
132  ::google::protobuf::io::CodedOutputStream* output) const final;
133  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
134  bool deterministic, ::google::protobuf::uint8* target) const final;
135  int GetCachedSize() const final { return _cached_size_.Get(); }
136 
137  private:
138  void SharedCtor();
139  void SharedDtor();
140  void SetCachedSize(int size) const final;
141  void InternalSwap(Header_Map* other);
142  private:
143  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
144  return NULL;
145  }
146  inline void* MaybeArenaPtr() const {
147  return NULL;
148  }
149  public:
150 
151  ::google::protobuf::Metadata GetMetadata() const final;
152 
153  // nested types ----------------------------------------------------
154 
155  // accessors -------------------------------------------------------
156 
157  // repeated string value = 2;
158  int value_size() const;
159  void clear_value();
160  static const int kValueFieldNumber = 2;
161  const ::std::string& value(int index) const;
162  ::std::string* mutable_value(int index);
163  void set_value(int index, const ::std::string& value);
164  #if LANG_CXX11
165  void set_value(int index, ::std::string&& value);
166  #endif
167  void set_value(int index, const char* value);
168  void set_value(int index, const char* value, size_t size);
169  ::std::string* add_value();
170  void add_value(const ::std::string& value);
171  #if LANG_CXX11
172  void add_value(::std::string&& value);
173  #endif
174  void add_value(const char* value);
175  void add_value(const char* value, size_t size);
176  const ::google::protobuf::RepeatedPtrField< ::std::string>& value() const;
177  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_value();
178 
179  // string key = 1;
180  void clear_key();
181  static const int kKeyFieldNumber = 1;
182  const ::std::string& key() const;
183  void set_key(const ::std::string& value);
184  #if LANG_CXX11
185  void set_key(::std::string&& value);
186  #endif
187  void set_key(const char* value);
188  void set_key(const char* value, size_t size);
189  ::std::string* mutable_key();
190  ::std::string* release_key();
191  void set_allocated_key(::std::string* key);
192 
193  // @@protoc_insertion_point(class_scope:gz.msgs.Header.Map)
194  private:
195 
196  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
197  ::google::protobuf::RepeatedPtrField< ::std::string> value_;
198  ::google::protobuf::internal::ArenaStringPtr key_;
199  mutable ::google::protobuf::internal::CachedSize _cached_size_;
200  friend struct ::protobuf_gz_2fmsgs_2fheader_2eproto::TableStruct;
201 };
202 // -------------------------------------------------------------------
203 
204 class GZ_MSGS_VISIBLE Header : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Header) */ {
205  public:
206  Header();
207  virtual ~Header();
208 
209  Header(const Header& from);
210 
211  inline Header& operator=(const Header& from) {
212  CopyFrom(from);
213  return *this;
214  }
215  #if LANG_CXX11
216  Header(Header&& from) noexcept
217  : Header() {
218  *this = ::std::move(from);
219  }
220 
221  inline Header& operator=(Header&& from) noexcept {
222  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
223  if (this != &from) InternalSwap(&from);
224  } else {
225  CopyFrom(from);
226  }
227  return *this;
228  }
229  #endif
230  static const ::google::protobuf::Descriptor* descriptor();
231  static const Header& default_instance();
232 
233  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
234  static inline const Header* internal_default_instance() {
235  return reinterpret_cast<const Header*>(
237  }
238  static constexpr int kIndexInFileMessages =
239  1;
240 
241  void Swap(Header* other);
242  friend void swap(Header& a, Header& b) {
243  a.Swap(&b);
244  }
245 
246  // implements Message ----------------------------------------------
247 
248  inline Header* New() const final {
249  return CreateMaybeMessage<Header>(NULL);
250  }
251 
252  Header* New(::google::protobuf::Arena* arena) const final {
253  return CreateMaybeMessage<Header>(arena);
254  }
255  void CopyFrom(const ::google::protobuf::Message& from) final;
256  void MergeFrom(const ::google::protobuf::Message& from) final;
257  void CopyFrom(const Header& from);
258  void MergeFrom(const Header& from);
259  void Clear() final;
260  bool IsInitialized() const final;
261 
262  size_t ByteSizeLong() const final;
263  bool MergePartialFromCodedStream(
264  ::google::protobuf::io::CodedInputStream* input) final;
265  void SerializeWithCachedSizes(
266  ::google::protobuf::io::CodedOutputStream* output) const final;
267  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
268  bool deterministic, ::google::protobuf::uint8* target) const final;
269  int GetCachedSize() const final { return _cached_size_.Get(); }
270 
271  private:
272  void SharedCtor();
273  void SharedDtor();
274  void SetCachedSize(int size) const final;
275  void InternalSwap(Header* other);
276  private:
277  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
278  return NULL;
279  }
280  inline void* MaybeArenaPtr() const {
281  return NULL;
282  }
283  public:
284 
285  ::google::protobuf::Metadata GetMetadata() const final;
286 
287  // nested types ----------------------------------------------------
288 
289  typedef Header_Map Map;
290 
291  // accessors -------------------------------------------------------
292 
293  // repeated .gz.msgs.Header.Map data = 2;
294  int data_size() const;
295  void clear_data();
296  static const int kDataFieldNumber = 2;
297  ::gz::msgs::Header_Map* mutable_data(int index);
298  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Header_Map >*
299  mutable_data();
300  const ::gz::msgs::Header_Map& data(int index) const;
301  ::gz::msgs::Header_Map* add_data();
302  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Header_Map >&
303  data() const;
304 
305  // .gz.msgs.Time stamp = 1;
306  bool has_stamp() const;
307  void clear_stamp();
308  static const int kStampFieldNumber = 1;
309  private:
310  const ::gz::msgs::Time& _internal_stamp() const;
311  public:
312  const ::gz::msgs::Time& stamp() const;
313  ::gz::msgs::Time* release_stamp();
314  ::gz::msgs::Time* mutable_stamp();
315  void set_allocated_stamp(::gz::msgs::Time* stamp);
316 
317  // @@protoc_insertion_point(class_scope:gz.msgs.Header)
318  private:
319 
320  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
321  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Header_Map > data_;
322  ::gz::msgs::Time* stamp_;
323  mutable ::google::protobuf::internal::CachedSize _cached_size_;
324  friend struct ::protobuf_gz_2fmsgs_2fheader_2eproto::TableStruct;
325 };
326 // ===================================================================
327 
328 
329 // ===================================================================
330 
331 #ifdef __GNUC__
332  #pragma GCC diagnostic push
333  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
334 #endif // __GNUC__
335 // Header_Map
336 
337 // string key = 1;
338 inline void Header_Map::clear_key() {
339  key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
340 }
341 inline const ::std::string& Header_Map::key() const {
342  // @@protoc_insertion_point(field_get:gz.msgs.Header.Map.key)
343  return key_.GetNoArena();
344 }
345 inline void Header_Map::set_key(const ::std::string& value) {
346 
347  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
348  // @@protoc_insertion_point(field_set:gz.msgs.Header.Map.key)
349 }
350 #if LANG_CXX11
351 inline void Header_Map::set_key(::std::string&& value) {
352 
353  key_.SetNoArena(
354  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
355  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Header.Map.key)
356 }
357 #endif
358 inline void Header_Map::set_key(const char* value) {
359  GOOGLE_DCHECK(value != NULL);
360 
361  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
362  // @@protoc_insertion_point(field_set_char:gz.msgs.Header.Map.key)
363 }
364 inline void Header_Map::set_key(const char* value, size_t size) {
365 
366  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
367  ::std::string(reinterpret_cast<const char*>(value), size));
368  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Header.Map.key)
369 }
370 inline ::std::string* Header_Map::mutable_key() {
371 
372  // @@protoc_insertion_point(field_mutable:gz.msgs.Header.Map.key)
373  return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
374 }
375 inline ::std::string* Header_Map::release_key() {
376  // @@protoc_insertion_point(field_release:gz.msgs.Header.Map.key)
377 
378  return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
379 }
381  if (key != NULL) {
382 
383  } else {
384 
385  }
386  key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
387  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Header.Map.key)
388 }
389 
390 // repeated string value = 2;
391 inline int Header_Map::value_size() const {
392  return value_.size();
393 }
394 inline void Header_Map::clear_value() {
395  value_.Clear();
396 }
397 inline const ::std::string& Header_Map::value(int index) const {
398  // @@protoc_insertion_point(field_get:gz.msgs.Header.Map.value)
399  return value_.Get(index);
400 }
401 inline ::std::string* Header_Map::mutable_value(int index) {
402  // @@protoc_insertion_point(field_mutable:gz.msgs.Header.Map.value)
403  return value_.Mutable(index);
404 }
405 inline void Header_Map::set_value(int index, const ::std::string& value) {
406  // @@protoc_insertion_point(field_set:gz.msgs.Header.Map.value)
407  value_.Mutable(index)->assign(value);
408 }
409 #if LANG_CXX11
410 inline void Header_Map::set_value(int index, ::std::string&& value) {
411  // @@protoc_insertion_point(field_set:gz.msgs.Header.Map.value)
412  value_.Mutable(index)->assign(std::move(value));
413 }
414 #endif
415 inline void Header_Map::set_value(int index, const char* value) {
416  GOOGLE_DCHECK(value != NULL);
417  value_.Mutable(index)->assign(value);
418  // @@protoc_insertion_point(field_set_char:gz.msgs.Header.Map.value)
419 }
420 inline void Header_Map::set_value(int index, const char* value, size_t size) {
421  value_.Mutable(index)->assign(
422  reinterpret_cast<const char*>(value), size);
423  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Header.Map.value)
424 }
425 inline ::std::string* Header_Map::add_value() {
426  // @@protoc_insertion_point(field_add_mutable:gz.msgs.Header.Map.value)
427  return value_.Add();
428 }
429 inline void Header_Map::add_value(const ::std::string& value) {
430  value_.Add()->assign(value);
431  // @@protoc_insertion_point(field_add:gz.msgs.Header.Map.value)
432 }
433 #if LANG_CXX11
434 inline void Header_Map::add_value(::std::string&& value) {
435  value_.Add(std::move(value));
436  // @@protoc_insertion_point(field_add:gz.msgs.Header.Map.value)
437 }
438 #endif
439 inline void Header_Map::add_value(const char* value) {
440  GOOGLE_DCHECK(value != NULL);
441  value_.Add()->assign(value);
442  // @@protoc_insertion_point(field_add_char:gz.msgs.Header.Map.value)
443 }
444 inline void Header_Map::add_value(const char* value, size_t size) {
445  value_.Add()->assign(reinterpret_cast<const char*>(value), size);
446  // @@protoc_insertion_point(field_add_pointer:gz.msgs.Header.Map.value)
447 }
448 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
450  // @@protoc_insertion_point(field_list:gz.msgs.Header.Map.value)
451  return value_;
452 }
453 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
455  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Header.Map.value)
456  return &value_;
457 }
458 
459 // -------------------------------------------------------------------
460 
461 // Header
462 
463 // .gz.msgs.Time stamp = 1;
464 inline bool Header::has_stamp() const {
465  return this != internal_default_instance() && stamp_ != NULL;
466 }
467 inline const ::gz::msgs::Time& Header::_internal_stamp() const {
468  return *stamp_;
469 }
470 inline const ::gz::msgs::Time& Header::stamp() const {
471  const ::gz::msgs::Time* p = stamp_;
472  // @@protoc_insertion_point(field_get:gz.msgs.Header.stamp)
473  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
475 }
476 inline ::gz::msgs::Time* Header::release_stamp() {
477  // @@protoc_insertion_point(field_release:gz.msgs.Header.stamp)
478 
479  ::gz::msgs::Time* temp = stamp_;
480  stamp_ = NULL;
481  return temp;
482 }
483 inline ::gz::msgs::Time* Header::mutable_stamp() {
484 
485  if (stamp_ == NULL) {
486  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
487  stamp_ = p;
488  }
489  // @@protoc_insertion_point(field_mutable:gz.msgs.Header.stamp)
490  return stamp_;
491 }
493  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
494  if (message_arena == NULL) {
495  delete reinterpret_cast< ::google::protobuf::MessageLite*>(stamp_);
496  }
497  if (stamp) {
498  ::google::protobuf::Arena* submessage_arena = NULL;
499  if (message_arena != submessage_arena) {
500  stamp = ::google::protobuf::internal::GetOwnedMessage(
501  message_arena, stamp, submessage_arena);
502  }
503 
504  } else {
505 
506  }
507  stamp_ = stamp;
508  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Header.stamp)
509 }
510 
511 // repeated .gz.msgs.Header.Map data = 2;
512 inline int Header::data_size() const {
513  return data_.size();
514 }
515 inline void Header::clear_data() {
516  data_.Clear();
517 }
518 inline ::gz::msgs::Header_Map* Header::mutable_data(int index) {
519  // @@protoc_insertion_point(field_mutable:gz.msgs.Header.data)
520  return data_.Mutable(index);
521 }
522 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Header_Map >*
524  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Header.data)
525  return &data_;
526 }
527 inline const ::gz::msgs::Header_Map& Header::data(int index) const {
528  // @@protoc_insertion_point(field_get:gz.msgs.Header.data)
529  return data_.Get(index);
530 }
531 inline ::gz::msgs::Header_Map* Header::add_data() {
532  // @@protoc_insertion_point(field_add:gz.msgs.Header.data)
533  return data_.Add();
534 }
535 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Header_Map >&
536 Header::data() const {
537  // @@protoc_insertion_point(field_list:gz.msgs.Header.data)
538  return data_;
539 }
540 
541 #ifdef __GNUC__
542  #pragma GCC diagnostic pop
543 #endif // __GNUC__
544 // -------------------------------------------------------------------
545 
546 
547 // @@protoc_insertion_point(namespace_scope)
548 
549 } // namespace msgs
550 } // namespace gz
551 
552 // @@protoc_insertion_point(global_scope)
553 
554 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fheader_2eproto