4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fdiagnostics_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fdiagnostics_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/time.pb.h"
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fdiagnostics_2eproto GZ_MSGS_VISIBLE
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[];
53 class DiagnosticsDefaultTypeInternal;
55 class Diagnostics_DiagTime;
56 class Diagnostics_DiagTimeDefaultTypeInternal;
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*);
85 *
this = ::std::move(from);
88 inline Diagnostics_DiagTime& operator=(Diagnostics_DiagTime&& from) noexcept {
89 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
90 if (
this != &from) InternalSwap(&from);
97 static const ::google::protobuf::Descriptor* descriptor();
98 static const Diagnostics_DiagTime& default_instance();
100 static void InitAsDefaultInstance();
105 static constexpr
int kIndexInFileMessages =
116 return CreateMaybeMessage<Diagnostics_DiagTime>(NULL);
120 return CreateMaybeMessage<Diagnostics_DiagTime>(arena);
122 void CopyFrom(const ::google::protobuf::Message& from)
final;
123 void MergeFrom(const ::google::protobuf::Message& from)
final;
127 bool IsInitialized() const final;
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(); }
141 void SetCachedSize(
int size)
const final;
144 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
147 inline void* MaybeArenaPtr()
const {
152 ::google::protobuf::Metadata GetMetadata() const final;
160 static const
int kNameFieldNumber = 1;
161 const ::
std::
string& name() const;
162 void set_name(const ::
std::
string& value);
166 void set_name(
const char* value);
167 void set_name(
const char* value,
size_t size);
173 bool has_elapsed()
const;
174 void clear_elapsed();
175 static const int kElapsedFieldNumber = 2;
177 const ::gz::msgs::Time& _internal_elapsed()
const;
179 const ::gz::msgs::Time& elapsed()
const;
185 bool has_wall()
const;
187 static const int kWallFieldNumber = 3;
189 const ::gz::msgs::Time& _internal_wall()
const;
191 const ::gz::msgs::Time& wall()
const;
199 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
200 ::google::protobuf::internal::ArenaStringPtr name_;
203 mutable ::google::protobuf::internal::CachedSize _cached_size_;
204 friend struct ::protobuf_gz_2fmsgs_2fdiagnostics_2eproto::TableStruct;
208 class GZ_MSGS_VISIBLE
Diagnostics :
public ::google::protobuf::Message {
222 *
this = ::std::move(from);
225 inline Diagnostics& operator=(Diagnostics&& from) noexcept {
226 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
227 if (
this != &from) InternalSwap(&from);
234 static const ::google::protobuf::Descriptor* descriptor();
235 static const Diagnostics& default_instance();
237 static void InitAsDefaultInstance();
242 static constexpr
int kIndexInFileMessages =
253 return CreateMaybeMessage<Diagnostics>(NULL);
257 return CreateMaybeMessage<Diagnostics>(arena);
259 void CopyFrom(const ::google::protobuf::Message& from)
final;
260 void MergeFrom(const ::google::protobuf::Message& from)
final;
264 bool IsInitialized() const final;
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(); }
278 void SetCachedSize(
int size)
const final;
281 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
284 inline void* MaybeArenaPtr()
const {
289 ::google::protobuf::Metadata GetMetadata() const final;
298 int time_size() const;
300 static const
int kTimeFieldNumber = 2;
310 bool has_header() const;
312 static const
int kHeaderFieldNumber = 1;
314 const ::
gz::msgs::
Header& _internal_header() const;
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);
322 bool has_real_time() const;
323 void clear_real_time();
324 static const
int kRealTimeFieldNumber = 3;
326 const ::
gz::msgs::
Time& _internal_real_time() const;
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);
334 bool has_sim_time() const;
335 void clear_sim_time();
336 static const
int kSimTimeFieldNumber = 4;
338 const ::
gz::msgs::
Time& _internal_sim_time() const;
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);
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);
354 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
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_;
369 #pragma GCC diagnostic push
370 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
376 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
380 return name_.GetNoArena();
384 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
391 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
396 GOOGLE_DCHECK(value != NULL);
398 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
403 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
404 ::
std::string(
reinterpret_cast<const char*
>(value), size));
410 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
415 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
423 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
429 return this != internal_default_instance() && elapsed_ != NULL;
431 inline const ::gz::msgs::Time& Diagnostics_DiagTime::_internal_elapsed()
const {
435 const ::gz::msgs::Time* p = elapsed_;
437 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
449 if (elapsed_ == NULL) {
450 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
457 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
458 if (message_arena == NULL) {
459 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
477 return this != internal_default_instance() && wall_ != NULL;
479 inline const ::gz::msgs::Time& Diagnostics_DiagTime::_internal_wall()
const {
483 const ::gz::msgs::Time* p = wall_;
485 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
498 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
505 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
506 if (message_arena == NULL) {
507 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
529 return this != internal_default_instance() && header_ != NULL;
531 inline const ::gz::msgs::Header& Diagnostics::_internal_header()
const {
535 const ::gz::msgs::Header* p = header_;
549 if (header_ == NULL) {
550 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
557 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
558 if (message_arena == NULL) {
559 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
584 return time_.Mutable(index);
586 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Diagnostics_DiagTime >*
593 return time_.Get(index);
599 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Diagnostics_DiagTime >&
607 return this != internal_default_instance() && real_time_ != NULL;
609 inline const ::gz::msgs::Time& Diagnostics::_internal_real_time()
const {
613 const ::gz::msgs::Time* p = real_time_;
615 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
627 if (real_time_ == NULL) {
628 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
635 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
636 if (message_arena == NULL) {
637 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
649 real_time_ = real_time;
655 return this != internal_default_instance() && sim_time_ != NULL;
657 inline const ::gz::msgs::Time& Diagnostics::_internal_sim_time()
const {
661 const ::gz::msgs::Time* p = sim_time_;
663 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
675 if (sim_time_ == NULL) {
676 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
683 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
684 if (message_arena == NULL) {
685 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
697 sim_time_ = sim_time;
703 real_time_factor_ = 0;
707 return real_time_factor_;
711 real_time_factor_ = value;
716 #pragma GCC diagnostic pop
728 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fdiagnostics_2eproto