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 < 3019000
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 3019000 < 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 uint32_t offsets[];
65 };
66 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2ftime_2eproto;
67 namespace ignition {
68 namespace msgs {
69 class Time;
70 struct 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 final :
83  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Time) */ {
84  public:
85  inline Time() : Time(nullptr) {}
86  ~Time() override;
87  explicit constexpr Time(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
88 
89  Time(const Time& from);
90  Time(Time&& from) noexcept
91  : Time() {
92  *this = ::std::move(from);
93  }
94 
95  inline Time& operator=(const Time& from) {
96  CopyFrom(from);
97  return *this;
98  }
99  inline Time& operator=(Time&& from) noexcept {
100  if (this == &from) return *this;
101  if (GetOwningArena() == from.GetOwningArena()
102  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
103  && GetOwningArena() != nullptr
104  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
105  ) {
106  InternalSwap(&from);
107  } else {
108  CopyFrom(from);
109  }
110  return *this;
111  }
112 
113  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
114  return GetDescriptor();
115  }
116  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
117  return default_instance().GetMetadata().descriptor;
118  }
119  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
120  return default_instance().GetMetadata().reflection;
121  }
122  static const Time& default_instance() {
123  return *internal_default_instance();
124  }
125  static inline const Time* internal_default_instance() {
126  return reinterpret_cast<const Time*>(
128  }
129  static constexpr int kIndexInFileMessages =
130  0;
131 
132  friend void swap(Time& a, Time& b) {
133  a.Swap(&b);
134  }
135  inline void Swap(Time* other) {
136  if (other == this) return;
137  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
138  if (GetOwningArena() != nullptr &&
139  GetOwningArena() == other->GetOwningArena()) {
140  #else // PROTOBUF_FORCE_COPY_IN_SWAP
141  if (GetOwningArena() == other->GetOwningArena()) {
142  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
143  InternalSwap(other);
144  } else {
145  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
146  }
147  }
148  void UnsafeArenaSwap(Time* other) {
149  if (other == this) return;
150  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
151  InternalSwap(other);
152  }
153 
154  // implements Message ----------------------------------------------
155 
156  Time* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
157  return CreateMaybeMessage<Time>(arena);
158  }
159  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
160  void CopyFrom(const Time& from);
161  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
162  void MergeFrom(const Time& from);
163  private:
164  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
165  public:
166  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
167  bool IsInitialized() const final;
168 
169  size_t ByteSizeLong() const final;
170  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
171  uint8_t* _InternalSerialize(
172  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
173  int GetCachedSize() const final { return _cached_size_.Get(); }
174 
175  private:
176  void SharedCtor();
177  void SharedDtor();
178  void SetCachedSize(int size) const final;
179  void InternalSwap(Time* other);
180 
181  private:
182  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
183  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
184  return "ignition.msgs.Time";
185  }
186  protected:
187  explicit Time(::PROTOBUF_NAMESPACE_ID::Arena* arena,
188  bool is_message_owned = false);
189  private:
190  static void ArenaDtor(void* object);
191  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
192  public:
193 
194  static const ClassData _class_data_;
195  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
196 
197  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
198 
199  // nested types ----------------------------------------------------
200 
201  // accessors -------------------------------------------------------
202 
203  enum : int {
204  kSecFieldNumber = 1,
205  kNsecFieldNumber = 2,
206  };
207  // int64 sec = 1;
208  void clear_sec();
209  int64_t sec() const;
210  void set_sec(int64_t value);
211  private:
212  int64_t _internal_sec() const;
213  void _internal_set_sec(int64_t value);
214  public:
215 
216  // int32 nsec = 2;
217  void clear_nsec();
218  int32_t nsec() const;
219  void set_nsec(int32_t value);
220  private:
221  int32_t _internal_nsec() const;
222  void _internal_set_nsec(int32_t value);
223  public:
224 
225  // @@protoc_insertion_point(class_scope:ignition.msgs.Time)
226  private:
227  class _Internal;
228 
229  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
230  typedef void InternalArenaConstructable_;
231  typedef void DestructorSkippable_;
232  int64_t sec_;
233  int32_t nsec_;
234  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
235  friend struct ::TableStruct_ignition_2fmsgs_2ftime_2eproto;
236 };
237 // ===================================================================
238 
239 
240 // ===================================================================
241 
242 #ifdef __GNUC__
243  #pragma GCC diagnostic push
244  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
245 #endif // __GNUC__
246 // Time
247 
248 // int64 sec = 1;
249 inline void Time::clear_sec() {
250  sec_ = int64_t{0};
251 }
252 inline int64_t Time::_internal_sec() const {
253  return sec_;
254 }
255 inline int64_t Time::sec() const {
256  // @@protoc_insertion_point(field_get:ignition.msgs.Time.sec)
257  return _internal_sec();
258 }
259 inline void Time::_internal_set_sec(int64_t value) {
260 
261  sec_ = value;
262 }
263 inline void Time::set_sec(int64_t value) {
264  _internal_set_sec(value);
265  // @@protoc_insertion_point(field_set:ignition.msgs.Time.sec)
266 }
267 
268 // int32 nsec = 2;
269 inline void Time::clear_nsec() {
270  nsec_ = 0;
271 }
272 inline int32_t Time::_internal_nsec() const {
273  return nsec_;
274 }
275 inline int32_t Time::nsec() const {
276  // @@protoc_insertion_point(field_get:ignition.msgs.Time.nsec)
277  return _internal_nsec();
278 }
279 inline void Time::_internal_set_nsec(int32_t value) {
280 
281  nsec_ = value;
282 }
283 inline void Time::set_nsec(int32_t value) {
284  _internal_set_nsec(value);
285  // @@protoc_insertion_point(field_set:ignition.msgs.Time.nsec)
286 }
287 
288 #ifdef __GNUC__
289  #pragma GCC diagnostic pop
290 #endif // __GNUC__
291 
296 // @@protoc_insertion_point(namespace_scope)
297 
298 } // namespace msgs
299 } // namespace ignition
300 
301 #ifdef _MSC_VER
302 #pragma warning(pop)
303 #endif
304 // @@protoc_insertion_point(global_scope)
305 
306 #include <google/protobuf/port_undef.inc>
307 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2ftime_2eproto
Definition: time.pb.h:83
Time * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: time.pb.h:156
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: time.pb.h:119
void MergeFrom(const Time &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const Time * internal_default_instance()
Definition: time.pb.h:125
void UnsafeArenaSwap(Time *other)
Definition: time.pb.h:148
void clear_sec()
Definition: time.pb.h:249
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: time.pb.h:113
Time(Time &&from) noexcept
Definition: time.pb.h:90
Time()
Definition: time.pb.h:85
void set_sec(int64_t value)
Definition: time.pb.h:263
int64_t sec() const
Definition: time.pb.h:255
void set_nsec(int32_t value)
Definition: time.pb.h:283
void CopyFrom(const Time &from)
constexpr Time(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: time.pb.h:116
void clear_nsec()
Definition: time.pb.h:269
Time(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
int32_t nsec() const
Definition: time.pb.h:275
Time & operator=(const Time &from)
Definition: time.pb.h:95
void Swap(Time *other)
Definition: time.pb.h:135
static const ClassData _class_data_
Definition: time.pb.h:194
friend void swap(Time &a, Time &b)
Definition: time.pb.h:132
Time(const Time &from)
static const Time & default_instance()
Definition: time.pb.h:122
Time & operator=(Time &&from) noexcept
Definition: time.pb.h:99
std::unique_ptr< Time > TimeUniquePtr
Definition: time.pb.h:292
std::shared_ptr< const Time > ConstTimeSharedPtr
Definition: time.pb.h:295
std::shared_ptr< Time > TimeSharedPtr
Definition: time.pb.h:294
std::unique_ptr< const Time > ConstTimeUniquePtr
Definition: time.pb.h:293
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