4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fstats_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fstats_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/log_playback_stats.pb.h"
34 #include "gz/msgs/time.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fworld_5fstats_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
53 class WorldStatistics;
54 class WorldStatisticsDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::WorldStatistics* Arena::CreateMaybeMessage<::gz::msgs::WorldStatistics>(Arena*);
82 *
this = ::std::move(from);
85 inline WorldStatistics& operator=(WorldStatistics&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const WorldStatistics& default_instance();
97 static void InitAsDefaultInstance();
102 static constexpr
int kIndexInFileMessages =
113 return CreateMaybeMessage<WorldStatistics>(NULL);
117 return CreateMaybeMessage<WorldStatistics>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
124 bool IsInitialized() const final;
126 size_t ByteSizeLong() const final;
127 bool MergePartialFromCodedStream(
128 ::
google::protobuf::io::CodedInputStream* input) final;
129 void SerializeWithCachedSizes(
130 ::
google::protobuf::io::CodedOutputStream* output) const final;
131 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132 bool deterministic, ::
google::protobuf::uint8* target) const final;
133 int GetCachedSize() const final {
return _cached_size_.Get(); }
138 void SetCachedSize(
int size)
const final;
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
144 inline void* MaybeArenaPtr()
const {
149 ::google::protobuf::Metadata GetMetadata() const final;
156 bool has_header() const;
158 static const
int kHeaderFieldNumber = 1;
160 const ::
gz::msgs::
Header& _internal_header() const;
162 const ::
gz::msgs::
Header& header() const;
163 ::
gz::msgs::
Header* release_header();
164 ::
gz::msgs::
Header* mutable_header();
165 void set_allocated_header(::
gz::msgs::
Header* header);
168 bool has_sim_time() const;
169 void clear_sim_time();
170 static const
int kSimTimeFieldNumber = 2;
172 const ::
gz::msgs::
Time& _internal_sim_time() const;
174 const ::
gz::msgs::
Time& sim_time() const;
175 ::
gz::msgs::
Time* release_sim_time();
176 ::
gz::msgs::
Time* mutable_sim_time();
177 void set_allocated_sim_time(::
gz::msgs::
Time* sim_time);
180 bool has_pause_time() const;
181 void clear_pause_time();
182 static const
int kPauseTimeFieldNumber = 3;
184 const ::
gz::msgs::
Time& _internal_pause_time() const;
186 const ::
gz::msgs::
Time& pause_time() const;
187 ::
gz::msgs::
Time* release_pause_time();
188 ::
gz::msgs::
Time* mutable_pause_time();
189 void set_allocated_pause_time(::
gz::msgs::
Time* pause_time);
192 bool has_real_time() const;
193 void clear_real_time();
194 static const
int kRealTimeFieldNumber = 4;
196 const ::
gz::msgs::
Time& _internal_real_time() const;
198 const ::
gz::msgs::
Time& real_time() const;
199 ::
gz::msgs::
Time* release_real_time();
200 ::
gz::msgs::
Time* mutable_real_time();
201 void set_allocated_real_time(::
gz::msgs::
Time* real_time);
204 bool has_log_playback_stats() const;
205 void clear_log_playback_stats();
206 static const
int kLogPlaybackStatsFieldNumber = 8;
216 bool has_step_size() const;
217 void clear_step_size();
218 static const
int kStepSizeFieldNumber = 10;
220 const ::
gz::msgs::
Time& _internal_step_size() const;
222 const ::
gz::msgs::
Time& step_size() const;
223 ::
gz::msgs::
Time* release_step_size();
224 ::
gz::msgs::
Time* mutable_step_size();
225 void set_allocated_step_size(::
gz::msgs::
Time* step_size);
228 void clear_iterations();
229 static const
int kIterationsFieldNumber = 6;
230 ::
google::protobuf::uint64 iterations() const;
231 void set_iterations(::
google::protobuf::uint64 value);
234 void clear_model_count();
235 static const
int kModelCountFieldNumber = 7;
236 ::
google::protobuf::int32 model_count() const;
237 void set_model_count(::
google::protobuf::int32 value);
241 static const
int kPausedFieldNumber = 5;
243 void set_paused(
bool value);
246 void clear_stepping();
247 static const
int kSteppingFieldNumber = 11;
248 bool stepping() const;
249 void set_stepping(
bool value);
252 void clear_real_time_factor();
253 static const
int kRealTimeFactorFieldNumber = 9;
254 double real_time_factor() const;
255 void set_real_time_factor(
double value);
260 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
262 ::
gz::msgs::
Time* sim_time_;
263 ::
gz::msgs::
Time* pause_time_;
264 ::
gz::msgs::
Time* real_time_;
266 ::
gz::msgs::
Time* step_size_;
267 ::
google::protobuf::uint64 iterations_;
268 ::
google::protobuf::int32 model_count_;
271 double real_time_factor_;
272 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
281 #pragma GCC diagnostic push
282 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
288 return this != internal_default_instance() && header_ != NULL;
290 inline const ::gz::msgs::Header& WorldStatistics::_internal_header()
const {
294 const ::gz::msgs::Header* p = header_;
308 if (header_ == NULL) {
309 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
316 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
317 if (message_arena == NULL) {
318 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
321 ::google::protobuf::Arena* submessage_arena = NULL;
322 if (message_arena != submessage_arena) {
323 header = ::google::protobuf::internal::GetOwnedMessage(
324 message_arena, header, submessage_arena);
336 return this != internal_default_instance() && sim_time_ != NULL;
338 inline const ::gz::msgs::Time& WorldStatistics::_internal_sim_time()
const {
342 const ::gz::msgs::Time* p = sim_time_;
344 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
356 if (sim_time_ == NULL) {
357 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
364 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
365 if (message_arena == NULL) {
366 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(sim_time_);
369 ::google::protobuf::Arena* submessage_arena = NULL;
370 if (message_arena != submessage_arena) {
371 sim_time = ::google::protobuf::internal::GetOwnedMessage(
372 message_arena, sim_time, submessage_arena);
378 sim_time_ = sim_time;
384 return this != internal_default_instance() && pause_time_ != NULL;
386 inline const ::gz::msgs::Time& WorldStatistics::_internal_pause_time()
const {
390 const ::gz::msgs::Time* p = pause_time_;
392 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
404 if (pause_time_ == NULL) {
405 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
412 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
413 if (message_arena == NULL) {
414 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pause_time_);
417 ::google::protobuf::Arena* submessage_arena = NULL;
418 if (message_arena != submessage_arena) {
419 pause_time = ::google::protobuf::internal::GetOwnedMessage(
420 message_arena, pause_time, submessage_arena);
426 pause_time_ = pause_time;
432 return this != internal_default_instance() && real_time_ != NULL;
434 inline const ::gz::msgs::Time& WorldStatistics::_internal_real_time()
const {
438 const ::gz::msgs::Time* p = real_time_;
440 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
452 if (real_time_ == NULL) {
453 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
460 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
461 if (message_arena == NULL) {
462 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(real_time_);
465 ::google::protobuf::Arena* submessage_arena = NULL;
466 if (message_arena != submessage_arena) {
467 real_time = ::google::protobuf::internal::GetOwnedMessage(
468 message_arena, real_time, submessage_arena);
474 real_time_ = real_time;
494 iterations_ = GOOGLE_ULONGLONG(0);
516 model_count_ = value;
522 return this != internal_default_instance() && log_playback_stats_ != NULL;
524 inline const ::gz::msgs::LogPlaybackStatistics& WorldStatistics::_internal_log_playback_stats()
const {
525 return *log_playback_stats_;
528 const ::gz::msgs::LogPlaybackStatistics* p = log_playback_stats_;
537 log_playback_stats_ = NULL;
542 if (log_playback_stats_ == NULL) {
543 auto* p = CreateMaybeMessage<::gz::msgs::LogPlaybackStatistics>(GetArenaNoVirtual());
544 log_playback_stats_ = p;
547 return log_playback_stats_;
550 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
551 if (message_arena == NULL) {
552 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(log_playback_stats_);
554 if (log_playback_stats) {
555 ::google::protobuf::Arena* submessage_arena = NULL;
556 if (message_arena != submessage_arena) {
557 log_playback_stats = ::google::protobuf::internal::GetOwnedMessage(
558 message_arena, log_playback_stats, submessage_arena);
564 log_playback_stats_ = log_playback_stats;
570 real_time_factor_ = 0;
574 return real_time_factor_;
578 real_time_factor_ = value;
584 return this != internal_default_instance() && step_size_ != NULL;
586 inline const ::gz::msgs::Time& WorldStatistics::_internal_step_size()
const {
590 const ::gz::msgs::Time* p = step_size_;
592 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
604 if (step_size_ == NULL) {
605 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
612 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
613 if (message_arena == NULL) {
614 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(step_size_);
617 ::google::protobuf::Arena* submessage_arena = NULL;
618 if (message_arena != submessage_arena) {
619 step_size = ::google::protobuf::internal::GetOwnedMessage(
620 message_arena, step_size, submessage_arena);
626 step_size_ = step_size;
645 #pragma GCC diagnostic pop
655 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fstats_2eproto