Go to the documentation of this file.
17 #include <google/protobuf/port_def.inc>
18 PROTOBUF_NAMESPACE_OPEN
21 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Timestamp>
_instance;
23 PROTOBUF_NAMESPACE_CLOSE
32 PROTOBUF_NAMESPACE_ID::Timestamp::InitAsDefaultInstance();
60 "\n\037google/protobuf/timestamp.proto\022\017googl"
61 "e.protobuf\"+\n\tTimestamp\022\017\n\007seconds\030\001 \001(\003"
62 "\022\r\n\005nanos\030\002 \001(\005B~\n\023com.google.protobufB\016"
63 "TimestampProtoP\001Z+github.com/golang/prot"
64 "obuf/ptypes/timestamp\370\001\001\242\002\003GPB\252\002\036Google."
65 "Protobuf.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<Timestamp>(
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::Timestamp >(arena);
402 PROTOBUF_NAMESPACE_CLOSE
405 #include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2ftimestamp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
void SetCachedSize(int size) const final
static void InitAsDefaultInstance()
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
uint64 ReadVarint(const char **p)
::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase *const descriptor_table_google_2fprotobuf_2ftimestamp_2eproto_sccs[1]
size_t ByteSizeLong() const final
void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void OnShutdownDestroyMessage(const void *ptr)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_google_2fprotobuf_2ftimestamp_2eproto
void InitSCC(SCCInfoBase *scc)
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< Timestamp > _instance
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
struct EnumDescriptor EnumDescriptor
bool MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *input) final
::PROTOBUF_NAMESPACE_ID::uint8 * InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 *target) const final
PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 0 > scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto
::PROTOBUF_NAMESPACE_ID::int64 seconds_
::PROTOBUF_NAMESPACE_ID::int32 nanos_
struct Timestamp Timestamp
static PROTOBUF_NAMESPACE_CLOSE void InitDefaultsscc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftimestamp_2eproto
static const Timestamp & default_instance()
void set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value)
#define GOOGLE_PROTOBUF_VERIFY_VERSION
static bool dynamic_init_dummy_google_2fprotobuf_2ftimestamp_2eproto
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
const char * UnknownFieldParse(uint32 tag, std::string *unknown, const char *ptr, ParseContext *ctx)
PROTOBUF_NAMESPACE_OPEN class TimestampDefaultTypeInternal _Timestamp_default_instance_
void swap(Json::Value &a, Json::Value &b)
Specialize std::swap() for Json::Value.
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2ftimestamp_2eproto[1]
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2ftimestamp_2eproto_once
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_google_2fprotobuf_2ftimestamp_2eproto
void SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *output) const final
::PROTOBUF_NAMESPACE_ID::int32 nanos() const
GLsizei GLsizei GLchar * source
bool IsInitialized() const final
static bool descriptor_table_google_2fprotobuf_2ftimestamp_2eproto_initialized
::PROTOBUF_NAMESPACE_ID::int64 seconds() const
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
inline ::PROTOBUF_NAMESPACE_ID::Arena * GetArenaNoVirtual() const
const ::PROTOBUF_NAMESPACE_ID::Message *const file_default_instances[]
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
int ToCachedSize(size_t size)
friend void swap(Timestamp &a, Timestamp &b)
void set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value)
static void ArenaDtor(void *object)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Timestamp * Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Timestamp >(Arena *arena)
const upb_json_parsermethod const upb_symtab upb_sink * output
static const Timestamp * internal_default_instance()
void InternalSwap(Timestamp *other)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic()
def Merge(text, message, allow_unknown_extension=False, allow_field_number=False, descriptor_pool=None, allow_unknown_field=False)
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable *const descriptor_table_google_2fprotobuf_2ftimestamp_2eproto_deps[1]
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:00