11 #ifdef HAS_PROTO_MESSAGE_DUMP 15 return "ENTITY_CATEGORY_NONE";
17 return "ENTITY_CATEGORY_CONFIG";
19 return "ENTITY_CATEGORY_DIAGNOSTIC";
25 #ifdef HAS_PROTO_MESSAGE_DUMP 29 return "LEGACY_COVER_STATE_OPEN";
31 return "LEGACY_COVER_STATE_CLOSED";
37 #ifdef HAS_PROTO_MESSAGE_DUMP 41 return "COVER_OPERATION_IDLE";
43 return "COVER_OPERATION_IS_OPENING";
45 return "COVER_OPERATION_IS_CLOSING";
51 #ifdef HAS_PROTO_MESSAGE_DUMP 55 return "LEGACY_COVER_COMMAND_OPEN";
57 return "LEGACY_COVER_COMMAND_CLOSE";
59 return "LEGACY_COVER_COMMAND_STOP";
65 #ifdef HAS_PROTO_MESSAGE_DUMP 66 template<>
const char *proto_enum_to_string<enums::FanSpeed>(
enums::FanSpeed value) {
69 return "FAN_SPEED_LOW";
71 return "FAN_SPEED_MEDIUM";
73 return "FAN_SPEED_HIGH";
79 #ifdef HAS_PROTO_MESSAGE_DUMP 83 return "FAN_DIRECTION_FORWARD";
85 return "FAN_DIRECTION_REVERSE";
91 #ifdef HAS_PROTO_MESSAGE_DUMP 92 template<>
const char *proto_enum_to_string<enums::ColorMode>(
enums::ColorMode value) {
95 return "COLOR_MODE_UNKNOWN";
97 return "COLOR_MODE_ON_OFF";
99 return "COLOR_MODE_BRIGHTNESS";
101 return "COLOR_MODE_WHITE";
103 return "COLOR_MODE_COLOR_TEMPERATURE";
105 return "COLOR_MODE_COLD_WARM_WHITE";
107 return "COLOR_MODE_RGB";
109 return "COLOR_MODE_RGB_WHITE";
111 return "COLOR_MODE_RGB_COLOR_TEMPERATURE";
113 return "COLOR_MODE_RGB_COLD_WARM_WHITE";
119 #ifdef HAS_PROTO_MESSAGE_DUMP 123 return "STATE_CLASS_NONE";
125 return "STATE_CLASS_MEASUREMENT";
127 return "STATE_CLASS_TOTAL_INCREASING";
129 return "STATE_CLASS_TOTAL";
135 #ifdef HAS_PROTO_MESSAGE_DUMP 139 return "LAST_RESET_NONE";
141 return "LAST_RESET_NEVER";
143 return "LAST_RESET_AUTO";
149 #ifdef HAS_PROTO_MESSAGE_DUMP 153 return "LOG_LEVEL_NONE";
155 return "LOG_LEVEL_ERROR";
157 return "LOG_LEVEL_WARN";
159 return "LOG_LEVEL_INFO";
161 return "LOG_LEVEL_CONFIG";
163 return "LOG_LEVEL_DEBUG";
165 return "LOG_LEVEL_VERBOSE";
167 return "LOG_LEVEL_VERY_VERBOSE";
173 #ifdef HAS_PROTO_MESSAGE_DUMP 177 return "SERVICE_ARG_TYPE_BOOL";
179 return "SERVICE_ARG_TYPE_INT";
181 return "SERVICE_ARG_TYPE_FLOAT";
183 return "SERVICE_ARG_TYPE_STRING";
185 return "SERVICE_ARG_TYPE_BOOL_ARRAY";
187 return "SERVICE_ARG_TYPE_INT_ARRAY";
189 return "SERVICE_ARG_TYPE_FLOAT_ARRAY";
191 return "SERVICE_ARG_TYPE_STRING_ARRAY";
197 #ifdef HAS_PROTO_MESSAGE_DUMP 201 return "CLIMATE_MODE_OFF";
203 return "CLIMATE_MODE_HEAT_COOL";
205 return "CLIMATE_MODE_COOL";
207 return "CLIMATE_MODE_HEAT";
209 return "CLIMATE_MODE_FAN_ONLY";
211 return "CLIMATE_MODE_DRY";
213 return "CLIMATE_MODE_AUTO";
219 #ifdef HAS_PROTO_MESSAGE_DUMP 223 return "CLIMATE_FAN_ON";
225 return "CLIMATE_FAN_OFF";
227 return "CLIMATE_FAN_AUTO";
229 return "CLIMATE_FAN_LOW";
231 return "CLIMATE_FAN_MEDIUM";
233 return "CLIMATE_FAN_HIGH";
235 return "CLIMATE_FAN_MIDDLE";
237 return "CLIMATE_FAN_FOCUS";
239 return "CLIMATE_FAN_DIFFUSE";
241 return "CLIMATE_FAN_QUIET";
247 #ifdef HAS_PROTO_MESSAGE_DUMP 251 return "CLIMATE_SWING_OFF";
253 return "CLIMATE_SWING_BOTH";
255 return "CLIMATE_SWING_VERTICAL";
257 return "CLIMATE_SWING_HORIZONTAL";
263 #ifdef HAS_PROTO_MESSAGE_DUMP 267 return "CLIMATE_ACTION_OFF";
269 return "CLIMATE_ACTION_COOLING";
271 return "CLIMATE_ACTION_HEATING";
273 return "CLIMATE_ACTION_IDLE";
275 return "CLIMATE_ACTION_DRYING";
277 return "CLIMATE_ACTION_FAN";
283 #ifdef HAS_PROTO_MESSAGE_DUMP 287 return "CLIMATE_PRESET_NONE";
289 return "CLIMATE_PRESET_HOME";
291 return "CLIMATE_PRESET_AWAY";
293 return "CLIMATE_PRESET_BOOST";
295 return "CLIMATE_PRESET_COMFORT";
297 return "CLIMATE_PRESET_ECO";
299 return "CLIMATE_PRESET_SLEEP";
301 return "CLIMATE_PRESET_ACTIVITY";
307 #ifdef HAS_PROTO_MESSAGE_DUMP 311 return "NUMBER_MODE_AUTO";
313 return "NUMBER_MODE_BOX";
315 return "NUMBER_MODE_SLIDER";
321 #ifdef HAS_PROTO_MESSAGE_DUMP 325 return "LOCK_STATE_NONE";
327 return "LOCK_STATE_LOCKED";
329 return "LOCK_STATE_UNLOCKED";
331 return "LOCK_STATE_JAMMED";
333 return "LOCK_STATE_LOCKING";
335 return "LOCK_STATE_UNLOCKING";
341 #ifdef HAS_PROTO_MESSAGE_DUMP 345 return "LOCK_UNLOCK";
355 #ifdef HAS_PROTO_MESSAGE_DUMP 359 return "MEDIA_PLAYER_STATE_NONE";
361 return "MEDIA_PLAYER_STATE_IDLE";
363 return "MEDIA_PLAYER_STATE_PLAYING";
365 return "MEDIA_PLAYER_STATE_PAUSED";
371 #ifdef HAS_PROTO_MESSAGE_DUMP 375 return "MEDIA_PLAYER_COMMAND_PLAY";
377 return "MEDIA_PLAYER_COMMAND_PAUSE";
379 return "MEDIA_PLAYER_COMMAND_STOP";
381 return "MEDIA_PLAYER_COMMAND_MUTE";
383 return "MEDIA_PLAYER_COMMAND_UNMUTE";
389 #ifdef HAS_PROTO_MESSAGE_DUMP 394 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT";
396 return "BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT";
398 return "BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR";
400 return "BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR";
402 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE";
404 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE";
406 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE";
412 #ifdef HAS_PROTO_MESSAGE_DUMP 417 return "VOICE_ASSISTANT_SUBSCRIBE_NONE";
419 return "VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO";
425 #ifdef HAS_PROTO_MESSAGE_DUMP 429 return "VOICE_ASSISTANT_REQUEST_NONE";
431 return "VOICE_ASSISTANT_REQUEST_USE_VAD";
433 return "VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD";
439 #ifdef HAS_PROTO_MESSAGE_DUMP 443 return "VOICE_ASSISTANT_ERROR";
445 return "VOICE_ASSISTANT_RUN_START";
447 return "VOICE_ASSISTANT_RUN_END";
449 return "VOICE_ASSISTANT_STT_START";
451 return "VOICE_ASSISTANT_STT_END";
453 return "VOICE_ASSISTANT_INTENT_START";
455 return "VOICE_ASSISTANT_INTENT_END";
457 return "VOICE_ASSISTANT_TTS_START";
459 return "VOICE_ASSISTANT_TTS_END";
461 return "VOICE_ASSISTANT_WAKE_WORD_START";
463 return "VOICE_ASSISTANT_WAKE_WORD_END";
465 return "VOICE_ASSISTANT_STT_VAD_START";
467 return "VOICE_ASSISTANT_STT_VAD_END";
469 return "VOICE_ASSISTANT_TTS_STREAM_START";
471 return "VOICE_ASSISTANT_TTS_STREAM_END";
477 #ifdef HAS_PROTO_MESSAGE_DUMP 481 return "VOICE_ASSISTANT_TIMER_STARTED";
483 return "VOICE_ASSISTANT_TIMER_UPDATED";
485 return "VOICE_ASSISTANT_TIMER_CANCELLED";
487 return "VOICE_ASSISTANT_TIMER_FINISHED";
493 #ifdef HAS_PROTO_MESSAGE_DUMP 497 return "ALARM_STATE_DISARMED";
499 return "ALARM_STATE_ARMED_HOME";
501 return "ALARM_STATE_ARMED_AWAY";
503 return "ALARM_STATE_ARMED_NIGHT";
505 return "ALARM_STATE_ARMED_VACATION";
507 return "ALARM_STATE_ARMED_CUSTOM_BYPASS";
509 return "ALARM_STATE_PENDING";
511 return "ALARM_STATE_ARMING";
513 return "ALARM_STATE_DISARMING";
515 return "ALARM_STATE_TRIGGERED";
521 #ifdef HAS_PROTO_MESSAGE_DUMP 526 return "ALARM_CONTROL_PANEL_DISARM";
528 return "ALARM_CONTROL_PANEL_ARM_AWAY";
530 return "ALARM_CONTROL_PANEL_ARM_HOME";
532 return "ALARM_CONTROL_PANEL_ARM_NIGHT";
534 return "ALARM_CONTROL_PANEL_ARM_VACATION";
536 return "ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS";
538 return "ALARM_CONTROL_PANEL_TRIGGER";
544 #ifdef HAS_PROTO_MESSAGE_DUMP 548 return "TEXT_MODE_TEXT";
550 return "TEXT_MODE_PASSWORD";
556 #ifdef HAS_PROTO_MESSAGE_DUMP 560 return "VALVE_OPERATION_IDLE";
562 return "VALVE_OPERATION_IS_OPENING";
564 return "VALVE_OPERATION_IS_CLOSING";
599 #ifdef HAS_PROTO_MESSAGE_DUMP 602 out.append(
"HelloRequest {\n");
603 out.append(
" client_info: ");
604 out.append(
"'").append(this->
client_info).append(
"'");
607 out.append(
" api_version_major: ");
612 out.append(
" api_version_minor: ");
653 #ifdef HAS_PROTO_MESSAGE_DUMP 656 out.append(
"HelloResponse {\n");
657 out.append(
" api_version_major: ");
662 out.append(
" api_version_minor: ");
667 out.append(
" server_info: ");
668 out.append(
"'").append(this->server_info).append(
"'");
671 out.append(
" name: ");
672 out.append(
"'").append(this->
name).append(
"'");
688 #ifdef HAS_PROTO_MESSAGE_DUMP 691 out.append(
"ConnectRequest {\n");
692 out.append(
" password: ");
693 out.append(
"'").append(this->password).append(
"'");
701 this->invalid_password = value.
as_bool();
709 #ifdef HAS_PROTO_MESSAGE_DUMP 712 out.append(
"ConnectResponse {\n");
713 out.append(
" invalid_password: ");
714 out.append(YESNO(this->invalid_password));
720 #ifdef HAS_PROTO_MESSAGE_DUMP 724 #ifdef HAS_PROTO_MESSAGE_DUMP 728 #ifdef HAS_PROTO_MESSAGE_DUMP 732 #ifdef HAS_PROTO_MESSAGE_DUMP 736 #ifdef HAS_PROTO_MESSAGE_DUMP 742 this->uses_password = value.
as_bool();
746 this->has_deep_sleep = value.
as_bool();
750 this->webserver_port = value.
as_uint32();
754 this->legacy_bluetooth_proxy_version = value.
as_uint32();
758 this->bluetooth_proxy_feature_flags = value.
as_uint32();
762 this->legacy_voice_assistant_version = value.
as_uint32();
766 this->voice_assistant_feature_flags = value.
as_uint32();
784 this->esphome_version = value.
as_string();
788 this->compilation_time = value.
as_string();
800 this->project_version = value.
as_string();
812 this->suggested_area = value.
as_string();
830 buffer.
encode_uint32(11, this->legacy_bluetooth_proxy_version);
831 buffer.
encode_uint32(15, this->bluetooth_proxy_feature_flags);
834 buffer.
encode_uint32(14, this->legacy_voice_assistant_version);
835 buffer.
encode_uint32(17, this->voice_assistant_feature_flags);
838 #ifdef HAS_PROTO_MESSAGE_DUMP 841 out.append(
"DeviceInfoResponse {\n");
842 out.append(
" uses_password: ");
843 out.append(YESNO(this->uses_password));
846 out.append(
" name: ");
847 out.append(
"'").append(this->
name).append(
"'");
850 out.append(
" mac_address: ");
851 out.append(
"'").append(this->mac_address).append(
"'");
854 out.append(
" esphome_version: ");
855 out.append(
"'").append(this->esphome_version).append(
"'");
858 out.append(
" compilation_time: ");
859 out.append(
"'").append(this->compilation_time).append(
"'");
862 out.append(
" model: ");
863 out.append(
"'").append(this->model).append(
"'");
866 out.append(
" has_deep_sleep: ");
867 out.append(YESNO(this->has_deep_sleep));
870 out.append(
" project_name: ");
871 out.append(
"'").append(this->project_name).append(
"'");
874 out.append(
" project_version: ");
875 out.append(
"'").append(this->project_version).append(
"'");
878 out.append(
" webserver_port: ");
879 sprintf(buffer,
"%" PRIu32, this->webserver_port);
883 out.append(
" legacy_bluetooth_proxy_version: ");
884 sprintf(buffer,
"%" PRIu32, this->legacy_bluetooth_proxy_version);
888 out.append(
" bluetooth_proxy_feature_flags: ");
889 sprintf(buffer,
"%" PRIu32, this->bluetooth_proxy_feature_flags);
893 out.append(
" manufacturer: ");
894 out.append(
"'").append(this->manufacturer).append(
"'");
897 out.append(
" friendly_name: ");
898 out.append(
"'").append(this->friendly_name).append(
"'");
901 out.append(
" legacy_voice_assistant_version: ");
902 sprintf(buffer,
"%" PRIu32, this->legacy_voice_assistant_version);
906 out.append(
" voice_assistant_feature_flags: ");
907 sprintf(buffer,
"%" PRIu32, this->voice_assistant_feature_flags);
911 out.append(
" suggested_area: ");
912 out.append(
"'").append(this->suggested_area).append(
"'");
918 #ifdef HAS_PROTO_MESSAGE_DUMP 922 #ifdef HAS_PROTO_MESSAGE_DUMP 926 #ifdef HAS_PROTO_MESSAGE_DUMP 932 this->is_status_binary_sensor = value.
as_bool();
936 this->disabled_by_default = value.
as_bool();
989 buffer.
encode_bool(6, this->is_status_binary_sensor);
994 #ifdef HAS_PROTO_MESSAGE_DUMP 997 out.append(
"ListEntitiesBinarySensorResponse {\n");
998 out.append(
" object_id: ");
999 out.append(
"'").append(this->object_id).append(
"'");
1002 out.append(
" key: ");
1003 sprintf(buffer,
"%" PRIu32, this->key);
1007 out.append(
" name: ");
1008 out.append(
"'").append(this->
name).append(
"'");
1011 out.append(
" unique_id: ");
1012 out.append(
"'").append(this->unique_id).append(
"'");
1015 out.append(
" device_class: ");
1016 out.append(
"'").append(this->device_class).append(
"'");
1019 out.append(
" is_status_binary_sensor: ");
1020 out.append(YESNO(this->is_status_binary_sensor));
1023 out.append(
" disabled_by_default: ");
1024 out.append(YESNO(this->disabled_by_default));
1027 out.append(
" icon: ");
1028 out.append(
"'").append(this->icon).append(
"'");
1031 out.append(
" entity_category: ");
1032 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1044 this->missing_state = value.
as_bool();
1066 #ifdef HAS_PROTO_MESSAGE_DUMP 1069 out.append(
"BinarySensorStateResponse {\n");
1070 out.append(
" key: ");
1071 sprintf(buffer,
"%" PRIu32, this->key);
1075 out.append(
" state: ");
1076 out.append(YESNO(this->
state));
1079 out.append(
" missing_state: ");
1080 out.append(YESNO(this->missing_state));
1088 this->assumed_state = value.
as_bool();
1092 this->supports_position = value.
as_bool();
1096 this->supports_tilt = value.
as_bool();
1100 this->disabled_by_default = value.
as_bool();
1108 this->supports_stop = value.
as_bool();
1165 #ifdef HAS_PROTO_MESSAGE_DUMP 1168 out.append(
"ListEntitiesCoverResponse {\n");
1169 out.append(
" object_id: ");
1170 out.append(
"'").append(this->object_id).append(
"'");
1173 out.append(
" key: ");
1174 sprintf(buffer,
"%" PRIu32, this->key);
1178 out.append(
" name: ");
1179 out.append(
"'").append(this->
name).append(
"'");
1182 out.append(
" unique_id: ");
1183 out.append(
"'").append(this->unique_id).append(
"'");
1186 out.append(
" assumed_state: ");
1187 out.append(YESNO(this->assumed_state));
1190 out.append(
" supports_position: ");
1191 out.append(YESNO(this->supports_position));
1194 out.append(
" supports_tilt: ");
1195 out.append(YESNO(this->supports_tilt));
1198 out.append(
" device_class: ");
1199 out.append(
"'").append(this->device_class).append(
"'");
1202 out.append(
" disabled_by_default: ");
1203 out.append(YESNO(this->disabled_by_default));
1206 out.append(
" icon: ");
1207 out.append(
"'").append(this->icon).append(
"'");
1210 out.append(
" entity_category: ");
1211 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1214 out.append(
" supports_stop: ");
1215 out.append(YESNO(this->supports_stop));
1259 #ifdef HAS_PROTO_MESSAGE_DUMP 1262 out.append(
"CoverStateResponse {\n");
1263 out.append(
" key: ");
1264 sprintf(buffer,
"%" PRIu32, this->key);
1268 out.append(
" legacy_state: ");
1269 out.append(proto_enum_to_string<enums::LegacyCoverState>(this->legacy_state));
1272 out.append(
" position: ");
1273 sprintf(buffer,
"%g", this->
position);
1277 out.append(
" tilt: ");
1278 sprintf(buffer,
"%g", this->
tilt);
1282 out.append(
" current_operation: ");
1283 out.append(proto_enum_to_string<enums::CoverOperation>(this->current_operation));
1291 this->has_legacy_command = value.
as_bool();
1299 this->has_position = value.
as_bool();
1303 this->has_tilt = value.
as_bool();
1342 #ifdef HAS_PROTO_MESSAGE_DUMP 1345 out.append(
"CoverCommandRequest {\n");
1346 out.append(
" key: ");
1347 sprintf(buffer,
"%" PRIu32, this->key);
1351 out.append(
" has_legacy_command: ");
1352 out.append(YESNO(this->has_legacy_command));
1355 out.append(
" legacy_command: ");
1356 out.append(proto_enum_to_string<enums::LegacyCoverCommand>(this->legacy_command));
1359 out.append(
" has_position: ");
1360 out.append(YESNO(this->has_position));
1363 out.append(
" position: ");
1364 sprintf(buffer,
"%g", this->
position);
1368 out.append(
" has_tilt: ");
1369 out.append(YESNO(this->has_tilt));
1372 out.append(
" tilt: ");
1373 sprintf(buffer,
"%g", this->
tilt);
1377 out.append(
" stop: ");
1378 out.append(YESNO(this->stop));
1386 this->supports_oscillation = value.
as_bool();
1390 this->supports_speed = value.
as_bool();
1394 this->supports_direction = value.
as_bool();
1398 this->supported_speed_count = value.
as_int32();
1402 this->disabled_by_default = value.
as_bool();
1432 this->supported_preset_modes.push_back(value.
as_string());
1454 buffer.
encode_bool(5, this->supports_oscillation);
1461 for (
auto &it : this->supported_preset_modes) {
1465 #ifdef HAS_PROTO_MESSAGE_DUMP 1468 out.append(
"ListEntitiesFanResponse {\n");
1469 out.append(
" object_id: ");
1470 out.append(
"'").append(this->object_id).append(
"'");
1473 out.append(
" key: ");
1474 sprintf(buffer,
"%" PRIu32, this->key);
1478 out.append(
" name: ");
1479 out.append(
"'").append(this->
name).append(
"'");
1482 out.append(
" unique_id: ");
1483 out.append(
"'").append(this->unique_id).append(
"'");
1486 out.append(
" supports_oscillation: ");
1487 out.append(YESNO(this->supports_oscillation));
1490 out.append(
" supports_speed: ");
1491 out.append(YESNO(this->supports_speed));
1494 out.append(
" supports_direction: ");
1495 out.append(YESNO(this->supports_direction));
1498 out.append(
" supported_speed_count: ");
1499 sprintf(buffer,
"%" PRId32, this->supported_speed_count);
1503 out.append(
" disabled_by_default: ");
1504 out.append(YESNO(this->disabled_by_default));
1507 out.append(
" icon: ");
1508 out.append(
"'").append(this->icon).append(
"'");
1511 out.append(
" entity_category: ");
1512 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1515 for (
const auto &it : this->supported_preset_modes) {
1516 out.append(
" supported_preset_modes: ");
1517 out.append(
"'").append(it).append(
"'");
1542 this->speed_level = value.
as_int32();
1578 #ifdef HAS_PROTO_MESSAGE_DUMP 1581 out.append(
"FanStateResponse {\n");
1582 out.append(
" key: ");
1583 sprintf(buffer,
"%" PRIu32, this->key);
1587 out.append(
" state: ");
1588 out.append(YESNO(this->
state));
1591 out.append(
" oscillating: ");
1595 out.append(
" speed: ");
1596 out.append(proto_enum_to_string<enums::FanSpeed>(this->
speed));
1599 out.append(
" direction: ");
1600 out.append(proto_enum_to_string<enums::FanDirection>(this->
direction));
1603 out.append(
" speed_level: ");
1604 sprintf(buffer,
"%" PRId32, this->speed_level);
1608 out.append(
" preset_mode: ");
1609 out.append(
"'").append(this->
preset_mode).append(
"'");
1617 this->has_state = value.
as_bool();
1625 this->has_speed = value.
as_bool();
1633 this->has_oscillating = value.
as_bool();
1641 this->has_direction = value.
as_bool();
1649 this->has_speed_level = value.
as_bool();
1653 this->speed_level = value.
as_int32();
1657 this->has_preset_mode = value.
as_bool();
1699 #ifdef HAS_PROTO_MESSAGE_DUMP 1702 out.append(
"FanCommandRequest {\n");
1703 out.append(
" key: ");
1704 sprintf(buffer,
"%" PRIu32, this->key);
1708 out.append(
" has_state: ");
1709 out.append(YESNO(this->has_state));
1712 out.append(
" state: ");
1713 out.append(YESNO(this->
state));
1716 out.append(
" has_speed: ");
1717 out.append(YESNO(this->has_speed));
1720 out.append(
" speed: ");
1721 out.append(proto_enum_to_string<enums::FanSpeed>(this->
speed));
1724 out.append(
" has_oscillating: ");
1725 out.append(YESNO(this->has_oscillating));
1728 out.append(
" oscillating: ");
1732 out.append(
" has_direction: ");
1733 out.append(YESNO(this->has_direction));
1736 out.append(
" direction: ");
1737 out.append(proto_enum_to_string<enums::FanDirection>(this->
direction));
1740 out.append(
" has_speed_level: ");
1741 out.append(YESNO(this->has_speed_level));
1744 out.append(
" speed_level: ");
1745 sprintf(buffer,
"%" PRId32, this->speed_level);
1749 out.append(
" has_preset_mode: ");
1750 out.append(YESNO(this->has_preset_mode));
1753 out.append(
" preset_mode: ");
1754 out.append(
"'").append(this->
preset_mode).append(
"'");
1766 this->legacy_supports_brightness = value.
as_bool();
1770 this->legacy_supports_rgb = value.
as_bool();
1774 this->legacy_supports_white_value = value.
as_bool();
1778 this->legacy_supports_color_temperature = value.
as_bool();
1782 this->disabled_by_default = value.
as_bool();
1808 this->effects.push_back(value.
as_string());
1826 this->min_mireds = value.
as_float();
1830 this->max_mireds = value.
as_float();
1842 for (
auto &it : this->supported_color_modes) {
1845 buffer.
encode_bool(5, this->legacy_supports_brightness);
1847 buffer.
encode_bool(7, this->legacy_supports_white_value);
1848 buffer.
encode_bool(8, this->legacy_supports_color_temperature);
1851 for (
auto &it : this->effects) {
1854 buffer.
encode_bool(13, this->disabled_by_default);
1858 #ifdef HAS_PROTO_MESSAGE_DUMP 1861 out.append(
"ListEntitiesLightResponse {\n");
1862 out.append(
" object_id: ");
1863 out.append(
"'").append(this->object_id).append(
"'");
1866 out.append(
" key: ");
1867 sprintf(buffer,
"%" PRIu32, this->key);
1871 out.append(
" name: ");
1872 out.append(
"'").append(this->
name).append(
"'");
1875 out.append(
" unique_id: ");
1876 out.append(
"'").append(this->unique_id).append(
"'");
1879 for (
const auto &it : this->supported_color_modes) {
1880 out.append(
" supported_color_modes: ");
1881 out.append(proto_enum_to_string<enums::ColorMode>(it));
1885 out.append(
" legacy_supports_brightness: ");
1886 out.append(YESNO(this->legacy_supports_brightness));
1889 out.append(
" legacy_supports_rgb: ");
1890 out.append(YESNO(this->legacy_supports_rgb));
1893 out.append(
" legacy_supports_white_value: ");
1894 out.append(YESNO(this->legacy_supports_white_value));
1897 out.append(
" legacy_supports_color_temperature: ");
1898 out.append(YESNO(this->legacy_supports_color_temperature));
1901 out.append(
" min_mireds: ");
1902 sprintf(buffer,
"%g", this->min_mireds);
1906 out.append(
" max_mireds: ");
1907 sprintf(buffer,
"%g", this->max_mireds);
1911 for (
const auto &it : this->effects) {
1912 out.append(
" effects: ");
1913 out.append(
"'").append(it).append(
"'");
1917 out.append(
" disabled_by_default: ");
1918 out.append(YESNO(this->disabled_by_default));
1921 out.append(
" icon: ");
1922 out.append(
"'").append(this->icon).append(
"'");
1925 out.append(
" entity_category: ");
1926 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1962 this->brightness = value.
as_float();
1966 this->color_brightness = value.
as_float();
1986 this->color_temperature = value.
as_float();
1990 this->cold_white = value.
as_float();
1994 this->warm_white = value.
as_float();
2016 #ifdef HAS_PROTO_MESSAGE_DUMP 2019 out.append(
"LightStateResponse {\n");
2020 out.append(
" key: ");
2021 sprintf(buffer,
"%" PRIu32, this->key);
2025 out.append(
" state: ");
2026 out.append(YESNO(this->
state));
2029 out.append(
" brightness: ");
2030 sprintf(buffer,
"%g", this->brightness);
2034 out.append(
" color_mode: ");
2035 out.append(proto_enum_to_string<enums::ColorMode>(this->color_mode));
2038 out.append(
" color_brightness: ");
2039 sprintf(buffer,
"%g", this->color_brightness);
2043 out.append(
" red: ");
2044 sprintf(buffer,
"%g", this->red);
2048 out.append(
" green: ");
2049 sprintf(buffer,
"%g", this->green);
2053 out.append(
" blue: ");
2054 sprintf(buffer,
"%g", this->blue);
2058 out.append(
" white: ");
2059 sprintf(buffer,
"%g", this->white);
2063 out.append(
" color_temperature: ");
2064 sprintf(buffer,
"%g", this->color_temperature);
2068 out.append(
" cold_white: ");
2069 sprintf(buffer,
"%g", this->cold_white);
2073 out.append(
" warm_white: ");
2074 sprintf(buffer,
"%g", this->warm_white);
2078 out.append(
" effect: ");
2079 out.append(
"'").append(this->effect).append(
"'");
2087 this->has_state = value.
as_bool();
2095 this->has_brightness = value.
as_bool();
2099 this->has_color_mode = value.
as_bool();
2107 this->has_color_brightness = value.
as_bool();
2111 this->has_rgb = value.
as_bool();
2115 this->has_white = value.
as_bool();
2119 this->has_color_temperature = value.
as_bool();
2123 this->has_cold_white = value.
as_bool();
2127 this->has_warm_white = value.
as_bool();
2131 this->has_transition_length = value.
as_bool();
2135 this->transition_length = value.
as_uint32();
2139 this->has_flash_length = value.
as_bool();
2147 this->has_effect = value.
as_bool();
2171 this->brightness = value.
as_float();
2175 this->color_brightness = value.
as_float();
2195 this->color_temperature = value.
as_float();
2199 this->cold_white = value.
as_float();
2203 this->warm_white = value.
as_float();
2218 buffer.
encode_bool(20, this->has_color_brightness);
2226 buffer.
encode_bool(12, this->has_color_temperature);
2232 buffer.
encode_bool(14, this->has_transition_length);
2239 #ifdef HAS_PROTO_MESSAGE_DUMP 2242 out.append(
"LightCommandRequest {\n");
2243 out.append(
" key: ");
2244 sprintf(buffer,
"%" PRIu32, this->key);
2248 out.append(
" has_state: ");
2249 out.append(YESNO(this->has_state));
2252 out.append(
" state: ");
2253 out.append(YESNO(this->
state));
2256 out.append(
" has_brightness: ");
2257 out.append(YESNO(this->has_brightness));
2260 out.append(
" brightness: ");
2261 sprintf(buffer,
"%g", this->brightness);
2265 out.append(
" has_color_mode: ");
2266 out.append(YESNO(this->has_color_mode));
2269 out.append(
" color_mode: ");
2270 out.append(proto_enum_to_string<enums::ColorMode>(this->color_mode));
2273 out.append(
" has_color_brightness: ");
2274 out.append(YESNO(this->has_color_brightness));
2277 out.append(
" color_brightness: ");
2278 sprintf(buffer,
"%g", this->color_brightness);
2282 out.append(
" has_rgb: ");
2283 out.append(YESNO(this->has_rgb));
2286 out.append(
" red: ");
2287 sprintf(buffer,
"%g", this->red);
2291 out.append(
" green: ");
2292 sprintf(buffer,
"%g", this->green);
2296 out.append(
" blue: ");
2297 sprintf(buffer,
"%g", this->blue);
2301 out.append(
" has_white: ");
2302 out.append(YESNO(this->has_white));
2305 out.append(
" white: ");
2306 sprintf(buffer,
"%g", this->white);
2310 out.append(
" has_color_temperature: ");
2311 out.append(YESNO(this->has_color_temperature));
2314 out.append(
" color_temperature: ");
2315 sprintf(buffer,
"%g", this->color_temperature);
2319 out.append(
" has_cold_white: ");
2320 out.append(YESNO(this->has_cold_white));
2323 out.append(
" cold_white: ");
2324 sprintf(buffer,
"%g", this->cold_white);
2328 out.append(
" has_warm_white: ");
2329 out.append(YESNO(this->has_warm_white));
2332 out.append(
" warm_white: ");
2333 sprintf(buffer,
"%g", this->warm_white);
2337 out.append(
" has_transition_length: ");
2338 out.append(YESNO(this->has_transition_length));
2341 out.append(
" transition_length: ");
2342 sprintf(buffer,
"%" PRIu32, this->transition_length);
2346 out.append(
" has_flash_length: ");
2347 out.append(YESNO(this->has_flash_length));
2350 out.append(
" flash_length: ");
2351 sprintf(buffer,
"%" PRIu32, this->flash_length);
2355 out.append(
" has_effect: ");
2356 out.append(YESNO(this->has_effect));
2359 out.append(
" effect: ");
2360 out.append(
"'").append(this->effect).append(
"'");
2368 this->accuracy_decimals = value.
as_int32();
2372 this->force_update = value.
as_bool();
2384 this->disabled_by_default = value.
as_bool();
2414 this->unit_of_measurement = value.
as_string();
2447 buffer.
encode_bool(12, this->disabled_by_default);
2450 #ifdef HAS_PROTO_MESSAGE_DUMP 2453 out.append(
"ListEntitiesSensorResponse {\n");
2454 out.append(
" object_id: ");
2455 out.append(
"'").append(this->object_id).append(
"'");
2458 out.append(
" key: ");
2459 sprintf(buffer,
"%" PRIu32, this->key);
2463 out.append(
" name: ");
2464 out.append(
"'").append(this->
name).append(
"'");
2467 out.append(
" unique_id: ");
2468 out.append(
"'").append(this->unique_id).append(
"'");
2471 out.append(
" icon: ");
2472 out.append(
"'").append(this->icon).append(
"'");
2475 out.append(
" unit_of_measurement: ");
2476 out.append(
"'").append(this->unit_of_measurement).append(
"'");
2479 out.append(
" accuracy_decimals: ");
2480 sprintf(buffer,
"%" PRId32, this->accuracy_decimals);
2484 out.append(
" force_update: ");
2485 out.append(YESNO(this->force_update));
2488 out.append(
" device_class: ");
2489 out.append(
"'").append(this->device_class).append(
"'");
2492 out.append(
" state_class: ");
2493 out.append(proto_enum_to_string<enums::SensorStateClass>(this->state_class));
2496 out.append(
" legacy_last_reset_type: ");
2497 out.append(proto_enum_to_string<enums::SensorLastResetType>(this->legacy_last_reset_type));
2500 out.append(
" disabled_by_default: ");
2501 out.append(YESNO(this->disabled_by_default));
2504 out.append(
" entity_category: ");
2505 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
2513 this->missing_state = value.
as_bool();
2539 #ifdef HAS_PROTO_MESSAGE_DUMP 2542 out.append(
"SensorStateResponse {\n");
2543 out.append(
" key: ");
2544 sprintf(buffer,
"%" PRIu32, this->key);
2548 out.append(
" state: ");
2549 sprintf(buffer,
"%g", this->
state);
2553 out.append(
" missing_state: ");
2554 out.append(YESNO(this->missing_state));
2562 this->assumed_state = value.
as_bool();
2566 this->disabled_by_default = value.
as_bool();
2624 #ifdef HAS_PROTO_MESSAGE_DUMP 2627 out.append(
"ListEntitiesSwitchResponse {\n");
2628 out.append(
" object_id: ");
2629 out.append(
"'").append(this->object_id).append(
"'");
2632 out.append(
" key: ");
2633 sprintf(buffer,
"%" PRIu32, this->key);
2637 out.append(
" name: ");
2638 out.append(
"'").append(this->
name).append(
"'");
2641 out.append(
" unique_id: ");
2642 out.append(
"'").append(this->unique_id).append(
"'");
2645 out.append(
" icon: ");
2646 out.append(
"'").append(this->icon).append(
"'");
2649 out.append(
" assumed_state: ");
2650 out.append(YESNO(this->assumed_state));
2653 out.append(
" disabled_by_default: ");
2654 out.append(YESNO(this->disabled_by_default));
2657 out.append(
" entity_category: ");
2658 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
2661 out.append(
" device_class: ");
2662 out.append(
"'").append(this->device_class).append(
"'");
2691 #ifdef HAS_PROTO_MESSAGE_DUMP 2694 out.append(
"SwitchStateResponse {\n");
2695 out.append(
" key: ");
2696 sprintf(buffer,
"%" PRIu32, this->key);
2700 out.append(
" state: ");
2701 out.append(YESNO(this->
state));
2730 #ifdef HAS_PROTO_MESSAGE_DUMP 2733 out.append(
"SwitchCommandRequest {\n");
2734 out.append(
" key: ");
2735 sprintf(buffer,
"%" PRIu32, this->key);
2739 out.append(
" state: ");
2740 out.append(YESNO(this->
state));
2748 this->disabled_by_default = value.
as_bool();
2805 #ifdef HAS_PROTO_MESSAGE_DUMP 2808 out.append(
"ListEntitiesTextSensorResponse {\n");
2809 out.append(
" object_id: ");
2810 out.append(
"'").append(this->object_id).append(
"'");
2813 out.append(
" key: ");
2814 sprintf(buffer,
"%" PRIu32, this->key);
2818 out.append(
" name: ");
2819 out.append(
"'").append(this->
name).append(
"'");
2822 out.append(
" unique_id: ");
2823 out.append(
"'").append(this->unique_id).append(
"'");
2826 out.append(
" icon: ");
2827 out.append(
"'").append(this->icon).append(
"'");
2830 out.append(
" disabled_by_default: ");
2831 out.append(YESNO(this->disabled_by_default));
2834 out.append(
" entity_category: ");
2835 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
2838 out.append(
" device_class: ");
2839 out.append(
"'").append(this->device_class).append(
"'");
2847 this->missing_state = value.
as_bool();
2879 #ifdef HAS_PROTO_MESSAGE_DUMP 2882 out.append(
"TextSensorStateResponse {\n");
2883 out.append(
" key: ");
2884 sprintf(buffer,
"%" PRIu32, this->key);
2888 out.append(
" state: ");
2889 out.append(
"'").append(this->
state).append(
"'");
2892 out.append(
" missing_state: ");
2893 out.append(YESNO(this->missing_state));
2905 this->dump_config = value.
as_bool();
2916 #ifdef HAS_PROTO_MESSAGE_DUMP 2919 out.append(
"SubscribeLogsRequest {\n");
2920 out.append(
" level: ");
2921 out.append(proto_enum_to_string<enums::LogLevel>(this->level));
2924 out.append(
" dump_config: ");
2925 out.append(YESNO(this->dump_config));
2937 this->send_failed = value.
as_bool();
2959 #ifdef HAS_PROTO_MESSAGE_DUMP 2962 out.append(
"SubscribeLogsResponse {\n");
2963 out.append(
" level: ");
2964 out.append(proto_enum_to_string<enums::LogLevel>(this->level));
2967 out.append(
" message: ");
2968 out.append(
"'").append(this->message).append(
"'");
2971 out.append(
" send_failed: ");
2972 out.append(YESNO(this->send_failed));
2978 #ifdef HAS_PROTO_MESSAGE_DUMP 2980 out.append(
"SubscribeHomeassistantServicesRequest {}");
3001 #ifdef HAS_PROTO_MESSAGE_DUMP 3004 out.append(
"HomeassistantServiceMap {\n");
3005 out.append(
" key: ");
3006 out.append(
"'").append(this->key).append(
"'");
3009 out.append(
" value: ");
3010 out.append(
"'").append(this->value).append(
"'");
3018 this->is_event = value.
as_bool();
3049 for (
auto &it : this->data) {
3052 for (
auto &it : this->data_template) {
3055 for (
auto &it : this->variables) {
3060 #ifdef HAS_PROTO_MESSAGE_DUMP 3063 out.append(
"HomeassistantServiceResponse {\n");
3064 out.append(
" service: ");
3065 out.append(
"'").append(this->service).append(
"'");
3068 for (
const auto &it : this->data) {
3069 out.append(
" data: ");
3074 for (
const auto &it : this->data_template) {
3075 out.append(
" data_template: ");
3080 for (
const auto &it : this->variables) {
3081 out.append(
" variables: ");
3086 out.append(
" is_event: ");
3087 out.append(YESNO(this->is_event));
3093 #ifdef HAS_PROTO_MESSAGE_DUMP 3095 out.append(
"SubscribeHomeAssistantStatesRequest {}");
3116 #ifdef HAS_PROTO_MESSAGE_DUMP 3119 out.append(
"SubscribeHomeAssistantStateResponse {\n");
3120 out.append(
" entity_id: ");
3121 out.append(
"'").append(this->entity_id).append(
"'");
3124 out.append(
" attribute: ");
3125 out.append(
"'").append(this->attribute).append(
"'");
3153 #ifdef HAS_PROTO_MESSAGE_DUMP 3156 out.append(
"HomeAssistantStateResponse {\n");
3157 out.append(
" entity_id: ");
3158 out.append(
"'").append(this->entity_id).append(
"'");
3161 out.append(
" state: ");
3162 out.append(
"'").append(this->
state).append(
"'");
3165 out.append(
" attribute: ");
3166 out.append(
"'").append(this->attribute).append(
"'");
3172 #ifdef HAS_PROTO_MESSAGE_DUMP 3186 #ifdef HAS_PROTO_MESSAGE_DUMP 3189 out.append(
"GetTimeResponse {\n");
3190 out.append(
" epoch_seconds: ");
3191 sprintf(buffer,
"%" PRIu32, this->epoch_seconds);
3221 #ifdef HAS_PROTO_MESSAGE_DUMP 3224 out.append(
"ListEntitiesServicesArgument {\n");
3225 out.append(
" name: ");
3226 out.append(
"'").append(this->
name).append(
"'");
3229 out.append(
" type: ");
3230 out.append(proto_enum_to_string<enums::ServiceArgType>(this->
type));
3262 for (
auto &it : this->args) {
3266 #ifdef HAS_PROTO_MESSAGE_DUMP 3269 out.append(
"ListEntitiesServicesResponse {\n");
3270 out.append(
" name: ");
3271 out.append(
"'").append(this->
name).append(
"'");
3274 out.append(
" key: ");
3275 sprintf(buffer,
"%" PRIu32, this->key);
3279 for (
const auto &it : this->args) {
3280 out.append(
" args: ");
3290 this->bool_ = value.
as_bool();
3294 this->legacy_int = value.
as_int32();
3302 this->bool_array.push_back(value.
as_bool());
3306 this->int_array.push_back(value.
as_sint32());
3320 this->string_array.push_back(value.
as_string());
3334 this->float_array.push_back(value.
as_float());
3347 for (
auto it : this->bool_array) {
3350 for (
auto &it : this->int_array) {
3353 for (
auto &it : this->float_array) {
3356 for (
auto &it : this->string_array) {
3360 #ifdef HAS_PROTO_MESSAGE_DUMP 3363 out.append(
"ExecuteServiceArgument {\n");
3364 out.append(
" bool_: ");
3365 out.append(YESNO(this->bool_));
3368 out.append(
" legacy_int: ");
3369 sprintf(buffer,
"%" PRId32, this->legacy_int);
3373 out.append(
" float_: ");
3374 sprintf(buffer,
"%g", this->float_);
3378 out.append(
" string_: ");
3379 out.append(
"'").append(this->string_).append(
"'");
3382 out.append(
" int_: ");
3383 sprintf(buffer,
"%" PRId32, this->int_);
3387 for (
const auto it : this->bool_array) {
3388 out.append(
" bool_array: ");
3389 out.append(YESNO(it));
3393 for (
const auto &it : this->int_array) {
3394 out.append(
" int_array: ");
3395 sprintf(buffer,
"%" PRId32, it);
3400 for (
const auto &it : this->float_array) {
3401 out.append(
" float_array: ");
3402 sprintf(buffer,
"%g", it);
3407 for (
const auto &it : this->string_array) {
3408 out.append(
" string_array: ");
3409 out.append(
"'").append(it).append(
"'");
3437 for (
auto &it : this->args) {
3441 #ifdef HAS_PROTO_MESSAGE_DUMP 3444 out.append(
"ExecuteServiceRequest {\n");
3445 out.append(
" key: ");
3446 sprintf(buffer,
"%" PRIu32, this->key);
3450 for (
const auto &it : this->args) {
3451 out.append(
" args: ");
3461 this->disabled_by_default = value.
as_bool();
3513 #ifdef HAS_PROTO_MESSAGE_DUMP 3516 out.append(
"ListEntitiesCameraResponse {\n");
3517 out.append(
" object_id: ");
3518 out.append(
"'").append(this->object_id).append(
"'");
3521 out.append(
" key: ");
3522 sprintf(buffer,
"%" PRIu32, this->key);
3526 out.append(
" name: ");
3527 out.append(
"'").append(this->
name).append(
"'");
3530 out.append(
" unique_id: ");
3531 out.append(
"'").append(this->unique_id).append(
"'");
3534 out.append(
" disabled_by_default: ");
3535 out.append(YESNO(this->disabled_by_default));
3538 out.append(
" icon: ");
3539 out.append(
"'").append(this->icon).append(
"'");
3542 out.append(
" entity_category: ");
3543 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
3583 #ifdef HAS_PROTO_MESSAGE_DUMP 3586 out.append(
"CameraImageResponse {\n");
3587 out.append(
" key: ");
3588 sprintf(buffer,
"%" PRIu32, this->key);
3592 out.append(
" data: ");
3593 out.append(
"'").append(this->data).append(
"'");
3596 out.append(
" done: ");
3597 out.append(YESNO(this->done));
3605 this->single = value.
as_bool();
3609 this->stream = value.
as_bool();
3620 #ifdef HAS_PROTO_MESSAGE_DUMP 3623 out.append(
"CameraImageRequest {\n");
3624 out.append(
" single: ");
3625 out.append(YESNO(this->single));
3628 out.append(
" stream: ");
3629 out.append(YESNO(this->stream));
3637 this->supports_current_temperature = value.
as_bool();
3641 this->supports_two_point_target_temperature = value.
as_bool();
3649 this->legacy_supports_away = value.
as_bool();
3653 this->supports_action = value.
as_bool();
3669 this->disabled_by_default = value.
as_bool();
3677 this->supports_current_humidity = value.
as_bool();
3681 this->supports_target_humidity = value.
as_bool();
3703 this->supported_custom_fan_modes.push_back(value.
as_string());
3707 this->supported_custom_presets.push_back(value.
as_string());
3725 this->visual_min_temperature = value.
as_float();
3729 this->visual_max_temperature = value.
as_float();
3733 this->visual_target_temperature_step = value.
as_float();
3737 this->visual_current_temperature_step = value.
as_float();
3741 this->visual_min_humidity = value.
as_float();
3745 this->visual_max_humidity = value.
as_float();
3757 buffer.
encode_bool(5, this->supports_current_temperature);
3758 buffer.
encode_bool(6, this->supports_two_point_target_temperature);
3759 for (
auto &it : this->supported_modes) {
3764 buffer.
encode_float(10, this->visual_target_temperature_step);
3765 buffer.
encode_bool(11, this->legacy_supports_away);
3767 for (
auto &it : this->supported_fan_modes) {
3770 for (
auto &it : this->supported_swing_modes) {
3773 for (
auto &it : this->supported_custom_fan_modes) {
3776 for (
auto &it : this->supported_presets) {
3779 for (
auto &it : this->supported_custom_presets) {
3782 buffer.
encode_bool(18, this->disabled_by_default);
3785 buffer.
encode_float(21, this->visual_current_temperature_step);
3786 buffer.
encode_bool(22, this->supports_current_humidity);
3787 buffer.
encode_bool(23, this->supports_target_humidity);
3791 #ifdef HAS_PROTO_MESSAGE_DUMP 3794 out.append(
"ListEntitiesClimateResponse {\n");
3795 out.append(
" object_id: ");
3796 out.append(
"'").append(this->object_id).append(
"'");
3799 out.append(
" key: ");
3800 sprintf(buffer,
"%" PRIu32, this->key);
3804 out.append(
" name: ");
3805 out.append(
"'").append(this->
name).append(
"'");
3808 out.append(
" unique_id: ");
3809 out.append(
"'").append(this->unique_id).append(
"'");
3812 out.append(
" supports_current_temperature: ");
3813 out.append(YESNO(this->supports_current_temperature));
3816 out.append(
" supports_two_point_target_temperature: ");
3817 out.append(YESNO(this->supports_two_point_target_temperature));
3820 for (
const auto &it : this->supported_modes) {
3821 out.append(
" supported_modes: ");
3822 out.append(proto_enum_to_string<enums::ClimateMode>(it));
3826 out.append(
" visual_min_temperature: ");
3827 sprintf(buffer,
"%g", this->visual_min_temperature);
3831 out.append(
" visual_max_temperature: ");
3832 sprintf(buffer,
"%g", this->visual_max_temperature);
3836 out.append(
" visual_target_temperature_step: ");
3837 sprintf(buffer,
"%g", this->visual_target_temperature_step);
3841 out.append(
" legacy_supports_away: ");
3842 out.append(YESNO(this->legacy_supports_away));
3845 out.append(
" supports_action: ");
3846 out.append(YESNO(this->supports_action));
3849 for (
const auto &it : this->supported_fan_modes) {
3850 out.append(
" supported_fan_modes: ");
3851 out.append(proto_enum_to_string<enums::ClimateFanMode>(it));
3855 for (
const auto &it : this->supported_swing_modes) {
3856 out.append(
" supported_swing_modes: ");
3857 out.append(proto_enum_to_string<enums::ClimateSwingMode>(it));
3861 for (
const auto &it : this->supported_custom_fan_modes) {
3862 out.append(
" supported_custom_fan_modes: ");
3863 out.append(
"'").append(it).append(
"'");
3867 for (
const auto &it : this->supported_presets) {
3868 out.append(
" supported_presets: ");
3869 out.append(proto_enum_to_string<enums::ClimatePreset>(it));
3873 for (
const auto &it : this->supported_custom_presets) {
3874 out.append(
" supported_custom_presets: ");
3875 out.append(
"'").append(it).append(
"'");
3879 out.append(
" disabled_by_default: ");
3880 out.append(YESNO(this->disabled_by_default));
3883 out.append(
" icon: ");
3884 out.append(
"'").append(this->icon).append(
"'");
3887 out.append(
" entity_category: ");
3888 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
3891 out.append(
" visual_current_temperature_step: ");
3892 sprintf(buffer,
"%g", this->visual_current_temperature_step);
3896 out.append(
" supports_current_humidity: ");
3897 out.append(YESNO(this->supports_current_humidity));
3900 out.append(
" supports_target_humidity: ");
3901 out.append(YESNO(this->supports_target_humidity));
3904 out.append(
" visual_min_humidity: ");
3905 sprintf(buffer,
"%g", this->visual_min_humidity);
3909 out.append(
" visual_max_humidity: ");
3910 sprintf(buffer,
"%g", this->visual_max_humidity);
3923 this->unused_legacy_away = value.
as_bool();
3967 this->current_temperature = value.
as_float();
3983 this->current_humidity = value.
as_float();
4011 #ifdef HAS_PROTO_MESSAGE_DUMP 4014 out.append(
"ClimateStateResponse {\n");
4015 out.append(
" key: ");
4016 sprintf(buffer,
"%" PRIu32, this->key);
4020 out.append(
" mode: ");
4021 out.append(proto_enum_to_string<enums::ClimateMode>(this->
mode));
4024 out.append(
" current_temperature: ");
4025 sprintf(buffer,
"%g", this->current_temperature);
4029 out.append(
" target_temperature: ");
4034 out.append(
" target_temperature_low: ");
4039 out.append(
" target_temperature_high: ");
4044 out.append(
" unused_legacy_away: ");
4045 out.append(YESNO(this->unused_legacy_away));
4048 out.append(
" action: ");
4049 out.append(proto_enum_to_string<enums::ClimateAction>(this->action));
4052 out.append(
" fan_mode: ");
4053 out.append(proto_enum_to_string<enums::ClimateFanMode>(this->
fan_mode));
4056 out.append(
" swing_mode: ");
4057 out.append(proto_enum_to_string<enums::ClimateSwingMode>(this->
swing_mode));
4060 out.append(
" custom_fan_mode: ");
4064 out.append(
" preset: ");
4065 out.append(proto_enum_to_string<enums::ClimatePreset>(this->
preset));
4068 out.append(
" custom_preset: ");
4072 out.append(
" current_humidity: ");
4073 sprintf(buffer,
"%g", this->current_humidity);
4077 out.append(
" target_humidity: ");
4087 this->has_mode = value.
as_bool();
4095 this->has_target_temperature = value.
as_bool();
4099 this->has_target_temperature_low = value.
as_bool();
4103 this->has_target_temperature_high = value.
as_bool();
4107 this->unused_has_legacy_away = value.
as_bool();
4111 this->unused_legacy_away = value.
as_bool();
4115 this->has_fan_mode = value.
as_bool();
4123 this->has_swing_mode = value.
as_bool();
4131 this->has_custom_fan_mode = value.
as_bool();
4135 this->has_preset = value.
as_bool();
4143 this->has_custom_preset = value.
as_bool();
4147 this->has_target_humidity = value.
as_bool();
4198 buffer.
encode_bool(4, this->has_target_temperature);
4200 buffer.
encode_bool(6, this->has_target_temperature_low);
4202 buffer.
encode_bool(8, this->has_target_temperature_high);
4204 buffer.
encode_bool(10, this->unused_has_legacy_away);
4210 buffer.
encode_bool(16, this->has_custom_fan_mode);
4216 buffer.
encode_bool(22, this->has_target_humidity);
4219 #ifdef HAS_PROTO_MESSAGE_DUMP 4222 out.append(
"ClimateCommandRequest {\n");
4223 out.append(
" key: ");
4224 sprintf(buffer,
"%" PRIu32, this->key);
4228 out.append(
" has_mode: ");
4229 out.append(YESNO(this->has_mode));
4232 out.append(
" mode: ");
4233 out.append(proto_enum_to_string<enums::ClimateMode>(this->
mode));
4236 out.append(
" has_target_temperature: ");
4237 out.append(YESNO(this->has_target_temperature));
4240 out.append(
" target_temperature: ");
4245 out.append(
" has_target_temperature_low: ");
4246 out.append(YESNO(this->has_target_temperature_low));
4249 out.append(
" target_temperature_low: ");
4254 out.append(
" has_target_temperature_high: ");
4255 out.append(YESNO(this->has_target_temperature_high));
4258 out.append(
" target_temperature_high: ");
4263 out.append(
" unused_has_legacy_away: ");
4264 out.append(YESNO(this->unused_has_legacy_away));
4267 out.append(
" unused_legacy_away: ");
4268 out.append(YESNO(this->unused_legacy_away));
4271 out.append(
" has_fan_mode: ");
4272 out.append(YESNO(this->has_fan_mode));
4275 out.append(
" fan_mode: ");
4276 out.append(proto_enum_to_string<enums::ClimateFanMode>(this->
fan_mode));
4279 out.append(
" has_swing_mode: ");
4280 out.append(YESNO(this->has_swing_mode));
4283 out.append(
" swing_mode: ");
4284 out.append(proto_enum_to_string<enums::ClimateSwingMode>(this->
swing_mode));
4287 out.append(
" has_custom_fan_mode: ");
4288 out.append(YESNO(this->has_custom_fan_mode));
4291 out.append(
" custom_fan_mode: ");
4295 out.append(
" has_preset: ");
4296 out.append(YESNO(this->has_preset));
4299 out.append(
" preset: ");
4300 out.append(proto_enum_to_string<enums::ClimatePreset>(this->
preset));
4303 out.append(
" has_custom_preset: ");
4304 out.append(YESNO(this->has_custom_preset));
4307 out.append(
" custom_preset: ");
4311 out.append(
" has_target_humidity: ");
4312 out.append(YESNO(this->has_target_humidity));
4315 out.append(
" target_humidity: ");
4325 this->disabled_by_default = value.
as_bool();
4359 this->unit_of_measurement = value.
as_string();
4377 this->min_value = value.
as_float();
4381 this->max_value = value.
as_float();
4407 #ifdef HAS_PROTO_MESSAGE_DUMP 4410 out.append(
"ListEntitiesNumberResponse {\n");
4411 out.append(
" object_id: ");
4412 out.append(
"'").append(this->object_id).append(
"'");
4415 out.append(
" key: ");
4416 sprintf(buffer,
"%" PRIu32, this->key);
4420 out.append(
" name: ");
4421 out.append(
"'").append(this->
name).append(
"'");
4424 out.append(
" unique_id: ");
4425 out.append(
"'").append(this->unique_id).append(
"'");
4428 out.append(
" icon: ");
4429 out.append(
"'").append(this->icon).append(
"'");
4432 out.append(
" min_value: ");
4433 sprintf(buffer,
"%g", this->min_value);
4437 out.append(
" max_value: ");
4438 sprintf(buffer,
"%g", this->max_value);
4442 out.append(
" step: ");
4443 sprintf(buffer,
"%g", this->step);
4447 out.append(
" disabled_by_default: ");
4448 out.append(YESNO(this->disabled_by_default));
4451 out.append(
" entity_category: ");
4452 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
4455 out.append(
" unit_of_measurement: ");
4456 out.append(
"'").append(this->unit_of_measurement).append(
"'");
4459 out.append(
" mode: ");
4460 out.append(proto_enum_to_string<enums::NumberMode>(this->
mode));
4463 out.append(
" device_class: ");
4464 out.append(
"'").append(this->device_class).append(
"'");
4472 this->missing_state = value.
as_bool();
4498 #ifdef HAS_PROTO_MESSAGE_DUMP 4501 out.append(
"NumberStateResponse {\n");
4502 out.append(
" key: ");
4503 sprintf(buffer,
"%" PRIu32, this->key);
4507 out.append(
" state: ");
4508 sprintf(buffer,
"%g", this->
state);
4512 out.append(
" missing_state: ");
4513 out.append(YESNO(this->missing_state));
4536 #ifdef HAS_PROTO_MESSAGE_DUMP 4539 out.append(
"NumberCommandRequest {\n");
4540 out.append(
" key: ");
4541 sprintf(buffer,
"%" PRIu32, this->key);
4545 out.append(
" state: ");
4546 sprintf(buffer,
"%g", this->
state);
4555 this->disabled_by_default = value.
as_bool();
4608 for (
auto &it : this->
options) {
4614 #ifdef HAS_PROTO_MESSAGE_DUMP 4617 out.append(
"ListEntitiesSelectResponse {\n");
4618 out.append(
" object_id: ");
4619 out.append(
"'").append(this->object_id).append(
"'");
4622 out.append(
" key: ");
4623 sprintf(buffer,
"%" PRIu32, this->key);
4627 out.append(
" name: ");
4628 out.append(
"'").append(this->
name).append(
"'");
4631 out.append(
" unique_id: ");
4632 out.append(
"'").append(this->unique_id).append(
"'");
4635 out.append(
" icon: ");
4636 out.append(
"'").append(this->icon).append(
"'");
4639 for (
const auto &it : this->
options) {
4640 out.append(
" options: ");
4641 out.append(
"'").append(it).append(
"'");
4645 out.append(
" disabled_by_default: ");
4646 out.append(YESNO(this->disabled_by_default));
4649 out.append(
" entity_category: ");
4650 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
4658 this->missing_state = value.
as_bool();
4690 #ifdef HAS_PROTO_MESSAGE_DUMP 4693 out.append(
"SelectStateResponse {\n");
4694 out.append(
" key: ");
4695 sprintf(buffer,
"%" PRIu32, this->key);
4699 out.append(
" state: ");
4700 out.append(
"'").append(this->
state).append(
"'");
4703 out.append(
" missing_state: ");
4704 out.append(YESNO(this->missing_state));
4733 #ifdef HAS_PROTO_MESSAGE_DUMP 4736 out.append(
"SelectCommandRequest {\n");
4737 out.append(
" key: ");
4738 sprintf(buffer,
"%" PRIu32, this->key);
4742 out.append(
" state: ");
4743 out.append(
"'").append(this->
state).append(
"'");
4751 this->disabled_by_default = value.
as_bool();
4759 this->assumed_state = value.
as_bool();
4763 this->supports_open = value.
as_bool();
4767 this->requires_code = value.
as_bool();
4823 #ifdef HAS_PROTO_MESSAGE_DUMP 4826 out.append(
"ListEntitiesLockResponse {\n");
4827 out.append(
" object_id: ");
4828 out.append(
"'").append(this->object_id).append(
"'");
4831 out.append(
" key: ");
4832 sprintf(buffer,
"%" PRIu32, this->key);
4836 out.append(
" name: ");
4837 out.append(
"'").append(this->
name).append(
"'");
4840 out.append(
" unique_id: ");
4841 out.append(
"'").append(this->unique_id).append(
"'");
4844 out.append(
" icon: ");
4845 out.append(
"'").append(this->icon).append(
"'");
4848 out.append(
" disabled_by_default: ");
4849 out.append(YESNO(this->disabled_by_default));
4852 out.append(
" entity_category: ");
4853 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
4856 out.append(
" assumed_state: ");
4857 out.append(YESNO(this->assumed_state));
4860 out.append(
" supports_open: ");
4861 out.append(YESNO(this->supports_open));
4864 out.append(
" requires_code: ");
4865 out.append(YESNO(this->requires_code));
4868 out.append(
" code_format: ");
4869 out.append(
"'").append(this->code_format).append(
"'");
4898 #ifdef HAS_PROTO_MESSAGE_DUMP 4901 out.append(
"LockStateResponse {\n");
4902 out.append(
" key: ");
4903 sprintf(buffer,
"%" PRIu32, this->key);
4907 out.append(
" state: ");
4908 out.append(proto_enum_to_string<enums::LockState>(this->
state));
4920 this->has_code = value.
as_bool();
4953 #ifdef HAS_PROTO_MESSAGE_DUMP 4956 out.append(
"LockCommandRequest {\n");
4957 out.append(
" key: ");
4958 sprintf(buffer,
"%" PRIu32, this->key);
4962 out.append(
" command: ");
4963 out.append(proto_enum_to_string<enums::LockCommand>(this->command));
4966 out.append(
" has_code: ");
4967 out.append(YESNO(this->has_code));
4970 out.append(
" code: ");
4971 out.append(
"'").append(this->code).append(
"'");
4979 this->disabled_by_default = value.
as_bool();
5036 #ifdef HAS_PROTO_MESSAGE_DUMP 5039 out.append(
"ListEntitiesButtonResponse {\n");
5040 out.append(
" object_id: ");
5041 out.append(
"'").append(this->object_id).append(
"'");
5044 out.append(
" key: ");
5045 sprintf(buffer,
"%" PRIu32, this->key);
5049 out.append(
" name: ");
5050 out.append(
"'").append(this->
name).append(
"'");
5053 out.append(
" unique_id: ");
5054 out.append(
"'").append(this->unique_id).append(
"'");
5057 out.append(
" icon: ");
5058 out.append(
"'").append(this->icon).append(
"'");
5061 out.append(
" disabled_by_default: ");
5062 out.append(YESNO(this->disabled_by_default));
5065 out.append(
" entity_category: ");
5066 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
5069 out.append(
" device_class: ");
5070 out.append(
"'").append(this->device_class).append(
"'");
5086 #ifdef HAS_PROTO_MESSAGE_DUMP 5089 out.append(
"ButtonCommandRequest {\n");
5090 out.append(
" key: ");
5091 sprintf(buffer,
"%" PRIu32, this->key);
5100 this->disabled_by_default = value.
as_bool();
5108 this->supports_pause = value.
as_bool();
5157 #ifdef HAS_PROTO_MESSAGE_DUMP 5160 out.append(
"ListEntitiesMediaPlayerResponse {\n");
5161 out.append(
" object_id: ");
5162 out.append(
"'").append(this->object_id).append(
"'");
5165 out.append(
" key: ");
5166 sprintf(buffer,
"%" PRIu32, this->key);
5170 out.append(
" name: ");
5171 out.append(
"'").append(this->
name).append(
"'");
5174 out.append(
" unique_id: ");
5175 out.append(
"'").append(this->unique_id).append(
"'");
5178 out.append(
" icon: ");
5179 out.append(
"'").append(this->icon).append(
"'");
5182 out.append(
" disabled_by_default: ");
5183 out.append(YESNO(this->disabled_by_default));
5186 out.append(
" entity_category: ");
5187 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
5190 out.append(
" supports_pause: ");
5191 out.append(YESNO(this->supports_pause));
5203 this->muted = value.
as_bool();
5230 #ifdef HAS_PROTO_MESSAGE_DUMP 5233 out.append(
"MediaPlayerStateResponse {\n");
5234 out.append(
" key: ");
5235 sprintf(buffer,
"%" PRIu32, this->key);
5239 out.append(
" state: ");
5240 out.append(proto_enum_to_string<enums::MediaPlayerState>(this->
state));
5243 out.append(
" volume: ");
5244 sprintf(buffer,
"%g", this->volume);
5248 out.append(
" muted: ");
5249 out.append(YESNO(this->muted));
5257 this->has_command = value.
as_bool();
5265 this->has_volume = value.
as_bool();
5269 this->has_media_url = value.
as_bool();
5273 this->has_announcement = value.
as_bool();
5277 this->announcement = value.
as_bool();
5319 #ifdef HAS_PROTO_MESSAGE_DUMP 5322 out.append(
"MediaPlayerCommandRequest {\n");
5323 out.append(
" key: ");
5324 sprintf(buffer,
"%" PRIu32, this->key);
5328 out.append(
" has_command: ");
5329 out.append(YESNO(this->has_command));
5332 out.append(
" command: ");
5333 out.append(proto_enum_to_string<enums::MediaPlayerCommand>(this->command));
5336 out.append(
" has_volume: ");
5337 out.append(YESNO(this->has_volume));
5340 out.append(
" volume: ");
5341 sprintf(buffer,
"%g", this->volume);
5345 out.append(
" has_media_url: ");
5346 out.append(YESNO(this->has_media_url));
5349 out.append(
" media_url: ");
5350 out.append(
"'").append(this->media_url).append(
"'");
5353 out.append(
" has_announcement: ");
5354 out.append(YESNO(this->has_announcement));
5357 out.append(
" announcement: ");
5358 out.append(YESNO(this->announcement));
5376 #ifdef HAS_PROTO_MESSAGE_DUMP 5379 out.append(
"SubscribeBluetoothLEAdvertisementsRequest {\n");
5380 out.append(
" flags: ");
5381 sprintf(buffer,
"%" PRIu32, this->
flags);
5390 this->legacy_data.push_back(value.
as_uint32());
5413 for (
auto &it : this->legacy_data) {
5418 #ifdef HAS_PROTO_MESSAGE_DUMP 5421 out.append(
"BluetoothServiceData {\n");
5422 out.append(
" uuid: ");
5423 out.append(
"'").append(this->uuid).append(
"'");
5426 for (
const auto &it : this->legacy_data) {
5427 out.append(
" legacy_data: ");
5428 sprintf(buffer,
"%" PRIu32, it);
5433 out.append(
" data: ");
5434 out.append(
"'").append(this->data).append(
"'");
5464 this->service_uuids.push_back(value.
as_string());
5483 for (
auto &it : this->service_uuids) {
5486 for (
auto &it : this->service_data) {
5489 for (
auto &it : this->manufacturer_data) {
5494 #ifdef HAS_PROTO_MESSAGE_DUMP 5497 out.append(
"BluetoothLEAdvertisementResponse {\n");
5498 out.append(
" address: ");
5499 sprintf(buffer,
"%llu", this->address);
5503 out.append(
" name: ");
5504 out.append(
"'").append(this->
name).append(
"'");
5507 out.append(
" rssi: ");
5508 sprintf(buffer,
"%" PRId32, this->rssi);
5512 for (
const auto &it : this->service_uuids) {
5513 out.append(
" service_uuids: ");
5514 out.append(
"'").append(it).append(
"'");
5518 for (
const auto &it : this->service_data) {
5519 out.append(
" service_data: ");
5524 for (
const auto &it : this->manufacturer_data) {
5525 out.append(
" manufacturer_data: ");
5530 out.append(
" address_type: ");
5531 sprintf(buffer,
"%" PRIu32, this->address_type);
5571 #ifdef HAS_PROTO_MESSAGE_DUMP 5574 out.append(
"BluetoothLERawAdvertisement {\n");
5575 out.append(
" address: ");
5576 sprintf(buffer,
"%llu", this->address);
5580 out.append(
" rssi: ");
5581 sprintf(buffer,
"%" PRId32, this->rssi);
5585 out.append(
" address_type: ");
5586 sprintf(buffer,
"%" PRIu32, this->address_type);
5590 out.append(
" data: ");
5591 out.append(
"'").append(this->data).append(
"'");
5607 for (
auto &it : this->advertisements) {
5611 #ifdef HAS_PROTO_MESSAGE_DUMP 5614 out.append(
"BluetoothLERawAdvertisementsResponse {\n");
5615 for (
const auto &it : this->advertisements) {
5616 out.append(
" advertisements: ");
5634 this->has_address_type = value.
as_bool();
5651 #ifdef HAS_PROTO_MESSAGE_DUMP 5654 out.append(
"BluetoothDeviceRequest {\n");
5655 out.append(
" address: ");
5656 sprintf(buffer,
"%llu", this->address);
5660 out.append(
" request_type: ");
5661 out.append(proto_enum_to_string<enums::BluetoothDeviceRequestType>(this->request_type));
5664 out.append(
" has_address_type: ");
5665 out.append(YESNO(this->has_address_type));
5668 out.append(
" address_type: ");
5669 sprintf(buffer,
"%" PRIu32, this->address_type);
5682 this->connected = value.
as_bool();
5703 #ifdef HAS_PROTO_MESSAGE_DUMP 5706 out.append(
"BluetoothDeviceConnectionResponse {\n");
5707 out.append(
" address: ");
5708 sprintf(buffer,
"%llu", this->address);
5712 out.append(
" connected: ");
5713 out.append(YESNO(this->connected));
5716 out.append(
" mtu: ");
5717 sprintf(buffer,
"%" PRIu32, this->mtu);
5721 out.append(
" error: ");
5722 sprintf(buffer,
"%" PRId32, this->error);
5739 #ifdef HAS_PROTO_MESSAGE_DUMP 5742 out.append(
"BluetoothGATTGetServicesRequest {\n");
5743 out.append(
" address: ");
5744 sprintf(buffer,
"%llu", this->address);
5753 this->uuid.push_back(value.
as_uint64());
5765 for (
auto &it : this->uuid) {
5770 #ifdef HAS_PROTO_MESSAGE_DUMP 5773 out.append(
"BluetoothGATTDescriptor {\n");
5774 for (
const auto &it : this->uuid) {
5775 out.append(
" uuid: ");
5776 sprintf(buffer,
"%llu", it);
5781 out.append(
" handle: ");
5782 sprintf(buffer,
"%" PRIu32, this->handle);
5791 this->uuid.push_back(value.
as_uint64());
5817 for (
auto &it : this->uuid) {
5822 for (
auto &it : this->descriptors) {
5826 #ifdef HAS_PROTO_MESSAGE_DUMP 5829 out.append(
"BluetoothGATTCharacteristic {\n");
5830 for (
const auto &it : this->uuid) {
5831 out.append(
" uuid: ");
5832 sprintf(buffer,
"%llu", it);
5837 out.append(
" handle: ");
5838 sprintf(buffer,
"%" PRIu32, this->handle);
5842 out.append(
" properties: ");
5843 sprintf(buffer,
"%" PRIu32, this->properties);
5847 for (
const auto &it : this->descriptors) {
5848 out.append(
" descriptors: ");
5858 this->uuid.push_back(value.
as_uint64());
5880 for (
auto &it : this->uuid) {
5884 for (
auto &it : this->characteristics) {
5888 #ifdef HAS_PROTO_MESSAGE_DUMP 5891 out.append(
"BluetoothGATTService {\n");
5892 for (
const auto &it : this->uuid) {
5893 out.append(
" uuid: ");
5894 sprintf(buffer,
"%llu", it);
5899 out.append(
" handle: ");
5900 sprintf(buffer,
"%" PRIu32, this->handle);
5904 for (
const auto &it : this->characteristics) {
5905 out.append(
" characteristics: ");
5934 for (
auto &it : this->services) {
5938 #ifdef HAS_PROTO_MESSAGE_DUMP 5941 out.append(
"BluetoothGATTGetServicesResponse {\n");
5942 out.append(
" address: ");
5943 sprintf(buffer,
"%llu", this->address);
5947 for (
const auto &it : this->services) {
5948 out.append(
" services: ");
5968 #ifdef HAS_PROTO_MESSAGE_DUMP 5971 out.append(
"BluetoothGATTGetServicesDoneResponse {\n");
5972 out.append(
" address: ");
5973 sprintf(buffer,
"%llu", this->address);
5997 #ifdef HAS_PROTO_MESSAGE_DUMP 6000 out.append(
"BluetoothGATTReadRequest {\n");
6001 out.append(
" address: ");
6002 sprintf(buffer,
"%llu", this->address);
6006 out.append(
" handle: ");
6007 sprintf(buffer,
"%" PRIu32, this->handle);
6042 #ifdef HAS_PROTO_MESSAGE_DUMP 6045 out.append(
"BluetoothGATTReadResponse {\n");
6046 out.append(
" address: ");
6047 sprintf(buffer,
"%llu", this->address);
6051 out.append(
" handle: ");
6052 sprintf(buffer,
"%" PRIu32, this->handle);
6056 out.append(
" data: ");
6057 out.append(
"'").append(this->data).append(
"'");
6073 this->response = value.
as_bool();
6096 #ifdef HAS_PROTO_MESSAGE_DUMP 6099 out.append(
"BluetoothGATTWriteRequest {\n");
6100 out.append(
" address: ");
6101 sprintf(buffer,
"%llu", this->address);
6105 out.append(
" handle: ");
6106 sprintf(buffer,
"%" PRIu32, this->handle);
6110 out.append(
" response: ");
6111 out.append(YESNO(this->response));
6114 out.append(
" data: ");
6115 out.append(
"'").append(this->data).append(
"'");
6138 #ifdef HAS_PROTO_MESSAGE_DUMP 6141 out.append(
"BluetoothGATTReadDescriptorRequest {\n");
6142 out.append(
" address: ");
6143 sprintf(buffer,
"%llu", this->address);
6147 out.append(
" handle: ");
6148 sprintf(buffer,
"%" PRIu32, this->handle);
6183 #ifdef HAS_PROTO_MESSAGE_DUMP 6186 out.append(
"BluetoothGATTWriteDescriptorRequest {\n");
6187 out.append(
" address: ");
6188 sprintf(buffer,
"%llu", this->address);
6192 out.append(
" handle: ");
6193 sprintf(buffer,
"%" PRIu32, this->handle);
6197 out.append(
" data: ");
6198 out.append(
"'").append(this->data).append(
"'");
6214 this->enable = value.
as_bool();
6226 #ifdef HAS_PROTO_MESSAGE_DUMP 6229 out.append(
"BluetoothGATTNotifyRequest {\n");
6230 out.append(
" address: ");
6231 sprintf(buffer,
"%llu", this->address);
6235 out.append(
" handle: ");
6236 sprintf(buffer,
"%" PRIu32, this->handle);
6240 out.append(
" enable: ");
6241 out.append(YESNO(this->enable));
6275 #ifdef HAS_PROTO_MESSAGE_DUMP 6278 out.append(
"BluetoothGATTNotifyDataResponse {\n");
6279 out.append(
" address: ");
6280 sprintf(buffer,
"%llu", this->address);
6284 out.append(
" handle: ");
6285 sprintf(buffer,
"%" PRIu32, this->handle);
6289 out.append(
" data: ");
6290 out.append(
"'").append(this->data).append(
"'");
6296 #ifdef HAS_PROTO_MESSAGE_DUMP 6298 out.append(
"SubscribeBluetoothConnectionsFreeRequest {}");
6319 #ifdef HAS_PROTO_MESSAGE_DUMP 6322 out.append(
"BluetoothConnectionsFreeResponse {\n");
6323 out.append(
" free: ");
6324 sprintf(buffer,
"%" PRIu32, this->free);
6328 out.append(
" limit: ");
6329 sprintf(buffer,
"%" PRIu32, this->limit);
6358 #ifdef HAS_PROTO_MESSAGE_DUMP 6361 out.append(
"BluetoothGATTErrorResponse {\n");
6362 out.append(
" address: ");
6363 sprintf(buffer,
"%llu", this->address);
6367 out.append(
" handle: ");
6368 sprintf(buffer,
"%" PRIu32, this->handle);
6372 out.append(
" error: ");
6373 sprintf(buffer,
"%" PRId32, this->error);
6397 #ifdef HAS_PROTO_MESSAGE_DUMP 6400 out.append(
"BluetoothGATTWriteResponse {\n");
6401 out.append(
" address: ");
6402 sprintf(buffer,
"%llu", this->address);
6406 out.append(
" handle: ");
6407 sprintf(buffer,
"%" PRIu32, this->handle);
6431 #ifdef HAS_PROTO_MESSAGE_DUMP 6434 out.append(
"BluetoothGATTNotifyResponse {\n");
6435 out.append(
" address: ");
6436 sprintf(buffer,
"%llu", this->address);
6440 out.append(
" handle: ");
6441 sprintf(buffer,
"%" PRIu32, this->handle);
6454 this->paired = value.
as_bool();
6470 #ifdef HAS_PROTO_MESSAGE_DUMP 6473 out.append(
"BluetoothDevicePairingResponse {\n");
6474 out.append(
" address: ");
6475 sprintf(buffer,
"%llu", this->address);
6479 out.append(
" paired: ");
6480 out.append(YESNO(this->paired));
6483 out.append(
" error: ");
6484 sprintf(buffer,
"%" PRId32, this->error);
6497 this->success = value.
as_bool();
6513 #ifdef HAS_PROTO_MESSAGE_DUMP 6516 out.append(
"BluetoothDeviceUnpairingResponse {\n");
6517 out.append(
" address: ");
6518 sprintf(buffer,
"%llu", this->address);
6522 out.append(
" success: ");
6523 out.append(YESNO(this->success));
6526 out.append(
" error: ");
6527 sprintf(buffer,
"%" PRId32, this->error);
6534 #ifdef HAS_PROTO_MESSAGE_DUMP 6536 out.append(
"UnsubscribeBluetoothLEAdvertisementsRequest {}");
6546 this->success = value.
as_bool();
6562 #ifdef HAS_PROTO_MESSAGE_DUMP 6565 out.append(
"BluetoothDeviceClearCacheResponse {\n");
6566 out.append(
" address: ");
6567 sprintf(buffer,
"%llu", this->address);
6571 out.append(
" success: ");
6572 out.append(YESNO(this->success));
6575 out.append(
" error: ");
6576 sprintf(buffer,
"%" PRId32, this->error);
6585 this->subscribe = value.
as_bool();
6600 #ifdef HAS_PROTO_MESSAGE_DUMP 6603 out.append(
"SubscribeVoiceAssistantRequest {\n");
6604 out.append(
" subscribe: ");
6605 out.append(YESNO(this->subscribe));
6608 out.append(
" flags: ");
6609 sprintf(buffer,
"%" PRIu32, this->
flags);
6618 this->noise_suppression_level = value.
as_uint32();
6632 this->volume_multiplier = value.
as_float();
6644 #ifdef HAS_PROTO_MESSAGE_DUMP 6647 out.append(
"VoiceAssistantAudioSettings {\n");
6648 out.append(
" noise_suppression_level: ");
6649 sprintf(buffer,
"%" PRIu32, this->noise_suppression_level);
6653 out.append(
" auto_gain: ");
6654 sprintf(buffer,
"%" PRIu32, this->auto_gain);
6658 out.append(
" volume_multiplier: ");
6659 sprintf(buffer,
"%g", this->volume_multiplier);
6668 this->start = value.
as_bool();
6682 this->conversation_id = value.
as_string();
6690 this->wake_word_phrase = value.
as_string();
6704 #ifdef HAS_PROTO_MESSAGE_DUMP 6707 out.append(
"VoiceAssistantRequest {\n");
6708 out.append(
" start: ");
6709 out.append(YESNO(this->start));
6712 out.append(
" conversation_id: ");
6713 out.append(
"'").append(this->conversation_id).append(
"'");
6716 out.append(
" flags: ");
6717 sprintf(buffer,
"%" PRIu32, this->
flags);
6721 out.append(
" audio_settings: ");
6722 this->audio_settings.dump_to(out);
6725 out.append(
" wake_word_phrase: ");
6726 out.append(
"'").append(this->wake_word_phrase).append(
"'");
6738 this->error = value.
as_bool();
6749 #ifdef HAS_PROTO_MESSAGE_DUMP 6752 out.append(
"VoiceAssistantResponse {\n");
6753 out.append(
" port: ");
6754 sprintf(buffer,
"%" PRIu32, this->port);
6758 out.append(
" error: ");
6759 out.append(YESNO(this->error));
6782 #ifdef HAS_PROTO_MESSAGE_DUMP 6785 out.append(
"VoiceAssistantEventData {\n");
6786 out.append(
" name: ");
6787 out.append(
"'").append(this->
name).append(
"'");
6790 out.append(
" value: ");
6791 out.append(
"'").append(this->value).append(
"'");
6818 for (
auto &it : this->data) {
6822 #ifdef HAS_PROTO_MESSAGE_DUMP 6825 out.append(
"VoiceAssistantEventResponse {\n");
6826 out.append(
" event_type: ");
6827 out.append(proto_enum_to_string<enums::VoiceAssistantEvent>(this->event_type));
6830 for (
const auto &it : this->data) {
6831 out.append(
" data: ");
6862 #ifdef HAS_PROTO_MESSAGE_DUMP 6865 out.append(
"VoiceAssistantAudio {\n");
6866 out.append(
" data: ");
6867 out.append(
"'").append(this->data).append(
"'");
6870 out.append(
" end: ");
6871 out.append(YESNO(this->
end));
6883 this->total_seconds = value.
as_uint32();
6891 this->is_active = value.
as_bool();
6920 #ifdef HAS_PROTO_MESSAGE_DUMP 6923 out.append(
"VoiceAssistantTimerEventResponse {\n");
6924 out.append(
" event_type: ");
6925 out.append(proto_enum_to_string<enums::VoiceAssistantTimerEvent>(this->event_type));
6928 out.append(
" timer_id: ");
6929 out.append(
"'").append(this->timer_id).append(
"'");
6932 out.append(
" name: ");
6933 out.append(
"'").append(this->
name).append(
"'");
6936 out.append(
" total_seconds: ");
6937 sprintf(buffer,
"%" PRIu32, this->total_seconds);
6941 out.append(
" seconds_left: ");
6942 sprintf(buffer,
"%" PRIu32, this->seconds_left);
6946 out.append(
" is_active: ");
6947 out.append(YESNO(this->is_active));
6955 this->disabled_by_default = value.
as_bool();
6963 this->supported_features = value.
as_uint32();
6967 this->requires_code = value.
as_bool();
6971 this->requires_code_to_arm = value.
as_bool();
7020 buffer.
encode_bool(10, this->requires_code_to_arm);
7022 #ifdef HAS_PROTO_MESSAGE_DUMP 7025 out.append(
"ListEntitiesAlarmControlPanelResponse {\n");
7026 out.append(
" object_id: ");
7027 out.append(
"'").append(this->object_id).append(
"'");
7030 out.append(
" key: ");
7031 sprintf(buffer,
"%" PRIu32, this->key);
7035 out.append(
" name: ");
7036 out.append(
"'").append(this->
name).append(
"'");
7039 out.append(
" unique_id: ");
7040 out.append(
"'").append(this->unique_id).append(
"'");
7043 out.append(
" icon: ");
7044 out.append(
"'").append(this->icon).append(
"'");
7047 out.append(
" disabled_by_default: ");
7048 out.append(YESNO(this->disabled_by_default));
7051 out.append(
" entity_category: ");
7052 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7055 out.append(
" supported_features: ");
7056 sprintf(buffer,
"%" PRIu32, this->supported_features);
7060 out.append(
" requires_code: ");
7061 out.append(YESNO(this->requires_code));
7064 out.append(
" requires_code_to_arm: ");
7065 out.append(YESNO(this->requires_code_to_arm));
7094 #ifdef HAS_PROTO_MESSAGE_DUMP 7097 out.append(
"AlarmControlPanelStateResponse {\n");
7098 out.append(
" key: ");
7099 sprintf(buffer,
"%" PRIu32, this->key);
7103 out.append(
" state: ");
7104 out.append(proto_enum_to_string<enums::AlarmControlPanelState>(this->
state));
7144 #ifdef HAS_PROTO_MESSAGE_DUMP 7147 out.append(
"AlarmControlPanelCommandRequest {\n");
7148 out.append(
" key: ");
7149 sprintf(buffer,
"%" PRIu32, this->key);
7153 out.append(
" command: ");
7154 out.append(proto_enum_to_string<enums::AlarmControlPanelStateCommand>(this->command));
7157 out.append(
" code: ");
7158 out.append(
"'").append(this->code).append(
"'");
7166 this->disabled_by_default = value.
as_bool();
7238 #ifdef HAS_PROTO_MESSAGE_DUMP 7241 out.append(
"ListEntitiesTextResponse {\n");
7242 out.append(
" object_id: ");
7243 out.append(
"'").append(this->object_id).append(
"'");
7246 out.append(
" key: ");
7247 sprintf(buffer,
"%" PRIu32, this->key);
7251 out.append(
" name: ");
7252 out.append(
"'").append(this->
name).append(
"'");
7255 out.append(
" unique_id: ");
7256 out.append(
"'").append(this->unique_id).append(
"'");
7259 out.append(
" icon: ");
7260 out.append(
"'").append(this->icon).append(
"'");
7263 out.append(
" disabled_by_default: ");
7264 out.append(YESNO(this->disabled_by_default));
7267 out.append(
" entity_category: ");
7268 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7271 out.append(
" min_length: ");
7272 sprintf(buffer,
"%" PRIu32, this->min_length);
7276 out.append(
" max_length: ");
7277 sprintf(buffer,
"%" PRIu32, this->max_length);
7281 out.append(
" pattern: ");
7282 out.append(
"'").append(this->pattern).append(
"'");
7285 out.append(
" mode: ");
7286 out.append(proto_enum_to_string<enums::TextMode>(this->
mode));
7294 this->missing_state = value.
as_bool();
7326 #ifdef HAS_PROTO_MESSAGE_DUMP 7329 out.append(
"TextStateResponse {\n");
7330 out.append(
" key: ");
7331 sprintf(buffer,
"%" PRIu32, this->key);
7335 out.append(
" state: ");
7336 out.append(
"'").append(this->
state).append(
"'");
7339 out.append(
" missing_state: ");
7340 out.append(YESNO(this->missing_state));
7369 #ifdef HAS_PROTO_MESSAGE_DUMP 7372 out.append(
"TextCommandRequest {\n");
7373 out.append(
" key: ");
7374 sprintf(buffer,
"%" PRIu32, this->key);
7378 out.append(
" state: ");
7379 out.append(
"'").append(this->
state).append(
"'");
7387 this->disabled_by_default = value.
as_bool();
7439 #ifdef HAS_PROTO_MESSAGE_DUMP 7442 out.append(
"ListEntitiesDateResponse {\n");
7443 out.append(
" object_id: ");
7444 out.append(
"'").append(this->object_id).append(
"'");
7447 out.append(
" key: ");
7448 sprintf(buffer,
"%" PRIu32, this->key);
7452 out.append(
" name: ");
7453 out.append(
"'").append(this->
name).append(
"'");
7456 out.append(
" unique_id: ");
7457 out.append(
"'").append(this->unique_id).append(
"'");
7460 out.append(
" icon: ");
7461 out.append(
"'").append(this->icon).append(
"'");
7464 out.append(
" disabled_by_default: ");
7465 out.append(YESNO(this->disabled_by_default));
7468 out.append(
" entity_category: ");
7469 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7477 this->missing_state = value.
as_bool();
7513 #ifdef HAS_PROTO_MESSAGE_DUMP 7516 out.append(
"DateStateResponse {\n");
7517 out.append(
" key: ");
7518 sprintf(buffer,
"%" PRIu32, this->key);
7522 out.append(
" missing_state: ");
7523 out.append(YESNO(this->missing_state));
7526 out.append(
" year: ");
7527 sprintf(buffer,
"%" PRIu32, this->
year);
7531 out.append(
" month: ");
7532 sprintf(buffer,
"%" PRIu32, this->
month);
7536 out.append(
" day: ");
7537 sprintf(buffer,
"%" PRIu32, this->
day);
7577 #ifdef HAS_PROTO_MESSAGE_DUMP 7580 out.append(
"DateCommandRequest {\n");
7581 out.append(
" key: ");
7582 sprintf(buffer,
"%" PRIu32, this->key);
7586 out.append(
" year: ");
7587 sprintf(buffer,
"%" PRIu32, this->
year);
7591 out.append(
" month: ");
7592 sprintf(buffer,
"%" PRIu32, this->
month);
7596 out.append(
" day: ");
7597 sprintf(buffer,
"%" PRIu32, this->
day);
7606 this->disabled_by_default = value.
as_bool();
7658 #ifdef HAS_PROTO_MESSAGE_DUMP 7661 out.append(
"ListEntitiesTimeResponse {\n");
7662 out.append(
" object_id: ");
7663 out.append(
"'").append(this->object_id).append(
"'");
7666 out.append(
" key: ");
7667 sprintf(buffer,
"%" PRIu32, this->key);
7671 out.append(
" name: ");
7672 out.append(
"'").append(this->
name).append(
"'");
7675 out.append(
" unique_id: ");
7676 out.append(
"'").append(this->unique_id).append(
"'");
7679 out.append(
" icon: ");
7680 out.append(
"'").append(this->icon).append(
"'");
7683 out.append(
" disabled_by_default: ");
7684 out.append(YESNO(this->disabled_by_default));
7687 out.append(
" entity_category: ");
7688 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7696 this->missing_state = value.
as_bool();
7732 #ifdef HAS_PROTO_MESSAGE_DUMP 7735 out.append(
"TimeStateResponse {\n");
7736 out.append(
" key: ");
7737 sprintf(buffer,
"%" PRIu32, this->key);
7741 out.append(
" missing_state: ");
7742 out.append(YESNO(this->missing_state));
7745 out.append(
" hour: ");
7746 sprintf(buffer,
"%" PRIu32, this->
hour);
7750 out.append(
" minute: ");
7751 sprintf(buffer,
"%" PRIu32, this->
minute);
7755 out.append(
" second: ");
7756 sprintf(buffer,
"%" PRIu32, this->
second);
7796 #ifdef HAS_PROTO_MESSAGE_DUMP 7799 out.append(
"TimeCommandRequest {\n");
7800 out.append(
" key: ");
7801 sprintf(buffer,
"%" PRIu32, this->key);
7805 out.append(
" hour: ");
7806 sprintf(buffer,
"%" PRIu32, this->
hour);
7810 out.append(
" minute: ");
7811 sprintf(buffer,
"%" PRIu32, this->
minute);
7815 out.append(
" second: ");
7816 sprintf(buffer,
"%" PRIu32, this->
second);
7825 this->disabled_by_default = value.
as_bool();
7859 this->event_types.push_back(value.
as_string());
7885 for (
auto &it : this->event_types) {
7889 #ifdef HAS_PROTO_MESSAGE_DUMP 7892 out.append(
"ListEntitiesEventResponse {\n");
7893 out.append(
" object_id: ");
7894 out.append(
"'").append(this->object_id).append(
"'");
7897 out.append(
" key: ");
7898 sprintf(buffer,
"%" PRIu32, this->key);
7902 out.append(
" name: ");
7903 out.append(
"'").append(this->
name).append(
"'");
7906 out.append(
" unique_id: ");
7907 out.append(
"'").append(this->unique_id).append(
"'");
7910 out.append(
" icon: ");
7911 out.append(
"'").append(this->icon).append(
"'");
7914 out.append(
" disabled_by_default: ");
7915 out.append(YESNO(this->disabled_by_default));
7918 out.append(
" entity_category: ");
7919 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7922 out.append(
" device_class: ");
7923 out.append(
"'").append(this->device_class).append(
"'");
7926 for (
const auto &it : this->event_types) {
7927 out.append(
" event_types: ");
7928 out.append(
"'").append(it).append(
"'");
7958 #ifdef HAS_PROTO_MESSAGE_DUMP 7961 out.append(
"EventResponse {\n");
7962 out.append(
" key: ");
7963 sprintf(buffer,
"%" PRIu32, this->key);
7967 out.append(
" event_type: ");
7968 out.append(
"'").append(this->event_type).append(
"'");
7976 this->disabled_by_default = value.
as_bool();
7984 this->assumed_state = value.
as_bool();
7988 this->supports_position = value.
as_bool();
7992 this->supports_stop = value.
as_bool();
8048 #ifdef HAS_PROTO_MESSAGE_DUMP 8051 out.append(
"ListEntitiesValveResponse {\n");
8052 out.append(
" object_id: ");
8053 out.append(
"'").append(this->object_id).append(
"'");
8056 out.append(
" key: ");
8057 sprintf(buffer,
"%" PRIu32, this->key);
8061 out.append(
" name: ");
8062 out.append(
"'").append(this->
name).append(
"'");
8065 out.append(
" unique_id: ");
8066 out.append(
"'").append(this->unique_id).append(
"'");
8069 out.append(
" icon: ");
8070 out.append(
"'").append(this->icon).append(
"'");
8073 out.append(
" disabled_by_default: ");
8074 out.append(YESNO(this->disabled_by_default));
8077 out.append(
" entity_category: ");
8078 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
8081 out.append(
" device_class: ");
8082 out.append(
"'").append(this->device_class).append(
"'");
8085 out.append(
" assumed_state: ");
8086 out.append(YESNO(this->assumed_state));
8089 out.append(
" supports_position: ");
8090 out.append(YESNO(this->supports_position));
8093 out.append(
" supports_stop: ");
8094 out.append(YESNO(this->supports_stop));
8128 #ifdef HAS_PROTO_MESSAGE_DUMP 8131 out.append(
"ValveStateResponse {\n");
8132 out.append(
" key: ");
8133 sprintf(buffer,
"%" PRIu32, this->key);
8137 out.append(
" position: ");
8138 sprintf(buffer,
"%g", this->
position);
8142 out.append(
" current_operation: ");
8143 out.append(proto_enum_to_string<enums::ValveOperation>(this->current_operation));
8151 this->has_position = value.
as_bool();
8182 #ifdef HAS_PROTO_MESSAGE_DUMP 8185 out.append(
"ValveCommandRequest {\n");
8186 out.append(
" key: ");
8187 sprintf(buffer,
"%" PRIu32, this->key);
8191 out.append(
" has_position: ");
8192 out.append(YESNO(this->has_position));
8195 out.append(
" position: ");
8196 sprintf(buffer,
"%g", this->
position);
8200 out.append(
" stop: ");
8201 out.append(YESNO(this->stop));
8209 this->disabled_by_default = value.
as_bool();
8261 #ifdef HAS_PROTO_MESSAGE_DUMP 8264 out.append(
"ListEntitiesDateTimeResponse {\n");
8265 out.append(
" object_id: ");
8266 out.append(
"'").append(this->object_id).append(
"'");
8269 out.append(
" key: ");
8270 sprintf(buffer,
"%" PRIu32, this->key);
8274 out.append(
" name: ");
8275 out.append(
"'").append(this->
name).append(
"'");
8278 out.append(
" unique_id: ");
8279 out.append(
"'").append(this->unique_id).append(
"'");
8282 out.append(
" icon: ");
8283 out.append(
"'").append(this->icon).append(
"'");
8286 out.append(
" disabled_by_default: ");
8287 out.append(YESNO(this->disabled_by_default));
8290 out.append(
" entity_category: ");
8291 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
8299 this->missing_state = value.
as_bool();
8325 #ifdef HAS_PROTO_MESSAGE_DUMP 8328 out.append(
"DateTimeStateResponse {\n");
8329 out.append(
" key: ");
8330 sprintf(buffer,
"%" PRIu32, this->key);
8334 out.append(
" missing_state: ");
8335 out.append(YESNO(this->missing_state));
8338 out.append(
" epoch_seconds: ");
8339 sprintf(buffer,
"%" PRIu32, this->epoch_seconds);
8363 #ifdef HAS_PROTO_MESSAGE_DUMP 8366 out.append(
"DateTimeCommandRequest {\n");
8367 out.append(
" key: ");
8368 sprintf(buffer,
"%" PRIu32, this->key);
8372 out.append(
" epoch_seconds: ");
8373 sprintf(buffer,
"%" PRIu32, this->epoch_seconds);
8382 this->disabled_by_default = value.
as_bool();
8439 #ifdef HAS_PROTO_MESSAGE_DUMP 8442 out.append(
"ListEntitiesUpdateResponse {\n");
8443 out.append(
" object_id: ");
8444 out.append(
"'").append(this->object_id).append(
"'");
8447 out.append(
" key: ");
8448 sprintf(buffer,
"%" PRIu32, this->key);
8452 out.append(
" name: ");
8453 out.append(
"'").append(this->
name).append(
"'");
8456 out.append(
" unique_id: ");
8457 out.append(
"'").append(this->unique_id).append(
"'");
8460 out.append(
" icon: ");
8461 out.append(
"'").append(this->icon).append(
"'");
8464 out.append(
" disabled_by_default: ");
8465 out.append(YESNO(this->disabled_by_default));
8468 out.append(
" entity_category: ");
8469 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
8472 out.append(
" device_class: ");
8473 out.append(
"'").append(this->device_class).append(
"'");
8481 this->missing_state = value.
as_bool();
8485 this->in_progress = value.
as_bool();
8489 this->has_progress = value.
as_bool();
8499 this->current_version = value.
as_string();
8503 this->latest_version = value.
as_string();
8511 this->release_summary = value.
as_string();
8548 #ifdef HAS_PROTO_MESSAGE_DUMP 8551 out.append(
"UpdateStateResponse {\n");
8552 out.append(
" key: ");
8553 sprintf(buffer,
"%" PRIu32, this->key);
8557 out.append(
" missing_state: ");
8558 out.append(YESNO(this->missing_state));
8561 out.append(
" in_progress: ");
8562 out.append(YESNO(this->in_progress));
8565 out.append(
" has_progress: ");
8566 out.append(YESNO(this->has_progress));
8569 out.append(
" progress: ");
8570 sprintf(buffer,
"%g", this->progress);
8574 out.append(
" current_version: ");
8575 out.append(
"'").append(this->current_version).append(
"'");
8578 out.append(
" latest_version: ");
8579 out.append(
"'").append(this->latest_version).append(
"'");
8582 out.append(
" title: ");
8583 out.append(
"'").append(this->title).append(
"'");
8586 out.append(
" release_summary: ");
8587 out.append(
"'").append(this->release_summary).append(
"'");
8590 out.append(
" release_url: ");
8591 out.append(
"'").append(this->release_url).append(
"'");
8599 this->install = value.
as_bool();
8620 #ifdef HAS_PROTO_MESSAGE_DUMP 8623 out.append(
"UpdateCommandRequest {\n");
8624 out.append(
" key: ");
8625 sprintf(buffer,
"%" PRIu32, this->key);
8629 out.append(
" install: ");
8630 out.append(YESNO(this->install));
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode_fixed32(uint32_t field_id, uint32_t value, bool force=false)
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
float target_temperature_low
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
int32_t as_sint32() const
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode_float(uint32_t field_id, float value, bool force=false)
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
std::string as_string() const
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode_uint64(uint32_t field_id, uint64_t value, bool force=false)
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
uint32_t api_version_major
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
float target_temperature_high
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
uint32_t api_version_minor
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
ClimateSwingMode swing_mode
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
VoiceAssistantRequestFlag
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode_sint32(uint32_t field_id, int32_t value, bool force=false)
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint32_t as_fixed32() const
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const 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, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
uint64_t as_uint64() const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode_bool(uint32_t field_id, bool value, bool force=false)
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
BedjetMode mode
BedJet operating mode.
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
BluetoothDeviceRequestType
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
VoiceAssistantSubscribeFlag
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode_uint32(uint32_t field_id, uint32_t value, bool force=false)
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode_int32(uint32_t field_id, int32_t value, bool force=false)
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enum esphome::EntityCategory __attribute__
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
Implementation of SPI Controller mode.
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void encode_string(uint32_t field_id, const char *string, size_t len, bool force=false)
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
AlarmControlPanelStateCommand
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
uint32_t as_uint32() const
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode_enum(uint32_t field_id, T value, bool force=false)
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode_message(uint32_t field_id, const C &value, bool force=false)
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override