Ignition Msgs

API Reference

5.8.1
duration.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/duration.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fduration_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fduration_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
35 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fduration_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
50 namespace internal {
51 class AnyMetadata;
52 } // namespace internal
53 PROTOBUF_NAMESPACE_CLOSE
54 
55 // Internal implementation detail -- do not use these members.
56 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fduration_2eproto {
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
63  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
64  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
66 };
67 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fduration_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class Duration;
71 class DurationDefaultTypeInternal;
72 IGNITION_MSGS_VISIBLE extern DurationDefaultTypeInternal _Duration_default_instance_;
73 } // namespace msgs
74 } // namespace ignition
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Duration* Arena::CreateMaybeMessage<::ignition::msgs::Duration>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
78 namespace ignition {
79 namespace msgs {
80 
81 // ===================================================================
82 
83 class IGNITION_MSGS_VISIBLE Duration PROTOBUF_FINAL :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Duration) */ {
85  public:
86  inline Duration() : Duration(nullptr) {}
87  virtual ~Duration();
88 
89  Duration(const Duration& from);
90  Duration(Duration&& from) noexcept
91  : Duration() {
92  *this = ::std::move(from);
93  }
94 
95  inline Duration& operator=(const Duration& from) {
96  CopyFrom(from);
97  return *this;
98  }
99  inline Duration& operator=(Duration&& from) noexcept {
100  if (GetArena() == from.GetArena()) {
101  if (this != &from) InternalSwap(&from);
102  } else {
103  CopyFrom(from);
104  }
105  return *this;
106  }
107 
108  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
109  return GetDescriptor();
110  }
111  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
112  return GetMetadataStatic().descriptor;
113  }
114  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
115  return GetMetadataStatic().reflection;
116  }
117  static const Duration& default_instance();
118 
119  static inline const Duration* internal_default_instance() {
120  return reinterpret_cast<const Duration*>(
122  }
123  static constexpr int kIndexInFileMessages =
124  0;
125 
126  friend void swap(Duration& a, Duration& b) {
127  a.Swap(&b);
128  }
129  inline void Swap(Duration* other) {
130  if (other == this) return;
131  if (GetArena() == other->GetArena()) {
132  InternalSwap(other);
133  } else {
134  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
135  }
136  }
137  void UnsafeArenaSwap(Duration* other) {
138  if (other == this) return;
139  GOOGLE_DCHECK(GetArena() == other->GetArena());
140  InternalSwap(other);
141  }
142 
143  // implements Message ----------------------------------------------
144 
145  inline Duration* New() const final {
146  return CreateMaybeMessage<Duration>(nullptr);
147  }
148 
149  Duration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
150  return CreateMaybeMessage<Duration>(arena);
151  }
152  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
153  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
154  void CopyFrom(const Duration& from);
155  void MergeFrom(const Duration& from);
156  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
157  bool IsInitialized() const final;
158 
159  size_t ByteSizeLong() const final;
160  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
161  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
162  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
163  int GetCachedSize() const final { return _cached_size_.Get(); }
164 
165  private:
166  inline void SharedCtor();
167  inline void SharedDtor();
168  void SetCachedSize(int size) const final;
169  void InternalSwap(Duration* other);
170  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172  return "ignition.msgs.Duration";
173  }
174  protected:
175  explicit Duration(::PROTOBUF_NAMESPACE_ID::Arena* arena);
176  private:
177  static void ArenaDtor(void* object);
178  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179  public:
180 
181  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
182  private:
183  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
184  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fduration_2eproto);
185  return ::descriptor_table_ignition_2fmsgs_2fduration_2eproto.file_level_metadata[kIndexInFileMessages];
186  }
187 
188  public:
189 
190  // nested types ----------------------------------------------------
191 
192  // accessors -------------------------------------------------------
193 
194  enum : int {
195  kHeaderFieldNumber = 1,
196  kSecFieldNumber = 2,
197  kNsecFieldNumber = 3,
198  };
199  // .ignition.msgs.Header header = 1;
200  bool has_header() const;
201  private:
202  bool _internal_has_header() const;
203  public:
204  void clear_header();
205  const ::ignition::msgs::Header& header() const;
206  ::ignition::msgs::Header* release_header();
207  ::ignition::msgs::Header* mutable_header();
208  void set_allocated_header(::ignition::msgs::Header* header);
209  private:
210  const ::ignition::msgs::Header& _internal_header() const;
211  ::ignition::msgs::Header* _internal_mutable_header();
212  public:
214  ::ignition::msgs::Header* header);
215  ::ignition::msgs::Header* unsafe_arena_release_header();
216 
217  // int64 sec = 2;
218  void clear_sec();
219  ::PROTOBUF_NAMESPACE_ID::int64 sec() const;
220  void set_sec(::PROTOBUF_NAMESPACE_ID::int64 value);
221  private:
222  ::PROTOBUF_NAMESPACE_ID::int64 _internal_sec() const;
223  void _internal_set_sec(::PROTOBUF_NAMESPACE_ID::int64 value);
224  public:
225 
226  // int32 nsec = 3;
227  void clear_nsec();
228  ::PROTOBUF_NAMESPACE_ID::int32 nsec() const;
229  void set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value);
230  private:
231  ::PROTOBUF_NAMESPACE_ID::int32 _internal_nsec() const;
232  void _internal_set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value);
233  public:
234 
235  // @@protoc_insertion_point(class_scope:ignition.msgs.Duration)
236  private:
237  class _Internal;
238 
239  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
240  typedef void InternalArenaConstructable_;
241  typedef void DestructorSkippable_;
242  ::ignition::msgs::Header* header_;
243  ::PROTOBUF_NAMESPACE_ID::int64 sec_;
244  ::PROTOBUF_NAMESPACE_ID::int32 nsec_;
245  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
246  friend struct ::TableStruct_ignition_2fmsgs_2fduration_2eproto;
247 };
248 // ===================================================================
249 
250 
251 // ===================================================================
252 
253 #ifdef __GNUC__
254  #pragma GCC diagnostic push
255  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
256 #endif // __GNUC__
257 // Duration
258 
259 // .ignition.msgs.Header header = 1;
260 inline bool Duration::_internal_has_header() const {
261  return this != internal_default_instance() && header_ != nullptr;
262 }
263 inline bool Duration::has_header() const {
264  return _internal_has_header();
265 }
266 inline const ::ignition::msgs::Header& Duration::_internal_header() const {
267  const ::ignition::msgs::Header* p = header_;
268  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
270 }
271 inline const ::ignition::msgs::Header& Duration::header() const {
272  // @@protoc_insertion_point(field_get:ignition.msgs.Duration.header)
273  return _internal_header();
274 }
275 inline void Duration::unsafe_arena_set_allocated_header(
276  ::ignition::msgs::Header* header) {
277  if (GetArena() == nullptr) {
278  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
279  }
280  header_ = header;
281  if (header) {
282 
283  } else {
284 
285  }
286  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Duration.header)
287 }
288 inline ::ignition::msgs::Header* Duration::release_header() {
289 
290  ::ignition::msgs::Header* temp = header_;
291  header_ = nullptr;
292  if (GetArena() != nullptr) {
293  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
294  }
295  return temp;
296 }
297 inline ::ignition::msgs::Header* Duration::unsafe_arena_release_header() {
298  // @@protoc_insertion_point(field_release:ignition.msgs.Duration.header)
299 
300  ::ignition::msgs::Header* temp = header_;
301  header_ = nullptr;
302  return temp;
303 }
304 inline ::ignition::msgs::Header* Duration::_internal_mutable_header() {
305 
306  if (header_ == nullptr) {
307  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
308  header_ = p;
309  }
310  return header_;
311 }
312 inline ::ignition::msgs::Header* Duration::mutable_header() {
313  // @@protoc_insertion_point(field_mutable:ignition.msgs.Duration.header)
314  return _internal_mutable_header();
315 }
316 inline void Duration::set_allocated_header(::ignition::msgs::Header* header) {
317  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
318  if (message_arena == nullptr) {
319  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
320  }
321  if (header) {
322  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
323  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
324  if (message_arena != submessage_arena) {
325  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
326  message_arena, header, submessage_arena);
327  }
328 
329  } else {
330 
331  }
332  header_ = header;
333  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Duration.header)
334 }
335 
336 // int64 sec = 2;
337 inline void Duration::clear_sec() {
338  sec_ = PROTOBUF_LONGLONG(0);
339 }
340 inline ::PROTOBUF_NAMESPACE_ID::int64 Duration::_internal_sec() const {
341  return sec_;
342 }
343 inline ::PROTOBUF_NAMESPACE_ID::int64 Duration::sec() const {
344  // @@protoc_insertion_point(field_get:ignition.msgs.Duration.sec)
345  return _internal_sec();
346 }
347 inline void Duration::_internal_set_sec(::PROTOBUF_NAMESPACE_ID::int64 value) {
348 
349  sec_ = value;
350 }
351 inline void Duration::set_sec(::PROTOBUF_NAMESPACE_ID::int64 value) {
352  _internal_set_sec(value);
353  // @@protoc_insertion_point(field_set:ignition.msgs.Duration.sec)
354 }
355 
356 // int32 nsec = 3;
357 inline void Duration::clear_nsec() {
358  nsec_ = 0;
359 }
360 inline ::PROTOBUF_NAMESPACE_ID::int32 Duration::_internal_nsec() const {
361  return nsec_;
362 }
363 inline ::PROTOBUF_NAMESPACE_ID::int32 Duration::nsec() const {
364  // @@protoc_insertion_point(field_get:ignition.msgs.Duration.nsec)
365  return _internal_nsec();
366 }
367 inline void Duration::_internal_set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value) {
368 
369  nsec_ = value;
370 }
371 inline void Duration::set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value) {
372  _internal_set_nsec(value);
373  // @@protoc_insertion_point(field_set:ignition.msgs.Duration.nsec)
374 }
375 
376 #ifdef __GNUC__
377  #pragma GCC diagnostic pop
378 #endif // __GNUC__
379 
384 // @@protoc_insertion_point(namespace_scope)
385 
386 } // namespace msgs
387 } // namespace ignition
388 
389 #ifdef _MSC_VER
390 #pragma warning(pop)
391 #endif
392 // @@protoc_insertion_point(global_scope)
393 
394 #include <google/protobuf/port_undef.inc>
395 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fduration_2eproto
Duration & operator=(const Duration &from)
Definition: duration.pb.h:95
void UnsafeArenaSwap(Duration *other)
Definition: duration.pb.h:137
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: duration.pb.h:114
::PROTOBUF_NAMESPACE_ID::int64 sec() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Duration * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: duration.pb.h:149
::PROTOBUF_NAMESPACE_ID::int32 nsec() const
::ignition::msgs::Header * release_header()
void Swap(Duration *other)
Definition: duration.pb.h:129
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: duration.pb.h:108
friend void swap(Duration &a, Duration &b)
Definition: duration.pb.h:126
Duration(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const Duration & default_instance()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Duration * New() const final
Definition: duration.pb.h:145
Duration(Duration &&from) noexcept
Definition: duration.pb.h:90
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value)
void set_allocated_header(::ignition::msgs::Header *header)
void MergeFrom(const Duration &from)
static const Duration * internal_default_instance()
Definition: duration.pb.h:119
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: duration.pb.h:111
Duration & operator=(Duration &&from) noexcept
Definition: duration.pb.h:99
void set_sec(::PROTOBUF_NAMESPACE_ID::int64 value)
void CopyFrom(const Duration &from)
Duration()
Definition: duration.pb.h:86
const ::ignition::msgs::Header & header() const
Duration(const Duration &from)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fduration_2eproto
IGNITION_MSGS_VISIBLE DurationDefaultTypeInternal _Duration_default_instance_
std::unique_ptr< Duration > DurationUniquePtr
Definition: duration.pb.h:380
std::shared_ptr< const Duration > ConstDurationSharedPtr
Definition: duration.pb.h:383
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Duration > ConstDurationUniquePtr
Definition: duration.pb.h:381
std::shared_ptr< Duration > DurationSharedPtr
Definition: duration.pb.h:382
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)