Ignition Msgs

API Reference

5.8.1
clock.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/clock.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fclock_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fclock_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
34 #include "ignition/msgs/time.pb.h"
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fclock_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
51 namespace internal {
52 class AnyMetadata;
53 } // namespace internal
54 PROTOBUF_NAMESPACE_CLOSE
55 
56 // Internal implementation detail -- do not use these members.
57 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fclock_2eproto {
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
63  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
64  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66  static const uint32_t offsets[];
67 };
68 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fclock_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class Clock;
72 struct ClockDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern ClockDefaultTypeInternal _Clock_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Clock* Arena::CreateMaybeMessage<::ignition::msgs::Clock>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace ignition {
80 namespace msgs {
81 
82 // ===================================================================
83 
84 class IGNITION_MSGS_VISIBLE Clock final :
85  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Clock) */ {
86  public:
87  inline Clock() : Clock(nullptr) {}
88  ~Clock() override;
89  explicit constexpr Clock(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
90 
91  Clock(const Clock& from);
92  Clock(Clock&& from) noexcept
93  : Clock() {
94  *this = ::std::move(from);
95  }
96 
97  inline Clock& operator=(const Clock& from) {
98  CopyFrom(from);
99  return *this;
100  }
101  inline Clock& operator=(Clock&& from) noexcept {
102  if (this == &from) return *this;
103  if (GetOwningArena() == from.GetOwningArena()
104  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
105  && GetOwningArena() != nullptr
106  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
107  ) {
108  InternalSwap(&from);
109  } else {
110  CopyFrom(from);
111  }
112  return *this;
113  }
114 
115  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
116  return GetDescriptor();
117  }
118  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
119  return default_instance().GetMetadata().descriptor;
120  }
121  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
122  return default_instance().GetMetadata().reflection;
123  }
124  static const Clock& default_instance() {
125  return *internal_default_instance();
126  }
127  static inline const Clock* internal_default_instance() {
128  return reinterpret_cast<const Clock*>(
130  }
131  static constexpr int kIndexInFileMessages =
132  0;
133 
134  friend void swap(Clock& a, Clock& b) {
135  a.Swap(&b);
136  }
137  inline void Swap(Clock* other) {
138  if (other == this) return;
139  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140  if (GetOwningArena() != nullptr &&
141  GetOwningArena() == other->GetOwningArena()) {
142  #else // PROTOBUF_FORCE_COPY_IN_SWAP
143  if (GetOwningArena() == other->GetOwningArena()) {
144  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
145  InternalSwap(other);
146  } else {
147  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148  }
149  }
150  void UnsafeArenaSwap(Clock* other) {
151  if (other == this) return;
152  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
153  InternalSwap(other);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  Clock* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
159  return CreateMaybeMessage<Clock>(arena);
160  }
161  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162  void CopyFrom(const Clock& from);
163  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164  void MergeFrom(const Clock& from);
165  private:
166  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
167  public:
168  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
169  bool IsInitialized() const final;
170 
171  size_t ByteSizeLong() const final;
172  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
173  uint8_t* _InternalSerialize(
174  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175  int GetCachedSize() const final { return _cached_size_.Get(); }
176 
177  private:
178  void SharedCtor();
179  void SharedDtor();
180  void SetCachedSize(int size) const final;
181  void InternalSwap(Clock* other);
182 
183  private:
184  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186  return "ignition.msgs.Clock";
187  }
188  protected:
189  explicit Clock(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190  bool is_message_owned = false);
191  private:
192  static void ArenaDtor(void* object);
193  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
194  public:
195 
196  static const ClassData _class_data_;
197  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
198 
199  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
200 
201  // nested types ----------------------------------------------------
202 
203  // accessors -------------------------------------------------------
204 
205  enum : int {
206  kHeaderFieldNumber = 1,
207  kSystemFieldNumber = 2,
208  kRealFieldNumber = 3,
209  kSimFieldNumber = 4,
210  };
211  // .ignition.msgs.Header header = 1;
212  bool has_header() const;
213  private:
214  bool _internal_has_header() const;
215  public:
216  void clear_header();
217  const ::ignition::msgs::Header& header() const;
218  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
219  ::ignition::msgs::Header* mutable_header();
220  void set_allocated_header(::ignition::msgs::Header* header);
221  private:
222  const ::ignition::msgs::Header& _internal_header() const;
223  ::ignition::msgs::Header* _internal_mutable_header();
224  public:
225  void unsafe_arena_set_allocated_header(
226  ::ignition::msgs::Header* header);
227  ::ignition::msgs::Header* unsafe_arena_release_header();
228 
229  // .ignition.msgs.Time system = 2;
230  bool has_system() const;
231  private:
232  bool _internal_has_system() const;
233  public:
234  void clear_system();
235  const ::ignition::msgs::Time& system() const;
236  PROTOBUF_NODISCARD ::ignition::msgs::Time* release_system();
237  ::ignition::msgs::Time* mutable_system();
238  void set_allocated_system(::ignition::msgs::Time* system);
239  private:
240  const ::ignition::msgs::Time& _internal_system() const;
241  ::ignition::msgs::Time* _internal_mutable_system();
242  public:
243  void unsafe_arena_set_allocated_system(
244  ::ignition::msgs::Time* system);
245  ::ignition::msgs::Time* unsafe_arena_release_system();
246 
247  // .ignition.msgs.Time real = 3;
248  bool has_real() const;
249  private:
250  bool _internal_has_real() const;
251  public:
252  void clear_real();
253  const ::ignition::msgs::Time& real() const;
254  PROTOBUF_NODISCARD ::ignition::msgs::Time* release_real();
255  ::ignition::msgs::Time* mutable_real();
256  void set_allocated_real(::ignition::msgs::Time* real);
257  private:
258  const ::ignition::msgs::Time& _internal_real() const;
259  ::ignition::msgs::Time* _internal_mutable_real();
260  public:
261  void unsafe_arena_set_allocated_real(
262  ::ignition::msgs::Time* real);
263  ::ignition::msgs::Time* unsafe_arena_release_real();
264 
265  // .ignition.msgs.Time sim = 4;
266  bool has_sim() const;
267  private:
268  bool _internal_has_sim() const;
269  public:
270  void clear_sim();
271  const ::ignition::msgs::Time& sim() const;
272  PROTOBUF_NODISCARD ::ignition::msgs::Time* release_sim();
273  ::ignition::msgs::Time* mutable_sim();
274  void set_allocated_sim(::ignition::msgs::Time* sim);
275  private:
276  const ::ignition::msgs::Time& _internal_sim() const;
277  ::ignition::msgs::Time* _internal_mutable_sim();
278  public:
279  void unsafe_arena_set_allocated_sim(
280  ::ignition::msgs::Time* sim);
281  ::ignition::msgs::Time* unsafe_arena_release_sim();
282 
283  // @@protoc_insertion_point(class_scope:ignition.msgs.Clock)
284  private:
285  class _Internal;
286 
287  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
288  typedef void InternalArenaConstructable_;
289  typedef void DestructorSkippable_;
290  ::ignition::msgs::Header* header_;
291  ::ignition::msgs::Time* system_;
292  ::ignition::msgs::Time* real_;
294  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
295  friend struct ::TableStruct_ignition_2fmsgs_2fclock_2eproto;
296 };
297 // ===================================================================
298 
299 
300 // ===================================================================
301 
302 #ifdef __GNUC__
303  #pragma GCC diagnostic push
304  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
305 #endif // __GNUC__
306 // Clock
307 
308 // .ignition.msgs.Header header = 1;
309 inline bool Clock::_internal_has_header() const {
310  return this != internal_default_instance() && header_ != nullptr;
311 }
312 inline bool Clock::has_header() const {
313  return _internal_has_header();
314 }
315 inline const ::ignition::msgs::Header& Clock::_internal_header() const {
316  const ::ignition::msgs::Header* p = header_;
317  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
319 }
320 inline const ::ignition::msgs::Header& Clock::header() const {
321  // @@protoc_insertion_point(field_get:ignition.msgs.Clock.header)
322  return _internal_header();
323 }
325  ::ignition::msgs::Header* header) {
326  if (GetArenaForAllocation() == nullptr) {
327  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
328  }
329  header_ = header;
330  if (header) {
331 
332  } else {
333 
334  }
335  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Clock.header)
336 }
337 inline ::ignition::msgs::Header* Clock::release_header() {
338 
339  ::ignition::msgs::Header* temp = header_;
340  header_ = nullptr;
341 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
342  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
343  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
344  if (GetArenaForAllocation() == nullptr) { delete old; }
345 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
346  if (GetArenaForAllocation() != nullptr) {
347  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
348  }
349 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
350  return temp;
351 }
352 inline ::ignition::msgs::Header* Clock::unsafe_arena_release_header() {
353  // @@protoc_insertion_point(field_release:ignition.msgs.Clock.header)
354 
355  ::ignition::msgs::Header* temp = header_;
356  header_ = nullptr;
357  return temp;
358 }
359 inline ::ignition::msgs::Header* Clock::_internal_mutable_header() {
360 
361  if (header_ == nullptr) {
362  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
363  header_ = p;
364  }
365  return header_;
366 }
367 inline ::ignition::msgs::Header* Clock::mutable_header() {
368  ::ignition::msgs::Header* _msg = _internal_mutable_header();
369  // @@protoc_insertion_point(field_mutable:ignition.msgs.Clock.header)
370  return _msg;
371 }
373  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
374  if (message_arena == nullptr) {
375  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
376  }
377  if (header) {
378  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
379  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
380  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
381  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
382  if (message_arena != submessage_arena) {
383  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
384  message_arena, header, submessage_arena);
385  }
386 
387  } else {
388 
389  }
390  header_ = header;
391  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Clock.header)
392 }
393 
394 // .ignition.msgs.Time system = 2;
395 inline bool Clock::_internal_has_system() const {
396  return this != internal_default_instance() && system_ != nullptr;
397 }
398 inline bool Clock::has_system() const {
399  return _internal_has_system();
400 }
401 inline const ::ignition::msgs::Time& Clock::_internal_system() const {
402  const ::ignition::msgs::Time* p = system_;
403  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Time&>(
405 }
406 inline const ::ignition::msgs::Time& Clock::system() const {
407  // @@protoc_insertion_point(field_get:ignition.msgs.Clock.system)
408  return _internal_system();
409 }
411  ::ignition::msgs::Time* system) {
412  if (GetArenaForAllocation() == nullptr) {
413  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(system_);
414  }
415  system_ = system;
416  if (system) {
417 
418  } else {
419 
420  }
421  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Clock.system)
422 }
423 inline ::ignition::msgs::Time* Clock::release_system() {
424 
425  ::ignition::msgs::Time* temp = system_;
426  system_ = nullptr;
427 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
428  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
429  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
430  if (GetArenaForAllocation() == nullptr) { delete old; }
431 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
432  if (GetArenaForAllocation() != nullptr) {
433  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
434  }
435 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
436  return temp;
437 }
438 inline ::ignition::msgs::Time* Clock::unsafe_arena_release_system() {
439  // @@protoc_insertion_point(field_release:ignition.msgs.Clock.system)
440 
441  ::ignition::msgs::Time* temp = system_;
442  system_ = nullptr;
443  return temp;
444 }
445 inline ::ignition::msgs::Time* Clock::_internal_mutable_system() {
446 
447  if (system_ == nullptr) {
448  auto* p = CreateMaybeMessage<::ignition::msgs::Time>(GetArenaForAllocation());
449  system_ = p;
450  }
451  return system_;
452 }
453 inline ::ignition::msgs::Time* Clock::mutable_system() {
454  ::ignition::msgs::Time* _msg = _internal_mutable_system();
455  // @@protoc_insertion_point(field_mutable:ignition.msgs.Clock.system)
456  return _msg;
457 }
459  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
460  if (message_arena == nullptr) {
461  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(system_);
462  }
463  if (system) {
464  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
465  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
466  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
467  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(system));
468  if (message_arena != submessage_arena) {
469  system = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
470  message_arena, system, submessage_arena);
471  }
472 
473  } else {
474 
475  }
476  system_ = system;
477  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Clock.system)
478 }
479 
480 // .ignition.msgs.Time real = 3;
481 inline bool Clock::_internal_has_real() const {
482  return this != internal_default_instance() && real_ != nullptr;
483 }
484 inline bool Clock::has_real() const {
485  return _internal_has_real();
486 }
487 inline const ::ignition::msgs::Time& Clock::_internal_real() const {
488  const ::ignition::msgs::Time* p = real_;
489  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Time&>(
491 }
492 inline const ::ignition::msgs::Time& Clock::real() const {
493  // @@protoc_insertion_point(field_get:ignition.msgs.Clock.real)
494  return _internal_real();
495 }
497  ::ignition::msgs::Time* real) {
498  if (GetArenaForAllocation() == nullptr) {
499  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(real_);
500  }
501  real_ = real;
502  if (real) {
503 
504  } else {
505 
506  }
507  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Clock.real)
508 }
509 inline ::ignition::msgs::Time* Clock::release_real() {
510 
511  ::ignition::msgs::Time* temp = real_;
512  real_ = nullptr;
513 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
514  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
515  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
516  if (GetArenaForAllocation() == nullptr) { delete old; }
517 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
518  if (GetArenaForAllocation() != nullptr) {
519  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
520  }
521 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
522  return temp;
523 }
524 inline ::ignition::msgs::Time* Clock::unsafe_arena_release_real() {
525  // @@protoc_insertion_point(field_release:ignition.msgs.Clock.real)
526 
527  ::ignition::msgs::Time* temp = real_;
528  real_ = nullptr;
529  return temp;
530 }
531 inline ::ignition::msgs::Time* Clock::_internal_mutable_real() {
532 
533  if (real_ == nullptr) {
534  auto* p = CreateMaybeMessage<::ignition::msgs::Time>(GetArenaForAllocation());
535  real_ = p;
536  }
537  return real_;
538 }
539 inline ::ignition::msgs::Time* Clock::mutable_real() {
540  ::ignition::msgs::Time* _msg = _internal_mutable_real();
541  // @@protoc_insertion_point(field_mutable:ignition.msgs.Clock.real)
542  return _msg;
543 }
545  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
546  if (message_arena == nullptr) {
547  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(real_);
548  }
549  if (real) {
550  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
551  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
552  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
553  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(real));
554  if (message_arena != submessage_arena) {
555  real = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
556  message_arena, real, submessage_arena);
557  }
558 
559  } else {
560 
561  }
562  real_ = real;
563  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Clock.real)
564 }
565 
566 // .ignition.msgs.Time sim = 4;
567 inline bool Clock::_internal_has_sim() const {
568  return this != internal_default_instance() && sim_ != nullptr;
569 }
570 inline bool Clock::has_sim() const {
571  return _internal_has_sim();
572 }
573 inline const ::ignition::msgs::Time& Clock::_internal_sim() const {
574  const ::ignition::msgs::Time* p = sim_;
575  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Time&>(
577 }
578 inline const ::ignition::msgs::Time& Clock::sim() const {
579  // @@protoc_insertion_point(field_get:ignition.msgs.Clock.sim)
580  return _internal_sim();
581 }
583  ::ignition::msgs::Time* sim) {
584  if (GetArenaForAllocation() == nullptr) {
585  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sim_);
586  }
587  sim_ = sim;
588  if (sim) {
589 
590  } else {
591 
592  }
593  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Clock.sim)
594 }
595 inline ::ignition::msgs::Time* Clock::release_sim() {
596 
597  ::ignition::msgs::Time* temp = sim_;
598  sim_ = nullptr;
599 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
600  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
601  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
602  if (GetArenaForAllocation() == nullptr) { delete old; }
603 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
604  if (GetArenaForAllocation() != nullptr) {
605  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
606  }
607 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
608  return temp;
609 }
610 inline ::ignition::msgs::Time* Clock::unsafe_arena_release_sim() {
611  // @@protoc_insertion_point(field_release:ignition.msgs.Clock.sim)
612 
613  ::ignition::msgs::Time* temp = sim_;
614  sim_ = nullptr;
615  return temp;
616 }
617 inline ::ignition::msgs::Time* Clock::_internal_mutable_sim() {
618 
619  if (sim_ == nullptr) {
620  auto* p = CreateMaybeMessage<::ignition::msgs::Time>(GetArenaForAllocation());
621  sim_ = p;
622  }
623  return sim_;
624 }
625 inline ::ignition::msgs::Time* Clock::mutable_sim() {
626  ::ignition::msgs::Time* _msg = _internal_mutable_sim();
627  // @@protoc_insertion_point(field_mutable:ignition.msgs.Clock.sim)
628  return _msg;
629 }
631  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
632  if (message_arena == nullptr) {
633  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(sim_);
634  }
635  if (sim) {
636  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
637  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
638  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
639  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sim));
640  if (message_arena != submessage_arena) {
641  sim = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
642  message_arena, sim, submessage_arena);
643  }
644 
645  } else {
646 
647  }
648  sim_ = sim;
649  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Clock.sim)
650 }
651 
652 #ifdef __GNUC__
653  #pragma GCC diagnostic pop
654 #endif // __GNUC__
655 
660 // @@protoc_insertion_point(namespace_scope)
661 
662 } // namespace msgs
663 } // namespace ignition
664 
665 #ifdef _MSC_VER
666 #pragma warning(pop)
667 #endif
668 // @@protoc_insertion_point(global_scope)
669 
670 #include <google/protobuf/port_undef.inc>
671 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fclock_2eproto
Definition: clock.pb.h:85
constexpr Clock(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_NODISCARD ::ignition::msgs::Time * release_system()
Definition: clock.pb.h:423
PROTOBUF_NODISCARD ::ignition::msgs::Time * release_real()
Definition: clock.pb.h:509
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: clock.pb.h:121
bool has_header() const
Definition: clock.pb.h:312
::ignition::msgs::Header * mutable_header()
Definition: clock.pb.h:367
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Clock * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: clock.pb.h:158
void unsafe_arena_set_allocated_sim(::ignition::msgs::Time *sim)
Definition: clock.pb.h:582
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: clock.pb.h:115
::ignition::msgs::Time * mutable_real()
Definition: clock.pb.h:539
Clock(Clock &&from) noexcept
Definition: clock.pb.h:92
::ignition::msgs::Time * mutable_sim()
Definition: clock.pb.h:625
bool has_sim() const
Definition: clock.pb.h:570
::ignition::msgs::Time * unsafe_arena_release_real()
Definition: clock.pb.h:524
static const Clock & default_instance()
Definition: clock.pb.h:124
void CopyFrom(const Clock &from)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: clock.pb.h:324
::ignition::msgs::Time * unsafe_arena_release_system()
Definition: clock.pb.h:438
friend void swap(Clock &a, Clock &b)
Definition: clock.pb.h:134
PROTOBUF_NODISCARD ::ignition::msgs::Time * release_sim()
Definition: clock.pb.h:595
void set_allocated_real(::ignition::msgs::Time *real)
Definition: clock.pb.h:544
Clock & operator=(Clock &&from) noexcept
Definition: clock.pb.h:101
const ::ignition::msgs::Time & sim() const
Definition: clock.pb.h:578
void set_allocated_system(::ignition::msgs::Time *system)
Definition: clock.pb.h:458
void unsafe_arena_set_allocated_real(::ignition::msgs::Time *real)
Definition: clock.pb.h:496
void set_allocated_sim(::ignition::msgs::Time *sim)
Definition: clock.pb.h:630
Clock(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_allocated_header(::ignition::msgs::Header *header)
Definition: clock.pb.h:372
bool has_system() const
Definition: clock.pb.h:398
bool has_real() const
Definition: clock.pb.h:484
static const Clock * internal_default_instance()
Definition: clock.pb.h:127
::ignition::msgs::Time * mutable_system()
Definition: clock.pb.h:453
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: clock.pb.h:337
void UnsafeArenaSwap(Clock *other)
Definition: clock.pb.h:150
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: clock.pb.h:118
::ignition::msgs::Time * unsafe_arena_release_sim()
Definition: clock.pb.h:610
const ::ignition::msgs::Time & real() const
Definition: clock.pb.h:492
const ::ignition::msgs::Header & header() const
Definition: clock.pb.h:320
void unsafe_arena_set_allocated_system(::ignition::msgs::Time *system)
Definition: clock.pb.h:410
static const ClassData _class_data_
Definition: clock.pb.h:196
Clock()
Definition: clock.pb.h:87
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: clock.pb.h:352
const ::ignition::msgs::Time & system() const
Definition: clock.pb.h:406
Clock & operator=(const Clock &from)
Definition: clock.pb.h:97
Clock(const Clock &from)
void MergeFrom(const Clock &from)
void Swap(Clock *other)
Definition: clock.pb.h:137
Definition: header.pb.h:265
Definition: time.pb.h:83
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fclock_2eproto
std::unique_ptr< Clock > ClockUniquePtr
Definition: clock.pb.h:656
std::unique_ptr< const Clock > ConstClockUniquePtr
Definition: clock.pb.h:657
std::shared_ptr< Clock > ClockSharedPtr
Definition: clock.pb.h:658
std::shared_ptr< const Clock > ConstClockSharedPtr
Definition: clock.pb.h:659
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE TimeDefaultTypeInternal _Time_default_instance_
IGNITION_MSGS_VISIBLE ClockDefaultTypeInternal _Clock_default_instance_
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)