ESPHome 2026.8.0-dev
Loading...
Searching...
No Matches
api_pb2.h
Go to the documentation of this file.
1// This file was automatically generated with a tool.
2// See script/api_protobuf/api_protobuf.py
3#pragma once
4
6
7#include "proto.h"
8#include "api_pb2_includes.h"
9
10namespace esphome::api {
11
12namespace enums {
13
28#ifdef USE_COVER
34#endif
35#ifdef USE_FAN
40#endif
41#ifdef USE_LIGHT
55#endif
56#ifdef USE_SENSOR
64#endif
81#ifdef USE_API_USER_DEFINED_ACTIONS
98#endif
104#ifdef USE_CLIMATE
151#endif
152#ifdef USE_WATER_HEATER
162#endif
173#ifdef USE_NUMBER
179#endif
180#ifdef USE_LOCK
196#endif
197#ifdef USE_MEDIA_PLAYER
227#endif
228#ifdef USE_BLUETOOTH_PROXY
250#endif
260#ifdef USE_VOICE_ASSISTANT
285#endif
286#ifdef USE_ALARM_CONTROL_PANEL
308#endif
309#ifdef USE_TEXT
314#endif
315#ifdef USE_VALVE
321#endif
322#ifdef USE_UPDATE
328#endif
329#ifdef USE_ZWAVE_PROXY
335#endif
336#ifdef USE_SERIAL_PROXY
354#endif
355
356} // namespace enums
357
359 public:
364#ifdef USE_ENTITY_ICON
366#endif
368#ifdef USE_DEVICES
370#endif
371
372 protected:
374};
375
377 public:
379#ifdef USE_DEVICES
381#endif
382
383 protected:
385};
386
388 public:
390#ifdef USE_DEVICES
392#endif
393
394 protected:
396};
398 public:
399 static constexpr uint8_t MESSAGE_TYPE = 1;
400 static constexpr uint8_t ESTIMATED_SIZE = 17;
401#ifdef HAS_PROTO_MESSAGE_DUMP
402 const LogString *message_name() const override { return LOG_STR("hello_request"); }
403#endif
407#ifdef HAS_PROTO_MESSAGE_DUMP
408 const char *dump_to(DumpBuffer &out) const override;
409#endif
410
411 protected:
412 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
413 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
414};
415class HelloResponse final : public ProtoMessage {
416 public:
417 static constexpr uint8_t MESSAGE_TYPE = 2;
418 static constexpr uint8_t ESTIMATED_SIZE = 26;
419#ifdef HAS_PROTO_MESSAGE_DUMP
420 const LogString *message_name() const override { return LOG_STR("hello_response"); }
421#endif
426 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
427 uint32_t calculate_size() const;
428#ifdef HAS_PROTO_MESSAGE_DUMP
429 const char *dump_to(DumpBuffer &out) const override;
430#endif
431
432 protected:
433};
435 public:
436 static constexpr uint8_t MESSAGE_TYPE = 5;
437 static constexpr uint8_t ESTIMATED_SIZE = 2;
438#ifdef HAS_PROTO_MESSAGE_DUMP
439 const LogString *message_name() const override { return LOG_STR("disconnect_request"); }
440#endif
442 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
443 uint32_t calculate_size() const;
444#ifdef HAS_PROTO_MESSAGE_DUMP
445 const char *dump_to(DumpBuffer &out) const override;
446#endif
447
448 protected:
449 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
450};
451class DisconnectResponse final : public ProtoMessage {
452 public:
453 static constexpr uint8_t MESSAGE_TYPE = 6;
454 static constexpr uint8_t ESTIMATED_SIZE = 0;
455#ifdef HAS_PROTO_MESSAGE_DUMP
456 const LogString *message_name() const override { return LOG_STR("disconnect_response"); }
457#endif
458#ifdef HAS_PROTO_MESSAGE_DUMP
459 const char *dump_to(DumpBuffer &out) const override;
460#endif
461
462 protected:
463};
464class PingRequest final : public ProtoMessage {
465 public:
466 static constexpr uint8_t MESSAGE_TYPE = 7;
467 static constexpr uint8_t ESTIMATED_SIZE = 0;
468#ifdef HAS_PROTO_MESSAGE_DUMP
469 const LogString *message_name() const override { return LOG_STR("ping_request"); }
470#endif
471#ifdef HAS_PROTO_MESSAGE_DUMP
472 const char *dump_to(DumpBuffer &out) const override;
473#endif
474
475 protected:
476};
477class PingResponse final : public ProtoMessage {
478 public:
479 static constexpr uint8_t MESSAGE_TYPE = 8;
480 static constexpr uint8_t ESTIMATED_SIZE = 0;
481#ifdef HAS_PROTO_MESSAGE_DUMP
482 const LogString *message_name() const override { return LOG_STR("ping_response"); }
483#endif
484#ifdef HAS_PROTO_MESSAGE_DUMP
485 const char *dump_to(DumpBuffer &out) const override;
486#endif
487
488 protected:
489};
490#ifdef USE_AREAS
491class AreaInfo final : public ProtoMessage {
492 public:
495 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
496 uint32_t calculate_size() const;
497#ifdef HAS_PROTO_MESSAGE_DUMP
498 const char *dump_to(DumpBuffer &out) const override;
499#endif
500
501 protected:
502};
503#endif
504#ifdef USE_DEVICES
505class DeviceInfo final : public ProtoMessage {
506 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_SERIAL_PROXY
520class SerialProxyInfo final : public ProtoMessage {
521 public:
524 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
525 uint32_t calculate_size() const;
526#ifdef HAS_PROTO_MESSAGE_DUMP
527 const char *dump_to(DumpBuffer &out) const override;
528#endif
529
530 protected:
531};
532#endif
533class DeviceInfoResponse final : public ProtoMessage {
534 public:
535 static constexpr uint8_t MESSAGE_TYPE = 10;
536 static constexpr uint16_t ESTIMATED_SIZE = 312;
537#ifdef HAS_PROTO_MESSAGE_DUMP
538 const LogString *message_name() const override { return LOG_STR("device_info_response"); }
539#endif
545#ifdef USE_DEEP_SLEEP
546 bool has_deep_sleep{false};
547#endif
548#ifdef ESPHOME_PROJECT_NAME
550#endif
551#ifdef ESPHOME_PROJECT_NAME
553#endif
554#ifdef USE_WEBSERVER
556#endif
557#ifdef USE_BLUETOOTH_PROXY
559#endif
562#ifdef USE_VOICE_ASSISTANT
564#endif
565#ifdef USE_AREAS
567#endif
568#ifdef USE_BLUETOOTH_PROXY
570#endif
571#ifdef USE_API_NOISE
573#endif
574#ifdef USE_DEVICES
575 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
576#endif
577#ifdef USE_AREAS
578 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
579#endif
580#ifdef USE_AREAS
582#endif
583#ifdef USE_ZWAVE_PROXY
585#endif
586#ifdef USE_ZWAVE_PROXY
588#endif
589#ifdef USE_SERIAL_PROXY
590 std::array<SerialProxyInfo, SERIAL_PROXY_COUNT> serial_proxies{};
591#endif
592#ifdef USE_API_NOISE
594#endif
595 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
596 uint32_t calculate_size() const;
597#ifdef HAS_PROTO_MESSAGE_DUMP
598 const char *dump_to(DumpBuffer &out) const override;
599#endif
600
601 protected:
602};
604 public:
605 static constexpr uint8_t MESSAGE_TYPE = 19;
606 static constexpr uint8_t ESTIMATED_SIZE = 0;
607#ifdef HAS_PROTO_MESSAGE_DUMP
608 const LogString *message_name() const override { return LOG_STR("list_entities_done_response"); }
609#endif
610#ifdef HAS_PROTO_MESSAGE_DUMP
611 const char *dump_to(DumpBuffer &out) const override;
612#endif
613
614 protected:
615};
616#ifdef USE_BINARY_SENSOR
618 public:
619 static constexpr uint8_t MESSAGE_TYPE = 12;
620 static constexpr uint8_t ESTIMATED_SIZE = 51;
621#ifdef HAS_PROTO_MESSAGE_DUMP
622 const LogString *message_name() const override { return LOG_STR("list_entities_binary_sensor_response"); }
623#endif
626 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
627 uint32_t calculate_size() const;
628#ifdef HAS_PROTO_MESSAGE_DUMP
629 const char *dump_to(DumpBuffer &out) const override;
630#endif
631
632 protected:
633};
635 public:
636 static constexpr uint8_t MESSAGE_TYPE = 21;
637 static constexpr uint8_t ESTIMATED_SIZE = 13;
638#ifdef HAS_PROTO_MESSAGE_DUMP
639 const LogString *message_name() const override { return LOG_STR("binary_sensor_state_response"); }
640#endif
641 bool state{false};
642 bool missing_state{false};
643 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
644 uint32_t calculate_size() const;
645#ifdef HAS_PROTO_MESSAGE_DUMP
646 const char *dump_to(DumpBuffer &out) const override;
647#endif
648
649 protected:
650};
651#endif
652#ifdef USE_COVER
654 public:
655 static constexpr uint8_t MESSAGE_TYPE = 13;
656 static constexpr uint8_t ESTIMATED_SIZE = 57;
657#ifdef HAS_PROTO_MESSAGE_DUMP
658 const LogString *message_name() const override { return LOG_STR("list_entities_cover_response"); }
659#endif
660 bool assumed_state{false};
661 bool supports_position{false};
662 bool supports_tilt{false};
664 bool supports_stop{false};
665 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
666 uint32_t calculate_size() const;
667#ifdef HAS_PROTO_MESSAGE_DUMP
668 const char *dump_to(DumpBuffer &out) const override;
669#endif
670
671 protected:
672};
674 public:
675 static constexpr uint8_t MESSAGE_TYPE = 22;
676 static constexpr uint8_t ESTIMATED_SIZE = 21;
677#ifdef HAS_PROTO_MESSAGE_DUMP
678 const LogString *message_name() const override { return LOG_STR("cover_state_response"); }
679#endif
680 float position{0.0f};
681 float tilt{0.0f};
683 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
684 uint32_t calculate_size() const;
685#ifdef HAS_PROTO_MESSAGE_DUMP
686 const char *dump_to(DumpBuffer &out) const override;
687#endif
688
689 protected:
690};
692 public:
693 static constexpr uint8_t MESSAGE_TYPE = 30;
694 static constexpr uint8_t ESTIMATED_SIZE = 25;
695#ifdef HAS_PROTO_MESSAGE_DUMP
696 const LogString *message_name() const override { return LOG_STR("cover_command_request"); }
697#endif
698 bool has_position{false};
699 float position{0.0f};
700 bool has_tilt{false};
701 float tilt{0.0f};
702 bool stop{false};
703#ifdef HAS_PROTO_MESSAGE_DUMP
704 const char *dump_to(DumpBuffer &out) const override;
705#endif
706
707 protected:
708 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
709 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
710};
711#endif
712#ifdef USE_FAN
714 public:
715 static constexpr uint8_t MESSAGE_TYPE = 14;
716 static constexpr uint8_t ESTIMATED_SIZE = 68;
717#ifdef HAS_PROTO_MESSAGE_DUMP
718 const LogString *message_name() const override { return LOG_STR("list_entities_fan_response"); }
719#endif
721 bool supports_speed{false};
724 const std::vector<const char *> *supported_preset_modes{};
725 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
726 uint32_t calculate_size() const;
727#ifdef HAS_PROTO_MESSAGE_DUMP
728 const char *dump_to(DumpBuffer &out) const override;
729#endif
730
731 protected:
732};
734 public:
735 static constexpr uint8_t MESSAGE_TYPE = 23;
736 static constexpr uint8_t ESTIMATED_SIZE = 28;
737#ifdef HAS_PROTO_MESSAGE_DUMP
738 const LogString *message_name() const override { return LOG_STR("fan_state_response"); }
739#endif
740 bool state{false};
741 bool oscillating{false};
743 int32_t speed_level{0};
745 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
746 uint32_t calculate_size() const;
747#ifdef HAS_PROTO_MESSAGE_DUMP
748 const char *dump_to(DumpBuffer &out) const override;
749#endif
750
751 protected:
752};
754 public:
755 static constexpr uint8_t MESSAGE_TYPE = 31;
756 static constexpr uint8_t ESTIMATED_SIZE = 38;
757#ifdef HAS_PROTO_MESSAGE_DUMP
758 const LogString *message_name() const override { return LOG_STR("fan_command_request"); }
759#endif
760 bool has_state{false};
761 bool state{false};
762 bool has_oscillating{false};
763 bool oscillating{false};
764 bool has_direction{false};
766 bool has_speed_level{false};
767 int32_t speed_level{0};
768 bool has_preset_mode{false};
770#ifdef HAS_PROTO_MESSAGE_DUMP
771 const char *dump_to(DumpBuffer &out) const override;
772#endif
773
774 protected:
775 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
776 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
777 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
778};
779#endif
780#ifdef USE_LIGHT
782 public:
783 static constexpr uint8_t MESSAGE_TYPE = 15;
784 static constexpr uint8_t ESTIMATED_SIZE = 73;
785#ifdef HAS_PROTO_MESSAGE_DUMP
786 const LogString *message_name() const override { return LOG_STR("list_entities_light_response"); }
787#endif
789 float min_mireds{0.0f};
790 float max_mireds{0.0f};
792 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
793 uint32_t calculate_size() const;
794#ifdef HAS_PROTO_MESSAGE_DUMP
795 const char *dump_to(DumpBuffer &out) const override;
796#endif
797
798 protected:
799};
801 public:
802 static constexpr uint8_t MESSAGE_TYPE = 24;
803 static constexpr uint8_t ESTIMATED_SIZE = 67;
804#ifdef HAS_PROTO_MESSAGE_DUMP
805 const LogString *message_name() const override { return LOG_STR("light_state_response"); }
806#endif
807 bool state{false};
808 float brightness{0.0f};
810 float color_brightness{0.0f};
811 float red{0.0f};
812 float green{0.0f};
813 float blue{0.0f};
814 float white{0.0f};
815 float color_temperature{0.0f};
816 float cold_white{0.0f};
817 float warm_white{0.0f};
819 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
820 uint32_t calculate_size() const;
821#ifdef HAS_PROTO_MESSAGE_DUMP
822 const char *dump_to(DumpBuffer &out) const override;
823#endif
824
825 protected:
826};
828 public:
829 static constexpr uint8_t MESSAGE_TYPE = 32;
830 static constexpr uint8_t ESTIMATED_SIZE = 112;
831#ifdef HAS_PROTO_MESSAGE_DUMP
832 const LogString *message_name() const override { return LOG_STR("light_command_request"); }
833#endif
834 bool has_state{false};
835 bool state{false};
836 bool has_brightness{false};
837 float brightness{0.0f};
838 bool has_color_mode{false};
841 float color_brightness{0.0f};
842 bool has_rgb{false};
843 float red{0.0f};
844 float green{0.0f};
845 float blue{0.0f};
846 bool has_white{false};
847 float white{0.0f};
849 float color_temperature{0.0f};
850 bool has_cold_white{false};
851 float cold_white{0.0f};
852 bool has_warm_white{false};
853 float warm_white{0.0f};
856 bool has_flash_length{false};
858 bool has_effect{false};
860#ifdef HAS_PROTO_MESSAGE_DUMP
861 const char *dump_to(DumpBuffer &out) const override;
862#endif
863
864 protected:
865 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
866 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
867 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
868};
869#endif
870#ifdef USE_SENSOR
872 public:
873 static constexpr uint8_t MESSAGE_TYPE = 16;
874 static constexpr uint8_t ESTIMATED_SIZE = 66;
875#ifdef HAS_PROTO_MESSAGE_DUMP
876 const LogString *message_name() const override { return LOG_STR("list_entities_sensor_response"); }
877#endif
880 bool force_update{false};
883 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
884 uint32_t calculate_size() const;
885#ifdef HAS_PROTO_MESSAGE_DUMP
886 const char *dump_to(DumpBuffer &out) const override;
887#endif
888
889 protected:
890};
892 public:
893 static constexpr uint8_t MESSAGE_TYPE = 25;
894 static constexpr uint8_t ESTIMATED_SIZE = 16;
895#ifdef HAS_PROTO_MESSAGE_DUMP
896 const LogString *message_name() const override { return LOG_STR("sensor_state_response"); }
897#endif
898 float state{0.0f};
899 bool missing_state{false};
900 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
902#ifdef HAS_PROTO_MESSAGE_DUMP
903 const char *dump_to(DumpBuffer &out) const override;
904#endif
905
906 protected:
907};
908#endif
909#ifdef USE_SWITCH
911 public:
912 static constexpr uint8_t MESSAGE_TYPE = 17;
913 static constexpr uint8_t ESTIMATED_SIZE = 51;
914#ifdef HAS_PROTO_MESSAGE_DUMP
915 const LogString *message_name() const override { return LOG_STR("list_entities_switch_response"); }
916#endif
917 bool assumed_state{false};
919 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
921#ifdef HAS_PROTO_MESSAGE_DUMP
922 const char *dump_to(DumpBuffer &out) const override;
923#endif
924
925 protected:
926};
928 public:
929 static constexpr uint8_t MESSAGE_TYPE = 26;
930 static constexpr uint8_t ESTIMATED_SIZE = 11;
931#ifdef HAS_PROTO_MESSAGE_DUMP
932 const LogString *message_name() const override { return LOG_STR("switch_state_response"); }
933#endif
934 bool state{false};
935 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
937#ifdef HAS_PROTO_MESSAGE_DUMP
938 const char *dump_to(DumpBuffer &out) const override;
939#endif
940
941 protected:
942};
944 public:
945 static constexpr uint8_t MESSAGE_TYPE = 33;
946 static constexpr uint8_t ESTIMATED_SIZE = 11;
947#ifdef HAS_PROTO_MESSAGE_DUMP
948 const LogString *message_name() const override { return LOG_STR("switch_command_request"); }
949#endif
950 bool state{false};
951#ifdef HAS_PROTO_MESSAGE_DUMP
952 const char *dump_to(DumpBuffer &out) const override;
953#endif
954
955 protected:
956 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
957 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
958};
959#endif
960#ifdef USE_TEXT_SENSOR
962 public:
963 static constexpr uint8_t MESSAGE_TYPE = 18;
964 static constexpr uint8_t ESTIMATED_SIZE = 49;
965#ifdef HAS_PROTO_MESSAGE_DUMP
966 const LogString *message_name() const override { return LOG_STR("list_entities_text_sensor_response"); }
967#endif
969 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
970 uint32_t calculate_size() const;
971#ifdef HAS_PROTO_MESSAGE_DUMP
972 const char *dump_to(DumpBuffer &out) const override;
973#endif
974
975 protected:
976};
978 public:
979 static constexpr uint8_t MESSAGE_TYPE = 27;
980 static constexpr uint8_t ESTIMATED_SIZE = 20;
981#ifdef HAS_PROTO_MESSAGE_DUMP
982 const LogString *message_name() const override { return LOG_STR("text_sensor_state_response"); }
983#endif
985 bool missing_state{false};
986 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
987 uint32_t calculate_size() const;
988#ifdef HAS_PROTO_MESSAGE_DUMP
989 const char *dump_to(DumpBuffer &out) const override;
990#endif
991
992 protected:
993};
994#endif
996 public:
997 static constexpr uint8_t MESSAGE_TYPE = 28;
998 static constexpr uint8_t ESTIMATED_SIZE = 4;
999#ifdef HAS_PROTO_MESSAGE_DUMP
1000 const LogString *message_name() const override { return LOG_STR("subscribe_logs_request"); }
1001#endif
1003 bool dump_config{false};
1004#ifdef HAS_PROTO_MESSAGE_DUMP
1005 const char *dump_to(DumpBuffer &out) const override;
1006#endif
1007
1008 protected:
1009 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1010};
1012 public:
1013 static constexpr uint8_t MESSAGE_TYPE = 29;
1014 static constexpr uint8_t ESTIMATED_SIZE = 21;
1015#ifdef HAS_PROTO_MESSAGE_DUMP
1016 const LogString *message_name() const override { return LOG_STR("subscribe_logs_response"); }
1017#endif
1019 const uint8_t *message_ptr_{nullptr};
1020 size_t message_len_{0};
1021 void set_message(const uint8_t *data, size_t len) {
1022 this->message_ptr_ = data;
1023 this->message_len_ = len;
1024 }
1025 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1027#ifdef HAS_PROTO_MESSAGE_DUMP
1028 const char *dump_to(DumpBuffer &out) const override;
1029#endif
1030
1031 protected:
1032};
1033#ifdef USE_API_NOISE
1035 public:
1036 static constexpr uint8_t MESSAGE_TYPE = 124;
1037 static constexpr uint8_t ESTIMATED_SIZE = 19;
1038#ifdef HAS_PROTO_MESSAGE_DUMP
1039 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_request"); }
1040#endif
1041 const uint8_t *key{nullptr};
1042 uint16_t key_len{0};
1043#ifdef HAS_PROTO_MESSAGE_DUMP
1044 const char *dump_to(DumpBuffer &out) const override;
1045#endif
1046
1047 protected:
1048 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1049};
1051 public:
1052 static constexpr uint8_t MESSAGE_TYPE = 125;
1053 static constexpr uint8_t ESTIMATED_SIZE = 2;
1054#ifdef HAS_PROTO_MESSAGE_DUMP
1055 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_response"); }
1056#endif
1057 bool success{false};
1058 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1059 uint32_t calculate_size() const;
1060#ifdef HAS_PROTO_MESSAGE_DUMP
1061 const char *dump_to(DumpBuffer &out) const override;
1062#endif
1063
1064 protected:
1065};
1066#endif
1067#ifdef USE_API_HOMEASSISTANT_SERVICES
1069 public:
1072 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1073 uint32_t calculate_size() const;
1074#ifdef HAS_PROTO_MESSAGE_DUMP
1075 const char *dump_to(DumpBuffer &out) const override;
1076#endif
1077
1078 protected:
1079};
1081 public:
1082 static constexpr uint8_t MESSAGE_TYPE = 35;
1083 static constexpr uint8_t ESTIMATED_SIZE = 128;
1084#ifdef HAS_PROTO_MESSAGE_DUMP
1085 const LogString *message_name() const override { return LOG_STR("homeassistant_action_request"); }
1086#endif
1091 bool is_event{false};
1092#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1094#endif
1095#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1096 bool wants_response{false};
1097#endif
1098#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1100#endif
1101 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1102 uint32_t calculate_size() const;
1103#ifdef HAS_PROTO_MESSAGE_DUMP
1104 const char *dump_to(DumpBuffer &out) const override;
1105#endif
1106
1107 protected:
1108};
1109#endif
1110#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1112 public:
1113 static constexpr uint8_t MESSAGE_TYPE = 130;
1114 static constexpr uint8_t ESTIMATED_SIZE = 34;
1115#ifdef HAS_PROTO_MESSAGE_DUMP
1116 const LogString *message_name() const override { return LOG_STR("homeassistant_action_response"); }
1117#endif
1119 bool success{false};
1121#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1122 const uint8_t *response_data{nullptr};
1124#endif
1125#ifdef HAS_PROTO_MESSAGE_DUMP
1126 const char *dump_to(DumpBuffer &out) const override;
1127#endif
1128
1129 protected:
1130 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1131 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1132};
1133#endif
1134#ifdef USE_API_HOMEASSISTANT_STATES
1136 public:
1137 static constexpr uint8_t MESSAGE_TYPE = 39;
1138 static constexpr uint8_t ESTIMATED_SIZE = 20;
1139#ifdef HAS_PROTO_MESSAGE_DUMP
1140 const LogString *message_name() const override { return LOG_STR("subscribe_home_assistant_state_response"); }
1141#endif
1144 bool once{false};
1145 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1146 uint32_t calculate_size() const;
1147#ifdef HAS_PROTO_MESSAGE_DUMP
1148 const char *dump_to(DumpBuffer &out) const override;
1149#endif
1150
1151 protected:
1152};
1154 public:
1155 static constexpr uint8_t MESSAGE_TYPE = 40;
1156 static constexpr uint8_t ESTIMATED_SIZE = 27;
1157#ifdef HAS_PROTO_MESSAGE_DUMP
1158 const LogString *message_name() const override { return LOG_STR("home_assistant_state_response"); }
1159#endif
1163#ifdef HAS_PROTO_MESSAGE_DUMP
1164 const char *dump_to(DumpBuffer &out) const override;
1165#endif
1166
1167 protected:
1168 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1169};
1170#endif
1171class GetTimeRequest final : public ProtoMessage {
1172 public:
1173 static constexpr uint8_t MESSAGE_TYPE = 36;
1174 static constexpr uint8_t ESTIMATED_SIZE = 0;
1175#ifdef HAS_PROTO_MESSAGE_DUMP
1176 const LogString *message_name() const override { return LOG_STR("get_time_request"); }
1177#endif
1178#ifdef HAS_PROTO_MESSAGE_DUMP
1179 const char *dump_to(DumpBuffer &out) const override;
1180#endif
1181
1182 protected:
1183};
1184class DSTRule final : public ProtoDecodableMessage {
1185 public:
1186 int32_t time_seconds{0};
1192#ifdef HAS_PROTO_MESSAGE_DUMP
1193 const char *dump_to(DumpBuffer &out) const override;
1194#endif
1195
1196 protected:
1197 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1198};
1200 public:
1205#ifdef HAS_PROTO_MESSAGE_DUMP
1206 const char *dump_to(DumpBuffer &out) const override;
1207#endif
1208
1209 protected:
1210 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1211 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1212};
1214 public:
1215 static constexpr uint8_t MESSAGE_TYPE = 37;
1216 static constexpr uint8_t ESTIMATED_SIZE = 31;
1217#ifdef HAS_PROTO_MESSAGE_DUMP
1218 const LogString *message_name() const override { return LOG_STR("get_time_response"); }
1219#endif
1223#ifdef HAS_PROTO_MESSAGE_DUMP
1224 const char *dump_to(DumpBuffer &out) const override;
1225#endif
1226
1227 protected:
1228 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1229 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1230};
1231#ifdef USE_API_USER_DEFINED_ACTIONS
1233 public:
1236 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1237 uint32_t calculate_size() const;
1238#ifdef HAS_PROTO_MESSAGE_DUMP
1239 const char *dump_to(DumpBuffer &out) const override;
1240#endif
1241
1242 protected:
1243};
1245 public:
1246 static constexpr uint8_t MESSAGE_TYPE = 41;
1247 static constexpr uint8_t ESTIMATED_SIZE = 50;
1248#ifdef HAS_PROTO_MESSAGE_DUMP
1249 const LogString *message_name() const override { return LOG_STR("list_entities_services_response"); }
1250#endif
1255 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1256 uint32_t calculate_size() const;
1257#ifdef HAS_PROTO_MESSAGE_DUMP
1258 const char *dump_to(DumpBuffer &out) const override;
1259#endif
1260
1261 protected:
1262};
1264 public:
1265 bool bool_{false};
1266 int32_t legacy_int{0};
1267 float float_{0.0f};
1269 int32_t int_{0};
1274 void decode(const uint8_t *buffer, size_t length);
1275#ifdef HAS_PROTO_MESSAGE_DUMP
1276 const char *dump_to(DumpBuffer &out) const override;
1277#endif
1278
1279 protected:
1280 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1281 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1282 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1283};
1285 public:
1286 static constexpr uint8_t MESSAGE_TYPE = 42;
1287 static constexpr uint8_t ESTIMATED_SIZE = 45;
1288#ifdef HAS_PROTO_MESSAGE_DUMP
1289 const LogString *message_name() const override { return LOG_STR("execute_service_request"); }
1290#endif
1293#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1295#endif
1296#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1297 bool return_response{false};
1298#endif
1299 void decode(const uint8_t *buffer, size_t length);
1300#ifdef HAS_PROTO_MESSAGE_DUMP
1301 const char *dump_to(DumpBuffer &out) const override;
1302#endif
1303
1304 protected:
1305 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1306 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1307 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1308};
1309#endif
1310#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1312 public:
1313 static constexpr uint8_t MESSAGE_TYPE = 131;
1314 static constexpr uint8_t ESTIMATED_SIZE = 34;
1315#ifdef HAS_PROTO_MESSAGE_DUMP
1316 const LogString *message_name() const override { return LOG_STR("execute_service_response"); }
1317#endif
1319 bool success{false};
1321#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1322 const uint8_t *response_data{nullptr};
1324#endif
1325 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1326 uint32_t calculate_size() const;
1327#ifdef HAS_PROTO_MESSAGE_DUMP
1328 const char *dump_to(DumpBuffer &out) const override;
1329#endif
1330
1331 protected:
1332};
1333#endif
1334#ifdef USE_CAMERA
1336 public:
1337 static constexpr uint8_t MESSAGE_TYPE = 43;
1338 static constexpr uint8_t ESTIMATED_SIZE = 40;
1339#ifdef HAS_PROTO_MESSAGE_DUMP
1340 const LogString *message_name() const override { return LOG_STR("list_entities_camera_response"); }
1341#endif
1342 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1343 uint32_t calculate_size() const;
1344#ifdef HAS_PROTO_MESSAGE_DUMP
1345 const char *dump_to(DumpBuffer &out) const override;
1346#endif
1347
1348 protected:
1349};
1351 public:
1352 static constexpr uint8_t MESSAGE_TYPE = 44;
1353 static constexpr uint8_t ESTIMATED_SIZE = 30;
1354#ifdef HAS_PROTO_MESSAGE_DUMP
1355 const LogString *message_name() const override { return LOG_STR("camera_image_response"); }
1356#endif
1357 const uint8_t *data_ptr_{nullptr};
1358 size_t data_len_{0};
1359 void set_data(const uint8_t *data, size_t len) {
1360 this->data_ptr_ = data;
1361 this->data_len_ = len;
1362 }
1363 bool done{false};
1364 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1365 uint32_t calculate_size() const;
1366#ifdef HAS_PROTO_MESSAGE_DUMP
1367 const char *dump_to(DumpBuffer &out) const override;
1368#endif
1369
1370 protected:
1371};
1373 public:
1374 static constexpr uint8_t MESSAGE_TYPE = 45;
1375 static constexpr uint8_t ESTIMATED_SIZE = 4;
1376#ifdef HAS_PROTO_MESSAGE_DUMP
1377 const LogString *message_name() const override { return LOG_STR("camera_image_request"); }
1378#endif
1379 bool single{false};
1380 bool stream{false};
1381#ifdef HAS_PROTO_MESSAGE_DUMP
1382 const char *dump_to(DumpBuffer &out) const override;
1383#endif
1384
1385 protected:
1386 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1387};
1388#endif
1389#ifdef USE_CLIMATE
1391 public:
1392 static constexpr uint8_t MESSAGE_TYPE = 46;
1393 static constexpr uint8_t ESTIMATED_SIZE = 153;
1394#ifdef HAS_PROTO_MESSAGE_DUMP
1395 const LogString *message_name() const override { return LOG_STR("list_entities_climate_response"); }
1396#endif
1403 bool supports_action{false};
1406 const std::vector<const char *> *supported_custom_fan_modes{};
1408 const std::vector<const char *> *supported_custom_presets{};
1416 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1417 uint32_t calculate_size() const;
1418#ifdef HAS_PROTO_MESSAGE_DUMP
1419 const char *dump_to(DumpBuffer &out) const override;
1420#endif
1421
1422 protected:
1423};
1425 public:
1426 static constexpr uint8_t MESSAGE_TYPE = 47;
1427 static constexpr uint8_t ESTIMATED_SIZE = 68;
1428#ifdef HAS_PROTO_MESSAGE_DUMP
1429 const LogString *message_name() const override { return LOG_STR("climate_state_response"); }
1430#endif
1442 float current_humidity{0.0f};
1443 float target_humidity{0.0f};
1444 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1445 uint32_t calculate_size() const;
1446#ifdef HAS_PROTO_MESSAGE_DUMP
1447 const char *dump_to(DumpBuffer &out) const override;
1448#endif
1449
1450 protected:
1451};
1453 public:
1454 static constexpr uint8_t MESSAGE_TYPE = 48;
1455 static constexpr uint8_t ESTIMATED_SIZE = 84;
1456#ifdef HAS_PROTO_MESSAGE_DUMP
1457 const LogString *message_name() const override { return LOG_STR("climate_command_request"); }
1458#endif
1459 bool has_mode{false};
1467 bool has_fan_mode{false};
1469 bool has_swing_mode{false};
1473 bool has_preset{false};
1478 float target_humidity{0.0f};
1479#ifdef HAS_PROTO_MESSAGE_DUMP
1480 const char *dump_to(DumpBuffer &out) const override;
1481#endif
1482
1483 protected:
1484 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1485 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1486 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1487};
1488#endif
1489#ifdef USE_WATER_HEATER
1491 public:
1492 static constexpr uint8_t MESSAGE_TYPE = 132;
1493 static constexpr uint8_t ESTIMATED_SIZE = 65;
1494#ifdef HAS_PROTO_MESSAGE_DUMP
1495 const LogString *message_name() const override { return LOG_STR("list_entities_water_heater_response"); }
1496#endif
1497 float min_temperature{0.0f};
1498 float max_temperature{0.0f};
1503 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1504 uint32_t calculate_size() const;
1505#ifdef HAS_PROTO_MESSAGE_DUMP
1506 const char *dump_to(DumpBuffer &out) const override;
1507#endif
1508
1509 protected:
1510};
1512 public:
1513 static constexpr uint8_t MESSAGE_TYPE = 133;
1514 static constexpr uint8_t ESTIMATED_SIZE = 35;
1515#ifdef HAS_PROTO_MESSAGE_DUMP
1516 const LogString *message_name() const override { return LOG_STR("water_heater_state_response"); }
1517#endif
1524 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1525 uint32_t calculate_size() const;
1526#ifdef HAS_PROTO_MESSAGE_DUMP
1527 const char *dump_to(DumpBuffer &out) const override;
1528#endif
1529
1530 protected:
1531};
1533 public:
1534 static constexpr uint8_t MESSAGE_TYPE = 134;
1535 static constexpr uint8_t ESTIMATED_SIZE = 34;
1536#ifdef HAS_PROTO_MESSAGE_DUMP
1537 const LogString *message_name() const override { return LOG_STR("water_heater_command_request"); }
1538#endif
1545#ifdef HAS_PROTO_MESSAGE_DUMP
1546 const char *dump_to(DumpBuffer &out) const override;
1547#endif
1548
1549 protected:
1550 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1551 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1552};
1553#endif
1554#ifdef USE_NUMBER
1556 public:
1557 static constexpr uint8_t MESSAGE_TYPE = 49;
1558 static constexpr uint8_t ESTIMATED_SIZE = 75;
1559#ifdef HAS_PROTO_MESSAGE_DUMP
1560 const LogString *message_name() const override { return LOG_STR("list_entities_number_response"); }
1561#endif
1562 float min_value{0.0f};
1563 float max_value{0.0f};
1564 float step{0.0f};
1568 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1569 uint32_t calculate_size() const;
1570#ifdef HAS_PROTO_MESSAGE_DUMP
1571 const char *dump_to(DumpBuffer &out) const override;
1572#endif
1573
1574 protected:
1575};
1577 public:
1578 static constexpr uint8_t MESSAGE_TYPE = 50;
1579 static constexpr uint8_t ESTIMATED_SIZE = 16;
1580#ifdef HAS_PROTO_MESSAGE_DUMP
1581 const LogString *message_name() const override { return LOG_STR("number_state_response"); }
1582#endif
1583 float state{0.0f};
1584 bool missing_state{false};
1585 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1586 uint32_t calculate_size() const;
1587#ifdef HAS_PROTO_MESSAGE_DUMP
1588 const char *dump_to(DumpBuffer &out) const override;
1589#endif
1590
1591 protected:
1592};
1594 public:
1595 static constexpr uint8_t MESSAGE_TYPE = 51;
1596 static constexpr uint8_t ESTIMATED_SIZE = 14;
1597#ifdef HAS_PROTO_MESSAGE_DUMP
1598 const LogString *message_name() const override { return LOG_STR("number_command_request"); }
1599#endif
1600 float state{0.0f};
1601#ifdef HAS_PROTO_MESSAGE_DUMP
1602 const char *dump_to(DumpBuffer &out) const override;
1603#endif
1604
1605 protected:
1606 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1607 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1608};
1609#endif
1610#ifdef USE_SELECT
1612 public:
1613 static constexpr uint8_t MESSAGE_TYPE = 52;
1614 static constexpr uint8_t ESTIMATED_SIZE = 58;
1615#ifdef HAS_PROTO_MESSAGE_DUMP
1616 const LogString *message_name() const override { return LOG_STR("list_entities_select_response"); }
1617#endif
1619 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1620 uint32_t calculate_size() const;
1621#ifdef HAS_PROTO_MESSAGE_DUMP
1622 const char *dump_to(DumpBuffer &out) const override;
1623#endif
1624
1625 protected:
1626};
1628 public:
1629 static constexpr uint8_t MESSAGE_TYPE = 53;
1630 static constexpr uint8_t ESTIMATED_SIZE = 20;
1631#ifdef HAS_PROTO_MESSAGE_DUMP
1632 const LogString *message_name() const override { return LOG_STR("select_state_response"); }
1633#endif
1635 bool missing_state{false};
1636 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1637 uint32_t calculate_size() const;
1638#ifdef HAS_PROTO_MESSAGE_DUMP
1639 const char *dump_to(DumpBuffer &out) const override;
1640#endif
1641
1642 protected:
1643};
1645 public:
1646 static constexpr uint8_t MESSAGE_TYPE = 54;
1647 static constexpr uint8_t ESTIMATED_SIZE = 18;
1648#ifdef HAS_PROTO_MESSAGE_DUMP
1649 const LogString *message_name() const override { return LOG_STR("select_command_request"); }
1650#endif
1652#ifdef HAS_PROTO_MESSAGE_DUMP
1653 const char *dump_to(DumpBuffer &out) const override;
1654#endif
1655
1656 protected:
1657 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1658 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1659 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1660};
1661#endif
1662#ifdef USE_SIREN
1664 public:
1665 static constexpr uint8_t MESSAGE_TYPE = 55;
1666 static constexpr uint8_t ESTIMATED_SIZE = 62;
1667#ifdef HAS_PROTO_MESSAGE_DUMP
1668 const LogString *message_name() const override { return LOG_STR("list_entities_siren_response"); }
1669#endif
1672 bool supports_volume{false};
1673 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1674 uint32_t calculate_size() const;
1675#ifdef HAS_PROTO_MESSAGE_DUMP
1676 const char *dump_to(DumpBuffer &out) const override;
1677#endif
1678
1679 protected:
1680};
1682 public:
1683 static constexpr uint8_t MESSAGE_TYPE = 56;
1684 static constexpr uint8_t ESTIMATED_SIZE = 11;
1685#ifdef HAS_PROTO_MESSAGE_DUMP
1686 const LogString *message_name() const override { return LOG_STR("siren_state_response"); }
1687#endif
1688 bool state{false};
1689 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1690 uint32_t calculate_size() const;
1691#ifdef HAS_PROTO_MESSAGE_DUMP
1692 const char *dump_to(DumpBuffer &out) const override;
1693#endif
1694
1695 protected:
1696};
1698 public:
1699 static constexpr uint8_t MESSAGE_TYPE = 57;
1700 static constexpr uint8_t ESTIMATED_SIZE = 37;
1701#ifdef HAS_PROTO_MESSAGE_DUMP
1702 const LogString *message_name() const override { return LOG_STR("siren_command_request"); }
1703#endif
1704 bool has_state{false};
1705 bool state{false};
1706 bool has_tone{false};
1708 bool has_duration{false};
1710 bool has_volume{false};
1711 float volume{0.0f};
1712#ifdef HAS_PROTO_MESSAGE_DUMP
1713 const char *dump_to(DumpBuffer &out) const override;
1714#endif
1715
1716 protected:
1717 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1718 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1719 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1720};
1721#endif
1722#ifdef USE_LOCK
1724 public:
1725 static constexpr uint8_t MESSAGE_TYPE = 58;
1726 static constexpr uint8_t ESTIMATED_SIZE = 55;
1727#ifdef HAS_PROTO_MESSAGE_DUMP
1728 const LogString *message_name() const override { return LOG_STR("list_entities_lock_response"); }
1729#endif
1730 bool assumed_state{false};
1731 bool supports_open{false};
1732 bool requires_code{false};
1734 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1735 uint32_t calculate_size() const;
1736#ifdef HAS_PROTO_MESSAGE_DUMP
1737 const char *dump_to(DumpBuffer &out) const override;
1738#endif
1739
1740 protected:
1741};
1743 public:
1744 static constexpr uint8_t MESSAGE_TYPE = 59;
1745 static constexpr uint8_t ESTIMATED_SIZE = 11;
1746#ifdef HAS_PROTO_MESSAGE_DUMP
1747 const LogString *message_name() const override { return LOG_STR("lock_state_response"); }
1748#endif
1750 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1751 uint32_t calculate_size() const;
1752#ifdef HAS_PROTO_MESSAGE_DUMP
1753 const char *dump_to(DumpBuffer &out) const override;
1754#endif
1755
1756 protected:
1757};
1759 public:
1760 static constexpr uint8_t MESSAGE_TYPE = 60;
1761 static constexpr uint8_t ESTIMATED_SIZE = 22;
1762#ifdef HAS_PROTO_MESSAGE_DUMP
1763 const LogString *message_name() const override { return LOG_STR("lock_command_request"); }
1764#endif
1766 bool has_code{false};
1768#ifdef HAS_PROTO_MESSAGE_DUMP
1769 const char *dump_to(DumpBuffer &out) const override;
1770#endif
1771
1772 protected:
1773 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1774 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1775 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1776};
1777#endif
1778#ifdef USE_BUTTON
1780 public:
1781 static constexpr uint8_t MESSAGE_TYPE = 61;
1782 static constexpr uint8_t ESTIMATED_SIZE = 49;
1783#ifdef HAS_PROTO_MESSAGE_DUMP
1784 const LogString *message_name() const override { return LOG_STR("list_entities_button_response"); }
1785#endif
1787 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1788 uint32_t calculate_size() const;
1789#ifdef HAS_PROTO_MESSAGE_DUMP
1790 const char *dump_to(DumpBuffer &out) const override;
1791#endif
1792
1793 protected:
1794};
1796 public:
1797 static constexpr uint8_t MESSAGE_TYPE = 62;
1798 static constexpr uint8_t ESTIMATED_SIZE = 9;
1799#ifdef HAS_PROTO_MESSAGE_DUMP
1800 const LogString *message_name() const override { return LOG_STR("button_command_request"); }
1801#endif
1802#ifdef HAS_PROTO_MESSAGE_DUMP
1803 const char *dump_to(DumpBuffer &out) const override;
1804#endif
1805
1806 protected:
1807 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1808 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1809};
1810#endif
1811#ifdef USE_MEDIA_PLAYER
1813 public:
1819 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1820 uint32_t calculate_size() const;
1821#ifdef HAS_PROTO_MESSAGE_DUMP
1822 const char *dump_to(DumpBuffer &out) const override;
1823#endif
1824
1825 protected:
1826};
1828 public:
1829 static constexpr uint8_t MESSAGE_TYPE = 63;
1830 static constexpr uint8_t ESTIMATED_SIZE = 80;
1831#ifdef HAS_PROTO_MESSAGE_DUMP
1832 const LogString *message_name() const override { return LOG_STR("list_entities_media_player_response"); }
1833#endif
1834 bool supports_pause{false};
1835 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1837 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1838 uint32_t calculate_size() const;
1839#ifdef HAS_PROTO_MESSAGE_DUMP
1840 const char *dump_to(DumpBuffer &out) const override;
1841#endif
1842
1843 protected:
1844};
1846 public:
1847 static constexpr uint8_t MESSAGE_TYPE = 64;
1848 static constexpr uint8_t ESTIMATED_SIZE = 18;
1849#ifdef HAS_PROTO_MESSAGE_DUMP
1850 const LogString *message_name() const override { return LOG_STR("media_player_state_response"); }
1851#endif
1853 float volume{0.0f};
1854 bool muted{false};
1855 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1856 uint32_t calculate_size() const;
1857#ifdef HAS_PROTO_MESSAGE_DUMP
1858 const char *dump_to(DumpBuffer &out) const override;
1859#endif
1860
1861 protected:
1862};
1864 public:
1865 static constexpr uint8_t MESSAGE_TYPE = 65;
1866 static constexpr uint8_t ESTIMATED_SIZE = 35;
1867#ifdef HAS_PROTO_MESSAGE_DUMP
1868 const LogString *message_name() const override { return LOG_STR("media_player_command_request"); }
1869#endif
1870 bool has_command{false};
1872 bool has_volume{false};
1873 float volume{0.0f};
1874 bool has_media_url{false};
1876 bool has_announcement{false};
1877 bool announcement{false};
1878#ifdef HAS_PROTO_MESSAGE_DUMP
1879 const char *dump_to(DumpBuffer &out) const override;
1880#endif
1881
1882 protected:
1883 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1884 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1885 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1886};
1887#endif
1888#ifdef USE_BLUETOOTH_PROXY
1890 public:
1891 static constexpr uint8_t MESSAGE_TYPE = 66;
1892 static constexpr uint8_t ESTIMATED_SIZE = 4;
1893#ifdef HAS_PROTO_MESSAGE_DUMP
1894 const LogString *message_name() const override { return LOG_STR("subscribe_bluetooth_le_advertisements_request"); }
1895#endif
1897#ifdef HAS_PROTO_MESSAGE_DUMP
1898 const char *dump_to(DumpBuffer &out) const override;
1899#endif
1900
1901 protected:
1902 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1903};
1905 public:
1906 uint64_t address{0};
1907 int32_t rssi{0};
1909 uint8_t data[62]{};
1910 uint8_t data_len{0};
1911#ifdef HAS_PROTO_MESSAGE_DUMP
1912 const char *dump_to(DumpBuffer &out) const override;
1913#endif
1914
1915 protected:
1916};
1918 public:
1919 static constexpr uint8_t MESSAGE_TYPE = 93;
1920 static constexpr uint8_t ESTIMATED_SIZE = 136;
1921#ifdef HAS_PROTO_MESSAGE_DUMP
1922 const LogString *message_name() const override { return LOG_STR("bluetooth_le_raw_advertisements_response"); }
1923#endif
1924 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
1926 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1928#ifdef HAS_PROTO_MESSAGE_DUMP
1929 const char *dump_to(DumpBuffer &out) const override;
1930#endif
1931
1932 protected:
1933};
1935 public:
1936 static constexpr uint8_t MESSAGE_TYPE = 68;
1937 static constexpr uint8_t ESTIMATED_SIZE = 12;
1938#ifdef HAS_PROTO_MESSAGE_DUMP
1939 const LogString *message_name() const override { return LOG_STR("bluetooth_device_request"); }
1940#endif
1941 uint64_t address{0};
1943 bool has_address_type{false};
1945#ifdef HAS_PROTO_MESSAGE_DUMP
1946 const char *dump_to(DumpBuffer &out) const override;
1947#endif
1948
1949 protected:
1950 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1951};
1953 public:
1954 static constexpr uint8_t MESSAGE_TYPE = 69;
1955 static constexpr uint8_t ESTIMATED_SIZE = 14;
1956#ifdef HAS_PROTO_MESSAGE_DUMP
1957 const LogString *message_name() const override { return LOG_STR("bluetooth_device_connection_response"); }
1958#endif
1959 uint64_t address{0};
1960 bool connected{false};
1962 int32_t error{0};
1963 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1964 uint32_t calculate_size() const;
1965#ifdef HAS_PROTO_MESSAGE_DUMP
1966 const char *dump_to(DumpBuffer &out) const override;
1967#endif
1968
1969 protected:
1970};
1972 public:
1973 static constexpr uint8_t MESSAGE_TYPE = 70;
1974 static constexpr uint8_t ESTIMATED_SIZE = 4;
1975#ifdef HAS_PROTO_MESSAGE_DUMP
1976 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_request"); }
1977#endif
1978 uint64_t address{0};
1979#ifdef HAS_PROTO_MESSAGE_DUMP
1980 const char *dump_to(DumpBuffer &out) const override;
1981#endif
1982
1983 protected:
1984 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1985};
1987 public:
1988 std::array<uint64_t, 2> uuid{};
1991 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1992 uint32_t calculate_size() const;
1993#ifdef HAS_PROTO_MESSAGE_DUMP
1994 const char *dump_to(DumpBuffer &out) const override;
1995#endif
1996
1997 protected:
1998};
2000 public:
2001 std::array<uint64_t, 2> uuid{};
2006 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2007 uint32_t calculate_size() const;
2008#ifdef HAS_PROTO_MESSAGE_DUMP
2009 const char *dump_to(DumpBuffer &out) const override;
2010#endif
2011
2012 protected:
2013};
2015 public:
2016 std::array<uint64_t, 2> uuid{};
2020 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2021 uint32_t calculate_size() const;
2022#ifdef HAS_PROTO_MESSAGE_DUMP
2023 const char *dump_to(DumpBuffer &out) const override;
2024#endif
2025
2026 protected:
2027};
2029 public:
2030 static constexpr uint8_t MESSAGE_TYPE = 71;
2031 static constexpr uint8_t ESTIMATED_SIZE = 38;
2032#ifdef HAS_PROTO_MESSAGE_DUMP
2033 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_response"); }
2034#endif
2035 uint64_t address{0};
2036 std::vector<BluetoothGATTService> services{};
2037 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2038 uint32_t calculate_size() const;
2039#ifdef HAS_PROTO_MESSAGE_DUMP
2040 const char *dump_to(DumpBuffer &out) const override;
2041#endif
2042
2043 protected:
2044};
2046 public:
2047 static constexpr uint8_t MESSAGE_TYPE = 72;
2048 static constexpr uint8_t ESTIMATED_SIZE = 4;
2049#ifdef HAS_PROTO_MESSAGE_DUMP
2050 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_done_response"); }
2051#endif
2052 uint64_t address{0};
2053 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2054 uint32_t calculate_size() const;
2055#ifdef HAS_PROTO_MESSAGE_DUMP
2056 const char *dump_to(DumpBuffer &out) const override;
2057#endif
2058
2059 protected:
2060};
2062 public:
2063 static constexpr uint8_t MESSAGE_TYPE = 73;
2064 static constexpr uint8_t ESTIMATED_SIZE = 8;
2065#ifdef HAS_PROTO_MESSAGE_DUMP
2066 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_request"); }
2067#endif
2068 uint64_t address{0};
2070#ifdef HAS_PROTO_MESSAGE_DUMP
2071 const char *dump_to(DumpBuffer &out) const override;
2072#endif
2073
2074 protected:
2075 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2076};
2078 public:
2079 static constexpr uint8_t MESSAGE_TYPE = 74;
2080 static constexpr uint8_t ESTIMATED_SIZE = 27;
2081#ifdef HAS_PROTO_MESSAGE_DUMP
2082 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_response"); }
2083#endif
2084 uint64_t address{0};
2086 const uint8_t *data_ptr_{nullptr};
2087 size_t data_len_{0};
2088 void set_data(const uint8_t *data, size_t len) {
2089 this->data_ptr_ = data;
2090 this->data_len_ = len;
2091 }
2092 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2093 uint32_t calculate_size() const;
2094#ifdef HAS_PROTO_MESSAGE_DUMP
2095 const char *dump_to(DumpBuffer &out) const override;
2096#endif
2097
2098 protected:
2099};
2101 public:
2102 static constexpr uint8_t MESSAGE_TYPE = 75;
2103 static constexpr uint8_t ESTIMATED_SIZE = 29;
2104#ifdef HAS_PROTO_MESSAGE_DUMP
2105 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_request"); }
2106#endif
2107 uint64_t address{0};
2109 bool response{false};
2110 const uint8_t *data{nullptr};
2111 uint16_t data_len{0};
2112#ifdef HAS_PROTO_MESSAGE_DUMP
2113 const char *dump_to(DumpBuffer &out) const override;
2114#endif
2115
2116 protected:
2117 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2118 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2119};
2121 public:
2122 static constexpr uint8_t MESSAGE_TYPE = 76;
2123 static constexpr uint8_t ESTIMATED_SIZE = 8;
2124#ifdef HAS_PROTO_MESSAGE_DUMP
2125 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_descriptor_request"); }
2126#endif
2127 uint64_t address{0};
2129#ifdef HAS_PROTO_MESSAGE_DUMP
2130 const char *dump_to(DumpBuffer &out) const override;
2131#endif
2132
2133 protected:
2134 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2135};
2137 public:
2138 static constexpr uint8_t MESSAGE_TYPE = 77;
2139 static constexpr uint8_t ESTIMATED_SIZE = 27;
2140#ifdef HAS_PROTO_MESSAGE_DUMP
2141 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_descriptor_request"); }
2142#endif
2143 uint64_t address{0};
2145 const uint8_t *data{nullptr};
2146 uint16_t data_len{0};
2147#ifdef HAS_PROTO_MESSAGE_DUMP
2148 const char *dump_to(DumpBuffer &out) const override;
2149#endif
2150
2151 protected:
2152 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2153 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2154};
2156 public:
2157 static constexpr uint8_t MESSAGE_TYPE = 78;
2158 static constexpr uint8_t ESTIMATED_SIZE = 10;
2159#ifdef HAS_PROTO_MESSAGE_DUMP
2160 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_request"); }
2161#endif
2162 uint64_t address{0};
2164 bool enable{false};
2165#ifdef HAS_PROTO_MESSAGE_DUMP
2166 const char *dump_to(DumpBuffer &out) const override;
2167#endif
2168
2169 protected:
2170 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2171};
2173 public:
2174 static constexpr uint8_t MESSAGE_TYPE = 79;
2175 static constexpr uint8_t ESTIMATED_SIZE = 27;
2176#ifdef HAS_PROTO_MESSAGE_DUMP
2177 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_data_response"); }
2178#endif
2179 uint64_t address{0};
2181 const uint8_t *data_ptr_{nullptr};
2182 size_t data_len_{0};
2183 void set_data(const uint8_t *data, size_t len) {
2184 this->data_ptr_ = data;
2185 this->data_len_ = len;
2186 }
2187 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2188 uint32_t calculate_size() const;
2189#ifdef HAS_PROTO_MESSAGE_DUMP
2190 const char *dump_to(DumpBuffer &out) const override;
2191#endif
2192
2193 protected:
2194};
2196 public:
2197 static constexpr uint8_t MESSAGE_TYPE = 81;
2198 static constexpr uint8_t ESTIMATED_SIZE = 20;
2199#ifdef HAS_PROTO_MESSAGE_DUMP
2200 const LogString *message_name() const override { return LOG_STR("bluetooth_connections_free_response"); }
2201#endif
2204 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2205 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2206 uint32_t calculate_size() const;
2207#ifdef HAS_PROTO_MESSAGE_DUMP
2208 const char *dump_to(DumpBuffer &out) const override;
2209#endif
2210
2211 protected:
2212};
2214 public:
2215 static constexpr uint8_t MESSAGE_TYPE = 82;
2216 static constexpr uint8_t ESTIMATED_SIZE = 12;
2217#ifdef HAS_PROTO_MESSAGE_DUMP
2218 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_error_response"); }
2219#endif
2220 uint64_t address{0};
2222 int32_t error{0};
2223 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2224 uint32_t calculate_size() const;
2225#ifdef HAS_PROTO_MESSAGE_DUMP
2226 const char *dump_to(DumpBuffer &out) const override;
2227#endif
2228
2229 protected:
2230};
2232 public:
2233 static constexpr uint8_t MESSAGE_TYPE = 83;
2234 static constexpr uint8_t ESTIMATED_SIZE = 8;
2235#ifdef HAS_PROTO_MESSAGE_DUMP
2236 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_response"); }
2237#endif
2238 uint64_t address{0};
2240 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2241 uint32_t calculate_size() const;
2242#ifdef HAS_PROTO_MESSAGE_DUMP
2243 const char *dump_to(DumpBuffer &out) const override;
2244#endif
2245
2246 protected:
2247};
2249 public:
2250 static constexpr uint8_t MESSAGE_TYPE = 84;
2251 static constexpr uint8_t ESTIMATED_SIZE = 8;
2252#ifdef HAS_PROTO_MESSAGE_DUMP
2253 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_response"); }
2254#endif
2255 uint64_t address{0};
2257 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2258 uint32_t calculate_size() const;
2259#ifdef HAS_PROTO_MESSAGE_DUMP
2260 const char *dump_to(DumpBuffer &out) const override;
2261#endif
2262
2263 protected:
2264};
2266 public:
2267 static constexpr uint8_t MESSAGE_TYPE = 85;
2268 static constexpr uint8_t ESTIMATED_SIZE = 10;
2269#ifdef HAS_PROTO_MESSAGE_DUMP
2270 const LogString *message_name() const override { return LOG_STR("bluetooth_device_pairing_response"); }
2271#endif
2272 uint64_t address{0};
2273 bool paired{false};
2274 int32_t error{0};
2275 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2276 uint32_t calculate_size() const;
2277#ifdef HAS_PROTO_MESSAGE_DUMP
2278 const char *dump_to(DumpBuffer &out) const override;
2279#endif
2280
2281 protected:
2282};
2284 public:
2285 static constexpr uint8_t MESSAGE_TYPE = 86;
2286 static constexpr uint8_t ESTIMATED_SIZE = 10;
2287#ifdef HAS_PROTO_MESSAGE_DUMP
2288 const LogString *message_name() const override { return LOG_STR("bluetooth_device_unpairing_response"); }
2289#endif
2290 uint64_t address{0};
2291 bool success{false};
2292 int32_t error{0};
2293 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2294 uint32_t calculate_size() const;
2295#ifdef HAS_PROTO_MESSAGE_DUMP
2296 const char *dump_to(DumpBuffer &out) const override;
2297#endif
2298
2299 protected:
2300};
2302 public:
2303 static constexpr uint8_t MESSAGE_TYPE = 88;
2304 static constexpr uint8_t ESTIMATED_SIZE = 10;
2305#ifdef HAS_PROTO_MESSAGE_DUMP
2306 const LogString *message_name() const override { return LOG_STR("bluetooth_device_clear_cache_response"); }
2307#endif
2308 uint64_t address{0};
2309 bool success{false};
2310 int32_t error{0};
2311 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2312 uint32_t calculate_size() const;
2313#ifdef HAS_PROTO_MESSAGE_DUMP
2314 const char *dump_to(DumpBuffer &out) const override;
2315#endif
2316
2317 protected:
2318};
2320 public:
2321 static constexpr uint8_t MESSAGE_TYPE = 126;
2322 static constexpr uint8_t ESTIMATED_SIZE = 6;
2323#ifdef HAS_PROTO_MESSAGE_DUMP
2324 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_state_response"); }
2325#endif
2329 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2330 uint32_t calculate_size() const;
2331#ifdef HAS_PROTO_MESSAGE_DUMP
2332 const char *dump_to(DumpBuffer &out) const override;
2333#endif
2334
2335 protected:
2336};
2338 public:
2339 static constexpr uint8_t MESSAGE_TYPE = 127;
2340 static constexpr uint8_t ESTIMATED_SIZE = 2;
2341#ifdef HAS_PROTO_MESSAGE_DUMP
2342 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_set_mode_request"); }
2343#endif
2345#ifdef HAS_PROTO_MESSAGE_DUMP
2346 const char *dump_to(DumpBuffer &out) const override;
2347#endif
2348
2349 protected:
2350 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2351};
2352#endif
2353#ifdef USE_VOICE_ASSISTANT
2355 public:
2356 static constexpr uint8_t MESSAGE_TYPE = 89;
2357 static constexpr uint8_t ESTIMATED_SIZE = 6;
2358#ifdef HAS_PROTO_MESSAGE_DUMP
2359 const LogString *message_name() const override { return LOG_STR("subscribe_voice_assistant_request"); }
2360#endif
2361 bool subscribe{false};
2363#ifdef HAS_PROTO_MESSAGE_DUMP
2364 const char *dump_to(DumpBuffer &out) const override;
2365#endif
2366
2367 protected:
2368 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2369};
2371 public:
2375 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2376 uint32_t calculate_size() const;
2377#ifdef HAS_PROTO_MESSAGE_DUMP
2378 const char *dump_to(DumpBuffer &out) const override;
2379#endif
2380
2381 protected:
2382};
2384 public:
2385 static constexpr uint8_t MESSAGE_TYPE = 90;
2386 static constexpr uint8_t ESTIMATED_SIZE = 41;
2387#ifdef HAS_PROTO_MESSAGE_DUMP
2388 const LogString *message_name() const override { return LOG_STR("voice_assistant_request"); }
2389#endif
2390 bool start{false};
2395 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2396 uint32_t calculate_size() const;
2397#ifdef HAS_PROTO_MESSAGE_DUMP
2398 const char *dump_to(DumpBuffer &out) const override;
2399#endif
2400
2401 protected:
2402};
2404 public:
2405 static constexpr uint8_t MESSAGE_TYPE = 91;
2406 static constexpr uint8_t ESTIMATED_SIZE = 6;
2407#ifdef HAS_PROTO_MESSAGE_DUMP
2408 const LogString *message_name() const override { return LOG_STR("voice_assistant_response"); }
2409#endif
2411 bool error{false};
2412#ifdef HAS_PROTO_MESSAGE_DUMP
2413 const char *dump_to(DumpBuffer &out) const override;
2414#endif
2415
2416 protected:
2417 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2418};
2420 public:
2423#ifdef HAS_PROTO_MESSAGE_DUMP
2424 const char *dump_to(DumpBuffer &out) const override;
2425#endif
2426
2427 protected:
2428 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2429};
2431 public:
2432 static constexpr uint8_t MESSAGE_TYPE = 92;
2433 static constexpr uint8_t ESTIMATED_SIZE = 36;
2434#ifdef HAS_PROTO_MESSAGE_DUMP
2435 const LogString *message_name() const override { return LOG_STR("voice_assistant_event_response"); }
2436#endif
2438 std::vector<VoiceAssistantEventData> data{};
2439#ifdef HAS_PROTO_MESSAGE_DUMP
2440 const char *dump_to(DumpBuffer &out) const override;
2441#endif
2442
2443 protected:
2444 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2445 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2446};
2448 public:
2449 static constexpr uint8_t MESSAGE_TYPE = 106;
2450 static constexpr uint8_t ESTIMATED_SIZE = 40;
2451#ifdef HAS_PROTO_MESSAGE_DUMP
2452 const LogString *message_name() const override { return LOG_STR("voice_assistant_audio"); }
2453#endif
2454 const uint8_t *data{nullptr};
2455 uint16_t data_len{0};
2456 bool end{false};
2457 const uint8_t *data2{nullptr};
2458 uint16_t data2_len{0};
2459 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2460 uint32_t calculate_size() const;
2461#ifdef HAS_PROTO_MESSAGE_DUMP
2462 const char *dump_to(DumpBuffer &out) const override;
2463#endif
2464
2465 protected:
2466 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2467 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2468};
2470 public:
2471 static constexpr uint8_t MESSAGE_TYPE = 115;
2472 static constexpr uint8_t ESTIMATED_SIZE = 30;
2473#ifdef HAS_PROTO_MESSAGE_DUMP
2474 const LogString *message_name() const override { return LOG_STR("voice_assistant_timer_event_response"); }
2475#endif
2481 bool is_active{false};
2482#ifdef HAS_PROTO_MESSAGE_DUMP
2483 const char *dump_to(DumpBuffer &out) const override;
2484#endif
2485
2486 protected:
2487 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2488 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2489};
2491 public:
2492 static constexpr uint8_t MESSAGE_TYPE = 119;
2493 static constexpr uint8_t ESTIMATED_SIZE = 29;
2494#ifdef HAS_PROTO_MESSAGE_DUMP
2495 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_request"); }
2496#endif
2501#ifdef HAS_PROTO_MESSAGE_DUMP
2502 const char *dump_to(DumpBuffer &out) const override;
2503#endif
2504
2505 protected:
2506 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2507 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2508};
2510 public:
2511 static constexpr uint8_t MESSAGE_TYPE = 120;
2512 static constexpr uint8_t ESTIMATED_SIZE = 2;
2513#ifdef HAS_PROTO_MESSAGE_DUMP
2514 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_finished"); }
2515#endif
2516 bool success{false};
2517 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2518 uint32_t calculate_size() const;
2519#ifdef HAS_PROTO_MESSAGE_DUMP
2520 const char *dump_to(DumpBuffer &out) const override;
2521#endif
2522
2523 protected:
2524};
2526 public:
2529 std::vector<std::string> trained_languages{};
2530 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2531 uint32_t calculate_size() const;
2532#ifdef HAS_PROTO_MESSAGE_DUMP
2533 const char *dump_to(DumpBuffer &out) const override;
2534#endif
2535
2536 protected:
2537};
2539 public:
2542 std::vector<std::string> trained_languages{};
2547#ifdef HAS_PROTO_MESSAGE_DUMP
2548 const char *dump_to(DumpBuffer &out) const override;
2549#endif
2550
2551 protected:
2552 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2553 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2554};
2556 public:
2557 static constexpr uint8_t MESSAGE_TYPE = 121;
2558 static constexpr uint8_t ESTIMATED_SIZE = 34;
2559#ifdef HAS_PROTO_MESSAGE_DUMP
2560 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_request"); }
2561#endif
2562 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
2563#ifdef HAS_PROTO_MESSAGE_DUMP
2564 const char *dump_to(DumpBuffer &out) const override;
2565#endif
2566
2567 protected:
2568 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2569};
2571 public:
2572 static constexpr uint8_t MESSAGE_TYPE = 122;
2573 static constexpr uint8_t ESTIMATED_SIZE = 56;
2574#ifdef HAS_PROTO_MESSAGE_DUMP
2575 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_response"); }
2576#endif
2577 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2578 const std::vector<std::string> *active_wake_words{};
2580 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2581 uint32_t calculate_size() const;
2582#ifdef HAS_PROTO_MESSAGE_DUMP
2583 const char *dump_to(DumpBuffer &out) const override;
2584#endif
2585
2586 protected:
2587};
2589 public:
2590 static constexpr uint8_t MESSAGE_TYPE = 123;
2591 static constexpr uint8_t ESTIMATED_SIZE = 18;
2592#ifdef HAS_PROTO_MESSAGE_DUMP
2593 const LogString *message_name() const override { return LOG_STR("voice_assistant_set_configuration"); }
2594#endif
2595 std::vector<std::string> active_wake_words{};
2596#ifdef HAS_PROTO_MESSAGE_DUMP
2597 const char *dump_to(DumpBuffer &out) const override;
2598#endif
2599
2600 protected:
2601 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2602};
2603#endif
2604#ifdef USE_ALARM_CONTROL_PANEL
2606 public:
2607 static constexpr uint8_t MESSAGE_TYPE = 94;
2608 static constexpr uint8_t ESTIMATED_SIZE = 48;
2609#ifdef HAS_PROTO_MESSAGE_DUMP
2610 const LogString *message_name() const override { return LOG_STR("list_entities_alarm_control_panel_response"); }
2611#endif
2613 bool requires_code{false};
2615 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2616 uint32_t calculate_size() const;
2617#ifdef HAS_PROTO_MESSAGE_DUMP
2618 const char *dump_to(DumpBuffer &out) const override;
2619#endif
2620
2621 protected:
2622};
2624 public:
2625 static constexpr uint8_t MESSAGE_TYPE = 95;
2626 static constexpr uint8_t ESTIMATED_SIZE = 11;
2627#ifdef HAS_PROTO_MESSAGE_DUMP
2628 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_state_response"); }
2629#endif
2631 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2632 uint32_t calculate_size() const;
2633#ifdef HAS_PROTO_MESSAGE_DUMP
2634 const char *dump_to(DumpBuffer &out) const override;
2635#endif
2636
2637 protected:
2638};
2640 public:
2641 static constexpr uint8_t MESSAGE_TYPE = 96;
2642 static constexpr uint8_t ESTIMATED_SIZE = 20;
2643#ifdef HAS_PROTO_MESSAGE_DUMP
2644 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_command_request"); }
2645#endif
2648#ifdef HAS_PROTO_MESSAGE_DUMP
2649 const char *dump_to(DumpBuffer &out) const override;
2650#endif
2651
2652 protected:
2653 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2654 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2655 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2656};
2657#endif
2658#ifdef USE_TEXT
2660 public:
2661 static constexpr uint8_t MESSAGE_TYPE = 97;
2662 static constexpr uint8_t ESTIMATED_SIZE = 59;
2663#ifdef HAS_PROTO_MESSAGE_DUMP
2664 const LogString *message_name() const override { return LOG_STR("list_entities_text_response"); }
2665#endif
2670 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2671 uint32_t calculate_size() const;
2672#ifdef HAS_PROTO_MESSAGE_DUMP
2673 const char *dump_to(DumpBuffer &out) const override;
2674#endif
2675
2676 protected:
2677};
2679 public:
2680 static constexpr uint8_t MESSAGE_TYPE = 98;
2681 static constexpr uint8_t ESTIMATED_SIZE = 20;
2682#ifdef HAS_PROTO_MESSAGE_DUMP
2683 const LogString *message_name() const override { return LOG_STR("text_state_response"); }
2684#endif
2686 bool missing_state{false};
2687 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2688 uint32_t calculate_size() const;
2689#ifdef HAS_PROTO_MESSAGE_DUMP
2690 const char *dump_to(DumpBuffer &out) const override;
2691#endif
2692
2693 protected:
2694};
2696 public:
2697 static constexpr uint8_t MESSAGE_TYPE = 99;
2698 static constexpr uint8_t ESTIMATED_SIZE = 18;
2699#ifdef HAS_PROTO_MESSAGE_DUMP
2700 const LogString *message_name() const override { return LOG_STR("text_command_request"); }
2701#endif
2703#ifdef HAS_PROTO_MESSAGE_DUMP
2704 const char *dump_to(DumpBuffer &out) const override;
2705#endif
2706
2707 protected:
2708 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2709 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2710 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2711};
2712#endif
2713#ifdef USE_DATETIME_DATE
2715 public:
2716 static constexpr uint8_t MESSAGE_TYPE = 100;
2717 static constexpr uint8_t ESTIMATED_SIZE = 40;
2718#ifdef HAS_PROTO_MESSAGE_DUMP
2719 const LogString *message_name() const override { return LOG_STR("list_entities_date_response"); }
2720#endif
2721 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2722 uint32_t calculate_size() const;
2723#ifdef HAS_PROTO_MESSAGE_DUMP
2724 const char *dump_to(DumpBuffer &out) const override;
2725#endif
2726
2727 protected:
2728};
2730 public:
2731 static constexpr uint8_t MESSAGE_TYPE = 101;
2732 static constexpr uint8_t ESTIMATED_SIZE = 23;
2733#ifdef HAS_PROTO_MESSAGE_DUMP
2734 const LogString *message_name() const override { return LOG_STR("date_state_response"); }
2735#endif
2736 bool missing_state{false};
2740 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2741 uint32_t calculate_size() const;
2742#ifdef HAS_PROTO_MESSAGE_DUMP
2743 const char *dump_to(DumpBuffer &out) const override;
2744#endif
2745
2746 protected:
2747};
2749 public:
2750 static constexpr uint8_t MESSAGE_TYPE = 102;
2751 static constexpr uint8_t ESTIMATED_SIZE = 21;
2752#ifdef HAS_PROTO_MESSAGE_DUMP
2753 const LogString *message_name() const override { return LOG_STR("date_command_request"); }
2754#endif
2758#ifdef HAS_PROTO_MESSAGE_DUMP
2759 const char *dump_to(DumpBuffer &out) const override;
2760#endif
2761
2762 protected:
2763 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2764 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2765};
2766#endif
2767#ifdef USE_DATETIME_TIME
2769 public:
2770 static constexpr uint8_t MESSAGE_TYPE = 103;
2771 static constexpr uint8_t ESTIMATED_SIZE = 40;
2772#ifdef HAS_PROTO_MESSAGE_DUMP
2773 const LogString *message_name() const override { return LOG_STR("list_entities_time_response"); }
2774#endif
2775 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2776 uint32_t calculate_size() const;
2777#ifdef HAS_PROTO_MESSAGE_DUMP
2778 const char *dump_to(DumpBuffer &out) const override;
2779#endif
2780
2781 protected:
2782};
2784 public:
2785 static constexpr uint8_t MESSAGE_TYPE = 104;
2786 static constexpr uint8_t ESTIMATED_SIZE = 23;
2787#ifdef HAS_PROTO_MESSAGE_DUMP
2788 const LogString *message_name() const override { return LOG_STR("time_state_response"); }
2789#endif
2790 bool missing_state{false};
2794 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2795 uint32_t calculate_size() const;
2796#ifdef HAS_PROTO_MESSAGE_DUMP
2797 const char *dump_to(DumpBuffer &out) const override;
2798#endif
2799
2800 protected:
2801};
2803 public:
2804 static constexpr uint8_t MESSAGE_TYPE = 105;
2805 static constexpr uint8_t ESTIMATED_SIZE = 21;
2806#ifdef HAS_PROTO_MESSAGE_DUMP
2807 const LogString *message_name() const override { return LOG_STR("time_command_request"); }
2808#endif
2812#ifdef HAS_PROTO_MESSAGE_DUMP
2813 const char *dump_to(DumpBuffer &out) const override;
2814#endif
2815
2816 protected:
2817 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2818 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2819};
2820#endif
2821#ifdef USE_EVENT
2823 public:
2824 static constexpr uint8_t MESSAGE_TYPE = 107;
2825 static constexpr uint8_t ESTIMATED_SIZE = 67;
2826#ifdef HAS_PROTO_MESSAGE_DUMP
2827 const LogString *message_name() const override { return LOG_STR("list_entities_event_response"); }
2828#endif
2831 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2832 uint32_t calculate_size() const;
2833#ifdef HAS_PROTO_MESSAGE_DUMP
2834 const char *dump_to(DumpBuffer &out) const override;
2835#endif
2836
2837 protected:
2838};
2840 public:
2841 static constexpr uint8_t MESSAGE_TYPE = 108;
2842 static constexpr uint8_t ESTIMATED_SIZE = 18;
2843#ifdef HAS_PROTO_MESSAGE_DUMP
2844 const LogString *message_name() const override { return LOG_STR("event_response"); }
2845#endif
2847 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2848 uint32_t calculate_size() const;
2849#ifdef HAS_PROTO_MESSAGE_DUMP
2850 const char *dump_to(DumpBuffer &out) const override;
2851#endif
2852
2853 protected:
2854};
2855#endif
2856#ifdef USE_VALVE
2858 public:
2859 static constexpr uint8_t MESSAGE_TYPE = 109;
2860 static constexpr uint8_t ESTIMATED_SIZE = 55;
2861#ifdef HAS_PROTO_MESSAGE_DUMP
2862 const LogString *message_name() const override { return LOG_STR("list_entities_valve_response"); }
2863#endif
2865 bool assumed_state{false};
2867 bool supports_stop{false};
2868 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2869 uint32_t calculate_size() const;
2870#ifdef HAS_PROTO_MESSAGE_DUMP
2871 const char *dump_to(DumpBuffer &out) const override;
2872#endif
2873
2874 protected:
2875};
2877 public:
2878 static constexpr uint8_t MESSAGE_TYPE = 110;
2879 static constexpr uint8_t ESTIMATED_SIZE = 16;
2880#ifdef HAS_PROTO_MESSAGE_DUMP
2881 const LogString *message_name() const override { return LOG_STR("valve_state_response"); }
2882#endif
2883 float position{0.0f};
2885 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2886 uint32_t calculate_size() const;
2887#ifdef HAS_PROTO_MESSAGE_DUMP
2888 const char *dump_to(DumpBuffer &out) const override;
2889#endif
2890
2891 protected:
2892};
2894 public:
2895 static constexpr uint8_t MESSAGE_TYPE = 111;
2896 static constexpr uint8_t ESTIMATED_SIZE = 18;
2897#ifdef HAS_PROTO_MESSAGE_DUMP
2898 const LogString *message_name() const override { return LOG_STR("valve_command_request"); }
2899#endif
2900 bool has_position{false};
2901 float position{0.0f};
2902 bool stop{false};
2903#ifdef HAS_PROTO_MESSAGE_DUMP
2904 const char *dump_to(DumpBuffer &out) const override;
2905#endif
2906
2907 protected:
2908 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2909 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2910};
2911#endif
2912#ifdef USE_DATETIME_DATETIME
2914 public:
2915 static constexpr uint8_t MESSAGE_TYPE = 112;
2916 static constexpr uint8_t ESTIMATED_SIZE = 40;
2917#ifdef HAS_PROTO_MESSAGE_DUMP
2918 const LogString *message_name() const override { return LOG_STR("list_entities_date_time_response"); }
2919#endif
2920 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2921 uint32_t calculate_size() const;
2922#ifdef HAS_PROTO_MESSAGE_DUMP
2923 const char *dump_to(DumpBuffer &out) const override;
2924#endif
2925
2926 protected:
2927};
2929 public:
2930 static constexpr uint8_t MESSAGE_TYPE = 113;
2931 static constexpr uint8_t ESTIMATED_SIZE = 16;
2932#ifdef HAS_PROTO_MESSAGE_DUMP
2933 const LogString *message_name() const override { return LOG_STR("date_time_state_response"); }
2934#endif
2935 bool missing_state{false};
2937 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2938 uint32_t calculate_size() const;
2939#ifdef HAS_PROTO_MESSAGE_DUMP
2940 const char *dump_to(DumpBuffer &out) const override;
2941#endif
2942
2943 protected:
2944};
2946 public:
2947 static constexpr uint8_t MESSAGE_TYPE = 114;
2948 static constexpr uint8_t ESTIMATED_SIZE = 14;
2949#ifdef HAS_PROTO_MESSAGE_DUMP
2950 const LogString *message_name() const override { return LOG_STR("date_time_command_request"); }
2951#endif
2953#ifdef HAS_PROTO_MESSAGE_DUMP
2954 const char *dump_to(DumpBuffer &out) const override;
2955#endif
2956
2957 protected:
2958 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2959 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2960};
2961#endif
2962#ifdef USE_UPDATE
2964 public:
2965 static constexpr uint8_t MESSAGE_TYPE = 116;
2966 static constexpr uint8_t ESTIMATED_SIZE = 49;
2967#ifdef HAS_PROTO_MESSAGE_DUMP
2968 const LogString *message_name() const override { return LOG_STR("list_entities_update_response"); }
2969#endif
2971 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2972 uint32_t calculate_size() const;
2973#ifdef HAS_PROTO_MESSAGE_DUMP
2974 const char *dump_to(DumpBuffer &out) const override;
2975#endif
2976
2977 protected:
2978};
2980 public:
2981 static constexpr uint8_t MESSAGE_TYPE = 117;
2982 static constexpr uint8_t ESTIMATED_SIZE = 65;
2983#ifdef HAS_PROTO_MESSAGE_DUMP
2984 const LogString *message_name() const override { return LOG_STR("update_state_response"); }
2985#endif
2986 bool missing_state{false};
2987 bool in_progress{false};
2988 bool has_progress{false};
2989 float progress{0.0f};
2995 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2996 uint32_t calculate_size() const;
2997#ifdef HAS_PROTO_MESSAGE_DUMP
2998 const char *dump_to(DumpBuffer &out) const override;
2999#endif
3000
3001 protected:
3002};
3004 public:
3005 static constexpr uint8_t MESSAGE_TYPE = 118;
3006 static constexpr uint8_t ESTIMATED_SIZE = 11;
3007#ifdef HAS_PROTO_MESSAGE_DUMP
3008 const LogString *message_name() const override { return LOG_STR("update_command_request"); }
3009#endif
3011#ifdef HAS_PROTO_MESSAGE_DUMP
3012 const char *dump_to(DumpBuffer &out) const override;
3013#endif
3014
3015 protected:
3016 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3017 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3018};
3019#endif
3020#ifdef USE_ZWAVE_PROXY
3022 public:
3023 static constexpr uint8_t MESSAGE_TYPE = 128;
3024 static constexpr uint8_t ESTIMATED_SIZE = 19;
3025#ifdef HAS_PROTO_MESSAGE_DUMP
3026 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_frame"); }
3027#endif
3028 const uint8_t *data{nullptr};
3029 uint16_t data_len{0};
3030 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3032#ifdef HAS_PROTO_MESSAGE_DUMP
3033 const char *dump_to(DumpBuffer &out) const override;
3034#endif
3035
3036 protected:
3037 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3038};
3040 public:
3041 static constexpr uint8_t MESSAGE_TYPE = 129;
3042 static constexpr uint8_t ESTIMATED_SIZE = 21;
3043#ifdef HAS_PROTO_MESSAGE_DUMP
3044 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_request"); }
3045#endif
3047 const uint8_t *data{nullptr};
3048 uint16_t data_len{0};
3049 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3050 uint32_t calculate_size() const;
3051#ifdef HAS_PROTO_MESSAGE_DUMP
3052 const char *dump_to(DumpBuffer &out) const override;
3053#endif
3054
3055 protected:
3056 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3057 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3058};
3059#endif
3060#ifdef USE_INFRARED
3062 public:
3063 static constexpr uint8_t MESSAGE_TYPE = 135;
3064 static constexpr uint8_t ESTIMATED_SIZE = 48;
3065#ifdef HAS_PROTO_MESSAGE_DUMP
3066 const LogString *message_name() const override { return LOG_STR("list_entities_infrared_response"); }
3067#endif
3070 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3071 uint32_t calculate_size() const;
3072#ifdef HAS_PROTO_MESSAGE_DUMP
3073 const char *dump_to(DumpBuffer &out) const override;
3074#endif
3075
3076 protected:
3077};
3078#endif
3079#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
3081 public:
3082 static constexpr uint8_t MESSAGE_TYPE = 136;
3083 static constexpr uint8_t ESTIMATED_SIZE = 224;
3084#ifdef HAS_PROTO_MESSAGE_DUMP
3085 const LogString *message_name() const override { return LOG_STR("infrared_rf_transmit_raw_timings_request"); }
3086#endif
3087#ifdef USE_DEVICES
3089#endif
3093 const uint8_t *timings_data_{nullptr};
3094 uint16_t timings_length_{0};
3095 uint16_t timings_count_{0};
3097#ifdef HAS_PROTO_MESSAGE_DUMP
3098 const char *dump_to(DumpBuffer &out) const override;
3099#endif
3100
3101 protected:
3102 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3103 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3104 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3105};
3107 public:
3108 static constexpr uint8_t MESSAGE_TYPE = 137;
3109 static constexpr uint8_t ESTIMATED_SIZE = 17;
3110#ifdef HAS_PROTO_MESSAGE_DUMP
3111 const LogString *message_name() const override { return LOG_STR("infrared_rf_receive_event"); }
3112#endif
3113#ifdef USE_DEVICES
3115#endif
3117 const std::vector<int32_t> *timings{};
3118 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3120#ifdef HAS_PROTO_MESSAGE_DUMP
3121 const char *dump_to(DumpBuffer &out) const override;
3122#endif
3123
3124 protected:
3125};
3126#endif
3127#ifdef USE_RADIO_FREQUENCY
3129 public:
3130 static constexpr uint8_t MESSAGE_TYPE = 148;
3131 static constexpr uint8_t ESTIMATED_SIZE = 56;
3132#ifdef HAS_PROTO_MESSAGE_DUMP
3133 const LogString *message_name() const override { return LOG_STR("list_entities_radio_frequency_response"); }
3134#endif
3139 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3141#ifdef HAS_PROTO_MESSAGE_DUMP
3142 const char *dump_to(DumpBuffer &out) const override;
3143#endif
3144
3145 protected:
3146};
3147#endif
3148#ifdef USE_SERIAL_PROXY
3150 public:
3151 static constexpr uint8_t MESSAGE_TYPE = 138;
3152 static constexpr uint8_t ESTIMATED_SIZE = 20;
3153#ifdef HAS_PROTO_MESSAGE_DUMP
3154 const LogString *message_name() const override { return LOG_STR("serial_proxy_configure_request"); }
3155#endif
3158 bool flow_control{false};
3162#ifdef HAS_PROTO_MESSAGE_DUMP
3163 const char *dump_to(DumpBuffer &out) const override;
3164#endif
3165
3166 protected:
3167 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3168};
3170 public:
3171 static constexpr uint8_t MESSAGE_TYPE = 139;
3172 static constexpr uint8_t ESTIMATED_SIZE = 23;
3173#ifdef HAS_PROTO_MESSAGE_DUMP
3174 const LogString *message_name() const override { return LOG_STR("serial_proxy_data_received"); }
3175#endif
3177 const uint8_t *data_ptr_{nullptr};
3178 size_t data_len_{0};
3179 void set_data(const uint8_t *data, size_t len) {
3180 this->data_ptr_ = data;
3181 this->data_len_ = len;
3182 }
3183 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3185#ifdef HAS_PROTO_MESSAGE_DUMP
3186 const char *dump_to(DumpBuffer &out) const override;
3187#endif
3188
3189 protected:
3190};
3192 public:
3193 static constexpr uint8_t MESSAGE_TYPE = 140;
3194 static constexpr uint8_t ESTIMATED_SIZE = 23;
3195#ifdef HAS_PROTO_MESSAGE_DUMP
3196 const LogString *message_name() const override { return LOG_STR("serial_proxy_write_request"); }
3197#endif
3199 const uint8_t *data{nullptr};
3200 uint16_t data_len{0};
3201#ifdef HAS_PROTO_MESSAGE_DUMP
3202 const char *dump_to(DumpBuffer &out) const override;
3203#endif
3204
3205 protected:
3206 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3207 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3208};
3210 public:
3211 static constexpr uint8_t MESSAGE_TYPE = 141;
3212 static constexpr uint8_t ESTIMATED_SIZE = 8;
3213#ifdef HAS_PROTO_MESSAGE_DUMP
3214 const LogString *message_name() const override { return LOG_STR("serial_proxy_set_modem_pins_request"); }
3215#endif
3218#ifdef HAS_PROTO_MESSAGE_DUMP
3219 const char *dump_to(DumpBuffer &out) const override;
3220#endif
3221
3222 protected:
3223 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3224};
3226 public:
3227 static constexpr uint8_t MESSAGE_TYPE = 142;
3228 static constexpr uint8_t ESTIMATED_SIZE = 4;
3229#ifdef HAS_PROTO_MESSAGE_DUMP
3230 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_request"); }
3231#endif
3233#ifdef HAS_PROTO_MESSAGE_DUMP
3234 const char *dump_to(DumpBuffer &out) const override;
3235#endif
3236
3237 protected:
3238 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3239};
3241 public:
3242 static constexpr uint8_t MESSAGE_TYPE = 143;
3243 static constexpr uint8_t ESTIMATED_SIZE = 8;
3244#ifdef HAS_PROTO_MESSAGE_DUMP
3245 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_response"); }
3246#endif
3249 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3250 uint32_t calculate_size() const;
3251#ifdef HAS_PROTO_MESSAGE_DUMP
3252 const char *dump_to(DumpBuffer &out) const override;
3253#endif
3254
3255 protected:
3256};
3258 public:
3259 static constexpr uint8_t MESSAGE_TYPE = 144;
3260 static constexpr uint8_t ESTIMATED_SIZE = 6;
3261#ifdef HAS_PROTO_MESSAGE_DUMP
3262 const LogString *message_name() const override { return LOG_STR("serial_proxy_request"); }
3263#endif
3266#ifdef HAS_PROTO_MESSAGE_DUMP
3267 const char *dump_to(DumpBuffer &out) const override;
3268#endif
3269
3270 protected:
3271 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3272};
3274 public:
3275 static constexpr uint8_t MESSAGE_TYPE = 147;
3276 static constexpr uint8_t ESTIMATED_SIZE = 17;
3277#ifdef HAS_PROTO_MESSAGE_DUMP
3278 const LogString *message_name() const override { return LOG_STR("serial_proxy_request_response"); }
3279#endif
3284 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3285 uint32_t calculate_size() const;
3286#ifdef HAS_PROTO_MESSAGE_DUMP
3287 const char *dump_to(DumpBuffer &out) const override;
3288#endif
3289
3290 protected:
3291};
3292#endif
3293#ifdef USE_BLUETOOTH_PROXY
3295 public:
3296 static constexpr uint8_t MESSAGE_TYPE = 145;
3297 static constexpr uint8_t ESTIMATED_SIZE = 20;
3298#ifdef HAS_PROTO_MESSAGE_DUMP
3299 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_request"); }
3300#endif
3301 uint64_t address{0};
3306#ifdef HAS_PROTO_MESSAGE_DUMP
3307 const char *dump_to(DumpBuffer &out) const override;
3308#endif
3309
3310 protected:
3311 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3312};
3314 public:
3315 static constexpr uint8_t MESSAGE_TYPE = 146;
3316 static constexpr uint8_t ESTIMATED_SIZE = 8;
3317#ifdef HAS_PROTO_MESSAGE_DUMP
3318 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_response"); }
3319#endif
3320 uint64_t address{0};
3321 int32_t error{0};
3322 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3323 uint32_t calculate_size() const;
3324#ifdef HAS_PROTO_MESSAGE_DUMP
3325 const char *dump_to(DumpBuffer &out) const override;
3326#endif
3327
3328 protected:
3329};
3330#endif
3331
3332} // namespace esphome::api
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
Definition helpers.h:534
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:3208
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:3182
const LogString * message_name() const override
Definition api_pb2.h:2644
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2646
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3197
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2642
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2626
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelState state
Definition api_pb2.h:2630
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2625
const LogString * message_name() const override
Definition api_pb2.h:2628
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3164
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
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:636
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:279
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:637
const LogString * message_name() const override
Definition api_pb2.h:639
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2204
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2200
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2683
const LogString * message_name() const override
Definition api_pb2.h:2306
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2771
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1957
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2428
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2268
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2267
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2743
const LogString * message_name() const override
Definition api_pb2.h:2270
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1936
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1942
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1937
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1939
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
const LogString * message_name() const override
Definition api_pb2.h:2288
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2757
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:2004
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2001
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2474
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2454
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1988
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2216
const LogString * message_name() const override
Definition api_pb2.h:2218
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2705
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2215
const LogString * message_name() const override
Definition api_pb2.h:2050
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2550
const LogString * message_name() const override
Definition api_pb2.h:1976
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1974
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:2444
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2532
const LogString * message_name() const override
Definition api_pb2.h:2033
std::vector< BluetoothGATTService > services
Definition api_pb2.h:2036
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2669
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2177
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2183
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2175
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2158
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2157
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:2653
const LogString * message_name() const override
Definition api_pb2.h:2160
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2250
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2251
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2253
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2731
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2125
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2615
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2063
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2066
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2560
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2064
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2079
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2088
const LogString * message_name() const override
Definition api_pb2.h:2082
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2573
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2080
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:2018
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2504
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2016
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2628
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2641
const LogString * message_name() const override
Definition api_pb2.h:2141
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2603
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2103
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2587
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2105
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2102
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2234
const LogString * message_name() const override
Definition api_pb2.h:2236
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2719
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2233
const char * dump_to(DumpBuffer &out) const override
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1924
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:1922
enums::BluetoothScannerMode mode
Definition api_pb2.h:2344
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2339
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2342
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2340
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2799
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2322
enums::BluetoothScannerMode mode
Definition api_pb2.h:2327
enums::BluetoothScannerState state
Definition api_pb2.h:2326
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2321
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2785
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2328
const LogString * message_name() const override
Definition api_pb2.h:2324
const LogString * message_name() const override
Definition api_pb2.h:3299
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:4149
const LogString * message_name() const override
Definition api_pb2.h:3318
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4171
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2199
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1797
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2211
const LogString * message_name() const override
Definition api_pb2.h:1800
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1798
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1410
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1375
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1374
const LogString * message_name() const override
Definition api_pb2.h:1377
const char * dump_to(DumpBuffer &out) const override
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1359
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1353
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1355
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1352
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1390
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1632
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1454
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1455
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1470
const LogString * message_name() const override
Definition api_pb2.h:1457
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1468
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1563
enums::ClimatePreset preset
Definition api_pb2.h:1474
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1617
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1437
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1438
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1426
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1521
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1436
const LogString * message_name() const override
Definition api_pb2.h:1429
enums::ClimatePreset preset
Definition api_pb2.h:1440
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1427
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:384
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:693
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:694
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:363
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:696
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:676
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:341
enums::CoverOperation current_operation
Definition api_pb2.h:682
const LogString * message_name() const override
Definition api_pb2.h:678
uint32_t calculate_size() const
Definition api_pb2.cpp:352
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:675
enums::DSTRuleType type
Definition api_pb2.h:1188
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1123
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3388
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2750
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2753
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3367
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2751
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3343
const LogString * message_name() const override
Definition api_pb2.h:2734
uint32_t calculate_size() const
Definition api_pb2.cpp:3355
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2731
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2732
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2948
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2947
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2950
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3688
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3700
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3668
const LogString * message_name() const override
Definition api_pb2.h:2933
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2930
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2931
const char * dump_to(DumpBuffer &out) const override
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
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:535
const LogString * message_name() const override
Definition api_pb2.h:538
static constexpr uint16_t ESTIMATED_SIZE
Definition api_pb2.h:536
uint32_t calculate_size() const
Definition api_pb2.cpp:179
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:114
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:578
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:590
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:575
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:436
const LogString * message_name() const override
Definition api_pb2.h:439
uint32_t calculate_size() const
Definition api_pb2.cpp:65
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:437
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:441
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:60
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:453
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:454
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:456
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:543
uint32_t calculate_size() const
Definition api_pb2.cpp:3536
const LogString * message_name() const override
Definition api_pb2.h:2844
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2841
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3527
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2842
const char * dump_to(DumpBuffer &out) const override
FixedVector< float > float_array
Definition api_pb2.h:1272
FixedVector< std::string > string_array
Definition api_pb2.h:1273
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1233
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1282
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1255
FixedVector< int32_t > int_array
Definition api_pb2.h:1271
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1269
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1286
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1292
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1287
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1331
const LogString * message_name() const override
Definition api_pb2.h:1289
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1293
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1321
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1310
const LogString * message_name() const override
Definition api_pb2.h:1316
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1314
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1313
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1338
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:755
const LogString * message_name() const override
Definition api_pb2.h:758
const char * dump_to(DumpBuffer &out) const override
enums::FanDirection direction
Definition api_pb2.h:765
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:513
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:756
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:474
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:524
const LogString * message_name() const override
Definition api_pb2.h:738
enums::FanDirection direction
Definition api_pb2.h:742
uint32_t calculate_size() const
Definition api_pb2.cpp:461
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:736
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:735
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:448
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1173
const LogString * message_name() const override
Definition api_pb2.h:1176
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1174
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1188
ParsedTimezone parsed_timezone
Definition api_pb2.h:1222
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1174
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1216
const LogString * message_name() const override
Definition api_pb2.h:1218
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1215
const LogString * message_name() const override
Definition api_pb2.h:402
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:400
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:399
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:10
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:23
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:417
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:418
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:420
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1155
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1156
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1103
const LogString * message_name() const override
Definition api_pb2.h:1158
const LogString * message_name() const override
Definition api_pb2.h:1085
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1090
FixedVector< HomeassistantServiceMap > data
Definition api_pb2.h:1088
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1000
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1083
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1089
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1082
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1069
const LogString * message_name() const override
Definition api_pb2.h:1116
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:1056
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1114
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1113
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:988
enums::EntityCategory entity_category
Definition api_pb2.h:367
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3109
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const std::vector< int32_t > * timings
Definition api_pb2.h:3117
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3108
const LogString * message_name() const override
Definition api_pb2.h:3111
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3940
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3085
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3906
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3927
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:684
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:695
const LogString * message_name() const override
Definition api_pb2.h:832
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:829
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:624
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:830
const LogString * message_name() const override
Definition api_pb2.h:805
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:803
uint32_t calculate_size() const
Definition api_pb2.cpp:604
enums::ColorMode color_mode
Definition api_pb2.h:809
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:802
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:584
const LogString * message_name() const override
Definition api_pb2.h:2610
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3128
const LogString * message_name() const override
Definition api_pb2.h:622
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:245
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:620
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1782
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1781
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2167
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1784
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1337
const LogString * message_name() const override
Definition api_pb2.h:1340
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1338
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1360
const std::vector< const char * > * supported_custom_presets
Definition api_pb2.h:1408
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1405
enums::TemperatureUnit temperature_unit
Definition api_pb2.h:1415
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1393
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1406
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1392
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1407
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1425
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1404
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1399
const LogString * message_name() const override
Definition api_pb2.h:1395
const LogString * message_name() const override
Definition api_pb2.h:658
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:656
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:301
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:655
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2717
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3313
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2719
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2716
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3638
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2915
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2916
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2918
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:605
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:606
const LogString * message_name() const override
Definition api_pb2.h:608
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3487
const LogString * message_name() const override
Definition api_pb2.h:2827
const FixedVector< const char * > * event_types
Definition api_pb2.h:2830
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2825
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2824
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:402
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:724
const LogString * message_name() const override
Definition api_pb2.h:718
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:716
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:715
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3870
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3063
const LogString * message_name() const override
Definition api_pb2.h:3066
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3064
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:784
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * effects
Definition api_pb2.h:791
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:788
const LogString * message_name() const override
Definition api_pb2.h:786
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:783
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:536
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1725
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1728
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2070
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1726
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1830
const LogString * message_name() const override
Definition api_pb2.h:1832
const char * dump_to(DumpBuffer &out) const override
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1835
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2241
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1558
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1772
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1560
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1557
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:3133
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1613
const FixedVector< const char * > * options
Definition api_pb2.h:1618
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1614
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1861
const LogString * message_name() const override
Definition api_pb2.h:1616
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:734
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:874
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:873
const LogString * message_name() const override
Definition api_pb2.h:876
enums::SensorStateClass state_class
Definition api_pb2.h:882
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1199
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1211
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1249
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1246
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1247
enums::SupportsResponseType supports_response
Definition api_pb2.h:1254
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1253
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1954
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1665
const LogString * message_name() const override
Definition api_pb2.h:1668
const FixedVector< const char * > * tones
Definition api_pb2.h:1670
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1666
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:915
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:913
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:912
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2661
const LogString * message_name() const override
Definition api_pb2.h:2664
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3220
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2662
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:963
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:964
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:879
const LogString * message_name() const override
Definition api_pb2.h:966
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2771
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2773
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3400
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2770
const LogString * message_name() const override
Definition api_pb2.h:2968
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2965
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2966
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3715
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2859
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3547
const LogString * message_name() const override
Definition api_pb2.h:2862
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2860
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1656
const water_heater::WaterHeaterModeMask * supported_modes
Definition api_pb2.h:1500
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1493
const LogString * message_name() const override
Definition api_pb2.h:1495
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:2126
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1760
const LogString * message_name() const override
Definition api_pb2.h:1763
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2155
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1761
enums::LockCommand command
Definition api_pb2.h:1765
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2144
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1745
uint32_t calculate_size() const
Definition api_pb2.cpp:2117
const LogString * message_name() const override
Definition api_pb2.h:1747
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1744
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2108
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1866
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerCommand command
Definition api_pb2.h:1871
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2346
const LogString * message_name() const override
Definition api_pb2.h:1868
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2335
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2305
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1865
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1847
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2283
enums::MediaPlayerState state
Definition api_pb2.h:1852
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1850
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1848
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1817
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2223
const LogString * message_name() const override
Definition api_pb2.h:1039
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1036
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1037
const LogString * message_name() const override
Definition api_pb2.h:1055
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:976
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1053
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1052
const LogString * message_name() const override
Definition api_pb2.h:1598
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1595
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1846
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1596
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1834
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1579
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1578
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1814
const LogString * message_name() const override
Definition api_pb2.h:1581
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1161
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1148
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:466
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:467
const LogString * message_name() const override
Definition api_pb2.h:469
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:482
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:479
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:480
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1931
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1647
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1919
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1646
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1942
const LogString * message_name() const override
Definition api_pb2.h:1649
const LogString * message_name() const override
Definition api_pb2.h:1632
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1899
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1630
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1629
const LogString * message_name() const override
Definition api_pb2.h:896
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:894
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:893
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3151
enums::SerialProxyParity parity
Definition api_pb2.h:3159
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3152
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:3154
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3171
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:3179
const LogString * message_name() const override
Definition api_pb2.h:3174
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3172
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3227
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4096
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3230
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3228
const LogString * message_name() const override
Definition api_pb2.h:3245
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3243
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4106
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.cpp:107
enums::SerialProxyPortType port_type
Definition api_pb2.h:523
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:3262
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4118
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3259
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3260
enums::SerialProxyRequestType type
Definition api_pb2.h:3265
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3276
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3275
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4131
const LogString * message_name() const override
Definition api_pb2.h:3278
enums::SerialProxyRequestType type
Definition api_pb2.h:3281
enums::SerialProxyStatus status
Definition api_pb2.h:3282
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3214
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4083
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3211
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3212
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3193
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:4071
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3194
const LogString * message_name() const override
Definition api_pb2.h:3196
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:2014
const LogString * message_name() const override
Definition api_pb2.h:1702
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2044
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1700
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2055
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1699
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1686
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1684
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1996
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1683
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:2361
const LogString * message_name() const override
Definition api_pb2.h:1894
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1089
const LogString * message_name() const override
Definition api_pb2.h:1140
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:1000
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:998
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:997
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:932
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1013
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1014
const LogString * message_name() const override
Definition api_pb2.h:1016
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:1021
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:2811
const LogString * message_name() const override
Definition api_pb2.h:2359
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2356
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2357
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:867
const LogString * message_name() const override
Definition api_pb2.h:948
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:945
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:946
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const LogString * message_name() const override
Definition api_pb2.h:932
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:930
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:929
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3290
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3278
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2698
const LogString * message_name() const override
Definition api_pb2.h:2700
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3301
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2697
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:979
const LogString * message_name() const override
Definition api_pb2.h:982
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:980
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:911
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2681
uint32_t calculate_size() const
Definition api_pb2.cpp:3268
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3258
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2680
const LogString * message_name() const override
Definition api_pb2.h:2683
const LogString * message_name() const override
Definition api_pb2.h:2807
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3475
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2804
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3454
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2805
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3430
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2785
const LogString * message_name() const override
Definition api_pb2.h:2788
uint32_t calculate_size() const
Definition api_pb2.cpp:3442
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2786
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3008
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3006
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3796
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3781
enums::UpdateCommand command
Definition api_pb2.h:3010
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3005
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2982
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2984
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3747
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2981
const LogString * message_name() const override
Definition api_pb2.h:2898
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2895
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3605
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2896
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3623
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2879
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3585
enums::ValveOperation current_operation
Definition api_pb2.h:2884
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2878
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2881
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2512
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2511
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3009
const LogString * message_name() const override
Definition api_pb2.h:2514
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2990
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2493
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2980
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2495
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2492
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:2905
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2915
const LogString * message_name() const override
Definition api_pb2.h:2452
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2450
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2449
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2932
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2824
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3079
const LogString * message_name() const override
Definition api_pb2.h:2560
const char * dump_to(DumpBuffer &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2562
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2577
const LogString * message_name() const override
Definition api_pb2.h:2575
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2578
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3090
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2869
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2894
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2433
const LogString * message_name() const override
Definition api_pb2.h:2435
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2432
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2437
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2884
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2438
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3049
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:3039
std::vector< std::string > trained_languages
Definition api_pb2.h:2542
const LogString * message_name() const override
Definition api_pb2.h:2388
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2838
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2385
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2393
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2386
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:2856
const LogString * message_name() const override
Definition api_pb2.h:2408
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2406
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2405
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2591
std::vector< std::string > active_wake_words
Definition api_pb2.h:2595
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2590
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3116
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2593
const LogString * message_name() const override
Definition api_pb2.h:2474
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2476
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2965
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2946
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3019
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2529
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1730
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1751
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1535
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1537
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1534
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1513
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1514
const LogString * message_name() const override
Definition api_pb2.h:1516
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1702
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3024
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3808
const LogString * message_name() const override
Definition api_pb2.h:3026
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 uint8_t MESSAGE_TYPE
Definition api_pb2.h:3023
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3042
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3844
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3041
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
const LogString * message_name() const override
Definition api_pb2.h:3044
uint32_t calculate_size() const
Definition api_pb2.cpp:3862
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3046
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3856
const char * dump_to(DumpBuffer &out) const override
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:203
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:293
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:87
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:90
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:89
@ SERIAL_PROXY_PORT_TYPE_RS232
Definition api_pb2.h:20
@ SERIAL_PROXY_PORT_TYPE_RS485
Definition api_pb2.h:21
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:258
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:257
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:157
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:158
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:344
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
Definition api_pb2.h:345
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:343
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:225
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:224
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:45
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:52
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:48
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:53
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:281
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:280
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:283
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:282
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:217
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:218
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:215
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:214
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:221
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:219
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:271
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:276
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:273
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:277
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:275
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:272
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
Definition api_pb2.h:349
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:352
@ DISCONNECT_REASON_PROVISIONING_CLOSED
Definition api_pb2.h:16
@ DISCONNECT_REASON_UNSPECIFIED
Definition api_pb2.h:15
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:233
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:234
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:230
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:232
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:235
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:236
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:231
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:247
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:248
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:244
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:240
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:243
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:241
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:242
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:77
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:78
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:170
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:164
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:167
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:171
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:168
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:166
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:165
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:169
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:331
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:332
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:333
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:303
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:305
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:304
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:253
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:252
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:60
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:62
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