4 #ifndef PROTOBUF_ignition_2fmsgs_2fclock_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fclock_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> 57 class IGNITION_MSGS_VISIBLE
Clock :
public ::google::protobuf::Message {
69 static const ::google::protobuf::Descriptor* descriptor();
70 static const Clock& default_instance();
72 void Swap(
Clock* other);
78 Clock* New(::google::protobuf::Arena* arena)
const;
79 void CopyFrom(const ::google::protobuf::Message& from);
80 void MergeFrom(const ::google::protobuf::Message& from);
81 void CopyFrom(
const Clock& from);
82 void MergeFrom(
const Clock& from);
84 bool IsInitialized()
const;
87 bool MergePartialFromCodedStream(
88 ::google::protobuf::io::CodedInputStream* input);
89 void SerializeWithCachedSizes(
90 ::google::protobuf::io::CodedOutputStream* output)
const;
91 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92 bool deterministic, ::google::protobuf::uint8* output)
const;
94 return InternalSerializeWithCachedSizesToArray(
false, output);
100 void SetCachedSize(
int size)
const;
101 void InternalSwap(
Clock* other);
103 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
104 return _internal_metadata_.arena();
106 inline void* MaybeArenaPtr()
const {
107 return _internal_metadata_.raw_arena_ptr();
111 ::google::protobuf::Metadata GetMetadata()
const;
118 bool has_header()
const;
120 static const int kHeaderFieldNumber = 1;
121 const ::ignition::msgs::Header& header()
const;
127 bool has_system()
const;
129 static const int kSystemFieldNumber = 2;
130 const ::ignition::msgs::Time& system()
const;
136 bool has_real()
const;
138 static const int kRealFieldNumber = 3;
139 const ::ignition::msgs::Time& real()
const;
145 bool has_sim()
const;
147 static const int kSimFieldNumber = 4;
148 const ::ignition::msgs::Time& sim()
const;
156 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
157 bool _is_default_instance_;
162 mutable int _cached_size_;
167 void InitAsDefaultInstance();
168 static Clock* default_instance_;
175 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 180 return !_is_default_instance_ && header_ != NULL;
183 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
188 return header_ != NULL ? *header_ : *default_instance_->header_;
192 if (header_ == NULL) {
193 header_ = new ::ignition::msgs::Header;
218 return !_is_default_instance_ && system_ != NULL;
221 if (GetArenaNoVirtual() == NULL && system_ != NULL)
delete system_;
226 return system_ != NULL ? *system_ : *default_instance_->system_;
230 if (system_ == NULL) {
231 system_ = new ::ignition::msgs::Time;
256 return !_is_default_instance_ && real_ != NULL;
259 if (GetArenaNoVirtual() == NULL && real_ != NULL)
delete real_;
264 return real_ != NULL ? *real_ : *default_instance_->real_;
269 real_ = new ::ignition::msgs::Time;
294 return !_is_default_instance_ && sim_ != NULL;
297 if (GetArenaNoVirtual() == NULL && sim_ != NULL)
delete sim_;
302 return sim_ != NULL ? *sim_ : *default_instance_->sim_;
307 sim_ = new ::ignition::msgs::Time;
330 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 346 #endif // PROTOBUF_ignition_2fmsgs_2fclock_2eproto__INCLUDED std::shared_ptr< const Clock > ConstClockSharedPtr
Definition: clock.pb.h:335
const ::ignition::msgs::Time & sim() const
Definition: clock.pb.h:300
::ignition::msgs::Header * release_header()
Definition: clock.pb.h:198
void clear_header()
Definition: clock.pb.h:182
::ignition::msgs::Time * mutable_system()
Definition: clock.pb.h:228
Clock * New() const
Definition: clock.pb.h:76
void set_allocated_real(::ignition::msgs::Time *real)
Definition: clock.pb.h:281
void protobuf_AssignDesc_ignition_2fmsgs_2fclock_2eproto()
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fclock_2eproto()
void clear_sim()
Definition: clock.pb.h:296
Definition: clock.pb.h:57
std::unique_ptr< const Clock > ConstClockUniquePtr
Definition: clock.pb.h:333
bool has_header() const
Definition: clock.pb.h:179
bool has_real() const
Definition: clock.pb.h:255
void set_allocated_system(::ignition::msgs::Time *system)
Definition: clock.pb.h:243
bool has_system() const
Definition: clock.pb.h:217
const ::ignition::msgs::Header & header() const
Definition: clock.pb.h:186
::ignition::msgs::Time * release_sim()
Definition: clock.pb.h:312
Clock & operator=(const Clock &from)
Definition: clock.pb.h:64
void clear_real()
Definition: clock.pb.h:258
void set_allocated_header(::ignition::msgs::Header *header)
Definition: clock.pb.h:205
::ignition::msgs::Header * mutable_header()
Definition: clock.pb.h:190
void set_allocated_sim(::ignition::msgs::Time *sim)
Definition: clock.pb.h:319
::ignition::msgs::Time * mutable_real()
Definition: clock.pb.h:266
::ignition::msgs::Time * mutable_sim()
Definition: clock.pb.h:304
const ::ignition::msgs::Time & real() const
Definition: clock.pb.h:262
void protobuf_ShutdownFile_ignition_2fmsgs_2fclock_2eproto()
void clear_system()
Definition: clock.pb.h:220
std::unique_ptr< Clock > ClockUniquePtr
Definition: clock.pb.h:332
bool has_sim() const
Definition: clock.pb.h:293
::ignition::msgs::Time * release_system()
Definition: clock.pb.h:236
::ignition::msgs::Time * release_real()
Definition: clock.pb.h:274
const ::ignition::msgs::Time & system() const
Definition: clock.pb.h:224
std::shared_ptr< Clock > ClockSharedPtr
Definition: clock.pb.h:334
int GetCachedSize() const
Definition: clock.pb.h:96
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: clock.pb.h:93