Gazebo Msgs

API Reference

9.5.0
clock.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/clock.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fclock_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fclock_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/time.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fclock_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fclock_2eproto
50 namespace gz {
51 namespace msgs {
52 class Clock;
53 class ClockDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern ClockDefaultTypeInternal _Clock_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Clock* Arena::CreateMaybeMessage<::gz::msgs::Clock>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Clock : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Clock) */ {
68  public:
69  Clock();
70  virtual ~Clock();
71 
72  Clock(const Clock& from);
73 
74  inline Clock& operator=(const Clock& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Clock(Clock&& from) noexcept
80  : Clock() {
81  *this = ::std::move(from);
82  }
83 
84  inline Clock& operator=(Clock&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Clock& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Clock* internal_default_instance() {
98  return reinterpret_cast<const Clock*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Clock* other);
105  friend void swap(Clock& a, Clock& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Clock* New() const final {
112  return CreateMaybeMessage<Clock>(NULL);
113  }
114 
115  Clock* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Clock>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const Clock& from);
121  void MergeFrom(const Clock& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(Clock* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // .gz.msgs.Header header = 1;
155  bool has_header() const;
156  void clear_header();
157  static const int kHeaderFieldNumber = 1;
158  private:
159  const ::gz::msgs::Header& _internal_header() const;
160  public:
161  const ::gz::msgs::Header& header() const;
162  ::gz::msgs::Header* release_header();
163  ::gz::msgs::Header* mutable_header();
164  void set_allocated_header(::gz::msgs::Header* header);
165 
166  // .gz.msgs.Time system = 2;
167  bool has_system() const;
168  void clear_system();
169  static const int kSystemFieldNumber = 2;
170  private:
171  const ::gz::msgs::Time& _internal_system() const;
172  public:
173  const ::gz::msgs::Time& system() const;
174  ::gz::msgs::Time* release_system();
175  ::gz::msgs::Time* mutable_system();
176  void set_allocated_system(::gz::msgs::Time* system);
177 
178  // .gz.msgs.Time real = 3;
179  bool has_real() const;
180  void clear_real();
181  static const int kRealFieldNumber = 3;
182  private:
183  const ::gz::msgs::Time& _internal_real() const;
184  public:
185  const ::gz::msgs::Time& real() const;
186  ::gz::msgs::Time* release_real();
187  ::gz::msgs::Time* mutable_real();
188  void set_allocated_real(::gz::msgs::Time* real);
189 
190  // .gz.msgs.Time sim = 4;
191  bool has_sim() const;
192  void clear_sim();
193  static const int kSimFieldNumber = 4;
194  private:
195  const ::gz::msgs::Time& _internal_sim() const;
196  public:
197  const ::gz::msgs::Time& sim() const;
198  ::gz::msgs::Time* release_sim();
199  ::gz::msgs::Time* mutable_sim();
200  void set_allocated_sim(::gz::msgs::Time* sim);
201 
202  // @@protoc_insertion_point(class_scope:gz.msgs.Clock)
203  private:
204 
205  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
206  ::gz::msgs::Header* header_;
207  ::gz::msgs::Time* system_;
208  ::gz::msgs::Time* real_;
209  ::gz::msgs::Time* sim_;
210  mutable ::google::protobuf::internal::CachedSize _cached_size_;
211  friend struct ::protobuf_gz_2fmsgs_2fclock_2eproto::TableStruct;
212 };
213 // ===================================================================
214 
215 
216 // ===================================================================
217 
218 #ifdef __GNUC__
219  #pragma GCC diagnostic push
220  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
221 #endif // __GNUC__
222 // Clock
223 
224 // .gz.msgs.Header header = 1;
225 inline bool Clock::has_header() const {
226  return this != internal_default_instance() && header_ != NULL;
227 }
228 inline const ::gz::msgs::Header& Clock::_internal_header() const {
229  return *header_;
230 }
231 inline const ::gz::msgs::Header& Clock::header() const {
232  const ::gz::msgs::Header* p = header_;
233  // @@protoc_insertion_point(field_get:gz.msgs.Clock.header)
234  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
236 }
237 inline ::gz::msgs::Header* Clock::release_header() {
238  // @@protoc_insertion_point(field_release:gz.msgs.Clock.header)
239 
240  ::gz::msgs::Header* temp = header_;
241  header_ = NULL;
242  return temp;
243 }
244 inline ::gz::msgs::Header* Clock::mutable_header() {
245 
246  if (header_ == NULL) {
247  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
248  header_ = p;
249  }
250  // @@protoc_insertion_point(field_mutable:gz.msgs.Clock.header)
251  return header_;
252 }
254  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
255  if (message_arena == NULL) {
256  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
257  }
258  if (header) {
259  ::google::protobuf::Arena* submessage_arena = NULL;
260  if (message_arena != submessage_arena) {
261  header = ::google::protobuf::internal::GetOwnedMessage(
262  message_arena, header, submessage_arena);
263  }
264 
265  } else {
266 
267  }
268  header_ = header;
269  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Clock.header)
270 }
271 
272 // .gz.msgs.Time system = 2;
273 inline bool Clock::has_system() const {
274  return this != internal_default_instance() && system_ != NULL;
275 }
276 inline const ::gz::msgs::Time& Clock::_internal_system() const {
277  return *system_;
278 }
279 inline const ::gz::msgs::Time& Clock::system() const {
280  const ::gz::msgs::Time* p = system_;
281  // @@protoc_insertion_point(field_get:gz.msgs.Clock.system)
282  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
284 }
285 inline ::gz::msgs::Time* Clock::release_system() {
286  // @@protoc_insertion_point(field_release:gz.msgs.Clock.system)
287 
288  ::gz::msgs::Time* temp = system_;
289  system_ = NULL;
290  return temp;
291 }
292 inline ::gz::msgs::Time* Clock::mutable_system() {
293 
294  if (system_ == NULL) {
295  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
296  system_ = p;
297  }
298  // @@protoc_insertion_point(field_mutable:gz.msgs.Clock.system)
299  return system_;
300 }
302  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
303  if (message_arena == NULL) {
304  delete reinterpret_cast< ::google::protobuf::MessageLite*>(system_);
305  }
306  if (system) {
307  ::google::protobuf::Arena* submessage_arena = NULL;
308  if (message_arena != submessage_arena) {
309  system = ::google::protobuf::internal::GetOwnedMessage(
310  message_arena, system, submessage_arena);
311  }
312 
313  } else {
314 
315  }
316  system_ = system;
317  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Clock.system)
318 }
319 
320 // .gz.msgs.Time real = 3;
321 inline bool Clock::has_real() const {
322  return this != internal_default_instance() && real_ != NULL;
323 }
324 inline const ::gz::msgs::Time& Clock::_internal_real() const {
325  return *real_;
326 }
327 inline const ::gz::msgs::Time& Clock::real() const {
328  const ::gz::msgs::Time* p = real_;
329  // @@protoc_insertion_point(field_get:gz.msgs.Clock.real)
330  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
332 }
333 inline ::gz::msgs::Time* Clock::release_real() {
334  // @@protoc_insertion_point(field_release:gz.msgs.Clock.real)
335 
336  ::gz::msgs::Time* temp = real_;
337  real_ = NULL;
338  return temp;
339 }
340 inline ::gz::msgs::Time* Clock::mutable_real() {
341 
342  if (real_ == NULL) {
343  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
344  real_ = p;
345  }
346  // @@protoc_insertion_point(field_mutable:gz.msgs.Clock.real)
347  return real_;
348 }
350  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
351  if (message_arena == NULL) {
352  delete reinterpret_cast< ::google::protobuf::MessageLite*>(real_);
353  }
354  if (real) {
355  ::google::protobuf::Arena* submessage_arena = NULL;
356  if (message_arena != submessage_arena) {
357  real = ::google::protobuf::internal::GetOwnedMessage(
358  message_arena, real, submessage_arena);
359  }
360 
361  } else {
362 
363  }
364  real_ = real;
365  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Clock.real)
366 }
367 
368 // .gz.msgs.Time sim = 4;
369 inline bool Clock::has_sim() const {
370  return this != internal_default_instance() && sim_ != NULL;
371 }
372 inline const ::gz::msgs::Time& Clock::_internal_sim() const {
373  return *sim_;
374 }
375 inline const ::gz::msgs::Time& Clock::sim() const {
376  const ::gz::msgs::Time* p = sim_;
377  // @@protoc_insertion_point(field_get:gz.msgs.Clock.sim)
378  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
380 }
381 inline ::gz::msgs::Time* Clock::release_sim() {
382  // @@protoc_insertion_point(field_release:gz.msgs.Clock.sim)
383 
384  ::gz::msgs::Time* temp = sim_;
385  sim_ = NULL;
386  return temp;
387 }
388 inline ::gz::msgs::Time* Clock::mutable_sim() {
389 
390  if (sim_ == NULL) {
391  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
392  sim_ = p;
393  }
394  // @@protoc_insertion_point(field_mutable:gz.msgs.Clock.sim)
395  return sim_;
396 }
398  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
399  if (message_arena == NULL) {
400  delete reinterpret_cast< ::google::protobuf::MessageLite*>(sim_);
401  }
402  if (sim) {
403  ::google::protobuf::Arena* submessage_arena = NULL;
404  if (message_arena != submessage_arena) {
405  sim = ::google::protobuf::internal::GetOwnedMessage(
406  message_arena, sim, submessage_arena);
407  }
408 
409  } else {
410 
411  }
412  sim_ = sim;
413  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Clock.sim)
414 }
415 
416 #ifdef __GNUC__
417  #pragma GCC diagnostic pop
418 #endif // __GNUC__
419 
420 // @@protoc_insertion_point(namespace_scope)
421 
422 } // namespace msgs
423 } // namespace gz
424 
425 // @@protoc_insertion_point(global_scope)
426 
427 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fclock_2eproto