4 #ifndef PROTOBUF_ignition_2fmsgs_2fworld_5fstats_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fworld_5fstats_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 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 3000000 < 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/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/unknown_field_set.h> 34 #pragma GCC system_header 37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 40 #include <sys/sysmacros.h> 54 class WorldStatistics;
58 class IGNITION_MSGS_VISIBLE
WorldStatistics :
public ::google::protobuf::Message {
70 static const ::google::protobuf::Descriptor* descriptor();
80 void CopyFrom(const ::google::protobuf::Message& from);
81 void MergeFrom(const ::google::protobuf::Message& from);
85 bool IsInitialized()
const;
88 bool MergePartialFromCodedStream(
89 ::google::protobuf::io::CodedInputStream* input);
90 void SerializeWithCachedSizes(
91 ::google::protobuf::io::CodedOutputStream* output)
const;
92 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93 bool deterministic, ::google::protobuf::uint8* output)
const;
95 return InternalSerializeWithCachedSizesToArray(
false, output);
101 void SetCachedSize(
int size)
const;
104 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
105 return _internal_metadata_.arena();
107 inline void* MaybeArenaPtr()
const {
108 return _internal_metadata_.raw_arena_ptr();
112 ::google::protobuf::Metadata GetMetadata()
const;
119 bool has_header()
const;
121 static const int kHeaderFieldNumber = 1;
122 const ::ignition::msgs::Header& header()
const;
128 bool has_sim_time()
const;
129 void clear_sim_time();
130 static const int kSimTimeFieldNumber = 2;
131 const ::ignition::msgs::Time& sim_time()
const;
137 bool has_pause_time()
const;
138 void clear_pause_time();
139 static const int kPauseTimeFieldNumber = 3;
140 const ::ignition::msgs::Time& pause_time()
const;
146 bool has_real_time()
const;
147 void clear_real_time();
148 static const int kRealTimeFieldNumber = 4;
149 const ::ignition::msgs::Time& real_time()
const;
156 static const int kPausedFieldNumber = 5;
158 void set_paused(
bool value);
161 void clear_iterations();
162 static const int kIterationsFieldNumber = 6;
163 ::google::protobuf::uint64 iterations()
const;
164 void set_iterations(::google::protobuf::uint64 value);
167 void clear_model_count();
168 static const int kModelCountFieldNumber = 7;
169 ::google::protobuf::int32 model_count()
const;
170 void set_model_count(::google::protobuf::int32 value);
173 bool has_log_playback_stats()
const;
174 void clear_log_playback_stats();
175 static const int kLogPlaybackStatsFieldNumber = 8;
176 const ::ignition::msgs::LogPlaybackStatistics& log_playback_stats()
const;
182 void clear_real_time_factor();
183 static const int kRealTimeFactorFieldNumber = 9;
184 double real_time_factor()
const;
185 void set_real_time_factor(
double value);
188 bool has_step_size()
const;
189 void clear_step_size();
190 static const int kStepSizeFieldNumber = 10;
191 const ::ignition::msgs::Time& step_size()
const;
199 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
200 bool _is_default_instance_;
205 ::google::protobuf::uint64 iterations_;
207 ::google::protobuf::int32 model_count_;
209 double real_time_factor_;
211 mutable int _cached_size_;
216 void InitAsDefaultInstance();
224 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 229 return !_is_default_instance_ && header_ != NULL;
232 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
237 return header_ != NULL ? *header_ : *default_instance_->header_;
241 if (header_ == NULL) {
242 header_ = new ::ignition::msgs::Header;
267 return !_is_default_instance_ && sim_time_ != NULL;
270 if (GetArenaNoVirtual() == NULL && sim_time_ != NULL)
delete sim_time_;
275 return sim_time_ != NULL ? *sim_time_ : *default_instance_->sim_time_;
279 if (sim_time_ == NULL) {
280 sim_time_ = new ::ignition::msgs::Time;
294 sim_time_ = sim_time;
305 return !_is_default_instance_ && pause_time_ != NULL;
308 if (GetArenaNoVirtual() == NULL && pause_time_ != NULL)
delete pause_time_;
313 return pause_time_ != NULL ? *pause_time_ : *default_instance_->pause_time_;
317 if (pause_time_ == NULL) {
318 pause_time_ = new ::ignition::msgs::Time;
332 pause_time_ = pause_time;
343 return !_is_default_instance_ && real_time_ != NULL;
346 if (GetArenaNoVirtual() == NULL && real_time_ != NULL)
delete real_time_;
351 return real_time_ != NULL ? *real_time_ : *default_instance_->real_time_;
355 if (real_time_ == NULL) {
356 real_time_ = new ::ignition::msgs::Time;
370 real_time_ = real_time;
395 iterations_ = GOOGLE_ULONGLONG(0);
417 model_count_ = value;
423 return !_is_default_instance_ && log_playback_stats_ != NULL;
426 if (GetArenaNoVirtual() == NULL && log_playback_stats_ != NULL)
delete log_playback_stats_;
427 log_playback_stats_ = NULL;
431 return log_playback_stats_ != NULL ? *log_playback_stats_ : *default_instance_->log_playback_stats_;
435 if (log_playback_stats_ == NULL) {
436 log_playback_stats_ = new ::ignition::msgs::LogPlaybackStatistics;
439 return log_playback_stats_;
445 log_playback_stats_ = NULL;
449 delete log_playback_stats_;
450 log_playback_stats_ = log_playback_stats;
451 if (log_playback_stats) {
461 real_time_factor_ = 0;
465 return real_time_factor_;
469 real_time_factor_ = value;
475 return !_is_default_instance_ && step_size_ != NULL;
478 if (GetArenaNoVirtual() == NULL && step_size_ != NULL)
delete step_size_;
483 return step_size_ != NULL ? *step_size_ : *default_instance_->step_size_;
487 if (step_size_ == NULL) {
488 step_size_ = new ::ignition::msgs::Time;
502 step_size_ = step_size;
511 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 527 #endif // PROTOBUF_ignition_2fmsgs_2fworld_5fstats_2eproto__INCLUDED void clear_real_time_factor()
Definition: world_stats.pb.h:460
void protobuf_AssignDesc_ignition_2fmsgs_2fworld_5fstats_2eproto()
::ignition::msgs::Time * release_real_time()
Definition: world_stats.pb.h:361
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: world_stats.pb.h:94
void set_allocated_real_time(::ignition::msgs::Time *real_time)
Definition: world_stats.pb.h:368
void clear_paused()
Definition: world_stats.pb.h:380
bool has_pause_time() const
Definition: world_stats.pb.h:304
WorldStatistics * New() const
Definition: world_stats.pb.h:77
::ignition::msgs::Header * release_header()
Definition: world_stats.pb.h:247
Definition: world_stats.pb.h:58
::ignition::msgs::LogPlaybackStatistics * mutable_log_playback_stats()
Definition: world_stats.pb.h:433
void protobuf_ShutdownFile_ignition_2fmsgs_2fworld_5fstats_2eproto()
void clear_step_size()
Definition: world_stats.pb.h:477
std::shared_ptr< const WorldStatistics > ConstWorldStatisticsSharedPtr
Definition: world_stats.pb.h:516
void clear_header()
Definition: world_stats.pb.h:231
::ignition::msgs::Time * mutable_sim_time()
Definition: world_stats.pb.h:277
bool paused() const
Definition: world_stats.pb.h:383
WorldStatistics & operator=(const WorldStatistics &from)
Definition: world_stats.pb.h:65
bool has_header() const
Definition: world_stats.pb.h:228
void set_paused(bool value)
Definition: world_stats.pb.h:387
const ::ignition::msgs::Header & header() const
Definition: world_stats.pb.h:235
bool has_sim_time() const
Definition: world_stats.pb.h:266
::ignition::msgs::Time * release_sim_time()
Definition: world_stats.pb.h:285
double real_time_factor() const
Definition: world_stats.pb.h:463
::ignition::msgs::Time * mutable_real_time()
Definition: world_stats.pb.h:353
void set_allocated_sim_time(::ignition::msgs::Time *sim_time)
Definition: world_stats.pb.h:292
const ::ignition::msgs::Time & sim_time() const
Definition: world_stats.pb.h:273
::google::protobuf::int32 model_count() const
Definition: world_stats.pb.h:411
void clear_log_playback_stats()
Definition: world_stats.pb.h:425
void clear_pause_time()
Definition: world_stats.pb.h:307
::ignition::msgs::Time * mutable_pause_time()
Definition: world_stats.pb.h:315
void set_allocated_pause_time(::ignition::msgs::Time *pause_time)
Definition: world_stats.pb.h:330
::ignition::msgs::Time * release_step_size()
Definition: world_stats.pb.h:493
::ignition::msgs::Time * mutable_step_size()
Definition: world_stats.pb.h:485
void clear_sim_time()
Definition: world_stats.pb.h:269
void set_allocated_log_playback_stats(::ignition::msgs::LogPlaybackStatistics *log_playback_stats)
Definition: world_stats.pb.h:448
const ::ignition::msgs::Time & pause_time() const
Definition: world_stats.pb.h:311
::ignition::msgs::LogPlaybackStatistics * release_log_playback_stats()
Definition: world_stats.pb.h:441
int GetCachedSize() const
Definition: world_stats.pb.h:97
void set_allocated_header(::ignition::msgs::Header *header)
Definition: world_stats.pb.h:254
::ignition::msgs::Time * release_pause_time()
Definition: world_stats.pb.h:323
void set_iterations(::google::protobuf::uint64 value)
Definition: world_stats.pb.h:401
Definition: log_playback_stats.pb.h:57
const ::ignition::msgs::Time & real_time() const
Definition: world_stats.pb.h:349
void set_real_time_factor(double value)
Definition: world_stats.pb.h:467
void clear_real_time()
Definition: world_stats.pb.h:345
void set_allocated_step_size(::ignition::msgs::Time *step_size)
Definition: world_stats.pb.h:500
void clear_iterations()
Definition: world_stats.pb.h:394
bool has_log_playback_stats() const
Definition: world_stats.pb.h:422
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5fstats_2eproto()
std::shared_ptr< WorldStatistics > WorldStatisticsSharedPtr
Definition: world_stats.pb.h:515
std::unique_ptr< WorldStatistics > WorldStatisticsUniquePtr
Definition: world_stats.pb.h:513
void clear_model_count()
Definition: world_stats.pb.h:408
::google::protobuf::uint64 iterations() const
Definition: world_stats.pb.h:397
std::unique_ptr< const WorldStatistics > ConstWorldStatisticsUniquePtr
Definition: world_stats.pb.h:514
const ::ignition::msgs::LogPlaybackStatistics & log_playback_stats() const
Definition: world_stats.pb.h:429
const ::ignition::msgs::Time & step_size() const
Definition: world_stats.pb.h:481
void set_model_count(::google::protobuf::int32 value)
Definition: world_stats.pb.h:415
bool has_step_size() const
Definition: world_stats.pb.h:474
::ignition::msgs::Header * mutable_header()
Definition: world_stats.pb.h:239
bool has_real_time() const
Definition: world_stats.pb.h:342