ESPHome 2025.6.0
Loading...
Searching...
No Matches
esphome::api::SwitchCommandRequest Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::SwitchCommandRequest:
esphome::api::ProtoMessage

Public Member Functions

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

Static Public Member Functions

static constexpr const char * message_name ()
 

Data Fields

uint32_t key {0}
 
bool state {false}
 

Static Public Attributes

static constexpr uint16_t MESSAGE_TYPE = 33
 
static constexpr uint16_t ESTIMATED_SIZE = 7
 

Protected Member Functions

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

Detailed Description

Definition at line 877 of file api_pb2.h.

Member Function Documentation

◆ calculate_size()

void esphome::api::SwitchCommandRequest::calculate_size ( uint32_t & total_size) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 3051 of file api_pb2.cpp.

◆ decode_32bit()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 3037 of file api_pb2.cpp.

◆ decode_varint()

bool esphome::api::SwitchCommandRequest::decode_varint ( uint32_t field_id,
ProtoVarInt value )
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 3027 of file api_pb2.cpp.

◆ dump_to()

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

Implements esphome::api::ProtoMessage.

Definition at line 3056 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 3047 of file api_pb2.cpp.

◆ message_name()

static constexpr const char * esphome::api::SwitchCommandRequest::message_name ( )
inlinestaticconstexpr

Definition at line 882 of file api_pb2.h.

Field Documentation

◆ ESTIMATED_SIZE

uint16_t esphome::api::SwitchCommandRequest::ESTIMATED_SIZE = 7
staticconstexpr

Definition at line 880 of file api_pb2.h.

◆ key

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

Definition at line 884 of file api_pb2.h.

◆ MESSAGE_TYPE

uint16_t esphome::api::SwitchCommandRequest::MESSAGE_TYPE = 33
staticconstexpr

Definition at line 879 of file api_pb2.h.

◆ state

bool esphome::api::SwitchCommandRequest::state {false}

Definition at line 885 of file api_pb2.h.


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