Go to the documentation of this file.
4 #include <google/protobuf/duration.pb.h>
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
16 #include <google/protobuf/port_def.inc>
18 PROTOBUF_PRAGMA_INIT_SEG
19 PROTOBUF_NAMESPACE_OPEN
21 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
33 PROTOBUF_NAMESPACE_CLOSE
57 "\n\036google/protobuf/duration.proto\022\017google"
58 ".protobuf\"*\n\010Duration\022\017\n\007seconds\030\001 \001(\003\022\r"
59 "\n\005nanos\030\002 \001(\005B\203\001\n\023com.google.protobufB\rD"
60 "urationProtoP\001Z1google.golang.org/protob"
61 "uf/types/known/durationpb\370\001\001\242\002\003GPB\252\002\036Goo"
62 "gle.Protobuf.WellKnownTypesb\006proto3"
66 false,
false, 235, descriptor_table_protodef_google_2fprotobuf_2fduration_2eproto,
"google/protobuf/duration.proto",
77 PROTOBUF_NAMESPACE_OPEN
86 bool is_message_owned)
87 : ::PROTOBUF_NAMESPACE_ID::
Message(
arena, is_message_owned) {
89 if (!is_message_owned) {
95 : ::PROTOBUF_NAMESPACE_ID::
Message() {
98 static_cast<size_t>(
reinterpret_cast<char*
>(&
nanos_) -
104 ::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
105 reinterpret_cast<char*
>(&
seconds_) -
reinterpret_cast<char*
>(
this)),
106 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&
nanos_) -
112 if (GetArenaForAllocation() !=
nullptr)
return;
135 (void) cached_has_bits;
138 reinterpret_cast<char*
>(&
nanos_) -
144 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
145 while (!
ctx->Done(&
ptr)) {
151 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 8)) {
159 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 16)) {
169 if ((
tag == 0) || ((
tag & 7) == 4)) {
192 (void) cached_has_bits;
197 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->
_internal_seconds(), target);
203 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->
_internal_nanos(), target);
207 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
216 size_t total_size = 0;
220 (void) cached_has_bits;
224 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->
_internal_seconds());
229 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->
_internal_nanos());
232 return MaybeComputeUnknownFieldsSize(total_size, &
_cached_size_);
236 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
252 (void) cached_has_bits;
254 if (
from._internal_seconds() != 0) {
257 if (
from._internal_nanos() != 0) {
265 if (&
from ==
this)
return;
282 reinterpret_cast<char*
>(&other->
seconds_));
292 PROTOBUF_NAMESPACE_CLOSE
293 PROTOBUF_NAMESPACE_OPEN
295 return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Duration >(
arena);
297 PROTOBUF_NAMESPACE_CLOSE
300 #include <google/protobuf/port_undef.inc>
void _internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
size_t ByteSizeLong() const final
const PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable * descriptor_table_google_2fprotobuf_2fduration_2eproto_getter()
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
struct EnumDescriptor EnumDescriptor
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static void ArenaDtor(void *object)
return memset(p, 0, total)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DurationDefaultTypeInternal _Duration_default_instance_
::PROTOBUF_NAMESPACE_ID::int32 _internal_nanos() const
void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *arena)
const char * UnknownFieldParse(uint32 tag, std::string *unknown, const char *ptr, ParseContext *ctx)
GRPC_CUSTOM_MESSAGE Message
bool IsInitialized() const final
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_google_2fprotobuf_2fduration_2eproto
OPENSSL_EXPORT pem_password_cb void * u
void SetCachedSize(int size) const final
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fduration_2eproto
~DurationDefaultTypeInternal()
static PyObject * UnknownFieldSet(CMessage *self)
grpc_core::ScopedArenaPtr arena
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message *to, const ::PROTOBUF_NAMESPACE_ID::Message &from)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fduration_2eproto_once
void _internal_set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value)
static const ClassData _class_data_
static void * tag(intptr_t t)
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Duration * Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Duration >(Arena *arena)
::PROTOBUF_NAMESPACE_ID::int64 seconds_
void InternalSwap(Duration *other)
::PROTOBUF_NAMESPACE_ID::int64 _internal_seconds() const
std::enable_if<(kSize==0), void >::type memswap(char *, char *)
void swap(Json::Value &a, Json::Value &b)
Specialize std::swap() for Json::Value.
static bool dynamic_init_dummy_google_2fprotobuf_2fduration_2eproto
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
constexpr DurationDefaultTypeInternal()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
uint32_t ReadVarint32(const char **p)
PROTOBUF_NAMESPACE_CLOSE ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fduration_2eproto[1]
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< Duration > _instance
::PROTOBUF_NAMESPACE_ID::int32 nanos_
const ::PROTOBUF_NAMESPACE_ID::Message *const file_default_instances[]
const uint32_t TableStruct_google_2fprotobuf_2fduration_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
void AssignDescriptors(const DescriptorTable *table)
std::vector< std::pair< std::string, std::string > > Metadata
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
GRPC_CUSTOM_SERVICEDESCRIPTOR ServiceDescriptor
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_google_2fprotobuf_2fduration_2eproto
uint64_t ReadVarint64(const char **p)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:17