Gazebo Msgs

API Reference

9.5.0
diagnostics.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/diagnostics.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fdiagnostics_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fdiagnostics_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 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fdiagnostics_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[2];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fdiagnostics_2eproto
50 namespace gz {
51 namespace msgs {
52 class Diagnostics;
53 class DiagnosticsDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern DiagnosticsDefaultTypeInternal _Diagnostics_default_instance_;
55 class Diagnostics_DiagTime;
56 class Diagnostics_DiagTimeDefaultTypeInternal;
57 GZ_MSGS_VISIBLE extern Diagnostics_DiagTimeDefaultTypeInternal _Diagnostics_DiagTime_default_instance_;
58 } // namespace msgs
59 } // namespace gz
60 namespace google {
61 namespace protobuf {
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::Diagnostics* Arena::CreateMaybeMessage<::gz::msgs::Diagnostics>(Arena*);
63 template<> GZ_MSGS_VISIBLE ::gz::msgs::Diagnostics_DiagTime* Arena::CreateMaybeMessage<::gz::msgs::Diagnostics_DiagTime>(Arena*);
64 } // namespace protobuf
65 } // namespace google
66 namespace gz {
67 namespace msgs {
68 
69 // ===================================================================
70 
71 class GZ_MSGS_VISIBLE Diagnostics_DiagTime : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Diagnostics.DiagTime) */ {
72  public:
74  virtual ~Diagnostics_DiagTime();
75 
77 
79  CopyFrom(from);
80  return *this;
81  }
82  #if LANG_CXX11
85  *this = ::std::move(from);
86  }
87 
88  inline Diagnostics_DiagTime& operator=(Diagnostics_DiagTime&& from) noexcept {
89  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
90  if (this != &from) InternalSwap(&from);
91  } else {
92  CopyFrom(from);
93  }
94  return *this;
95  }
96  #endif
97  static const ::google::protobuf::Descriptor* descriptor();
98  static const Diagnostics_DiagTime& default_instance();
99 
100  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
102  return reinterpret_cast<const Diagnostics_DiagTime*>(
104  }
105  static constexpr int kIndexInFileMessages =
106  0;
107 
108  void Swap(Diagnostics_DiagTime* other);
110  a.Swap(&b);
111  }
112 
113  // implements Message ----------------------------------------------
114 
115  inline Diagnostics_DiagTime* New() const final {
116  return CreateMaybeMessage<Diagnostics_DiagTime>(NULL);
117  }
118 
119  Diagnostics_DiagTime* New(::google::protobuf::Arena* arena) const final {
120  return CreateMaybeMessage<Diagnostics_DiagTime>(arena);
121  }
122  void CopyFrom(const ::google::protobuf::Message& from) final;
123  void MergeFrom(const ::google::protobuf::Message& from) final;
124  void CopyFrom(const Diagnostics_DiagTime& from);
125  void MergeFrom(const Diagnostics_DiagTime& from);
126  void Clear() final;
127  bool IsInitialized() const final;
128 
129  size_t ByteSizeLong() const final;
130  bool MergePartialFromCodedStream(
131  ::google::protobuf::io::CodedInputStream* input) final;
132  void SerializeWithCachedSizes(
133  ::google::protobuf::io::CodedOutputStream* output) const final;
134  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
135  bool deterministic, ::google::protobuf::uint8* target) const final;
136  int GetCachedSize() const final { return _cached_size_.Get(); }
137 
138  private:
139  void SharedCtor();
140  void SharedDtor();
141  void SetCachedSize(int size) const final;
142  void InternalSwap(Diagnostics_DiagTime* other);
143  private:
144  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
145  return NULL;
146  }
147  inline void* MaybeArenaPtr() const {
148  return NULL;
149  }
150  public:
151 
152  ::google::protobuf::Metadata GetMetadata() const final;
153 
154  // nested types ----------------------------------------------------
155 
156  // accessors -------------------------------------------------------
157 
158  // string name = 1;
159  void clear_name();
160  static const int kNameFieldNumber = 1;
161  const ::std::string& name() const;
162  void set_name(const ::std::string& value);
163  #if LANG_CXX11
164  void set_name(::std::string&& value);
165  #endif
166  void set_name(const char* value);
167  void set_name(const char* value, size_t size);
168  ::std::string* mutable_name();
169  ::std::string* release_name();
170  void set_allocated_name(::std::string* name);
171 
172  // .gz.msgs.Time elapsed = 2;
173  bool has_elapsed() const;
174  void clear_elapsed();
175  static const int kElapsedFieldNumber = 2;
176  private:
177  const ::gz::msgs::Time& _internal_elapsed() const;
178  public:
179  const ::gz::msgs::Time& elapsed() const;
180  ::gz::msgs::Time* release_elapsed();
181  ::gz::msgs::Time* mutable_elapsed();
182  void set_allocated_elapsed(::gz::msgs::Time* elapsed);
183 
184  // .gz.msgs.Time wall = 3;
185  bool has_wall() const;
186  void clear_wall();
187  static const int kWallFieldNumber = 3;
188  private:
189  const ::gz::msgs::Time& _internal_wall() const;
190  public:
191  const ::gz::msgs::Time& wall() const;
192  ::gz::msgs::Time* release_wall();
193  ::gz::msgs::Time* mutable_wall();
194  void set_allocated_wall(::gz::msgs::Time* wall);
195 
196  // @@protoc_insertion_point(class_scope:gz.msgs.Diagnostics.DiagTime)
197  private:
198 
199  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
200  ::google::protobuf::internal::ArenaStringPtr name_;
201  ::gz::msgs::Time* elapsed_;
202  ::gz::msgs::Time* wall_;
203  mutable ::google::protobuf::internal::CachedSize _cached_size_;
204  friend struct ::protobuf_gz_2fmsgs_2fdiagnostics_2eproto::TableStruct;
205 };
206 // -------------------------------------------------------------------
207 
208 class GZ_MSGS_VISIBLE Diagnostics : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Diagnostics) */ {
209  public:
210  Diagnostics();
211  virtual ~Diagnostics();
212 
213  Diagnostics(const Diagnostics& from);
214 
215  inline Diagnostics& operator=(const Diagnostics& from) {
216  CopyFrom(from);
217  return *this;
218  }
219  #if LANG_CXX11
220  Diagnostics(Diagnostics&& from) noexcept
221  : Diagnostics() {
222  *this = ::std::move(from);
223  }
224 
225  inline Diagnostics& operator=(Diagnostics&& from) noexcept {
226  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
227  if (this != &from) InternalSwap(&from);
228  } else {
229  CopyFrom(from);
230  }
231  return *this;
232  }
233  #endif
234  static const ::google::protobuf::Descriptor* descriptor();
235  static const Diagnostics& default_instance();
236 
237  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
238  static inline const Diagnostics* internal_default_instance() {
239  return reinterpret_cast<const Diagnostics*>(
241  }
242  static constexpr int kIndexInFileMessages =
243  1;
244 
245  void Swap(Diagnostics* other);
246  friend void swap(Diagnostics& a, Diagnostics& b) {
247  a.Swap(&b);
248  }
249 
250  // implements Message ----------------------------------------------
251 
252  inline Diagnostics* New() const final {
253  return CreateMaybeMessage<Diagnostics>(NULL);
254  }
255 
256  Diagnostics* New(::google::protobuf::Arena* arena) const final {
257  return CreateMaybeMessage<Diagnostics>(arena);
258  }
259  void CopyFrom(const ::google::protobuf::Message& from) final;
260  void MergeFrom(const ::google::protobuf::Message& from) final;
261  void CopyFrom(const Diagnostics& from);
262  void MergeFrom(const Diagnostics& from);
263  void Clear() final;
264  bool IsInitialized() const final;
265 
266  size_t ByteSizeLong() const final;
267  bool MergePartialFromCodedStream(
268  ::google::protobuf::io::CodedInputStream* input) final;
269  void SerializeWithCachedSizes(
270  ::google::protobuf::io::CodedOutputStream* output) const final;
271  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
272  bool deterministic, ::google::protobuf::uint8* target) const final;
273  int GetCachedSize() const final { return _cached_size_.Get(); }
274 
275  private:
276  void SharedCtor();
277  void SharedDtor();
278  void SetCachedSize(int size) const final;
279  void InternalSwap(Diagnostics* other);
280  private:
281  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
282  return NULL;
283  }
284  inline void* MaybeArenaPtr() const {
285  return NULL;
286  }
287  public:
288 
289  ::google::protobuf::Metadata GetMetadata() const final;
290 
291  // nested types ----------------------------------------------------
292 
294 
295  // accessors -------------------------------------------------------
296 
297  // repeated .gz.msgs.Diagnostics.DiagTime time = 2;
298  int time_size() const;
299  void clear_time();
300  static const int kTimeFieldNumber = 2;
301  ::gz::msgs::Diagnostics_DiagTime* mutable_time(int index);
302  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Diagnostics_DiagTime >*
303  mutable_time();
304  const ::gz::msgs::Diagnostics_DiagTime& time(int index) const;
305  ::gz::msgs::Diagnostics_DiagTime* add_time();
306  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Diagnostics_DiagTime >&
307  time() const;
308 
309  // .gz.msgs.Header header = 1;
310  bool has_header() const;
311  void clear_header();
312  static const int kHeaderFieldNumber = 1;
313  private:
314  const ::gz::msgs::Header& _internal_header() const;
315  public:
316  const ::gz::msgs::Header& header() const;
317  ::gz::msgs::Header* release_header();
318  ::gz::msgs::Header* mutable_header();
319  void set_allocated_header(::gz::msgs::Header* header);
320 
321  // .gz.msgs.Time real_time = 3;
322  bool has_real_time() const;
323  void clear_real_time();
324  static const int kRealTimeFieldNumber = 3;
325  private:
326  const ::gz::msgs::Time& _internal_real_time() const;
327  public:
328  const ::gz::msgs::Time& real_time() const;
329  ::gz::msgs::Time* release_real_time();
330  ::gz::msgs::Time* mutable_real_time();
331  void set_allocated_real_time(::gz::msgs::Time* real_time);
332 
333  // .gz.msgs.Time sim_time = 4;
334  bool has_sim_time() const;
335  void clear_sim_time();
336  static const int kSimTimeFieldNumber = 4;
337  private:
338  const ::gz::msgs::Time& _internal_sim_time() const;
339  public:
340  const ::gz::msgs::Time& sim_time() const;
341  ::gz::msgs::Time* release_sim_time();
342  ::gz::msgs::Time* mutable_sim_time();
343  void set_allocated_sim_time(::gz::msgs::Time* sim_time);
344 
345  // double real_time_factor = 5;
346  void clear_real_time_factor();
347  static const int kRealTimeFactorFieldNumber = 5;
348  double real_time_factor() const;
349  void set_real_time_factor(double value);
350 
351  // @@protoc_insertion_point(class_scope:gz.msgs.Diagnostics)
352  private:
353 
354  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
355  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Diagnostics_DiagTime > time_;
356  ::gz::msgs::Header* header_;
357  ::gz::msgs::Time* real_time_;
358  ::gz::msgs::Time* sim_time_;
359  double real_time_factor_;
360  mutable ::google::protobuf::internal::CachedSize _cached_size_;
361  friend struct ::protobuf_gz_2fmsgs_2fdiagnostics_2eproto::TableStruct;
362 };
363 // ===================================================================
364 
365 
366 // ===================================================================
367 
368 #ifdef __GNUC__
369  #pragma GCC diagnostic push
370  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
371 #endif // __GNUC__
372 // Diagnostics_DiagTime
373 
374 // string name = 1;
376  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
377 }
378 inline const ::std::string& Diagnostics_DiagTime::name() const {
379  // @@protoc_insertion_point(field_get:gz.msgs.Diagnostics.DiagTime.name)
380  return name_.GetNoArena();
381 }
382 inline void Diagnostics_DiagTime::set_name(const ::std::string& value) {
383 
384  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
385  // @@protoc_insertion_point(field_set:gz.msgs.Diagnostics.DiagTime.name)
386 }
387 #if LANG_CXX11
388 inline void Diagnostics_DiagTime::set_name(::std::string&& value) {
389 
390  name_.SetNoArena(
391  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
392  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Diagnostics.DiagTime.name)
393 }
394 #endif
395 inline void Diagnostics_DiagTime::set_name(const char* value) {
396  GOOGLE_DCHECK(value != NULL);
397 
398  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
399  // @@protoc_insertion_point(field_set_char:gz.msgs.Diagnostics.DiagTime.name)
400 }
401 inline void Diagnostics_DiagTime::set_name(const char* value, size_t size) {
402 
403  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
404  ::std::string(reinterpret_cast<const char*>(value), size));
405  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Diagnostics.DiagTime.name)
406 }
407 inline ::std::string* Diagnostics_DiagTime::mutable_name() {
408 
409  // @@protoc_insertion_point(field_mutable:gz.msgs.Diagnostics.DiagTime.name)
410  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
411 }
412 inline ::std::string* Diagnostics_DiagTime::release_name() {
413  // @@protoc_insertion_point(field_release:gz.msgs.Diagnostics.DiagTime.name)
414 
415  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
416 }
418  if (name != NULL) {
419 
420  } else {
421 
422  }
423  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
424  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Diagnostics.DiagTime.name)
425 }
426 
427 // .gz.msgs.Time elapsed = 2;
429  return this != internal_default_instance() && elapsed_ != NULL;
430 }
431 inline const ::gz::msgs::Time& Diagnostics_DiagTime::_internal_elapsed() const {
432  return *elapsed_;
433 }
434 inline const ::gz::msgs::Time& Diagnostics_DiagTime::elapsed() const {
435  const ::gz::msgs::Time* p = elapsed_;
436  // @@protoc_insertion_point(field_get:gz.msgs.Diagnostics.DiagTime.elapsed)
437  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
439 }
440 inline ::gz::msgs::Time* Diagnostics_DiagTime::release_elapsed() {
441  // @@protoc_insertion_point(field_release:gz.msgs.Diagnostics.DiagTime.elapsed)
442 
443  ::gz::msgs::Time* temp = elapsed_;
444  elapsed_ = NULL;
445  return temp;
446 }
447 inline ::gz::msgs::Time* Diagnostics_DiagTime::mutable_elapsed() {
448 
449  if (elapsed_ == NULL) {
450  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
451  elapsed_ = p;
452  }
453  // @@protoc_insertion_point(field_mutable:gz.msgs.Diagnostics.DiagTime.elapsed)
454  return elapsed_;
455 }
457  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
458  if (message_arena == NULL) {
459  delete reinterpret_cast< ::google::protobuf::MessageLite*>(elapsed_);
460  }
461  if (elapsed) {
462  ::google::protobuf::Arena* submessage_arena = NULL;
463  if (message_arena != submessage_arena) {
464  elapsed = ::google::protobuf::internal::GetOwnedMessage(
465  message_arena, elapsed, submessage_arena);
466  }
467 
468  } else {
469 
470  }
471  elapsed_ = elapsed;
472  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Diagnostics.DiagTime.elapsed)
473 }
474 
475 // .gz.msgs.Time wall = 3;
476 inline bool Diagnostics_DiagTime::has_wall() const {
477  return this != internal_default_instance() && wall_ != NULL;
478 }
479 inline const ::gz::msgs::Time& Diagnostics_DiagTime::_internal_wall() const {
480  return *wall_;
481 }
482 inline const ::gz::msgs::Time& Diagnostics_DiagTime::wall() const {
483  const ::gz::msgs::Time* p = wall_;
484  // @@protoc_insertion_point(field_get:gz.msgs.Diagnostics.DiagTime.wall)
485  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
487 }
488 inline ::gz::msgs::Time* Diagnostics_DiagTime::release_wall() {
489  // @@protoc_insertion_point(field_release:gz.msgs.Diagnostics.DiagTime.wall)
490 
491  ::gz::msgs::Time* temp = wall_;
492  wall_ = NULL;
493  return temp;
494 }
495 inline ::gz::msgs::Time* Diagnostics_DiagTime::mutable_wall() {
496 
497  if (wall_ == NULL) {
498  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
499  wall_ = p;
500  }
501  // @@protoc_insertion_point(field_mutable:gz.msgs.Diagnostics.DiagTime.wall)
502  return wall_;
503 }
505  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
506  if (message_arena == NULL) {
507  delete reinterpret_cast< ::google::protobuf::MessageLite*>(wall_);
508  }
509  if (wall) {
510  ::google::protobuf::Arena* submessage_arena = NULL;
511  if (message_arena != submessage_arena) {
512  wall = ::google::protobuf::internal::GetOwnedMessage(
513  message_arena, wall, submessage_arena);
514  }
515 
516  } else {
517 
518  }
519  wall_ = wall;
520  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Diagnostics.DiagTime.wall)
521 }
522 
523 // -------------------------------------------------------------------
524 
525 // Diagnostics
526 
527 // .gz.msgs.Header header = 1;
528 inline bool Diagnostics::has_header() const {
529  return this != internal_default_instance() && header_ != NULL;
530 }
531 inline const ::gz::msgs::Header& Diagnostics::_internal_header() const {
532  return *header_;
533 }
534 inline const ::gz::msgs::Header& Diagnostics::header() const {
535  const ::gz::msgs::Header* p = header_;
536  // @@protoc_insertion_point(field_get:gz.msgs.Diagnostics.header)
537  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
539 }
540 inline ::gz::msgs::Header* Diagnostics::release_header() {
541  // @@protoc_insertion_point(field_release:gz.msgs.Diagnostics.header)
542 
543  ::gz::msgs::Header* temp = header_;
544  header_ = NULL;
545  return temp;
546 }
547 inline ::gz::msgs::Header* Diagnostics::mutable_header() {
548 
549  if (header_ == NULL) {
550  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
551  header_ = p;
552  }
553  // @@protoc_insertion_point(field_mutable:gz.msgs.Diagnostics.header)
554  return header_;
555 }
557  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
558  if (message_arena == NULL) {
559  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
560  }
561  if (header) {
562  ::google::protobuf::Arena* submessage_arena = NULL;
563  if (message_arena != submessage_arena) {
564  header = ::google::protobuf::internal::GetOwnedMessage(
565  message_arena, header, submessage_arena);
566  }
567 
568  } else {
569 
570  }
571  header_ = header;
572  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Diagnostics.header)
573 }
574 
575 // repeated .gz.msgs.Diagnostics.DiagTime time = 2;
576 inline int Diagnostics::time_size() const {
577  return time_.size();
578 }
579 inline void Diagnostics::clear_time() {
580  time_.Clear();
581 }
582 inline ::gz::msgs::Diagnostics_DiagTime* Diagnostics::mutable_time(int index) {
583  // @@protoc_insertion_point(field_mutable:gz.msgs.Diagnostics.time)
584  return time_.Mutable(index);
585 }
586 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Diagnostics_DiagTime >*
588  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Diagnostics.time)
589  return &time_;
590 }
591 inline const ::gz::msgs::Diagnostics_DiagTime& Diagnostics::time(int index) const {
592  // @@protoc_insertion_point(field_get:gz.msgs.Diagnostics.time)
593  return time_.Get(index);
594 }
595 inline ::gz::msgs::Diagnostics_DiagTime* Diagnostics::add_time() {
596  // @@protoc_insertion_point(field_add:gz.msgs.Diagnostics.time)
597  return time_.Add();
598 }
599 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Diagnostics_DiagTime >&
601  // @@protoc_insertion_point(field_list:gz.msgs.Diagnostics.time)
602  return time_;
603 }
604 
605 // .gz.msgs.Time real_time = 3;
606 inline bool Diagnostics::has_real_time() const {
607  return this != internal_default_instance() && real_time_ != NULL;
608 }
609 inline const ::gz::msgs::Time& Diagnostics::_internal_real_time() const {
610  return *real_time_;
611 }
612 inline const ::gz::msgs::Time& Diagnostics::real_time() const {
613  const ::gz::msgs::Time* p = real_time_;
614  // @@protoc_insertion_point(field_get:gz.msgs.Diagnostics.real_time)
615  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
617 }
618 inline ::gz::msgs::Time* Diagnostics::release_real_time() {
619  // @@protoc_insertion_point(field_release:gz.msgs.Diagnostics.real_time)
620 
621  ::gz::msgs::Time* temp = real_time_;
622  real_time_ = NULL;
623  return temp;
624 }
625 inline ::gz::msgs::Time* Diagnostics::mutable_real_time() {
626 
627  if (real_time_ == NULL) {
628  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
629  real_time_ = p;
630  }
631  // @@protoc_insertion_point(field_mutable:gz.msgs.Diagnostics.real_time)
632  return real_time_;
633 }
635  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
636  if (message_arena == NULL) {
637  delete reinterpret_cast< ::google::protobuf::MessageLite*>(real_time_);
638  }
639  if (real_time) {
640  ::google::protobuf::Arena* submessage_arena = NULL;
641  if (message_arena != submessage_arena) {
642  real_time = ::google::protobuf::internal::GetOwnedMessage(
643  message_arena, real_time, submessage_arena);
644  }
645 
646  } else {
647 
648  }
649  real_time_ = real_time;
650  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Diagnostics.real_time)
651 }
652 
653 // .gz.msgs.Time sim_time = 4;
654 inline bool Diagnostics::has_sim_time() const {
655  return this != internal_default_instance() && sim_time_ != NULL;
656 }
657 inline const ::gz::msgs::Time& Diagnostics::_internal_sim_time() const {
658  return *sim_time_;
659 }
660 inline const ::gz::msgs::Time& Diagnostics::sim_time() const {
661  const ::gz::msgs::Time* p = sim_time_;
662  // @@protoc_insertion_point(field_get:gz.msgs.Diagnostics.sim_time)
663  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
665 }
666 inline ::gz::msgs::Time* Diagnostics::release_sim_time() {
667  // @@protoc_insertion_point(field_release:gz.msgs.Diagnostics.sim_time)
668 
669  ::gz::msgs::Time* temp = sim_time_;
670  sim_time_ = NULL;
671  return temp;
672 }
673 inline ::gz::msgs::Time* Diagnostics::mutable_sim_time() {
674 
675  if (sim_time_ == NULL) {
676  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
677  sim_time_ = p;
678  }
679  // @@protoc_insertion_point(field_mutable:gz.msgs.Diagnostics.sim_time)
680  return sim_time_;
681 }
683  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
684  if (message_arena == NULL) {
685  delete reinterpret_cast< ::google::protobuf::MessageLite*>(sim_time_);
686  }
687  if (sim_time) {
688  ::google::protobuf::Arena* submessage_arena = NULL;
689  if (message_arena != submessage_arena) {
690  sim_time = ::google::protobuf::internal::GetOwnedMessage(
691  message_arena, sim_time, submessage_arena);
692  }
693 
694  } else {
695 
696  }
697  sim_time_ = sim_time;
698  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Diagnostics.sim_time)
699 }
700 
701 // double real_time_factor = 5;
703  real_time_factor_ = 0;
704 }
705 inline double Diagnostics::real_time_factor() const {
706  // @@protoc_insertion_point(field_get:gz.msgs.Diagnostics.real_time_factor)
707  return real_time_factor_;
708 }
709 inline void Diagnostics::set_real_time_factor(double value) {
710 
711  real_time_factor_ = value;
712  // @@protoc_insertion_point(field_set:gz.msgs.Diagnostics.real_time_factor)
713 }
714 
715 #ifdef __GNUC__
716  #pragma GCC diagnostic pop
717 #endif // __GNUC__
718 // -------------------------------------------------------------------
719 
720 
721 // @@protoc_insertion_point(namespace_scope)
722 
723 } // namespace msgs
724 } // namespace gz
725 
726 // @@protoc_insertion_point(global_scope)
727 
728 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fdiagnostics_2eproto