Ignition Msgs

API Reference

5.6.0
clock.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/clock.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fclock_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fclock_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
30 #include "ignition/msgs/time.pb.h"
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fclock_2eproto();
52 
53 class Clock;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Clock : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Clock) */ {
58  public:
59  Clock();
60  virtual ~Clock();
61 
62  Clock(const Clock& from);
63 
64  inline Clock& operator=(const Clock& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Clock& default_instance();
71 
72  void Swap(Clock* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Clock* New() const { return New(NULL); }
77 
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);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() 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;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(Clock* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional .ignition.msgs.Time system = 2;
127  bool has_system() const;
128  void clear_system();
129  static const int kSystemFieldNumber = 2;
130  const ::ignition::msgs::Time& system() const;
131  ::ignition::msgs::Time* mutable_system();
132  ::ignition::msgs::Time* release_system();
133  void set_allocated_system(::ignition::msgs::Time* system);
134 
135  // optional .ignition.msgs.Time real = 3;
136  bool has_real() const;
137  void clear_real();
138  static const int kRealFieldNumber = 3;
139  const ::ignition::msgs::Time& real() const;
140  ::ignition::msgs::Time* mutable_real();
141  ::ignition::msgs::Time* release_real();
142  void set_allocated_real(::ignition::msgs::Time* real);
143 
144  // optional .ignition.msgs.Time sim = 4;
145  bool has_sim() const;
146  void clear_sim();
147  static const int kSimFieldNumber = 4;
148  const ::ignition::msgs::Time& sim() const;
149  ::ignition::msgs::Time* mutable_sim();
150  ::ignition::msgs::Time* release_sim();
151  void set_allocated_sim(::ignition::msgs::Time* sim);
152 
153  // @@protoc_insertion_point(class_scope:ignition.msgs.Clock)
154  private:
155 
156  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
157  bool _is_default_instance_;
158  ::ignition::msgs::Header* header_;
159  ::ignition::msgs::Time* system_;
160  ::ignition::msgs::Time* real_;
162  mutable int _cached_size_;
163  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fclock_2eproto();
166 
167  void InitAsDefaultInstance();
168  static Clock* default_instance_;
169 };
170 // ===================================================================
171 
172 
173 // ===================================================================
174 
175 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
176 // Clock
177 
178 // optional .ignition.msgs.Header header = 1;
179 inline bool Clock::has_header() const {
180  return !_is_default_instance_ && header_ != NULL;
181 }
182 inline void Clock::clear_header() {
183  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
184  header_ = NULL;
185 }
186 inline const ::ignition::msgs::Header& Clock::header() const {
187  // @@protoc_insertion_point(field_get:ignition.msgs.Clock.header)
188  return header_ != NULL ? *header_ : *default_instance_->header_;
189 }
190 inline ::ignition::msgs::Header* Clock::mutable_header() {
191 
192  if (header_ == NULL) {
193  header_ = new ::ignition::msgs::Header;
194  }
195  // @@protoc_insertion_point(field_mutable:ignition.msgs.Clock.header)
196  return header_;
197 }
198 inline ::ignition::msgs::Header* Clock::release_header() {
199  // @@protoc_insertion_point(field_release:ignition.msgs.Clock.header)
200 
201  ::ignition::msgs::Header* temp = header_;
202  header_ = NULL;
203  return temp;
204 }
206  delete header_;
207  header_ = header;
208  if (header) {
209 
210  } else {
211 
212  }
213  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Clock.header)
214 }
215 
216 // optional .ignition.msgs.Time system = 2;
217 inline bool Clock::has_system() const {
218  return !_is_default_instance_ && system_ != NULL;
219 }
220 inline void Clock::clear_system() {
221  if (GetArenaNoVirtual() == NULL && system_ != NULL) delete system_;
222  system_ = NULL;
223 }
224 inline const ::ignition::msgs::Time& Clock::system() const {
225  // @@protoc_insertion_point(field_get:ignition.msgs.Clock.system)
226  return system_ != NULL ? *system_ : *default_instance_->system_;
227 }
228 inline ::ignition::msgs::Time* Clock::mutable_system() {
229 
230  if (system_ == NULL) {
231  system_ = new ::ignition::msgs::Time;
232  }
233  // @@protoc_insertion_point(field_mutable:ignition.msgs.Clock.system)
234  return system_;
235 }
236 inline ::ignition::msgs::Time* Clock::release_system() {
237  // @@protoc_insertion_point(field_release:ignition.msgs.Clock.system)
238 
239  ::ignition::msgs::Time* temp = system_;
240  system_ = NULL;
241  return temp;
242 }
244  delete system_;
245  system_ = system;
246  if (system) {
247 
248  } else {
249 
250  }
251  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Clock.system)
252 }
253 
254 // optional .ignition.msgs.Time real = 3;
255 inline bool Clock::has_real() const {
256  return !_is_default_instance_ && real_ != NULL;
257 }
258 inline void Clock::clear_real() {
259  if (GetArenaNoVirtual() == NULL && real_ != NULL) delete real_;
260  real_ = NULL;
261 }
262 inline const ::ignition::msgs::Time& Clock::real() const {
263  // @@protoc_insertion_point(field_get:ignition.msgs.Clock.real)
264  return real_ != NULL ? *real_ : *default_instance_->real_;
265 }
266 inline ::ignition::msgs::Time* Clock::mutable_real() {
267 
268  if (real_ == NULL) {
269  real_ = new ::ignition::msgs::Time;
270  }
271  // @@protoc_insertion_point(field_mutable:ignition.msgs.Clock.real)
272  return real_;
273 }
274 inline ::ignition::msgs::Time* Clock::release_real() {
275  // @@protoc_insertion_point(field_release:ignition.msgs.Clock.real)
276 
277  ::ignition::msgs::Time* temp = real_;
278  real_ = NULL;
279  return temp;
280 }
282  delete real_;
283  real_ = real;
284  if (real) {
285 
286  } else {
287 
288  }
289  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Clock.real)
290 }
291 
292 // optional .ignition.msgs.Time sim = 4;
293 inline bool Clock::has_sim() const {
294  return !_is_default_instance_ && sim_ != NULL;
295 }
296 inline void Clock::clear_sim() {
297  if (GetArenaNoVirtual() == NULL && sim_ != NULL) delete sim_;
298  sim_ = NULL;
299 }
300 inline const ::ignition::msgs::Time& Clock::sim() const {
301  // @@protoc_insertion_point(field_get:ignition.msgs.Clock.sim)
302  return sim_ != NULL ? *sim_ : *default_instance_->sim_;
303 }
304 inline ::ignition::msgs::Time* Clock::mutable_sim() {
305 
306  if (sim_ == NULL) {
307  sim_ = new ::ignition::msgs::Time;
308  }
309  // @@protoc_insertion_point(field_mutable:ignition.msgs.Clock.sim)
310  return sim_;
311 }
312 inline ::ignition::msgs::Time* Clock::release_sim() {
313  // @@protoc_insertion_point(field_release:ignition.msgs.Clock.sim)
314 
315  ::ignition::msgs::Time* temp = sim_;
316  sim_ = NULL;
317  return temp;
318 }
320  delete sim_;
321  sim_ = sim;
322  if (sim) {
323 
324  } else {
325 
326  }
327  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Clock.sim)
328 }
329 
330 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
331 
336 // @@protoc_insertion_point(namespace_scope)
337 
338 } // namespace msgs
339 } // namespace ignition
340 
341 #ifdef _MSC_VER
342 #pragma warning(pop)
343 #endif
344 // @@protoc_insertion_point(global_scope)
345 
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
Definition: header.pb.h:161
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
STL class.
::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
Definition: time.pb.h:55
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: clock.pb.h:93