15 msg.client_info =
StringRef(value.data(), value.size());
18 msg.api_version_major = value.as_varint();
21 msg.api_version_minor = value.as_varint();
23#ifdef USE_API_OUTGOING_CONNECTION
25 msg.outgoing_connection_target = value.as_bool();
45 size += 2 + msg.server_info.size();
46 size += 2 + msg.name.size();
73 const auto &msg = *
static_cast<const AreaInfo *
>(self);
79 const auto &msg = *
static_cast<const AreaInfo *
>(self);
82 size += 2 + msg.name.size();
88 const auto &msg = *
static_cast<const DeviceInfo *
>(self);
96 const auto &msg = *
static_cast<const DeviceInfo *
>(self);
99 size += 2 + msg.name.size();
101 size += msg.relation ? 2 : 0;
105#ifdef USE_SERIAL_PROXY
117 size += msg.port_type ? 2 : 0;
132#ifdef ESPHOME_PROJECT_NAME
135#ifdef ESPHOME_PROJECT_NAME
141#ifdef USE_BLUETOOTH_PROXY
146#ifdef USE_VOICE_ASSISTANT
152#ifdef USE_BLUETOOTH_PROXY
159 for (
const auto &it : msg.devices) {
164 for (
const auto &it : msg.areas) {
171#ifdef USE_ZWAVE_PROXY
174#ifdef USE_ZWAVE_PROXY
177#ifdef USE_SERIAL_PROXY
178 for (
const auto &it : msg.serial_proxies) {
185#ifdef USE_API_OUTGOING_CONNECTION
194 size += 2 + msg.mac_address.size();
195 size += 2 + msg.esphome_version.size();
196 size += 2 + msg.compilation_time.size();
197 size += 2 + msg.model.size();
201#ifdef ESPHOME_PROJECT_NAME
202 size += 2 + msg.project_name.size();
204#ifdef ESPHOME_PROJECT_NAME
205 size += 2 + msg.project_version.size();
210#ifdef USE_BLUETOOTH_PROXY
213 size += 2 + msg.manufacturer.size();
214 size += 2 + msg.friendly_name.size();
215#ifdef USE_VOICE_ASSISTANT
219 size += 3 + msg.suggested_area.size();
221#ifdef USE_BLUETOOTH_PROXY
222 size += 3 + msg.bluetooth_mac_address.size();
228 for (
const auto &it : msg.devices) {
233 for (
const auto &it : msg.areas) {
240#ifdef USE_ZWAVE_PROXY
243#ifdef USE_ZWAVE_PROXY
246#ifdef USE_SERIAL_PROXY
247 for (
const auto &it : msg.serial_proxies) {
254#ifdef USE_API_OUTGOING_CONNECTION
259#ifdef USE_BLUETOOTH_PROXY
270 size += 2 + msg.mac_address.size();
274#ifdef USE_VOICE_ASSISTANT
287#ifdef USE_ZWAVE_PROXY
326 size += !msg.client_id.empty() ? 2 + msg.client_id.size() : 0;
332#ifdef USE_BLUETOOTH_PROXY
335#ifdef USE_VOICE_ASSISTANT
338#ifdef USE_ZWAVE_PROXY
341#ifdef USE_SERIAL_PROXY
342 for (
const auto &it : msg.serial_proxies) {
357#ifdef USE_BLUETOOTH_PROXY
360#ifdef USE_VOICE_ASSISTANT
363#ifdef USE_ZWAVE_PROXY
366#ifdef USE_SERIAL_PROXY
367 for (
const auto &it : msg.serial_proxies) {
392#ifdef USE_API_WIZARD_INPUTS
398 msg.key = value.as_fixed32();
401 msg.entity_id =
StringRef(value.data(), value.size());
408#ifdef USE_BINARY_SENSOR
410 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
418#ifdef USE_ENTITY_ICON
432 size += 2 + msg.name.size();
433 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
436#ifdef USE_ENTITY_ICON
437 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
439 size += msg.entity_category ? 2 : 0;
478#ifdef USE_ENTITY_ICON
495 size += 2 + msg.name.size();
499 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
501#ifdef USE_ENTITY_ICON
502 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
504 size += msg.entity_category ? 2 : 0;
534 size += msg.current_operation ? 2 : 0;
545 msg.key = value.as_fixed32();
548 msg.has_position = value.as_bool();
551 msg.position = value.as_float();
554 msg.has_tilt = value.as_bool();
557 msg.tilt = value.as_float();
560 msg.stop = value.as_bool();
564 msg.device_id = value.as_varint();
568 msg.stop_tilt = value.as_bool();
571 msg.toggle = value.as_bool();
589#ifdef USE_ENTITY_ICON
593 for (
const char *it : *msg.supported_preset_modes) {
606 size += 2 + msg.name.size();
612#ifdef USE_ENTITY_ICON
613 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
615 size += msg.entity_category ? 2 : 0;
616 if (!msg.supported_preset_modes->empty()) {
617 for (
const char *it : *msg.supported_preset_modes) {
645 size += msg.direction ? 2 : 0;
658 msg.key = value.as_fixed32();
661 msg.has_state = value.as_bool();
664 msg.state = value.as_bool();
667 msg.has_oscillating = value.as_bool();
670 msg.oscillating = value.as_bool();
673 msg.has_direction = value.as_bool();
679 msg.has_speed_level = value.as_bool();
682 msg.speed_level =
static_cast<int32_t
>(value.as_varint());
685 msg.has_preset_mode = value.as_bool();
688 msg.preset_mode =
StringRef(value.data(), value.size());
692 msg.device_id = value.as_varint();
706 for (
const auto &it : *msg.supported_color_modes) {
715 for (
const auto &it : *msg.effects) {
719#ifdef USE_ENTITY_ICON
733 size += 2 + msg.name.size();
734 if (!msg.supported_color_modes->empty()) {
735 size += msg.supported_color_modes->size() * 2;
739 if (!msg.effects->empty()) {
740 for (
const auto &it : *msg.effects) {
745#ifdef USE_ENTITY_ICON
746 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
748 size += msg.entity_category ? 2 : 0;
798 size += msg.color_mode ? 2 : 0;
818 msg.key = value.as_fixed32();
821 msg.has_state = value.as_bool();
824 msg.state = value.as_bool();
827 msg.has_brightness = value.as_bool();
830 msg.brightness = value.as_float();
833 msg.has_color_mode = value.as_bool();
839 msg.has_color_brightness = value.as_bool();
842 msg.color_brightness = value.as_float();
845 msg.has_rgb = value.as_bool();
848 msg.red = value.as_float();
851 msg.green = value.as_float();
854 msg.blue = value.as_float();
857 msg.has_white = value.as_bool();
860 msg.white = value.as_float();
863 msg.has_color_temperature = value.as_bool();
866 msg.color_temperature = value.as_float();
869 msg.has_cold_white = value.as_bool();
872 msg.cold_white = value.as_float();
875 msg.has_warm_white = value.as_bool();
878 msg.warm_white = value.as_float();
881 msg.has_transition_length = value.as_bool();
884 msg.transition_length = value.as_varint();
887 msg.has_flash_length = value.as_bool();
890 msg.flash_length = value.as_varint();
893 msg.has_effect = value.as_bool();
896 msg.effect =
StringRef(value.data(), value.size());
900 msg.device_id = value.as_varint();
914#ifdef USE_ENTITY_ICON
934 size += 2 + msg.name.size();
935#ifdef USE_ENTITY_ICON
936 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
938 size += !msg.unit_of_measurement.empty() ? 2 + msg.unit_of_measurement.size() : 0;
941 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
942 size += msg.state_class ? 2 : 0;
944 size += msg.entity_category ? 2 : 0;
951uint8_t *
SensorStateResponse::encode_msg(const
void *self, uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
964uint32_t SensorStateResponse::calc_size_msg(const
void *self) {
965 const auto &msg = *
static_cast<const SensorStateResponse *
>(self);
982#ifdef USE_ENTITY_ICON
999 size += 2 + msg.name.size();
1000#ifdef USE_ENTITY_ICON
1001 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
1005 size += msg.entity_category ? 2 : 0;
1006 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
1038 msg.key = value.as_fixed32();
1041 msg.state = value.as_bool();
1045 msg.device_id = value.as_varint();
1053#ifdef USE_TEXT_SENSOR
1055 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
1060#ifdef USE_ENTITY_ICON
1076 size += 2 + msg.name.size();
1077#ifdef USE_ENTITY_ICON
1078 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
1081 size += msg.entity_category ? 2 : 0;
1082 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
1118 msg.dump_config = value.as_bool();
1134uint32_t SubscribeLogsResponse::calc_size_msg(const
void *self) {
1135 const auto &msg = *
static_cast<const SubscribeLogsResponse *
>(self);
1148 msg.key = value.data();
1149 msg.key_len = value.size();
1156 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
1168#ifdef USE_API_HOMEASSISTANT_SERVICES
1185 for (
auto &it : msg.data) {
1188 for (
auto &it : msg.data_template) {
1191 for (
auto &it : msg.variables) {
1195#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1198#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1201#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1210 if (!msg.data.empty()) {
1211 for (
const auto &it : msg.data) {
1215 if (!msg.data_template.empty()) {
1216 for (
const auto &it : msg.data_template) {
1220 if (!msg.variables.empty()) {
1221 for (
const auto &it : msg.variables) {
1226#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1229#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1232#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1238#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1245 msg.call_id = value.as_varint();
1248 msg.success = value.as_bool();
1251 msg.error_message =
StringRef(value.data(), value.size());
1253#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1255 msg.response_data = value.data();
1256 msg.response_data_len = value.size();
1264#ifdef USE_API_HOMEASSISTANT_STATES
1266 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
1287 msg.entity_id =
StringRef(value.data(), value.size());
1290 msg.state =
StringRef(value.data(), value.size());
1293 msg.attribute =
StringRef(value.data(), value.size());
1301 auto &msg = *
static_cast<DSTRule *
>(self);
1308 msg.day = value.as_varint();
1314 msg.month = value.as_varint();
1317 msg.week = value.as_varint();
1320 msg.day_of_week = value.as_varint();
1337 value.decode_to_message(msg.dst_start);
1340 value.decode_to_message(msg.dst_end);
1351 msg.epoch_seconds = value.as_fixed32();
1354 value.decode_to_message(msg.parsed_timezone);
1355 msg.has_parsed_timezone =
true;
1361#ifdef USE_API_USER_DEFINED_ACTIONS
1363 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
1367#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1370#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1373#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1376#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1385 size += msg.type ? 2 : 0;
1386#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1389#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1392#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1395#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1401 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
1405 for (
auto &it : msg.args) {
1409#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1419 if (!msg.args.empty()) {
1420 for (
const auto &it : msg.args) {
1424 size += msg.supports_response ? 2 : 0;
1425#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1435 msg.bool_ = value.as_bool();
1438 msg.legacy_int =
static_cast<int32_t
>(value.as_varint());
1441 msg.float_ = value.as_float();
1444 msg.string_ =
StringRef(value.data(), value.size());
1450 msg.bool_array.push_back(value.as_bool());
1456 msg.float_array.push_back(value.as_float());
1459 msg.string_array.push_back(value.as_string());
1481 msg.key = value.as_fixed32();
1484 msg.args.emplace_back();
1485 value.decode_to_message(msg.args.back());
1487#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1489 msg.call_id = value.as_varint();
1492#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1494 msg.return_response = value.as_bool();
1503 this->
args.init(count_args);
1507#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1513#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1524#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1537#ifdef USE_ENTITY_ICON
1551 size += 2 + msg.name.size();
1553#ifdef USE_ENTITY_ICON
1554 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
1556 size += msg.entity_category ? 2 : 0;
1588 msg.single = value.as_bool();
1591 msg.stream = value.as_bool();
1606 for (
const auto &it : *msg.supported_modes) {
1619 for (
const auto &it : *msg.supported_fan_modes) {
1622 for (
const auto &it : *msg.supported_swing_modes) {
1625 for (
const char *it : *msg.supported_custom_fan_modes) {
1628 for (
const auto &it : *msg.supported_presets) {
1631 for (
const char *it : *msg.supported_custom_presets) {
1635#ifdef USE_ENTITY_ICON
1656 size += 2 + msg.name.size();
1659 if (!msg.supported_modes->empty()) {
1660 size += msg.supported_modes->size() * 2;
1666 if (!msg.supported_fan_modes->empty()) {
1667 size += msg.supported_fan_modes->size() * 2;
1669 if (!msg.supported_swing_modes->empty()) {
1670 size += msg.supported_swing_modes->size() * 2;
1672 if (!msg.supported_custom_fan_modes->empty()) {
1673 for (
const char *it : *msg.supported_custom_fan_modes) {
1677 if (!msg.supported_presets->empty()) {
1678 size += msg.supported_presets->size() * 3;
1680 if (!msg.supported_custom_presets->empty()) {
1681 for (
const char *it : *msg.supported_custom_presets) {
1686#ifdef USE_ENTITY_ICON
1687 size += !msg.icon.empty() ? 3 + msg.icon.size() : 0;
1689 size += msg.entity_category ? 3 : 0;
1699 size += msg.temperature_unit ? 3 : 0;
1745 size += msg.action ? 2 : 0;
1746 size += msg.fan_mode ? 2 : 0;
1747 size += msg.swing_mode ? 2 : 0;
1749 size += msg.preset ? 2 : 0;
1764 msg.key = value.as_fixed32();
1767 msg.has_mode = value.as_bool();
1773 msg.has_target_temperature = value.as_bool();
1776 msg.target_temperature = value.as_float();
1779 msg.has_target_temperature_low = value.as_bool();
1782 msg.target_temperature_low = value.as_float();
1785 msg.has_target_temperature_high = value.as_bool();
1788 msg.target_temperature_high = value.as_float();
1791 msg.has_fan_mode = value.as_bool();
1797 msg.has_swing_mode = value.as_bool();
1803 msg.has_custom_fan_mode = value.as_bool();
1806 msg.custom_fan_mode =
StringRef(value.data(), value.size());
1809 msg.has_preset = value.as_bool();
1815 msg.has_custom_preset = value.as_bool();
1818 msg.custom_preset =
StringRef(value.data(), value.size());
1821 msg.has_target_humidity = value.as_bool();
1824 msg.target_humidity = value.as_float();
1828 msg.device_id = value.as_varint();
1836#ifdef USE_WATER_HEATER
1838 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
1843#ifdef USE_ENTITY_ICON
1860 for (
const auto &it : *msg.supported_modes) {
1872 size += 2 + msg.name.size();
1873#ifdef USE_ENTITY_ICON
1874 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
1877 size += msg.entity_category ? 2 : 0;
1884 if (!msg.supported_modes->empty()) {
1885 size += msg.supported_modes->size() * 2;
1888 size += msg.temperature_unit ? 2 : 0;
1920 size += msg.mode ? 2 : 0;
1936 msg.key = value.as_fixed32();
1939 msg.has_fields = value.as_varint();
1945 msg.target_temperature = value.as_float();
1949 msg.device_id = value.as_varint();
1953 msg.state = value.as_varint();
1956 msg.target_temperature_low = value.as_float();
1959 msg.target_temperature_high = value.as_float();
1972#ifdef USE_ENTITY_ICON
1999 size += 2 + msg.name.size();
2000#ifdef USE_ENTITY_ICON
2001 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
2007 size += msg.entity_category ? 2 : 0;
2008 size += !msg.unit_of_measurement.empty() ? 2 + msg.unit_of_measurement.size() : 0;
2009 size += msg.mode ? 2 : 0;
2010 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
2044 msg.key = value.as_fixed32();
2047 msg.state = value.as_float();
2051 msg.device_id = value.as_varint();
2065#ifdef USE_ENTITY_ICON
2068 for (
const char *it : *msg.options) {
2083 size += 2 + msg.name.size();
2084#ifdef USE_ENTITY_ICON
2085 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
2087 if (!msg.options->empty()) {
2088 for (
const char *it : *msg.options) {
2093 size += msg.entity_category ? 2 : 0;
2125 msg.key = value.as_fixed32();
2128 msg.state =
StringRef(value.data(), value.size());
2132 msg.device_id = value.as_varint();
2146#ifdef USE_ENTITY_ICON
2150 for (
const char *it : *msg.tones) {
2166 size += 2 + msg.name.size();
2167#ifdef USE_ENTITY_ICON
2168 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
2171 if (!msg.tones->empty()) {
2172 for (
const char *it : *msg.tones) {
2178 size += msg.entity_category ? 2 : 0;
2208 msg.key = value.as_fixed32();
2211 msg.has_state = value.as_bool();
2214 msg.state = value.as_bool();
2217 msg.has_tone = value.as_bool();
2220 msg.tone =
StringRef(value.data(), value.size());
2223 msg.has_duration = value.as_bool();
2226 msg.duration = value.as_varint();
2229 msg.has_volume = value.as_bool();
2232 msg.volume = value.as_float();
2236 msg.device_id = value.as_varint();
2250#ifdef USE_ENTITY_ICON
2269 size += 2 + msg.name.size();
2270#ifdef USE_ENTITY_ICON
2271 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
2274 size += msg.entity_category ? 2 : 0;
2308 msg.key = value.as_fixed32();
2314 msg.has_code = value.as_bool();
2317 msg.code =
StringRef(value.data(), value.size());
2321 msg.device_id = value.as_varint();
2335#ifdef USE_ENTITY_ICON
2351 size += 2 + msg.name.size();
2352#ifdef USE_ENTITY_ICON
2353 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
2356 size += msg.entity_category ? 2 : 0;
2357 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
2368 msg.key = value.as_fixed32();
2372 msg.device_id = value.as_varint();
2380#ifdef USE_MEDIA_PLAYER
2397 size += msg.purpose ? 2 : 0;
2403 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2408#ifdef USE_ENTITY_ICON
2413 for (
auto &it : msg.supported_formats) {
2427 size += 2 + msg.name.size();
2428#ifdef USE_ENTITY_ICON
2429 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
2432 size += msg.entity_category ? 2 : 0;
2433 if (!msg.supported_formats.empty()) {
2434 for (
const auto &it : msg.supported_formats) {
2475 msg.key = value.as_fixed32();
2478 msg.has_command = value.as_bool();
2484 msg.has_volume = value.as_bool();
2487 msg.volume = value.as_float();
2490 msg.has_media_url = value.as_bool();
2493 msg.media_url =
StringRef(value.data(), value.size());
2496 msg.has_announcement = value.as_bool();
2499 msg.announcement = value.as_bool();
2503 msg.device_id = value.as_varint();
2511#ifdef USE_BLUETOOTH_PROXY
2518 msg.flags = value.as_varint();
2526 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2528 for (uint16_t i = 0; i < msg.advertisements_len; i++) {
2529 auto &sub_msg = msg.advertisements[i];
2531 uint8_t *len_pos =
pos;
2537 if (sub_msg.address_type) {
2544 *len_pos =
static_cast<uint8_t
>(
pos - len_pos - 1);
2549uint32_t BluetoothLERawAdvertisementsResponse::calc_size_msg(const
void *self) {
2550 const auto &msg = *
static_cast<const BluetoothLERawAdvertisementsResponse *
>(self);
2552 for (uint16_t i = 0; i < msg.advertisements_len; i++) {
2553 auto &sub_msg = msg.advertisements[i];
2557 size += sub_msg.address_type ? 2 : 0;
2558 size += 2 + sub_msg.data_len;
2563#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2569 msg.address = value.as_varint();
2575 msg.has_address_type = value.as_bool();
2578 msg.address_type = value.as_varint();
2585 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2608 msg.address = value.as_varint();
2616 if (msg.uuid[0] != 0 || msg.uuid[1] != 0) {
2627 if (msg.uuid[0] != 0 || msg.uuid[1] != 0) {
2637 if (msg.uuid[0] != 0 || msg.uuid[1] != 0) {
2643 for (
auto &it : msg.descriptors) {
2652 if (msg.uuid[0] != 0 || msg.uuid[1] != 0) {
2658 if (!msg.descriptors.empty()) {
2659 for (
const auto &it : msg.descriptors) {
2668 if (msg.uuid[0] != 0 || msg.uuid[1] != 0) {
2673 for (
auto &it : msg.characteristics) {
2682 if (msg.uuid[0] != 0 || msg.uuid[1] != 0) {
2687 if (!msg.characteristics.empty()) {
2688 for (
const auto &it : msg.characteristics) {
2696 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2699 for (
auto &it : msg.services) {
2708 if (!msg.services.empty()) {
2709 for (
const auto &it : msg.services) {
2716 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2733 msg.address = value.as_varint();
2736 msg.handle = value.as_varint();
2763 msg.address = value.as_varint();
2766 msg.handle = value.as_varint();
2769 msg.response = value.as_bool();
2772 msg.data = value.data();
2773 msg.data_len = value.size();
2785 msg.address = value.as_varint();
2788 msg.handle = value.as_varint();
2800 msg.address = value.as_varint();
2803 msg.handle = value.as_varint();
2806 msg.data = value.data();
2807 msg.data_len = value.size();
2819 msg.address = value.as_varint();
2822 msg.handle = value.as_varint();
2825 msg.enable = value.as_bool();
2832 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2848 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2852 for (
const auto &it : msg.allocated) {
2864 for (
const auto &it : msg.allocated) {
2913 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2929 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2945 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2961#ifdef USE_BLUETOOTH_PROXY
2963 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
2974 size += msg.mode ? 2 : 0;
2975 size += msg.configured_mode ? 2 : 0;
2991#ifdef USE_VOICE_ASSISTANT
2998 msg.subscribe = value.as_bool();
3001 msg.flags = value.as_varint();
3048 msg.port = value.as_varint();
3051 msg.error = value.as_bool();
3080 msg.data.emplace_back();
3081 value.decode_to_message(msg.data.back());
3092 msg.data = value.data();
3093 msg.data_len = value.size();
3096 msg.end = value.as_bool();
3099 msg.data2 = value.data();
3100 msg.data2_len = value.size();
3130 msg.timer_id =
StringRef(value.data(), value.size());
3133 msg.name =
StringRef(value.data(), value.size());
3136 msg.total_seconds = value.as_varint();
3139 msg.seconds_left = value.as_varint();
3142 msg.is_active = value.as_bool();
3154 msg.media_id =
StringRef(value.data(), value.size());
3157 msg.text =
StringRef(value.data(), value.size());
3160 msg.preannounce_media_id =
StringRef(value.data(), value.size());
3163 msg.start_conversation = value.as_bool();
3170 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
3185 for (
auto &it : msg.trained_languages) {
3195 if (!msg.trained_languages.empty()) {
3196 for (
const auto &it : msg.trained_languages) {
3208 msg.id =
StringRef(value.data(), value.size());
3211 msg.wake_word =
StringRef(value.data(), value.size());
3214 msg.trained_languages.push_back(value.as_string());
3217 msg.model_type =
StringRef(value.data(), value.size());
3220 msg.model_size = value.as_varint();
3223 msg.model_hash =
StringRef(value.data(), value.size());
3226 msg.url =
StringRef(value.data(), value.size());
3238 msg.external_wake_words.emplace_back();
3239 value.decode_to_message(msg.external_wake_words.back());
3246 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
3248 for (
auto &it : msg.available_wake_words) {
3251 for (
const auto &it : *msg.active_wake_words) {
3260 if (!msg.available_wake_words.empty()) {
3261 for (
const auto &it : msg.available_wake_words) {
3265 if (!msg.active_wake_words->empty()) {
3266 for (
const auto &it : *msg.active_wake_words) {
3279 msg.active_wake_words.push_back(value.as_string());
3286#ifdef USE_ALARM_CONTROL_PANEL
3288 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
3293#ifdef USE_ENTITY_ICON
3311 size += 2 + msg.name.size();
3312#ifdef USE_ENTITY_ICON
3313 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
3316 size += msg.entity_category ? 2 : 0;
3326 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
3351 msg.key = value.as_fixed32();
3357 msg.code =
StringRef(value.data(), value.size());
3361 msg.device_id = value.as_varint();
3375#ifdef USE_ENTITY_ICON
3394 size += 2 + msg.name.size();
3395#ifdef USE_ENTITY_ICON
3396 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
3399 size += msg.entity_category ? 2 : 0;
3403 size += msg.mode ? 2 : 0;
3435 msg.key = value.as_fixed32();
3438 msg.state =
StringRef(value.data(), value.size());
3442 msg.device_id = value.as_varint();
3450#ifdef USE_DATETIME_DATE
3456#ifdef USE_ENTITY_ICON
3471 size += 2 + msg.name.size();
3472#ifdef USE_ENTITY_ICON
3473 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
3476 size += msg.entity_category ? 2 : 0;
3512 msg.key = value.as_fixed32();
3515 msg.year = value.as_varint();
3518 msg.month = value.as_varint();
3521 msg.day = value.as_varint();
3525 msg.device_id = value.as_varint();
3533#ifdef USE_DATETIME_TIME
3539#ifdef USE_ENTITY_ICON
3554 size += 2 + msg.name.size();
3555#ifdef USE_ENTITY_ICON
3556 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
3559 size += msg.entity_category ? 2 : 0;
3595 msg.key = value.as_fixed32();
3598 msg.hour = value.as_varint();
3601 msg.minute = value.as_varint();
3604 msg.second = value.as_varint();
3608 msg.device_id = value.as_varint();
3622#ifdef USE_ENTITY_ICON
3628 for (
const char *it : *msg.event_types) {
3641 size += 2 + msg.name.size();
3642#ifdef USE_ENTITY_ICON
3643 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
3646 size += msg.entity_category ? 2 : 0;
3647 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
3648 if (!msg.event_types->empty()) {
3649 for (
const char *it : *msg.event_types) {
3659 const auto &msg = *
static_cast<const EventResponse *
>(self);
3668 const auto &msg = *
static_cast<const EventResponse *
>(self);
3684#ifdef USE_ENTITY_ICON
3703 size += 2 + msg.name.size();
3704#ifdef USE_ENTITY_ICON
3705 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
3708 size += msg.entity_category ? 2 : 0;
3709 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
3735 size += msg.current_operation ? 2 : 0;
3746 msg.key = value.as_fixed32();
3749 msg.has_position = value.as_bool();
3752 msg.position = value.as_float();
3755 msg.stop = value.as_bool();
3759 msg.device_id = value.as_varint();
3767#ifdef USE_DATETIME_DATETIME
3769 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
3774#ifdef USE_ENTITY_ICON
3789 size += 2 + msg.name.size();
3790#ifdef USE_ENTITY_ICON
3791 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
3794 size += msg.entity_category ? 2 : 0;
3828 msg.key = value.as_fixed32();
3831 msg.epoch_seconds = value.as_fixed32();
3835 msg.device_id = value.as_varint();
3849#ifdef USE_ENTITY_ICON
3865 size += 2 + msg.name.size();
3866#ifdef USE_ENTITY_ICON
3867 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
3870 size += msg.entity_category ? 2 : 0;
3871 size += !msg.device_class.empty() ? 2 + msg.device_class.size() : 0;
3919 msg.key = value.as_fixed32();
3926 msg.device_id = value.as_varint();
3934#ifdef USE_ZWAVE_PROXY
3940 msg.data = value.data();
3941 msg.data_len = value.size();
3948uint8_t *
ZWaveProxyFrame::encode_msg(const
void *self, uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
3954uint32_t ZWaveProxyFrame::calc_size_msg(const
void *self) {
3955 const auto &msg = *
static_cast<const ZWaveProxyFrame *
>(self);
3968 msg.data = value.data();
3969 msg.data_len = value.size();
3998 size += msg.status ? 2 : 0;
4004 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
4009#ifdef USE_ENTITY_ICON
4026 size += 2 + msg.name.size();
4027#ifdef USE_ENTITY_ICON
4028 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
4031 size += msg.entity_category ? 2 : 0;
4048 msg.device_id = value.as_varint();
4052 msg.key = value.as_fixed32();
4055 msg.carrier_frequency = value.as_varint();
4058 msg.repeat_count = value.as_varint();
4061 msg.timings_data_ = value.data();
4062 msg.timings_length_ = value.size();
4066 msg.modulation = value.as_varint();
4079 for (
const auto &it : *msg.timings) {
4085uint32_t InfraredRFReceiveEvent::calc_size_msg(const
void *self) {
4086 const auto &msg = *
static_cast<const InfraredRFReceiveEvent *
>(self);
4092 if (!msg.timings->empty()) {
4093 for (
const auto &it : *msg.timings) {
4100 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
4120#ifdef USE_RADIO_FREQUENCY
4122 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
4127#ifdef USE_ENTITY_ICON
4146 size += 2 + msg.name.size();
4147#ifdef USE_ENTITY_ICON
4148 size += !msg.icon.empty() ? 2 + msg.icon.size() : 0;
4151 size += msg.entity_category ? 2 : 0;
4162#ifdef USE_SERIAL_PROXY
4169 msg.instance = value.as_varint();
4172 msg.baudrate = value.as_varint();
4175 msg.flow_control = value.as_bool();
4181 msg.stop_bits = value.as_varint();
4184 msg.data_size = value.as_varint();
4198uint32_t SerialProxyDataReceived::calc_size_msg(const
void *self) {
4199 const auto &msg = *
static_cast<const SerialProxyDataReceived *
>(self);
4210 msg.instance = value.as_varint();
4213 msg.data = value.data();
4214 msg.data_len = value.size();
4226 msg.instance = value.as_varint();
4229 msg.line_states = value.as_varint();
4241 msg.instance = value.as_varint();
4248 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
4260 size += msg.status ? 2 : 0;
4268 msg.instance = value.as_varint();
4289 size += msg.type ? 2 : 0;
4290 size += msg.status ? 2 : 0;
4300 msg.instance = value.as_varint();
4345 size += msg.source ? 2 : 0;
4354#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
4361 msg.address = value.as_varint();
4364 msg.min_interval = value.as_varint();
4367 msg.max_interval = value.as_varint();
4370 msg.latency = value.as_varint();
4373 msg.timeout = value.as_varint();
4380 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
4396 uint8_t *__restrict__
pos PROTO_ENCODE_DEBUG_PARAM) {
4406 size += !msg.token.empty() ? 2 + msg.token.size() : 0;
4410#ifndef HAS_PROTO_MESSAGE_DUMP
4411static_assert(!std::is_polymorphic_v<HelloRequest>,
"decodable messages carry no vtable");
4412static_assert(!std::is_polymorphic_v<DisconnectRequest>,
"decodable messages carry no vtable");
4413#ifdef USE_API_WIZARD_INPUTS
4414static_assert(!std::is_polymorphic_v<WizardInputSetRequest>,
"decodable messages carry no vtable");
4417static_assert(!std::is_polymorphic_v<CoverCommandRequest>,
"decodable messages carry no vtable");
4420static_assert(!std::is_polymorphic_v<FanCommandRequest>,
"decodable messages carry no vtable");
4423static_assert(!std::is_polymorphic_v<LightCommandRequest>,
"decodable messages carry no vtable");
4426static_assert(!std::is_polymorphic_v<SwitchCommandRequest>,
"decodable messages carry no vtable");
4428static_assert(!std::is_polymorphic_v<SubscribeLogsRequest>,
"decodable messages carry no vtable");
4430static_assert(!std::is_polymorphic_v<NoiseEncryptionSetKeyRequest>,
"decodable messages carry no vtable");
4432#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
4433static_assert(!std::is_polymorphic_v<HomeassistantActionResponse>,
"decodable messages carry no vtable");
4435#ifdef USE_API_HOMEASSISTANT_STATES
4436static_assert(!std::is_polymorphic_v<HomeAssistantStateResponse>,
"decodable messages carry no vtable");
4438static_assert(!std::is_polymorphic_v<DSTRule>,
"decodable messages carry no vtable");
4439static_assert(!std::is_polymorphic_v<ParsedTimezone>,
"decodable messages carry no vtable");
4440static_assert(!std::is_polymorphic_v<GetTimeResponse>,
"decodable messages carry no vtable");
4441#ifdef USE_API_USER_DEFINED_ACTIONS
4442static_assert(!std::is_polymorphic_v<ExecuteServiceArgument>,
"decodable messages carry no vtable");
4443static_assert(!std::is_polymorphic_v<ExecuteServiceRequest>,
"decodable messages carry no vtable");
4446static_assert(!std::is_polymorphic_v<CameraImageRequest>,
"decodable messages carry no vtable");
4449static_assert(!std::is_polymorphic_v<ClimateCommandRequest>,
"decodable messages carry no vtable");
4451#ifdef USE_WATER_HEATER
4452static_assert(!std::is_polymorphic_v<WaterHeaterCommandRequest>,
"decodable messages carry no vtable");
4455static_assert(!std::is_polymorphic_v<NumberCommandRequest>,
"decodable messages carry no vtable");
4458static_assert(!std::is_polymorphic_v<SelectCommandRequest>,
"decodable messages carry no vtable");
4461static_assert(!std::is_polymorphic_v<SirenCommandRequest>,
"decodable messages carry no vtable");
4464static_assert(!std::is_polymorphic_v<LockCommandRequest>,
"decodable messages carry no vtable");
4467static_assert(!std::is_polymorphic_v<ButtonCommandRequest>,
"decodable messages carry no vtable");
4469#ifdef USE_MEDIA_PLAYER
4470static_assert(!std::is_polymorphic_v<MediaPlayerCommandRequest>,
"decodable messages carry no vtable");
4472#ifdef USE_BLUETOOTH_PROXY
4473static_assert(!std::is_polymorphic_v<SubscribeBluetoothLEAdvertisementsRequest>,
"decodable messages carry no vtable");
4475#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
4476static_assert(!std::is_polymorphic_v<BluetoothDeviceRequest>,
"decodable messages carry no vtable");
4477static_assert(!std::is_polymorphic_v<BluetoothGATTGetServicesRequest>,
"decodable messages carry no vtable");
4478static_assert(!std::is_polymorphic_v<BluetoothGATTReadRequest>,
"decodable messages carry no vtable");
4479static_assert(!std::is_polymorphic_v<BluetoothGATTWriteRequest>,
"decodable messages carry no vtable");
4480static_assert(!std::is_polymorphic_v<BluetoothGATTReadDescriptorRequest>,
"decodable messages carry no vtable");
4481static_assert(!std::is_polymorphic_v<BluetoothGATTWriteDescriptorRequest>,
"decodable messages carry no vtable");
4482static_assert(!std::is_polymorphic_v<BluetoothGATTNotifyRequest>,
"decodable messages carry no vtable");
4484#ifdef USE_BLUETOOTH_PROXY
4485static_assert(!std::is_polymorphic_v<BluetoothScannerSetModeRequest>,
"decodable messages carry no vtable");
4487#ifdef USE_VOICE_ASSISTANT
4488static_assert(!std::is_polymorphic_v<SubscribeVoiceAssistantRequest>,
"decodable messages carry no vtable");
4489static_assert(!std::is_polymorphic_v<VoiceAssistantResponse>,
"decodable messages carry no vtable");
4490static_assert(!std::is_polymorphic_v<VoiceAssistantEventData>,
"decodable messages carry no vtable");
4491static_assert(!std::is_polymorphic_v<VoiceAssistantEventResponse>,
"decodable messages carry no vtable");
4492static_assert(!std::is_polymorphic_v<VoiceAssistantAudio>,
"decodable messages carry no vtable");
4493static_assert(!std::is_polymorphic_v<VoiceAssistantTimerEventResponse>,
"decodable messages carry no vtable");
4494static_assert(!std::is_polymorphic_v<VoiceAssistantAnnounceRequest>,
"decodable messages carry no vtable");
4495static_assert(!std::is_polymorphic_v<VoiceAssistantExternalWakeWord>,
"decodable messages carry no vtable");
4496static_assert(!std::is_polymorphic_v<VoiceAssistantConfigurationRequest>,
"decodable messages carry no vtable");
4497static_assert(!std::is_polymorphic_v<VoiceAssistantSetConfiguration>,
"decodable messages carry no vtable");
4499#ifdef USE_ALARM_CONTROL_PANEL
4500static_assert(!std::is_polymorphic_v<AlarmControlPanelCommandRequest>,
"decodable messages carry no vtable");
4503static_assert(!std::is_polymorphic_v<TextCommandRequest>,
"decodable messages carry no vtable");
4505#ifdef USE_DATETIME_DATE
4506static_assert(!std::is_polymorphic_v<DateCommandRequest>,
"decodable messages carry no vtable");
4508#ifdef USE_DATETIME_TIME
4509static_assert(!std::is_polymorphic_v<TimeCommandRequest>,
"decodable messages carry no vtable");
4512static_assert(!std::is_polymorphic_v<ValveCommandRequest>,
"decodable messages carry no vtable");
4514#ifdef USE_DATETIME_DATETIME
4515static_assert(!std::is_polymorphic_v<DateTimeCommandRequest>,
"decodable messages carry no vtable");
4518static_assert(!std::is_polymorphic_v<UpdateCommandRequest>,
"decodable messages carry no vtable");
4520#ifdef USE_ZWAVE_PROXY
4521static_assert(!std::is_polymorphic_v<ZWaveProxyFrame>,
"decodable messages carry no vtable");
4522static_assert(!std::is_polymorphic_v<ZWaveProxyRequest>,
"decodable messages carry no vtable");
4525static_assert(!std::is_polymorphic_v<InfraredRFTransmitRawTimingsRequest>,
"decodable messages carry no vtable");
4527#ifdef USE_SERIAL_PROXY
4528static_assert(!std::is_polymorphic_v<SerialProxyConfigureRequest>,
"decodable messages carry no vtable");
4529static_assert(!std::is_polymorphic_v<SerialProxyWriteRequest>,
"decodable messages carry no vtable");
4530static_assert(!std::is_polymorphic_v<SerialProxySetModemPinsRequest>,
"decodable messages carry no vtable");
4531static_assert(!std::is_polymorphic_v<SerialProxyGetModemPinsRequest>,
"decodable messages carry no vtable");
4532static_assert(!std::is_polymorphic_v<SerialProxyRequest>,
"decodable messages carry no vtable");
4533static_assert(!std::is_polymorphic_v<SerialProxySetModeRequest>,
"decodable messages carry no vtable");
4535#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
4536static_assert(!std::is_polymorphic_v<BluetoothSetConnectionParamsRequest>,
"decodable messages carry no vtable");
StringRef is a reference to a string owned by something else.
constexpr size_type size() const
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
enums::AlarmControlPanelState state
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
enums::BluetoothScannerState state
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
enums::DisconnectReason reason
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
FixedVector< bool > bool_array
FixedVector< float > float_array
FixedVector< std::string > string_array
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
void decode(const uint8_t *buffer, size_t length)
FixedVector< int32_t > int_array
FixedVector< ExecuteServiceArgument > args
void decode(const uint8_t *buffer, size_t length)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_fields(void *msg, const uint8_t *buffer, size_t length, DecodeFieldFn field)
Walk buffer and hand every field to field.
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 uint8_t * 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 uint8_t *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 uint8_t * encode_progmem_bytes(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, const uint8_t *data, size_t len)
encode_bytes for data in flash (PROGMEM), which ESP8266 can only read with progmem_memcpy.
static uint8_t * encode_sub_message(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, const T &value)
Repeated sub-message element; the constant tag is written inline.
static uint8_t * encode_uint32_force(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, uint32_t value)
static uint8_t * encode_int32(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, int32_t value)
static uint8_t *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 uint8_t *ESPHOME_ALWAYS_INLINE encode_varint_raw(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t value)
static uint8_t * encode_string_force(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, const char *string, size_t len)
static uint8_t * encode_string(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, const char *string, size_t len)
static uint8_t * encode_uint32(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, uint32_t value)
static uint8_t * encode_optional_sub_message(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, const T &value)
Singular sub-message field, skipped when it encodes to nothing.
static uint8_t *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 uint8_t * encode_sint32_force(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, int32_t value)
static uint8_t * encode_short_progmem_string_force(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint8_t tag, const ProgmemStringRef &ref)
encode_short_string_force for a string that may be in flash (PROGMEM).
static PROTO_OUTLINE_FOR_SIZE uint8_t * 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. Outlined on embedded: one copy beats inline stores per f...
static uint8_t * encode_bool(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, bool value)
static uint8_t * encode_progmem_string(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, const ProgmemStringRef &ref)
encode_progmem_bytes for a string field that may be in flash.
static uint8_t * encode_bytes(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, const uint8_t *data, size_t len)
static uint8_t *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 uint8_t *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 uint8_t * encode_uint64(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, uint64_t value)
static uint8_t * encode_uint64_force(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, uint64_t value)
static uint8_t * encode_float(uint8_t *__restrict__ pos PROTO_ENCODE_DEBUG_PARAM, uint32_t field_id, float value)
One decoded field: the payload pointer and a scalar holding the varint or fixed32 value,...
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)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
enums::SendspinPairingTokenStatus status
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
std::vector< VoiceAssistantEventData > data
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint32_t calc_size_msg(const void *self)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
static uint32_t calc_size_msg(const void *self)
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
enums::ZWaveProxyRequestType type
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
enums::ZWaveProxyRequestType type
static uint32_t calc_size_msg(const void *self)
struct @66::@67 __attribute__
Wake the main loop task from an ISR. ISR-safe.
BluetoothDeviceRequestType
AlarmControlPanelStateCommand
uint16_t count_packed_varints(const uint8_t *data, size_t len)
Count varints in a packed buffer: len minus bytes with the continuation bit, summed a word at a time.
constexpr uint32_t encode_zigzag32(int32_t value)
constexpr uint8_t WIRE_TYPE_VARINT
constexpr uint32_t proto_tag(uint32_t field_id, uint32_t wire_type)
Case label for decode_field(): the wire tag of a field, so a field that arrives with another wire typ...
uint64_t proto_varint_value_t
Type used for decoded varint values - uint64_t when BLE needs 64-bit addresses, uint32_t otherwise.
constexpr uint8_t WIRE_TYPE_LENGTH_DELIMITED
constexpr int32_t decode_zigzag32(uint32_t value)
constexpr uint8_t WIRE_TYPE_FIXED32
uint32_t float_to_raw(float value)