Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-17 09:15:52

0001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
0002 // NO CHECKED-IN PROTOBUF GENCODE
0003 // source: google/protobuf/timestamp.proto
0004 // Protobuf C++ Version: 6.32.1
0005 
0006 #ifndef google_2fprotobuf_2ftimestamp_2eproto_2epb_2eh
0007 #define google_2fprotobuf_2ftimestamp_2eproto_2epb_2eh
0008 
0009 #include <limits>
0010 #include <string>
0011 #include <type_traits>
0012 #include <utility>
0013 
0014 #include "google/protobuf/runtime_version.h"
0015 #if PROTOBUF_VERSION != 6032001
0016 #error "Protobuf C++ gencode is built with an incompatible version of"
0017 #error "Protobuf C++ headers/runtime. See"
0018 #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
0019 #endif
0020 #include "google/protobuf/io/coded_stream.h"
0021 #include "google/protobuf/arena.h"
0022 #include "google/protobuf/arenastring.h"
0023 #include "google/protobuf/generated_message_tctable_decl.h"
0024 #include "google/protobuf/generated_message_util.h"
0025 #include "google/protobuf/metadata_lite.h"
0026 #include "google/protobuf/generated_message_reflection.h"
0027 #include "google/protobuf/message.h"
0028 #include "google/protobuf/message_lite.h"
0029 #include "google/protobuf/repeated_field.h"  // IWYU pragma: export
0030 #include "google/protobuf/extension_set.h"  // IWYU pragma: export
0031 #include "google/protobuf/unknown_field_set.h"
0032 // @@protoc_insertion_point(includes)
0033 
0034 // Must be included last.
0035 #include "google/protobuf/port_def.inc"
0036 
0037 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto PROTOBUF_EXPORT
0038 
0039 namespace google {
0040 namespace protobuf {
0041 namespace internal {
0042 template <typename T>
0043 ::absl::string_view GetAnyMessageName();
0044 }  // namespace internal
0045 }  // namespace protobuf
0046 }  // namespace google
0047 
0048 // Internal implementation detail -- do not use these members.
0049 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ftimestamp_2eproto {
0050   static const ::uint32_t offsets[];
0051 };
0052 extern "C" {
0053 PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftimestamp_2eproto;
0054 }  // extern "C"
0055 namespace google {
0056 namespace protobuf {
0057 class Timestamp;
0058 struct TimestampDefaultTypeInternal;
0059 PROTOBUF_EXPORT extern TimestampDefaultTypeInternal _Timestamp_default_instance_;
0060 PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Timestamp_class_data_;
0061 }  // namespace protobuf
0062 }  // namespace google
0063 
0064 namespace google {
0065 namespace protobuf {
0066 
0067 // ===================================================================
0068 
0069 
0070 // -------------------------------------------------------------------
0071 
0072 class PROTOBUF_EXPORT Timestamp final : public ::google::protobuf::Message
0073 /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
0074  public:
0075   inline Timestamp() : Timestamp(nullptr) {}
0076   ~Timestamp() PROTOBUF_FINAL;
0077 
0078 #if defined(PROTOBUF_CUSTOM_VTABLE)
0079   void operator delete(Timestamp* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
0080     SharedDtor(*msg);
0081     ::google::protobuf::internal::SizedDelete(msg, sizeof(Timestamp));
0082   }
0083 #endif
0084 
0085   template <typename = void>
0086   explicit PROTOBUF_CONSTEXPR Timestamp(::google::protobuf::internal::ConstantInitialized);
0087 
0088   inline Timestamp(const Timestamp& from) : Timestamp(nullptr, from) {}
0089   inline Timestamp(Timestamp&& from) noexcept
0090       : Timestamp(nullptr, ::std::move(from)) {}
0091   inline Timestamp& operator=(const Timestamp& from) {
0092     CopyFrom(from);
0093     return *this;
0094   }
0095   inline Timestamp& operator=(Timestamp&& from) noexcept {
0096     if (this == &from) return *this;
0097     if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
0098       InternalSwap(&from);
0099     } else {
0100       CopyFrom(from);
0101     }
0102     return *this;
0103   }
0104 
0105   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
0106       ABSL_ATTRIBUTE_LIFETIME_BOUND {
0107     return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
0108   }
0109   inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
0110       ABSL_ATTRIBUTE_LIFETIME_BOUND {
0111     return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
0112   }
0113 
0114   static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
0115     return GetDescriptor();
0116   }
0117   static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
0118     return default_instance().GetMetadata().descriptor;
0119   }
0120   static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
0121     return default_instance().GetMetadata().reflection;
0122   }
0123   static const Timestamp& default_instance() {
0124     return *reinterpret_cast<const Timestamp*>(
0125         &_Timestamp_default_instance_);
0126   }
0127   static constexpr int kIndexInFileMessages = 0;
0128   friend void swap(Timestamp& a, Timestamp& b) { a.Swap(&b); }
0129   inline void Swap(Timestamp* PROTOBUF_NONNULL other) {
0130     if (other == this) return;
0131     if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
0132       InternalSwap(other);
0133     } else {
0134       ::google::protobuf::internal::GenericSwap(this, other);
0135     }
0136   }
0137   void UnsafeArenaSwap(Timestamp* PROTOBUF_NONNULL other) {
0138     if (other == this) return;
0139     ABSL_DCHECK(GetArena() == other->GetArena());
0140     InternalSwap(other);
0141   }
0142 
0143   // implements Message ----------------------------------------------
0144 
0145   Timestamp* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
0146     return ::google::protobuf::Message::DefaultConstruct<Timestamp>(arena);
0147   }
0148   using ::google::protobuf::Message::CopyFrom;
0149   void CopyFrom(const Timestamp& from);
0150   using ::google::protobuf::Message::MergeFrom;
0151   void MergeFrom(const Timestamp& from) { Timestamp::MergeImpl(*this, from); }
0152 
0153   private:
0154   static void MergeImpl(::google::protobuf::MessageLite& to_msg,
0155                         const ::google::protobuf::MessageLite& from_msg);
0156 
0157   public:
0158   bool IsInitialized() const {
0159     return true;
0160   }
0161   ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
0162   #if defined(PROTOBUF_CUSTOM_VTABLE)
0163   private:
0164   static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
0165   static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
0166       const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
0167       ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
0168 
0169   public:
0170   ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
0171   ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
0172       ::uint8_t* PROTOBUF_NONNULL target,
0173       ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
0174     return _InternalSerialize(*this, target, stream);
0175   }
0176   #else   // PROTOBUF_CUSTOM_VTABLE
0177   ::size_t ByteSizeLong() const final;
0178   ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
0179       ::uint8_t* PROTOBUF_NONNULL target,
0180       ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
0181   #endif  // PROTOBUF_CUSTOM_VTABLE
0182   int GetCachedSize() const { return _impl_._cached_size_.Get(); }
0183 
0184   private:
0185   void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
0186   static void SharedDtor(MessageLite& self);
0187   void InternalSwap(Timestamp* PROTOBUF_NONNULL other);
0188  private:
0189   template <typename T>
0190   friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
0191   static ::absl::string_view FullMessageName() { return "google.protobuf.Timestamp"; }
0192 
0193  protected:
0194   explicit Timestamp(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
0195   Timestamp(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Timestamp& from);
0196   Timestamp(
0197       ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Timestamp&& from) noexcept
0198       : Timestamp(arena) {
0199     *this = ::std::move(from);
0200   }
0201   const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
0202   static void* PROTOBUF_NONNULL PlacementNew_(
0203       const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
0204       ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
0205   static constexpr auto InternalNewImpl_();
0206 
0207  public:
0208   static constexpr auto InternalGenerateClassData_();
0209 
0210   ::google::protobuf::Metadata GetMetadata() const;
0211   // nested types ----------------------------------------------------
0212 
0213   // accessors -------------------------------------------------------
0214   enum : int {
0215     kSecondsFieldNumber = 1,
0216     kNanosFieldNumber = 2,
0217   };
0218   // int64 seconds = 1;
0219   void clear_seconds() ;
0220   ::int64_t seconds() const;
0221   void set_seconds(::int64_t value);
0222 
0223   private:
0224   ::int64_t _internal_seconds() const;
0225   void _internal_set_seconds(::int64_t value);
0226 
0227   public:
0228   // int32 nanos = 2;
0229   void clear_nanos() ;
0230   ::int32_t nanos() const;
0231   void set_nanos(::int32_t value);
0232 
0233   private:
0234   ::int32_t _internal_nanos() const;
0235   void _internal_set_nanos(::int32_t value);
0236 
0237   public:
0238   // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp)
0239  private:
0240   class _Internal;
0241   friend class ::google::protobuf::internal::TcParser;
0242   static const ::google::protobuf::internal::TcParseTable<1, 2,
0243                                    0, 0,
0244                                    2>
0245       _table_;
0246 
0247   friend class ::google::protobuf::MessageLite;
0248   friend class ::google::protobuf::Arena;
0249   template <typename T>
0250   friend class ::google::protobuf::Arena::InternalHelper;
0251   using InternalArenaConstructable_ = void;
0252   using DestructorSkippable_ = void;
0253   struct Impl_ {
0254     inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
0255     inline explicit Impl_(
0256         ::google::protobuf::internal::InternalVisibility visibility,
0257         ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
0258     inline explicit Impl_(
0259         ::google::protobuf::internal::InternalVisibility visibility,
0260         ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
0261         const Timestamp& from_msg);
0262     ::google::protobuf::internal::HasBits<1> _has_bits_;
0263     ::google::protobuf::internal::CachedSize _cached_size_;
0264     ::int64_t seconds_;
0265     ::int32_t nanos_;
0266     PROTOBUF_TSAN_DECLARE_MEMBER
0267   };
0268   union { Impl_ _impl_; };
0269   friend struct ::TableStruct_google_2fprotobuf_2ftimestamp_2eproto;
0270 };
0271 
0272 PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Timestamp_class_data_;
0273 
0274 // ===================================================================
0275 
0276 
0277 
0278 
0279 // ===================================================================
0280 
0281 
0282 #ifdef __GNUC__
0283 #pragma GCC diagnostic push
0284 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
0285 #endif  // __GNUC__
0286 // -------------------------------------------------------------------
0287 
0288 // Timestamp
0289 
0290 // int64 seconds = 1;
0291 inline void Timestamp::clear_seconds() {
0292   ::google::protobuf::internal::TSanWrite(&_impl_);
0293   _impl_.seconds_ = ::int64_t{0};
0294   _impl_._has_bits_[0] &= ~0x00000001U;
0295 }
0296 inline ::int64_t Timestamp::seconds() const {
0297   // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.seconds)
0298   return _internal_seconds();
0299 }
0300 inline void Timestamp::set_seconds(::int64_t value) {
0301   _internal_set_seconds(value);
0302   _impl_._has_bits_[0] |= 0x00000001U;
0303   // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
0304 }
0305 inline ::int64_t Timestamp::_internal_seconds() const {
0306   ::google::protobuf::internal::TSanRead(&_impl_);
0307   return _impl_.seconds_;
0308 }
0309 inline void Timestamp::_internal_set_seconds(::int64_t value) {
0310   ::google::protobuf::internal::TSanWrite(&_impl_);
0311   _impl_.seconds_ = value;
0312 }
0313 
0314 // int32 nanos = 2;
0315 inline void Timestamp::clear_nanos() {
0316   ::google::protobuf::internal::TSanWrite(&_impl_);
0317   _impl_.nanos_ = 0;
0318   _impl_._has_bits_[0] &= ~0x00000002U;
0319 }
0320 inline ::int32_t Timestamp::nanos() const {
0321   // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos)
0322   return _internal_nanos();
0323 }
0324 inline void Timestamp::set_nanos(::int32_t value) {
0325   _internal_set_nanos(value);
0326   _impl_._has_bits_[0] |= 0x00000002U;
0327   // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
0328 }
0329 inline ::int32_t Timestamp::_internal_nanos() const {
0330   ::google::protobuf::internal::TSanRead(&_impl_);
0331   return _impl_.nanos_;
0332 }
0333 inline void Timestamp::_internal_set_nanos(::int32_t value) {
0334   ::google::protobuf::internal::TSanWrite(&_impl_);
0335   _impl_.nanos_ = value;
0336 }
0337 
0338 #ifdef __GNUC__
0339 #pragma GCC diagnostic pop
0340 #endif  // __GNUC__
0341 
0342 // @@protoc_insertion_point(namespace_scope)
0343 }  // namespace protobuf
0344 }  // namespace google
0345 
0346 
0347 // @@protoc_insertion_point(global_scope)
0348 
0349 #include "google/protobuf/port_undef.inc"
0350 
0351 #endif  // google_2fprotobuf_2ftimestamp_2eproto_2epb_2eh