Ignition Msgs

API Reference

5.8.1
time.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/time.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2ftime_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2ftime_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>
34 #ifndef _MSC_VER
35 #pragma GCC system_header
36 #else
37 #pragma warning(push)
38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
39 #endif
40 #ifdef __linux__
41 #include <sys/sysmacros.h>
42 #endif
43 #include <memory>
44 #include <ignition/msgs/Export.hh>
45 // @@protoc_insertion_point(includes)
46 #include <google/protobuf/port_def.inc>
47 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2ftime_2eproto IGNITION_MSGS_VISIBLE
48 PROTOBUF_NAMESPACE_OPEN
49 namespace internal {
50 class AnyMetadata;
51 } // namespace internal
52 PROTOBUF_NAMESPACE_CLOSE
53 
54 // Internal implementation detail -- do not use these members.
55 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2ftime_2eproto {
56  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
63  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
64  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
65 };
66 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2ftime_2eproto;
67 namespace ignition {
68 namespace msgs {
69 class Time;
70 class TimeDefaultTypeInternal;
71 IGNITION_MSGS_VISIBLE extern TimeDefaultTypeInternal _Time_default_instance_;
72 } // namespace msgs
73 } // namespace ignition
74 PROTOBUF_NAMESPACE_OPEN
75 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Time* Arena::CreateMaybeMessage<::ignition::msgs::Time>(Arena*);
76 PROTOBUF_NAMESPACE_CLOSE
77 namespace ignition {
78 namespace msgs {
79 
80 // ===================================================================
81 
82 class IGNITION_MSGS_VISIBLE Time PROTOBUF_FINAL :
83  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Time) */ {
84  public:
85  inline Time() : Time(nullptr) {}
86  virtual ~Time();
87 
88  Time(const Time& from);
89  Time(Time&& from) noexcept
90  : Time() {
91  *this = ::std::move(from);
92  }
93 
94  inline Time& operator=(const Time& from) {
95  CopyFrom(from);
96  return *this;
97  }
98  inline Time& operator=(Time&& from) noexcept {
99  if (GetArena() == from.GetArena()) {
100  if (this != &from) InternalSwap(&from);
101  } else {
102  CopyFrom(from);
103  }
104  return *this;
105  }
106 
107  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
108  return GetDescriptor();
109  }
110  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
111  return GetMetadataStatic().descriptor;
112  }
113  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
114  return GetMetadataStatic().reflection;
115  }
116  static const Time& default_instance();
117 
118  static inline const Time* internal_default_instance() {
119  return reinterpret_cast<const Time*>(
121  }
122  static constexpr int kIndexInFileMessages =
123  0;
124 
125  friend void swap(Time& a, Time& b) {
126  a.Swap(&b);
127  }
128  inline void Swap(Time* other) {
129  if (other == this) return;
130  if (GetArena() == other->GetArena()) {
131  InternalSwap(other);
132  } else {
133  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
134  }
135  }
136  void UnsafeArenaSwap(Time* other) {
137  if (other == this) return;
138  GOOGLE_DCHECK(GetArena() == other->GetArena());
139  InternalSwap(other);
140  }
141 
142  // implements Message ----------------------------------------------
143 
144  inline Time* New() const final {
145  return CreateMaybeMessage<Time>(nullptr);
146  }
147 
148  Time* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
149  return CreateMaybeMessage<Time>(arena);
150  }
151  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
152  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
153  void CopyFrom(const Time& from);
154  void MergeFrom(const Time& from);
155  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
156  bool IsInitialized() const final;
157 
158  size_t ByteSizeLong() const final;
159  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
160  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
161  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
162  int GetCachedSize() const final { return _cached_size_.Get(); }
163 
164  private:
165  inline void SharedCtor();
166  inline void SharedDtor();
167  void SetCachedSize(int size) const final;
168  void InternalSwap(Time* other);
169  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
170  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
171  return "ignition.msgs.Time";
172  }
173  protected:
174  explicit Time(::PROTOBUF_NAMESPACE_ID::Arena* arena);
175  private:
176  static void ArenaDtor(void* object);
177  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178  public:
179 
180  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
181  private:
182  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
183  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2ftime_2eproto);
184  return ::descriptor_table_ignition_2fmsgs_2ftime_2eproto.file_level_metadata[kIndexInFileMessages];
185  }
186 
187  public:
188 
189  // nested types ----------------------------------------------------
190 
191  // accessors -------------------------------------------------------
192 
193  enum : int {
194  kSecFieldNumber = 1,
195  kNsecFieldNumber = 2,
196  };
197  // int64 sec = 1;
198  void clear_sec();
199  ::PROTOBUF_NAMESPACE_ID::int64 sec() const;
200  void set_sec(::PROTOBUF_NAMESPACE_ID::int64 value);
201  private:
202  ::PROTOBUF_NAMESPACE_ID::int64 _internal_sec() const;
203  void _internal_set_sec(::PROTOBUF_NAMESPACE_ID::int64 value);
204  public:
205 
206  // int32 nsec = 2;
207  void clear_nsec();
208  ::PROTOBUF_NAMESPACE_ID::int32 nsec() const;
209  void set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value);
210  private:
211  ::PROTOBUF_NAMESPACE_ID::int32 _internal_nsec() const;
212  void _internal_set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value);
213  public:
214 
215  // @@protoc_insertion_point(class_scope:ignition.msgs.Time)
216  private:
217  class _Internal;
218 
219  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
220  typedef void InternalArenaConstructable_;
221  typedef void DestructorSkippable_;
222  ::PROTOBUF_NAMESPACE_ID::int64 sec_;
223  ::PROTOBUF_NAMESPACE_ID::int32 nsec_;
224  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
225  friend struct ::TableStruct_ignition_2fmsgs_2ftime_2eproto;
226 };
227 // ===================================================================
228 
229 
230 // ===================================================================
231 
232 #ifdef __GNUC__
233  #pragma GCC diagnostic push
234  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
235 #endif // __GNUC__
236 // Time
237 
238 // int64 sec = 1;
239 inline void Time::clear_sec() {
240  sec_ = PROTOBUF_LONGLONG(0);
241 }
242 inline ::PROTOBUF_NAMESPACE_ID::int64 Time::_internal_sec() const {
243  return sec_;
244 }
245 inline ::PROTOBUF_NAMESPACE_ID::int64 Time::sec() const {
246  // @@protoc_insertion_point(field_get:ignition.msgs.Time.sec)
247  return _internal_sec();
248 }
249 inline void Time::_internal_set_sec(::PROTOBUF_NAMESPACE_ID::int64 value) {
250 
251  sec_ = value;
252 }
253 inline void Time::set_sec(::PROTOBUF_NAMESPACE_ID::int64 value) {
254  _internal_set_sec(value);
255  // @@protoc_insertion_point(field_set:ignition.msgs.Time.sec)
256 }
257 
258 // int32 nsec = 2;
259 inline void Time::clear_nsec() {
260  nsec_ = 0;
261 }
262 inline ::PROTOBUF_NAMESPACE_ID::int32 Time::_internal_nsec() const {
263  return nsec_;
264 }
265 inline ::PROTOBUF_NAMESPACE_ID::int32 Time::nsec() const {
266  // @@protoc_insertion_point(field_get:ignition.msgs.Time.nsec)
267  return _internal_nsec();
268 }
269 inline void Time::_internal_set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value) {
270 
271  nsec_ = value;
272 }
273 inline void Time::set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value) {
274  _internal_set_nsec(value);
275  // @@protoc_insertion_point(field_set:ignition.msgs.Time.nsec)
276 }
277 
278 #ifdef __GNUC__
279  #pragma GCC diagnostic pop
280 #endif // __GNUC__
281 
286 // @@protoc_insertion_point(namespace_scope)
287 
288 } // namespace msgs
289 } // namespace ignition
290 
291 #ifdef _MSC_VER
292 #pragma warning(pop)
293 #endif
294 // @@protoc_insertion_point(global_scope)
295 
296 #include <google/protobuf/port_undef.inc>
297 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2ftime_2eproto
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: time.pb.h:113
::PROTOBUF_NAMESPACE_ID::int64 sec() const
void MergeFrom(const Time &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const Time * internal_default_instance()
Definition: time.pb.h:118
::PROTOBUF_NAMESPACE_ID::int32 nsec() const
void UnsafeArenaSwap(Time *other)
Definition: time.pb.h:136
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: time.pb.h:107
Time(Time &&from) noexcept
Definition: time.pb.h:89
Time()
Definition: time.pb.h:85
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Time * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: time.pb.h:148
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_nsec(::PROTOBUF_NAMESPACE_ID::int32 value)
void CopyFrom(const Time &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: time.pb.h:110
Time * New() const final
Definition: time.pb.h:144
Time & operator=(const Time &from)
Definition: time.pb.h:94
void Swap(Time *other)
Definition: time.pb.h:128
Time(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_sec(::PROTOBUF_NAMESPACE_ID::int64 value)
friend void swap(Time &a, Time &b)
Definition: time.pb.h:125
static const Time & default_instance()
Time & operator=(Time &&from) noexcept
Definition: time.pb.h:98
std::unique_ptr< Time > TimeUniquePtr
Definition: time.pb.h:282
std::shared_ptr< const Time > ConstTimeSharedPtr
Definition: time.pb.h:285
std::shared_ptr< Time > TimeSharedPtr
Definition: time.pb.h:284
std::unique_ptr< const Time > ConstTimeUniquePtr
Definition: time.pb.h:283
IGNITION_MSGS_VISIBLE TimeDefaultTypeInternal _Time_default_instance_
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)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2ftime_2eproto