4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fduration_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fduration_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3009000
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 3009002 < 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>
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto PROTOBUF_EXPORT
38 PROTOBUF_NAMESPACE_OPEN
42 PROTOBUF_NAMESPACE_CLOSE
46 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
48 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
50 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
52 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
53 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
57 PROTOBUF_NAMESPACE_OPEN
61 PROTOBUF_NAMESPACE_CLOSE
62 PROTOBUF_NAMESPACE_OPEN
64 PROTOBUF_NAMESPACE_CLOSE
65 PROTOBUF_NAMESPACE_OPEN
70 public ::PROTOBUF_NAMESPACE_ID::Message {
78 *
this = ::std::move(from);
87 if (
this != &from) InternalSwap(&from);
95 return GetArenaNoVirtual();
98 return MaybeArenaPtr();
104 return GetMetadataStatic().descriptor;
107 return GetMetadataStatic().reflection;
109 static const Duration& default_instance();
111 static void InitAsDefaultInstance();
113 return reinterpret_cast<const Duration*
>(
116 static constexpr
int kIndexInFileMessages =
123 if (other ==
this)
return;
131 if (other ==
this)
return;
139 return CreateMaybeMessage<Duration>(
nullptr);
142 Duration*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
143 return CreateMaybeMessage<Duration>(arena);
145 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
146 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
149 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
152 size_t ByteSizeLong()
const final;
153 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
154 const char*
_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
157 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input)
final;
158 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
159 void SerializeWithCachedSizes(
160 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const final;
166 inline void SharedCtor();
167 inline void SharedDtor();
168 void SetCachedSize(
int size)
const final;
170 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 return "google.protobuf.Duration";
175 explicit Duration(::PROTOBUF_NAMESPACE_ID::Arena* arena);
177 static void ArenaDtor(
void*
object);
178 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
181 return _internal_metadata_.arena();
184 return _internal_metadata_.raw_arena_ptr();
188 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata()
const final;
190 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
202 kSecondsFieldNumber = 1,
203 kNanosFieldNumber = 2,
206 void clear_seconds();
220 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
226 friend struct ::TableStruct_google_2fprotobuf_2fduration_2eproto;
234 #pragma GCC diagnostic push
235 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
268 #pragma GCC diagnostic pop
273 PROTOBUF_NAMESPACE_CLOSE
277 #include <google/protobuf/port_undef.inc>
278 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fduration_2eproto