ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
api_pb2.h
Go to the documentation of this file.
1// This file was automatically generated with a tool.
2// See script/api_protobuf/api_protobuf.py
3#pragma once
4
6
7#include "proto.h"
8#include "api_pb2_includes.h"
9
10namespace esphome::api {
11
12namespace enums {
13
24#ifdef USE_COVER
30#endif
31#ifdef USE_FAN
36#endif
37#ifdef USE_LIGHT
51#endif
52#ifdef USE_SENSOR
60#endif
77#ifdef USE_API_USER_DEFINED_ACTIONS
94#endif
95#ifdef USE_CLIMATE
142#endif
143#ifdef USE_WATER_HEATER
153#endif
164#ifdef USE_NUMBER
170#endif
171#ifdef USE_LOCK
185#endif
186#ifdef USE_MEDIA_PLAYER
216#endif
217#ifdef USE_BLUETOOTH_PROXY
239#endif
249#ifdef USE_VOICE_ASSISTANT
274#endif
275#ifdef USE_ALARM_CONTROL_PANEL
297#endif
298#ifdef USE_TEXT
303#endif
304#ifdef USE_VALVE
310#endif
311#ifdef USE_UPDATE
317#endif
318#ifdef USE_ZWAVE_PROXY
324#endif
325#ifdef USE_SERIAL_PROXY
343#endif
344
345} // namespace enums
346
348 public:
353#ifdef USE_ENTITY_ICON
355#endif
357#ifdef USE_DEVICES
359#endif
360
361 protected:
363};
364
366 public:
368#ifdef USE_DEVICES
370#endif
371
372 protected:
374};
375
377 public:
379#ifdef USE_DEVICES
381#endif
382
383 protected:
385};
387 public:
388 static constexpr uint8_t MESSAGE_TYPE = 1;
389 static constexpr uint8_t ESTIMATED_SIZE = 17;
390#ifdef HAS_PROTO_MESSAGE_DUMP
391 const LogString *message_name() const override { return LOG_STR("hello_request"); }
392#endif
396#ifdef HAS_PROTO_MESSAGE_DUMP
397 const char *dump_to(DumpBuffer &out) const override;
398#endif
399
400 protected:
401 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
402 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
403};
404class HelloResponse final : public ProtoMessage {
405 public:
406 static constexpr uint8_t MESSAGE_TYPE = 2;
407 static constexpr uint8_t ESTIMATED_SIZE = 26;
408#ifdef HAS_PROTO_MESSAGE_DUMP
409 const LogString *message_name() const override { return LOG_STR("hello_response"); }
410#endif
415 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
416 uint32_t calculate_size() const;
417#ifdef HAS_PROTO_MESSAGE_DUMP
418 const char *dump_to(DumpBuffer &out) const override;
419#endif
420
421 protected:
422};
423class DisconnectRequest final : public ProtoMessage {
424 public:
425 static constexpr uint8_t MESSAGE_TYPE = 5;
426 static constexpr uint8_t ESTIMATED_SIZE = 0;
427#ifdef HAS_PROTO_MESSAGE_DUMP
428 const LogString *message_name() const override { return LOG_STR("disconnect_request"); }
429#endif
430#ifdef HAS_PROTO_MESSAGE_DUMP
431 const char *dump_to(DumpBuffer &out) const override;
432#endif
433
434 protected:
435};
436class DisconnectResponse final : public ProtoMessage {
437 public:
438 static constexpr uint8_t MESSAGE_TYPE = 6;
439 static constexpr uint8_t ESTIMATED_SIZE = 0;
440#ifdef HAS_PROTO_MESSAGE_DUMP
441 const LogString *message_name() const override { return LOG_STR("disconnect_response"); }
442#endif
443#ifdef HAS_PROTO_MESSAGE_DUMP
444 const char *dump_to(DumpBuffer &out) const override;
445#endif
446
447 protected:
448};
449class PingRequest final : public ProtoMessage {
450 public:
451 static constexpr uint8_t MESSAGE_TYPE = 7;
452 static constexpr uint8_t ESTIMATED_SIZE = 0;
453#ifdef HAS_PROTO_MESSAGE_DUMP
454 const LogString *message_name() const override { return LOG_STR("ping_request"); }
455#endif
456#ifdef HAS_PROTO_MESSAGE_DUMP
457 const char *dump_to(DumpBuffer &out) const override;
458#endif
459
460 protected:
461};
462class PingResponse final : public ProtoMessage {
463 public:
464 static constexpr uint8_t MESSAGE_TYPE = 8;
465 static constexpr uint8_t ESTIMATED_SIZE = 0;
466#ifdef HAS_PROTO_MESSAGE_DUMP
467 const LogString *message_name() const override { return LOG_STR("ping_response"); }
468#endif
469#ifdef HAS_PROTO_MESSAGE_DUMP
470 const char *dump_to(DumpBuffer &out) const override;
471#endif
472
473 protected:
474};
475#ifdef USE_AREAS
476class AreaInfo final : public ProtoMessage {
477 public:
480 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
481 uint32_t calculate_size() const;
482#ifdef HAS_PROTO_MESSAGE_DUMP
483 const char *dump_to(DumpBuffer &out) const override;
484#endif
485
486 protected:
487};
488#endif
489#ifdef USE_DEVICES
490class DeviceInfo final : public ProtoMessage {
491 public:
495 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
496 uint32_t calculate_size() const;
497#ifdef HAS_PROTO_MESSAGE_DUMP
498 const char *dump_to(DumpBuffer &out) const override;
499#endif
500
501 protected:
502};
503#endif
504#ifdef USE_SERIAL_PROXY
505class SerialProxyInfo final : public ProtoMessage {
506 public:
509 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
510 uint32_t calculate_size() const;
511#ifdef HAS_PROTO_MESSAGE_DUMP
512 const char *dump_to(DumpBuffer &out) const override;
513#endif
514
515 protected:
516};
517#endif
518class DeviceInfoResponse final : public ProtoMessage {
519 public:
520 static constexpr uint8_t MESSAGE_TYPE = 10;
521 static constexpr uint16_t ESTIMATED_SIZE = 309;
522#ifdef HAS_PROTO_MESSAGE_DUMP
523 const LogString *message_name() const override { return LOG_STR("device_info_response"); }
524#endif
530#ifdef USE_DEEP_SLEEP
531 bool has_deep_sleep{false};
532#endif
533#ifdef ESPHOME_PROJECT_NAME
535#endif
536#ifdef ESPHOME_PROJECT_NAME
538#endif
539#ifdef USE_WEBSERVER
541#endif
542#ifdef USE_BLUETOOTH_PROXY
544#endif
547#ifdef USE_VOICE_ASSISTANT
549#endif
550#ifdef USE_AREAS
552#endif
553#ifdef USE_BLUETOOTH_PROXY
555#endif
556#ifdef USE_API_NOISE
558#endif
559#ifdef USE_DEVICES
560 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
561#endif
562#ifdef USE_AREAS
563 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
564#endif
565#ifdef USE_AREAS
567#endif
568#ifdef USE_ZWAVE_PROXY
570#endif
571#ifdef USE_ZWAVE_PROXY
573#endif
574#ifdef USE_SERIAL_PROXY
575 std::array<SerialProxyInfo, SERIAL_PROXY_COUNT> serial_proxies{};
576#endif
577 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
578 uint32_t calculate_size() const;
579#ifdef HAS_PROTO_MESSAGE_DUMP
580 const char *dump_to(DumpBuffer &out) const override;
581#endif
582
583 protected:
584};
586 public:
587 static constexpr uint8_t MESSAGE_TYPE = 19;
588 static constexpr uint8_t ESTIMATED_SIZE = 0;
589#ifdef HAS_PROTO_MESSAGE_DUMP
590 const LogString *message_name() const override { return LOG_STR("list_entities_done_response"); }
591#endif
592#ifdef HAS_PROTO_MESSAGE_DUMP
593 const char *dump_to(DumpBuffer &out) const override;
594#endif
595
596 protected:
597};
598#ifdef USE_BINARY_SENSOR
600 public:
601 static constexpr uint8_t MESSAGE_TYPE = 12;
602 static constexpr uint8_t ESTIMATED_SIZE = 51;
603#ifdef HAS_PROTO_MESSAGE_DUMP
604 const LogString *message_name() const override { return LOG_STR("list_entities_binary_sensor_response"); }
605#endif
608 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
609 uint32_t calculate_size() const;
610#ifdef HAS_PROTO_MESSAGE_DUMP
611 const char *dump_to(DumpBuffer &out) const override;
612#endif
613
614 protected:
615};
617 public:
618 static constexpr uint8_t MESSAGE_TYPE = 21;
619 static constexpr uint8_t ESTIMATED_SIZE = 13;
620#ifdef HAS_PROTO_MESSAGE_DUMP
621 const LogString *message_name() const override { return LOG_STR("binary_sensor_state_response"); }
622#endif
623 bool state{false};
624 bool missing_state{false};
625 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
626 uint32_t calculate_size() const;
627#ifdef HAS_PROTO_MESSAGE_DUMP
628 const char *dump_to(DumpBuffer &out) const override;
629#endif
630
631 protected:
632};
633#endif
634#ifdef USE_COVER
636 public:
637 static constexpr uint8_t MESSAGE_TYPE = 13;
638 static constexpr uint8_t ESTIMATED_SIZE = 57;
639#ifdef HAS_PROTO_MESSAGE_DUMP
640 const LogString *message_name() const override { return LOG_STR("list_entities_cover_response"); }
641#endif
642 bool assumed_state{false};
643 bool supports_position{false};
644 bool supports_tilt{false};
646 bool supports_stop{false};
647 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
648 uint32_t calculate_size() const;
649#ifdef HAS_PROTO_MESSAGE_DUMP
650 const char *dump_to(DumpBuffer &out) const override;
651#endif
652
653 protected:
654};
656 public:
657 static constexpr uint8_t MESSAGE_TYPE = 22;
658 static constexpr uint8_t ESTIMATED_SIZE = 21;
659#ifdef HAS_PROTO_MESSAGE_DUMP
660 const LogString *message_name() const override { return LOG_STR("cover_state_response"); }
661#endif
662 float position{0.0f};
663 float tilt{0.0f};
665 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
666 uint32_t calculate_size() const;
667#ifdef HAS_PROTO_MESSAGE_DUMP
668 const char *dump_to(DumpBuffer &out) const override;
669#endif
670
671 protected:
672};
674 public:
675 static constexpr uint8_t MESSAGE_TYPE = 30;
676 static constexpr uint8_t ESTIMATED_SIZE = 25;
677#ifdef HAS_PROTO_MESSAGE_DUMP
678 const LogString *message_name() const override { return LOG_STR("cover_command_request"); }
679#endif
680 bool has_position{false};
681 float position{0.0f};
682 bool has_tilt{false};
683 float tilt{0.0f};
684 bool stop{false};
685#ifdef HAS_PROTO_MESSAGE_DUMP
686 const char *dump_to(DumpBuffer &out) const override;
687#endif
688
689 protected:
690 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
691 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
692};
693#endif
694#ifdef USE_FAN
696 public:
697 static constexpr uint8_t MESSAGE_TYPE = 14;
698 static constexpr uint8_t ESTIMATED_SIZE = 68;
699#ifdef HAS_PROTO_MESSAGE_DUMP
700 const LogString *message_name() const override { return LOG_STR("list_entities_fan_response"); }
701#endif
703 bool supports_speed{false};
706 const std::vector<const char *> *supported_preset_modes{};
707 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
708 uint32_t calculate_size() const;
709#ifdef HAS_PROTO_MESSAGE_DUMP
710 const char *dump_to(DumpBuffer &out) const override;
711#endif
712
713 protected:
714};
716 public:
717 static constexpr uint8_t MESSAGE_TYPE = 23;
718 static constexpr uint8_t ESTIMATED_SIZE = 28;
719#ifdef HAS_PROTO_MESSAGE_DUMP
720 const LogString *message_name() const override { return LOG_STR("fan_state_response"); }
721#endif
722 bool state{false};
723 bool oscillating{false};
725 int32_t speed_level{0};
727 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
728 uint32_t calculate_size() const;
729#ifdef HAS_PROTO_MESSAGE_DUMP
730 const char *dump_to(DumpBuffer &out) const override;
731#endif
732
733 protected:
734};
736 public:
737 static constexpr uint8_t MESSAGE_TYPE = 31;
738 static constexpr uint8_t ESTIMATED_SIZE = 38;
739#ifdef HAS_PROTO_MESSAGE_DUMP
740 const LogString *message_name() const override { return LOG_STR("fan_command_request"); }
741#endif
742 bool has_state{false};
743 bool state{false};
744 bool has_oscillating{false};
745 bool oscillating{false};
746 bool has_direction{false};
748 bool has_speed_level{false};
749 int32_t speed_level{0};
750 bool has_preset_mode{false};
752#ifdef HAS_PROTO_MESSAGE_DUMP
753 const char *dump_to(DumpBuffer &out) const override;
754#endif
755
756 protected:
757 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
758 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
759 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
760};
761#endif
762#ifdef USE_LIGHT
764 public:
765 static constexpr uint8_t MESSAGE_TYPE = 15;
766 static constexpr uint8_t ESTIMATED_SIZE = 73;
767#ifdef HAS_PROTO_MESSAGE_DUMP
768 const LogString *message_name() const override { return LOG_STR("list_entities_light_response"); }
769#endif
771 float min_mireds{0.0f};
772 float max_mireds{0.0f};
774 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
775 uint32_t calculate_size() const;
776#ifdef HAS_PROTO_MESSAGE_DUMP
777 const char *dump_to(DumpBuffer &out) const override;
778#endif
779
780 protected:
781};
783 public:
784 static constexpr uint8_t MESSAGE_TYPE = 24;
785 static constexpr uint8_t ESTIMATED_SIZE = 67;
786#ifdef HAS_PROTO_MESSAGE_DUMP
787 const LogString *message_name() const override { return LOG_STR("light_state_response"); }
788#endif
789 bool state{false};
790 float brightness{0.0f};
792 float color_brightness{0.0f};
793 float red{0.0f};
794 float green{0.0f};
795 float blue{0.0f};
796 float white{0.0f};
797 float color_temperature{0.0f};
798 float cold_white{0.0f};
799 float warm_white{0.0f};
801 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
802 uint32_t calculate_size() const;
803#ifdef HAS_PROTO_MESSAGE_DUMP
804 const char *dump_to(DumpBuffer &out) const override;
805#endif
806
807 protected:
808};
810 public:
811 static constexpr uint8_t MESSAGE_TYPE = 32;
812 static constexpr uint8_t ESTIMATED_SIZE = 112;
813#ifdef HAS_PROTO_MESSAGE_DUMP
814 const LogString *message_name() const override { return LOG_STR("light_command_request"); }
815#endif
816 bool has_state{false};
817 bool state{false};
818 bool has_brightness{false};
819 float brightness{0.0f};
820 bool has_color_mode{false};
823 float color_brightness{0.0f};
824 bool has_rgb{false};
825 float red{0.0f};
826 float green{0.0f};
827 float blue{0.0f};
828 bool has_white{false};
829 float white{0.0f};
831 float color_temperature{0.0f};
832 bool has_cold_white{false};
833 float cold_white{0.0f};
834 bool has_warm_white{false};
835 float warm_white{0.0f};
838 bool has_flash_length{false};
840 bool has_effect{false};
842#ifdef HAS_PROTO_MESSAGE_DUMP
843 const char *dump_to(DumpBuffer &out) const override;
844#endif
845
846 protected:
847 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
848 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
849 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
850};
851#endif
852#ifdef USE_SENSOR
854 public:
855 static constexpr uint8_t MESSAGE_TYPE = 16;
856 static constexpr uint8_t ESTIMATED_SIZE = 66;
857#ifdef HAS_PROTO_MESSAGE_DUMP
858 const LogString *message_name() const override { return LOG_STR("list_entities_sensor_response"); }
859#endif
862 bool force_update{false};
865 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
866 uint32_t calculate_size() const;
867#ifdef HAS_PROTO_MESSAGE_DUMP
868 const char *dump_to(DumpBuffer &out) const override;
869#endif
870
871 protected:
872};
874 public:
875 static constexpr uint8_t MESSAGE_TYPE = 25;
876 static constexpr uint8_t ESTIMATED_SIZE = 16;
877#ifdef HAS_PROTO_MESSAGE_DUMP
878 const LogString *message_name() const override { return LOG_STR("sensor_state_response"); }
879#endif
880 float state{0.0f};
881 bool missing_state{false};
882 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
884#ifdef HAS_PROTO_MESSAGE_DUMP
885 const char *dump_to(DumpBuffer &out) const override;
886#endif
887
888 protected:
889};
890#endif
891#ifdef USE_SWITCH
893 public:
894 static constexpr uint8_t MESSAGE_TYPE = 17;
895 static constexpr uint8_t ESTIMATED_SIZE = 51;
896#ifdef HAS_PROTO_MESSAGE_DUMP
897 const LogString *message_name() const override { return LOG_STR("list_entities_switch_response"); }
898#endif
899 bool assumed_state{false};
901 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
903#ifdef HAS_PROTO_MESSAGE_DUMP
904 const char *dump_to(DumpBuffer &out) const override;
905#endif
906
907 protected:
908};
910 public:
911 static constexpr uint8_t MESSAGE_TYPE = 26;
912 static constexpr uint8_t ESTIMATED_SIZE = 11;
913#ifdef HAS_PROTO_MESSAGE_DUMP
914 const LogString *message_name() const override { return LOG_STR("switch_state_response"); }
915#endif
916 bool state{false};
917 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
919#ifdef HAS_PROTO_MESSAGE_DUMP
920 const char *dump_to(DumpBuffer &out) const override;
921#endif
922
923 protected:
924};
926 public:
927 static constexpr uint8_t MESSAGE_TYPE = 33;
928 static constexpr uint8_t ESTIMATED_SIZE = 11;
929#ifdef HAS_PROTO_MESSAGE_DUMP
930 const LogString *message_name() const override { return LOG_STR("switch_command_request"); }
931#endif
932 bool state{false};
933#ifdef HAS_PROTO_MESSAGE_DUMP
934 const char *dump_to(DumpBuffer &out) const override;
935#endif
936
937 protected:
938 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
939 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
940};
941#endif
942#ifdef USE_TEXT_SENSOR
944 public:
945 static constexpr uint8_t MESSAGE_TYPE = 18;
946 static constexpr uint8_t ESTIMATED_SIZE = 49;
947#ifdef HAS_PROTO_MESSAGE_DUMP
948 const LogString *message_name() const override { return LOG_STR("list_entities_text_sensor_response"); }
949#endif
951 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
952 uint32_t calculate_size() const;
953#ifdef HAS_PROTO_MESSAGE_DUMP
954 const char *dump_to(DumpBuffer &out) const override;
955#endif
956
957 protected:
958};
960 public:
961 static constexpr uint8_t MESSAGE_TYPE = 27;
962 static constexpr uint8_t ESTIMATED_SIZE = 20;
963#ifdef HAS_PROTO_MESSAGE_DUMP
964 const LogString *message_name() const override { return LOG_STR("text_sensor_state_response"); }
965#endif
967 bool missing_state{false};
968 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
969 uint32_t calculate_size() const;
970#ifdef HAS_PROTO_MESSAGE_DUMP
971 const char *dump_to(DumpBuffer &out) const override;
972#endif
973
974 protected:
975};
976#endif
978 public:
979 static constexpr uint8_t MESSAGE_TYPE = 28;
980 static constexpr uint8_t ESTIMATED_SIZE = 4;
981#ifdef HAS_PROTO_MESSAGE_DUMP
982 const LogString *message_name() const override { return LOG_STR("subscribe_logs_request"); }
983#endif
985 bool dump_config{false};
986#ifdef HAS_PROTO_MESSAGE_DUMP
987 const char *dump_to(DumpBuffer &out) const override;
988#endif
989
990 protected:
991 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
992};
994 public:
995 static constexpr uint8_t MESSAGE_TYPE = 29;
996 static constexpr uint8_t ESTIMATED_SIZE = 21;
997#ifdef HAS_PROTO_MESSAGE_DUMP
998 const LogString *message_name() const override { return LOG_STR("subscribe_logs_response"); }
999#endif
1001 const uint8_t *message_ptr_{nullptr};
1002 size_t message_len_{0};
1003 void set_message(const uint8_t *data, size_t len) {
1004 this->message_ptr_ = data;
1005 this->message_len_ = len;
1006 }
1007 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1009#ifdef HAS_PROTO_MESSAGE_DUMP
1010 const char *dump_to(DumpBuffer &out) const override;
1011#endif
1012
1013 protected:
1014};
1015#ifdef USE_API_NOISE
1017 public:
1018 static constexpr uint8_t MESSAGE_TYPE = 124;
1019 static constexpr uint8_t ESTIMATED_SIZE = 19;
1020#ifdef HAS_PROTO_MESSAGE_DUMP
1021 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_request"); }
1022#endif
1023 const uint8_t *key{nullptr};
1024 uint16_t key_len{0};
1025#ifdef HAS_PROTO_MESSAGE_DUMP
1026 const char *dump_to(DumpBuffer &out) const override;
1027#endif
1028
1029 protected:
1030 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1031};
1033 public:
1034 static constexpr uint8_t MESSAGE_TYPE = 125;
1035 static constexpr uint8_t ESTIMATED_SIZE = 2;
1036#ifdef HAS_PROTO_MESSAGE_DUMP
1037 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_response"); }
1038#endif
1039 bool success{false};
1040 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1041 uint32_t calculate_size() const;
1042#ifdef HAS_PROTO_MESSAGE_DUMP
1043 const char *dump_to(DumpBuffer &out) const override;
1044#endif
1045
1046 protected:
1047};
1048#endif
1049#ifdef USE_API_HOMEASSISTANT_SERVICES
1051 public:
1054 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1055 uint32_t calculate_size() const;
1056#ifdef HAS_PROTO_MESSAGE_DUMP
1057 const char *dump_to(DumpBuffer &out) const override;
1058#endif
1059
1060 protected:
1061};
1063 public:
1064 static constexpr uint8_t MESSAGE_TYPE = 35;
1065 static constexpr uint8_t ESTIMATED_SIZE = 128;
1066#ifdef HAS_PROTO_MESSAGE_DUMP
1067 const LogString *message_name() const override { return LOG_STR("homeassistant_action_request"); }
1068#endif
1073 bool is_event{false};
1074#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1076#endif
1077#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1078 bool wants_response{false};
1079#endif
1080#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1082#endif
1083 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1084 uint32_t calculate_size() const;
1085#ifdef HAS_PROTO_MESSAGE_DUMP
1086 const char *dump_to(DumpBuffer &out) const override;
1087#endif
1088
1089 protected:
1090};
1091#endif
1092#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1094 public:
1095 static constexpr uint8_t MESSAGE_TYPE = 130;
1096 static constexpr uint8_t ESTIMATED_SIZE = 34;
1097#ifdef HAS_PROTO_MESSAGE_DUMP
1098 const LogString *message_name() const override { return LOG_STR("homeassistant_action_response"); }
1099#endif
1101 bool success{false};
1103#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1104 const uint8_t *response_data{nullptr};
1106#endif
1107#ifdef HAS_PROTO_MESSAGE_DUMP
1108 const char *dump_to(DumpBuffer &out) const override;
1109#endif
1110
1111 protected:
1112 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1113 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1114};
1115#endif
1116#ifdef USE_API_HOMEASSISTANT_STATES
1118 public:
1119 static constexpr uint8_t MESSAGE_TYPE = 39;
1120 static constexpr uint8_t ESTIMATED_SIZE = 20;
1121#ifdef HAS_PROTO_MESSAGE_DUMP
1122 const LogString *message_name() const override { return LOG_STR("subscribe_home_assistant_state_response"); }
1123#endif
1126 bool once{false};
1127 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1128 uint32_t calculate_size() const;
1129#ifdef HAS_PROTO_MESSAGE_DUMP
1130 const char *dump_to(DumpBuffer &out) const override;
1131#endif
1132
1133 protected:
1134};
1136 public:
1137 static constexpr uint8_t MESSAGE_TYPE = 40;
1138 static constexpr uint8_t ESTIMATED_SIZE = 27;
1139#ifdef HAS_PROTO_MESSAGE_DUMP
1140 const LogString *message_name() const override { return LOG_STR("home_assistant_state_response"); }
1141#endif
1145#ifdef HAS_PROTO_MESSAGE_DUMP
1146 const char *dump_to(DumpBuffer &out) const override;
1147#endif
1148
1149 protected:
1150 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1151};
1152#endif
1153class GetTimeRequest final : public ProtoMessage {
1154 public:
1155 static constexpr uint8_t MESSAGE_TYPE = 36;
1156 static constexpr uint8_t ESTIMATED_SIZE = 0;
1157#ifdef HAS_PROTO_MESSAGE_DUMP
1158 const LogString *message_name() const override { return LOG_STR("get_time_request"); }
1159#endif
1160#ifdef HAS_PROTO_MESSAGE_DUMP
1161 const char *dump_to(DumpBuffer &out) const override;
1162#endif
1163
1164 protected:
1165};
1166class DSTRule final : public ProtoDecodableMessage {
1167 public:
1168 int32_t time_seconds{0};
1174#ifdef HAS_PROTO_MESSAGE_DUMP
1175 const char *dump_to(DumpBuffer &out) const override;
1176#endif
1177
1178 protected:
1179 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1180};
1182 public:
1187#ifdef HAS_PROTO_MESSAGE_DUMP
1188 const char *dump_to(DumpBuffer &out) const override;
1189#endif
1190
1191 protected:
1192 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1193 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1194};
1196 public:
1197 static constexpr uint8_t MESSAGE_TYPE = 37;
1198 static constexpr uint8_t ESTIMATED_SIZE = 31;
1199#ifdef HAS_PROTO_MESSAGE_DUMP
1200 const LogString *message_name() const override { return LOG_STR("get_time_response"); }
1201#endif
1205#ifdef HAS_PROTO_MESSAGE_DUMP
1206 const char *dump_to(DumpBuffer &out) const override;
1207#endif
1208
1209 protected:
1210 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1211 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1212};
1213#ifdef USE_API_USER_DEFINED_ACTIONS
1215 public:
1218 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1219 uint32_t calculate_size() const;
1220#ifdef HAS_PROTO_MESSAGE_DUMP
1221 const char *dump_to(DumpBuffer &out) const override;
1222#endif
1223
1224 protected:
1225};
1227 public:
1228 static constexpr uint8_t MESSAGE_TYPE = 41;
1229 static constexpr uint8_t ESTIMATED_SIZE = 50;
1230#ifdef HAS_PROTO_MESSAGE_DUMP
1231 const LogString *message_name() const override { return LOG_STR("list_entities_services_response"); }
1232#endif
1237 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1238 uint32_t calculate_size() const;
1239#ifdef HAS_PROTO_MESSAGE_DUMP
1240 const char *dump_to(DumpBuffer &out) const override;
1241#endif
1242
1243 protected:
1244};
1246 public:
1247 bool bool_{false};
1248 int32_t legacy_int{0};
1249 float float_{0.0f};
1251 int32_t int_{0};
1256 void decode(const uint8_t *buffer, size_t length);
1257#ifdef HAS_PROTO_MESSAGE_DUMP
1258 const char *dump_to(DumpBuffer &out) const override;
1259#endif
1260
1261 protected:
1262 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1263 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1264 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1265};
1267 public:
1268 static constexpr uint8_t MESSAGE_TYPE = 42;
1269 static constexpr uint8_t ESTIMATED_SIZE = 45;
1270#ifdef HAS_PROTO_MESSAGE_DUMP
1271 const LogString *message_name() const override { return LOG_STR("execute_service_request"); }
1272#endif
1275#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1277#endif
1278#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1279 bool return_response{false};
1280#endif
1281 void decode(const uint8_t *buffer, size_t length);
1282#ifdef HAS_PROTO_MESSAGE_DUMP
1283 const char *dump_to(DumpBuffer &out) const override;
1284#endif
1285
1286 protected:
1287 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1288 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1289 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1290};
1291#endif
1292#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1294 public:
1295 static constexpr uint8_t MESSAGE_TYPE = 131;
1296 static constexpr uint8_t ESTIMATED_SIZE = 34;
1297#ifdef HAS_PROTO_MESSAGE_DUMP
1298 const LogString *message_name() const override { return LOG_STR("execute_service_response"); }
1299#endif
1301 bool success{false};
1303#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1304 const uint8_t *response_data{nullptr};
1306#endif
1307 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1308 uint32_t calculate_size() const;
1309#ifdef HAS_PROTO_MESSAGE_DUMP
1310 const char *dump_to(DumpBuffer &out) const override;
1311#endif
1312
1313 protected:
1314};
1315#endif
1316#ifdef USE_CAMERA
1318 public:
1319 static constexpr uint8_t MESSAGE_TYPE = 43;
1320 static constexpr uint8_t ESTIMATED_SIZE = 40;
1321#ifdef HAS_PROTO_MESSAGE_DUMP
1322 const LogString *message_name() const override { return LOG_STR("list_entities_camera_response"); }
1323#endif
1324 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1325 uint32_t calculate_size() const;
1326#ifdef HAS_PROTO_MESSAGE_DUMP
1327 const char *dump_to(DumpBuffer &out) const override;
1328#endif
1329
1330 protected:
1331};
1333 public:
1334 static constexpr uint8_t MESSAGE_TYPE = 44;
1335 static constexpr uint8_t ESTIMATED_SIZE = 30;
1336#ifdef HAS_PROTO_MESSAGE_DUMP
1337 const LogString *message_name() const override { return LOG_STR("camera_image_response"); }
1338#endif
1339 const uint8_t *data_ptr_{nullptr};
1340 size_t data_len_{0};
1341 void set_data(const uint8_t *data, size_t len) {
1342 this->data_ptr_ = data;
1343 this->data_len_ = len;
1344 }
1345 bool done{false};
1346 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1347 uint32_t calculate_size() const;
1348#ifdef HAS_PROTO_MESSAGE_DUMP
1349 const char *dump_to(DumpBuffer &out) const override;
1350#endif
1351
1352 protected:
1353};
1355 public:
1356 static constexpr uint8_t MESSAGE_TYPE = 45;
1357 static constexpr uint8_t ESTIMATED_SIZE = 4;
1358#ifdef HAS_PROTO_MESSAGE_DUMP
1359 const LogString *message_name() const override { return LOG_STR("camera_image_request"); }
1360#endif
1361 bool single{false};
1362 bool stream{false};
1363#ifdef HAS_PROTO_MESSAGE_DUMP
1364 const char *dump_to(DumpBuffer &out) const override;
1365#endif
1366
1367 protected:
1368 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1369};
1370#endif
1371#ifdef USE_CLIMATE
1373 public:
1374 static constexpr uint8_t MESSAGE_TYPE = 46;
1375 static constexpr uint8_t ESTIMATED_SIZE = 150;
1376#ifdef HAS_PROTO_MESSAGE_DUMP
1377 const LogString *message_name() const override { return LOG_STR("list_entities_climate_response"); }
1378#endif
1385 bool supports_action{false};
1388 const std::vector<const char *> *supported_custom_fan_modes{};
1390 const std::vector<const char *> *supported_custom_presets{};
1397 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1398 uint32_t calculate_size() const;
1399#ifdef HAS_PROTO_MESSAGE_DUMP
1400 const char *dump_to(DumpBuffer &out) const override;
1401#endif
1402
1403 protected:
1404};
1406 public:
1407 static constexpr uint8_t MESSAGE_TYPE = 47;
1408 static constexpr uint8_t ESTIMATED_SIZE = 68;
1409#ifdef HAS_PROTO_MESSAGE_DUMP
1410 const LogString *message_name() const override { return LOG_STR("climate_state_response"); }
1411#endif
1423 float current_humidity{0.0f};
1424 float target_humidity{0.0f};
1425 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1426 uint32_t calculate_size() const;
1427#ifdef HAS_PROTO_MESSAGE_DUMP
1428 const char *dump_to(DumpBuffer &out) const override;
1429#endif
1430
1431 protected:
1432};
1434 public:
1435 static constexpr uint8_t MESSAGE_TYPE = 48;
1436 static constexpr uint8_t ESTIMATED_SIZE = 84;
1437#ifdef HAS_PROTO_MESSAGE_DUMP
1438 const LogString *message_name() const override { return LOG_STR("climate_command_request"); }
1439#endif
1440 bool has_mode{false};
1448 bool has_fan_mode{false};
1450 bool has_swing_mode{false};
1454 bool has_preset{false};
1459 float target_humidity{0.0f};
1460#ifdef HAS_PROTO_MESSAGE_DUMP
1461 const char *dump_to(DumpBuffer &out) const override;
1462#endif
1463
1464 protected:
1465 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1466 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1467 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1468};
1469#endif
1470#ifdef USE_WATER_HEATER
1472 public:
1473 static constexpr uint8_t MESSAGE_TYPE = 132;
1474 static constexpr uint8_t ESTIMATED_SIZE = 63;
1475#ifdef HAS_PROTO_MESSAGE_DUMP
1476 const LogString *message_name() const override { return LOG_STR("list_entities_water_heater_response"); }
1477#endif
1478 float min_temperature{0.0f};
1479 float max_temperature{0.0f};
1483 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1484 uint32_t calculate_size() const;
1485#ifdef HAS_PROTO_MESSAGE_DUMP
1486 const char *dump_to(DumpBuffer &out) const override;
1487#endif
1488
1489 protected:
1490};
1492 public:
1493 static constexpr uint8_t MESSAGE_TYPE = 133;
1494 static constexpr uint8_t ESTIMATED_SIZE = 35;
1495#ifdef HAS_PROTO_MESSAGE_DUMP
1496 const LogString *message_name() const override { return LOG_STR("water_heater_state_response"); }
1497#endif
1504 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1505 uint32_t calculate_size() const;
1506#ifdef HAS_PROTO_MESSAGE_DUMP
1507 const char *dump_to(DumpBuffer &out) const override;
1508#endif
1509
1510 protected:
1511};
1513 public:
1514 static constexpr uint8_t MESSAGE_TYPE = 134;
1515 static constexpr uint8_t ESTIMATED_SIZE = 34;
1516#ifdef HAS_PROTO_MESSAGE_DUMP
1517 const LogString *message_name() const override { return LOG_STR("water_heater_command_request"); }
1518#endif
1525#ifdef HAS_PROTO_MESSAGE_DUMP
1526 const char *dump_to(DumpBuffer &out) const override;
1527#endif
1528
1529 protected:
1530 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1531 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1532};
1533#endif
1534#ifdef USE_NUMBER
1536 public:
1537 static constexpr uint8_t MESSAGE_TYPE = 49;
1538 static constexpr uint8_t ESTIMATED_SIZE = 75;
1539#ifdef HAS_PROTO_MESSAGE_DUMP
1540 const LogString *message_name() const override { return LOG_STR("list_entities_number_response"); }
1541#endif
1542 float min_value{0.0f};
1543 float max_value{0.0f};
1544 float step{0.0f};
1548 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1549 uint32_t calculate_size() const;
1550#ifdef HAS_PROTO_MESSAGE_DUMP
1551 const char *dump_to(DumpBuffer &out) const override;
1552#endif
1553
1554 protected:
1555};
1557 public:
1558 static constexpr uint8_t MESSAGE_TYPE = 50;
1559 static constexpr uint8_t ESTIMATED_SIZE = 16;
1560#ifdef HAS_PROTO_MESSAGE_DUMP
1561 const LogString *message_name() const override { return LOG_STR("number_state_response"); }
1562#endif
1563 float state{0.0f};
1564 bool missing_state{false};
1565 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1566 uint32_t calculate_size() const;
1567#ifdef HAS_PROTO_MESSAGE_DUMP
1568 const char *dump_to(DumpBuffer &out) const override;
1569#endif
1570
1571 protected:
1572};
1574 public:
1575 static constexpr uint8_t MESSAGE_TYPE = 51;
1576 static constexpr uint8_t ESTIMATED_SIZE = 14;
1577#ifdef HAS_PROTO_MESSAGE_DUMP
1578 const LogString *message_name() const override { return LOG_STR("number_command_request"); }
1579#endif
1580 float state{0.0f};
1581#ifdef HAS_PROTO_MESSAGE_DUMP
1582 const char *dump_to(DumpBuffer &out) const override;
1583#endif
1584
1585 protected:
1586 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1587 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1588};
1589#endif
1590#ifdef USE_SELECT
1592 public:
1593 static constexpr uint8_t MESSAGE_TYPE = 52;
1594 static constexpr uint8_t ESTIMATED_SIZE = 58;
1595#ifdef HAS_PROTO_MESSAGE_DUMP
1596 const LogString *message_name() const override { return LOG_STR("list_entities_select_response"); }
1597#endif
1599 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1600 uint32_t calculate_size() const;
1601#ifdef HAS_PROTO_MESSAGE_DUMP
1602 const char *dump_to(DumpBuffer &out) const override;
1603#endif
1604
1605 protected:
1606};
1608 public:
1609 static constexpr uint8_t MESSAGE_TYPE = 53;
1610 static constexpr uint8_t ESTIMATED_SIZE = 20;
1611#ifdef HAS_PROTO_MESSAGE_DUMP
1612 const LogString *message_name() const override { return LOG_STR("select_state_response"); }
1613#endif
1615 bool missing_state{false};
1616 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1617 uint32_t calculate_size() const;
1618#ifdef HAS_PROTO_MESSAGE_DUMP
1619 const char *dump_to(DumpBuffer &out) const override;
1620#endif
1621
1622 protected:
1623};
1625 public:
1626 static constexpr uint8_t MESSAGE_TYPE = 54;
1627 static constexpr uint8_t ESTIMATED_SIZE = 18;
1628#ifdef HAS_PROTO_MESSAGE_DUMP
1629 const LogString *message_name() const override { return LOG_STR("select_command_request"); }
1630#endif
1632#ifdef HAS_PROTO_MESSAGE_DUMP
1633 const char *dump_to(DumpBuffer &out) const override;
1634#endif
1635
1636 protected:
1637 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1638 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1639 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1640};
1641#endif
1642#ifdef USE_SIREN
1644 public:
1645 static constexpr uint8_t MESSAGE_TYPE = 55;
1646 static constexpr uint8_t ESTIMATED_SIZE = 62;
1647#ifdef HAS_PROTO_MESSAGE_DUMP
1648 const LogString *message_name() const override { return LOG_STR("list_entities_siren_response"); }
1649#endif
1652 bool supports_volume{false};
1653 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1654 uint32_t calculate_size() const;
1655#ifdef HAS_PROTO_MESSAGE_DUMP
1656 const char *dump_to(DumpBuffer &out) const override;
1657#endif
1658
1659 protected:
1660};
1662 public:
1663 static constexpr uint8_t MESSAGE_TYPE = 56;
1664 static constexpr uint8_t ESTIMATED_SIZE = 11;
1665#ifdef HAS_PROTO_MESSAGE_DUMP
1666 const LogString *message_name() const override { return LOG_STR("siren_state_response"); }
1667#endif
1668 bool state{false};
1669 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1670 uint32_t calculate_size() const;
1671#ifdef HAS_PROTO_MESSAGE_DUMP
1672 const char *dump_to(DumpBuffer &out) const override;
1673#endif
1674
1675 protected:
1676};
1678 public:
1679 static constexpr uint8_t MESSAGE_TYPE = 57;
1680 static constexpr uint8_t ESTIMATED_SIZE = 37;
1681#ifdef HAS_PROTO_MESSAGE_DUMP
1682 const LogString *message_name() const override { return LOG_STR("siren_command_request"); }
1683#endif
1684 bool has_state{false};
1685 bool state{false};
1686 bool has_tone{false};
1688 bool has_duration{false};
1690 bool has_volume{false};
1691 float volume{0.0f};
1692#ifdef HAS_PROTO_MESSAGE_DUMP
1693 const char *dump_to(DumpBuffer &out) const override;
1694#endif
1695
1696 protected:
1697 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1698 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1699 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1700};
1701#endif
1702#ifdef USE_LOCK
1704 public:
1705 static constexpr uint8_t MESSAGE_TYPE = 58;
1706 static constexpr uint8_t ESTIMATED_SIZE = 55;
1707#ifdef HAS_PROTO_MESSAGE_DUMP
1708 const LogString *message_name() const override { return LOG_STR("list_entities_lock_response"); }
1709#endif
1710 bool assumed_state{false};
1711 bool supports_open{false};
1712 bool requires_code{false};
1714 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1715 uint32_t calculate_size() const;
1716#ifdef HAS_PROTO_MESSAGE_DUMP
1717 const char *dump_to(DumpBuffer &out) const override;
1718#endif
1719
1720 protected:
1721};
1723 public:
1724 static constexpr uint8_t MESSAGE_TYPE = 59;
1725 static constexpr uint8_t ESTIMATED_SIZE = 11;
1726#ifdef HAS_PROTO_MESSAGE_DUMP
1727 const LogString *message_name() const override { return LOG_STR("lock_state_response"); }
1728#endif
1730 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1731 uint32_t calculate_size() const;
1732#ifdef HAS_PROTO_MESSAGE_DUMP
1733 const char *dump_to(DumpBuffer &out) const override;
1734#endif
1735
1736 protected:
1737};
1739 public:
1740 static constexpr uint8_t MESSAGE_TYPE = 60;
1741 static constexpr uint8_t ESTIMATED_SIZE = 22;
1742#ifdef HAS_PROTO_MESSAGE_DUMP
1743 const LogString *message_name() const override { return LOG_STR("lock_command_request"); }
1744#endif
1746 bool has_code{false};
1748#ifdef HAS_PROTO_MESSAGE_DUMP
1749 const char *dump_to(DumpBuffer &out) const override;
1750#endif
1751
1752 protected:
1753 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1754 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1755 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1756};
1757#endif
1758#ifdef USE_BUTTON
1760 public:
1761 static constexpr uint8_t MESSAGE_TYPE = 61;
1762 static constexpr uint8_t ESTIMATED_SIZE = 49;
1763#ifdef HAS_PROTO_MESSAGE_DUMP
1764 const LogString *message_name() const override { return LOG_STR("list_entities_button_response"); }
1765#endif
1767 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1768 uint32_t calculate_size() const;
1769#ifdef HAS_PROTO_MESSAGE_DUMP
1770 const char *dump_to(DumpBuffer &out) const override;
1771#endif
1772
1773 protected:
1774};
1776 public:
1777 static constexpr uint8_t MESSAGE_TYPE = 62;
1778 static constexpr uint8_t ESTIMATED_SIZE = 9;
1779#ifdef HAS_PROTO_MESSAGE_DUMP
1780 const LogString *message_name() const override { return LOG_STR("button_command_request"); }
1781#endif
1782#ifdef HAS_PROTO_MESSAGE_DUMP
1783 const char *dump_to(DumpBuffer &out) const override;
1784#endif
1785
1786 protected:
1787 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1788 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1789};
1790#endif
1791#ifdef USE_MEDIA_PLAYER
1793 public:
1799 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1800 uint32_t calculate_size() const;
1801#ifdef HAS_PROTO_MESSAGE_DUMP
1802 const char *dump_to(DumpBuffer &out) const override;
1803#endif
1804
1805 protected:
1806};
1808 public:
1809 static constexpr uint8_t MESSAGE_TYPE = 63;
1810 static constexpr uint8_t ESTIMATED_SIZE = 80;
1811#ifdef HAS_PROTO_MESSAGE_DUMP
1812 const LogString *message_name() const override { return LOG_STR("list_entities_media_player_response"); }
1813#endif
1814 bool supports_pause{false};
1815 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1817 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1818 uint32_t calculate_size() const;
1819#ifdef HAS_PROTO_MESSAGE_DUMP
1820 const char *dump_to(DumpBuffer &out) const override;
1821#endif
1822
1823 protected:
1824};
1826 public:
1827 static constexpr uint8_t MESSAGE_TYPE = 64;
1828 static constexpr uint8_t ESTIMATED_SIZE = 18;
1829#ifdef HAS_PROTO_MESSAGE_DUMP
1830 const LogString *message_name() const override { return LOG_STR("media_player_state_response"); }
1831#endif
1833 float volume{0.0f};
1834 bool muted{false};
1835 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1836 uint32_t calculate_size() const;
1837#ifdef HAS_PROTO_MESSAGE_DUMP
1838 const char *dump_to(DumpBuffer &out) const override;
1839#endif
1840
1841 protected:
1842};
1844 public:
1845 static constexpr uint8_t MESSAGE_TYPE = 65;
1846 static constexpr uint8_t ESTIMATED_SIZE = 35;
1847#ifdef HAS_PROTO_MESSAGE_DUMP
1848 const LogString *message_name() const override { return LOG_STR("media_player_command_request"); }
1849#endif
1850 bool has_command{false};
1852 bool has_volume{false};
1853 float volume{0.0f};
1854 bool has_media_url{false};
1856 bool has_announcement{false};
1857 bool announcement{false};
1858#ifdef HAS_PROTO_MESSAGE_DUMP
1859 const char *dump_to(DumpBuffer &out) const override;
1860#endif
1861
1862 protected:
1863 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1864 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1865 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1866};
1867#endif
1868#ifdef USE_BLUETOOTH_PROXY
1870 public:
1871 static constexpr uint8_t MESSAGE_TYPE = 66;
1872 static constexpr uint8_t ESTIMATED_SIZE = 4;
1873#ifdef HAS_PROTO_MESSAGE_DUMP
1874 const LogString *message_name() const override { return LOG_STR("subscribe_bluetooth_le_advertisements_request"); }
1875#endif
1877#ifdef HAS_PROTO_MESSAGE_DUMP
1878 const char *dump_to(DumpBuffer &out) const override;
1879#endif
1880
1881 protected:
1882 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1883};
1885 public:
1886 uint64_t address{0};
1887 int32_t rssi{0};
1889 uint8_t data[62]{};
1890 uint8_t data_len{0};
1891#ifdef HAS_PROTO_MESSAGE_DUMP
1892 const char *dump_to(DumpBuffer &out) const override;
1893#endif
1894
1895 protected:
1896};
1898 public:
1899 static constexpr uint8_t MESSAGE_TYPE = 93;
1900 static constexpr uint8_t ESTIMATED_SIZE = 136;
1901#ifdef HAS_PROTO_MESSAGE_DUMP
1902 const LogString *message_name() const override { return LOG_STR("bluetooth_le_raw_advertisements_response"); }
1903#endif
1904 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
1906 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1908#ifdef HAS_PROTO_MESSAGE_DUMP
1909 const char *dump_to(DumpBuffer &out) const override;
1910#endif
1911
1912 protected:
1913};
1915 public:
1916 static constexpr uint8_t MESSAGE_TYPE = 68;
1917 static constexpr uint8_t ESTIMATED_SIZE = 12;
1918#ifdef HAS_PROTO_MESSAGE_DUMP
1919 const LogString *message_name() const override { return LOG_STR("bluetooth_device_request"); }
1920#endif
1921 uint64_t address{0};
1923 bool has_address_type{false};
1925#ifdef HAS_PROTO_MESSAGE_DUMP
1926 const char *dump_to(DumpBuffer &out) const override;
1927#endif
1928
1929 protected:
1930 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1931};
1933 public:
1934 static constexpr uint8_t MESSAGE_TYPE = 69;
1935 static constexpr uint8_t ESTIMATED_SIZE = 14;
1936#ifdef HAS_PROTO_MESSAGE_DUMP
1937 const LogString *message_name() const override { return LOG_STR("bluetooth_device_connection_response"); }
1938#endif
1939 uint64_t address{0};
1940 bool connected{false};
1942 int32_t error{0};
1943 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1944 uint32_t calculate_size() const;
1945#ifdef HAS_PROTO_MESSAGE_DUMP
1946 const char *dump_to(DumpBuffer &out) const override;
1947#endif
1948
1949 protected:
1950};
1952 public:
1953 static constexpr uint8_t MESSAGE_TYPE = 70;
1954 static constexpr uint8_t ESTIMATED_SIZE = 4;
1955#ifdef HAS_PROTO_MESSAGE_DUMP
1956 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_request"); }
1957#endif
1958 uint64_t address{0};
1959#ifdef HAS_PROTO_MESSAGE_DUMP
1960 const char *dump_to(DumpBuffer &out) const override;
1961#endif
1962
1963 protected:
1964 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1965};
1967 public:
1968 std::array<uint64_t, 2> uuid{};
1971 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1972 uint32_t calculate_size() const;
1973#ifdef HAS_PROTO_MESSAGE_DUMP
1974 const char *dump_to(DumpBuffer &out) const override;
1975#endif
1976
1977 protected:
1978};
1980 public:
1981 std::array<uint64_t, 2> uuid{};
1986 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1987 uint32_t calculate_size() const;
1988#ifdef HAS_PROTO_MESSAGE_DUMP
1989 const char *dump_to(DumpBuffer &out) const override;
1990#endif
1991
1992 protected:
1993};
1995 public:
1996 std::array<uint64_t, 2> uuid{};
2000 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2001 uint32_t calculate_size() const;
2002#ifdef HAS_PROTO_MESSAGE_DUMP
2003 const char *dump_to(DumpBuffer &out) const override;
2004#endif
2005
2006 protected:
2007};
2009 public:
2010 static constexpr uint8_t MESSAGE_TYPE = 71;
2011 static constexpr uint8_t ESTIMATED_SIZE = 38;
2012#ifdef HAS_PROTO_MESSAGE_DUMP
2013 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_response"); }
2014#endif
2015 uint64_t address{0};
2016 std::vector<BluetoothGATTService> services{};
2017 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2018 uint32_t calculate_size() const;
2019#ifdef HAS_PROTO_MESSAGE_DUMP
2020 const char *dump_to(DumpBuffer &out) const override;
2021#endif
2022
2023 protected:
2024};
2026 public:
2027 static constexpr uint8_t MESSAGE_TYPE = 72;
2028 static constexpr uint8_t ESTIMATED_SIZE = 4;
2029#ifdef HAS_PROTO_MESSAGE_DUMP
2030 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_done_response"); }
2031#endif
2032 uint64_t address{0};
2033 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2034 uint32_t calculate_size() const;
2035#ifdef HAS_PROTO_MESSAGE_DUMP
2036 const char *dump_to(DumpBuffer &out) const override;
2037#endif
2038
2039 protected:
2040};
2042 public:
2043 static constexpr uint8_t MESSAGE_TYPE = 73;
2044 static constexpr uint8_t ESTIMATED_SIZE = 8;
2045#ifdef HAS_PROTO_MESSAGE_DUMP
2046 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_request"); }
2047#endif
2048 uint64_t address{0};
2050#ifdef HAS_PROTO_MESSAGE_DUMP
2051 const char *dump_to(DumpBuffer &out) const override;
2052#endif
2053
2054 protected:
2055 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2056};
2058 public:
2059 static constexpr uint8_t MESSAGE_TYPE = 74;
2060 static constexpr uint8_t ESTIMATED_SIZE = 27;
2061#ifdef HAS_PROTO_MESSAGE_DUMP
2062 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_response"); }
2063#endif
2064 uint64_t address{0};
2066 const uint8_t *data_ptr_{nullptr};
2067 size_t data_len_{0};
2068 void set_data(const uint8_t *data, size_t len) {
2069 this->data_ptr_ = data;
2070 this->data_len_ = len;
2071 }
2072 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2073 uint32_t calculate_size() const;
2074#ifdef HAS_PROTO_MESSAGE_DUMP
2075 const char *dump_to(DumpBuffer &out) const override;
2076#endif
2077
2078 protected:
2079};
2081 public:
2082 static constexpr uint8_t MESSAGE_TYPE = 75;
2083 static constexpr uint8_t ESTIMATED_SIZE = 29;
2084#ifdef HAS_PROTO_MESSAGE_DUMP
2085 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_request"); }
2086#endif
2087 uint64_t address{0};
2089 bool response{false};
2090 const uint8_t *data{nullptr};
2091 uint16_t data_len{0};
2092#ifdef HAS_PROTO_MESSAGE_DUMP
2093 const char *dump_to(DumpBuffer &out) const override;
2094#endif
2095
2096 protected:
2097 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2098 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2099};
2101 public:
2102 static constexpr uint8_t MESSAGE_TYPE = 76;
2103 static constexpr uint8_t ESTIMATED_SIZE = 8;
2104#ifdef HAS_PROTO_MESSAGE_DUMP
2105 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_descriptor_request"); }
2106#endif
2107 uint64_t address{0};
2109#ifdef HAS_PROTO_MESSAGE_DUMP
2110 const char *dump_to(DumpBuffer &out) const override;
2111#endif
2112
2113 protected:
2114 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2115};
2117 public:
2118 static constexpr uint8_t MESSAGE_TYPE = 77;
2119 static constexpr uint8_t ESTIMATED_SIZE = 27;
2120#ifdef HAS_PROTO_MESSAGE_DUMP
2121 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_descriptor_request"); }
2122#endif
2123 uint64_t address{0};
2125 const uint8_t *data{nullptr};
2126 uint16_t data_len{0};
2127#ifdef HAS_PROTO_MESSAGE_DUMP
2128 const char *dump_to(DumpBuffer &out) const override;
2129#endif
2130
2131 protected:
2132 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2133 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2134};
2136 public:
2137 static constexpr uint8_t MESSAGE_TYPE = 78;
2138 static constexpr uint8_t ESTIMATED_SIZE = 10;
2139#ifdef HAS_PROTO_MESSAGE_DUMP
2140 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_request"); }
2141#endif
2142 uint64_t address{0};
2144 bool enable{false};
2145#ifdef HAS_PROTO_MESSAGE_DUMP
2146 const char *dump_to(DumpBuffer &out) const override;
2147#endif
2148
2149 protected:
2150 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2151};
2153 public:
2154 static constexpr uint8_t MESSAGE_TYPE = 79;
2155 static constexpr uint8_t ESTIMATED_SIZE = 27;
2156#ifdef HAS_PROTO_MESSAGE_DUMP
2157 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_data_response"); }
2158#endif
2159 uint64_t address{0};
2161 const uint8_t *data_ptr_{nullptr};
2162 size_t data_len_{0};
2163 void set_data(const uint8_t *data, size_t len) {
2164 this->data_ptr_ = data;
2165 this->data_len_ = len;
2166 }
2167 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2168 uint32_t calculate_size() const;
2169#ifdef HAS_PROTO_MESSAGE_DUMP
2170 const char *dump_to(DumpBuffer &out) const override;
2171#endif
2172
2173 protected:
2174};
2176 public:
2177 static constexpr uint8_t MESSAGE_TYPE = 81;
2178 static constexpr uint8_t ESTIMATED_SIZE = 20;
2179#ifdef HAS_PROTO_MESSAGE_DUMP
2180 const LogString *message_name() const override { return LOG_STR("bluetooth_connections_free_response"); }
2181#endif
2184 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2185 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2186 uint32_t calculate_size() const;
2187#ifdef HAS_PROTO_MESSAGE_DUMP
2188 const char *dump_to(DumpBuffer &out) const override;
2189#endif
2190
2191 protected:
2192};
2194 public:
2195 static constexpr uint8_t MESSAGE_TYPE = 82;
2196 static constexpr uint8_t ESTIMATED_SIZE = 12;
2197#ifdef HAS_PROTO_MESSAGE_DUMP
2198 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_error_response"); }
2199#endif
2200 uint64_t address{0};
2202 int32_t error{0};
2203 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2204 uint32_t calculate_size() const;
2205#ifdef HAS_PROTO_MESSAGE_DUMP
2206 const char *dump_to(DumpBuffer &out) const override;
2207#endif
2208
2209 protected:
2210};
2212 public:
2213 static constexpr uint8_t MESSAGE_TYPE = 83;
2214 static constexpr uint8_t ESTIMATED_SIZE = 8;
2215#ifdef HAS_PROTO_MESSAGE_DUMP
2216 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_response"); }
2217#endif
2218 uint64_t address{0};
2220 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2221 uint32_t calculate_size() const;
2222#ifdef HAS_PROTO_MESSAGE_DUMP
2223 const char *dump_to(DumpBuffer &out) const override;
2224#endif
2225
2226 protected:
2227};
2229 public:
2230 static constexpr uint8_t MESSAGE_TYPE = 84;
2231 static constexpr uint8_t ESTIMATED_SIZE = 8;
2232#ifdef HAS_PROTO_MESSAGE_DUMP
2233 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_response"); }
2234#endif
2235 uint64_t address{0};
2237 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2238 uint32_t calculate_size() const;
2239#ifdef HAS_PROTO_MESSAGE_DUMP
2240 const char *dump_to(DumpBuffer &out) const override;
2241#endif
2242
2243 protected:
2244};
2246 public:
2247 static constexpr uint8_t MESSAGE_TYPE = 85;
2248 static constexpr uint8_t ESTIMATED_SIZE = 10;
2249#ifdef HAS_PROTO_MESSAGE_DUMP
2250 const LogString *message_name() const override { return LOG_STR("bluetooth_device_pairing_response"); }
2251#endif
2252 uint64_t address{0};
2253 bool paired{false};
2254 int32_t error{0};
2255 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2256 uint32_t calculate_size() const;
2257#ifdef HAS_PROTO_MESSAGE_DUMP
2258 const char *dump_to(DumpBuffer &out) const override;
2259#endif
2260
2261 protected:
2262};
2264 public:
2265 static constexpr uint8_t MESSAGE_TYPE = 86;
2266 static constexpr uint8_t ESTIMATED_SIZE = 10;
2267#ifdef HAS_PROTO_MESSAGE_DUMP
2268 const LogString *message_name() const override { return LOG_STR("bluetooth_device_unpairing_response"); }
2269#endif
2270 uint64_t address{0};
2271 bool success{false};
2272 int32_t error{0};
2273 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2274 uint32_t calculate_size() const;
2275#ifdef HAS_PROTO_MESSAGE_DUMP
2276 const char *dump_to(DumpBuffer &out) const override;
2277#endif
2278
2279 protected:
2280};
2282 public:
2283 static constexpr uint8_t MESSAGE_TYPE = 88;
2284 static constexpr uint8_t ESTIMATED_SIZE = 10;
2285#ifdef HAS_PROTO_MESSAGE_DUMP
2286 const LogString *message_name() const override { return LOG_STR("bluetooth_device_clear_cache_response"); }
2287#endif
2288 uint64_t address{0};
2289 bool success{false};
2290 int32_t error{0};
2291 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2292 uint32_t calculate_size() const;
2293#ifdef HAS_PROTO_MESSAGE_DUMP
2294 const char *dump_to(DumpBuffer &out) const override;
2295#endif
2296
2297 protected:
2298};
2300 public:
2301 static constexpr uint8_t MESSAGE_TYPE = 126;
2302 static constexpr uint8_t ESTIMATED_SIZE = 6;
2303#ifdef HAS_PROTO_MESSAGE_DUMP
2304 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_state_response"); }
2305#endif
2309 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2310 uint32_t calculate_size() const;
2311#ifdef HAS_PROTO_MESSAGE_DUMP
2312 const char *dump_to(DumpBuffer &out) const override;
2313#endif
2314
2315 protected:
2316};
2318 public:
2319 static constexpr uint8_t MESSAGE_TYPE = 127;
2320 static constexpr uint8_t ESTIMATED_SIZE = 2;
2321#ifdef HAS_PROTO_MESSAGE_DUMP
2322 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_set_mode_request"); }
2323#endif
2325#ifdef HAS_PROTO_MESSAGE_DUMP
2326 const char *dump_to(DumpBuffer &out) const override;
2327#endif
2328
2329 protected:
2330 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2331};
2332#endif
2333#ifdef USE_VOICE_ASSISTANT
2335 public:
2336 static constexpr uint8_t MESSAGE_TYPE = 89;
2337 static constexpr uint8_t ESTIMATED_SIZE = 6;
2338#ifdef HAS_PROTO_MESSAGE_DUMP
2339 const LogString *message_name() const override { return LOG_STR("subscribe_voice_assistant_request"); }
2340#endif
2341 bool subscribe{false};
2343#ifdef HAS_PROTO_MESSAGE_DUMP
2344 const char *dump_to(DumpBuffer &out) const override;
2345#endif
2346
2347 protected:
2348 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2349};
2351 public:
2355 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2356 uint32_t calculate_size() const;
2357#ifdef HAS_PROTO_MESSAGE_DUMP
2358 const char *dump_to(DumpBuffer &out) const override;
2359#endif
2360
2361 protected:
2362};
2364 public:
2365 static constexpr uint8_t MESSAGE_TYPE = 90;
2366 static constexpr uint8_t ESTIMATED_SIZE = 41;
2367#ifdef HAS_PROTO_MESSAGE_DUMP
2368 const LogString *message_name() const override { return LOG_STR("voice_assistant_request"); }
2369#endif
2370 bool start{false};
2375 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2376 uint32_t calculate_size() const;
2377#ifdef HAS_PROTO_MESSAGE_DUMP
2378 const char *dump_to(DumpBuffer &out) const override;
2379#endif
2380
2381 protected:
2382};
2384 public:
2385 static constexpr uint8_t MESSAGE_TYPE = 91;
2386 static constexpr uint8_t ESTIMATED_SIZE = 6;
2387#ifdef HAS_PROTO_MESSAGE_DUMP
2388 const LogString *message_name() const override { return LOG_STR("voice_assistant_response"); }
2389#endif
2391 bool error{false};
2392#ifdef HAS_PROTO_MESSAGE_DUMP
2393 const char *dump_to(DumpBuffer &out) const override;
2394#endif
2395
2396 protected:
2397 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2398};
2400 public:
2403#ifdef HAS_PROTO_MESSAGE_DUMP
2404 const char *dump_to(DumpBuffer &out) const override;
2405#endif
2406
2407 protected:
2408 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2409};
2411 public:
2412 static constexpr uint8_t MESSAGE_TYPE = 92;
2413 static constexpr uint8_t ESTIMATED_SIZE = 36;
2414#ifdef HAS_PROTO_MESSAGE_DUMP
2415 const LogString *message_name() const override { return LOG_STR("voice_assistant_event_response"); }
2416#endif
2418 std::vector<VoiceAssistantEventData> data{};
2419#ifdef HAS_PROTO_MESSAGE_DUMP
2420 const char *dump_to(DumpBuffer &out) const override;
2421#endif
2422
2423 protected:
2424 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2425 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2426};
2428 public:
2429 static constexpr uint8_t MESSAGE_TYPE = 106;
2430 static constexpr uint8_t ESTIMATED_SIZE = 21;
2431#ifdef HAS_PROTO_MESSAGE_DUMP
2432 const LogString *message_name() const override { return LOG_STR("voice_assistant_audio"); }
2433#endif
2434 const uint8_t *data{nullptr};
2435 uint16_t data_len{0};
2436 bool end{false};
2437 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2438 uint32_t calculate_size() const;
2439#ifdef HAS_PROTO_MESSAGE_DUMP
2440 const char *dump_to(DumpBuffer &out) const override;
2441#endif
2442
2443 protected:
2444 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2445 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2446};
2448 public:
2449 static constexpr uint8_t MESSAGE_TYPE = 115;
2450 static constexpr uint8_t ESTIMATED_SIZE = 30;
2451#ifdef HAS_PROTO_MESSAGE_DUMP
2452 const LogString *message_name() const override { return LOG_STR("voice_assistant_timer_event_response"); }
2453#endif
2459 bool is_active{false};
2460#ifdef HAS_PROTO_MESSAGE_DUMP
2461 const char *dump_to(DumpBuffer &out) const override;
2462#endif
2463
2464 protected:
2465 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2466 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2467};
2469 public:
2470 static constexpr uint8_t MESSAGE_TYPE = 119;
2471 static constexpr uint8_t ESTIMATED_SIZE = 29;
2472#ifdef HAS_PROTO_MESSAGE_DUMP
2473 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_request"); }
2474#endif
2479#ifdef HAS_PROTO_MESSAGE_DUMP
2480 const char *dump_to(DumpBuffer &out) const override;
2481#endif
2482
2483 protected:
2484 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2485 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2486};
2488 public:
2489 static constexpr uint8_t MESSAGE_TYPE = 120;
2490 static constexpr uint8_t ESTIMATED_SIZE = 2;
2491#ifdef HAS_PROTO_MESSAGE_DUMP
2492 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_finished"); }
2493#endif
2494 bool success{false};
2495 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2496 uint32_t calculate_size() const;
2497#ifdef HAS_PROTO_MESSAGE_DUMP
2498 const char *dump_to(DumpBuffer &out) const override;
2499#endif
2500
2501 protected:
2502};
2504 public:
2507 std::vector<std::string> trained_languages{};
2508 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2509 uint32_t calculate_size() const;
2510#ifdef HAS_PROTO_MESSAGE_DUMP
2511 const char *dump_to(DumpBuffer &out) const override;
2512#endif
2513
2514 protected:
2515};
2517 public:
2520 std::vector<std::string> trained_languages{};
2525#ifdef HAS_PROTO_MESSAGE_DUMP
2526 const char *dump_to(DumpBuffer &out) const override;
2527#endif
2528
2529 protected:
2530 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2531 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2532};
2534 public:
2535 static constexpr uint8_t MESSAGE_TYPE = 121;
2536 static constexpr uint8_t ESTIMATED_SIZE = 34;
2537#ifdef HAS_PROTO_MESSAGE_DUMP
2538 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_request"); }
2539#endif
2540 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
2541#ifdef HAS_PROTO_MESSAGE_DUMP
2542 const char *dump_to(DumpBuffer &out) const override;
2543#endif
2544
2545 protected:
2546 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2547};
2549 public:
2550 static constexpr uint8_t MESSAGE_TYPE = 122;
2551 static constexpr uint8_t ESTIMATED_SIZE = 56;
2552#ifdef HAS_PROTO_MESSAGE_DUMP
2553 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_response"); }
2554#endif
2555 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2556 const std::vector<std::string> *active_wake_words{};
2558 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2559 uint32_t calculate_size() const;
2560#ifdef HAS_PROTO_MESSAGE_DUMP
2561 const char *dump_to(DumpBuffer &out) const override;
2562#endif
2563
2564 protected:
2565};
2567 public:
2568 static constexpr uint8_t MESSAGE_TYPE = 123;
2569 static constexpr uint8_t ESTIMATED_SIZE = 18;
2570#ifdef HAS_PROTO_MESSAGE_DUMP
2571 const LogString *message_name() const override { return LOG_STR("voice_assistant_set_configuration"); }
2572#endif
2573 std::vector<std::string> active_wake_words{};
2574#ifdef HAS_PROTO_MESSAGE_DUMP
2575 const char *dump_to(DumpBuffer &out) const override;
2576#endif
2577
2578 protected:
2579 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2580};
2581#endif
2582#ifdef USE_ALARM_CONTROL_PANEL
2584 public:
2585 static constexpr uint8_t MESSAGE_TYPE = 94;
2586 static constexpr uint8_t ESTIMATED_SIZE = 48;
2587#ifdef HAS_PROTO_MESSAGE_DUMP
2588 const LogString *message_name() const override { return LOG_STR("list_entities_alarm_control_panel_response"); }
2589#endif
2591 bool requires_code{false};
2593 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2594 uint32_t calculate_size() const;
2595#ifdef HAS_PROTO_MESSAGE_DUMP
2596 const char *dump_to(DumpBuffer &out) const override;
2597#endif
2598
2599 protected:
2600};
2602 public:
2603 static constexpr uint8_t MESSAGE_TYPE = 95;
2604 static constexpr uint8_t ESTIMATED_SIZE = 11;
2605#ifdef HAS_PROTO_MESSAGE_DUMP
2606 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_state_response"); }
2607#endif
2609 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2610 uint32_t calculate_size() const;
2611#ifdef HAS_PROTO_MESSAGE_DUMP
2612 const char *dump_to(DumpBuffer &out) const override;
2613#endif
2614
2615 protected:
2616};
2618 public:
2619 static constexpr uint8_t MESSAGE_TYPE = 96;
2620 static constexpr uint8_t ESTIMATED_SIZE = 20;
2621#ifdef HAS_PROTO_MESSAGE_DUMP
2622 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_command_request"); }
2623#endif
2626#ifdef HAS_PROTO_MESSAGE_DUMP
2627 const char *dump_to(DumpBuffer &out) const override;
2628#endif
2629
2630 protected:
2631 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2632 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2633 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2634};
2635#endif
2636#ifdef USE_TEXT
2638 public:
2639 static constexpr uint8_t MESSAGE_TYPE = 97;
2640 static constexpr uint8_t ESTIMATED_SIZE = 59;
2641#ifdef HAS_PROTO_MESSAGE_DUMP
2642 const LogString *message_name() const override { return LOG_STR("list_entities_text_response"); }
2643#endif
2648 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2649 uint32_t calculate_size() const;
2650#ifdef HAS_PROTO_MESSAGE_DUMP
2651 const char *dump_to(DumpBuffer &out) const override;
2652#endif
2653
2654 protected:
2655};
2657 public:
2658 static constexpr uint8_t MESSAGE_TYPE = 98;
2659 static constexpr uint8_t ESTIMATED_SIZE = 20;
2660#ifdef HAS_PROTO_MESSAGE_DUMP
2661 const LogString *message_name() const override { return LOG_STR("text_state_response"); }
2662#endif
2664 bool missing_state{false};
2665 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2666 uint32_t calculate_size() const;
2667#ifdef HAS_PROTO_MESSAGE_DUMP
2668 const char *dump_to(DumpBuffer &out) const override;
2669#endif
2670
2671 protected:
2672};
2674 public:
2675 static constexpr uint8_t MESSAGE_TYPE = 99;
2676 static constexpr uint8_t ESTIMATED_SIZE = 18;
2677#ifdef HAS_PROTO_MESSAGE_DUMP
2678 const LogString *message_name() const override { return LOG_STR("text_command_request"); }
2679#endif
2681#ifdef HAS_PROTO_MESSAGE_DUMP
2682 const char *dump_to(DumpBuffer &out) const override;
2683#endif
2684
2685 protected:
2686 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2687 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2688 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2689};
2690#endif
2691#ifdef USE_DATETIME_DATE
2693 public:
2694 static constexpr uint8_t MESSAGE_TYPE = 100;
2695 static constexpr uint8_t ESTIMATED_SIZE = 40;
2696#ifdef HAS_PROTO_MESSAGE_DUMP
2697 const LogString *message_name() const override { return LOG_STR("list_entities_date_response"); }
2698#endif
2699 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2700 uint32_t calculate_size() const;
2701#ifdef HAS_PROTO_MESSAGE_DUMP
2702 const char *dump_to(DumpBuffer &out) const override;
2703#endif
2704
2705 protected:
2706};
2708 public:
2709 static constexpr uint8_t MESSAGE_TYPE = 101;
2710 static constexpr uint8_t ESTIMATED_SIZE = 23;
2711#ifdef HAS_PROTO_MESSAGE_DUMP
2712 const LogString *message_name() const override { return LOG_STR("date_state_response"); }
2713#endif
2714 bool missing_state{false};
2718 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2719 uint32_t calculate_size() const;
2720#ifdef HAS_PROTO_MESSAGE_DUMP
2721 const char *dump_to(DumpBuffer &out) const override;
2722#endif
2723
2724 protected:
2725};
2727 public:
2728 static constexpr uint8_t MESSAGE_TYPE = 102;
2729 static constexpr uint8_t ESTIMATED_SIZE = 21;
2730#ifdef HAS_PROTO_MESSAGE_DUMP
2731 const LogString *message_name() const override { return LOG_STR("date_command_request"); }
2732#endif
2736#ifdef HAS_PROTO_MESSAGE_DUMP
2737 const char *dump_to(DumpBuffer &out) const override;
2738#endif
2739
2740 protected:
2741 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2742 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2743};
2744#endif
2745#ifdef USE_DATETIME_TIME
2747 public:
2748 static constexpr uint8_t MESSAGE_TYPE = 103;
2749 static constexpr uint8_t ESTIMATED_SIZE = 40;
2750#ifdef HAS_PROTO_MESSAGE_DUMP
2751 const LogString *message_name() const override { return LOG_STR("list_entities_time_response"); }
2752#endif
2753 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2754 uint32_t calculate_size() const;
2755#ifdef HAS_PROTO_MESSAGE_DUMP
2756 const char *dump_to(DumpBuffer &out) const override;
2757#endif
2758
2759 protected:
2760};
2762 public:
2763 static constexpr uint8_t MESSAGE_TYPE = 104;
2764 static constexpr uint8_t ESTIMATED_SIZE = 23;
2765#ifdef HAS_PROTO_MESSAGE_DUMP
2766 const LogString *message_name() const override { return LOG_STR("time_state_response"); }
2767#endif
2768 bool missing_state{false};
2772 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2773 uint32_t calculate_size() const;
2774#ifdef HAS_PROTO_MESSAGE_DUMP
2775 const char *dump_to(DumpBuffer &out) const override;
2776#endif
2777
2778 protected:
2779};
2781 public:
2782 static constexpr uint8_t MESSAGE_TYPE = 105;
2783 static constexpr uint8_t ESTIMATED_SIZE = 21;
2784#ifdef HAS_PROTO_MESSAGE_DUMP
2785 const LogString *message_name() const override { return LOG_STR("time_command_request"); }
2786#endif
2790#ifdef HAS_PROTO_MESSAGE_DUMP
2791 const char *dump_to(DumpBuffer &out) const override;
2792#endif
2793
2794 protected:
2795 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2796 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2797};
2798#endif
2799#ifdef USE_EVENT
2801 public:
2802 static constexpr uint8_t MESSAGE_TYPE = 107;
2803 static constexpr uint8_t ESTIMATED_SIZE = 67;
2804#ifdef HAS_PROTO_MESSAGE_DUMP
2805 const LogString *message_name() const override { return LOG_STR("list_entities_event_response"); }
2806#endif
2809 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2810 uint32_t calculate_size() const;
2811#ifdef HAS_PROTO_MESSAGE_DUMP
2812 const char *dump_to(DumpBuffer &out) const override;
2813#endif
2814
2815 protected:
2816};
2818 public:
2819 static constexpr uint8_t MESSAGE_TYPE = 108;
2820 static constexpr uint8_t ESTIMATED_SIZE = 18;
2821#ifdef HAS_PROTO_MESSAGE_DUMP
2822 const LogString *message_name() const override { return LOG_STR("event_response"); }
2823#endif
2825 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2826 uint32_t calculate_size() const;
2827#ifdef HAS_PROTO_MESSAGE_DUMP
2828 const char *dump_to(DumpBuffer &out) const override;
2829#endif
2830
2831 protected:
2832};
2833#endif
2834#ifdef USE_VALVE
2836 public:
2837 static constexpr uint8_t MESSAGE_TYPE = 109;
2838 static constexpr uint8_t ESTIMATED_SIZE = 55;
2839#ifdef HAS_PROTO_MESSAGE_DUMP
2840 const LogString *message_name() const override { return LOG_STR("list_entities_valve_response"); }
2841#endif
2843 bool assumed_state{false};
2845 bool supports_stop{false};
2846 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2847 uint32_t calculate_size() const;
2848#ifdef HAS_PROTO_MESSAGE_DUMP
2849 const char *dump_to(DumpBuffer &out) const override;
2850#endif
2851
2852 protected:
2853};
2855 public:
2856 static constexpr uint8_t MESSAGE_TYPE = 110;
2857 static constexpr uint8_t ESTIMATED_SIZE = 16;
2858#ifdef HAS_PROTO_MESSAGE_DUMP
2859 const LogString *message_name() const override { return LOG_STR("valve_state_response"); }
2860#endif
2861 float position{0.0f};
2863 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2864 uint32_t calculate_size() const;
2865#ifdef HAS_PROTO_MESSAGE_DUMP
2866 const char *dump_to(DumpBuffer &out) const override;
2867#endif
2868
2869 protected:
2870};
2872 public:
2873 static constexpr uint8_t MESSAGE_TYPE = 111;
2874 static constexpr uint8_t ESTIMATED_SIZE = 18;
2875#ifdef HAS_PROTO_MESSAGE_DUMP
2876 const LogString *message_name() const override { return LOG_STR("valve_command_request"); }
2877#endif
2878 bool has_position{false};
2879 float position{0.0f};
2880 bool stop{false};
2881#ifdef HAS_PROTO_MESSAGE_DUMP
2882 const char *dump_to(DumpBuffer &out) const override;
2883#endif
2884
2885 protected:
2886 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2887 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2888};
2889#endif
2890#ifdef USE_DATETIME_DATETIME
2892 public:
2893 static constexpr uint8_t MESSAGE_TYPE = 112;
2894 static constexpr uint8_t ESTIMATED_SIZE = 40;
2895#ifdef HAS_PROTO_MESSAGE_DUMP
2896 const LogString *message_name() const override { return LOG_STR("list_entities_date_time_response"); }
2897#endif
2898 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2899 uint32_t calculate_size() const;
2900#ifdef HAS_PROTO_MESSAGE_DUMP
2901 const char *dump_to(DumpBuffer &out) const override;
2902#endif
2903
2904 protected:
2905};
2907 public:
2908 static constexpr uint8_t MESSAGE_TYPE = 113;
2909 static constexpr uint8_t ESTIMATED_SIZE = 16;
2910#ifdef HAS_PROTO_MESSAGE_DUMP
2911 const LogString *message_name() const override { return LOG_STR("date_time_state_response"); }
2912#endif
2913 bool missing_state{false};
2915 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2916 uint32_t calculate_size() const;
2917#ifdef HAS_PROTO_MESSAGE_DUMP
2918 const char *dump_to(DumpBuffer &out) const override;
2919#endif
2920
2921 protected:
2922};
2924 public:
2925 static constexpr uint8_t MESSAGE_TYPE = 114;
2926 static constexpr uint8_t ESTIMATED_SIZE = 14;
2927#ifdef HAS_PROTO_MESSAGE_DUMP
2928 const LogString *message_name() const override { return LOG_STR("date_time_command_request"); }
2929#endif
2931#ifdef HAS_PROTO_MESSAGE_DUMP
2932 const char *dump_to(DumpBuffer &out) const override;
2933#endif
2934
2935 protected:
2936 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2937 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2938};
2939#endif
2940#ifdef USE_UPDATE
2942 public:
2943 static constexpr uint8_t MESSAGE_TYPE = 116;
2944 static constexpr uint8_t ESTIMATED_SIZE = 49;
2945#ifdef HAS_PROTO_MESSAGE_DUMP
2946 const LogString *message_name() const override { return LOG_STR("list_entities_update_response"); }
2947#endif
2949 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2950 uint32_t calculate_size() const;
2951#ifdef HAS_PROTO_MESSAGE_DUMP
2952 const char *dump_to(DumpBuffer &out) const override;
2953#endif
2954
2955 protected:
2956};
2958 public:
2959 static constexpr uint8_t MESSAGE_TYPE = 117;
2960 static constexpr uint8_t ESTIMATED_SIZE = 65;
2961#ifdef HAS_PROTO_MESSAGE_DUMP
2962 const LogString *message_name() const override { return LOG_STR("update_state_response"); }
2963#endif
2964 bool missing_state{false};
2965 bool in_progress{false};
2966 bool has_progress{false};
2967 float progress{0.0f};
2973 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2974 uint32_t calculate_size() const;
2975#ifdef HAS_PROTO_MESSAGE_DUMP
2976 const char *dump_to(DumpBuffer &out) const override;
2977#endif
2978
2979 protected:
2980};
2982 public:
2983 static constexpr uint8_t MESSAGE_TYPE = 118;
2984 static constexpr uint8_t ESTIMATED_SIZE = 11;
2985#ifdef HAS_PROTO_MESSAGE_DUMP
2986 const LogString *message_name() const override { return LOG_STR("update_command_request"); }
2987#endif
2989#ifdef HAS_PROTO_MESSAGE_DUMP
2990 const char *dump_to(DumpBuffer &out) const override;
2991#endif
2992
2993 protected:
2994 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2995 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2996};
2997#endif
2998#ifdef USE_ZWAVE_PROXY
3000 public:
3001 static constexpr uint8_t MESSAGE_TYPE = 128;
3002 static constexpr uint8_t ESTIMATED_SIZE = 19;
3003#ifdef HAS_PROTO_MESSAGE_DUMP
3004 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_frame"); }
3005#endif
3006 const uint8_t *data{nullptr};
3007 uint16_t data_len{0};
3008 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3009 uint32_t calculate_size() const;
3010#ifdef HAS_PROTO_MESSAGE_DUMP
3011 const char *dump_to(DumpBuffer &out) const override;
3012#endif
3013
3014 protected:
3015 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3016};
3018 public:
3019 static constexpr uint8_t MESSAGE_TYPE = 129;
3020 static constexpr uint8_t ESTIMATED_SIZE = 21;
3021#ifdef HAS_PROTO_MESSAGE_DUMP
3022 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_request"); }
3023#endif
3025 const uint8_t *data{nullptr};
3026 uint16_t data_len{0};
3027 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3028 uint32_t calculate_size() const;
3029#ifdef HAS_PROTO_MESSAGE_DUMP
3030 const char *dump_to(DumpBuffer &out) const override;
3031#endif
3032
3033 protected:
3034 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3035 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3036};
3037#endif
3038#ifdef USE_INFRARED
3040 public:
3041 static constexpr uint8_t MESSAGE_TYPE = 135;
3042 static constexpr uint8_t ESTIMATED_SIZE = 48;
3043#ifdef HAS_PROTO_MESSAGE_DUMP
3044 const LogString *message_name() const override { return LOG_STR("list_entities_infrared_response"); }
3045#endif
3048 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3049 uint32_t calculate_size() const;
3050#ifdef HAS_PROTO_MESSAGE_DUMP
3051 const char *dump_to(DumpBuffer &out) const override;
3052#endif
3053
3054 protected:
3055};
3056#endif
3057#ifdef USE_IR_RF
3059 public:
3060 static constexpr uint8_t MESSAGE_TYPE = 136;
3061 static constexpr uint8_t ESTIMATED_SIZE = 220;
3062#ifdef HAS_PROTO_MESSAGE_DUMP
3063 const LogString *message_name() const override { return LOG_STR("infrared_rf_transmit_raw_timings_request"); }
3064#endif
3065#ifdef USE_DEVICES
3067#endif
3071 const uint8_t *timings_data_{nullptr};
3072 uint16_t timings_length_{0};
3073 uint16_t timings_count_{0};
3074#ifdef HAS_PROTO_MESSAGE_DUMP
3075 const char *dump_to(DumpBuffer &out) const override;
3076#endif
3077
3078 protected:
3079 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3080 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3081 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3082};
3084 public:
3085 static constexpr uint8_t MESSAGE_TYPE = 137;
3086 static constexpr uint8_t ESTIMATED_SIZE = 17;
3087#ifdef HAS_PROTO_MESSAGE_DUMP
3088 const LogString *message_name() const override { return LOG_STR("infrared_rf_receive_event"); }
3089#endif
3090#ifdef USE_DEVICES
3092#endif
3094 const std::vector<int32_t> *timings{};
3095 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3096 uint32_t calculate_size() const;
3097#ifdef HAS_PROTO_MESSAGE_DUMP
3098 const char *dump_to(DumpBuffer &out) const override;
3099#endif
3100
3101 protected:
3102};
3103#endif
3104#ifdef USE_SERIAL_PROXY
3106 public:
3107 static constexpr uint8_t MESSAGE_TYPE = 138;
3108 static constexpr uint8_t ESTIMATED_SIZE = 20;
3109#ifdef HAS_PROTO_MESSAGE_DUMP
3110 const LogString *message_name() const override { return LOG_STR("serial_proxy_configure_request"); }
3111#endif
3114 bool flow_control{false};
3118#ifdef HAS_PROTO_MESSAGE_DUMP
3119 const char *dump_to(DumpBuffer &out) const override;
3120#endif
3121
3122 protected:
3123 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3124};
3126 public:
3127 static constexpr uint8_t MESSAGE_TYPE = 139;
3128 static constexpr uint8_t ESTIMATED_SIZE = 23;
3129#ifdef HAS_PROTO_MESSAGE_DUMP
3130 const LogString *message_name() const override { return LOG_STR("serial_proxy_data_received"); }
3131#endif
3133 const uint8_t *data_ptr_{nullptr};
3134 size_t data_len_{0};
3135 void set_data(const uint8_t *data, size_t len) {
3136 this->data_ptr_ = data;
3137 this->data_len_ = len;
3138 }
3139 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3140 uint32_t calculate_size() const;
3141#ifdef HAS_PROTO_MESSAGE_DUMP
3142 const char *dump_to(DumpBuffer &out) const override;
3143#endif
3144
3145 protected:
3146};
3148 public:
3149 static constexpr uint8_t MESSAGE_TYPE = 140;
3150 static constexpr uint8_t ESTIMATED_SIZE = 23;
3151#ifdef HAS_PROTO_MESSAGE_DUMP
3152 const LogString *message_name() const override { return LOG_STR("serial_proxy_write_request"); }
3153#endif
3155 const uint8_t *data{nullptr};
3156 uint16_t data_len{0};
3157#ifdef HAS_PROTO_MESSAGE_DUMP
3158 const char *dump_to(DumpBuffer &out) const override;
3159#endif
3160
3161 protected:
3162 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3163 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3164};
3166 public:
3167 static constexpr uint8_t MESSAGE_TYPE = 141;
3168 static constexpr uint8_t ESTIMATED_SIZE = 8;
3169#ifdef HAS_PROTO_MESSAGE_DUMP
3170 const LogString *message_name() const override { return LOG_STR("serial_proxy_set_modem_pins_request"); }
3171#endif
3174#ifdef HAS_PROTO_MESSAGE_DUMP
3175 const char *dump_to(DumpBuffer &out) const override;
3176#endif
3177
3178 protected:
3179 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3180};
3182 public:
3183 static constexpr uint8_t MESSAGE_TYPE = 142;
3184 static constexpr uint8_t ESTIMATED_SIZE = 4;
3185#ifdef HAS_PROTO_MESSAGE_DUMP
3186 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_request"); }
3187#endif
3189#ifdef HAS_PROTO_MESSAGE_DUMP
3190 const char *dump_to(DumpBuffer &out) const override;
3191#endif
3192
3193 protected:
3194 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3195};
3197 public:
3198 static constexpr uint8_t MESSAGE_TYPE = 143;
3199 static constexpr uint8_t ESTIMATED_SIZE = 8;
3200#ifdef HAS_PROTO_MESSAGE_DUMP
3201 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_response"); }
3202#endif
3205 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3206 uint32_t calculate_size() const;
3207#ifdef HAS_PROTO_MESSAGE_DUMP
3208 const char *dump_to(DumpBuffer &out) const override;
3209#endif
3210
3211 protected:
3212};
3214 public:
3215 static constexpr uint8_t MESSAGE_TYPE = 144;
3216 static constexpr uint8_t ESTIMATED_SIZE = 6;
3217#ifdef HAS_PROTO_MESSAGE_DUMP
3218 const LogString *message_name() const override { return LOG_STR("serial_proxy_request"); }
3219#endif
3222#ifdef HAS_PROTO_MESSAGE_DUMP
3223 const char *dump_to(DumpBuffer &out) const override;
3224#endif
3225
3226 protected:
3227 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3228};
3230 public:
3231 static constexpr uint8_t MESSAGE_TYPE = 147;
3232 static constexpr uint8_t ESTIMATED_SIZE = 17;
3233#ifdef HAS_PROTO_MESSAGE_DUMP
3234 const LogString *message_name() const override { return LOG_STR("serial_proxy_request_response"); }
3235#endif
3240 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3241 uint32_t calculate_size() const;
3242#ifdef HAS_PROTO_MESSAGE_DUMP
3243 const char *dump_to(DumpBuffer &out) const override;
3244#endif
3245
3246 protected:
3247};
3248#endif
3249#ifdef USE_BLUETOOTH_PROXY
3251 public:
3252 static constexpr uint8_t MESSAGE_TYPE = 145;
3253 static constexpr uint8_t ESTIMATED_SIZE = 20;
3254#ifdef HAS_PROTO_MESSAGE_DUMP
3255 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_request"); }
3256#endif
3257 uint64_t address{0};
3262#ifdef HAS_PROTO_MESSAGE_DUMP
3263 const char *dump_to(DumpBuffer &out) const override;
3264#endif
3265
3266 protected:
3267 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3268};
3270 public:
3271 static constexpr uint8_t MESSAGE_TYPE = 146;
3272 static constexpr uint8_t ESTIMATED_SIZE = 8;
3273#ifdef HAS_PROTO_MESSAGE_DUMP
3274 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_response"); }
3275#endif
3276 uint64_t address{0};
3277 int32_t error{0};
3278 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3279 uint32_t calculate_size() const;
3280#ifdef HAS_PROTO_MESSAGE_DUMP
3281 const char *dump_to(DumpBuffer &out) const override;
3282#endif
3283
3284 protected:
3285};
3286#endif
3287
3288} // namespace esphome::api
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
Definition helpers.h:522
StringRef is a reference to a string owned by something else.
Definition string_ref.h:26
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3171
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3145
const LogString * message_name() const override
Definition api_pb2.h:2622
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2624
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3160
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2620
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2604
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelState state
Definition api_pb2.h:2608
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2603
const LogString * message_name() const override
Definition api_pb2.h:2606
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3127
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.cpp:57
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:51
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:618
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:253
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:619
const LogString * message_name() const override
Definition api_pb2.h:621
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2184
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2180
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2653
const LogString * message_name() const override
Definition api_pb2.h:2286
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2741
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1937
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2398
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2248
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2247
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2713
const LogString * message_name() const override
Definition api_pb2.h:2250
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1916
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1922
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1917
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1919
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
const LogString * message_name() const override
Definition api_pb2.h:2268
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2727
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:1984
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1981
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2444
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2424
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1968
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2196
const LogString * message_name() const override
Definition api_pb2.h:2198
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2675
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2195
const LogString * message_name() const override
Definition api_pb2.h:2030
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2520
const LogString * message_name() const override
Definition api_pb2.h:1956
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1954
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2414
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2502
const LogString * message_name() const override
Definition api_pb2.h:2013
std::vector< BluetoothGATTService > services
Definition api_pb2.h:2016
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2639
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2157
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2163
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2155
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2138
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2137
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2623
const LogString * message_name() const override
Definition api_pb2.h:2140
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2230
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2231
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2233
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2701
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2105
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2585
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2043
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2046
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2530
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2044
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2059
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2068
const LogString * message_name() const override
Definition api_pb2.h:2062
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2543
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2060
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:1998
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2474
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1996
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2598
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2611
const LogString * message_name() const override
Definition api_pb2.h:2121
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2573
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2083
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2557
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2085
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2082
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2214
const LogString * message_name() const override
Definition api_pb2.h:2216
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2689
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2213
const char * dump_to(DumpBuffer &out) const override
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1904
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const LogString * message_name() const override
Definition api_pb2.h:1902
enums::BluetoothScannerMode mode
Definition api_pb2.h:2324
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2319
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2322
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2320
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2769
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2302
enums::BluetoothScannerMode mode
Definition api_pb2.h:2307
enums::BluetoothScannerState state
Definition api_pb2.h:2306
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2301
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2755
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2308
const LogString * message_name() const override
Definition api_pb2.h:2304
const LogString * message_name() const override
Definition api_pb2.h:3255
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4057
const LogString * message_name() const override
Definition api_pb2.h:3274
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4079
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2169
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1777
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2181
const LogString * message_name() const override
Definition api_pb2.h:1780
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1778
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1384
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1357
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1356
const LogString * message_name() const override
Definition api_pb2.h:1359
const char * dump_to(DumpBuffer &out) const override
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1341
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1335
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1337
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1334
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1364
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1604
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1435
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1436
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1451
const LogString * message_name() const override
Definition api_pb2.h:1438
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1449
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1535
enums::ClimatePreset preset
Definition api_pb2.h:1455
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1589
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1418
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1419
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1407
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1493
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1417
const LogString * message_name() const override
Definition api_pb2.h:1410
enums::ClimatePreset preset
Definition api_pb2.h:1421
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1408
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:358
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:675
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:676
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:337
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:678
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:658
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:315
enums::CoverOperation current_operation
Definition api_pb2.h:664
const LogString * message_name() const override
Definition api_pb2.h:660
uint32_t calculate_size() const
Definition api_pb2.cpp:326
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:657
enums::DSTRuleType type
Definition api_pb2.h:1170
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1097
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3351
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2728
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2731
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3330
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2729
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3306
const LogString * message_name() const override
Definition api_pb2.h:2712
uint32_t calculate_size() const
Definition api_pb2.cpp:3318
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2709
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2710
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2926
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2925
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2928
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3651
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3663
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3631
const LogString * message_name() const override
Definition api_pb2.h:2911
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2908
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2909
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:65
uint32_t calculate_size() const
Definition api_pb2.cpp:72
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:520
const LogString * message_name() const override
Definition api_pb2.h:523
static constexpr uint16_t ESTIMATED_SIZE
Definition api_pb2.h:521
uint32_t calculate_size() const
Definition api_pb2.cpp:156
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:94
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:563
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:575
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:560
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:425
const LogString * message_name() const override
Definition api_pb2.h:428
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:426
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:438
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:439
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:441
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:516
uint32_t calculate_size() const
Definition api_pb2.cpp:3499
const LogString * message_name() const override
Definition api_pb2.h:2822
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2819
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3490
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2820
const char * dump_to(DumpBuffer &out) const override
FixedVector< float > float_array
Definition api_pb2.h:1254
FixedVector< std::string > string_array
Definition api_pb2.h:1255
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1207
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1256
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1229
FixedVector< int32_t > int_array
Definition api_pb2.h:1253
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1243
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1268
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1274
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1269
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1305
const LogString * message_name() const override
Definition api_pb2.h:1271
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1267
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1295
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1284
const LogString * message_name() const override
Definition api_pb2.h:1298
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1296
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1295
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1312
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:737
const LogString * message_name() const override
Definition api_pb2.h:740
const char * dump_to(DumpBuffer &out) const override
enums::FanDirection direction
Definition api_pb2.h:747
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:487
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:738
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:448
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:498
const LogString * message_name() const override
Definition api_pb2.h:720
enums::FanDirection direction
Definition api_pb2.h:724
uint32_t calculate_size() const
Definition api_pb2.cpp:435
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:718
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:717
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:422
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1155
const LogString * message_name() const override
Definition api_pb2.h:1158
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1156
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1162
ParsedTimezone parsed_timezone
Definition api_pb2.h:1204
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1148
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1198
const LogString * message_name() const override
Definition api_pb2.h:1200
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1197
const LogString * message_name() const override
Definition api_pb2.h:391
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:389
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:388
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:10
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:23
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:406
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:407
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:34
uint32_t calculate_size() const
Definition api_pb2.cpp:42
const LogString * message_name() const override
Definition api_pb2.h:409
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1137
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1138
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1077
const LogString * message_name() const override
Definition api_pb2.h:1140
const LogString * message_name() const override
Definition api_pb2.h:1067
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1072
FixedVector< HomeassistantServiceMap > data
Definition api_pb2.h:1070
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:974
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1065
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1071
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1064
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1043
const LogString * message_name() const override
Definition api_pb2.h:1098
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1030
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1096
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1095
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:962
enums::EntityCategory entity_category
Definition api_pb2.h:356
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3086
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3906
const std::vector< int32_t > * timings
Definition api_pb2.h:3094
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3085
const LogString * message_name() const override
Definition api_pb2.h:3088
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3896
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3063
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3865
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3883
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:658
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:669
const LogString * message_name() const override
Definition api_pb2.h:814
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:811
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:598
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:812
const LogString * message_name() const override
Definition api_pb2.h:787
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:785
uint32_t calculate_size() const
Definition api_pb2.cpp:578
enums::ColorMode color_mode
Definition api_pb2.h:791
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:784
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:558
const LogString * message_name() const override
Definition api_pb2.h:2588
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3091
const LogString * message_name() const override
Definition api_pb2.h:604
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:219
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:602
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1762
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1761
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2137
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1764
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1319
const LogString * message_name() const override
Definition api_pb2.h:1322
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1320
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1334
const std::vector< const char * > * supported_custom_presets
Definition api_pb2.h:1390
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1387
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1375
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1388
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1374
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1389
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1399
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1386
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1381
const LogString * message_name() const override
Definition api_pb2.h:1377
const LogString * message_name() const override
Definition api_pb2.h:640
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:638
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:275
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:637
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2695
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3276
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2697
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2694
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3601
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2893
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2894
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2896
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:587
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:588
const LogString * message_name() const override
Definition api_pb2.h:590
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3450
const LogString * message_name() const override
Definition api_pb2.h:2805
const FixedVector< const char * > * event_types
Definition api_pb2.h:2808
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2803
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2802
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:376
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:706
const LogString * message_name() const override
Definition api_pb2.h:700
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:698
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:697
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3829
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3041
const LogString * message_name() const override
Definition api_pb2.h:3044
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3042
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:766
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * effects
Definition api_pb2.h:773
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:770
const LogString * message_name() const override
Definition api_pb2.h:768
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:765
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:510
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1705
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1708
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2040
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1706
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1810
const LogString * message_name() const override
Definition api_pb2.h:1812
const char * dump_to(DumpBuffer &out) const override
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1815
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2211
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1538
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1742
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1540
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1537
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1593
const FixedVector< const char * > * options
Definition api_pb2.h:1598
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1594
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1831
const LogString * message_name() const override
Definition api_pb2.h:1596
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:708
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:856
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:855
const LogString * message_name() const override
Definition api_pb2.h:858
enums::SensorStateClass state_class
Definition api_pb2.h:864
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1173
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1185
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1231
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1228
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1229
enums::SupportsResponseType supports_response
Definition api_pb2.h:1236
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1235
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1924
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1645
const LogString * message_name() const override
Definition api_pb2.h:1648
const FixedVector< const char * > * tones
Definition api_pb2.h:1650
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1646
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:897
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:895
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:894
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2639
const LogString * message_name() const override
Definition api_pb2.h:2642
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3183
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2640
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:945
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:946
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:853
const LogString * message_name() const override
Definition api_pb2.h:948
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2749
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2751
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3363
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2748
const LogString * message_name() const override
Definition api_pb2.h:2946
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2943
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2944
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3678
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2837
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3510
const LogString * message_name() const override
Definition api_pb2.h:2840
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2838
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1628
const water_heater::WaterHeaterModeMask * supported_modes
Definition api_pb2.h:1481
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1474
const LogString * message_name() const override
Definition api_pb2.h:1476
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2096
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1740
const LogString * message_name() const override
Definition api_pb2.h:1743
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2125
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1741
enums::LockCommand command
Definition api_pb2.h:1745
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2114
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1725
uint32_t calculate_size() const
Definition api_pb2.cpp:2087
const LogString * message_name() const override
Definition api_pb2.h:1727
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1724
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2078
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1846
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerCommand command
Definition api_pb2.h:1851
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2316
const LogString * message_name() const override
Definition api_pb2.h:1848
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2305
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2275
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1845
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1827
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2253
enums::MediaPlayerState state
Definition api_pb2.h:1832
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1830
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1828
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1797
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2193
const LogString * message_name() const override
Definition api_pb2.h:1021
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1018
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1019
const LogString * message_name() const override
Definition api_pb2.h:1037
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:950
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1035
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1034
const LogString * message_name() const override
Definition api_pb2.h:1578
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1575
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1816
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1576
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1804
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1559
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1558
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1784
const LogString * message_name() const override
Definition api_pb2.h:1561
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1135
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1122
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:451
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:452
const LogString * message_name() const override
Definition api_pb2.h:454
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:467
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:464
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:465
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1901
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1627
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1889
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1626
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1912
const LogString * message_name() const override
Definition api_pb2.h:1629
const LogString * message_name() const override
Definition api_pb2.h:1612
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1869
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1610
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1609
const LogString * message_name() const override
Definition api_pb2.h:878
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:876
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:875
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3107
enums::SerialProxyParity parity
Definition api_pb2.h:3115
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3108
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3932
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3110
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3127
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:3135
const LogString * message_name() const override
Definition api_pb2.h:3130
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3128
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3957
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3183
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4004
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3186
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3184
const LogString * message_name() const override
Definition api_pb2.h:3201
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3199
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4014
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.cpp:87
enums::SerialProxyPortType port_type
Definition api_pb2.h:508
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:81
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3218
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4026
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3215
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3216
enums::SerialProxyRequestType type
Definition api_pb2.h:3221
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3232
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3231
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4039
const LogString * message_name() const override
Definition api_pb2.h:3234
enums::SerialProxyRequestType type
Definition api_pb2.h:3237
enums::SerialProxyStatus status
Definition api_pb2.h:3238
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3170
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3991
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3167
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3168
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3149
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3979
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3150
const LogString * message_name() const override
Definition api_pb2.h:3152
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3969
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1984
const LogString * message_name() const override
Definition api_pb2.h:1682
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2014
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1680
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2025
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1679
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1666
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1664
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1966
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1663
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2331
const LogString * message_name() const override
Definition api_pb2.h:1874
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1063
const LogString * message_name() const override
Definition api_pb2.h:1122
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:982
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:980
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:979
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:906
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:995
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:996
const LogString * message_name() const override
Definition api_pb2.h:998
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:1003
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2781
const LogString * message_name() const override
Definition api_pb2.h:2339
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2336
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2337
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:841
const LogString * message_name() const override
Definition api_pb2.h:930
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:927
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:928
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const LogString * message_name() const override
Definition api_pb2.h:914
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:912
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:911
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3253
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3241
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2676
const LogString * message_name() const override
Definition api_pb2.h:2678
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3264
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2675
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:961
const LogString * message_name() const override
Definition api_pb2.h:964
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:962
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:885
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2659
uint32_t calculate_size() const
Definition api_pb2.cpp:3231
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3221
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2658
const LogString * message_name() const override
Definition api_pb2.h:2661
const LogString * message_name() const override
Definition api_pb2.h:2785
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3438
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2782
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3417
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2783
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3393
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2763
const LogString * message_name() const override
Definition api_pb2.h:2766
uint32_t calculate_size() const
Definition api_pb2.cpp:3405
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2764
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2986
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2984
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3759
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3744
enums::UpdateCommand command
Definition api_pb2.h:2988
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2983
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2960
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2962
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3710
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2959
const LogString * message_name() const override
Definition api_pb2.h:2876
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2873
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3568
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2874
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3586
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2857
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3548
enums::ValveOperation current_operation
Definition api_pb2.h:2862
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2856
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2859
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2490
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2489
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2972
const LogString * message_name() const override
Definition api_pb2.h:2492
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2953
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2471
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2943
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2473
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2470
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2875
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2885
const LogString * message_name() const override
Definition api_pb2.h:2432
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2430
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2429
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2897
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2794
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3042
const LogString * message_name() const override
Definition api_pb2.h:2538
const char * dump_to(DumpBuffer &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2540
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2555
const LogString * message_name() const override
Definition api_pb2.h:2553
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2556
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3053
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2839
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2864
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2413
const LogString * message_name() const override
Definition api_pb2.h:2415
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2412
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2417
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2854
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2418
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3012
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3002
std::vector< std::string > trained_languages
Definition api_pb2.h:2520
const LogString * message_name() const override
Definition api_pb2.h:2368
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2808
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2365
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2373
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2366
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2826
const LogString * message_name() const override
Definition api_pb2.h:2388
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2386
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2385
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2569
std::vector< std::string > active_wake_words
Definition api_pb2.h:2573
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2568
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3079
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2571
const LogString * message_name() const override
Definition api_pb2.h:2452
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2454
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2928
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2909
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2982
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2507
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1700
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1721
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1515
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1517
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1514
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1493
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1494
const LogString * message_name() const override
Definition api_pb2.h:1496
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1672
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3002
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3771
const LogString * message_name() const override
Definition api_pb2.h:3004
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3783
uint32_t calculate_size() const
Definition api_pb2.cpp:3788
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3001
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3020
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3803
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3019
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3793
const LogString * message_name() const override
Definition api_pb2.h:3022
uint32_t calculate_size() const
Definition api_pb2.cpp:3821
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3024
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3815
const char * dump_to(DumpBuffer &out) const override
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:192
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:282
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:83
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:86
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:85
@ SERIAL_PROXY_PORT_TYPE_RS232
Definition api_pb2.h:16
@ SERIAL_PROXY_PORT_TYPE_RS485
Definition api_pb2.h:17
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:247
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:246
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:148
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:149
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:333
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
Definition api_pb2.h:334
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:332
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:214
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:213
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:41
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:48
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:44
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:49
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:270
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:269
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:272
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:271
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:206
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:207
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:204
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:203
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:210
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:208
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:260
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:265
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:262
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:266
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:264
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:261
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
Definition api_pb2.h:338
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:341
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:222
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:223
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:219
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:221
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:224
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:225
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:220
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:236
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:237
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:233
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:229
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:232
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:230
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:231
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:73
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:74
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:161
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:155
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:158
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:162
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:159
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:157
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:156
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:160
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:320
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:321
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:322
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:292
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:294
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:293
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:242
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:241
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:56
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:58
uint64_t proto_varint_value_t
Type used for decoded varint values - uint64_t when BLE needs 64-bit addresses, uint32_t otherwise.
Definition proto.h:118
std::string size_t len
Definition helpers.h:1045
static void uint32_t
uint16_t length
Definition tt21100.cpp:0