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
1478#ifdef USE_ENTITY_ICON
1494 uint8_t *__restrict__
pos = buffer.get_pos();
1522 size += this->
action ? 2 : 0;
1526 size += this->
preset ? 2 : 0;
1627#ifdef USE_WATER_HEATER
1629 uint8_t *__restrict__
pos = buffer.get_pos();
1633#ifdef USE_ENTITY_ICON
1655#ifdef USE_ENTITY_ICON
1673 uint8_t *__restrict__
pos = buffer.get_pos();
1691 size += this->
mode ? 2 : 0;
1714 this->
state = value;
1743 uint8_t *__restrict__
pos = buffer.get_pos();
1747#ifdef USE_ENTITY_ICON
1768#ifdef USE_ENTITY_ICON
1777 size += this->
mode ? 2 : 0;
1785 uint8_t *__restrict__
pos = buffer.get_pos();
1832 uint8_t *__restrict__
pos = buffer.get_pos();
1836#ifdef USE_ENTITY_ICON
1839 for (
const char *it : *this->
options) {
1854#ifdef USE_ENTITY_ICON
1858 for (
const char *it : *this->
options) {
1870 uint8_t *__restrict__
pos = buffer.get_pos();
1925 uint8_t *__restrict__
pos = buffer.get_pos();
1929#ifdef USE_ENTITY_ICON
1933 for (
const char *it : *this->
tones) {
1949#ifdef USE_ENTITY_ICON
1954 for (
const char *it : *this->
tones) {
1967 uint8_t *__restrict__
pos = buffer.get_pos();
1990 this->
state = value != 0;
2041 uint8_t *__restrict__
pos = buffer.get_pos();
2045#ifdef USE_ENTITY_ICON
2064#ifdef USE_ENTITY_ICON
2079 uint8_t *__restrict__
pos = buffer.get_pos();
2138 uint8_t *__restrict__
pos = buffer.get_pos();
2142#ifdef USE_ENTITY_ICON
2158#ifdef USE_ENTITY_ICON
2192#ifdef USE_MEDIA_PLAYER
2194 uint8_t *__restrict__
pos = buffer.get_pos();
2207 size += this->
purpose ? 2 : 0;
2212 uint8_t *__restrict__
pos = buffer.get_pos();
2216#ifdef USE_ENTITY_ICON
2236#ifdef USE_ENTITY_ICON
2254 uint8_t *__restrict__
pos = buffer.get_pos();
2330#ifdef USE_BLUETOOTH_PROXY
2334 this->
flags = value;
2344 uint8_t *__restrict__
pos = buffer.get_pos();
2345 for (uint16_t i = 0; i < this->advertisements_len; i++) {
2346 auto &sub_msg = this->advertisements[i];
2348 uint8_t *len_pos =
pos;
2354 if (sub_msg.address_type) {
2361 *len_pos =
static_cast<uint8_t
>(
pos - len_pos - 1);
2367BluetoothLERawAdvertisementsResponse::calculate_size()
const {
2369 for (uint16_t i = 0; i < this->advertisements_len; i++) {
2370 auto &sub_msg = this->advertisements[i];
2374 size += sub_msg.address_type ? 2 : 0;
2375 size += 2 + sub_msg.data_len;
2399 uint8_t *__restrict__
pos = buffer.get_pos();
2425 uint8_t *__restrict__
pos = buffer.get_pos();
2426 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2436 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2445 uint8_t *__restrict__
pos = buffer.get_pos();
2446 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2460 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) {
2489 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2503 uint8_t *__restrict__
pos = buffer.get_pos();
2514 for (
const auto &it : this->
services) {
2521 uint8_t *__restrict__
pos = buffer.get_pos();
2544 uint8_t *__restrict__
pos = buffer.get_pos();
2632 this->
enable = value != 0;
2640 uint8_t *__restrict__
pos = buffer.get_pos();
2654 uint8_t *__restrict__
pos = buffer.get_pos();
2657 for (
const auto &it : this->
allocated) {
2668 for (
const auto &it : this->
allocated) {
2676 uint8_t *__restrict__
pos = buffer.get_pos();
2690 uint8_t *__restrict__
pos = buffer.get_pos();
2702 uint8_t *__restrict__
pos = buffer.get_pos();
2714 uint8_t *__restrict__
pos = buffer.get_pos();
2728 uint8_t *__restrict__
pos = buffer.get_pos();
2742 uint8_t *__restrict__
pos = buffer.get_pos();
2756 uint8_t *__restrict__
pos = buffer.get_pos();
2765 size += this->
mode ? 2 : 0;
2780#ifdef USE_VOICE_ASSISTANT
2787 this->
flags = value;
2795 uint8_t *__restrict__
pos = buffer.get_pos();
2809 uint8_t *__restrict__
pos = buffer.get_pos();
2832 this->
error = value != 0;
2867 this->
data.emplace_back();
2878 this->
end = value != 0;
2898 uint8_t *__restrict__
pos = buffer.get_pos();
2973 uint8_t *__restrict__
pos = buffer.get_pos();
2983 uint8_t *__restrict__
pos = buffer.get_pos();
3015 this->
id =
StringRef(
reinterpret_cast<const char *
>(value.
data()), value.
size());
3054 uint8_t *__restrict__
pos = buffer.get_pos();
3090#ifdef USE_ALARM_CONTROL_PANEL
3092 uint8_t *__restrict__
pos = buffer.get_pos();
3096#ifdef USE_ENTITY_ICON
3114#ifdef USE_ENTITY_ICON
3128 uint8_t *__restrict__
pos = buffer.get_pos();
3184 uint8_t *__restrict__
pos = buffer.get_pos();
3188#ifdef USE_ENTITY_ICON
3207#ifdef USE_ENTITY_ICON
3215 size += this->
mode ? 2 : 0;
3222 uint8_t *__restrict__
pos = buffer.get_pos();
3275#ifdef USE_DATETIME_DATE
3277 uint8_t *__restrict__
pos = buffer.get_pos();
3281#ifdef USE_ENTITY_ICON
3296#ifdef USE_ENTITY_ICON
3307 uint8_t *__restrict__
pos = buffer.get_pos();
3336 this->
month = value;
3362#ifdef USE_DATETIME_TIME
3364 uint8_t *__restrict__
pos = buffer.get_pos();
3368#ifdef USE_ENTITY_ICON
3383#ifdef USE_ENTITY_ICON
3394 uint8_t *__restrict__
pos = buffer.get_pos();
3451 uint8_t *__restrict__
pos = buffer.get_pos();
3455#ifdef USE_ENTITY_ICON
3474#ifdef USE_ENTITY_ICON
3491 uint8_t *__restrict__
pos = buffer.get_pos();
3511 uint8_t *__restrict__
pos = buffer.get_pos();
3515#ifdef USE_ENTITY_ICON
3534#ifdef USE_ENTITY_ICON
3549 uint8_t *__restrict__
pos = buffer.get_pos();
3574 this->
stop = value != 0;
3600#ifdef USE_DATETIME_DATETIME
3602 uint8_t *__restrict__
pos = buffer.get_pos();
3606#ifdef USE_ENTITY_ICON
3621#ifdef USE_ENTITY_ICON
3632 uint8_t *__restrict__
pos = buffer.get_pos();
3679 uint8_t *__restrict__
pos = buffer.get_pos();
3683#ifdef USE_ENTITY_ICON
3699#ifdef USE_ENTITY_ICON
3711 uint8_t *__restrict__
pos = buffer.get_pos();
3770#ifdef USE_ZWAVE_PROXY
3784 uint8_t *__restrict__
pos = buffer.get_pos();
3816 uint8_t *__restrict__
pos = buffer.get_pos();
3830 uint8_t *__restrict__
pos = buffer.get_pos();
3834#ifdef USE_ENTITY_ICON
3851#ifdef USE_ENTITY_ICON
3907 uint8_t *__restrict__
pos = buffer.get_pos();
3912 for (
const auto &it : *this->
timings) {
3923 if (!this->
timings->empty()) {
3924 for (
const auto &it : *this->
timings) {
3931#ifdef USE_SERIAL_PROXY
3958 uint8_t *__restrict__
pos = buffer.get_pos();
4015 uint8_t *__restrict__
pos = buffer.get_pos();
4040 uint8_t *__restrict__
pos = buffer.get_pos();
4050 size += this->
type ? 2 : 0;
4051 size += this->
status ? 2 : 0;
4056#ifdef USE_BLUETOOTH_PROXY
4080 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
uint32_t calculate_size() const
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const std::vector< int32_t > * timings
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
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
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
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_64(uint8_t *__restrict__ &pos PROTO_ENCODE_DEBUG_PARAM, uint64_t value)
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 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 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
uint32_t calculate_size() const
const uint8_t * data_ptr_
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
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
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
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.