35 uint8_t *__restrict__
pos = buffer.get_pos();
61 uint8_t *__restrict__
pos = buffer.get_pos();
67 size += this->
reason ? 2 : 0;
72 uint8_t *__restrict__
pos = buffer.get_pos();
86 uint8_t *__restrict__
pos = buffer.get_pos();
100#ifdef USE_SERIAL_PROXY
102 uint8_t *__restrict__
pos = buffer.get_pos();
115 uint8_t *__restrict__
pos = buffer.get_pos();
124#ifdef ESPHOME_PROJECT_NAME
127#ifdef ESPHOME_PROJECT_NAME
133#ifdef USE_BLUETOOTH_PROXY
138#ifdef USE_VOICE_ASSISTANT
144#ifdef USE_BLUETOOTH_PROXY
151 for (
const auto &it : this->
devices) {
156 for (
const auto &it : this->
areas) {
163#ifdef USE_ZWAVE_PROXY
166#ifdef USE_ZWAVE_PROXY
169#ifdef USE_SERIAL_PROXY
189#ifdef ESPHOME_PROJECT_NAME
192#ifdef ESPHOME_PROJECT_NAME
198#ifdef USE_BLUETOOTH_PROXY
203#ifdef USE_VOICE_ASSISTANT
209#ifdef USE_BLUETOOTH_PROXY
216 for (
const auto &it : this->
devices) {
221 for (
const auto &it : this->
areas) {
228#ifdef USE_ZWAVE_PROXY
231#ifdef USE_ZWAVE_PROXY
234#ifdef USE_SERIAL_PROXY
244#ifdef USE_BINARY_SENSOR
246 uint8_t *__restrict__
pos = buffer.get_pos();
253#ifdef USE_ENTITY_ICON
270#ifdef USE_ENTITY_ICON
280 uint8_t *__restrict__
pos = buffer.get_pos();
302 uint8_t *__restrict__
pos = buffer.get_pos();
311#ifdef USE_ENTITY_ICON
331#ifdef USE_ENTITY_ICON
342 uint8_t *__restrict__
pos = buffer.get_pos();
372 this->
stop = value != 0;
403 uint8_t *__restrict__
pos = buffer.get_pos();
412#ifdef USE_ENTITY_ICON
434#ifdef USE_ENTITY_ICON
449 uint8_t *__restrict__
pos = buffer.get_pos();
480 this->
state = value != 0;
537 uint8_t *__restrict__
pos = buffer.get_pos();
546 for (
const char *it : *this->
effects) {
550#ifdef USE_ENTITY_ICON
570 for (
const char *it : *this->
effects) {
575#ifdef USE_ENTITY_ICON
585 uint8_t *__restrict__
pos = buffer.get_pos();
630 this->
state = value != 0;
735 uint8_t *__restrict__
pos = buffer.get_pos();
739#ifdef USE_ENTITY_ICON
759#ifdef USE_ENTITY_ICON
777 uint8_t *__restrict__
pos = buffer.get_pos();
788SensorStateResponse::calculate_size()
const {
801 uint8_t *__restrict__
pos = buffer.get_pos();
805#ifdef USE_ENTITY_ICON
822#ifdef USE_ENTITY_ICON
835 uint8_t *__restrict__
pos = buffer.get_pos();
855 this->
state = value != 0;
878#ifdef USE_TEXT_SENSOR
880 uint8_t *__restrict__
pos = buffer.get_pos();
884#ifdef USE_ENTITY_ICON
900#ifdef USE_ENTITY_ICON
912 uint8_t *__restrict__
pos = buffer.get_pos();
948 uint8_t *__restrict__
pos = buffer.get_pos();
957SubscribeLogsResponse::calculate_size()
const {
967 this->
key = value.data();
977 uint8_t *__restrict__
pos = buffer.get_pos();
987#ifdef USE_API_HOMEASSISTANT_SERVICES
989 uint8_t *__restrict__
pos = buffer.get_pos();
1001 uint8_t *__restrict__
pos = buffer.get_pos();
1003 for (
auto &it : this->
data) {
1013#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1016#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1019#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1027 if (!this->
data.empty()) {
1028 for (
const auto &it : this->
data) {
1038 for (
const auto &it : this->
variables) {
1043#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1046#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1049#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1055#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1075#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1088#ifdef USE_API_HOMEASSISTANT_STATES
1090 uint8_t *__restrict__
pos = buffer.get_pos();
1135 this->
month = value;
1198#ifdef USE_API_USER_DEFINED_ACTIONS
1200 uint8_t *__restrict__
pos = buffer.get_pos();
1208 size += this->
type ? 2 : 0;
1212 uint8_t *__restrict__
pos = buffer.get_pos();
1215 for (
auto &it : this->
args) {
1225 if (!this->
args.empty()) {
1226 for (
const auto &it : this->
args) {
1236 this->
bool_ = value != 0;
1239 this->
legacy_int =
static_cast<int32_t
>(value);
1295#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1300#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1313 this->
args.emplace_back();
1333 this->
args.init(count_args);
1337#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1339 uint8_t *__restrict__
pos = buffer.get_pos();
1343#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1353#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1361 uint8_t *__restrict__
pos = buffer.get_pos();
1366#ifdef USE_ENTITY_ICON
1381#ifdef USE_ENTITY_ICON
1391 uint8_t *__restrict__
pos = buffer.get_pos();
1413 this->
single = value != 0;
1416 this->
stream = value != 0;
1426 uint8_t *__restrict__
pos = buffer.get_pos();
1455#ifdef USE_ENTITY_ICON
1505#ifdef USE_ENTITY_ICON
1522 uint8_t *__restrict__
pos = buffer.get_pos();
1550 size += this->
action ? 2 : 0;
1554 size += this->
preset ? 2 : 0;
1655#ifdef USE_WATER_HEATER
1657 uint8_t *__restrict__
pos = buffer.get_pos();
1661#ifdef USE_ENTITY_ICON
1684#ifdef USE_ENTITY_ICON
1703 uint8_t *__restrict__
pos = buffer.get_pos();
1721 size += this->
mode ? 2 : 0;
1744 this->
state = value;
1773 uint8_t *__restrict__
pos = buffer.get_pos();
1777#ifdef USE_ENTITY_ICON
1798#ifdef USE_ENTITY_ICON
1807 size += this->
mode ? 2 : 0;
1815 uint8_t *__restrict__
pos = buffer.get_pos();
1862 uint8_t *__restrict__
pos = buffer.get_pos();
1866#ifdef USE_ENTITY_ICON
1869 for (
const char *it : *this->
options) {
1884#ifdef USE_ENTITY_ICON
1888 for (
const char *it : *this->
options) {
1900 uint8_t *__restrict__
pos = buffer.get_pos();
1955 uint8_t *__restrict__
pos = buffer.get_pos();
1959#ifdef USE_ENTITY_ICON
1963 for (
const char *it : *this->
tones) {
1979#ifdef USE_ENTITY_ICON
1984 for (
const char *it : *this->
tones) {
1997 uint8_t *__restrict__
pos = buffer.get_pos();
2020 this->
state = value != 0;
2071 uint8_t *__restrict__
pos = buffer.get_pos();
2075#ifdef USE_ENTITY_ICON
2094#ifdef USE_ENTITY_ICON
2109 uint8_t *__restrict__
pos = buffer.get_pos();
2168 uint8_t *__restrict__
pos = buffer.get_pos();
2172#ifdef USE_ENTITY_ICON
2188#ifdef USE_ENTITY_ICON
2222#ifdef USE_MEDIA_PLAYER
2224 uint8_t *__restrict__
pos = buffer.get_pos();
2237 size += this->
purpose ? 2 : 0;
2242 uint8_t *__restrict__
pos = buffer.get_pos();
2246#ifdef USE_ENTITY_ICON
2266#ifdef USE_ENTITY_ICON
2284 uint8_t *__restrict__
pos = buffer.get_pos();
2360#ifdef USE_BLUETOOTH_PROXY
2364 this->
flags = value;
2374 uint8_t *__restrict__
pos = buffer.get_pos();
2375 for (uint16_t i = 0; i < this->advertisements_len; i++) {
2376 auto &sub_msg = this->advertisements[i];
2378 uint8_t *len_pos =
pos;
2384 if (sub_msg.address_type) {
2391 *len_pos =
static_cast<uint8_t
>(
pos - len_pos - 1);
2397BluetoothLERawAdvertisementsResponse::calculate_size()
const {
2399 for (uint16_t i = 0; i < this->advertisements_len; i++) {
2400 auto &sub_msg = this->advertisements[i];
2404 size += sub_msg.address_type ? 2 : 0;
2405 size += 2 + sub_msg.data_len;
2429 uint8_t *__restrict__
pos = buffer.get_pos();
2455 uint8_t *__restrict__
pos = buffer.get_pos();
2456 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2466 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2475 uint8_t *__restrict__
pos = buffer.get_pos();
2476 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2490 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2505 uint8_t *__restrict__
pos = buffer.get_pos();
2506 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2519 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2533 uint8_t *__restrict__
pos = buffer.get_pos();
2544 for (
const auto &it : this->
services) {
2551 uint8_t *__restrict__
pos = buffer.get_pos();
2574 uint8_t *__restrict__
pos = buffer.get_pos();
2662 this->
enable = value != 0;
2670 uint8_t *__restrict__
pos = buffer.get_pos();
2684 uint8_t *__restrict__
pos = buffer.get_pos();
2687 for (
const auto &it : this->
allocated) {
2698 for (
const auto &it : this->
allocated) {
2706 uint8_t *__restrict__
pos = buffer.get_pos();
2720 uint8_t *__restrict__
pos = buffer.get_pos();
2732 uint8_t *__restrict__
pos = buffer.get_pos();
2744 uint8_t *__restrict__
pos = buffer.get_pos();
2758 uint8_t *__restrict__
pos = buffer.get_pos();
2772 uint8_t *__restrict__
pos = buffer.get_pos();
2786 uint8_t *__restrict__
pos = buffer.get_pos();
2795 size += this->
mode ? 2 : 0;
2810#ifdef USE_VOICE_ASSISTANT
2817 this->
flags = value;
2825 uint8_t *__restrict__
pos = buffer.get_pos();
2839 uint8_t *__restrict__
pos = buffer.get_pos();
2862 this->
error = value != 0;
2897 this->
data.emplace_back();
2908 this->
end = value != 0;
2933 uint8_t *__restrict__
pos = buffer.get_pos();
3010 uint8_t *__restrict__
pos = buffer.get_pos();
3020 uint8_t *__restrict__
pos = buffer.get_pos();
3052 this->
id =
StringRef(
reinterpret_cast<const char *
>(value.
data()), value.
size());
3091 uint8_t *__restrict__
pos = buffer.get_pos();
3127#ifdef USE_ALARM_CONTROL_PANEL
3129 uint8_t *__restrict__
pos = buffer.get_pos();
3133#ifdef USE_ENTITY_ICON
3151#ifdef USE_ENTITY_ICON
3165 uint8_t *__restrict__
pos = buffer.get_pos();
3221 uint8_t *__restrict__
pos = buffer.get_pos();
3225#ifdef USE_ENTITY_ICON
3244#ifdef USE_ENTITY_ICON
3252 size += this->
mode ? 2 : 0;
3259 uint8_t *__restrict__
pos = buffer.get_pos();
3312#ifdef USE_DATETIME_DATE
3314 uint8_t *__restrict__
pos = buffer.get_pos();
3318#ifdef USE_ENTITY_ICON
3333#ifdef USE_ENTITY_ICON
3344 uint8_t *__restrict__
pos = buffer.get_pos();
3373 this->
month = value;
3399#ifdef USE_DATETIME_TIME
3401 uint8_t *__restrict__
pos = buffer.get_pos();
3405#ifdef USE_ENTITY_ICON
3420#ifdef USE_ENTITY_ICON
3431 uint8_t *__restrict__
pos = buffer.get_pos();
3488 uint8_t *__restrict__
pos = buffer.get_pos();
3492#ifdef USE_ENTITY_ICON
3511#ifdef USE_ENTITY_ICON
3528 uint8_t *__restrict__
pos = buffer.get_pos();
3548 uint8_t *__restrict__
pos = buffer.get_pos();
3552#ifdef USE_ENTITY_ICON
3571#ifdef USE_ENTITY_ICON
3586 uint8_t *__restrict__
pos = buffer.get_pos();
3611 this->
stop = value != 0;
3637#ifdef USE_DATETIME_DATETIME
3639 uint8_t *__restrict__
pos = buffer.get_pos();
3643#ifdef USE_ENTITY_ICON
3658#ifdef USE_ENTITY_ICON
3669 uint8_t *__restrict__
pos = buffer.get_pos();
3716 uint8_t *__restrict__
pos = buffer.get_pos();
3720#ifdef USE_ENTITY_ICON
3736#ifdef USE_ENTITY_ICON
3748 uint8_t *__restrict__
pos = buffer.get_pos();
3807#ifdef USE_ZWAVE_PROXY
3823 uint8_t *__restrict__
pos = buffer.get_pos();
3829ZWaveProxyFrame::calculate_size()
const {
3857 uint8_t *__restrict__
pos = buffer.get_pos();
3871 uint8_t *__restrict__
pos = buffer.get_pos();
3875#ifdef USE_ENTITY_ICON
3892#ifdef USE_ENTITY_ICON
3905#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
3953 uint8_t *__restrict__
pos = buffer.get_pos();
3958 for (
const auto &it : *this->timings) {
3965InfraredRFReceiveEvent::calculate_size()
const {
3971 if (!this->timings->empty()) {
3972 for (
const auto &it : *this->timings) {
3979#ifdef USE_RADIO_FREQUENCY
3981 uint8_t *__restrict__
pos = buffer.get_pos();
3985#ifdef USE_ENTITY_ICON
4004#ifdef USE_ENTITY_ICON
4019#ifdef USE_SERIAL_PROXY
4047SerialProxyDataReceived::encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM)
const {
4048 uint8_t *__restrict__
pos = buffer.get_pos();
4055SerialProxyDataReceived::calculate_size()
const {
4107 uint8_t *__restrict__
pos = buffer.get_pos();
4132 uint8_t *__restrict__
pos = buffer.get_pos();
4142 size += this->
type ? 2 : 0;
4143 size += this->
status ? 2 : 0;
4148#ifdef USE_BLUETOOTH_PROXY
4172 uint8_t *__restrict__
pos = buffer.get_pos();
constexpr bool empty() const
Check if the set is empty.
constexpr size_t size() const
Count the number of values in the set.
void push_back(const T &value)
Add element without bounds checking Caller must ensure sufficient capacity was allocated via init() S...
StringRef is a reference to a string owned by something else.
constexpr bool empty() const
constexpr size_type size() const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
enums::AlarmControlPanelStateCommand command
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
enums::AlarmControlPanelState state
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
enums::BluetoothDeviceRequestType request_type
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
FixedVector< BluetoothGATTDescriptor > descriptors
uint32_t calculate_size() const
std::array< uint64_t, 2 > uuid
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
std::array< uint64_t, 2 > uuid
uint32_t calculate_size() const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
std::vector< BluetoothGATTService > services
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const uint8_t * data_ptr_
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const uint8_t * data_ptr_
FixedVector< BluetoothGATTCharacteristic > characteristics
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
std::array< uint64_t, 2 > uuid
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
enums::BluetoothScannerMode mode
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
enums::BluetoothScannerMode mode
enums::BluetoothScannerState state
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
enums::BluetoothScannerMode configured_mode
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint32_t calculate_size() const
const uint8_t * data_ptr_
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool has_target_temperature_high
float target_temperature_low
bool has_target_temperature_low
StringRef custom_fan_mode
float target_temperature_high
enums::ClimateSwingMode swing_mode
enums::ClimateFanMode fan_mode
bool has_target_temperature
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
enums::ClimatePreset preset
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
enums::ClimateFanMode fan_mode
float target_temperature_low
enums::ClimateSwingMode swing_mode
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
enums::ClimateAction action
enums::ClimatePreset preset
StringRef custom_fan_mode
float current_temperature
float target_temperature_high
uint32_t calculate_size() const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
enums::CoverOperation current_operation
uint32_t calculate_size() const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
bool api_encryption_provisionable
StringRef project_version
uint32_t zwave_proxy_feature_flags
StringRef esphome_version
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
StringRef bluetooth_mac_address
uint32_t bluetooth_proxy_feature_flags
StringRef compilation_time
uint32_t voice_assistant_feature_flags
bool api_encryption_supported
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
uint32_t calculate_size() const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
enums::DisconnectReason reason
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
FixedVector< bool > bool_array
FixedVector< float > float_array
FixedVector< std::string > string_array
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
void decode(const uint8_t *buffer, size_t length)
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
FixedVector< int32_t > int_array
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
FixedVector< ExecuteServiceArgument > args
void decode(const uint8_t *buffer, size_t length)
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint16_t response_data_len
uint32_t calculate_size() const
const uint8_t * response_data
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
enums::FanDirection direction
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::FanDirection direction
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
ParsedTimezone parsed_timezone
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint32_t api_version_major
uint32_t api_version_minor
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint32_t api_version_minor
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t api_version_major
uint32_t calculate_size() const
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint32_t calculate_size() const
FixedVector< HomeassistantServiceMap > variables
FixedVector< HomeassistantServiceMap > data
StringRef response_template
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
FixedVector< HomeassistantServiceMap > data_template
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
const uint8_t * response_data
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint16_t response_data_len
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
enums::EntityCategory entity_category
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
const uint8_t * timings_data_
uint32_t carrier_frequency
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool has_color_temperature
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::ColorMode color_mode
bool has_transition_length
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint32_t transition_length
bool has_color_brightness
uint32_t calculate_size() const
enums::ColorMode color_mode
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool requires_code_to_arm
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t supported_features
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool is_status_binary_sensor
uint32_t calculate_size() const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const std::vector< const char * > * supported_custom_presets
const climate::ClimateSwingModeMask * supported_swing_modes
enums::TemperatureUnit temperature_unit
float visual_max_humidity
const std::vector< const char * > * supported_custom_fan_modes
bool supports_current_temperature
bool supports_current_humidity
bool supports_target_humidity
float visual_min_humidity
float visual_max_temperature
uint32_t calculate_size() const
float visual_target_temperature_step
bool supports_two_point_target_temperature
const climate::ClimatePresetMask * supported_presets
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const climate::ClimateFanModeMask * supported_fan_modes
const climate::ClimateModeMask * supported_modes
float visual_min_temperature
float visual_current_temperature_step
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
const FixedVector< const char * > * event_types
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const std::vector< const char * > * supported_preset_modes
uint32_t calculate_size() const
int32_t supported_speed_count
bool supports_oscillation
uint32_t receiver_frequency
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint32_t calculate_size() const
const FixedVector< const char * > * effects
const light::ColorModeMask * supported_color_modes
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
StringRef unit_of_measurement
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint32_t supported_modulations
const FixedVector< const char * > * options
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
int32_t accuracy_decimals
StringRef unit_of_measurement
enums::SensorStateClass state_class
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
enums::ServiceArgType type
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
enums::SupportsResponseType supports_response
FixedVector< ListEntitiesServicesArgument > args
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
const FixedVector< const char * > * tones
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
enums::TemperatureUnit temperature_unit
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
float target_temperature_step
const water_heater::WaterHeaterModeMask * supported_modes
uint32_t calculate_size() const
uint32_t supported_features
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::LockCommand command
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
int32_t std_offset_seconds
int32_t dst_offset_seconds
uint32_t as_fixed32() const
void decode(const uint8_t *buffer, size_t length)
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 void encode_bool(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, bool value, bool force=false)
static void encode_string(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, const char *string, size_t len, bool force=false)
static void encode_sint32(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, int32_t value, bool force=false)
static void ESPHOME_ALWAYS_INLINE encode_varint_raw_short(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t value)
Encode a varint that is expected to be 1-2 bytes (e.g. zigzag RSSI, small lengths).
static void ESPHOME_ALWAYS_INLINE write_raw_byte(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint8_t b)
Write a single precomputed tag byte. Tag must be < 128.
static void encode_float(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, float value, bool force=false)
static void encode_short_string_force(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint8_t tag, const StringRef &ref)
Encode tag + 1-byte length + raw string data.
static void ESPHOME_ALWAYS_INLINE write_tag_and_fixed32(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint8_t tag, uint32_t value)
Write a precomputed tag byte + 32-bit value in one operation.
static void encode_optional_sub_message(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, ProtoWriteBuffer &buffer, uint32_t field_id, const T &value)
static void encode_sub_message(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, ProtoWriteBuffer &buffer, uint32_t field_id, const T &value)
Sub-message encoding: sync pos to buffer, delegate, get pos from return value.
static void ESPHOME_ALWAYS_INLINE encode_varint_raw_48bit(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint64_t value)
Encode a 48-bit MAC address (stored in a uint64) as varint.
static void ESPHOME_ALWAYS_INLINE reserve_byte(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM)
Reserve one byte for later backpatch (e.g., sub-message length).
static void ESPHOME_ALWAYS_INLINE encode_raw(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, const void *data, size_t len)
Write raw bytes to the buffer (no tag, no length prefix).
static void encode_fixed32(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, uint32_t value, bool force=false)
static void ESPHOME_ALWAYS_INLINE encode_varint_raw(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t value)
static void encode_uint64(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, uint64_t value, bool force=false)
static void encode_int32(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, int32_t value, bool force=false)
static void encode_bytes(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, const uint8_t *data, size_t len, bool force=false)
static void encode_uint32(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, uint32_t value, bool force=false)
void decode_to_message(T &msg) const
Decode the length-delimited data into a message instance.
const uint8_t * data() const
std::string as_string() const
static constexpr uint32_t calc_uint64(uint32_t field_id_size, uint64_t value)
static constexpr uint32_t calc_bool(uint32_t field_id_size, bool value)
static constexpr uint32_t calc_message(uint32_t field_id_size, uint32_t nested_size)
static constexpr uint32_t ESPHOME_ALWAYS_INLINE calc_uint64_force(uint32_t field_id_size, uint64_t value)
static constexpr uint32_t ESPHOME_ALWAYS_INLINE calc_uint64_48bit_force(uint32_t field_id_size, uint64_t value)
48-bit MAC address variant: matches encode_varint_raw_48bit's fast path.
static constexpr uint32_t calc_uint32(uint32_t field_id_size, uint32_t value)
static constexpr uint32_t calc_length(uint32_t field_id_size, size_t len)
static constexpr uint32_t calc_int32(uint32_t field_id_size, int32_t value)
static constexpr uint32_t ESPHOME_ALWAYS_INLINE calc_length_force(uint32_t field_id_size, size_t len)
static uint32_t calc_float(uint32_t field_id_size, float value)
static constexpr uint32_t calc_fixed32(uint32_t field_id_size, uint32_t value)
static constexpr uint32_t ESPHOME_ALWAYS_INLINE calc_message_force(uint32_t field_id_size, uint32_t nested_size)
static constexpr uint32_t ESPHOME_ALWAYS_INLINE calc_sint32_force(uint32_t field_id_size, int32_t value)
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint32_t calculate_size() const
enums::SerialProxyPortType port_type
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
enums::SerialProxyRequestType type
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
enums::SerialProxyRequestType type
enums::SerialProxyStatus status
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
enums::UpdateCommand command
uint32_t calculate_size() const
StringRef current_version
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
StringRef release_summary
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
enums::ValveOperation current_operation
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
StringRef preannounce_media_id
uint32_t calculate_size() const
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t noise_suppression_level
uint32_t calculate_size() const
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
std::vector< VoiceAssistantWakeWord > available_wake_words
uint32_t max_active_wake_words
const std::vector< std::string > * active_wake_words
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
enums::VoiceAssistantEvent event_type
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
std::vector< VoiceAssistantEventData > data
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
std::vector< std::string > trained_languages
StringRef conversation_id
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
StringRef wake_word_phrase
VoiceAssistantAudioSettings audio_settings
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
std::vector< std::string > active_wake_words
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
enums::VoiceAssistantTimerEvent event_type
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
std::vector< std::string > trained_languages
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
float target_temperature_low
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::WaterHeaterMode mode
float target_temperature_high
float current_temperature
float target_temperature_low
float target_temperature_high
uint32_t calculate_size() const
enums::WaterHeaterMode mode
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint32_t calculate_size() const
enums::ZWaveProxyRequestType type
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
struct @66::@67 __attribute__
Wake the main loop task from an ISR. ISR-safe.
BluetoothDeviceRequestType
AlarmControlPanelStateCommand
constexpr uint32_t encode_zigzag32(int32_t value)
uint64_t proto_varint_value_t
Type used for decoded varint values - uint64_t when BLE needs 64-bit addresses, uint32_t otherwise.
constexpr int32_t decode_zigzag32(uint32_t value)
uint16_t count_packed_varints(const uint8_t *data, size_t len)
Count number of varints in a packed buffer.