ESPHome  2024.9.2
Public Member Functions | Data Fields | Protected Member Functions
esphome::api::FanCommandRequest Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::FanCommandRequest:
esphome::api::ProtoMessage

Public Member Functions

void encode (ProtoWriteBuffer buffer) 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
 

Data Fields

uint32_t key {0}
 
bool has_state {false}
 
bool state {false}
 
bool has_speed {false}
 
enums::FanSpeed speed {}
 
bool has_oscillating {false}
 
bool oscillating {false}
 
bool has_direction {false}
 
enums::FanDirection direction {}
 
bool has_speed_level {false}
 
int32_t speed_level {0}
 
bool has_preset_mode {false}
 
std::string preset_mode {}
 

Protected Member Functions

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

Detailed Description

Definition at line 530 of file api_pb2.h.

Member Function Documentation

◆ decode_32bit()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1700 of file api_pb2.cpp.

◆ decode_length()

bool esphome::api::FanCommandRequest::decode_length ( uint32_t  field_id,
ProtoLengthDelimited  value 
)
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1690 of file api_pb2.cpp.

◆ decode_varint()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1640 of file api_pb2.cpp.

◆ dump_to()

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

Implements esphome::api::ProtoMessage.

Definition at line 1726 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 1710 of file api_pb2.cpp.

Field Documentation

◆ direction

enums::FanDirection esphome::api::FanCommandRequest::direction {}

Definition at line 540 of file api_pb2.h.

◆ has_direction

bool esphome::api::FanCommandRequest::has_direction {false}

Definition at line 539 of file api_pb2.h.

◆ has_oscillating

bool esphome::api::FanCommandRequest::has_oscillating {false}

Definition at line 537 of file api_pb2.h.

◆ has_preset_mode

bool esphome::api::FanCommandRequest::has_preset_mode {false}

Definition at line 543 of file api_pb2.h.

◆ has_speed

bool esphome::api::FanCommandRequest::has_speed {false}

Definition at line 535 of file api_pb2.h.

◆ has_speed_level

bool esphome::api::FanCommandRequest::has_speed_level {false}

Definition at line 541 of file api_pb2.h.

◆ has_state

bool esphome::api::FanCommandRequest::has_state {false}

Definition at line 533 of file api_pb2.h.

◆ key

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

Definition at line 532 of file api_pb2.h.

◆ oscillating

bool esphome::api::FanCommandRequest::oscillating {false}

Definition at line 538 of file api_pb2.h.

◆ preset_mode

std::string esphome::api::FanCommandRequest::preset_mode {}

Definition at line 544 of file api_pb2.h.

◆ speed

enums::FanSpeed esphome::api::FanCommandRequest::speed {}

Definition at line 536 of file api_pb2.h.

◆ speed_level

int32_t esphome::api::FanCommandRequest::speed_level {0}

Definition at line 542 of file api_pb2.h.

◆ state

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

Definition at line 534 of file api_pb2.h.


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