35 uint8_t *__restrict__
pos = buffer.get_pos();
52 uint8_t *__restrict__
pos = buffer.get_pos();
66 uint8_t *__restrict__
pos = buffer.get_pos();
80#ifdef USE_SERIAL_PROXY
82 uint8_t *__restrict__
pos = buffer.get_pos();
95 uint8_t *__restrict__
pos = buffer.get_pos();
104#ifdef ESPHOME_PROJECT_NAME
107#ifdef ESPHOME_PROJECT_NAME
113#ifdef USE_BLUETOOTH_PROXY
118#ifdef USE_VOICE_ASSISTANT
124#ifdef USE_BLUETOOTH_PROXY
131 for (
const auto &it : this->
devices) {
136 for (
const auto &it : this->
areas) {
143#ifdef USE_ZWAVE_PROXY
146#ifdef USE_ZWAVE_PROXY
149#ifdef USE_SERIAL_PROXY
166#ifdef ESPHOME_PROJECT_NAME
169#ifdef ESPHOME_PROJECT_NAME
175#ifdef USE_BLUETOOTH_PROXY
180#ifdef USE_VOICE_ASSISTANT
186#ifdef USE_BLUETOOTH_PROXY
193 for (
const auto &it : this->
devices) {
198 for (
const auto &it : this->
areas) {
205#ifdef USE_ZWAVE_PROXY
208#ifdef USE_ZWAVE_PROXY
211#ifdef USE_SERIAL_PROXY
218#ifdef USE_BINARY_SENSOR
220 uint8_t *__restrict__
pos = buffer.get_pos();
227#ifdef USE_ENTITY_ICON
244#ifdef USE_ENTITY_ICON
254 uint8_t *__restrict__
pos = buffer.get_pos();
276 uint8_t *__restrict__
pos = buffer.get_pos();
285#ifdef USE_ENTITY_ICON
305#ifdef USE_ENTITY_ICON
316 uint8_t *__restrict__
pos = buffer.get_pos();
346 this->
stop = value != 0;
377 uint8_t *__restrict__
pos = buffer.get_pos();
386#ifdef USE_ENTITY_ICON
408#ifdef USE_ENTITY_ICON
423 uint8_t *__restrict__
pos = buffer.get_pos();
454 this->
state = value != 0;
511 uint8_t *__restrict__
pos = buffer.get_pos();
520 for (
const char *it : *this->
effects) {
524#ifdef USE_ENTITY_ICON
544 for (
const char *it : *this->
effects) {
549#ifdef USE_ENTITY_ICON
559 uint8_t *__restrict__
pos = buffer.get_pos();
604 this->
state = value != 0;
709 uint8_t *__restrict__
pos = buffer.get_pos();
713#ifdef USE_ENTITY_ICON
733#ifdef USE_ENTITY_ICON
751 uint8_t *__restrict__
pos = buffer.get_pos();
762SensorStateResponse::calculate_size()
const {
775 uint8_t *__restrict__
pos = buffer.get_pos();
779#ifdef USE_ENTITY_ICON
796#ifdef USE_ENTITY_ICON
809 uint8_t *__restrict__
pos = buffer.get_pos();
829 this->
state = value != 0;
852#ifdef USE_TEXT_SENSOR
854 uint8_t *__restrict__
pos = buffer.get_pos();
858#ifdef USE_ENTITY_ICON
874#ifdef USE_ENTITY_ICON
886 uint8_t *__restrict__
pos = buffer.get_pos();
922 uint8_t *__restrict__
pos = buffer.get_pos();
931SubscribeLogsResponse::calculate_size()
const {
941 this->
key = value.data();
951 uint8_t *__restrict__
pos = buffer.get_pos();
961#ifdef USE_API_HOMEASSISTANT_SERVICES
963 uint8_t *__restrict__
pos = buffer.get_pos();
975 uint8_t *__restrict__
pos = buffer.get_pos();
977 for (
auto &it : this->
data) {
987#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
990#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
993#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1001 if (!this->
data.empty()) {
1002 for (
const auto &it : this->
data) {
1012 for (
const auto &it : this->
variables) {
1017#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1020#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1023#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1029#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1049#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1062#ifdef USE_API_HOMEASSISTANT_STATES
1064 uint8_t *__restrict__
pos = buffer.get_pos();
1109 this->
month = value;
1172#ifdef USE_API_USER_DEFINED_ACTIONS
1174 uint8_t *__restrict__
pos = buffer.get_pos();
1182 size += this->
type ? 2 : 0;
1186 uint8_t *__restrict__
pos = buffer.get_pos();
1189 for (
auto &it : this->
args) {
1199 if (!this->
args.empty()) {
1200 for (
const auto &it : this->
args) {
1210 this->
bool_ = value != 0;
1213 this->
legacy_int =
static_cast<int32_t
>(value);
1269#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1274#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1287 this->
args.emplace_back();
1307 this->
args.init(count_args);
1311#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1313 uint8_t *__restrict__
pos = buffer.get_pos();
1317#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1327#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1335 uint8_t *__restrict__
pos = buffer.get_pos();
1340#ifdef USE_ENTITY_ICON
1355#ifdef USE_ENTITY_ICON
1365 uint8_t *__restrict__
pos = buffer.get_pos();
1387 this->
single = value != 0;
1390 this->
stream = value != 0;
1400 uint8_t *__restrict__
pos = buffer.get_pos();
1429#ifdef USE_ENTITY_ICON
1479#ifdef USE_ENTITY_ICON
1496 uint8_t *__restrict__
pos = buffer.get_pos();
1524 size += this->
action ? 2 : 0;
1528 size += this->
preset ? 2 : 0;
1629#ifdef USE_WATER_HEATER
1631 uint8_t *__restrict__
pos = buffer.get_pos();
1635#ifdef USE_ENTITY_ICON
1658#ifdef USE_ENTITY_ICON
1677 uint8_t *__restrict__
pos = buffer.get_pos();
1695 size += this->
mode ? 2 : 0;
1718 this->
state = value;
1747 uint8_t *__restrict__
pos = buffer.get_pos();
1751#ifdef USE_ENTITY_ICON
1772#ifdef USE_ENTITY_ICON
1781 size += this->
mode ? 2 : 0;
1789 uint8_t *__restrict__
pos = buffer.get_pos();
1836 uint8_t *__restrict__
pos = buffer.get_pos();
1840#ifdef USE_ENTITY_ICON
1843 for (
const char *it : *this->
options) {
1858#ifdef USE_ENTITY_ICON
1862 for (
const char *it : *this->
options) {
1874 uint8_t *__restrict__
pos = buffer.get_pos();
1929 uint8_t *__restrict__
pos = buffer.get_pos();
1933#ifdef USE_ENTITY_ICON
1937 for (
const char *it : *this->
tones) {
1953#ifdef USE_ENTITY_ICON
1958 for (
const char *it : *this->
tones) {
1971 uint8_t *__restrict__
pos = buffer.get_pos();
1994 this->
state = value != 0;
2045 uint8_t *__restrict__
pos = buffer.get_pos();
2049#ifdef USE_ENTITY_ICON
2068#ifdef USE_ENTITY_ICON
2083 uint8_t *__restrict__
pos = buffer.get_pos();
2142 uint8_t *__restrict__
pos = buffer.get_pos();
2146#ifdef USE_ENTITY_ICON
2162#ifdef USE_ENTITY_ICON
2196#ifdef USE_MEDIA_PLAYER
2198 uint8_t *__restrict__
pos = buffer.get_pos();
2211 size += this->
purpose ? 2 : 0;
2216 uint8_t *__restrict__
pos = buffer.get_pos();
2220#ifdef USE_ENTITY_ICON
2240#ifdef USE_ENTITY_ICON
2258 uint8_t *__restrict__
pos = buffer.get_pos();
2334#ifdef USE_BLUETOOTH_PROXY
2338 this->
flags = value;
2348 uint8_t *__restrict__
pos = buffer.get_pos();
2349 for (uint16_t i = 0; i < this->advertisements_len; i++) {
2350 auto &sub_msg = this->advertisements[i];
2352 uint8_t *len_pos =
pos;
2358 if (sub_msg.address_type) {
2365 *len_pos =
static_cast<uint8_t
>(
pos - len_pos - 1);
2371BluetoothLERawAdvertisementsResponse::calculate_size()
const {
2373 for (uint16_t i = 0; i < this->advertisements_len; i++) {
2374 auto &sub_msg = this->advertisements[i];
2378 size += sub_msg.address_type ? 2 : 0;
2379 size += 2 + sub_msg.data_len;
2403 uint8_t *__restrict__
pos = buffer.get_pos();
2429 uint8_t *__restrict__
pos = buffer.get_pos();
2430 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2440 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2449 uint8_t *__restrict__
pos = buffer.get_pos();
2450 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2464 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2479 uint8_t *__restrict__
pos = buffer.get_pos();
2480 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2493 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2507 uint8_t *__restrict__
pos = buffer.get_pos();
2518 for (
const auto &it : this->
services) {
2525 uint8_t *__restrict__
pos = buffer.get_pos();
2548 uint8_t *__restrict__
pos = buffer.get_pos();
2636 this->
enable = value != 0;
2644 uint8_t *__restrict__
pos = buffer.get_pos();
2658 uint8_t *__restrict__
pos = buffer.get_pos();
2661 for (
const auto &it : this->
allocated) {
2672 for (
const auto &it : this->
allocated) {
2680 uint8_t *__restrict__
pos = buffer.get_pos();
2694 uint8_t *__restrict__
pos = buffer.get_pos();
2706 uint8_t *__restrict__
pos = buffer.get_pos();
2718 uint8_t *__restrict__
pos = buffer.get_pos();
2732 uint8_t *__restrict__
pos = buffer.get_pos();
2746 uint8_t *__restrict__
pos = buffer.get_pos();
2760 uint8_t *__restrict__
pos = buffer.get_pos();
2769 size += this->
mode ? 2 : 0;
2784#ifdef USE_VOICE_ASSISTANT
2791 this->
flags = value;
2799 uint8_t *__restrict__
pos = buffer.get_pos();
2813 uint8_t *__restrict__
pos = buffer.get_pos();
2836 this->
error = value != 0;
2871 this->
data.emplace_back();
2882 this->
end = value != 0;
2907 uint8_t *__restrict__
pos = buffer.get_pos();
2984 uint8_t *__restrict__
pos = buffer.get_pos();
2994 uint8_t *__restrict__
pos = buffer.get_pos();
3026 this->
id =
StringRef(
reinterpret_cast<const char *
>(value.
data()), value.
size());
3065 uint8_t *__restrict__
pos = buffer.get_pos();
3101#ifdef USE_ALARM_CONTROL_PANEL
3103 uint8_t *__restrict__
pos = buffer.get_pos();
3107#ifdef USE_ENTITY_ICON
3125#ifdef USE_ENTITY_ICON
3139 uint8_t *__restrict__
pos = buffer.get_pos();
3195 uint8_t *__restrict__
pos = buffer.get_pos();
3199#ifdef USE_ENTITY_ICON
3218#ifdef USE_ENTITY_ICON
3226 size += this->
mode ? 2 : 0;
3233 uint8_t *__restrict__
pos = buffer.get_pos();
3286#ifdef USE_DATETIME_DATE
3288 uint8_t *__restrict__
pos = buffer.get_pos();
3292#ifdef USE_ENTITY_ICON
3307#ifdef USE_ENTITY_ICON
3318 uint8_t *__restrict__
pos = buffer.get_pos();
3347 this->
month = value;
3373#ifdef USE_DATETIME_TIME
3375 uint8_t *__restrict__
pos = buffer.get_pos();
3379#ifdef USE_ENTITY_ICON
3394#ifdef USE_ENTITY_ICON
3405 uint8_t *__restrict__
pos = buffer.get_pos();
3462 uint8_t *__restrict__
pos = buffer.get_pos();
3466#ifdef USE_ENTITY_ICON
3485#ifdef USE_ENTITY_ICON
3502 uint8_t *__restrict__
pos = buffer.get_pos();
3522 uint8_t *__restrict__
pos = buffer.get_pos();
3526#ifdef USE_ENTITY_ICON
3545#ifdef USE_ENTITY_ICON
3560 uint8_t *__restrict__
pos = buffer.get_pos();
3585 this->
stop = value != 0;
3611#ifdef USE_DATETIME_DATETIME
3613 uint8_t *__restrict__
pos = buffer.get_pos();
3617#ifdef USE_ENTITY_ICON
3632#ifdef USE_ENTITY_ICON
3643 uint8_t *__restrict__
pos = buffer.get_pos();
3690 uint8_t *__restrict__
pos = buffer.get_pos();
3694#ifdef USE_ENTITY_ICON
3710#ifdef USE_ENTITY_ICON
3722 uint8_t *__restrict__
pos = buffer.get_pos();
3781#ifdef USE_ZWAVE_PROXY
3797 uint8_t *__restrict__
pos = buffer.get_pos();
3803ZWaveProxyFrame::calculate_size()
const {
3831 uint8_t *__restrict__
pos = buffer.get_pos();
3845 uint8_t *__restrict__
pos = buffer.get_pos();
3849#ifdef USE_ENTITY_ICON
3866#ifdef USE_ENTITY_ICON
3879#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
3927 uint8_t *__restrict__
pos = buffer.get_pos();
3932 for (
const auto &it : *this->timings) {
3939InfraredRFReceiveEvent::calculate_size()
const {
3945 if (!this->timings->empty()) {
3946 for (
const auto &it : *this->timings) {
3953#ifdef USE_RADIO_FREQUENCY
3955 uint8_t *__restrict__
pos = buffer.get_pos();
3959#ifdef USE_ENTITY_ICON
3978#ifdef USE_ENTITY_ICON
3993#ifdef USE_SERIAL_PROXY
4021SerialProxyDataReceived::encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM)
const {
4022 uint8_t *__restrict__
pos = buffer.get_pos();
4029SerialProxyDataReceived::calculate_size()
const {
4081 uint8_t *__restrict__
pos = buffer.get_pos();
4106 uint8_t *__restrict__
pos = buffer.get_pos();
4116 size += this->
type ? 2 : 0;
4117 size += this->
status ? 2 : 0;
4122#ifdef USE_BLUETOOTH_PROXY
4146 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
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
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 @65::@66 __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.