• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // NO CHECKED-IN PROTOBUF GENCODE
3 // source: google/protobuf/duration.proto
4 // Protobuf C++ Version: 5.29.4
5 
6 #ifndef google_2fprotobuf_2fduration_2eproto_2epb_2eh
7 #define google_2fprotobuf_2fduration_2eproto_2epb_2eh
8 
9 #include <limits>
10 #include <string>
11 #include <type_traits>
12 #include <utility>
13 
14 #include "google/protobuf/runtime_version.h"
15 #if PROTOBUF_VERSION != 5029004
16 #error "Protobuf C++ gencode is built with an incompatible version of"
17 #error "Protobuf C++ headers/runtime. See"
18 #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
19 #endif
20 #include "google/protobuf/io/coded_stream.h"
21 #include "google/protobuf/arena.h"
22 #include "google/protobuf/arenastring.h"
23 #include "google/protobuf/generated_message_tctable_decl.h"
24 #include "google/protobuf/generated_message_util.h"
25 #include "google/protobuf/metadata_lite.h"
26 #include "google/protobuf/generated_message_reflection.h"
27 #include "google/protobuf/message.h"
28 #include "google/protobuf/message_lite.h"
29 #include "google/protobuf/repeated_field.h"  // IWYU pragma: export
30 #include "google/protobuf/extension_set.h"  // IWYU pragma: export
31 #include "google/protobuf/unknown_field_set.h"
32 // @@protoc_insertion_point(includes)
33 
34 // Must be included last.
35 #include "google/protobuf/port_def.inc"
36 
37 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto PROTOBUF_EXPORT
38 
39 namespace google {
40 namespace protobuf {
41 namespace internal {
42 template <typename T>
43 ::absl::string_view GetAnyMessageName();
44 }  // namespace internal
45 }  // namespace protobuf
46 }  // namespace google
47 
48 // Internal implementation detail -- do not use these members.
49 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fduration_2eproto {
50   static const ::uint32_t offsets[];
51 };
52 PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable
53     descriptor_table_google_2fprotobuf_2fduration_2eproto;
54 namespace google {
55 namespace protobuf {
56 class Duration;
57 struct DurationDefaultTypeInternal;
58 PROTOBUF_EXPORT extern DurationDefaultTypeInternal _Duration_default_instance_;
59 }  // namespace protobuf
60 }  // namespace google
61 
62 namespace google {
63 namespace protobuf {
64 
65 // ===================================================================
66 
67 
68 // -------------------------------------------------------------------
69 
70 class PROTOBUF_EXPORT Duration final : public ::google::protobuf::Message
71 /* @@protoc_insertion_point(class_definition:google.protobuf.Duration) */ {
72  public:
Duration()73   inline Duration() : Duration(nullptr) {}
74   ~Duration() PROTOBUF_FINAL;
75 
76 #if defined(PROTOBUF_CUSTOM_VTABLE)
delete(Duration * msg,std::destroying_delete_t)77   void operator delete(Duration* msg, std::destroying_delete_t) {
78     SharedDtor(*msg);
79     ::google::protobuf::internal::SizedDelete(msg, sizeof(Duration));
80   }
81 #endif
82 
83   template <typename = void>
84   explicit PROTOBUF_CONSTEXPR Duration(
85       ::google::protobuf::internal::ConstantInitialized);
86 
Duration(const Duration & from)87   inline Duration(const Duration& from) : Duration(nullptr, from) {}
Duration(Duration && from)88   inline Duration(Duration&& from) noexcept
89       : Duration(nullptr, std::move(from)) {}
90   inline Duration& operator=(const Duration& from) {
91     CopyFrom(from);
92     return *this;
93   }
94   inline Duration& operator=(Duration&& from) noexcept {
95     if (this == &from) return *this;
96     if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
97       InternalSwap(&from);
98     } else {
99       CopyFrom(from);
100     }
101     return *this;
102   }
103 
unknown_fields()104   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
105       ABSL_ATTRIBUTE_LIFETIME_BOUND {
106     return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
107   }
mutable_unknown_fields()108   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
109       ABSL_ATTRIBUTE_LIFETIME_BOUND {
110     return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
111   }
112 
descriptor()113   static const ::google::protobuf::Descriptor* descriptor() {
114     return GetDescriptor();
115   }
GetDescriptor()116   static const ::google::protobuf::Descriptor* GetDescriptor() {
117     return default_instance().GetMetadata().descriptor;
118   }
GetReflection()119   static const ::google::protobuf::Reflection* GetReflection() {
120     return default_instance().GetMetadata().reflection;
121   }
default_instance()122   static const Duration& default_instance() {
123     return *internal_default_instance();
124   }
internal_default_instance()125   static inline const Duration* internal_default_instance() {
126     return reinterpret_cast<const Duration*>(
127         &_Duration_default_instance_);
128   }
129   static constexpr int kIndexInFileMessages = 0;
swap(Duration & a,Duration & b)130   friend void swap(Duration& a, Duration& b) { a.Swap(&b); }
Swap(Duration * other)131   inline void Swap(Duration* other) {
132     if (other == this) return;
133     if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
134       InternalSwap(other);
135     } else {
136       ::google::protobuf::internal::GenericSwap(this, other);
137     }
138   }
UnsafeArenaSwap(Duration * other)139   void UnsafeArenaSwap(Duration* other) {
140     if (other == this) return;
141     ABSL_DCHECK(GetArena() == other->GetArena());
142     InternalSwap(other);
143   }
144 
145   // implements Message ----------------------------------------------
146 
147   Duration* New(::google::protobuf::Arena* arena = nullptr) const {
148     return ::google::protobuf::Message::DefaultConstruct<Duration>(arena);
149   }
150   using ::google::protobuf::Message::CopyFrom;
151   void CopyFrom(const Duration& from);
152   using ::google::protobuf::Message::MergeFrom;
MergeFrom(const Duration & from)153   void MergeFrom(const Duration& from) { Duration::MergeImpl(*this, from); }
154 
155   private:
156   static void MergeImpl(
157       ::google::protobuf::MessageLite& to_msg,
158       const ::google::protobuf::MessageLite& from_msg);
159 
160   public:
IsInitialized()161   bool IsInitialized() const {
162     return true;
163   }
164   ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
165   #if defined(PROTOBUF_CUSTOM_VTABLE)
166   private:
167   static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
168   static ::uint8_t* _InternalSerialize(
169       const MessageLite& msg, ::uint8_t* target,
170       ::google::protobuf::io::EpsCopyOutputStream* stream);
171 
172   public:
ByteSizeLong()173   ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
_InternalSerialize(::uint8_t * target,::google::protobuf::io::EpsCopyOutputStream * stream)174   ::uint8_t* _InternalSerialize(
175       ::uint8_t* target,
176       ::google::protobuf::io::EpsCopyOutputStream* stream) const {
177     return _InternalSerialize(*this, target, stream);
178   }
179   #else   // PROTOBUF_CUSTOM_VTABLE
180   ::size_t ByteSizeLong() const final;
181   ::uint8_t* _InternalSerialize(
182       ::uint8_t* target,
183       ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
184   #endif  // PROTOBUF_CUSTOM_VTABLE
GetCachedSize()185   int GetCachedSize() const { return _impl_._cached_size_.Get(); }
186 
187   private:
188   void SharedCtor(::google::protobuf::Arena* arena);
189   static void SharedDtor(MessageLite& self);
190   void InternalSwap(Duration* other);
191  private:
192   template <typename T>
193   friend ::absl::string_view(
194       ::google::protobuf::internal::GetAnyMessageName)();
FullMessageName()195   static ::absl::string_view FullMessageName() { return "google.protobuf.Duration"; }
196 
197  protected:
198   explicit Duration(::google::protobuf::Arena* arena);
199   Duration(::google::protobuf::Arena* arena, const Duration& from);
Duration(::google::protobuf::Arena * arena,Duration && from)200   Duration(::google::protobuf::Arena* arena, Duration&& from) noexcept
201       : Duration(arena) {
202     *this = ::std::move(from);
203   }
204   const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL;
205   static void* PlacementNew_(const void*, void* mem,
206                              ::google::protobuf::Arena* arena);
207   static constexpr auto InternalNewImpl_();
208   static const ::google::protobuf::internal::ClassDataFull _class_data_;
209 
210  public:
211   ::google::protobuf::Metadata GetMetadata() const;
212   // nested types ----------------------------------------------------
213 
214   // accessors -------------------------------------------------------
215   enum : int {
216     kSecondsFieldNumber = 1,
217     kNanosFieldNumber = 2,
218   };
219   // int64 seconds = 1;
220   void clear_seconds() ;
221   ::int64_t seconds() const;
222   void set_seconds(::int64_t value);
223 
224   private:
225   ::int64_t _internal_seconds() const;
226   void _internal_set_seconds(::int64_t value);
227 
228   public:
229   // int32 nanos = 2;
230   void clear_nanos() ;
231   ::int32_t nanos() const;
232   void set_nanos(::int32_t value);
233 
234   private:
235   ::int32_t _internal_nanos() const;
236   void _internal_set_nanos(::int32_t value);
237 
238   public:
239   // @@protoc_insertion_point(class_scope:google.protobuf.Duration)
240  private:
241   class _Internal;
242   friend class ::google::protobuf::internal::TcParser;
243   static const ::google::protobuf::internal::TcParseTable<
244       1, 2, 0,
245       0, 2>
246       _table_;
247 
248   friend class ::google::protobuf::MessageLite;
249   friend class ::google::protobuf::Arena;
250   template <typename T>
251   friend class ::google::protobuf::Arena::InternalHelper;
252   using InternalArenaConstructable_ = void;
253   using DestructorSkippable_ = void;
254   struct Impl_ {
255     inline explicit constexpr Impl_(
256         ::google::protobuf::internal::ConstantInitialized) noexcept;
257     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
258                           ::google::protobuf::Arena* arena);
259     inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
260                           ::google::protobuf::Arena* arena, const Impl_& from,
261                           const Duration& from_msg);
262     ::int64_t seconds_;
263     ::int32_t nanos_;
264     ::google::protobuf::internal::CachedSize _cached_size_;
265     PROTOBUF_TSAN_DECLARE_MEMBER
266   };
267   union { Impl_ _impl_; };
268   friend struct ::TableStruct_google_2fprotobuf_2fduration_2eproto;
269 };
270 
271 // ===================================================================
272 
273 
274 
275 
276 // ===================================================================
277 
278 
279 #ifdef __GNUC__
280 #pragma GCC diagnostic push
281 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
282 #endif  // __GNUC__
283 // -------------------------------------------------------------------
284 
285 // Duration
286 
287 // int64 seconds = 1;
clear_seconds()288 inline void Duration::clear_seconds() {
289   ::google::protobuf::internal::TSanWrite(&_impl_);
290   _impl_.seconds_ = ::int64_t{0};
291 }
seconds()292 inline ::int64_t Duration::seconds() const {
293   // @@protoc_insertion_point(field_get:google.protobuf.Duration.seconds)
294   return _internal_seconds();
295 }
set_seconds(::int64_t value)296 inline void Duration::set_seconds(::int64_t value) {
297   _internal_set_seconds(value);
298   // @@protoc_insertion_point(field_set:google.protobuf.Duration.seconds)
299 }
_internal_seconds()300 inline ::int64_t Duration::_internal_seconds() const {
301   ::google::protobuf::internal::TSanRead(&_impl_);
302   return _impl_.seconds_;
303 }
_internal_set_seconds(::int64_t value)304 inline void Duration::_internal_set_seconds(::int64_t value) {
305   ::google::protobuf::internal::TSanWrite(&_impl_);
306   _impl_.seconds_ = value;
307 }
308 
309 // int32 nanos = 2;
clear_nanos()310 inline void Duration::clear_nanos() {
311   ::google::protobuf::internal::TSanWrite(&_impl_);
312   _impl_.nanos_ = 0;
313 }
nanos()314 inline ::int32_t Duration::nanos() const {
315   // @@protoc_insertion_point(field_get:google.protobuf.Duration.nanos)
316   return _internal_nanos();
317 }
set_nanos(::int32_t value)318 inline void Duration::set_nanos(::int32_t value) {
319   _internal_set_nanos(value);
320   // @@protoc_insertion_point(field_set:google.protobuf.Duration.nanos)
321 }
_internal_nanos()322 inline ::int32_t Duration::_internal_nanos() const {
323   ::google::protobuf::internal::TSanRead(&_impl_);
324   return _impl_.nanos_;
325 }
_internal_set_nanos(::int32_t value)326 inline void Duration::_internal_set_nanos(::int32_t value) {
327   ::google::protobuf::internal::TSanWrite(&_impl_);
328   _impl_.nanos_ = value;
329 }
330 
331 #ifdef __GNUC__
332 #pragma GCC diagnostic pop
333 #endif  // __GNUC__
334 
335 // @@protoc_insertion_point(namespace_scope)
336 }  // namespace protobuf
337 }  // namespace google
338 
339 
340 // @@protoc_insertion_point(global_scope)
341 
342 #include "google/protobuf/port_undef.inc"
343 
344 #endif  // google_2fprotobuf_2fduration_2eproto_2epb_2eh
345