4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
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
16 #if 3019005 < 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.
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>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #include <google/protobuf/port_def.inc>
36 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto PROTOBUF_EXPORT
37 PROTOBUF_NAMESPACE_OPEN
41 PROTOBUF_NAMESPACE_CLOSE
45 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
47 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
49 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
51 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
52 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
56 PROTOBUF_NAMESPACE_OPEN
60 PROTOBUF_NAMESPACE_CLOSE
61 PROTOBUF_NAMESPACE_OPEN
63 PROTOBUF_NAMESPACE_CLOSE
64 PROTOBUF_NAMESPACE_OPEN
73 explicit constexpr
Timestamp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
86 if (
this == &
from)
return *
this;
87 if (GetOwningArena() ==
from.GetOwningArena()
88 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
89 && GetOwningArena() !=
nullptr
103 return default_instance().GetMetadata().descriptor;
106 return default_instance().GetMetadata().reflection;
109 return *internal_default_instance();
112 return reinterpret_cast<const Timestamp*
>(
115 static constexpr
int kIndexInFileMessages =
122 if (other ==
this)
return;
123 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
124 if (GetOwningArena() !=
nullptr &&
125 GetOwningArena() == other->GetOwningArena()) {
126 #else // PROTOBUF_FORCE_COPY_IN_SWAP
127 if (GetOwningArena() == other->GetOwningArena()) {
128 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
135 if (other ==
this)
return;
143 return CreateMaybeMessage<Timestamp>(
arena);
152 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
155 size_t ByteSizeLong()
const final;
159 int GetCachedSize()
const final {
return _cached_size_.Get(); }
164 void SetCachedSize(
int size)
const final;
168 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
170 return "google.protobuf.Timestamp";
174 bool is_message_owned =
false);
176 static void ArenaDtor(
void*
object);
181 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData()
const final;
190 kSecondsFieldNumber = 1,
191 kNanosFieldNumber = 2,
194 void clear_seconds();
198 int64_t _internal_seconds()
const;
207 int32_t _internal_nanos()
const;
215 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
220 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
221 friend struct ::TableStruct_google_2fprotobuf_2ftimestamp_2eproto;
229 #pragma GCC diagnostic push
230 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
243 return _internal_seconds();
250 _internal_set_seconds(
value);
263 return _internal_nanos();
270 _internal_set_nanos(
value);
275 #pragma GCC diagnostic pop
280 PROTOBUF_NAMESPACE_CLOSE
284 #include <google/protobuf/port_undef.inc>
285 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto