ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::api::DSTRule Class Referencefinal

#include <api_pb2.h>

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

Public Member Functions

void decode (const uint8_t *buffer, size_t length)
 
const char * dump_to (DumpBuffer &out) const override
 
- Public Member Functions inherited from esphome::api::ProtoMessage
uint8_t * encode (ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
 
uint32_t calculate_size () const
 
virtual const LogString * message_name () const
 

Data Fields

int32_t time_seconds {0}
 
uint32_t day {0}
 
enums::DSTRuleType type {}
 
uint32_t month {0}
 
uint32_t week {0}
 
uint32_t day_of_week {0}
 

Static Protected Member Functions

static void decode_field (void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
 

Additional Inherited Members

- Public Types inherited from esphome::api::ProtoDecodableMessage
using DecodeFieldFn = void (*)(void *msg, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
 Stores one decoded field into msg; generated per message type.
 
- Static Public Member Functions inherited from esphome::api::ProtoDecodableMessage
static void decode_fields (void *msg, const uint8_t *buffer, size_t length, DecodeFieldFn field)
 Walk buffer and hand every field to field.
 
static uint32_t count_repeated_field (const uint8_t *buffer, size_t length, uint32_t target_field_id)
 Count occurrences of a repeated field in a protobuf buffer.
 
- Static Public Member Functions inherited from esphome::api::ProtoMessage
static uint8_t * encode_msg (const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
 
static uint32_t calc_size_msg (const void *self)
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
 ~ProtoMessage ()=default
 

Detailed Description

Definition at line 1532 of file api_pb2.h.

Member Function Documentation

◆ decode()

void esphome::api::DSTRule::decode ( const uint8_t * buffer,
size_t length )
inline

Definition at line 1540 of file api_pb2.h.

◆ decode_field()

void esphome::api::DSTRule::decode_field ( void * self,
uint32_t tag,
const uint8_t * data,
proto_varint_value_t scalar )
staticprotected

Definition at line 1300 of file api_pb2.cpp.

◆ dump_to()

const char * esphome::api::DSTRule::dump_to ( DumpBuffer & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 1605 of file api_pb2_dump.cpp.

Field Documentation

◆ day

uint32_t esphome::api::DSTRule::day {0}

Definition at line 1535 of file api_pb2.h.

◆ day_of_week

uint32_t esphome::api::DSTRule::day_of_week {0}

Definition at line 1539 of file api_pb2.h.

◆ month

uint32_t esphome::api::DSTRule::month {0}

Definition at line 1537 of file api_pb2.h.

◆ time_seconds

int32_t esphome::api::DSTRule::time_seconds {0}

Definition at line 1534 of file api_pb2.h.

◆ type

enums::DSTRuleType esphome::api::DSTRule::type {}

Definition at line 1536 of file api_pb2.h.

◆ week

uint32_t esphome::api::DSTRule::week {0}

Definition at line 1538 of file api_pb2.h.


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