ESPHome 2025.8.0b1
Loading...
Searching...
No Matches
esphome::api::GetTimeResponse Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::GetTimeResponse:
esphome::api::ProtoDecodableMessage esphome::api::ProtoMessage

Public Member Functions

const char * message_name () const override
 
void encode (ProtoWriteBuffer buffer) const override
 
void calculate_size (ProtoSize &size) const override
 
void dump_to (std::string &out) const override
 
- Public Member Functions inherited from esphome::api::ProtoDecodableMessage
void decode (const uint8_t *buffer, size_t length)
 
- Public Member Functions inherited from esphome::api::ProtoMessage
virtual ~ProtoMessage ()=default
 
std::string dump () const
 

Data Fields

uint32_t epoch_seconds {0}
 

Static Public Attributes

static constexpr uint8_t MESSAGE_TYPE = 37
 
static constexpr uint8_t ESTIMATED_SIZE = 5
 

Protected Member Functions

bool decode_32bit (uint32_t field_id, Proto32Bit value) override
 
- Protected Member Functions inherited from esphome::api::ProtoDecodableMessage
virtual bool decode_varint (uint32_t field_id, ProtoVarInt value)
 
virtual bool decode_length (uint32_t field_id, ProtoLengthDelimited value)
 

Detailed Description

Definition at line 1174 of file api_pb2.h.

Member Function Documentation

◆ calculate_size()

void esphome::api::GetTimeResponse::calculate_size ( ProtoSize & size) const
overridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 915 of file api_pb2.cpp.

◆ decode_32bit()

bool esphome::api::GetTimeResponse::decode_32bit ( uint32_t field_id,
Proto32Bit value )
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoDecodableMessage.

Definition at line 904 of file api_pb2.cpp.

◆ dump_to()

void esphome::api::GetTimeResponse::dump_to ( std::string & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 1113 of file api_pb2_dump.cpp.

◆ encode()

void esphome::api::GetTimeResponse::encode ( ProtoWriteBuffer buffer) const
overridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 914 of file api_pb2.cpp.

◆ message_name()

const char * esphome::api::GetTimeResponse::message_name ( ) const
inlineoverridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1179 of file api_pb2.h.

Field Documentation

◆ epoch_seconds

uint32_t esphome::api::GetTimeResponse::epoch_seconds {0}

Definition at line 1181 of file api_pb2.h.

◆ ESTIMATED_SIZE

uint8_t esphome::api::GetTimeResponse::ESTIMATED_SIZE = 5
staticconstexpr

Definition at line 1177 of file api_pb2.h.

◆ MESSAGE_TYPE

uint8_t esphome::api::GetTimeResponse::MESSAGE_TYPE = 37
staticconstexpr

Definition at line 1176 of file api_pb2.h.


The documentation for this class was generated from the following files: