Go to the documentation of this file.
4 #include <google/protobuf/timestamp.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\037google/protobuf/timestamp.proto\022\017googl"
58 "e.protobuf\"+\n\tTimestamp\022\017\n\007seconds\030\001 \001(\003"
59 "\022\r\n\005nanos\030\002 \001(\005B\205\001\n\023com.google.protobufB"
60 "\016TimestampProtoP\001Z2google.golang.org/pro"
61 "tobuf/types/known/timestamppb\370\001\001\242\002\003GPB\252\002"
62 "\036Google.Protobuf.WellKnownTypesb\006proto3"
66 false,
false, 239, descriptor_table_protodef_google_2fprotobuf_2ftimestamp_2eproto,
"google/protobuf/timestamp.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::Timestamp >(
arena);
297 PROTOBUF_NAMESPACE_CLOSE
300 #include <google/protobuf/port_undef.inc>
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2ftimestamp_2eproto_once
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftimestamp_2eproto
struct EnumDescriptor EnumDescriptor
void SetCachedSize(int size) const final
void _internal_set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value)
return memset(p, 0, total)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static bool dynamic_init_dummy_google_2fprotobuf_2ftimestamp_2eproto
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
size_t ByteSizeLong() const final
static const ClassData _class_data_
void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *arena)
const char * UnknownFieldParse(uint32 tag, std::string *unknown, const char *ptr, ParseContext *ctx)
GRPC_CUSTOM_MESSAGE Message
OPENSSL_EXPORT pem_password_cb void * u
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TimestampDefaultTypeInternal _Timestamp_default_instance_
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< Timestamp > _instance
const uint32_t TableStruct_google_2fprotobuf_2ftimestamp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static PyObject * UnknownFieldSet(CMessage *self)
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message *to, const ::PROTOBUF_NAMESPACE_ID::Message &from)
grpc_core::ScopedArenaPtr arena
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_google_2fprotobuf_2ftimestamp_2eproto
::PROTOBUF_NAMESPACE_ID::int64 seconds_
::PROTOBUF_NAMESPACE_ID::int32 nanos_
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
static void * tag(intptr_t t)
struct Timestamp Timestamp
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
std::enable_if<(kSize==0), void >::type memswap(char *, char *)
void swap(Json::Value &a, Json::Value &b)
Specialize std::swap() for Json::Value.
PROTOBUF_NAMESPACE_CLOSE ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2ftimestamp_2eproto[1]
constexpr TimestampDefaultTypeInternal()
bool IsInitialized() const final
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
uint32_t ReadVarint32(const char **p)
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Timestamp * Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Timestamp >(Arena *arena)
static void ArenaDtor(void *object)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
::PROTOBUF_NAMESPACE_ID::int32 _internal_nanos() const
void _internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value)
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_google_2fprotobuf_2ftimestamp_2eproto
const ::PROTOBUF_NAMESPACE_ID::Message *const file_default_instances[]
const PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable * descriptor_table_google_2fprotobuf_2ftimestamp_2eproto_getter()
::PROTOBUF_NAMESPACE_ID::int64 _internal_seconds() const
void AssignDescriptors(const DescriptorTable *table)
std::vector< std::pair< std::string, std::string > > Metadata
GRPC_CUSTOM_SERVICEDESCRIPTOR ServiceDescriptor
void InternalSwap(Timestamp *other)
~TimestampDefaultTypeInternal()
uint64_t ReadVarint64(const char **p)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:38