ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::api::CommandProtoMessage Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::CommandProtoMessage:
esphome::api::ProtoDecodableMessage esphome::api::ProtoMessage esphome::api::AlarmControlPanelCommandRequest esphome::api::ButtonCommandRequest esphome::api::ClimateCommandRequest esphome::api::CoverCommandRequest esphome::api::DateCommandRequest esphome::api::DateTimeCommandRequest esphome::api::FanCommandRequest esphome::api::LightCommandRequest esphome::api::LockCommandRequest esphome::api::MediaPlayerCommandRequest esphome::api::NumberCommandRequest esphome::api::SelectCommandRequest esphome::api::SirenCommandRequest esphome::api::SwitchCommandRequest esphome::api::TextCommandRequest esphome::api::TimeCommandRequest esphome::api::UpdateCommandRequest esphome::api::ValveCommandRequest esphome::api::WaterHeaterCommandRequest

Data Fields

uint32_t key {0}
 
uint32_t device_id {0}
 

Protected Member Functions

 ~CommandProtoMessage ()=default
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
 ~ProtoMessage ()=default
 

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.
 
- 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 char * dump_to (DumpBuffer &out) const =0
 
virtual const LogString * message_name () const
 
- 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)
 

Detailed Description

Definition at line 431 of file api_pb2.h.

Constructor & Destructor Documentation

◆ ~CommandProtoMessage()

esphome::api::CommandProtoMessage::~CommandProtoMessage ( )
protecteddefault

Field Documentation

◆ device_id

uint32_t esphome::api::CommandProtoMessage::device_id {0}

Definition at line 435 of file api_pb2.h.

◆ key

uint32_t esphome::api::CommandProtoMessage::key {0}

Definition at line 433 of file api_pb2.h.


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