Go to the documentation of this file.
17 #include <google/protobuf/port_def.inc>
18 PROTOBUF_NAMESPACE_OPEN
21 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Duration>
_instance;
23 PROTOBUF_NAMESPACE_CLOSE
32 PROTOBUF_NAMESPACE_ID::Duration::InitAsDefaultInstance();
60 "\n\036google/protobuf/duration.proto\022\017google"
61 ".protobuf\"*\n\010Duration\022\017\n\007seconds\030\001 \001(\003\022\r"
62 "\n\005nanos\030\002 \001(\005B|\n\023com.google.protobufB\rDu"
63 "rationProtoP\001Z*github.com/golang/protobu"
64 "f/ptypes/duration\370\001\001\242\002\003GPB\252\002\036Google.Prot"
65 "obuf.WellKnownTypesb\006proto3"
83 PROTOBUF_NAMESPACE_OPEN
94 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
99 : ::PROTOBUF_NAMESPACE_ID::Message(),
100 _internal_metadata_(arena) {
106 : ::PROTOBUF_NAMESPACE_ID::Message(),
107 _internal_metadata_(nullptr) {
110 static_cast<size_t>(
reinterpret_cast<char*
>(&
nanos_) -
116 ::memset(&
seconds_, 0,
static_cast<size_t>(
117 reinterpret_cast<char*
>(&
nanos_) -
149 (
void) cached_has_bits;
151 ::memset(&
seconds_, 0,
static_cast<size_t>(
152 reinterpret_cast<char*
>(&
nanos_) -
157 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
159 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
161 while (!ctx->Done(&ptr)) {
171 }
else goto handle_unusual;
178 }
else goto handle_unusual;
182 if ((tag & 7) == 4 || tag == 0) {
183 ctx->SetLastTag(tag);
187 CHK_(ptr !=
nullptr);
199 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
201 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
202 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
206 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
208 if (!
p.second)
goto handle_unusual;
209 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
214 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
227 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
255 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
258 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
261 (
void) cached_has_bits;
265 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->
seconds(), output);
269 if (this->
nanos() != 0) {
270 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->
nanos(), output);
274 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
284 (
void) cached_has_bits;
288 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->
seconds(), target);
292 if (this->
nanos() != 0) {
293 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->
nanos(), target);
297 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
306 size_t total_size = 0;
310 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
315 (
void) cached_has_bits;
320 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
325 if (this->
nanos() != 0) {
327 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
340 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Duration>(
356 (
void) cached_has_bits;
361 if (from.
nanos() != 0) {
368 if (&from ==
this)
return;
375 if (&from ==
this)
return;
397 PROTOBUF_NAMESPACE_CLOSE
398 PROTOBUF_NAMESPACE_OPEN
400 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Duration >(arena);
402 PROTOBUF_NAMESPACE_CLOSE
405 #include <google/protobuf/port_undef.inc>
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
size_t ByteSizeLong() const final
::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase *const descriptor_table_google_2fprotobuf_2fduration_2eproto_sccs[1]
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
static void ArenaDtor(void *object)
uint64 ReadVarint(const char **p)
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fduration_2eproto[1]
void set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic()
void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void OnShutdownDestroyMessage(const void *ptr)
PROTOBUF_NAMESPACE_OPEN class DurationDefaultTypeInternal _Duration_default_instance_
bool IsInitialized() const final
static PROTOBUF_NAMESPACE_CLOSE void InitDefaultsscc_info_Duration_google_2fprotobuf_2fduration_2eproto()
void SetCachedSize(int size) const final
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_google_2fprotobuf_2fduration_2eproto
void InitSCC(SCCInfoBase *scc)
inline ::PROTOBUF_NAMESPACE_ID::Arena * GetArenaNoVirtual() const
struct EnumDescriptor EnumDescriptor
::PROTOBUF_NAMESPACE_ID::uint8 * InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 *target) const final
static const Duration * internal_default_instance()
::PROTOBUF_NAMESPACE_ID::int32 nanos() const
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fduration_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static bool dynamic_init_dummy_google_2fprotobuf_2fduration_2eproto
void SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *output) const final
#define GOOGLE_PROTOBUF_VERIFY_VERSION
::PROTOBUF_NAMESPACE_ID::int64 seconds_
void InternalSwap(Duration *other)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fduration_2eproto
const char * UnknownFieldParse(uint32 tag, std::string *unknown, const char *ptr, ParseContext *ctx)
void swap(Json::Value &a, Json::Value &b)
Specialize std::swap() for Json::Value.
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable *const descriptor_table_google_2fprotobuf_2fduration_2eproto_deps[1]
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Duration * Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Duration >(Arena *arena)
static const Duration & default_instance()
GLsizei GLsizei GLchar * source
const ::PROTOBUF_NAMESPACE_ID::Message *const file_default_instances[]
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(Duration &a, Duration &b)
int ToCachedSize(size_t size)
static bool descriptor_table_google_2fprotobuf_2fduration_2eproto_initialized
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< Duration > _instance
::PROTOBUF_NAMESPACE_ID::int32 nanos_
bool MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *input) final
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_google_2fprotobuf_2fduration_2eproto
static void InitAsDefaultInstance()
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
::PROTOBUF_NAMESPACE_ID::int64 seconds() const
void set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value)
const upb_json_parsermethod const upb_symtab upb_sink * output
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fduration_2eproto_once
def Merge(text, message, allow_unknown_extension=False, allow_field_number=False, descriptor_pool=None, allow_unknown_field=False)
PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 0 > scc_info_Duration_google_2fprotobuf_2fduration_2eproto
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:50