4 #ifndef PROTOBUF_ignition_2fmsgs_2fdiagnostics_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fdiagnostics_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> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 54 class Diagnostics_DiagTime;
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;
120 static const int kNameFieldNumber = 1;
121 const ::std::string& name()
const;
122 void set_name(const ::std::string& value);
123 void set_name(
const char* value);
124 void set_name(
const char* value,
size_t size);
130 bool has_elapsed()
const;
131 void clear_elapsed();
132 static const int kElapsedFieldNumber = 2;
133 const ::ignition::msgs::Time& elapsed()
const;
139 bool has_wall()
const;
141 static const int kWallFieldNumber = 3;
142 const ::ignition::msgs::Time& wall()
const;
150 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
151 bool _is_default_instance_;
152 ::google::protobuf::internal::ArenaStringPtr name_;
155 mutable int _cached_size_;
160 void InitAsDefaultInstance();
165 class IGNITION_MSGS_VISIBLE
Diagnostics :
public ::google::protobuf::Message {
177 static const ::google::protobuf::Descriptor* descriptor();
186 Diagnostics* New(::google::protobuf::Arena* arena)
const;
187 void CopyFrom(const ::google::protobuf::Message& from);
188 void MergeFrom(const ::google::protobuf::Message& from);
192 bool IsInitialized()
const;
194 int ByteSize()
const;
195 bool MergePartialFromCodedStream(
196 ::google::protobuf::io::CodedInputStream* input);
197 void SerializeWithCachedSizes(
198 ::google::protobuf::io::CodedOutputStream* output)
const;
199 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
200 bool deterministic, ::google::protobuf::uint8* output)
const;
202 return InternalSerializeWithCachedSizesToArray(
false, output);
208 void SetCachedSize(
int size)
const;
211 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
212 return _internal_metadata_.arena();
214 inline void* MaybeArenaPtr()
const {
215 return _internal_metadata_.raw_arena_ptr();
219 ::google::protobuf::Metadata GetMetadata()
const;
228 bool has_header()
const;
230 static const int kHeaderFieldNumber = 1;
231 const ::ignition::msgs::Header& header()
const;
237 int time_size()
const;
239 static const int kTimeFieldNumber = 2;
240 const ::ignition::msgs::Diagnostics_DiagTime& time(
int index)
const;
243 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Diagnostics_DiagTime >*
245 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Diagnostics_DiagTime >&
249 bool has_real_time()
const;
250 void clear_real_time();
251 static const int kRealTimeFieldNumber = 3;
252 const ::ignition::msgs::Time& real_time()
const;
258 bool has_sim_time()
const;
259 void clear_sim_time();
260 static const int kSimTimeFieldNumber = 4;
261 const ::ignition::msgs::Time& sim_time()
const;
267 void clear_real_time_factor();
268 static const int kRealTimeFactorFieldNumber = 5;
269 double real_time_factor()
const;
270 void set_real_time_factor(
double value);
275 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
276 bool _is_default_instance_;
278 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Diagnostics_DiagTime > time_;
281 double real_time_factor_;
282 mutable int _cached_size_;
287 void InitAsDefaultInstance();
295 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 300 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
304 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
308 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
313 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
318 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
319 ::
std::string(reinterpret_cast<const char*>(value), size));
325 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
330 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
338 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
344 return !_is_default_instance_ && elapsed_ != NULL;
347 if (GetArenaNoVirtual() == NULL && elapsed_ != NULL)
delete elapsed_;
352 return elapsed_ != NULL ? *elapsed_ : *default_instance_->elapsed_;
356 if (elapsed_ == NULL) {
357 elapsed_ = new ::ignition::msgs::Time;
382 return !_is_default_instance_ && wall_ != NULL;
385 if (GetArenaNoVirtual() == NULL && wall_ != NULL)
delete wall_;
390 return wall_ != NULL ? *wall_ : *default_instance_->wall_;
395 wall_ = new ::ignition::msgs::Time;
424 return !_is_default_instance_ && header_ != NULL;
427 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
432 return header_ != NULL ? *header_ : *default_instance_->header_;
436 if (header_ == NULL) {
437 header_ = new ::ignition::msgs::Header;
469 return time_.Get(index);
473 return time_.Mutable(index);
479 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Diagnostics_DiagTime >*
484 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Diagnostics_DiagTime >&
492 return !_is_default_instance_ && real_time_ != NULL;
495 if (GetArenaNoVirtual() == NULL && real_time_ != NULL)
delete real_time_;
500 return real_time_ != NULL ? *real_time_ : *default_instance_->real_time_;
504 if (real_time_ == NULL) {
505 real_time_ = new ::ignition::msgs::Time;
519 real_time_ = real_time;
530 return !_is_default_instance_ && sim_time_ != NULL;
533 if (GetArenaNoVirtual() == NULL && sim_time_ != NULL)
delete sim_time_;
538 return sim_time_ != NULL ? *sim_time_ : *default_instance_->sim_time_;
542 if (sim_time_ == NULL) {
543 sim_time_ = new ::ignition::msgs::Time;
557 sim_time_ = sim_time;
568 real_time_factor_ = 0;
572 return real_time_factor_;
576 real_time_factor_ = value;
580 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 598 #endif // PROTOBUF_ignition_2fmsgs_2fdiagnostics_2eproto__INCLUDED int GetCachedSize() const
Definition: diagnostics.pb.h:204
void clear_header()
Definition: diagnostics.pb.h:426
void protobuf_AssignDesc_ignition_2fmsgs_2fdiagnostics_2eproto()
::ignition::msgs::Time * release_elapsed()
Definition: diagnostics.pb.h:362
Diagnostics_DiagTime * New() const
Definition: diagnostics.pb.h:77
std::shared_ptr< const Diagnostics > ConstDiagnosticsSharedPtr
Definition: diagnostics.pb.h:587
::ignition::msgs::Time * mutable_wall()
Definition: diagnostics.pb.h:392
bool has_real_time() const
Definition: diagnostics.pb.h:491
::ignition::msgs::Time * mutable_sim_time()
Definition: diagnostics.pb.h:540
const ::std::string & name() const
Definition: diagnostics.pb.h:302
std::shared_ptr< Diagnostics > DiagnosticsSharedPtr
Definition: diagnostics.pb.h:586
::ignition::msgs::Time * release_real_time()
Definition: diagnostics.pb.h:510
const ::ignition::msgs::Time & elapsed() const
Definition: diagnostics.pb.h:350
void clear_real_time()
Definition: diagnostics.pb.h:494
int time_size() const
Definition: diagnostics.pb.h:461
void clear_time()
Definition: diagnostics.pb.h:464
::ignition::msgs::Header * release_header()
Definition: diagnostics.pb.h:442
void clear_wall()
Definition: diagnostics.pb.h:384
::ignition::msgs::Header * mutable_header()
Definition: diagnostics.pb.h:434
::ignition::msgs::Time * mutable_real_time()
Definition: diagnostics.pb.h:502
void set_allocated_name(::std::string *name)
Definition: diagnostics.pb.h:332
void set_allocated_header(::ignition::msgs::Header *header)
Definition: diagnostics.pb.h:449
void clear_name()
Definition: diagnostics.pb.h:299
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Diagnostics_DiagTime > & time() const
Definition: diagnostics.pb.h:485
::ignition::msgs::Time * release_sim_time()
Definition: diagnostics.pb.h:548
bool has_sim_time() const
Definition: diagnostics.pb.h:529
bool has_wall() const
Definition: diagnostics.pb.h:381
void set_allocated_wall(::ignition::msgs::Time *wall)
Definition: diagnostics.pb.h:407
Diagnostics * New() const
Definition: diagnostics.pb.h:184
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: diagnostics.pb.h:94
const ::ignition::msgs::Time & sim_time() const
Definition: diagnostics.pb.h:536
void set_allocated_sim_time(::ignition::msgs::Time *sim_time)
Definition: diagnostics.pb.h:555
void set_name(const ::std::string &value)
Definition: diagnostics.pb.h:306
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: diagnostics.pb.h:201
Definition: diagnostics.pb.h:58
Diagnostics & operator=(const Diagnostics &from)
Definition: diagnostics.pb.h:172
bool has_header() const
Definition: diagnostics.pb.h:423
const ::ignition::msgs::Time & wall() const
Definition: diagnostics.pb.h:388
const ::ignition::msgs::Time & real_time() const
Definition: diagnostics.pb.h:498
void clear_real_time_factor()
Definition: diagnostics.pb.h:567
const ::ignition::msgs::Header & header() const
Definition: diagnostics.pb.h:430
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fdiagnostics_2eproto()
Diagnostics_DiagTime & operator=(const Diagnostics_DiagTime &from)
Definition: diagnostics.pb.h:65
bool has_elapsed() const
Definition: diagnostics.pb.h:343
Definition: diagnostics.pb.h:165
void clear_sim_time()
Definition: diagnostics.pb.h:532
double real_time_factor() const
Definition: diagnostics.pb.h:570
void protobuf_ShutdownFile_ignition_2fmsgs_2fdiagnostics_2eproto()
int GetCachedSize() const
Definition: diagnostics.pb.h:97
std::unique_ptr< Diagnostics > DiagnosticsUniquePtr
Definition: diagnostics.pb.h:584
void set_allocated_real_time(::ignition::msgs::Time *real_time)
Definition: diagnostics.pb.h:517
void set_real_time_factor(double value)
Definition: diagnostics.pb.h:574
::ignition::msgs::Diagnostics_DiagTime * add_time()
Definition: diagnostics.pb.h:475
::ignition::msgs::Time * mutable_elapsed()
Definition: diagnostics.pb.h:354
::ignition::msgs::Time * release_wall()
Definition: diagnostics.pb.h:400
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Diagnostics_DiagTime > * mutable_time()
Definition: diagnostics.pb.h:480
void clear_elapsed()
Definition: diagnostics.pb.h:346
Diagnostics_DiagTime DiagTime
Definition: diagnostics.pb.h:223
std::unique_ptr< const Diagnostics > ConstDiagnosticsUniquePtr
Definition: diagnostics.pb.h:585
void set_allocated_elapsed(::ignition::msgs::Time *elapsed)
Definition: diagnostics.pb.h:369
::std::string * release_name()
Definition: diagnostics.pb.h:327
::std::string * mutable_name()
Definition: diagnostics.pb.h:322