ESPHome 2026.10.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
12// Upper bound on message IDs, enforced by the code generator: the plaintext
13// frame header budgets 2 varint bytes for the type (HEADER_PADDING).
14static constexpr uint16_t MAX_MESSAGE_TYPE = 16383;
15
16namespace enums {
17
32#ifdef USE_COVER
38#endif
39#ifdef USE_FAN
44#endif
45#ifdef USE_LIGHT
59#endif
60#ifdef USE_SENSOR
68#endif
85#ifdef USE_API_USER_DEFINED_ACTIONS
102#endif
108#ifdef USE_CLIMATE
155#endif
156#ifdef USE_WATER_HEATER
166#endif
177#ifdef USE_NUMBER
183#endif
184#ifdef USE_LOCK
200#endif
201#ifdef USE_MEDIA_PLAYER
231#endif
232#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
242#endif
243#ifdef USE_BLUETOOTH_PROXY
256#endif
266#ifdef USE_VOICE_ASSISTANT
291#endif
292#ifdef USE_ALARM_CONTROL_PANEL
314#endif
315#ifdef USE_TEXT
320#endif
321#ifdef USE_VALVE
327#endif
328#ifdef USE_UPDATE
334#endif
335#ifdef USE_ZWAVE_PROXY
346#endif
347#ifdef USE_SERIAL_PROXY
369#endif
370
371} // namespace enums
372
374 public:
379#ifdef USE_ENTITY_ICON
381#endif
383#ifdef USE_DEVICES
385#endif
386
387 protected:
389};
390
392 public:
394#ifdef USE_DEVICES
396#endif
397
398 protected:
400};
401
403 public:
405#ifdef USE_DEVICES
407#endif
408
409 protected:
411};
413 public:
414 static constexpr uint16_t MESSAGE_TYPE = 1;
415 static constexpr uint8_t ESTIMATED_SIZE = 17;
416#ifdef HAS_PROTO_MESSAGE_DUMP
417 const LogString *message_name() const override { return LOG_STR("hello_request"); }
418#endif
422#ifdef HAS_PROTO_MESSAGE_DUMP
423 const char *dump_to(DumpBuffer &out) const override;
424#endif
425
426 protected:
427 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
428 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
429};
430class HelloResponse final : public ProtoMessage {
431 public:
432 static constexpr uint16_t MESSAGE_TYPE = 2;
433 static constexpr uint8_t ESTIMATED_SIZE = 26;
434#ifdef HAS_PROTO_MESSAGE_DUMP
435 const LogString *message_name() const override { return LOG_STR("hello_response"); }
436#endif
441 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
442 uint32_t calculate_size() const;
443#ifdef HAS_PROTO_MESSAGE_DUMP
444 const char *dump_to(DumpBuffer &out) const override;
445#endif
446
447 protected:
448};
450 public:
451 static constexpr uint16_t MESSAGE_TYPE = 5;
452 static constexpr uint8_t ESTIMATED_SIZE = 2;
453#ifdef HAS_PROTO_MESSAGE_DUMP
454 const LogString *message_name() const override { return LOG_STR("disconnect_request"); }
455#endif
457 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
458 uint32_t calculate_size() const;
459#ifdef HAS_PROTO_MESSAGE_DUMP
460 const char *dump_to(DumpBuffer &out) const override;
461#endif
462
463 protected:
464 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
465};
466class DisconnectResponse final : public ProtoMessage {
467 public:
468 static constexpr uint16_t MESSAGE_TYPE = 6;
469 static constexpr uint8_t ESTIMATED_SIZE = 0;
470#ifdef HAS_PROTO_MESSAGE_DUMP
471 const LogString *message_name() const override { return LOG_STR("disconnect_response"); }
472#endif
473#ifdef HAS_PROTO_MESSAGE_DUMP
474 const char *dump_to(DumpBuffer &out) const override;
475#endif
476
477 protected:
478};
479class PingRequest final : public ProtoMessage {
480 public:
481 static constexpr uint16_t MESSAGE_TYPE = 7;
482 static constexpr uint8_t ESTIMATED_SIZE = 0;
483#ifdef HAS_PROTO_MESSAGE_DUMP
484 const LogString *message_name() const override { return LOG_STR("ping_request"); }
485#endif
486#ifdef HAS_PROTO_MESSAGE_DUMP
487 const char *dump_to(DumpBuffer &out) const override;
488#endif
489
490 protected:
491};
492class PingResponse final : public ProtoMessage {
493 public:
494 static constexpr uint16_t MESSAGE_TYPE = 8;
495 static constexpr uint8_t ESTIMATED_SIZE = 0;
496#ifdef HAS_PROTO_MESSAGE_DUMP
497 const LogString *message_name() const override { return LOG_STR("ping_response"); }
498#endif
499#ifdef HAS_PROTO_MESSAGE_DUMP
500 const char *dump_to(DumpBuffer &out) const override;
501#endif
502
503 protected:
504};
505#ifdef USE_AREAS
506class AreaInfo final : public ProtoMessage {
507 public:
510 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
511 uint32_t calculate_size() const;
512#ifdef HAS_PROTO_MESSAGE_DUMP
513 const char *dump_to(DumpBuffer &out) const override;
514#endif
515
516 protected:
517};
518#endif
519#ifdef USE_DEVICES
520class DeviceInfo final : public ProtoMessage {
521 public:
525 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
526 uint32_t calculate_size() const;
527#ifdef HAS_PROTO_MESSAGE_DUMP
528 const char *dump_to(DumpBuffer &out) const override;
529#endif
530
531 protected:
532};
533#endif
534#ifdef USE_SERIAL_PROXY
535class SerialProxyInfo final : public ProtoMessage {
536 public:
540 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
541 uint32_t calculate_size() const;
542#ifdef HAS_PROTO_MESSAGE_DUMP
543 const char *dump_to(DumpBuffer &out) const override;
544#endif
545
546 protected:
547};
548#endif
549class DeviceInfoResponse final : public ProtoMessage {
550 public:
551 static constexpr uint16_t MESSAGE_TYPE = 10;
552 static constexpr uint16_t ESTIMATED_SIZE = 312;
553#ifdef HAS_PROTO_MESSAGE_DUMP
554 const LogString *message_name() const override { return LOG_STR("device_info_response"); }
555#endif
561#ifdef USE_DEEP_SLEEP
562 bool has_deep_sleep{false};
563#endif
564#ifdef ESPHOME_PROJECT_NAME
566#endif
567#ifdef ESPHOME_PROJECT_NAME
569#endif
570#ifdef USE_WEBSERVER
572#endif
573#ifdef USE_BLUETOOTH_PROXY
575#endif
578#ifdef USE_VOICE_ASSISTANT
580#endif
581#ifdef USE_AREAS
583#endif
584#ifdef USE_BLUETOOTH_PROXY
586#endif
587#ifdef USE_API_NOISE
589#endif
590#ifdef USE_DEVICES
591 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
592#endif
593#ifdef USE_AREAS
594 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
595#endif
596#ifdef USE_AREAS
598#endif
599#ifdef USE_ZWAVE_PROXY
601#endif
602#ifdef USE_ZWAVE_PROXY
604#endif
605#ifdef USE_SERIAL_PROXY
606 std::array<SerialProxyInfo, SERIAL_PROXY_COUNT> serial_proxies{};
607#endif
608#ifdef USE_API_NOISE
610#endif
611 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
612 uint32_t calculate_size() const;
613#ifdef HAS_PROTO_MESSAGE_DUMP
614 const char *dump_to(DumpBuffer &out) const override;
615#endif
616
617 protected:
618};
619#ifdef USE_BLUETOOTH_PROXY
621 public:
624 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
625 uint32_t calculate_size() const;
626#ifdef HAS_PROTO_MESSAGE_DUMP
627 const char *dump_to(DumpBuffer &out) const override;
628#endif
629
630 protected:
631};
632#endif
633#ifdef USE_VOICE_ASSISTANT
635 public:
637 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
638 uint32_t calculate_size() const;
639#ifdef HAS_PROTO_MESSAGE_DUMP
640 const char *dump_to(DumpBuffer &out) const override;
641#endif
642
643 protected:
644};
645#endif
646#ifdef USE_ZWAVE_PROXY
648 public:
651 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
652 uint32_t calculate_size() const;
653#ifdef HAS_PROTO_MESSAGE_DUMP
654 const char *dump_to(DumpBuffer &out) const override;
655#endif
656
657 protected:
658};
659#endif
661 public:
662 static constexpr uint16_t MESSAGE_TYPE = 150;
663 static constexpr uint8_t ESTIMATED_SIZE = 102;
664#ifdef HAS_PROTO_MESSAGE_DUMP
665 const LogString *message_name() const override { return LOG_STR("device_capabilities_response"); }
666#endif
667#ifdef USE_BLUETOOTH_PROXY
669#endif
670#ifdef USE_VOICE_ASSISTANT
672#endif
673#ifdef USE_ZWAVE_PROXY
675#endif
676#ifdef USE_SERIAL_PROXY
677 std::array<SerialProxyInfo, SERIAL_PROXY_COUNT> serial_proxies{};
678#endif
679 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
680 uint32_t calculate_size() const;
681#ifdef HAS_PROTO_MESSAGE_DUMP
682 const char *dump_to(DumpBuffer &out) const override;
683#endif
684
685 protected:
686};
688 public:
689 static constexpr uint16_t MESSAGE_TYPE = 19;
690 static constexpr uint8_t ESTIMATED_SIZE = 0;
691#ifdef HAS_PROTO_MESSAGE_DUMP
692 const LogString *message_name() const override { return LOG_STR("list_entities_done_response"); }
693#endif
694#ifdef HAS_PROTO_MESSAGE_DUMP
695 const char *dump_to(DumpBuffer &out) const override;
696#endif
697
698 protected:
699};
700#ifdef USE_BINARY_SENSOR
702 public:
703 static constexpr uint16_t MESSAGE_TYPE = 12;
704 static constexpr uint8_t ESTIMATED_SIZE = 51;
705#ifdef HAS_PROTO_MESSAGE_DUMP
706 const LogString *message_name() const override { return LOG_STR("list_entities_binary_sensor_response"); }
707#endif
710 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
711 uint32_t calculate_size() const;
712#ifdef HAS_PROTO_MESSAGE_DUMP
713 const char *dump_to(DumpBuffer &out) const override;
714#endif
715
716 protected:
717};
719 public:
720 static constexpr uint16_t MESSAGE_TYPE = 21;
721 static constexpr uint8_t ESTIMATED_SIZE = 13;
722#ifdef HAS_PROTO_MESSAGE_DUMP
723 const LogString *message_name() const override { return LOG_STR("binary_sensor_state_response"); }
724#endif
725 bool state{false};
726 bool missing_state{false};
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};
735#endif
736#ifdef USE_COVER
738 public:
739 static constexpr uint16_t MESSAGE_TYPE = 13;
740 static constexpr uint8_t ESTIMATED_SIZE = 57;
741#ifdef HAS_PROTO_MESSAGE_DUMP
742 const LogString *message_name() const override { return LOG_STR("list_entities_cover_response"); }
743#endif
744 bool assumed_state{false};
745 bool supports_position{false};
746 bool supports_tilt{false};
748 bool supports_stop{false};
749 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
750 uint32_t calculate_size() const;
751#ifdef HAS_PROTO_MESSAGE_DUMP
752 const char *dump_to(DumpBuffer &out) const override;
753#endif
754
755 protected:
756};
758 public:
759 static constexpr uint16_t MESSAGE_TYPE = 22;
760 static constexpr uint8_t ESTIMATED_SIZE = 21;
761#ifdef HAS_PROTO_MESSAGE_DUMP
762 const LogString *message_name() const override { return LOG_STR("cover_state_response"); }
763#endif
764 float position{0.0f};
765 float tilt{0.0f};
767 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
768 uint32_t calculate_size() const;
769#ifdef HAS_PROTO_MESSAGE_DUMP
770 const char *dump_to(DumpBuffer &out) const override;
771#endif
772
773 protected:
774};
776 public:
777 static constexpr uint16_t MESSAGE_TYPE = 30;
778 static constexpr uint8_t ESTIMATED_SIZE = 25;
779#ifdef HAS_PROTO_MESSAGE_DUMP
780 const LogString *message_name() const override { return LOG_STR("cover_command_request"); }
781#endif
782 bool has_position{false};
783 float position{0.0f};
784 bool has_tilt{false};
785 float tilt{0.0f};
786 bool stop{false};
787#ifdef HAS_PROTO_MESSAGE_DUMP
788 const char *dump_to(DumpBuffer &out) const override;
789#endif
790
791 protected:
792 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
793 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
794};
795#endif
796#ifdef USE_FAN
798 public:
799 static constexpr uint16_t MESSAGE_TYPE = 14;
800 static constexpr uint8_t ESTIMATED_SIZE = 68;
801#ifdef HAS_PROTO_MESSAGE_DUMP
802 const LogString *message_name() const override { return LOG_STR("list_entities_fan_response"); }
803#endif
805 bool supports_speed{false};
808 const std::vector<const char *> *supported_preset_modes{};
809 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
810 uint32_t calculate_size() const;
811#ifdef HAS_PROTO_MESSAGE_DUMP
812 const char *dump_to(DumpBuffer &out) const override;
813#endif
814
815 protected:
816};
818 public:
819 static constexpr uint16_t MESSAGE_TYPE = 23;
820 static constexpr uint8_t ESTIMATED_SIZE = 28;
821#ifdef HAS_PROTO_MESSAGE_DUMP
822 const LogString *message_name() const override { return LOG_STR("fan_state_response"); }
823#endif
824 bool state{false};
825 bool oscillating{false};
827 int32_t speed_level{0};
829 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
830 uint32_t calculate_size() const;
831#ifdef HAS_PROTO_MESSAGE_DUMP
832 const char *dump_to(DumpBuffer &out) const override;
833#endif
834
835 protected:
836};
838 public:
839 static constexpr uint16_t MESSAGE_TYPE = 31;
840 static constexpr uint8_t ESTIMATED_SIZE = 38;
841#ifdef HAS_PROTO_MESSAGE_DUMP
842 const LogString *message_name() const override { return LOG_STR("fan_command_request"); }
843#endif
844 bool has_state{false};
845 bool state{false};
846 bool has_oscillating{false};
847 bool oscillating{false};
848 bool has_direction{false};
850 bool has_speed_level{false};
851 int32_t speed_level{0};
852 bool has_preset_mode{false};
854#ifdef HAS_PROTO_MESSAGE_DUMP
855 const char *dump_to(DumpBuffer &out) const override;
856#endif
857
858 protected:
859 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
860 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
861 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
862};
863#endif
864#ifdef USE_LIGHT
866 public:
867 static constexpr uint16_t MESSAGE_TYPE = 15;
868 static constexpr uint8_t ESTIMATED_SIZE = 73;
869#ifdef HAS_PROTO_MESSAGE_DUMP
870 const LogString *message_name() const override { return LOG_STR("list_entities_light_response"); }
871#endif
873 float min_mireds{0.0f};
874 float max_mireds{0.0f};
876 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
877 uint32_t calculate_size() const;
878#ifdef HAS_PROTO_MESSAGE_DUMP
879 const char *dump_to(DumpBuffer &out) const override;
880#endif
881
882 protected:
883};
885 public:
886 static constexpr uint16_t MESSAGE_TYPE = 24;
887 static constexpr uint8_t ESTIMATED_SIZE = 67;
888#ifdef HAS_PROTO_MESSAGE_DUMP
889 const LogString *message_name() const override { return LOG_STR("light_state_response"); }
890#endif
891 bool state{false};
892 float brightness{0.0f};
894 float color_brightness{0.0f};
895 float red{0.0f};
896 float green{0.0f};
897 float blue{0.0f};
898 float white{0.0f};
899 float color_temperature{0.0f};
900 float cold_white{0.0f};
901 float warm_white{0.0f};
903 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
904 uint32_t calculate_size() const;
905#ifdef HAS_PROTO_MESSAGE_DUMP
906 const char *dump_to(DumpBuffer &out) const override;
907#endif
908
909 protected:
910};
912 public:
913 static constexpr uint16_t MESSAGE_TYPE = 32;
914 static constexpr uint8_t ESTIMATED_SIZE = 112;
915#ifdef HAS_PROTO_MESSAGE_DUMP
916 const LogString *message_name() const override { return LOG_STR("light_command_request"); }
917#endif
918 bool has_state{false};
919 bool state{false};
920 bool has_brightness{false};
921 float brightness{0.0f};
922 bool has_color_mode{false};
925 float color_brightness{0.0f};
926 bool has_rgb{false};
927 float red{0.0f};
928 float green{0.0f};
929 float blue{0.0f};
930 bool has_white{false};
931 float white{0.0f};
933 float color_temperature{0.0f};
934 bool has_cold_white{false};
935 float cold_white{0.0f};
936 bool has_warm_white{false};
937 float warm_white{0.0f};
940 bool has_flash_length{false};
942 bool has_effect{false};
944#ifdef HAS_PROTO_MESSAGE_DUMP
945 const char *dump_to(DumpBuffer &out) const override;
946#endif
947
948 protected:
949 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
950 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
951 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
952};
953#endif
954#ifdef USE_SENSOR
956 public:
957 static constexpr uint16_t MESSAGE_TYPE = 16;
958 static constexpr uint8_t ESTIMATED_SIZE = 66;
959#ifdef HAS_PROTO_MESSAGE_DUMP
960 const LogString *message_name() const override { return LOG_STR("list_entities_sensor_response"); }
961#endif
964 bool force_update{false};
967 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
968 uint32_t calculate_size() const;
969#ifdef HAS_PROTO_MESSAGE_DUMP
970 const char *dump_to(DumpBuffer &out) const override;
971#endif
972
973 protected:
974};
976 public:
977 static constexpr uint16_t MESSAGE_TYPE = 25;
978 static constexpr uint8_t ESTIMATED_SIZE = 16;
979#ifdef HAS_PROTO_MESSAGE_DUMP
980 const LogString *message_name() const override { return LOG_STR("sensor_state_response"); }
981#endif
982 float state{0.0f};
983 bool missing_state{false};
984 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
986#ifdef HAS_PROTO_MESSAGE_DUMP
987 const char *dump_to(DumpBuffer &out) const override;
988#endif
989
990 protected:
991};
992#endif
993#ifdef USE_SWITCH
995 public:
996 static constexpr uint16_t MESSAGE_TYPE = 17;
997 static constexpr uint8_t ESTIMATED_SIZE = 51;
998#ifdef HAS_PROTO_MESSAGE_DUMP
999 const LogString *message_name() const override { return LOG_STR("list_entities_switch_response"); }
1000#endif
1001 bool assumed_state{false};
1003 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1005#ifdef HAS_PROTO_MESSAGE_DUMP
1006 const char *dump_to(DumpBuffer &out) const override;
1007#endif
1008
1009 protected:
1010};
1012 public:
1013 static constexpr uint16_t MESSAGE_TYPE = 26;
1014 static constexpr uint8_t ESTIMATED_SIZE = 11;
1015#ifdef HAS_PROTO_MESSAGE_DUMP
1016 const LogString *message_name() const override { return LOG_STR("switch_state_response"); }
1017#endif
1018 bool state{false};
1019 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1021#ifdef HAS_PROTO_MESSAGE_DUMP
1022 const char *dump_to(DumpBuffer &out) const override;
1023#endif
1024
1025 protected:
1026};
1028 public:
1029 static constexpr uint16_t MESSAGE_TYPE = 33;
1030 static constexpr uint8_t ESTIMATED_SIZE = 11;
1031#ifdef HAS_PROTO_MESSAGE_DUMP
1032 const LogString *message_name() const override { return LOG_STR("switch_command_request"); }
1033#endif
1034 bool state{false};
1035#ifdef HAS_PROTO_MESSAGE_DUMP
1036 const char *dump_to(DumpBuffer &out) const override;
1037#endif
1038
1039 protected:
1040 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1041 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1042};
1043#endif
1044#ifdef USE_TEXT_SENSOR
1046 public:
1047 static constexpr uint16_t MESSAGE_TYPE = 18;
1048 static constexpr uint8_t ESTIMATED_SIZE = 49;
1049#ifdef HAS_PROTO_MESSAGE_DUMP
1050 const LogString *message_name() const override { return LOG_STR("list_entities_text_sensor_response"); }
1051#endif
1053 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1054 uint32_t calculate_size() const;
1055#ifdef HAS_PROTO_MESSAGE_DUMP
1056 const char *dump_to(DumpBuffer &out) const override;
1057#endif
1058
1059 protected:
1060};
1062 public:
1063 static constexpr uint16_t MESSAGE_TYPE = 27;
1064 static constexpr uint8_t ESTIMATED_SIZE = 20;
1065#ifdef HAS_PROTO_MESSAGE_DUMP
1066 const LogString *message_name() const override { return LOG_STR("text_sensor_state_response"); }
1067#endif
1069 bool missing_state{false};
1070 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1071 uint32_t calculate_size() const;
1072#ifdef HAS_PROTO_MESSAGE_DUMP
1073 const char *dump_to(DumpBuffer &out) const override;
1074#endif
1075
1076 protected:
1077};
1078#endif
1080 public:
1081 static constexpr uint16_t MESSAGE_TYPE = 28;
1082 static constexpr uint8_t ESTIMATED_SIZE = 4;
1083#ifdef HAS_PROTO_MESSAGE_DUMP
1084 const LogString *message_name() const override { return LOG_STR("subscribe_logs_request"); }
1085#endif
1087 bool dump_config{false};
1088#ifdef HAS_PROTO_MESSAGE_DUMP
1089 const char *dump_to(DumpBuffer &out) const override;
1090#endif
1091
1092 protected:
1093 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1094};
1096 public:
1097 static constexpr uint16_t MESSAGE_TYPE = 29;
1098 static constexpr uint8_t ESTIMATED_SIZE = 21;
1099#ifdef HAS_PROTO_MESSAGE_DUMP
1100 const LogString *message_name() const override { return LOG_STR("subscribe_logs_response"); }
1101#endif
1103 const uint8_t *message_ptr_{nullptr};
1104 size_t message_len_{0};
1105 void set_message(const uint8_t *data, size_t len) {
1106 this->message_ptr_ = data;
1107 this->message_len_ = len;
1108 }
1109 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1111#ifdef HAS_PROTO_MESSAGE_DUMP
1112 const char *dump_to(DumpBuffer &out) const override;
1113#endif
1114
1115 protected:
1116};
1117#ifdef USE_API_NOISE
1119 public:
1120 static constexpr uint16_t MESSAGE_TYPE = 124;
1121 static constexpr uint8_t ESTIMATED_SIZE = 19;
1122#ifdef HAS_PROTO_MESSAGE_DUMP
1123 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_request"); }
1124#endif
1125 const uint8_t *key{nullptr};
1126 uint16_t key_len{0};
1127#ifdef HAS_PROTO_MESSAGE_DUMP
1128 const char *dump_to(DumpBuffer &out) const override;
1129#endif
1130
1131 protected:
1132 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1133};
1135 public:
1136 static constexpr uint16_t MESSAGE_TYPE = 125;
1137 static constexpr uint8_t ESTIMATED_SIZE = 2;
1138#ifdef HAS_PROTO_MESSAGE_DUMP
1139 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_response"); }
1140#endif
1141 bool success{false};
1142 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1143 uint32_t calculate_size() const;
1144#ifdef HAS_PROTO_MESSAGE_DUMP
1145 const char *dump_to(DumpBuffer &out) const override;
1146#endif
1147
1148 protected:
1149};
1150#endif
1151#ifdef USE_API_HOMEASSISTANT_SERVICES
1153 public:
1156 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1157 uint32_t calculate_size() const;
1158#ifdef HAS_PROTO_MESSAGE_DUMP
1159 const char *dump_to(DumpBuffer &out) const override;
1160#endif
1161
1162 protected:
1163};
1165 public:
1166 static constexpr uint16_t MESSAGE_TYPE = 35;
1167 static constexpr uint8_t ESTIMATED_SIZE = 128;
1168#ifdef HAS_PROTO_MESSAGE_DUMP
1169 const LogString *message_name() const override { return LOG_STR("homeassistant_action_request"); }
1170#endif
1175 bool is_event{false};
1176#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1178#endif
1179#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1180 bool wants_response{false};
1181#endif
1182#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1184#endif
1185 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1186 uint32_t calculate_size() const;
1187#ifdef HAS_PROTO_MESSAGE_DUMP
1188 const char *dump_to(DumpBuffer &out) const override;
1189#endif
1190
1191 protected:
1192};
1193#endif
1194#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1196 public:
1197 static constexpr uint16_t MESSAGE_TYPE = 130;
1198 static constexpr uint8_t ESTIMATED_SIZE = 34;
1199#ifdef HAS_PROTO_MESSAGE_DUMP
1200 const LogString *message_name() const override { return LOG_STR("homeassistant_action_response"); }
1201#endif
1203 bool success{false};
1205#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1206 const uint8_t *response_data{nullptr};
1208#endif
1209#ifdef HAS_PROTO_MESSAGE_DUMP
1210 const char *dump_to(DumpBuffer &out) const override;
1211#endif
1212
1213 protected:
1214 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1215 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1216};
1217#endif
1218#ifdef USE_API_HOMEASSISTANT_STATES
1220 public:
1221 static constexpr uint16_t MESSAGE_TYPE = 39;
1222 static constexpr uint8_t ESTIMATED_SIZE = 20;
1223#ifdef HAS_PROTO_MESSAGE_DUMP
1224 const LogString *message_name() const override { return LOG_STR("subscribe_home_assistant_state_response"); }
1225#endif
1228 bool once{false};
1229 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1230 uint32_t calculate_size() const;
1231#ifdef HAS_PROTO_MESSAGE_DUMP
1232 const char *dump_to(DumpBuffer &out) const override;
1233#endif
1234
1235 protected:
1236};
1238 public:
1239 static constexpr uint16_t MESSAGE_TYPE = 40;
1240 static constexpr uint8_t ESTIMATED_SIZE = 27;
1241#ifdef HAS_PROTO_MESSAGE_DUMP
1242 const LogString *message_name() const override { return LOG_STR("home_assistant_state_response"); }
1243#endif
1247#ifdef HAS_PROTO_MESSAGE_DUMP
1248 const char *dump_to(DumpBuffer &out) const override;
1249#endif
1250
1251 protected:
1252 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1253};
1254#endif
1255class GetTimeRequest final : public ProtoMessage {
1256 public:
1257 static constexpr uint16_t MESSAGE_TYPE = 36;
1258 static constexpr uint8_t ESTIMATED_SIZE = 0;
1259#ifdef HAS_PROTO_MESSAGE_DUMP
1260 const LogString *message_name() const override { return LOG_STR("get_time_request"); }
1261#endif
1262#ifdef HAS_PROTO_MESSAGE_DUMP
1263 const char *dump_to(DumpBuffer &out) const override;
1264#endif
1265
1266 protected:
1267};
1268class DSTRule final : public ProtoDecodableMessage {
1269 public:
1270 int32_t time_seconds{0};
1276#ifdef HAS_PROTO_MESSAGE_DUMP
1277 const char *dump_to(DumpBuffer &out) const override;
1278#endif
1279
1280 protected:
1281 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1282};
1284 public:
1289#ifdef HAS_PROTO_MESSAGE_DUMP
1290 const char *dump_to(DumpBuffer &out) const override;
1291#endif
1292
1293 protected:
1294 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1295 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1296};
1298 public:
1299 static constexpr uint16_t MESSAGE_TYPE = 37;
1300 static constexpr uint8_t ESTIMATED_SIZE = 22;
1301#ifdef HAS_PROTO_MESSAGE_DUMP
1302 const LogString *message_name() const override { return LOG_STR("get_time_response"); }
1303#endif
1307#ifdef HAS_PROTO_MESSAGE_DUMP
1308 const char *dump_to(DumpBuffer &out) const override;
1309#endif
1310
1311 protected:
1312 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1313 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1314};
1315#ifdef USE_API_USER_DEFINED_ACTIONS
1317 public:
1320#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1322#endif
1323#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1325#endif
1326 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1327 uint32_t calculate_size() const;
1328#ifdef HAS_PROTO_MESSAGE_DUMP
1329 const char *dump_to(DumpBuffer &out) const override;
1330#endif
1331
1332 protected:
1333};
1335 public:
1336 static constexpr uint16_t MESSAGE_TYPE = 41;
1337 static constexpr uint8_t ESTIMATED_SIZE = 59;
1338#ifdef HAS_PROTO_MESSAGE_DUMP
1339 const LogString *message_name() const override { return LOG_STR("list_entities_services_response"); }
1340#endif
1345#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1347#endif
1348 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1349 uint32_t calculate_size() const;
1350#ifdef HAS_PROTO_MESSAGE_DUMP
1351 const char *dump_to(DumpBuffer &out) const override;
1352#endif
1353
1354 protected:
1355};
1357 public:
1358 bool bool_{false};
1359 int32_t legacy_int{0};
1360 float float_{0.0f};
1362 int32_t int_{0};
1367 void decode(const uint8_t *buffer, size_t length);
1368#ifdef HAS_PROTO_MESSAGE_DUMP
1369 const char *dump_to(DumpBuffer &out) const override;
1370#endif
1371
1372 protected:
1373 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1374 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1375 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1376};
1378 public:
1379 static constexpr uint16_t MESSAGE_TYPE = 42;
1380 static constexpr uint8_t ESTIMATED_SIZE = 45;
1381#ifdef HAS_PROTO_MESSAGE_DUMP
1382 const LogString *message_name() const override { return LOG_STR("execute_service_request"); }
1383#endif
1386#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1388#endif
1389#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1390 bool return_response{false};
1391#endif
1392 void decode(const uint8_t *buffer, size_t length);
1393#ifdef HAS_PROTO_MESSAGE_DUMP
1394 const char *dump_to(DumpBuffer &out) const override;
1395#endif
1396
1397 protected:
1398 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1399 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1400 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1401};
1402#endif
1403#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1405 public:
1406 static constexpr uint16_t MESSAGE_TYPE = 131;
1407 static constexpr uint8_t ESTIMATED_SIZE = 34;
1408#ifdef HAS_PROTO_MESSAGE_DUMP
1409 const LogString *message_name() const override { return LOG_STR("execute_service_response"); }
1410#endif
1412 bool success{false};
1414#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1415 const uint8_t *response_data{nullptr};
1417#endif
1418 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1419 uint32_t calculate_size() const;
1420#ifdef HAS_PROTO_MESSAGE_DUMP
1421 const char *dump_to(DumpBuffer &out) const override;
1422#endif
1423
1424 protected:
1425};
1426#endif
1427#ifdef USE_CAMERA
1429 public:
1430 static constexpr uint16_t MESSAGE_TYPE = 43;
1431 static constexpr uint8_t ESTIMATED_SIZE = 40;
1432#ifdef HAS_PROTO_MESSAGE_DUMP
1433 const LogString *message_name() const override { return LOG_STR("list_entities_camera_response"); }
1434#endif
1435 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1436 uint32_t calculate_size() const;
1437#ifdef HAS_PROTO_MESSAGE_DUMP
1438 const char *dump_to(DumpBuffer &out) const override;
1439#endif
1440
1441 protected:
1442};
1444 public:
1445 static constexpr uint16_t MESSAGE_TYPE = 44;
1446 static constexpr uint8_t ESTIMATED_SIZE = 30;
1447#ifdef HAS_PROTO_MESSAGE_DUMP
1448 const LogString *message_name() const override { return LOG_STR("camera_image_response"); }
1449#endif
1450 const uint8_t *data_ptr_{nullptr};
1451 size_t data_len_{0};
1452 void set_data(const uint8_t *data, size_t len) {
1453 this->data_ptr_ = data;
1454 this->data_len_ = len;
1455 }
1456 bool done{false};
1457 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1458 uint32_t calculate_size() const;
1459#ifdef HAS_PROTO_MESSAGE_DUMP
1460 const char *dump_to(DumpBuffer &out) const override;
1461#endif
1462
1463 protected:
1464};
1466 public:
1467 static constexpr uint16_t MESSAGE_TYPE = 45;
1468 static constexpr uint8_t ESTIMATED_SIZE = 4;
1469#ifdef HAS_PROTO_MESSAGE_DUMP
1470 const LogString *message_name() const override { return LOG_STR("camera_image_request"); }
1471#endif
1472 bool single{false};
1473 bool stream{false};
1474#ifdef HAS_PROTO_MESSAGE_DUMP
1475 const char *dump_to(DumpBuffer &out) const override;
1476#endif
1477
1478 protected:
1479 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1480};
1481#endif
1482#ifdef USE_CLIMATE
1484 public:
1485 static constexpr uint16_t MESSAGE_TYPE = 46;
1486 static constexpr uint8_t ESTIMATED_SIZE = 153;
1487#ifdef HAS_PROTO_MESSAGE_DUMP
1488 const LogString *message_name() const override { return LOG_STR("list_entities_climate_response"); }
1489#endif
1496 bool supports_action{false};
1499 const std::vector<const char *> *supported_custom_fan_modes{};
1501 const std::vector<const char *> *supported_custom_presets{};
1509 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1510 uint32_t calculate_size() const;
1511#ifdef HAS_PROTO_MESSAGE_DUMP
1512 const char *dump_to(DumpBuffer &out) const override;
1513#endif
1514
1515 protected:
1516};
1518 public:
1519 static constexpr uint16_t MESSAGE_TYPE = 47;
1520 static constexpr uint8_t ESTIMATED_SIZE = 68;
1521#ifdef HAS_PROTO_MESSAGE_DUMP
1522 const LogString *message_name() const override { return LOG_STR("climate_state_response"); }
1523#endif
1535 float current_humidity{0.0f};
1536 float target_humidity{0.0f};
1537 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1538 uint32_t calculate_size() const;
1539#ifdef HAS_PROTO_MESSAGE_DUMP
1540 const char *dump_to(DumpBuffer &out) const override;
1541#endif
1542
1543 protected:
1544};
1546 public:
1547 static constexpr uint16_t MESSAGE_TYPE = 48;
1548 static constexpr uint8_t ESTIMATED_SIZE = 84;
1549#ifdef HAS_PROTO_MESSAGE_DUMP
1550 const LogString *message_name() const override { return LOG_STR("climate_command_request"); }
1551#endif
1552 bool has_mode{false};
1560 bool has_fan_mode{false};
1562 bool has_swing_mode{false};
1566 bool has_preset{false};
1571 float target_humidity{0.0f};
1572#ifdef HAS_PROTO_MESSAGE_DUMP
1573 const char *dump_to(DumpBuffer &out) const override;
1574#endif
1575
1576 protected:
1577 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1578 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1579 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1580};
1581#endif
1582#ifdef USE_WATER_HEATER
1584 public:
1585 static constexpr uint16_t MESSAGE_TYPE = 132;
1586 static constexpr uint8_t ESTIMATED_SIZE = 65;
1587#ifdef HAS_PROTO_MESSAGE_DUMP
1588 const LogString *message_name() const override { return LOG_STR("list_entities_water_heater_response"); }
1589#endif
1590 float min_temperature{0.0f};
1591 float max_temperature{0.0f};
1596 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1597 uint32_t calculate_size() const;
1598#ifdef HAS_PROTO_MESSAGE_DUMP
1599 const char *dump_to(DumpBuffer &out) const override;
1600#endif
1601
1602 protected:
1603};
1605 public:
1606 static constexpr uint16_t MESSAGE_TYPE = 133;
1607 static constexpr uint8_t ESTIMATED_SIZE = 35;
1608#ifdef HAS_PROTO_MESSAGE_DUMP
1609 const LogString *message_name() const override { return LOG_STR("water_heater_state_response"); }
1610#endif
1617 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1618 uint32_t calculate_size() const;
1619#ifdef HAS_PROTO_MESSAGE_DUMP
1620 const char *dump_to(DumpBuffer &out) const override;
1621#endif
1622
1623 protected:
1624};
1626 public:
1627 static constexpr uint16_t MESSAGE_TYPE = 134;
1628 static constexpr uint8_t ESTIMATED_SIZE = 34;
1629#ifdef HAS_PROTO_MESSAGE_DUMP
1630 const LogString *message_name() const override { return LOG_STR("water_heater_command_request"); }
1631#endif
1638#ifdef HAS_PROTO_MESSAGE_DUMP
1639 const char *dump_to(DumpBuffer &out) const override;
1640#endif
1641
1642 protected:
1643 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1644 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1645};
1646#endif
1647#ifdef USE_NUMBER
1649 public:
1650 static constexpr uint16_t MESSAGE_TYPE = 49;
1651 static constexpr uint8_t ESTIMATED_SIZE = 75;
1652#ifdef HAS_PROTO_MESSAGE_DUMP
1653 const LogString *message_name() const override { return LOG_STR("list_entities_number_response"); }
1654#endif
1655 float min_value{0.0f};
1656 float max_value{0.0f};
1657 float step{0.0f};
1661 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1662 uint32_t calculate_size() const;
1663#ifdef HAS_PROTO_MESSAGE_DUMP
1664 const char *dump_to(DumpBuffer &out) const override;
1665#endif
1666
1667 protected:
1668};
1670 public:
1671 static constexpr uint16_t MESSAGE_TYPE = 50;
1672 static constexpr uint8_t ESTIMATED_SIZE = 16;
1673#ifdef HAS_PROTO_MESSAGE_DUMP
1674 const LogString *message_name() const override { return LOG_STR("number_state_response"); }
1675#endif
1676 float state{0.0f};
1677 bool missing_state{false};
1678 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1679 uint32_t calculate_size() const;
1680#ifdef HAS_PROTO_MESSAGE_DUMP
1681 const char *dump_to(DumpBuffer &out) const override;
1682#endif
1683
1684 protected:
1685};
1687 public:
1688 static constexpr uint16_t MESSAGE_TYPE = 51;
1689 static constexpr uint8_t ESTIMATED_SIZE = 14;
1690#ifdef HAS_PROTO_MESSAGE_DUMP
1691 const LogString *message_name() const override { return LOG_STR("number_command_request"); }
1692#endif
1693 float state{0.0f};
1694#ifdef HAS_PROTO_MESSAGE_DUMP
1695 const char *dump_to(DumpBuffer &out) const override;
1696#endif
1697
1698 protected:
1699 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1700 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1701};
1702#endif
1703#ifdef USE_SELECT
1705 public:
1706 static constexpr uint16_t MESSAGE_TYPE = 52;
1707 static constexpr uint8_t ESTIMATED_SIZE = 58;
1708#ifdef HAS_PROTO_MESSAGE_DUMP
1709 const LogString *message_name() const override { return LOG_STR("list_entities_select_response"); }
1710#endif
1712 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1713 uint32_t calculate_size() const;
1714#ifdef HAS_PROTO_MESSAGE_DUMP
1715 const char *dump_to(DumpBuffer &out) const override;
1716#endif
1717
1718 protected:
1719};
1721 public:
1722 static constexpr uint16_t MESSAGE_TYPE = 53;
1723 static constexpr uint8_t ESTIMATED_SIZE = 20;
1724#ifdef HAS_PROTO_MESSAGE_DUMP
1725 const LogString *message_name() const override { return LOG_STR("select_state_response"); }
1726#endif
1728 bool missing_state{false};
1729 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1730 uint32_t calculate_size() const;
1731#ifdef HAS_PROTO_MESSAGE_DUMP
1732 const char *dump_to(DumpBuffer &out) const override;
1733#endif
1734
1735 protected:
1736};
1738 public:
1739 static constexpr uint16_t MESSAGE_TYPE = 54;
1740 static constexpr uint8_t ESTIMATED_SIZE = 18;
1741#ifdef HAS_PROTO_MESSAGE_DUMP
1742 const LogString *message_name() const override { return LOG_STR("select_command_request"); }
1743#endif
1745#ifdef HAS_PROTO_MESSAGE_DUMP
1746 const char *dump_to(DumpBuffer &out) const override;
1747#endif
1748
1749 protected:
1750 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1751 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1752 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1753};
1754#endif
1755#ifdef USE_SIREN
1757 public:
1758 static constexpr uint16_t MESSAGE_TYPE = 55;
1759 static constexpr uint8_t ESTIMATED_SIZE = 62;
1760#ifdef HAS_PROTO_MESSAGE_DUMP
1761 const LogString *message_name() const override { return LOG_STR("list_entities_siren_response"); }
1762#endif
1765 bool supports_volume{false};
1766 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1767 uint32_t calculate_size() const;
1768#ifdef HAS_PROTO_MESSAGE_DUMP
1769 const char *dump_to(DumpBuffer &out) const override;
1770#endif
1771
1772 protected:
1773};
1775 public:
1776 static constexpr uint16_t MESSAGE_TYPE = 56;
1777 static constexpr uint8_t ESTIMATED_SIZE = 11;
1778#ifdef HAS_PROTO_MESSAGE_DUMP
1779 const LogString *message_name() const override { return LOG_STR("siren_state_response"); }
1780#endif
1781 bool state{false};
1782 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1783 uint32_t calculate_size() const;
1784#ifdef HAS_PROTO_MESSAGE_DUMP
1785 const char *dump_to(DumpBuffer &out) const override;
1786#endif
1787
1788 protected:
1789};
1791 public:
1792 static constexpr uint16_t MESSAGE_TYPE = 57;
1793 static constexpr uint8_t ESTIMATED_SIZE = 37;
1794#ifdef HAS_PROTO_MESSAGE_DUMP
1795 const LogString *message_name() const override { return LOG_STR("siren_command_request"); }
1796#endif
1797 bool has_state{false};
1798 bool state{false};
1799 bool has_tone{false};
1801 bool has_duration{false};
1803 bool has_volume{false};
1804 float volume{0.0f};
1805#ifdef HAS_PROTO_MESSAGE_DUMP
1806 const char *dump_to(DumpBuffer &out) const override;
1807#endif
1808
1809 protected:
1810 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1811 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1812 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1813};
1814#endif
1815#ifdef USE_LOCK
1817 public:
1818 static constexpr uint16_t MESSAGE_TYPE = 58;
1819 static constexpr uint8_t ESTIMATED_SIZE = 55;
1820#ifdef HAS_PROTO_MESSAGE_DUMP
1821 const LogString *message_name() const override { return LOG_STR("list_entities_lock_response"); }
1822#endif
1823 bool assumed_state{false};
1824 bool supports_open{false};
1825 bool requires_code{false};
1827 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1828 uint32_t calculate_size() const;
1829#ifdef HAS_PROTO_MESSAGE_DUMP
1830 const char *dump_to(DumpBuffer &out) const override;
1831#endif
1832
1833 protected:
1834};
1836 public:
1837 static constexpr uint16_t MESSAGE_TYPE = 59;
1838 static constexpr uint8_t ESTIMATED_SIZE = 11;
1839#ifdef HAS_PROTO_MESSAGE_DUMP
1840 const LogString *message_name() const override { return LOG_STR("lock_state_response"); }
1841#endif
1843 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1844 uint32_t calculate_size() const;
1845#ifdef HAS_PROTO_MESSAGE_DUMP
1846 const char *dump_to(DumpBuffer &out) const override;
1847#endif
1848
1849 protected:
1850};
1852 public:
1853 static constexpr uint16_t MESSAGE_TYPE = 60;
1854 static constexpr uint8_t ESTIMATED_SIZE = 22;
1855#ifdef HAS_PROTO_MESSAGE_DUMP
1856 const LogString *message_name() const override { return LOG_STR("lock_command_request"); }
1857#endif
1859 bool has_code{false};
1861#ifdef HAS_PROTO_MESSAGE_DUMP
1862 const char *dump_to(DumpBuffer &out) const override;
1863#endif
1864
1865 protected:
1866 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1867 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1868 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1869};
1870#endif
1871#ifdef USE_BUTTON
1873 public:
1874 static constexpr uint16_t MESSAGE_TYPE = 61;
1875 static constexpr uint8_t ESTIMATED_SIZE = 49;
1876#ifdef HAS_PROTO_MESSAGE_DUMP
1877 const LogString *message_name() const override { return LOG_STR("list_entities_button_response"); }
1878#endif
1880 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1881 uint32_t calculate_size() const;
1882#ifdef HAS_PROTO_MESSAGE_DUMP
1883 const char *dump_to(DumpBuffer &out) const override;
1884#endif
1885
1886 protected:
1887};
1889 public:
1890 static constexpr uint16_t MESSAGE_TYPE = 62;
1891 static constexpr uint8_t ESTIMATED_SIZE = 9;
1892#ifdef HAS_PROTO_MESSAGE_DUMP
1893 const LogString *message_name() const override { return LOG_STR("button_command_request"); }
1894#endif
1895#ifdef HAS_PROTO_MESSAGE_DUMP
1896 const char *dump_to(DumpBuffer &out) const override;
1897#endif
1898
1899 protected:
1900 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1901 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1902};
1903#endif
1904#ifdef USE_MEDIA_PLAYER
1906 public:
1912 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1913 uint32_t calculate_size() const;
1914#ifdef HAS_PROTO_MESSAGE_DUMP
1915 const char *dump_to(DumpBuffer &out) const override;
1916#endif
1917
1918 protected:
1919};
1921 public:
1922 static constexpr uint16_t MESSAGE_TYPE = 63;
1923 static constexpr uint8_t ESTIMATED_SIZE = 78;
1924#ifdef HAS_PROTO_MESSAGE_DUMP
1925 const LogString *message_name() const override { return LOG_STR("list_entities_media_player_response"); }
1926#endif
1927 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1929 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1930 uint32_t calculate_size() const;
1931#ifdef HAS_PROTO_MESSAGE_DUMP
1932 const char *dump_to(DumpBuffer &out) const override;
1933#endif
1934
1935 protected:
1936};
1938 public:
1939 static constexpr uint16_t MESSAGE_TYPE = 64;
1940 static constexpr uint8_t ESTIMATED_SIZE = 18;
1941#ifdef HAS_PROTO_MESSAGE_DUMP
1942 const LogString *message_name() const override { return LOG_STR("media_player_state_response"); }
1943#endif
1945 float volume{0.0f};
1946 bool muted{false};
1947 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1948 uint32_t calculate_size() const;
1949#ifdef HAS_PROTO_MESSAGE_DUMP
1950 const char *dump_to(DumpBuffer &out) const override;
1951#endif
1952
1953 protected:
1954};
1956 public:
1957 static constexpr uint16_t MESSAGE_TYPE = 65;
1958 static constexpr uint8_t ESTIMATED_SIZE = 35;
1959#ifdef HAS_PROTO_MESSAGE_DUMP
1960 const LogString *message_name() const override { return LOG_STR("media_player_command_request"); }
1961#endif
1962 bool has_command{false};
1964 bool has_volume{false};
1965 float volume{0.0f};
1966 bool has_media_url{false};
1968 bool has_announcement{false};
1969 bool announcement{false};
1970#ifdef HAS_PROTO_MESSAGE_DUMP
1971 const char *dump_to(DumpBuffer &out) const override;
1972#endif
1973
1974 protected:
1975 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1976 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1977 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1978};
1979#endif
1980#ifdef USE_BLUETOOTH_PROXY
1982 public:
1983 static constexpr uint16_t MESSAGE_TYPE = 66;
1984 static constexpr uint8_t ESTIMATED_SIZE = 4;
1985#ifdef HAS_PROTO_MESSAGE_DUMP
1986 const LogString *message_name() const override { return LOG_STR("subscribe_bluetooth_le_advertisements_request"); }
1987#endif
1989#ifdef HAS_PROTO_MESSAGE_DUMP
1990 const char *dump_to(DumpBuffer &out) const override;
1991#endif
1992
1993 protected:
1994 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1995};
1997 public:
1998 uint64_t address{0};
1999 int32_t rssi{0};
2001 uint8_t data[62]{};
2002 uint8_t data_len{0};
2003#ifdef HAS_PROTO_MESSAGE_DUMP
2004 const char *dump_to(DumpBuffer &out) const override;
2005#endif
2006
2007 protected:
2008};
2010 public:
2011 static constexpr uint16_t MESSAGE_TYPE = 93;
2012 static constexpr uint8_t ESTIMATED_SIZE = 136;
2013#ifdef HAS_PROTO_MESSAGE_DUMP
2014 const LogString *message_name() const override { return LOG_STR("bluetooth_le_raw_advertisements_response"); }
2015#endif
2016 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
2018 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2020#ifdef HAS_PROTO_MESSAGE_DUMP
2021 const char *dump_to(DumpBuffer &out) const override;
2022#endif
2023
2024 protected:
2025};
2026#endif
2027#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2029 public:
2030 static constexpr uint16_t MESSAGE_TYPE = 68;
2031 static constexpr uint8_t ESTIMATED_SIZE = 12;
2032#ifdef HAS_PROTO_MESSAGE_DUMP
2033 const LogString *message_name() const override { return LOG_STR("bluetooth_device_request"); }
2034#endif
2035 uint64_t address{0};
2037 bool has_address_type{false};
2039#ifdef HAS_PROTO_MESSAGE_DUMP
2040 const char *dump_to(DumpBuffer &out) const override;
2041#endif
2042
2043 protected:
2044 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2045};
2047 public:
2048 static constexpr uint16_t MESSAGE_TYPE = 69;
2049 static constexpr uint8_t ESTIMATED_SIZE = 14;
2050#ifdef HAS_PROTO_MESSAGE_DUMP
2051 const LogString *message_name() const override { return LOG_STR("bluetooth_device_connection_response"); }
2052#endif
2053 uint64_t address{0};
2054 bool connected{false};
2056 int32_t error{0};
2057 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2058 uint32_t calculate_size() const;
2059#ifdef HAS_PROTO_MESSAGE_DUMP
2060 const char *dump_to(DumpBuffer &out) const override;
2061#endif
2062
2063 protected:
2064};
2066 public:
2067 static constexpr uint16_t MESSAGE_TYPE = 70;
2068 static constexpr uint8_t ESTIMATED_SIZE = 4;
2069#ifdef HAS_PROTO_MESSAGE_DUMP
2070 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_request"); }
2071#endif
2072 uint64_t address{0};
2073#ifdef HAS_PROTO_MESSAGE_DUMP
2074 const char *dump_to(DumpBuffer &out) const override;
2075#endif
2076
2077 protected:
2078 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2079};
2081 public:
2082 std::array<uint64_t, 2> uuid{};
2085 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2086 uint32_t calculate_size() const;
2087#ifdef HAS_PROTO_MESSAGE_DUMP
2088 const char *dump_to(DumpBuffer &out) const override;
2089#endif
2090
2091 protected:
2092};
2094 public:
2095 std::array<uint64_t, 2> uuid{};
2100 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2101 uint32_t calculate_size() const;
2102#ifdef HAS_PROTO_MESSAGE_DUMP
2103 const char *dump_to(DumpBuffer &out) const override;
2104#endif
2105
2106 protected:
2107};
2109 public:
2110 std::array<uint64_t, 2> uuid{};
2114 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2115 uint32_t calculate_size() const;
2116#ifdef HAS_PROTO_MESSAGE_DUMP
2117 const char *dump_to(DumpBuffer &out) const override;
2118#endif
2119
2120 protected:
2121};
2123 public:
2124 static constexpr uint16_t MESSAGE_TYPE = 71;
2125 static constexpr uint8_t ESTIMATED_SIZE = 38;
2126#ifdef HAS_PROTO_MESSAGE_DUMP
2127 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_response"); }
2128#endif
2129 uint64_t address{0};
2130 std::vector<BluetoothGATTService> services{};
2131 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2132 uint32_t calculate_size() const;
2133#ifdef HAS_PROTO_MESSAGE_DUMP
2134 const char *dump_to(DumpBuffer &out) const override;
2135#endif
2136
2137 protected:
2138};
2140 public:
2141 static constexpr uint16_t MESSAGE_TYPE = 72;
2142 static constexpr uint8_t ESTIMATED_SIZE = 4;
2143#ifdef HAS_PROTO_MESSAGE_DUMP
2144 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_done_response"); }
2145#endif
2146 uint64_t address{0};
2147 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2148 uint32_t calculate_size() const;
2149#ifdef HAS_PROTO_MESSAGE_DUMP
2150 const char *dump_to(DumpBuffer &out) const override;
2151#endif
2152
2153 protected:
2154};
2156 public:
2157 static constexpr uint16_t MESSAGE_TYPE = 73;
2158 static constexpr uint8_t ESTIMATED_SIZE = 8;
2159#ifdef HAS_PROTO_MESSAGE_DUMP
2160 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_request"); }
2161#endif
2162 uint64_t address{0};
2164#ifdef HAS_PROTO_MESSAGE_DUMP
2165 const char *dump_to(DumpBuffer &out) const override;
2166#endif
2167
2168 protected:
2169 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2170};
2172 public:
2173 static constexpr uint16_t MESSAGE_TYPE = 74;
2174 static constexpr uint8_t ESTIMATED_SIZE = 27;
2175#ifdef HAS_PROTO_MESSAGE_DUMP
2176 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_response"); }
2177#endif
2178 uint64_t address{0};
2180 const uint8_t *data_ptr_{nullptr};
2181 size_t data_len_{0};
2182 void set_data(const uint8_t *data, size_t len) {
2183 this->data_ptr_ = data;
2184 this->data_len_ = len;
2185 }
2186 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2187 uint32_t calculate_size() const;
2188#ifdef HAS_PROTO_MESSAGE_DUMP
2189 const char *dump_to(DumpBuffer &out) const override;
2190#endif
2191
2192 protected:
2193};
2195 public:
2196 static constexpr uint16_t MESSAGE_TYPE = 75;
2197 static constexpr uint8_t ESTIMATED_SIZE = 29;
2198#ifdef HAS_PROTO_MESSAGE_DUMP
2199 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_request"); }
2200#endif
2201 uint64_t address{0};
2203 bool response{false};
2204 const uint8_t *data{nullptr};
2205 uint16_t data_len{0};
2206#ifdef HAS_PROTO_MESSAGE_DUMP
2207 const char *dump_to(DumpBuffer &out) const override;
2208#endif
2209
2210 protected:
2211 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2212 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2213};
2215 public:
2216 static constexpr uint16_t MESSAGE_TYPE = 76;
2217 static constexpr uint8_t ESTIMATED_SIZE = 8;
2218#ifdef HAS_PROTO_MESSAGE_DUMP
2219 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_descriptor_request"); }
2220#endif
2221 uint64_t address{0};
2223#ifdef HAS_PROTO_MESSAGE_DUMP
2224 const char *dump_to(DumpBuffer &out) const override;
2225#endif
2226
2227 protected:
2228 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2229};
2231 public:
2232 static constexpr uint16_t MESSAGE_TYPE = 77;
2233 static constexpr uint8_t ESTIMATED_SIZE = 27;
2234#ifdef HAS_PROTO_MESSAGE_DUMP
2235 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_descriptor_request"); }
2236#endif
2237 uint64_t address{0};
2239 const uint8_t *data{nullptr};
2240 uint16_t data_len{0};
2241#ifdef HAS_PROTO_MESSAGE_DUMP
2242 const char *dump_to(DumpBuffer &out) const override;
2243#endif
2244
2245 protected:
2246 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2247 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2248};
2250 public:
2251 static constexpr uint16_t MESSAGE_TYPE = 78;
2252 static constexpr uint8_t ESTIMATED_SIZE = 10;
2253#ifdef HAS_PROTO_MESSAGE_DUMP
2254 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_request"); }
2255#endif
2256 uint64_t address{0};
2258 bool enable{false};
2259#ifdef HAS_PROTO_MESSAGE_DUMP
2260 const char *dump_to(DumpBuffer &out) const override;
2261#endif
2262
2263 protected:
2264 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2265};
2267 public:
2268 static constexpr uint16_t MESSAGE_TYPE = 79;
2269 static constexpr uint8_t ESTIMATED_SIZE = 27;
2270#ifdef HAS_PROTO_MESSAGE_DUMP
2271 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_data_response"); }
2272#endif
2273 uint64_t address{0};
2275 const uint8_t *data_ptr_{nullptr};
2276 size_t data_len_{0};
2277 void set_data(const uint8_t *data, size_t len) {
2278 this->data_ptr_ = data;
2279 this->data_len_ = len;
2280 }
2281 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2282 uint32_t calculate_size() const;
2283#ifdef HAS_PROTO_MESSAGE_DUMP
2284 const char *dump_to(DumpBuffer &out) const override;
2285#endif
2286
2287 protected:
2288};
2290 public:
2291 static constexpr uint16_t MESSAGE_TYPE = 81;
2292 static constexpr uint8_t ESTIMATED_SIZE = 20;
2293#ifdef HAS_PROTO_MESSAGE_DUMP
2294 const LogString *message_name() const override { return LOG_STR("bluetooth_connections_free_response"); }
2295#endif
2298 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2299 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2300 uint32_t calculate_size() const;
2301#ifdef HAS_PROTO_MESSAGE_DUMP
2302 const char *dump_to(DumpBuffer &out) const override;
2303#endif
2304
2305 protected:
2306};
2308 public:
2309 static constexpr uint16_t MESSAGE_TYPE = 82;
2310 static constexpr uint8_t ESTIMATED_SIZE = 12;
2311#ifdef HAS_PROTO_MESSAGE_DUMP
2312 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_error_response"); }
2313#endif
2314 uint64_t address{0};
2316 int32_t error{0};
2317 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2318 uint32_t calculate_size() const;
2319#ifdef HAS_PROTO_MESSAGE_DUMP
2320 const char *dump_to(DumpBuffer &out) const override;
2321#endif
2322
2323 protected:
2324};
2326 public:
2327 static constexpr uint16_t MESSAGE_TYPE = 83;
2328 static constexpr uint8_t ESTIMATED_SIZE = 8;
2329#ifdef HAS_PROTO_MESSAGE_DUMP
2330 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_response"); }
2331#endif
2332 uint64_t address{0};
2334 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2335 uint32_t calculate_size() const;
2336#ifdef HAS_PROTO_MESSAGE_DUMP
2337 const char *dump_to(DumpBuffer &out) const override;
2338#endif
2339
2340 protected:
2341};
2343 public:
2344 static constexpr uint16_t MESSAGE_TYPE = 84;
2345 static constexpr uint8_t ESTIMATED_SIZE = 8;
2346#ifdef HAS_PROTO_MESSAGE_DUMP
2347 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_response"); }
2348#endif
2349 uint64_t address{0};
2351 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2352 uint32_t calculate_size() const;
2353#ifdef HAS_PROTO_MESSAGE_DUMP
2354 const char *dump_to(DumpBuffer &out) const override;
2355#endif
2356
2357 protected:
2358};
2360 public:
2361 static constexpr uint16_t MESSAGE_TYPE = 85;
2362 static constexpr uint8_t ESTIMATED_SIZE = 10;
2363#ifdef HAS_PROTO_MESSAGE_DUMP
2364 const LogString *message_name() const override { return LOG_STR("bluetooth_device_pairing_response"); }
2365#endif
2366 uint64_t address{0};
2367 bool paired{false};
2368 int32_t error{0};
2369 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2370 uint32_t calculate_size() const;
2371#ifdef HAS_PROTO_MESSAGE_DUMP
2372 const char *dump_to(DumpBuffer &out) const override;
2373#endif
2374
2375 protected:
2376};
2378 public:
2379 static constexpr uint16_t MESSAGE_TYPE = 86;
2380 static constexpr uint8_t ESTIMATED_SIZE = 10;
2381#ifdef HAS_PROTO_MESSAGE_DUMP
2382 const LogString *message_name() const override { return LOG_STR("bluetooth_device_unpairing_response"); }
2383#endif
2384 uint64_t address{0};
2385 bool success{false};
2386 int32_t error{0};
2387 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2388 uint32_t calculate_size() const;
2389#ifdef HAS_PROTO_MESSAGE_DUMP
2390 const char *dump_to(DumpBuffer &out) const override;
2391#endif
2392
2393 protected:
2394};
2396 public:
2397 static constexpr uint16_t MESSAGE_TYPE = 88;
2398 static constexpr uint8_t ESTIMATED_SIZE = 10;
2399#ifdef HAS_PROTO_MESSAGE_DUMP
2400 const LogString *message_name() const override { return LOG_STR("bluetooth_device_clear_cache_response"); }
2401#endif
2402 uint64_t address{0};
2403 bool success{false};
2404 int32_t error{0};
2405 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2406 uint32_t calculate_size() const;
2407#ifdef HAS_PROTO_MESSAGE_DUMP
2408 const char *dump_to(DumpBuffer &out) const override;
2409#endif
2410
2411 protected:
2412};
2413#endif
2414#ifdef USE_BLUETOOTH_PROXY
2416 public:
2417 static constexpr uint16_t MESSAGE_TYPE = 126;
2418 static constexpr uint8_t ESTIMATED_SIZE = 6;
2419#ifdef HAS_PROTO_MESSAGE_DUMP
2420 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_state_response"); }
2421#endif
2425 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2426 uint32_t calculate_size() const;
2427#ifdef HAS_PROTO_MESSAGE_DUMP
2428 const char *dump_to(DumpBuffer &out) const override;
2429#endif
2430
2431 protected:
2432};
2434 public:
2435 static constexpr uint16_t MESSAGE_TYPE = 127;
2436 static constexpr uint8_t ESTIMATED_SIZE = 2;
2437#ifdef HAS_PROTO_MESSAGE_DUMP
2438 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_set_mode_request"); }
2439#endif
2441#ifdef HAS_PROTO_MESSAGE_DUMP
2442 const char *dump_to(DumpBuffer &out) const override;
2443#endif
2444
2445 protected:
2446 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2447};
2448#endif
2449#ifdef USE_VOICE_ASSISTANT
2451 public:
2452 static constexpr uint16_t MESSAGE_TYPE = 89;
2453 static constexpr uint8_t ESTIMATED_SIZE = 6;
2454#ifdef HAS_PROTO_MESSAGE_DUMP
2455 const LogString *message_name() const override { return LOG_STR("subscribe_voice_assistant_request"); }
2456#endif
2457 bool subscribe{false};
2459#ifdef HAS_PROTO_MESSAGE_DUMP
2460 const char *dump_to(DumpBuffer &out) const override;
2461#endif
2462
2463 protected:
2464 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2465};
2467 public:
2471 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2472 uint32_t calculate_size() const;
2473#ifdef HAS_PROTO_MESSAGE_DUMP
2474 const char *dump_to(DumpBuffer &out) const override;
2475#endif
2476
2477 protected:
2478};
2480 public:
2481 static constexpr uint16_t MESSAGE_TYPE = 90;
2482 static constexpr uint8_t ESTIMATED_SIZE = 41;
2483#ifdef HAS_PROTO_MESSAGE_DUMP
2484 const LogString *message_name() const override { return LOG_STR("voice_assistant_request"); }
2485#endif
2486 bool start{false};
2491 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2492 uint32_t calculate_size() const;
2493#ifdef HAS_PROTO_MESSAGE_DUMP
2494 const char *dump_to(DumpBuffer &out) const override;
2495#endif
2496
2497 protected:
2498};
2500 public:
2501 static constexpr uint16_t MESSAGE_TYPE = 91;
2502 static constexpr uint8_t ESTIMATED_SIZE = 6;
2503#ifdef HAS_PROTO_MESSAGE_DUMP
2504 const LogString *message_name() const override { return LOG_STR("voice_assistant_response"); }
2505#endif
2507 bool error{false};
2508#ifdef HAS_PROTO_MESSAGE_DUMP
2509 const char *dump_to(DumpBuffer &out) const override;
2510#endif
2511
2512 protected:
2513 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2514};
2516 public:
2519#ifdef HAS_PROTO_MESSAGE_DUMP
2520 const char *dump_to(DumpBuffer &out) const override;
2521#endif
2522
2523 protected:
2524 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2525};
2527 public:
2528 static constexpr uint16_t MESSAGE_TYPE = 92;
2529 static constexpr uint8_t ESTIMATED_SIZE = 36;
2530#ifdef HAS_PROTO_MESSAGE_DUMP
2531 const LogString *message_name() const override { return LOG_STR("voice_assistant_event_response"); }
2532#endif
2534 std::vector<VoiceAssistantEventData> data{};
2535#ifdef HAS_PROTO_MESSAGE_DUMP
2536 const char *dump_to(DumpBuffer &out) const override;
2537#endif
2538
2539 protected:
2540 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2541 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2542};
2544 public:
2545 static constexpr uint16_t MESSAGE_TYPE = 106;
2546 static constexpr uint8_t ESTIMATED_SIZE = 40;
2547#ifdef HAS_PROTO_MESSAGE_DUMP
2548 const LogString *message_name() const override { return LOG_STR("voice_assistant_audio"); }
2549#endif
2550 const uint8_t *data{nullptr};
2551 uint16_t data_len{0};
2552 bool end{false};
2553 const uint8_t *data2{nullptr};
2554 uint16_t data2_len{0};
2555 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2556 uint32_t calculate_size() const;
2557#ifdef HAS_PROTO_MESSAGE_DUMP
2558 const char *dump_to(DumpBuffer &out) const override;
2559#endif
2560
2561 protected:
2562 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2563 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2564};
2566 public:
2567 static constexpr uint16_t MESSAGE_TYPE = 115;
2568 static constexpr uint8_t ESTIMATED_SIZE = 30;
2569#ifdef HAS_PROTO_MESSAGE_DUMP
2570 const LogString *message_name() const override { return LOG_STR("voice_assistant_timer_event_response"); }
2571#endif
2577 bool is_active{false};
2578#ifdef HAS_PROTO_MESSAGE_DUMP
2579 const char *dump_to(DumpBuffer &out) const override;
2580#endif
2581
2582 protected:
2583 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2584 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2585};
2587 public:
2588 static constexpr uint16_t MESSAGE_TYPE = 119;
2589 static constexpr uint8_t ESTIMATED_SIZE = 29;
2590#ifdef HAS_PROTO_MESSAGE_DUMP
2591 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_request"); }
2592#endif
2597#ifdef HAS_PROTO_MESSAGE_DUMP
2598 const char *dump_to(DumpBuffer &out) const override;
2599#endif
2600
2601 protected:
2602 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2603 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2604};
2606 public:
2607 static constexpr uint16_t MESSAGE_TYPE = 120;
2608 static constexpr uint8_t ESTIMATED_SIZE = 2;
2609#ifdef HAS_PROTO_MESSAGE_DUMP
2610 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_finished"); }
2611#endif
2612 bool success{false};
2613 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2614 uint32_t calculate_size() const;
2615#ifdef HAS_PROTO_MESSAGE_DUMP
2616 const char *dump_to(DumpBuffer &out) const override;
2617#endif
2618
2619 protected:
2620};
2622 public:
2625 std::vector<std::string> trained_languages{};
2626 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2627 uint32_t calculate_size() const;
2628#ifdef HAS_PROTO_MESSAGE_DUMP
2629 const char *dump_to(DumpBuffer &out) const override;
2630#endif
2631
2632 protected:
2633};
2635 public:
2638 std::vector<std::string> trained_languages{};
2643#ifdef HAS_PROTO_MESSAGE_DUMP
2644 const char *dump_to(DumpBuffer &out) const override;
2645#endif
2646
2647 protected:
2648 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2649 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2650};
2652 public:
2653 static constexpr uint16_t MESSAGE_TYPE = 121;
2654 static constexpr uint8_t ESTIMATED_SIZE = 34;
2655#ifdef HAS_PROTO_MESSAGE_DUMP
2656 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_request"); }
2657#endif
2658 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
2659#ifdef HAS_PROTO_MESSAGE_DUMP
2660 const char *dump_to(DumpBuffer &out) const override;
2661#endif
2662
2663 protected:
2664 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2665};
2667 public:
2668 static constexpr uint16_t MESSAGE_TYPE = 122;
2669 static constexpr uint8_t ESTIMATED_SIZE = 56;
2670#ifdef HAS_PROTO_MESSAGE_DUMP
2671 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_response"); }
2672#endif
2673 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2674 const std::vector<std::string> *active_wake_words{};
2676 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2677 uint32_t calculate_size() const;
2678#ifdef HAS_PROTO_MESSAGE_DUMP
2679 const char *dump_to(DumpBuffer &out) const override;
2680#endif
2681
2682 protected:
2683};
2685 public:
2686 static constexpr uint16_t MESSAGE_TYPE = 123;
2687 static constexpr uint8_t ESTIMATED_SIZE = 18;
2688#ifdef HAS_PROTO_MESSAGE_DUMP
2689 const LogString *message_name() const override { return LOG_STR("voice_assistant_set_configuration"); }
2690#endif
2691 std::vector<std::string> active_wake_words{};
2692#ifdef HAS_PROTO_MESSAGE_DUMP
2693 const char *dump_to(DumpBuffer &out) const override;
2694#endif
2695
2696 protected:
2697 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2698};
2699#endif
2700#ifdef USE_ALARM_CONTROL_PANEL
2702 public:
2703 static constexpr uint16_t MESSAGE_TYPE = 94;
2704 static constexpr uint8_t ESTIMATED_SIZE = 48;
2705#ifdef HAS_PROTO_MESSAGE_DUMP
2706 const LogString *message_name() const override { return LOG_STR("list_entities_alarm_control_panel_response"); }
2707#endif
2709 bool requires_code{false};
2711 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2712 uint32_t calculate_size() const;
2713#ifdef HAS_PROTO_MESSAGE_DUMP
2714 const char *dump_to(DumpBuffer &out) const override;
2715#endif
2716
2717 protected:
2718};
2720 public:
2721 static constexpr uint16_t MESSAGE_TYPE = 95;
2722 static constexpr uint8_t ESTIMATED_SIZE = 11;
2723#ifdef HAS_PROTO_MESSAGE_DUMP
2724 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_state_response"); }
2725#endif
2727 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2728 uint32_t calculate_size() const;
2729#ifdef HAS_PROTO_MESSAGE_DUMP
2730 const char *dump_to(DumpBuffer &out) const override;
2731#endif
2732
2733 protected:
2734};
2736 public:
2737 static constexpr uint16_t MESSAGE_TYPE = 96;
2738 static constexpr uint8_t ESTIMATED_SIZE = 20;
2739#ifdef HAS_PROTO_MESSAGE_DUMP
2740 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_command_request"); }
2741#endif
2744#ifdef HAS_PROTO_MESSAGE_DUMP
2745 const char *dump_to(DumpBuffer &out) const override;
2746#endif
2747
2748 protected:
2749 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2750 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2751 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2752};
2753#endif
2754#ifdef USE_TEXT
2756 public:
2757 static constexpr uint16_t MESSAGE_TYPE = 97;
2758 static constexpr uint8_t ESTIMATED_SIZE = 59;
2759#ifdef HAS_PROTO_MESSAGE_DUMP
2760 const LogString *message_name() const override { return LOG_STR("list_entities_text_response"); }
2761#endif
2766 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2767 uint32_t calculate_size() const;
2768#ifdef HAS_PROTO_MESSAGE_DUMP
2769 const char *dump_to(DumpBuffer &out) const override;
2770#endif
2771
2772 protected:
2773};
2775 public:
2776 static constexpr uint16_t MESSAGE_TYPE = 98;
2777 static constexpr uint8_t ESTIMATED_SIZE = 20;
2778#ifdef HAS_PROTO_MESSAGE_DUMP
2779 const LogString *message_name() const override { return LOG_STR("text_state_response"); }
2780#endif
2782 bool missing_state{false};
2783 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2784 uint32_t calculate_size() const;
2785#ifdef HAS_PROTO_MESSAGE_DUMP
2786 const char *dump_to(DumpBuffer &out) const override;
2787#endif
2788
2789 protected:
2790};
2792 public:
2793 static constexpr uint16_t MESSAGE_TYPE = 99;
2794 static constexpr uint8_t ESTIMATED_SIZE = 18;
2795#ifdef HAS_PROTO_MESSAGE_DUMP
2796 const LogString *message_name() const override { return LOG_STR("text_command_request"); }
2797#endif
2799#ifdef HAS_PROTO_MESSAGE_DUMP
2800 const char *dump_to(DumpBuffer &out) const override;
2801#endif
2802
2803 protected:
2804 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2805 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2806 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2807};
2808#endif
2809#ifdef USE_DATETIME_DATE
2811 public:
2812 static constexpr uint16_t MESSAGE_TYPE = 100;
2813 static constexpr uint8_t ESTIMATED_SIZE = 40;
2814#ifdef HAS_PROTO_MESSAGE_DUMP
2815 const LogString *message_name() const override { return LOG_STR("list_entities_date_response"); }
2816#endif
2817 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2818 uint32_t calculate_size() const;
2819#ifdef HAS_PROTO_MESSAGE_DUMP
2820 const char *dump_to(DumpBuffer &out) const override;
2821#endif
2822
2823 protected:
2824};
2826 public:
2827 static constexpr uint16_t MESSAGE_TYPE = 101;
2828 static constexpr uint8_t ESTIMATED_SIZE = 23;
2829#ifdef HAS_PROTO_MESSAGE_DUMP
2830 const LogString *message_name() const override { return LOG_STR("date_state_response"); }
2831#endif
2832 bool missing_state{false};
2836 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2837 uint32_t calculate_size() const;
2838#ifdef HAS_PROTO_MESSAGE_DUMP
2839 const char *dump_to(DumpBuffer &out) const override;
2840#endif
2841
2842 protected:
2843};
2845 public:
2846 static constexpr uint16_t MESSAGE_TYPE = 102;
2847 static constexpr uint8_t ESTIMATED_SIZE = 21;
2848#ifdef HAS_PROTO_MESSAGE_DUMP
2849 const LogString *message_name() const override { return LOG_STR("date_command_request"); }
2850#endif
2854#ifdef HAS_PROTO_MESSAGE_DUMP
2855 const char *dump_to(DumpBuffer &out) const override;
2856#endif
2857
2858 protected:
2859 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2860 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2861};
2862#endif
2863#ifdef USE_DATETIME_TIME
2865 public:
2866 static constexpr uint16_t MESSAGE_TYPE = 103;
2867 static constexpr uint8_t ESTIMATED_SIZE = 40;
2868#ifdef HAS_PROTO_MESSAGE_DUMP
2869 const LogString *message_name() const override { return LOG_STR("list_entities_time_response"); }
2870#endif
2871 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2872 uint32_t calculate_size() const;
2873#ifdef HAS_PROTO_MESSAGE_DUMP
2874 const char *dump_to(DumpBuffer &out) const override;
2875#endif
2876
2877 protected:
2878};
2880 public:
2881 static constexpr uint16_t MESSAGE_TYPE = 104;
2882 static constexpr uint8_t ESTIMATED_SIZE = 23;
2883#ifdef HAS_PROTO_MESSAGE_DUMP
2884 const LogString *message_name() const override { return LOG_STR("time_state_response"); }
2885#endif
2886 bool missing_state{false};
2890 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2891 uint32_t calculate_size() const;
2892#ifdef HAS_PROTO_MESSAGE_DUMP
2893 const char *dump_to(DumpBuffer &out) const override;
2894#endif
2895
2896 protected:
2897};
2899 public:
2900 static constexpr uint16_t MESSAGE_TYPE = 105;
2901 static constexpr uint8_t ESTIMATED_SIZE = 21;
2902#ifdef HAS_PROTO_MESSAGE_DUMP
2903 const LogString *message_name() const override { return LOG_STR("time_command_request"); }
2904#endif
2908#ifdef HAS_PROTO_MESSAGE_DUMP
2909 const char *dump_to(DumpBuffer &out) const override;
2910#endif
2911
2912 protected:
2913 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2914 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2915};
2916#endif
2917#ifdef USE_EVENT
2919 public:
2920 static constexpr uint16_t MESSAGE_TYPE = 107;
2921 static constexpr uint8_t ESTIMATED_SIZE = 67;
2922#ifdef HAS_PROTO_MESSAGE_DUMP
2923 const LogString *message_name() const override { return LOG_STR("list_entities_event_response"); }
2924#endif
2927 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2928 uint32_t calculate_size() const;
2929#ifdef HAS_PROTO_MESSAGE_DUMP
2930 const char *dump_to(DumpBuffer &out) const override;
2931#endif
2932
2933 protected:
2934};
2936 public:
2937 static constexpr uint16_t MESSAGE_TYPE = 108;
2938 static constexpr uint8_t ESTIMATED_SIZE = 18;
2939#ifdef HAS_PROTO_MESSAGE_DUMP
2940 const LogString *message_name() const override { return LOG_STR("event_response"); }
2941#endif
2943 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2944 uint32_t calculate_size() const;
2945#ifdef HAS_PROTO_MESSAGE_DUMP
2946 const char *dump_to(DumpBuffer &out) const override;
2947#endif
2948
2949 protected:
2950};
2951#endif
2952#ifdef USE_VALVE
2954 public:
2955 static constexpr uint16_t MESSAGE_TYPE = 109;
2956 static constexpr uint8_t ESTIMATED_SIZE = 55;
2957#ifdef HAS_PROTO_MESSAGE_DUMP
2958 const LogString *message_name() const override { return LOG_STR("list_entities_valve_response"); }
2959#endif
2961 bool assumed_state{false};
2963 bool supports_stop{false};
2964 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2965 uint32_t calculate_size() const;
2966#ifdef HAS_PROTO_MESSAGE_DUMP
2967 const char *dump_to(DumpBuffer &out) const override;
2968#endif
2969
2970 protected:
2971};
2973 public:
2974 static constexpr uint16_t MESSAGE_TYPE = 110;
2975 static constexpr uint8_t ESTIMATED_SIZE = 16;
2976#ifdef HAS_PROTO_MESSAGE_DUMP
2977 const LogString *message_name() const override { return LOG_STR("valve_state_response"); }
2978#endif
2979 float position{0.0f};
2981 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2982 uint32_t calculate_size() const;
2983#ifdef HAS_PROTO_MESSAGE_DUMP
2984 const char *dump_to(DumpBuffer &out) const override;
2985#endif
2986
2987 protected:
2988};
2990 public:
2991 static constexpr uint16_t MESSAGE_TYPE = 111;
2992 static constexpr uint8_t ESTIMATED_SIZE = 18;
2993#ifdef HAS_PROTO_MESSAGE_DUMP
2994 const LogString *message_name() const override { return LOG_STR("valve_command_request"); }
2995#endif
2996 bool has_position{false};
2997 float position{0.0f};
2998 bool stop{false};
2999#ifdef HAS_PROTO_MESSAGE_DUMP
3000 const char *dump_to(DumpBuffer &out) const override;
3001#endif
3002
3003 protected:
3004 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3005 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3006};
3007#endif
3008#ifdef USE_DATETIME_DATETIME
3010 public:
3011 static constexpr uint16_t MESSAGE_TYPE = 112;
3012 static constexpr uint8_t ESTIMATED_SIZE = 40;
3013#ifdef HAS_PROTO_MESSAGE_DUMP
3014 const LogString *message_name() const override { return LOG_STR("list_entities_date_time_response"); }
3015#endif
3016 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3017 uint32_t calculate_size() const;
3018#ifdef HAS_PROTO_MESSAGE_DUMP
3019 const char *dump_to(DumpBuffer &out) const override;
3020#endif
3021
3022 protected:
3023};
3025 public:
3026 static constexpr uint16_t MESSAGE_TYPE = 113;
3027 static constexpr uint8_t ESTIMATED_SIZE = 16;
3028#ifdef HAS_PROTO_MESSAGE_DUMP
3029 const LogString *message_name() const override { return LOG_STR("date_time_state_response"); }
3030#endif
3031 bool missing_state{false};
3033 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3034 uint32_t calculate_size() const;
3035#ifdef HAS_PROTO_MESSAGE_DUMP
3036 const char *dump_to(DumpBuffer &out) const override;
3037#endif
3038
3039 protected:
3040};
3042 public:
3043 static constexpr uint16_t MESSAGE_TYPE = 114;
3044 static constexpr uint8_t ESTIMATED_SIZE = 14;
3045#ifdef HAS_PROTO_MESSAGE_DUMP
3046 const LogString *message_name() const override { return LOG_STR("date_time_command_request"); }
3047#endif
3049#ifdef HAS_PROTO_MESSAGE_DUMP
3050 const char *dump_to(DumpBuffer &out) const override;
3051#endif
3052
3053 protected:
3054 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3055 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3056};
3057#endif
3058#ifdef USE_UPDATE
3060 public:
3061 static constexpr uint16_t MESSAGE_TYPE = 116;
3062 static constexpr uint8_t ESTIMATED_SIZE = 49;
3063#ifdef HAS_PROTO_MESSAGE_DUMP
3064 const LogString *message_name() const override { return LOG_STR("list_entities_update_response"); }
3065#endif
3067 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3068 uint32_t calculate_size() const;
3069#ifdef HAS_PROTO_MESSAGE_DUMP
3070 const char *dump_to(DumpBuffer &out) const override;
3071#endif
3072
3073 protected:
3074};
3076 public:
3077 static constexpr uint16_t MESSAGE_TYPE = 117;
3078 static constexpr uint8_t ESTIMATED_SIZE = 65;
3079#ifdef HAS_PROTO_MESSAGE_DUMP
3080 const LogString *message_name() const override { return LOG_STR("update_state_response"); }
3081#endif
3082 bool missing_state{false};
3083 bool in_progress{false};
3084 bool has_progress{false};
3085 float progress{0.0f};
3091 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3092 uint32_t calculate_size() const;
3093#ifdef HAS_PROTO_MESSAGE_DUMP
3094 const char *dump_to(DumpBuffer &out) const override;
3095#endif
3096
3097 protected:
3098};
3100 public:
3101 static constexpr uint16_t MESSAGE_TYPE = 118;
3102 static constexpr uint8_t ESTIMATED_SIZE = 11;
3103#ifdef HAS_PROTO_MESSAGE_DUMP
3104 const LogString *message_name() const override { return LOG_STR("update_command_request"); }
3105#endif
3107#ifdef HAS_PROTO_MESSAGE_DUMP
3108 const char *dump_to(DumpBuffer &out) const override;
3109#endif
3110
3111 protected:
3112 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3113 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3114};
3115#endif
3116#ifdef USE_ZWAVE_PROXY
3118 public:
3119 static constexpr uint16_t MESSAGE_TYPE = 128;
3120 static constexpr uint8_t ESTIMATED_SIZE = 19;
3121#ifdef HAS_PROTO_MESSAGE_DUMP
3122 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_frame"); }
3123#endif
3124 const uint8_t *data{nullptr};
3125 uint16_t data_len{0};
3126 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3128#ifdef HAS_PROTO_MESSAGE_DUMP
3129 const char *dump_to(DumpBuffer &out) const override;
3130#endif
3131
3132 protected:
3133 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3134};
3136 public:
3137 static constexpr uint16_t MESSAGE_TYPE = 129;
3138 static constexpr uint8_t ESTIMATED_SIZE = 21;
3139#ifdef HAS_PROTO_MESSAGE_DUMP
3140 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_request"); }
3141#endif
3143 const uint8_t *data{nullptr};
3144 uint16_t data_len{0};
3145 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3146 uint32_t calculate_size() const;
3147#ifdef HAS_PROTO_MESSAGE_DUMP
3148 const char *dump_to(DumpBuffer &out) const override;
3149#endif
3150
3151 protected:
3152 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3153 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3154};
3156 public:
3157 static constexpr uint16_t MESSAGE_TYPE = 151;
3158 static constexpr uint8_t ESTIMATED_SIZE = 4;
3159#ifdef HAS_PROTO_MESSAGE_DUMP
3160 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_request_response"); }
3161#endif
3164 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3165 uint32_t calculate_size() const;
3166#ifdef HAS_PROTO_MESSAGE_DUMP
3167 const char *dump_to(DumpBuffer &out) const override;
3168#endif
3169
3170 protected:
3171};
3172#endif
3173#ifdef USE_INFRARED
3175 public:
3176 static constexpr uint16_t MESSAGE_TYPE = 135;
3177 static constexpr uint8_t ESTIMATED_SIZE = 48;
3178#ifdef HAS_PROTO_MESSAGE_DUMP
3179 const LogString *message_name() const override { return LOG_STR("list_entities_infrared_response"); }
3180#endif
3183 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3184 uint32_t calculate_size() const;
3185#ifdef HAS_PROTO_MESSAGE_DUMP
3186 const char *dump_to(DumpBuffer &out) const override;
3187#endif
3188
3189 protected:
3190};
3191#endif
3192#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
3194 public:
3195 static constexpr uint16_t MESSAGE_TYPE = 136;
3196 static constexpr uint8_t ESTIMATED_SIZE = 224;
3197#ifdef HAS_PROTO_MESSAGE_DUMP
3198 const LogString *message_name() const override { return LOG_STR("infrared_rf_transmit_raw_timings_request"); }
3199#endif
3200#ifdef USE_DEVICES
3202#endif
3206 const uint8_t *timings_data_{nullptr};
3207 uint16_t timings_length_{0};
3208 uint16_t timings_count_{0};
3210#ifdef HAS_PROTO_MESSAGE_DUMP
3211 const char *dump_to(DumpBuffer &out) const override;
3212#endif
3213
3214 protected:
3215 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3216 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3217 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3218};
3220 public:
3221 static constexpr uint16_t MESSAGE_TYPE = 137;
3222 static constexpr uint8_t ESTIMATED_SIZE = 17;
3223#ifdef HAS_PROTO_MESSAGE_DUMP
3224 const LogString *message_name() const override { return LOG_STR("infrared_rf_receive_event"); }
3225#endif
3226#ifdef USE_DEVICES
3228#endif
3230 const std::vector<int32_t> *timings{};
3231 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3233#ifdef HAS_PROTO_MESSAGE_DUMP
3234 const char *dump_to(DumpBuffer &out) const override;
3235#endif
3236
3237 protected:
3238};
3239#endif
3240#ifdef USE_RADIO_FREQUENCY
3242 public:
3243 static constexpr uint16_t MESSAGE_TYPE = 148;
3244 static constexpr uint8_t ESTIMATED_SIZE = 56;
3245#ifdef HAS_PROTO_MESSAGE_DUMP
3246 const LogString *message_name() const override { return LOG_STR("list_entities_radio_frequency_response"); }
3247#endif
3252 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3254#ifdef HAS_PROTO_MESSAGE_DUMP
3255 const char *dump_to(DumpBuffer &out) const override;
3256#endif
3257
3258 protected:
3259};
3260#endif
3261#ifdef USE_SERIAL_PROXY
3263 public:
3264 static constexpr uint16_t MESSAGE_TYPE = 138;
3265 static constexpr uint8_t ESTIMATED_SIZE = 20;
3266#ifdef HAS_PROTO_MESSAGE_DUMP
3267 const LogString *message_name() const override { return LOG_STR("serial_proxy_configure_request"); }
3268#endif
3271 bool flow_control{false};
3275#ifdef HAS_PROTO_MESSAGE_DUMP
3276 const char *dump_to(DumpBuffer &out) const override;
3277#endif
3278
3279 protected:
3280 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3281};
3283 public:
3284 static constexpr uint16_t MESSAGE_TYPE = 139;
3285 static constexpr uint8_t ESTIMATED_SIZE = 23;
3286#ifdef HAS_PROTO_MESSAGE_DUMP
3287 const LogString *message_name() const override { return LOG_STR("serial_proxy_data_received"); }
3288#endif
3290 const uint8_t *data_ptr_{nullptr};
3291 size_t data_len_{0};
3292 void set_data(const uint8_t *data, size_t len) {
3293 this->data_ptr_ = data;
3294 this->data_len_ = len;
3295 }
3296 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3298#ifdef HAS_PROTO_MESSAGE_DUMP
3299 const char *dump_to(DumpBuffer &out) const override;
3300#endif
3301
3302 protected:
3303};
3305 public:
3306 static constexpr uint16_t MESSAGE_TYPE = 140;
3307 static constexpr uint8_t ESTIMATED_SIZE = 23;
3308#ifdef HAS_PROTO_MESSAGE_DUMP
3309 const LogString *message_name() const override { return LOG_STR("serial_proxy_write_request"); }
3310#endif
3312 const uint8_t *data{nullptr};
3313 uint16_t data_len{0};
3314#ifdef HAS_PROTO_MESSAGE_DUMP
3315 const char *dump_to(DumpBuffer &out) const override;
3316#endif
3317
3318 protected:
3319 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3320 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3321};
3323 public:
3324 static constexpr uint16_t MESSAGE_TYPE = 141;
3325 static constexpr uint8_t ESTIMATED_SIZE = 8;
3326#ifdef HAS_PROTO_MESSAGE_DUMP
3327 const LogString *message_name() const override { return LOG_STR("serial_proxy_set_modem_pins_request"); }
3328#endif
3331#ifdef HAS_PROTO_MESSAGE_DUMP
3332 const char *dump_to(DumpBuffer &out) const override;
3333#endif
3334
3335 protected:
3336 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3337};
3339 public:
3340 static constexpr uint16_t MESSAGE_TYPE = 142;
3341 static constexpr uint8_t ESTIMATED_SIZE = 4;
3342#ifdef HAS_PROTO_MESSAGE_DUMP
3343 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_request"); }
3344#endif
3346#ifdef HAS_PROTO_MESSAGE_DUMP
3347 const char *dump_to(DumpBuffer &out) const override;
3348#endif
3349
3350 protected:
3351 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3352};
3354 public:
3355 static constexpr uint16_t MESSAGE_TYPE = 143;
3356 static constexpr uint8_t ESTIMATED_SIZE = 10;
3357#ifdef HAS_PROTO_MESSAGE_DUMP
3358 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_response"); }
3359#endif
3363 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3364 uint32_t calculate_size() const;
3365#ifdef HAS_PROTO_MESSAGE_DUMP
3366 const char *dump_to(DumpBuffer &out) const override;
3367#endif
3368
3369 protected:
3370};
3372 public:
3373 static constexpr uint16_t MESSAGE_TYPE = 144;
3374 static constexpr uint8_t ESTIMATED_SIZE = 6;
3375#ifdef HAS_PROTO_MESSAGE_DUMP
3376 const LogString *message_name() const override { return LOG_STR("serial_proxy_request"); }
3377#endif
3380#ifdef HAS_PROTO_MESSAGE_DUMP
3381 const char *dump_to(DumpBuffer &out) const override;
3382#endif
3383
3384 protected:
3385 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3386};
3388 public:
3389 static constexpr uint16_t MESSAGE_TYPE = 147;
3390 static constexpr uint8_t ESTIMATED_SIZE = 17;
3391#ifdef HAS_PROTO_MESSAGE_DUMP
3392 const LogString *message_name() const override { return LOG_STR("serial_proxy_request_response"); }
3393#endif
3398 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3399 uint32_t calculate_size() const;
3400#ifdef HAS_PROTO_MESSAGE_DUMP
3401 const char *dump_to(DumpBuffer &out) const override;
3402#endif
3403
3404 protected:
3405};
3406#endif
3407#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
3409 public:
3410 static constexpr uint16_t MESSAGE_TYPE = 145;
3411 static constexpr uint8_t ESTIMATED_SIZE = 20;
3412#ifdef HAS_PROTO_MESSAGE_DUMP
3413 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_request"); }
3414#endif
3415 uint64_t address{0};
3420#ifdef HAS_PROTO_MESSAGE_DUMP
3421 const char *dump_to(DumpBuffer &out) const override;
3422#endif
3423
3424 protected:
3425 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3426};
3428 public:
3429 static constexpr uint16_t MESSAGE_TYPE = 146;
3430 static constexpr uint8_t ESTIMATED_SIZE = 8;
3431#ifdef HAS_PROTO_MESSAGE_DUMP
3432 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_response"); }
3433#endif
3434 uint64_t address{0};
3435 int32_t error{0};
3436 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3437 uint32_t calculate_size() const;
3438#ifdef HAS_PROTO_MESSAGE_DUMP
3439 const char *dump_to(DumpBuffer &out) const override;
3440#endif
3441
3442 protected:
3443};
3444#endif
3445
3446} // namespace esphome::api
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
Definition helpers.h:545
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:3303
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2737
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:3277
const LogString * message_name() const override
Definition api_pb2.h:2740
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2742
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3292
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2738
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2722
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelState state
Definition api_pb2.h:2726
const LogString * message_name() const override
Definition api_pb2.h:2724
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3259
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2721
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.cpp:77
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:71
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:357
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:721
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:720
const LogString * message_name() const override
Definition api_pb2.h:723
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2298
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2294
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2776
const LogString * message_name() const override
Definition api_pb2.h:2400
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2864
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2051
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2521
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2361
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2362
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2836
const LogString * message_name() const override
Definition api_pb2.h:2364
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:2036
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2030
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2031
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2033
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
const LogString * message_name() const override
Definition api_pb2.h:2382
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2850
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:2098
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2095
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2567
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2547
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2082
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2310
const LogString * message_name() const override
Definition api_pb2.h:2312
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2309
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2798
const LogString * message_name() const override
Definition api_pb2.h:2144
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2643
const LogString * message_name() const override
Definition api_pb2.h:2070
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2068
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:2537
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2067
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2625
const LogString * message_name() const override
Definition api_pb2.h:2127
std::vector< BluetoothGATTService > services
Definition api_pb2.h:2130
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2762
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2268
const LogString * message_name() const override
Definition api_pb2.h:2271
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2277
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2269
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2252
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2251
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:2746
const LogString * message_name() const override
Definition api_pb2.h:2254
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2345
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2347
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2824
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2344
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2219
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2708
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2160
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2157
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2653
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2158
const char * dump_to(DumpBuffer &out) const override
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2182
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2173
const LogString * message_name() const override
Definition api_pb2.h:2176
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2666
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2174
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:2112
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2597
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2110
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2721
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2734
const LogString * message_name() const override
Definition api_pb2.h:2235
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2196
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2696
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2197
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2680
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2199
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2328
const LogString * message_name() const override
Definition api_pb2.h:2330
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2812
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2327
const char * dump_to(DumpBuffer &out) const override
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:2016
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:2014
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:247
enums::BluetoothScannerMode mode
Definition api_pb2.h:2440
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2435
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2438
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2436
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2894
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2417
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2418
enums::BluetoothScannerMode mode
Definition api_pb2.h:2423
enums::BluetoothScannerState state
Definition api_pb2.h:2422
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2880
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2424
const LogString * message_name() const override
Definition api_pb2.h:2420
const LogString * message_name() const override
Definition api_pb2.h:3413
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:4258
const LogString * message_name() const override
Definition api_pb2.h:3432
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4280
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2292
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1890
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2304
const LogString * message_name() const override
Definition api_pb2.h:1893
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1891
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1503
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1468
const LogString * message_name() const override
Definition api_pb2.h:1470
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1467
const char * dump_to(DumpBuffer &out) const override
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1452
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1446
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1448
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1445
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1483
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1725
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1548
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1563
const LogString * message_name() const override
Definition api_pb2.h:1550
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1561
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1656
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1547
enums::ClimatePreset preset
Definition api_pb2.h:1567
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1710
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1530
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1531
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1614
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1529
const LogString * message_name() const override
Definition api_pb2.h:1522
enums::ClimatePreset preset
Definition api_pb2.h:1533
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1520
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1519
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:462
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:778
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:441
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:777
const LogString * message_name() const override
Definition api_pb2.h:780
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:760
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:759
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:419
enums::CoverOperation current_operation
Definition api_pb2.h:766
const LogString * message_name() const override
Definition api_pb2.h:762
uint32_t calculate_size() const
Definition api_pb2.cpp:430
const char * dump_to(DumpBuffer &out) const override
enums::DSTRuleType type
Definition api_pb2.h:1272
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1201
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3483
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2849
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3462
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2846
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2847
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2827
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3438
const LogString * message_name() const override
Definition api_pb2.h:2830
uint32_t calculate_size() const
Definition api_pb2.cpp:3450
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2828
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3044
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3043
const LogString * message_name() const override
Definition api_pb2.h:3046
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3783
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3795
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3763
const LogString * message_name() const override
Definition api_pb2.h:3029
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3027
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3026
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:677
const LogString * message_name() const override
Definition api_pb2.h:665
VoiceAssistantCapabilities voice_assistant
Definition api_pb2.h:671
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:663
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:286
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:662
ZWaveProxyCapabilities zwave_proxy
Definition api_pb2.h:674
const char * dump_to(DumpBuffer &out) const override
BluetoothProxyCapabilities bluetooth_proxy
Definition api_pb2.h:668
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:85
uint32_t calculate_size() const
Definition api_pb2.cpp:92
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:554
static constexpr uint16_t ESTIMATED_SIZE
Definition api_pb2.h:552
uint32_t calculate_size() const
Definition api_pb2.cpp:181
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:116
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:594
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:551
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:606
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:591
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:454
uint32_t calculate_size() const
Definition api_pb2.cpp:65
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:451
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:452
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:50
enums::DisconnectReason reason
Definition api_pb2.h:456
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:60
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:468
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:469
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:471
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:543
uint32_t calculate_size() const
Definition api_pb2.cpp:3631
const LogString * message_name() const override
Definition api_pb2.h:2940
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3622
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2937
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2938
const char * dump_to(DumpBuffer &out) const override
FixedVector< float > float_array
Definition api_pb2.h:1365
FixedVector< std::string > string_array
Definition api_pb2.h:1366
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1326
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1375
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1348
FixedVector< int32_t > int_array
Definition api_pb2.h:1364
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1362
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1379
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1385
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1380
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1424
const LogString * message_name() const override
Definition api_pb2.h:1382
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1386
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1414
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1403
const LogString * message_name() const override
Definition api_pb2.h:1409
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1407
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1406
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1431
const LogString * message_name() const override
Definition api_pb2.h:842
const char * dump_to(DumpBuffer &out) const override
enums::FanDirection direction
Definition api_pb2.h:849
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:591
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:840
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:552
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:602
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:839
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:819
const LogString * message_name() const override
Definition api_pb2.h:822
enums::FanDirection direction
Definition api_pb2.h:826
uint32_t calculate_size() const
Definition api_pb2.cpp:539
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:820
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:526
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1260
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1257
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1258
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1299
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1263
ParsedTimezone parsed_timezone
Definition api_pb2.h:1305
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1252
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1300
const LogString * message_name() const override
Definition api_pb2.h:1302
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:414
const LogString * message_name() const override
Definition api_pb2.h:417
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:415
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 uint16_t MESSAGE_TYPE
Definition api_pb2.h:432
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:433
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:435
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1239
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1240
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1181
const LogString * message_name() const override
Definition api_pb2.h:1242
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1166
const LogString * message_name() const override
Definition api_pb2.h:1169
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1174
FixedVector< HomeassistantServiceMap > data
Definition api_pb2.h:1172
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1078
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1167
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1173
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1147
const LogString * message_name() const override
Definition api_pb2.h:1200
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1197
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:1134
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1198
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1066
enums::EntityCategory entity_category
Definition api_pb2.h:382
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3222
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3221
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const std::vector< int32_t > * timings
Definition api_pb2.h:3230
const LogString * message_name() const override
Definition api_pb2.h:3224
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:4047
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3198
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4013
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:4034
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:762
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:773
const LogString * message_name() const override
Definition api_pb2.h:916
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:913
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:702
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:914
const LogString * message_name() const override
Definition api_pb2.h:889
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:887
uint32_t calculate_size() const
Definition api_pb2.cpp:682
enums::ColorMode color_mode
Definition api_pb2.h:893
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:886
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:662
const LogString * message_name() const override
Definition api_pb2.h:2706
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3223
const LogString * message_name() const override
Definition api_pb2.h:706
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:323
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:703
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:704
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1875
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1874
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2260
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1877
const LogString * message_name() const override
Definition api_pb2.h:1433
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1430
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1431
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1453
const std::vector< const char * > * supported_custom_presets
Definition api_pb2.h:1501
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1498
enums::TemperatureUnit temperature_unit
Definition api_pb2.h:1508
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1486
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1499
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1485
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1500
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1518
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1497
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1492
const LogString * message_name() const override
Definition api_pb2.h:1488
const LogString * message_name() const override
Definition api_pb2.h:742
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:739
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:740
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:379
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2813
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2812
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3408
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2815
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3733
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3012
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3011
const LogString * message_name() const override
Definition api_pb2.h:3014
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:689
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:690
const LogString * message_name() const override
Definition api_pb2.h:692
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3582
const LogString * message_name() const override
Definition api_pb2.h:2923
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2920
const FixedVector< const char * > * event_types
Definition api_pb2.h:2926
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2921
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:480
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:808
const LogString * message_name() const override
Definition api_pb2.h:802
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:799
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:800
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3176
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3977
const LogString * message_name() const override
Definition api_pb2.h:3179
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3177
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:868
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:867
const FixedVector< const char * > * effects
Definition api_pb2.h:875
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:872
const LogString * message_name() const override
Definition api_pb2.h:870
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:614
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1818
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1821
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2163
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1819
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1923
const LogString * message_name() const override
Definition api_pb2.h:1925
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1922
const char * dump_to(DumpBuffer &out) const override
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1927
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2334
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1651
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1650
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1865
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1653
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3246
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1706
const FixedVector< const char * > * options
Definition api_pb2.h:1711
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1707
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1954
const LogString * message_name() const override
Definition api_pb2.h:1709
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:957
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:812
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:958
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:960
enums::SensorStateClass state_class
Definition api_pb2.h:966
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1274
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1298
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1336
const LogString * message_name() const override
Definition api_pb2.h:1339
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1337
enums::SupportsResponseType supports_response
Definition api_pb2.h:1344
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1343
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1758
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2047
const LogString * message_name() const override
Definition api_pb2.h:1761
const FixedVector< const char * > * tones
Definition api_pb2.h:1763
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1759
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:996
const LogString * message_name() const override
Definition api_pb2.h:999
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:997
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const LogString * message_name() const override
Definition api_pb2.h:2760
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3315
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2757
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2758
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1047
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1048
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:957
const LogString * message_name() const override
Definition api_pb2.h:1050
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2866
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2867
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2869
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3495
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3061
const LogString * message_name() const override
Definition api_pb2.h:3064
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3062
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3810
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3642
const LogString * message_name() const override
Definition api_pb2.h:2958
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2956
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2955
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1749
const water_heater::WaterHeaterModeMask * supported_modes
Definition api_pb2.h:1593
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1586
const LogString * message_name() const override
Definition api_pb2.h:1588
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1585
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:2219
const LogString * message_name() const override
Definition api_pb2.h:1856
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2248
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1854
enums::LockCommand command
Definition api_pb2.h:1858
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2237
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1853
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1838
uint32_t calculate_size() const
Definition api_pb2.cpp:2210
const LogString * message_name() const override
Definition api_pb2.h:1840
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1837
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2201
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1958
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1957
enums::MediaPlayerCommand command
Definition api_pb2.h:1963
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2437
const LogString * message_name() const override
Definition api_pb2.h:1960
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2426
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2396
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2374
enums::MediaPlayerState state
Definition api_pb2.h:1944
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1939
const LogString * message_name() const override
Definition api_pb2.h:1942
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1940
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1910
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2316
const LogString * message_name() const override
Definition api_pb2.h:1123
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1120
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1121
const LogString * message_name() const override
Definition api_pb2.h:1139
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1054
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1136
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1137
const LogString * message_name() const override
Definition api_pb2.h:1691
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1939
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1689
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1927
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1688
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1671
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1672
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1907
const LogString * message_name() const override
Definition api_pb2.h:1674
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1239
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1226
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:481
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:482
const LogString * message_name() const override
Definition api_pb2.h:484
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:497
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:494
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:495
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2024
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1740
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2012
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2035
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1739
const LogString * message_name() const override
Definition api_pb2.h:1742
const LogString * message_name() const override
Definition api_pb2.h:1725
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1992
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1723
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1722
const LogString * message_name() const override
Definition api_pb2.h:980
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:977
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:978
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3264
enums::SerialProxyParity parity
Definition api_pb2.h:3272
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3265
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3267
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:3292
const LogString * message_name() const override
Definition api_pb2.h:3287
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3285
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3284
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3340
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4203
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3343
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3341
const LogString * message_name() const override
Definition api_pb2.h:3358
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3356
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3355
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4213
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.cpp:108
enums::SerialProxyPortType port_type
Definition api_pb2.h:538
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:101
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3376
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4227
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3374
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3373
enums::SerialProxyRequestType type
Definition api_pb2.h:3379
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3390
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4240
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3389
const LogString * message_name() const override
Definition api_pb2.h:3392
enums::SerialProxyRequestType type
Definition api_pb2.h:3395
enums::SerialProxyStatus status
Definition api_pb2.h:3396
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3327
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4190
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3325
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3324
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3306
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:4178
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3307
const LogString * message_name() const override
Definition api_pb2.h:3309
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2107
const LogString * message_name() const override
Definition api_pb2.h:1795
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2137
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1792
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1793
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2148
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1779
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1777
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1776
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2089
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:2452
const LogString * message_name() const override
Definition api_pb2.h:1986
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1167
const LogString * message_name() const override
Definition api_pb2.h:1224
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1081
const LogString * message_name() const override
Definition api_pb2.h:1084
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1082
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1010
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1097
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1098
const LogString * message_name() const override
Definition api_pb2.h:1100
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:1105
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:2906
const LogString * message_name() const override
Definition api_pb2.h:2455
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2452
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2453
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:945
const LogString * message_name() const override
Definition api_pb2.h:1032
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1030
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1029
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const LogString * message_name() const override
Definition api_pb2.h:1016
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1014
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1013
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3385
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3373
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2793
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2794
const LogString * message_name() const override
Definition api_pb2.h:2796
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3396
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1063
const LogString * message_name() const override
Definition api_pb2.h:1066
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1064
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:989
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2777
uint32_t calculate_size() const
Definition api_pb2.cpp:3363
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3353
const LogString * message_name() const override
Definition api_pb2.h:2779
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2776
const LogString * message_name() const override
Definition api_pb2.h:2903
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3570
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3549
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2900
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2901
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3525
const LogString * message_name() const override
Definition api_pb2.h:2884
uint32_t calculate_size() const
Definition api_pb2.cpp:3537
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2881
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2882
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3104
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3102
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3891
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3876
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3101
enums::UpdateCommand command
Definition api_pb2.h:3106
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3078
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3080
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3842
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3077
const LogString * message_name() const override
Definition api_pb2.h:2994
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2991
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3700
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2992
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3718
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2975
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3680
enums::ValveOperation current_operation
Definition api_pb2.h:2980
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2974
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2977
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2608
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3104
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2607
const LogString * message_name() const override
Definition api_pb2.h:2610
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3085
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2589
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3075
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2588
const LogString * message_name() const override
Definition api_pb2.h:2591
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:3000
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3010
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2545
const LogString * message_name() const override
Definition api_pb2.h:2548
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2546
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3027
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2919
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:261
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3174
const LogString * message_name() const override
Definition api_pb2.h:2656
const char * dump_to(DumpBuffer &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2658
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2673
const LogString * message_name() const override
Definition api_pb2.h:2671
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2674
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3185
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2964
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2528
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2989
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2529
const LogString * message_name() const override
Definition api_pb2.h:2531
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2533
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2979
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2534
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3144
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:3134
std::vector< std::string > trained_languages
Definition api_pb2.h:2638
const LogString * message_name() const override
Definition api_pb2.h:2484
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2933
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2489
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2482
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2481
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:2951
const LogString * message_name() const override
Definition api_pb2.h:2504
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2502
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2501
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2687
std::vector< std::string > active_wake_words
Definition api_pb2.h:2691
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3211
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2686
const LogString * message_name() const override
Definition api_pb2.h:2689
const LogString * message_name() const override
Definition api_pb2.h:2570
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2572
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3060
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3041
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3114
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2625
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1627
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1823
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1844
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1628
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1630
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1607
const LogString * message_name() const override
Definition api_pb2.h:1609
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1795
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1606
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:273
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3120
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3903
const LogString * message_name() const override
Definition api_pb2.h:3122
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
uint32_t calculate_size() const
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3119
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3138
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3137
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3939
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
const LogString * message_name() const override
Definition api_pb2.h:3140
uint32_t calculate_size() const
Definition api_pb2.cpp:3957
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3142
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3951
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3160
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3162
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3157
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3158
enums::ZWaveProxyStatus status
Definition api_pb2.h:3163
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3963
const char * dump_to(DumpBuffer &out) const override
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:207
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:299
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:91
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:94
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:93
@ SERIAL_PROXY_PORT_TYPE_RS232
Definition api_pb2.h:24
@ SERIAL_PROXY_PORT_TYPE_RS485
Definition api_pb2.h:25
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:264
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:263
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:161
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:162
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:355
@ SERIAL_PROXY_REQUEST_TYPE_SET_MODEM_PINS
Definition api_pb2.h:358
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
Definition api_pb2.h:356
@ SERIAL_PROXY_REQUEST_TYPE_CONFIGURE
Definition api_pb2.h:357
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:354
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:229
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:228
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:49
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:56
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:52
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:57
@ ZWAVE_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:344
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:287
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:286
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:289
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:288
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:221
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:222
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:219
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:218
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:225
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:223
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:277
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:282
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:279
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:283
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:281
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:278
@ SERIAL_PROXY_STATUS_INVALID_ARGUMENT
Definition api_pb2.h:367
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
Definition api_pb2.h:362
@ SERIAL_PROXY_STATUS_PORT_IN_USE
Definition api_pb2.h:366
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:365
@ DISCONNECT_REASON_PROVISIONING_CLOSED
Definition api_pb2.h:20
@ DISCONNECT_REASON_UNSPECIFIED
Definition api_pb2.h:19
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:237
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:238
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:234
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:236
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:239
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:240
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:235
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:253
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:254
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:250
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:246
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:249
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:247
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:248
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:81
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:82
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:174
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:168
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:171
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:175
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:172
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:170
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:169
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:173
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:337
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:338
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:339
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:309
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:311
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:310
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:259
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:258
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:64
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:66
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
const void size_t len
Definition hal.h:64
static void uint32_t
uint16_t length
Definition tt21100.cpp:0