ESPHome
2024.10.3
|
#include <proto.h>
Public Member Functions | |
virtual | ~ProtoMessage ()=default |
virtual void | encode (ProtoWriteBuffer buffer) const =0 |
void | decode (const uint8_t *buffer, size_t length) |
std::string | dump () const |
virtual void | dump_to (std::string &out) const =0 |
Protected Member Functions | |
virtual bool | decode_varint (uint32_t field_id, ProtoVarInt value) |
virtual bool | decode_length (uint32_t field_id, ProtoLengthDelimited value) |
virtual bool | decode_32bit (uint32_t field_id, Proto32Bit value) |
virtual bool | decode_64bit (uint32_t field_id, Proto64Bit value) |
|
virtualdefault |
void esphome::api::ProtoMessage::decode | ( | const uint8_t * | buffer, |
size_t | length | ||
) |
|
inlineprotectedvirtual |
Reimplemented in esphome::api::UpdateCommandRequest, esphome::api::UpdateStateResponse, esphome::api::ListEntitiesUpdateResponse, esphome::api::DateTimeCommandRequest, esphome::api::DateTimeStateResponse, esphome::api::ListEntitiesDateTimeResponse, esphome::api::ValveCommandRequest, esphome::api::ValveStateResponse, esphome::api::ListEntitiesValveResponse, esphome::api::EventResponse, esphome::api::ListEntitiesEventResponse, esphome::api::TimeCommandRequest, esphome::api::TimeStateResponse, esphome::api::ListEntitiesTimeResponse, esphome::api::DateCommandRequest, esphome::api::DateStateResponse, esphome::api::ListEntitiesDateResponse, esphome::api::TextCommandRequest, esphome::api::TextStateResponse, esphome::api::ListEntitiesTextResponse, esphome::api::AlarmControlPanelCommandRequest, esphome::api::AlarmControlPanelStateResponse, esphome::api::ListEntitiesAlarmControlPanelResponse, esphome::api::VoiceAssistantAudioSettings, esphome::api::MediaPlayerCommandRequest, esphome::api::MediaPlayerStateResponse, esphome::api::ListEntitiesMediaPlayerResponse, esphome::api::ButtonCommandRequest, esphome::api::ListEntitiesButtonResponse, esphome::api::LockCommandRequest, esphome::api::LockStateResponse, esphome::api::ListEntitiesLockResponse, esphome::api::SelectCommandRequest, esphome::api::SelectStateResponse, esphome::api::ListEntitiesSelectResponse, esphome::api::NumberCommandRequest, esphome::api::NumberStateResponse, esphome::api::ListEntitiesNumberResponse, esphome::api::ClimateCommandRequest, esphome::api::ClimateStateResponse, esphome::api::ListEntitiesClimateResponse, esphome::api::CameraImageResponse, esphome::api::ListEntitiesCameraResponse, esphome::api::ExecuteServiceRequest, esphome::api::ExecuteServiceArgument, esphome::api::ListEntitiesServicesResponse, esphome::api::GetTimeResponse, esphome::api::TextSensorStateResponse, esphome::api::ListEntitiesTextSensorResponse, esphome::api::SwitchCommandRequest, esphome::api::SwitchStateResponse, esphome::api::ListEntitiesSwitchResponse, esphome::api::SensorStateResponse, esphome::api::ListEntitiesSensorResponse, esphome::api::LightCommandRequest, esphome::api::LightStateResponse, esphome::api::ListEntitiesLightResponse, esphome::api::FanCommandRequest, esphome::api::FanStateResponse, esphome::api::ListEntitiesFanResponse, esphome::api::CoverCommandRequest, esphome::api::CoverStateResponse, esphome::api::ListEntitiesCoverResponse, esphome::api::BinarySensorStateResponse, and esphome::api::ListEntitiesBinarySensorResponse.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Reimplemented in esphome::api::UpdateStateResponse, esphome::api::ListEntitiesUpdateResponse, esphome::api::ListEntitiesDateTimeResponse, esphome::api::ListEntitiesValveResponse, esphome::api::EventResponse, esphome::api::ListEntitiesEventResponse, esphome::api::ListEntitiesTimeResponse, esphome::api::ListEntitiesDateResponse, esphome::api::TextCommandRequest, esphome::api::TextStateResponse, esphome::api::ListEntitiesTextResponse, esphome::api::AlarmControlPanelCommandRequest, esphome::api::ListEntitiesAlarmControlPanelResponse, esphome::api::VoiceAssistantSetConfiguration, esphome::api::VoiceAssistantConfigurationResponse, esphome::api::VoiceAssistantWakeWord, esphome::api::VoiceAssistantAnnounceRequest, esphome::api::VoiceAssistantTimerEventResponse, esphome::api::VoiceAssistantAudio, esphome::api::VoiceAssistantEventResponse, esphome::api::VoiceAssistantEventData, esphome::api::VoiceAssistantRequest, esphome::api::BluetoothGATTNotifyDataResponse, esphome::api::BluetoothGATTWriteDescriptorRequest, esphome::api::BluetoothGATTWriteRequest, esphome::api::BluetoothGATTReadResponse, esphome::api::BluetoothGATTGetServicesResponse, esphome::api::BluetoothGATTService, esphome::api::BluetoothGATTCharacteristic, esphome::api::BluetoothLERawAdvertisementsResponse, esphome::api::BluetoothLERawAdvertisement, esphome::api::BluetoothLEAdvertisementResponse, esphome::api::BluetoothServiceData, esphome::api::MediaPlayerCommandRequest, esphome::api::ListEntitiesMediaPlayerResponse, esphome::api::MediaPlayerSupportedFormat, esphome::api::ListEntitiesButtonResponse, esphome::api::LockCommandRequest, esphome::api::ListEntitiesLockResponse, esphome::api::SelectCommandRequest, esphome::api::SelectStateResponse, esphome::api::ListEntitiesSelectResponse, esphome::api::ListEntitiesNumberResponse, esphome::api::ClimateCommandRequest, esphome::api::ClimateStateResponse, esphome::api::ListEntitiesClimateResponse, esphome::api::CameraImageResponse, esphome::api::ListEntitiesCameraResponse, esphome::api::ExecuteServiceRequest, esphome::api::ExecuteServiceArgument, esphome::api::ListEntitiesServicesResponse, esphome::api::ListEntitiesServicesArgument, esphome::api::HomeAssistantStateResponse, esphome::api::SubscribeHomeAssistantStateResponse, esphome::api::HomeassistantServiceResponse, esphome::api::HomeassistantServiceMap, esphome::api::SubscribeLogsResponse, esphome::api::TextSensorStateResponse, esphome::api::ListEntitiesTextSensorResponse, esphome::api::ListEntitiesSwitchResponse, esphome::api::ListEntitiesSensorResponse, esphome::api::LightCommandRequest, esphome::api::LightStateResponse, esphome::api::ListEntitiesLightResponse, esphome::api::FanCommandRequest, esphome::api::FanStateResponse, esphome::api::ListEntitiesFanResponse, esphome::api::ListEntitiesCoverResponse, esphome::api::ListEntitiesBinarySensorResponse, esphome::api::DeviceInfoResponse, esphome::api::ConnectRequest, esphome::api::HelloResponse, and esphome::api::HelloRequest.
|
inlineprotectedvirtual |
Reimplemented in esphome::api::UpdateCommandRequest, esphome::api::UpdateStateResponse, esphome::api::ListEntitiesUpdateResponse, esphome::api::DateTimeStateResponse, esphome::api::ListEntitiesDateTimeResponse, esphome::api::ValveCommandRequest, esphome::api::ValveStateResponse, esphome::api::ListEntitiesValveResponse, esphome::api::ListEntitiesEventResponse, esphome::api::TimeCommandRequest, esphome::api::TimeStateResponse, esphome::api::ListEntitiesTimeResponse, esphome::api::DateCommandRequest, esphome::api::DateStateResponse, esphome::api::ListEntitiesDateResponse, esphome::api::TextStateResponse, esphome::api::ListEntitiesTextResponse, esphome::api::AlarmControlPanelCommandRequest, esphome::api::AlarmControlPanelStateResponse, esphome::api::ListEntitiesAlarmControlPanelResponse, esphome::api::VoiceAssistantConfigurationResponse, esphome::api::VoiceAssistantAnnounceFinished, esphome::api::VoiceAssistantTimerEventResponse, esphome::api::VoiceAssistantAudio, esphome::api::VoiceAssistantEventResponse, esphome::api::VoiceAssistantResponse, esphome::api::VoiceAssistantRequest, esphome::api::VoiceAssistantAudioSettings, esphome::api::SubscribeVoiceAssistantRequest, esphome::api::BluetoothDeviceClearCacheResponse, esphome::api::BluetoothDeviceUnpairingResponse, esphome::api::BluetoothDevicePairingResponse, esphome::api::BluetoothGATTNotifyResponse, esphome::api::BluetoothGATTWriteResponse, esphome::api::BluetoothGATTErrorResponse, esphome::api::BluetoothConnectionsFreeResponse, esphome::api::BluetoothGATTNotifyDataResponse, esphome::api::BluetoothGATTNotifyRequest, esphome::api::BluetoothGATTWriteDescriptorRequest, esphome::api::BluetoothGATTReadDescriptorRequest, esphome::api::BluetoothGATTWriteRequest, esphome::api::BluetoothGATTReadResponse, esphome::api::BluetoothGATTReadRequest, esphome::api::BluetoothGATTGetServicesDoneResponse, esphome::api::BluetoothGATTGetServicesResponse, esphome::api::BluetoothGATTService, esphome::api::BluetoothGATTCharacteristic, esphome::api::BluetoothGATTDescriptor, esphome::api::BluetoothGATTGetServicesRequest, esphome::api::BluetoothDeviceConnectionResponse, esphome::api::BluetoothDeviceRequest, esphome::api::BluetoothLERawAdvertisement, esphome::api::BluetoothLEAdvertisementResponse, esphome::api::BluetoothServiceData, esphome::api::SubscribeBluetoothLEAdvertisementsRequest, esphome::api::MediaPlayerCommandRequest, esphome::api::MediaPlayerStateResponse, esphome::api::ListEntitiesMediaPlayerResponse, esphome::api::MediaPlayerSupportedFormat, esphome::api::ListEntitiesButtonResponse, esphome::api::LockCommandRequest, esphome::api::LockStateResponse, esphome::api::ListEntitiesLockResponse, esphome::api::SelectStateResponse, esphome::api::ListEntitiesSelectResponse, esphome::api::NumberStateResponse, esphome::api::ListEntitiesNumberResponse, esphome::api::ClimateCommandRequest, esphome::api::ClimateStateResponse, esphome::api::ListEntitiesClimateResponse, esphome::api::CameraImageRequest, esphome::api::CameraImageResponse, esphome::api::ListEntitiesCameraResponse, esphome::api::ExecuteServiceArgument, esphome::api::ListEntitiesServicesArgument, esphome::api::SubscribeHomeAssistantStateResponse, esphome::api::HomeassistantServiceResponse, esphome::api::SubscribeLogsResponse, esphome::api::SubscribeLogsRequest, esphome::api::TextSensorStateResponse, esphome::api::ListEntitiesTextSensorResponse, esphome::api::SwitchCommandRequest, esphome::api::SwitchStateResponse, esphome::api::ListEntitiesSwitchResponse, esphome::api::SensorStateResponse, esphome::api::ListEntitiesSensorResponse, esphome::api::LightCommandRequest, esphome::api::LightStateResponse, esphome::api::ListEntitiesLightResponse, esphome::api::FanCommandRequest, esphome::api::FanStateResponse, esphome::api::ListEntitiesFanResponse, esphome::api::CoverCommandRequest, esphome::api::CoverStateResponse, esphome::api::ListEntitiesCoverResponse, esphome::api::BinarySensorStateResponse, esphome::api::ListEntitiesBinarySensorResponse, esphome::api::DeviceInfoResponse, esphome::api::ConnectResponse, esphome::api::HelloResponse, and esphome::api::HelloRequest.
|
pure virtual |
Implemented in esphome::api::UpdateCommandRequest, esphome::api::UpdateStateResponse, esphome::api::ListEntitiesUpdateResponse, esphome::api::DateTimeCommandRequest, esphome::api::DateTimeStateResponse, esphome::api::ListEntitiesDateTimeResponse, esphome::api::ValveCommandRequest, esphome::api::ValveStateResponse, esphome::api::ListEntitiesValveResponse, esphome::api::EventResponse, esphome::api::ListEntitiesEventResponse, esphome::api::TimeCommandRequest, esphome::api::TimeStateResponse, esphome::api::ListEntitiesTimeResponse, esphome::api::DateCommandRequest, esphome::api::DateStateResponse, esphome::api::ListEntitiesDateResponse, esphome::api::TextCommandRequest, esphome::api::TextStateResponse, esphome::api::ListEntitiesTextResponse, esphome::api::AlarmControlPanelCommandRequest, esphome::api::AlarmControlPanelStateResponse, esphome::api::ListEntitiesAlarmControlPanelResponse, esphome::api::VoiceAssistantSetConfiguration, esphome::api::VoiceAssistantConfigurationResponse, esphome::api::VoiceAssistantConfigurationRequest, esphome::api::VoiceAssistantWakeWord, esphome::api::VoiceAssistantAnnounceFinished, esphome::api::VoiceAssistantAnnounceRequest, esphome::api::VoiceAssistantTimerEventResponse, esphome::api::VoiceAssistantAudio, esphome::api::VoiceAssistantEventResponse, esphome::api::VoiceAssistantEventData, esphome::api::VoiceAssistantResponse, esphome::api::VoiceAssistantRequest, esphome::api::VoiceAssistantAudioSettings, esphome::api::SubscribeVoiceAssistantRequest, esphome::api::BluetoothDeviceClearCacheResponse, esphome::api::UnsubscribeBluetoothLEAdvertisementsRequest, esphome::api::BluetoothDeviceUnpairingResponse, esphome::api::BluetoothDevicePairingResponse, esphome::api::BluetoothGATTNotifyResponse, esphome::api::BluetoothGATTWriteResponse, esphome::api::BluetoothGATTErrorResponse, esphome::api::BluetoothConnectionsFreeResponse, esphome::api::SubscribeBluetoothConnectionsFreeRequest, esphome::api::BluetoothGATTNotifyDataResponse, esphome::api::BluetoothGATTNotifyRequest, esphome::api::BluetoothGATTWriteDescriptorRequest, esphome::api::BluetoothGATTReadDescriptorRequest, esphome::api::BluetoothGATTWriteRequest, esphome::api::BluetoothGATTReadResponse, esphome::api::BluetoothGATTReadRequest, esphome::api::BluetoothGATTGetServicesDoneResponse, esphome::api::BluetoothGATTGetServicesResponse, esphome::api::BluetoothGATTService, esphome::api::BluetoothGATTCharacteristic, esphome::api::BluetoothGATTDescriptor, esphome::api::BluetoothGATTGetServicesRequest, esphome::api::BluetoothDeviceConnectionResponse, esphome::api::BluetoothDeviceRequest, esphome::api::BluetoothLERawAdvertisementsResponse, esphome::api::BluetoothLERawAdvertisement, esphome::api::BluetoothLEAdvertisementResponse, esphome::api::BluetoothServiceData, esphome::api::SubscribeBluetoothLEAdvertisementsRequest, esphome::api::MediaPlayerCommandRequest, esphome::api::MediaPlayerStateResponse, esphome::api::ListEntitiesMediaPlayerResponse, esphome::api::MediaPlayerSupportedFormat, esphome::api::ButtonCommandRequest, esphome::api::ListEntitiesButtonResponse, esphome::api::LockCommandRequest, esphome::api::LockStateResponse, esphome::api::ListEntitiesLockResponse, esphome::api::SelectCommandRequest, esphome::api::SelectStateResponse, esphome::api::ListEntitiesSelectResponse, esphome::api::NumberCommandRequest, esphome::api::NumberStateResponse, esphome::api::ListEntitiesNumberResponse, esphome::api::ClimateCommandRequest, esphome::api::ClimateStateResponse, esphome::api::ListEntitiesClimateResponse, esphome::api::CameraImageRequest, esphome::api::CameraImageResponse, esphome::api::ListEntitiesCameraResponse, esphome::api::ExecuteServiceRequest, esphome::api::ExecuteServiceArgument, esphome::api::ListEntitiesServicesResponse, esphome::api::ListEntitiesServicesArgument, esphome::api::GetTimeResponse, esphome::api::GetTimeRequest, esphome::api::HomeAssistantStateResponse, esphome::api::SubscribeHomeAssistantStateResponse, esphome::api::SubscribeHomeAssistantStatesRequest, esphome::api::HomeassistantServiceResponse, esphome::api::HomeassistantServiceMap, esphome::api::SubscribeHomeassistantServicesRequest, esphome::api::SubscribeLogsResponse, esphome::api::SubscribeLogsRequest, esphome::api::TextSensorStateResponse, esphome::api::ListEntitiesTextSensorResponse, esphome::api::SwitchCommandRequest, esphome::api::SwitchStateResponse, esphome::api::ListEntitiesSwitchResponse, esphome::api::SensorStateResponse, esphome::api::ListEntitiesSensorResponse, esphome::api::LightCommandRequest, esphome::api::LightStateResponse, esphome::api::ListEntitiesLightResponse, esphome::api::FanCommandRequest, esphome::api::FanStateResponse, esphome::api::ListEntitiesFanResponse, esphome::api::CoverCommandRequest, esphome::api::CoverStateResponse, esphome::api::ListEntitiesCoverResponse, esphome::api::BinarySensorStateResponse, esphome::api::ListEntitiesBinarySensorResponse, esphome::api::SubscribeStatesRequest, esphome::api::ListEntitiesDoneResponse, esphome::api::ListEntitiesRequest, esphome::api::DeviceInfoResponse, esphome::api::DeviceInfoRequest, esphome::api::PingResponse, esphome::api::PingRequest, esphome::api::DisconnectResponse, esphome::api::DisconnectRequest, esphome::api::ConnectResponse, esphome::api::ConnectRequest, esphome::api::HelloResponse, and esphome::api::HelloRequest.
|
pure virtual |
Implemented in esphome::api::UpdateCommandRequest, esphome::api::UpdateStateResponse, esphome::api::ListEntitiesUpdateResponse, esphome::api::DateTimeCommandRequest, esphome::api::DateTimeStateResponse, esphome::api::ListEntitiesDateTimeResponse, esphome::api::ValveCommandRequest, esphome::api::ValveStateResponse, esphome::api::ListEntitiesValveResponse, esphome::api::EventResponse, esphome::api::ListEntitiesEventResponse, esphome::api::TimeCommandRequest, esphome::api::TimeStateResponse, esphome::api::ListEntitiesTimeResponse, esphome::api::DateCommandRequest, esphome::api::DateStateResponse, esphome::api::ListEntitiesDateResponse, esphome::api::TextCommandRequest, esphome::api::TextStateResponse, esphome::api::ListEntitiesTextResponse, esphome::api::AlarmControlPanelCommandRequest, esphome::api::AlarmControlPanelStateResponse, esphome::api::ListEntitiesAlarmControlPanelResponse, esphome::api::VoiceAssistantSetConfiguration, esphome::api::VoiceAssistantConfigurationResponse, esphome::api::VoiceAssistantConfigurationRequest, esphome::api::VoiceAssistantWakeWord, esphome::api::VoiceAssistantAnnounceFinished, esphome::api::VoiceAssistantAnnounceRequest, esphome::api::VoiceAssistantTimerEventResponse, esphome::api::VoiceAssistantAudio, esphome::api::VoiceAssistantEventResponse, esphome::api::VoiceAssistantEventData, esphome::api::VoiceAssistantResponse, esphome::api::VoiceAssistantRequest, esphome::api::VoiceAssistantAudioSettings, esphome::api::SubscribeVoiceAssistantRequest, esphome::api::BluetoothDeviceClearCacheResponse, esphome::api::UnsubscribeBluetoothLEAdvertisementsRequest, esphome::api::BluetoothDeviceUnpairingResponse, esphome::api::BluetoothDevicePairingResponse, esphome::api::BluetoothGATTNotifyResponse, esphome::api::BluetoothGATTWriteResponse, esphome::api::BluetoothGATTErrorResponse, esphome::api::BluetoothConnectionsFreeResponse, esphome::api::SubscribeBluetoothConnectionsFreeRequest, esphome::api::BluetoothGATTNotifyDataResponse, esphome::api::BluetoothGATTNotifyRequest, esphome::api::BluetoothGATTWriteDescriptorRequest, esphome::api::BluetoothGATTReadDescriptorRequest, esphome::api::BluetoothGATTWriteRequest, esphome::api::BluetoothGATTReadResponse, esphome::api::BluetoothGATTReadRequest, esphome::api::BluetoothGATTGetServicesDoneResponse, esphome::api::BluetoothGATTGetServicesResponse, esphome::api::BluetoothGATTService, esphome::api::BluetoothGATTCharacteristic, esphome::api::BluetoothGATTDescriptor, esphome::api::BluetoothGATTGetServicesRequest, esphome::api::BluetoothDeviceConnectionResponse, esphome::api::BluetoothDeviceRequest, esphome::api::BluetoothLERawAdvertisementsResponse, esphome::api::BluetoothLERawAdvertisement, esphome::api::BluetoothLEAdvertisementResponse, esphome::api::BluetoothServiceData, esphome::api::SubscribeBluetoothLEAdvertisementsRequest, esphome::api::MediaPlayerCommandRequest, esphome::api::MediaPlayerStateResponse, esphome::api::ListEntitiesMediaPlayerResponse, esphome::api::MediaPlayerSupportedFormat, esphome::api::ButtonCommandRequest, esphome::api::ListEntitiesButtonResponse, esphome::api::LockCommandRequest, esphome::api::LockStateResponse, esphome::api::ListEntitiesLockResponse, esphome::api::SelectCommandRequest, esphome::api::SelectStateResponse, esphome::api::ListEntitiesSelectResponse, esphome::api::NumberCommandRequest, esphome::api::NumberStateResponse, esphome::api::ListEntitiesNumberResponse, esphome::api::ClimateCommandRequest, esphome::api::ClimateStateResponse, esphome::api::ListEntitiesClimateResponse, esphome::api::CameraImageRequest, esphome::api::CameraImageResponse, esphome::api::ListEntitiesCameraResponse, esphome::api::ExecuteServiceRequest, esphome::api::ExecuteServiceArgument, esphome::api::ListEntitiesServicesResponse, esphome::api::ListEntitiesServicesArgument, esphome::api::GetTimeResponse, esphome::api::GetTimeRequest, esphome::api::HomeAssistantStateResponse, esphome::api::SubscribeHomeAssistantStateResponse, esphome::api::SubscribeHomeAssistantStatesRequest, esphome::api::HomeassistantServiceResponse, esphome::api::HomeassistantServiceMap, esphome::api::SubscribeHomeassistantServicesRequest, esphome::api::SubscribeLogsResponse, esphome::api::SubscribeLogsRequest, esphome::api::TextSensorStateResponse, esphome::api::ListEntitiesTextSensorResponse, esphome::api::SwitchCommandRequest, esphome::api::SwitchStateResponse, esphome::api::ListEntitiesSwitchResponse, esphome::api::SensorStateResponse, esphome::api::ListEntitiesSensorResponse, esphome::api::LightCommandRequest, esphome::api::LightStateResponse, esphome::api::ListEntitiesLightResponse, esphome::api::FanCommandRequest, esphome::api::FanStateResponse, esphome::api::ListEntitiesFanResponse, esphome::api::CoverCommandRequest, esphome::api::CoverStateResponse, esphome::api::ListEntitiesCoverResponse, esphome::api::BinarySensorStateResponse, esphome::api::ListEntitiesBinarySensorResponse, esphome::api::SubscribeStatesRequest, esphome::api::ListEntitiesDoneResponse, esphome::api::ListEntitiesRequest, esphome::api::DeviceInfoResponse, esphome::api::DeviceInfoRequest, esphome::api::PingResponse, esphome::api::PingRequest, esphome::api::DisconnectResponse, esphome::api::DisconnectRequest, esphome::api::ConnectResponse, esphome::api::ConnectRequest, esphome::api::HelloResponse, and esphome::api::HelloRequest.