ESPHome  2024.4.0
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 510 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 1644 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 1634 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 1584 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 1670 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 1654 of file api_pb2.cpp.

Field Documentation

◆ direction

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

Definition at line 520 of file api_pb2.h.

◆ has_direction

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

Definition at line 519 of file api_pb2.h.

◆ has_oscillating

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

Definition at line 517 of file api_pb2.h.

◆ has_preset_mode

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

Definition at line 523 of file api_pb2.h.

◆ has_speed

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

Definition at line 515 of file api_pb2.h.

◆ has_speed_level

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

Definition at line 521 of file api_pb2.h.

◆ has_state

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

Definition at line 513 of file api_pb2.h.

◆ key

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

Definition at line 512 of file api_pb2.h.

◆ oscillating

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

Definition at line 518 of file api_pb2.h.

◆ preset_mode

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

Definition at line 524 of file api_pb2.h.

◆ speed

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

Definition at line 516 of file api_pb2.h.

◆ speed_level

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

Definition at line 522 of file api_pb2.h.

◆ state

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

Definition at line 514 of file api_pb2.h.


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