1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: google/protobuf/timestamp.proto
3 
4 #ifndef PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3005000
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 3005001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/metadata.h>
28 #include <google/protobuf/message.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 namespace protobuf_google_2fprotobuf_2ftimestamp_2eproto {
35 // Internal implementation detail -- do not use these members.
36 struct LIBPROTOBUF_EXPORT TableStruct {
37   static const ::google::protobuf::internal::ParseTableField entries[];
38   static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
39   static const ::google::protobuf::internal::ParseTable schema[1];
40   static const ::google::protobuf::internal::FieldMetadata field_metadata[];
41   static const ::google::protobuf::internal::SerializationTable serialization_table[];
42   static const ::google::protobuf::uint32 offsets[];
43 };
44 void LIBPROTOBUF_EXPORT AddDescriptors();
45 void LIBPROTOBUF_EXPORT InitDefaultsTimestampImpl();
46 void LIBPROTOBUF_EXPORT InitDefaultsTimestamp();
InitDefaults()47 inline void LIBPROTOBUF_EXPORT InitDefaults() {
48   InitDefaultsTimestamp();
49 }
50 }  // namespace protobuf_google_2fprotobuf_2ftimestamp_2eproto
51 namespace google {
52 namespace protobuf {
53 class Timestamp;
54 class TimestampDefaultTypeInternal;
55 LIBPROTOBUF_EXPORT extern TimestampDefaultTypeInternal _Timestamp_default_instance_;
56 }  // namespace protobuf
57 }  // namespace google
58 namespace google {
59 namespace protobuf {
60 
61 // ===================================================================
62 
63 class LIBPROTOBUF_EXPORT Timestamp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
64  public:
65   Timestamp();
66   virtual ~Timestamp();
67 
68   Timestamp(const Timestamp& from);
69 
70   inline Timestamp& operator=(const Timestamp& from) {
71     CopyFrom(from);
72     return *this;
73   }
74   #if LANG_CXX11
Timestamp(Timestamp && from)75   Timestamp(Timestamp&& from) noexcept
76     : Timestamp() {
77     *this = ::std::move(from);
78   }
79 
80   inline Timestamp& operator=(Timestamp&& from) noexcept {
81     if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
82       if (this != &from) InternalSwap(&from);
83     } else {
84       CopyFrom(from);
85     }
86     return *this;
87   }
88   #endif
GetArena()89   inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
90     return GetArenaNoVirtual();
91   }
GetMaybeArenaPointer()92   inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
93     return MaybeArenaPtr();
94   }
95   static const ::google::protobuf::Descriptor* descriptor();
96   static const Timestamp& default_instance();
97 
98   static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
internal_default_instance()99   static inline const Timestamp* internal_default_instance() {
100     return reinterpret_cast<const Timestamp*>(
101                &_Timestamp_default_instance_);
102   }
103   static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
104     0;
105 
106   void UnsafeArenaSwap(Timestamp* other);
107   void Swap(Timestamp* other);
swap(Timestamp & a,Timestamp & b)108   friend void swap(Timestamp& a, Timestamp& b) {
109     a.Swap(&b);
110   }
111 
112   // implements Message ----------------------------------------------
113 
New()114   inline Timestamp* New() const PROTOBUF_FINAL { return New(NULL); }
115 
116   Timestamp* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
117   void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
118   void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
119   void CopyFrom(const Timestamp& from);
120   void MergeFrom(const Timestamp& from);
121   void Clear() PROTOBUF_FINAL;
122   bool IsInitialized() const PROTOBUF_FINAL;
123 
124   size_t ByteSizeLong() const PROTOBUF_FINAL;
125   bool MergePartialFromCodedStream(
126       ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
127   void SerializeWithCachedSizes(
128       ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
129   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130       bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
GetCachedSize()131   int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
132   private:
133   void SharedCtor();
134   void SharedDtor();
135   void SetCachedSize(int size) const PROTOBUF_FINAL;
136   void InternalSwap(Timestamp* other);
137   protected:
138   explicit Timestamp(::google::protobuf::Arena* arena);
139   private:
140   static void ArenaDtor(void* object);
141   inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
142   private:
GetArenaNoVirtual()143   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
144     return _internal_metadata_.arena();
145   }
MaybeArenaPtr()146   inline void* MaybeArenaPtr() const {
147     return _internal_metadata_.raw_arena_ptr();
148   }
149   public:
150 
151   ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
152 
153   // nested types ----------------------------------------------------
154 
155   // accessors -------------------------------------------------------
156 
157   // int64 seconds = 1;
158   void clear_seconds();
159   static const int kSecondsFieldNumber = 1;
160   ::google::protobuf::int64 seconds() const;
161   void set_seconds(::google::protobuf::int64 value);
162 
163   // int32 nanos = 2;
164   void clear_nanos();
165   static const int kNanosFieldNumber = 2;
166   ::google::protobuf::int32 nanos() const;
167   void set_nanos(::google::protobuf::int32 value);
168 
169   // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp)
170  private:
171 
172   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
173   template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
174   typedef void InternalArenaConstructable_;
175   typedef void DestructorSkippable_;
176   ::google::protobuf::int64 seconds_;
177   ::google::protobuf::int32 nanos_;
178   mutable int _cached_size_;
179   friend struct ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::TableStruct;
180   friend void ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestampImpl();
181 };
182 // ===================================================================
183 
184 
185 // ===================================================================
186 
187 #ifdef __GNUC__
188   #pragma GCC diagnostic push
189   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
190 #endif  // __GNUC__
191 // Timestamp
192 
193 // int64 seconds = 1;
clear_seconds()194 inline void Timestamp::clear_seconds() {
195   seconds_ = GOOGLE_LONGLONG(0);
196 }
seconds()197 inline ::google::protobuf::int64 Timestamp::seconds() const {
198   // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.seconds)
199   return seconds_;
200 }
set_seconds(::google::protobuf::int64 value)201 inline void Timestamp::set_seconds(::google::protobuf::int64 value) {
202 
203   seconds_ = value;
204   // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
205 }
206 
207 // int32 nanos = 2;
clear_nanos()208 inline void Timestamp::clear_nanos() {
209   nanos_ = 0;
210 }
nanos()211 inline ::google::protobuf::int32 Timestamp::nanos() const {
212   // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos)
213   return nanos_;
214 }
set_nanos(::google::protobuf::int32 value)215 inline void Timestamp::set_nanos(::google::protobuf::int32 value) {
216 
217   nanos_ = value;
218   // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
219 }
220 
221 #ifdef __GNUC__
222   #pragma GCC diagnostic pop
223 #endif  // __GNUC__
224 
225 // @@protoc_insertion_point(namespace_scope)
226 
227 }  // namespace protobuf
228 }  // namespace google
229 
230 // @@protoc_insertion_point(global_scope)
231 
232 #endif  // PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
233