ESPHome 2026.5.0
Loading...
Searching...
No Matches
api_pb2.h
Go to the documentation of this file.
1// This file was automatically generated with a tool.
2// See script/api_protobuf/api_protobuf.py
3#pragma once
4
6
7#include "proto.h"
8#include "api_pb2_includes.h"
9
10namespace esphome::api {
11
12namespace enums {
13
24#ifdef USE_COVER
30#endif
31#ifdef USE_FAN
36#endif
37#ifdef USE_LIGHT
51#endif
52#ifdef USE_SENSOR
60#endif
77#ifdef USE_API_USER_DEFINED_ACTIONS
94#endif
100#ifdef USE_CLIMATE
147#endif
148#ifdef USE_WATER_HEATER
158#endif
169#ifdef USE_NUMBER
175#endif
176#ifdef USE_LOCK
192#endif
193#ifdef USE_MEDIA_PLAYER
223#endif
224#ifdef USE_BLUETOOTH_PROXY
246#endif
256#ifdef USE_VOICE_ASSISTANT
281#endif
282#ifdef USE_ALARM_CONTROL_PANEL
304#endif
305#ifdef USE_TEXT
310#endif
311#ifdef USE_VALVE
317#endif
318#ifdef USE_UPDATE
324#endif
325#ifdef USE_ZWAVE_PROXY
331#endif
332#ifdef USE_SERIAL_PROXY
350#endif
351
352} // namespace enums
353
355 public:
360#ifdef USE_ENTITY_ICON
362#endif
364#ifdef USE_DEVICES
366#endif
367
368 protected:
370};
371
373 public:
375#ifdef USE_DEVICES
377#endif
378
379 protected:
381};
382
384 public:
386#ifdef USE_DEVICES
388#endif
389
390 protected:
392};
394 public:
395 static constexpr uint8_t MESSAGE_TYPE = 1;
396 static constexpr uint8_t ESTIMATED_SIZE = 17;
397#ifdef HAS_PROTO_MESSAGE_DUMP
398 const LogString *message_name() const override { return LOG_STR("hello_request"); }
399#endif
403#ifdef HAS_PROTO_MESSAGE_DUMP
404 const char *dump_to(DumpBuffer &out) const override;
405#endif
406
407 protected:
408 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
409 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
410};
411class HelloResponse final : public ProtoMessage {
412 public:
413 static constexpr uint8_t MESSAGE_TYPE = 2;
414 static constexpr uint8_t ESTIMATED_SIZE = 26;
415#ifdef HAS_PROTO_MESSAGE_DUMP
416 const LogString *message_name() const override { return LOG_STR("hello_response"); }
417#endif
422 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
423 uint32_t calculate_size() const;
424#ifdef HAS_PROTO_MESSAGE_DUMP
425 const char *dump_to(DumpBuffer &out) const override;
426#endif
427
428 protected:
429};
430class DisconnectRequest final : public ProtoMessage {
431 public:
432 static constexpr uint8_t MESSAGE_TYPE = 5;
433 static constexpr uint8_t ESTIMATED_SIZE = 0;
434#ifdef HAS_PROTO_MESSAGE_DUMP
435 const LogString *message_name() const override { return LOG_STR("disconnect_request"); }
436#endif
437#ifdef HAS_PROTO_MESSAGE_DUMP
438 const char *dump_to(DumpBuffer &out) const override;
439#endif
440
441 protected:
442};
443class DisconnectResponse final : public ProtoMessage {
444 public:
445 static constexpr uint8_t MESSAGE_TYPE = 6;
446 static constexpr uint8_t ESTIMATED_SIZE = 0;
447#ifdef HAS_PROTO_MESSAGE_DUMP
448 const LogString *message_name() const override { return LOG_STR("disconnect_response"); }
449#endif
450#ifdef HAS_PROTO_MESSAGE_DUMP
451 const char *dump_to(DumpBuffer &out) const override;
452#endif
453
454 protected:
455};
456class PingRequest final : public ProtoMessage {
457 public:
458 static constexpr uint8_t MESSAGE_TYPE = 7;
459 static constexpr uint8_t ESTIMATED_SIZE = 0;
460#ifdef HAS_PROTO_MESSAGE_DUMP
461 const LogString *message_name() const override { return LOG_STR("ping_request"); }
462#endif
463#ifdef HAS_PROTO_MESSAGE_DUMP
464 const char *dump_to(DumpBuffer &out) const override;
465#endif
466
467 protected:
468};
469class PingResponse final : public ProtoMessage {
470 public:
471 static constexpr uint8_t MESSAGE_TYPE = 8;
472 static constexpr uint8_t ESTIMATED_SIZE = 0;
473#ifdef HAS_PROTO_MESSAGE_DUMP
474 const LogString *message_name() const override { return LOG_STR("ping_response"); }
475#endif
476#ifdef HAS_PROTO_MESSAGE_DUMP
477 const char *dump_to(DumpBuffer &out) const override;
478#endif
479
480 protected:
481};
482#ifdef USE_AREAS
483class AreaInfo final : public ProtoMessage {
484 public:
487 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
488 uint32_t calculate_size() const;
489#ifdef HAS_PROTO_MESSAGE_DUMP
490 const char *dump_to(DumpBuffer &out) const override;
491#endif
492
493 protected:
494};
495#endif
496#ifdef USE_DEVICES
497class DeviceInfo final : public ProtoMessage {
498 public:
502 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
503 uint32_t calculate_size() const;
504#ifdef HAS_PROTO_MESSAGE_DUMP
505 const char *dump_to(DumpBuffer &out) const override;
506#endif
507
508 protected:
509};
510#endif
511#ifdef USE_SERIAL_PROXY
512class SerialProxyInfo final : public ProtoMessage {
513 public:
516 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
517 uint32_t calculate_size() const;
518#ifdef HAS_PROTO_MESSAGE_DUMP
519 const char *dump_to(DumpBuffer &out) const override;
520#endif
521
522 protected:
523};
524#endif
525class DeviceInfoResponse final : public ProtoMessage {
526 public:
527 static constexpr uint8_t MESSAGE_TYPE = 10;
528 static constexpr uint16_t ESTIMATED_SIZE = 309;
529#ifdef HAS_PROTO_MESSAGE_DUMP
530 const LogString *message_name() const override { return LOG_STR("device_info_response"); }
531#endif
537#ifdef USE_DEEP_SLEEP
538 bool has_deep_sleep{false};
539#endif
540#ifdef ESPHOME_PROJECT_NAME
542#endif
543#ifdef ESPHOME_PROJECT_NAME
545#endif
546#ifdef USE_WEBSERVER
548#endif
549#ifdef USE_BLUETOOTH_PROXY
551#endif
554#ifdef USE_VOICE_ASSISTANT
556#endif
557#ifdef USE_AREAS
559#endif
560#ifdef USE_BLUETOOTH_PROXY
562#endif
563#ifdef USE_API_NOISE
565#endif
566#ifdef USE_DEVICES
567 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
568#endif
569#ifdef USE_AREAS
570 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
571#endif
572#ifdef USE_AREAS
574#endif
575#ifdef USE_ZWAVE_PROXY
577#endif
578#ifdef USE_ZWAVE_PROXY
580#endif
581#ifdef USE_SERIAL_PROXY
582 std::array<SerialProxyInfo, SERIAL_PROXY_COUNT> serial_proxies{};
583#endif
584 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
585 uint32_t calculate_size() const;
586#ifdef HAS_PROTO_MESSAGE_DUMP
587 const char *dump_to(DumpBuffer &out) const override;
588#endif
589
590 protected:
591};
593 public:
594 static constexpr uint8_t MESSAGE_TYPE = 19;
595 static constexpr uint8_t ESTIMATED_SIZE = 0;
596#ifdef HAS_PROTO_MESSAGE_DUMP
597 const LogString *message_name() const override { return LOG_STR("list_entities_done_response"); }
598#endif
599#ifdef HAS_PROTO_MESSAGE_DUMP
600 const char *dump_to(DumpBuffer &out) const override;
601#endif
602
603 protected:
604};
605#ifdef USE_BINARY_SENSOR
607 public:
608 static constexpr uint8_t MESSAGE_TYPE = 12;
609 static constexpr uint8_t ESTIMATED_SIZE = 51;
610#ifdef HAS_PROTO_MESSAGE_DUMP
611 const LogString *message_name() const override { return LOG_STR("list_entities_binary_sensor_response"); }
612#endif
615 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
616 uint32_t calculate_size() const;
617#ifdef HAS_PROTO_MESSAGE_DUMP
618 const char *dump_to(DumpBuffer &out) const override;
619#endif
620
621 protected:
622};
624 public:
625 static constexpr uint8_t MESSAGE_TYPE = 21;
626 static constexpr uint8_t ESTIMATED_SIZE = 13;
627#ifdef HAS_PROTO_MESSAGE_DUMP
628 const LogString *message_name() const override { return LOG_STR("binary_sensor_state_response"); }
629#endif
630 bool state{false};
631 bool missing_state{false};
632 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
633 uint32_t calculate_size() const;
634#ifdef HAS_PROTO_MESSAGE_DUMP
635 const char *dump_to(DumpBuffer &out) const override;
636#endif
637
638 protected:
639};
640#endif
641#ifdef USE_COVER
643 public:
644 static constexpr uint8_t MESSAGE_TYPE = 13;
645 static constexpr uint8_t ESTIMATED_SIZE = 57;
646#ifdef HAS_PROTO_MESSAGE_DUMP
647 const LogString *message_name() const override { return LOG_STR("list_entities_cover_response"); }
648#endif
649 bool assumed_state{false};
650 bool supports_position{false};
651 bool supports_tilt{false};
653 bool supports_stop{false};
654 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
655 uint32_t calculate_size() const;
656#ifdef HAS_PROTO_MESSAGE_DUMP
657 const char *dump_to(DumpBuffer &out) const override;
658#endif
659
660 protected:
661};
663 public:
664 static constexpr uint8_t MESSAGE_TYPE = 22;
665 static constexpr uint8_t ESTIMATED_SIZE = 21;
666#ifdef HAS_PROTO_MESSAGE_DUMP
667 const LogString *message_name() const override { return LOG_STR("cover_state_response"); }
668#endif
669 float position{0.0f};
670 float tilt{0.0f};
672 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
673 uint32_t calculate_size() const;
674#ifdef HAS_PROTO_MESSAGE_DUMP
675 const char *dump_to(DumpBuffer &out) const override;
676#endif
677
678 protected:
679};
681 public:
682 static constexpr uint8_t MESSAGE_TYPE = 30;
683 static constexpr uint8_t ESTIMATED_SIZE = 25;
684#ifdef HAS_PROTO_MESSAGE_DUMP
685 const LogString *message_name() const override { return LOG_STR("cover_command_request"); }
686#endif
687 bool has_position{false};
688 float position{0.0f};
689 bool has_tilt{false};
690 float tilt{0.0f};
691 bool stop{false};
692#ifdef HAS_PROTO_MESSAGE_DUMP
693 const char *dump_to(DumpBuffer &out) const override;
694#endif
695
696 protected:
697 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
698 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
699};
700#endif
701#ifdef USE_FAN
703 public:
704 static constexpr uint8_t MESSAGE_TYPE = 14;
705 static constexpr uint8_t ESTIMATED_SIZE = 68;
706#ifdef HAS_PROTO_MESSAGE_DUMP
707 const LogString *message_name() const override { return LOG_STR("list_entities_fan_response"); }
708#endif
710 bool supports_speed{false};
713 const std::vector<const char *> *supported_preset_modes{};
714 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
715 uint32_t calculate_size() const;
716#ifdef HAS_PROTO_MESSAGE_DUMP
717 const char *dump_to(DumpBuffer &out) const override;
718#endif
719
720 protected:
721};
723 public:
724 static constexpr uint8_t MESSAGE_TYPE = 23;
725 static constexpr uint8_t ESTIMATED_SIZE = 28;
726#ifdef HAS_PROTO_MESSAGE_DUMP
727 const LogString *message_name() const override { return LOG_STR("fan_state_response"); }
728#endif
729 bool state{false};
730 bool oscillating{false};
732 int32_t speed_level{0};
734 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
735 uint32_t calculate_size() const;
736#ifdef HAS_PROTO_MESSAGE_DUMP
737 const char *dump_to(DumpBuffer &out) const override;
738#endif
739
740 protected:
741};
743 public:
744 static constexpr uint8_t MESSAGE_TYPE = 31;
745 static constexpr uint8_t ESTIMATED_SIZE = 38;
746#ifdef HAS_PROTO_MESSAGE_DUMP
747 const LogString *message_name() const override { return LOG_STR("fan_command_request"); }
748#endif
749 bool has_state{false};
750 bool state{false};
751 bool has_oscillating{false};
752 bool oscillating{false};
753 bool has_direction{false};
755 bool has_speed_level{false};
756 int32_t speed_level{0};
757 bool has_preset_mode{false};
759#ifdef HAS_PROTO_MESSAGE_DUMP
760 const char *dump_to(DumpBuffer &out) const override;
761#endif
762
763 protected:
764 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
765 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
766 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
767};
768#endif
769#ifdef USE_LIGHT
771 public:
772 static constexpr uint8_t MESSAGE_TYPE = 15;
773 static constexpr uint8_t ESTIMATED_SIZE = 73;
774#ifdef HAS_PROTO_MESSAGE_DUMP
775 const LogString *message_name() const override { return LOG_STR("list_entities_light_response"); }
776#endif
778 float min_mireds{0.0f};
779 float max_mireds{0.0f};
781 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
782 uint32_t calculate_size() const;
783#ifdef HAS_PROTO_MESSAGE_DUMP
784 const char *dump_to(DumpBuffer &out) const override;
785#endif
786
787 protected:
788};
790 public:
791 static constexpr uint8_t MESSAGE_TYPE = 24;
792 static constexpr uint8_t ESTIMATED_SIZE = 67;
793#ifdef HAS_PROTO_MESSAGE_DUMP
794 const LogString *message_name() const override { return LOG_STR("light_state_response"); }
795#endif
796 bool state{false};
797 float brightness{0.0f};
799 float color_brightness{0.0f};
800 float red{0.0f};
801 float green{0.0f};
802 float blue{0.0f};
803 float white{0.0f};
804 float color_temperature{0.0f};
805 float cold_white{0.0f};
806 float warm_white{0.0f};
808 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
809 uint32_t calculate_size() const;
810#ifdef HAS_PROTO_MESSAGE_DUMP
811 const char *dump_to(DumpBuffer &out) const override;
812#endif
813
814 protected:
815};
817 public:
818 static constexpr uint8_t MESSAGE_TYPE = 32;
819 static constexpr uint8_t ESTIMATED_SIZE = 112;
820#ifdef HAS_PROTO_MESSAGE_DUMP
821 const LogString *message_name() const override { return LOG_STR("light_command_request"); }
822#endif
823 bool has_state{false};
824 bool state{false};
825 bool has_brightness{false};
826 float brightness{0.0f};
827 bool has_color_mode{false};
830 float color_brightness{0.0f};
831 bool has_rgb{false};
832 float red{0.0f};
833 float green{0.0f};
834 float blue{0.0f};
835 bool has_white{false};
836 float white{0.0f};
838 float color_temperature{0.0f};
839 bool has_cold_white{false};
840 float cold_white{0.0f};
841 bool has_warm_white{false};
842 float warm_white{0.0f};
845 bool has_flash_length{false};
847 bool has_effect{false};
849#ifdef HAS_PROTO_MESSAGE_DUMP
850 const char *dump_to(DumpBuffer &out) const override;
851#endif
852
853 protected:
854 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
855 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
856 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
857};
858#endif
859#ifdef USE_SENSOR
861 public:
862 static constexpr uint8_t MESSAGE_TYPE = 16;
863 static constexpr uint8_t ESTIMATED_SIZE = 66;
864#ifdef HAS_PROTO_MESSAGE_DUMP
865 const LogString *message_name() const override { return LOG_STR("list_entities_sensor_response"); }
866#endif
869 bool force_update{false};
872 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
873 uint32_t calculate_size() const;
874#ifdef HAS_PROTO_MESSAGE_DUMP
875 const char *dump_to(DumpBuffer &out) const override;
876#endif
877
878 protected:
879};
881 public:
882 static constexpr uint8_t MESSAGE_TYPE = 25;
883 static constexpr uint8_t ESTIMATED_SIZE = 16;
884#ifdef HAS_PROTO_MESSAGE_DUMP
885 const LogString *message_name() const override { return LOG_STR("sensor_state_response"); }
886#endif
887 float state{0.0f};
888 bool missing_state{false};
889 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
891#ifdef HAS_PROTO_MESSAGE_DUMP
892 const char *dump_to(DumpBuffer &out) const override;
893#endif
894
895 protected:
896};
897#endif
898#ifdef USE_SWITCH
900 public:
901 static constexpr uint8_t MESSAGE_TYPE = 17;
902 static constexpr uint8_t ESTIMATED_SIZE = 51;
903#ifdef HAS_PROTO_MESSAGE_DUMP
904 const LogString *message_name() const override { return LOG_STR("list_entities_switch_response"); }
905#endif
906 bool assumed_state{false};
908 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
910#ifdef HAS_PROTO_MESSAGE_DUMP
911 const char *dump_to(DumpBuffer &out) const override;
912#endif
913
914 protected:
915};
917 public:
918 static constexpr uint8_t MESSAGE_TYPE = 26;
919 static constexpr uint8_t ESTIMATED_SIZE = 11;
920#ifdef HAS_PROTO_MESSAGE_DUMP
921 const LogString *message_name() const override { return LOG_STR("switch_state_response"); }
922#endif
923 bool state{false};
924 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
926#ifdef HAS_PROTO_MESSAGE_DUMP
927 const char *dump_to(DumpBuffer &out) const override;
928#endif
929
930 protected:
931};
933 public:
934 static constexpr uint8_t MESSAGE_TYPE = 33;
935 static constexpr uint8_t ESTIMATED_SIZE = 11;
936#ifdef HAS_PROTO_MESSAGE_DUMP
937 const LogString *message_name() const override { return LOG_STR("switch_command_request"); }
938#endif
939 bool state{false};
940#ifdef HAS_PROTO_MESSAGE_DUMP
941 const char *dump_to(DumpBuffer &out) const override;
942#endif
943
944 protected:
945 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
946 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
947};
948#endif
949#ifdef USE_TEXT_SENSOR
951 public:
952 static constexpr uint8_t MESSAGE_TYPE = 18;
953 static constexpr uint8_t ESTIMATED_SIZE = 49;
954#ifdef HAS_PROTO_MESSAGE_DUMP
955 const LogString *message_name() const override { return LOG_STR("list_entities_text_sensor_response"); }
956#endif
958 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
959 uint32_t calculate_size() const;
960#ifdef HAS_PROTO_MESSAGE_DUMP
961 const char *dump_to(DumpBuffer &out) const override;
962#endif
963
964 protected:
965};
967 public:
968 static constexpr uint8_t MESSAGE_TYPE = 27;
969 static constexpr uint8_t ESTIMATED_SIZE = 20;
970#ifdef HAS_PROTO_MESSAGE_DUMP
971 const LogString *message_name() const override { return LOG_STR("text_sensor_state_response"); }
972#endif
974 bool missing_state{false};
975 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
976 uint32_t calculate_size() const;
977#ifdef HAS_PROTO_MESSAGE_DUMP
978 const char *dump_to(DumpBuffer &out) const override;
979#endif
980
981 protected:
982};
983#endif
985 public:
986 static constexpr uint8_t MESSAGE_TYPE = 28;
987 static constexpr uint8_t ESTIMATED_SIZE = 4;
988#ifdef HAS_PROTO_MESSAGE_DUMP
989 const LogString *message_name() const override { return LOG_STR("subscribe_logs_request"); }
990#endif
992 bool dump_config{false};
993#ifdef HAS_PROTO_MESSAGE_DUMP
994 const char *dump_to(DumpBuffer &out) const override;
995#endif
996
997 protected:
998 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
999};
1001 public:
1002 static constexpr uint8_t MESSAGE_TYPE = 29;
1003 static constexpr uint8_t ESTIMATED_SIZE = 21;
1004#ifdef HAS_PROTO_MESSAGE_DUMP
1005 const LogString *message_name() const override { return LOG_STR("subscribe_logs_response"); }
1006#endif
1008 const uint8_t *message_ptr_{nullptr};
1009 size_t message_len_{0};
1010 void set_message(const uint8_t *data, size_t len) {
1011 this->message_ptr_ = data;
1012 this->message_len_ = len;
1013 }
1014 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1016#ifdef HAS_PROTO_MESSAGE_DUMP
1017 const char *dump_to(DumpBuffer &out) const override;
1018#endif
1019
1020 protected:
1021};
1022#ifdef USE_API_NOISE
1024 public:
1025 static constexpr uint8_t MESSAGE_TYPE = 124;
1026 static constexpr uint8_t ESTIMATED_SIZE = 19;
1027#ifdef HAS_PROTO_MESSAGE_DUMP
1028 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_request"); }
1029#endif
1030 const uint8_t *key{nullptr};
1031 uint16_t key_len{0};
1032#ifdef HAS_PROTO_MESSAGE_DUMP
1033 const char *dump_to(DumpBuffer &out) const override;
1034#endif
1035
1036 protected:
1037 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1038};
1040 public:
1041 static constexpr uint8_t MESSAGE_TYPE = 125;
1042 static constexpr uint8_t ESTIMATED_SIZE = 2;
1043#ifdef HAS_PROTO_MESSAGE_DUMP
1044 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_response"); }
1045#endif
1046 bool success{false};
1047 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1048 uint32_t calculate_size() const;
1049#ifdef HAS_PROTO_MESSAGE_DUMP
1050 const char *dump_to(DumpBuffer &out) const override;
1051#endif
1052
1053 protected:
1054};
1055#endif
1056#ifdef USE_API_HOMEASSISTANT_SERVICES
1058 public:
1061 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1062 uint32_t calculate_size() const;
1063#ifdef HAS_PROTO_MESSAGE_DUMP
1064 const char *dump_to(DumpBuffer &out) const override;
1065#endif
1066
1067 protected:
1068};
1070 public:
1071 static constexpr uint8_t MESSAGE_TYPE = 35;
1072 static constexpr uint8_t ESTIMATED_SIZE = 128;
1073#ifdef HAS_PROTO_MESSAGE_DUMP
1074 const LogString *message_name() const override { return LOG_STR("homeassistant_action_request"); }
1075#endif
1080 bool is_event{false};
1081#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1083#endif
1084#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1085 bool wants_response{false};
1086#endif
1087#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1089#endif
1090 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1091 uint32_t calculate_size() const;
1092#ifdef HAS_PROTO_MESSAGE_DUMP
1093 const char *dump_to(DumpBuffer &out) const override;
1094#endif
1095
1096 protected:
1097};
1098#endif
1099#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1101 public:
1102 static constexpr uint8_t MESSAGE_TYPE = 130;
1103 static constexpr uint8_t ESTIMATED_SIZE = 34;
1104#ifdef HAS_PROTO_MESSAGE_DUMP
1105 const LogString *message_name() const override { return LOG_STR("homeassistant_action_response"); }
1106#endif
1108 bool success{false};
1110#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1111 const uint8_t *response_data{nullptr};
1113#endif
1114#ifdef HAS_PROTO_MESSAGE_DUMP
1115 const char *dump_to(DumpBuffer &out) const override;
1116#endif
1117
1118 protected:
1119 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1120 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1121};
1122#endif
1123#ifdef USE_API_HOMEASSISTANT_STATES
1125 public:
1126 static constexpr uint8_t MESSAGE_TYPE = 39;
1127 static constexpr uint8_t ESTIMATED_SIZE = 20;
1128#ifdef HAS_PROTO_MESSAGE_DUMP
1129 const LogString *message_name() const override { return LOG_STR("subscribe_home_assistant_state_response"); }
1130#endif
1133 bool once{false};
1134 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1135 uint32_t calculate_size() const;
1136#ifdef HAS_PROTO_MESSAGE_DUMP
1137 const char *dump_to(DumpBuffer &out) const override;
1138#endif
1139
1140 protected:
1141};
1143 public:
1144 static constexpr uint8_t MESSAGE_TYPE = 40;
1145 static constexpr uint8_t ESTIMATED_SIZE = 27;
1146#ifdef HAS_PROTO_MESSAGE_DUMP
1147 const LogString *message_name() const override { return LOG_STR("home_assistant_state_response"); }
1148#endif
1152#ifdef HAS_PROTO_MESSAGE_DUMP
1153 const char *dump_to(DumpBuffer &out) const override;
1154#endif
1155
1156 protected:
1157 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1158};
1159#endif
1160class GetTimeRequest final : public ProtoMessage {
1161 public:
1162 static constexpr uint8_t MESSAGE_TYPE = 36;
1163 static constexpr uint8_t ESTIMATED_SIZE = 0;
1164#ifdef HAS_PROTO_MESSAGE_DUMP
1165 const LogString *message_name() const override { return LOG_STR("get_time_request"); }
1166#endif
1167#ifdef HAS_PROTO_MESSAGE_DUMP
1168 const char *dump_to(DumpBuffer &out) const override;
1169#endif
1170
1171 protected:
1172};
1173class DSTRule final : public ProtoDecodableMessage {
1174 public:
1175 int32_t time_seconds{0};
1181#ifdef HAS_PROTO_MESSAGE_DUMP
1182 const char *dump_to(DumpBuffer &out) const override;
1183#endif
1184
1185 protected:
1186 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1187};
1189 public:
1194#ifdef HAS_PROTO_MESSAGE_DUMP
1195 const char *dump_to(DumpBuffer &out) const override;
1196#endif
1197
1198 protected:
1199 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1200 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1201};
1203 public:
1204 static constexpr uint8_t MESSAGE_TYPE = 37;
1205 static constexpr uint8_t ESTIMATED_SIZE = 31;
1206#ifdef HAS_PROTO_MESSAGE_DUMP
1207 const LogString *message_name() const override { return LOG_STR("get_time_response"); }
1208#endif
1212#ifdef HAS_PROTO_MESSAGE_DUMP
1213 const char *dump_to(DumpBuffer &out) const override;
1214#endif
1215
1216 protected:
1217 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1218 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1219};
1220#ifdef USE_API_USER_DEFINED_ACTIONS
1222 public:
1225 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1226 uint32_t calculate_size() const;
1227#ifdef HAS_PROTO_MESSAGE_DUMP
1228 const char *dump_to(DumpBuffer &out) const override;
1229#endif
1230
1231 protected:
1232};
1234 public:
1235 static constexpr uint8_t MESSAGE_TYPE = 41;
1236 static constexpr uint8_t ESTIMATED_SIZE = 50;
1237#ifdef HAS_PROTO_MESSAGE_DUMP
1238 const LogString *message_name() const override { return LOG_STR("list_entities_services_response"); }
1239#endif
1244 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1245 uint32_t calculate_size() const;
1246#ifdef HAS_PROTO_MESSAGE_DUMP
1247 const char *dump_to(DumpBuffer &out) const override;
1248#endif
1249
1250 protected:
1251};
1253 public:
1254 bool bool_{false};
1255 int32_t legacy_int{0};
1256 float float_{0.0f};
1258 int32_t int_{0};
1263 void decode(const uint8_t *buffer, size_t length);
1264#ifdef HAS_PROTO_MESSAGE_DUMP
1265 const char *dump_to(DumpBuffer &out) const override;
1266#endif
1267
1268 protected:
1269 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1270 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1271 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1272};
1274 public:
1275 static constexpr uint8_t MESSAGE_TYPE = 42;
1276 static constexpr uint8_t ESTIMATED_SIZE = 45;
1277#ifdef HAS_PROTO_MESSAGE_DUMP
1278 const LogString *message_name() const override { return LOG_STR("execute_service_request"); }
1279#endif
1282#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1284#endif
1285#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1286 bool return_response{false};
1287#endif
1288 void decode(const uint8_t *buffer, size_t length);
1289#ifdef HAS_PROTO_MESSAGE_DUMP
1290 const char *dump_to(DumpBuffer &out) const override;
1291#endif
1292
1293 protected:
1294 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1295 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1296 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1297};
1298#endif
1299#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1301 public:
1302 static constexpr uint8_t MESSAGE_TYPE = 131;
1303 static constexpr uint8_t ESTIMATED_SIZE = 34;
1304#ifdef HAS_PROTO_MESSAGE_DUMP
1305 const LogString *message_name() const override { return LOG_STR("execute_service_response"); }
1306#endif
1308 bool success{false};
1310#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1311 const uint8_t *response_data{nullptr};
1313#endif
1314 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1315 uint32_t calculate_size() const;
1316#ifdef HAS_PROTO_MESSAGE_DUMP
1317 const char *dump_to(DumpBuffer &out) const override;
1318#endif
1319
1320 protected:
1321};
1322#endif
1323#ifdef USE_CAMERA
1325 public:
1326 static constexpr uint8_t MESSAGE_TYPE = 43;
1327 static constexpr uint8_t ESTIMATED_SIZE = 40;
1328#ifdef HAS_PROTO_MESSAGE_DUMP
1329 const LogString *message_name() const override { return LOG_STR("list_entities_camera_response"); }
1330#endif
1331 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1332 uint32_t calculate_size() const;
1333#ifdef HAS_PROTO_MESSAGE_DUMP
1334 const char *dump_to(DumpBuffer &out) const override;
1335#endif
1336
1337 protected:
1338};
1340 public:
1341 static constexpr uint8_t MESSAGE_TYPE = 44;
1342 static constexpr uint8_t ESTIMATED_SIZE = 30;
1343#ifdef HAS_PROTO_MESSAGE_DUMP
1344 const LogString *message_name() const override { return LOG_STR("camera_image_response"); }
1345#endif
1346 const uint8_t *data_ptr_{nullptr};
1347 size_t data_len_{0};
1348 void set_data(const uint8_t *data, size_t len) {
1349 this->data_ptr_ = data;
1350 this->data_len_ = len;
1351 }
1352 bool done{false};
1353 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1354 uint32_t calculate_size() const;
1355#ifdef HAS_PROTO_MESSAGE_DUMP
1356 const char *dump_to(DumpBuffer &out) const override;
1357#endif
1358
1359 protected:
1360};
1362 public:
1363 static constexpr uint8_t MESSAGE_TYPE = 45;
1364 static constexpr uint8_t ESTIMATED_SIZE = 4;
1365#ifdef HAS_PROTO_MESSAGE_DUMP
1366 const LogString *message_name() const override { return LOG_STR("camera_image_request"); }
1367#endif
1368 bool single{false};
1369 bool stream{false};
1370#ifdef HAS_PROTO_MESSAGE_DUMP
1371 const char *dump_to(DumpBuffer &out) const override;
1372#endif
1373
1374 protected:
1375 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1376};
1377#endif
1378#ifdef USE_CLIMATE
1380 public:
1381 static constexpr uint8_t MESSAGE_TYPE = 46;
1382 static constexpr uint8_t ESTIMATED_SIZE = 153;
1383#ifdef HAS_PROTO_MESSAGE_DUMP
1384 const LogString *message_name() const override { return LOG_STR("list_entities_climate_response"); }
1385#endif
1392 bool supports_action{false};
1395 const std::vector<const char *> *supported_custom_fan_modes{};
1397 const std::vector<const char *> *supported_custom_presets{};
1405 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1406 uint32_t calculate_size() const;
1407#ifdef HAS_PROTO_MESSAGE_DUMP
1408 const char *dump_to(DumpBuffer &out) const override;
1409#endif
1410
1411 protected:
1412};
1414 public:
1415 static constexpr uint8_t MESSAGE_TYPE = 47;
1416 static constexpr uint8_t ESTIMATED_SIZE = 68;
1417#ifdef HAS_PROTO_MESSAGE_DUMP
1418 const LogString *message_name() const override { return LOG_STR("climate_state_response"); }
1419#endif
1431 float current_humidity{0.0f};
1432 float target_humidity{0.0f};
1433 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1434 uint32_t calculate_size() const;
1435#ifdef HAS_PROTO_MESSAGE_DUMP
1436 const char *dump_to(DumpBuffer &out) const override;
1437#endif
1438
1439 protected:
1440};
1442 public:
1443 static constexpr uint8_t MESSAGE_TYPE = 48;
1444 static constexpr uint8_t ESTIMATED_SIZE = 84;
1445#ifdef HAS_PROTO_MESSAGE_DUMP
1446 const LogString *message_name() const override { return LOG_STR("climate_command_request"); }
1447#endif
1448 bool has_mode{false};
1456 bool has_fan_mode{false};
1458 bool has_swing_mode{false};
1462 bool has_preset{false};
1467 float target_humidity{0.0f};
1468#ifdef HAS_PROTO_MESSAGE_DUMP
1469 const char *dump_to(DumpBuffer &out) const override;
1470#endif
1471
1472 protected:
1473 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1474 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1475 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1476};
1477#endif
1478#ifdef USE_WATER_HEATER
1480 public:
1481 static constexpr uint8_t MESSAGE_TYPE = 132;
1482 static constexpr uint8_t ESTIMATED_SIZE = 65;
1483#ifdef HAS_PROTO_MESSAGE_DUMP
1484 const LogString *message_name() const override { return LOG_STR("list_entities_water_heater_response"); }
1485#endif
1486 float min_temperature{0.0f};
1487 float max_temperature{0.0f};
1492 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1493 uint32_t calculate_size() const;
1494#ifdef HAS_PROTO_MESSAGE_DUMP
1495 const char *dump_to(DumpBuffer &out) const override;
1496#endif
1497
1498 protected:
1499};
1501 public:
1502 static constexpr uint8_t MESSAGE_TYPE = 133;
1503 static constexpr uint8_t ESTIMATED_SIZE = 35;
1504#ifdef HAS_PROTO_MESSAGE_DUMP
1505 const LogString *message_name() const override { return LOG_STR("water_heater_state_response"); }
1506#endif
1513 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1514 uint32_t calculate_size() const;
1515#ifdef HAS_PROTO_MESSAGE_DUMP
1516 const char *dump_to(DumpBuffer &out) const override;
1517#endif
1518
1519 protected:
1520};
1522 public:
1523 static constexpr uint8_t MESSAGE_TYPE = 134;
1524 static constexpr uint8_t ESTIMATED_SIZE = 34;
1525#ifdef HAS_PROTO_MESSAGE_DUMP
1526 const LogString *message_name() const override { return LOG_STR("water_heater_command_request"); }
1527#endif
1534#ifdef HAS_PROTO_MESSAGE_DUMP
1535 const char *dump_to(DumpBuffer &out) const override;
1536#endif
1537
1538 protected:
1539 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1540 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1541};
1542#endif
1543#ifdef USE_NUMBER
1545 public:
1546 static constexpr uint8_t MESSAGE_TYPE = 49;
1547 static constexpr uint8_t ESTIMATED_SIZE = 75;
1548#ifdef HAS_PROTO_MESSAGE_DUMP
1549 const LogString *message_name() const override { return LOG_STR("list_entities_number_response"); }
1550#endif
1551 float min_value{0.0f};
1552 float max_value{0.0f};
1553 float step{0.0f};
1557 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1558 uint32_t calculate_size() const;
1559#ifdef HAS_PROTO_MESSAGE_DUMP
1560 const char *dump_to(DumpBuffer &out) const override;
1561#endif
1562
1563 protected:
1564};
1566 public:
1567 static constexpr uint8_t MESSAGE_TYPE = 50;
1568 static constexpr uint8_t ESTIMATED_SIZE = 16;
1569#ifdef HAS_PROTO_MESSAGE_DUMP
1570 const LogString *message_name() const override { return LOG_STR("number_state_response"); }
1571#endif
1572 float state{0.0f};
1573 bool missing_state{false};
1574 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1575 uint32_t calculate_size() const;
1576#ifdef HAS_PROTO_MESSAGE_DUMP
1577 const char *dump_to(DumpBuffer &out) const override;
1578#endif
1579
1580 protected:
1581};
1583 public:
1584 static constexpr uint8_t MESSAGE_TYPE = 51;
1585 static constexpr uint8_t ESTIMATED_SIZE = 14;
1586#ifdef HAS_PROTO_MESSAGE_DUMP
1587 const LogString *message_name() const override { return LOG_STR("number_command_request"); }
1588#endif
1589 float state{0.0f};
1590#ifdef HAS_PROTO_MESSAGE_DUMP
1591 const char *dump_to(DumpBuffer &out) const override;
1592#endif
1593
1594 protected:
1595 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1596 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1597};
1598#endif
1599#ifdef USE_SELECT
1601 public:
1602 static constexpr uint8_t MESSAGE_TYPE = 52;
1603 static constexpr uint8_t ESTIMATED_SIZE = 58;
1604#ifdef HAS_PROTO_MESSAGE_DUMP
1605 const LogString *message_name() const override { return LOG_STR("list_entities_select_response"); }
1606#endif
1608 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1609 uint32_t calculate_size() const;
1610#ifdef HAS_PROTO_MESSAGE_DUMP
1611 const char *dump_to(DumpBuffer &out) const override;
1612#endif
1613
1614 protected:
1615};
1617 public:
1618 static constexpr uint8_t MESSAGE_TYPE = 53;
1619 static constexpr uint8_t ESTIMATED_SIZE = 20;
1620#ifdef HAS_PROTO_MESSAGE_DUMP
1621 const LogString *message_name() const override { return LOG_STR("select_state_response"); }
1622#endif
1624 bool missing_state{false};
1625 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1626 uint32_t calculate_size() const;
1627#ifdef HAS_PROTO_MESSAGE_DUMP
1628 const char *dump_to(DumpBuffer &out) const override;
1629#endif
1630
1631 protected:
1632};
1634 public:
1635 static constexpr uint8_t MESSAGE_TYPE = 54;
1636 static constexpr uint8_t ESTIMATED_SIZE = 18;
1637#ifdef HAS_PROTO_MESSAGE_DUMP
1638 const LogString *message_name() const override { return LOG_STR("select_command_request"); }
1639#endif
1641#ifdef HAS_PROTO_MESSAGE_DUMP
1642 const char *dump_to(DumpBuffer &out) const override;
1643#endif
1644
1645 protected:
1646 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1647 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1648 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1649};
1650#endif
1651#ifdef USE_SIREN
1653 public:
1654 static constexpr uint8_t MESSAGE_TYPE = 55;
1655 static constexpr uint8_t ESTIMATED_SIZE = 62;
1656#ifdef HAS_PROTO_MESSAGE_DUMP
1657 const LogString *message_name() const override { return LOG_STR("list_entities_siren_response"); }
1658#endif
1661 bool supports_volume{false};
1662 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1663 uint32_t calculate_size() const;
1664#ifdef HAS_PROTO_MESSAGE_DUMP
1665 const char *dump_to(DumpBuffer &out) const override;
1666#endif
1667
1668 protected:
1669};
1671 public:
1672 static constexpr uint8_t MESSAGE_TYPE = 56;
1673 static constexpr uint8_t ESTIMATED_SIZE = 11;
1674#ifdef HAS_PROTO_MESSAGE_DUMP
1675 const LogString *message_name() const override { return LOG_STR("siren_state_response"); }
1676#endif
1677 bool state{false};
1678 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1679 uint32_t calculate_size() const;
1680#ifdef HAS_PROTO_MESSAGE_DUMP
1681 const char *dump_to(DumpBuffer &out) const override;
1682#endif
1683
1684 protected:
1685};
1687 public:
1688 static constexpr uint8_t MESSAGE_TYPE = 57;
1689 static constexpr uint8_t ESTIMATED_SIZE = 37;
1690#ifdef HAS_PROTO_MESSAGE_DUMP
1691 const LogString *message_name() const override { return LOG_STR("siren_command_request"); }
1692#endif
1693 bool has_state{false};
1694 bool state{false};
1695 bool has_tone{false};
1697 bool has_duration{false};
1699 bool has_volume{false};
1700 float volume{0.0f};
1701#ifdef HAS_PROTO_MESSAGE_DUMP
1702 const char *dump_to(DumpBuffer &out) const override;
1703#endif
1704
1705 protected:
1706 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1707 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1708 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1709};
1710#endif
1711#ifdef USE_LOCK
1713 public:
1714 static constexpr uint8_t MESSAGE_TYPE = 58;
1715 static constexpr uint8_t ESTIMATED_SIZE = 55;
1716#ifdef HAS_PROTO_MESSAGE_DUMP
1717 const LogString *message_name() const override { return LOG_STR("list_entities_lock_response"); }
1718#endif
1719 bool assumed_state{false};
1720 bool supports_open{false};
1721 bool requires_code{false};
1723 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1724 uint32_t calculate_size() const;
1725#ifdef HAS_PROTO_MESSAGE_DUMP
1726 const char *dump_to(DumpBuffer &out) const override;
1727#endif
1728
1729 protected:
1730};
1732 public:
1733 static constexpr uint8_t MESSAGE_TYPE = 59;
1734 static constexpr uint8_t ESTIMATED_SIZE = 11;
1735#ifdef HAS_PROTO_MESSAGE_DUMP
1736 const LogString *message_name() const override { return LOG_STR("lock_state_response"); }
1737#endif
1739 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1740 uint32_t calculate_size() const;
1741#ifdef HAS_PROTO_MESSAGE_DUMP
1742 const char *dump_to(DumpBuffer &out) const override;
1743#endif
1744
1745 protected:
1746};
1748 public:
1749 static constexpr uint8_t MESSAGE_TYPE = 60;
1750 static constexpr uint8_t ESTIMATED_SIZE = 22;
1751#ifdef HAS_PROTO_MESSAGE_DUMP
1752 const LogString *message_name() const override { return LOG_STR("lock_command_request"); }
1753#endif
1755 bool has_code{false};
1757#ifdef HAS_PROTO_MESSAGE_DUMP
1758 const char *dump_to(DumpBuffer &out) const override;
1759#endif
1760
1761 protected:
1762 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1763 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1764 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1765};
1766#endif
1767#ifdef USE_BUTTON
1769 public:
1770 static constexpr uint8_t MESSAGE_TYPE = 61;
1771 static constexpr uint8_t ESTIMATED_SIZE = 49;
1772#ifdef HAS_PROTO_MESSAGE_DUMP
1773 const LogString *message_name() const override { return LOG_STR("list_entities_button_response"); }
1774#endif
1776 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1777 uint32_t calculate_size() const;
1778#ifdef HAS_PROTO_MESSAGE_DUMP
1779 const char *dump_to(DumpBuffer &out) const override;
1780#endif
1781
1782 protected:
1783};
1785 public:
1786 static constexpr uint8_t MESSAGE_TYPE = 62;
1787 static constexpr uint8_t ESTIMATED_SIZE = 9;
1788#ifdef HAS_PROTO_MESSAGE_DUMP
1789 const LogString *message_name() const override { return LOG_STR("button_command_request"); }
1790#endif
1791#ifdef HAS_PROTO_MESSAGE_DUMP
1792 const char *dump_to(DumpBuffer &out) const override;
1793#endif
1794
1795 protected:
1796 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1797 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1798};
1799#endif
1800#ifdef USE_MEDIA_PLAYER
1802 public:
1808 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1809 uint32_t calculate_size() const;
1810#ifdef HAS_PROTO_MESSAGE_DUMP
1811 const char *dump_to(DumpBuffer &out) const override;
1812#endif
1813
1814 protected:
1815};
1817 public:
1818 static constexpr uint8_t MESSAGE_TYPE = 63;
1819 static constexpr uint8_t ESTIMATED_SIZE = 80;
1820#ifdef HAS_PROTO_MESSAGE_DUMP
1821 const LogString *message_name() const override { return LOG_STR("list_entities_media_player_response"); }
1822#endif
1823 bool supports_pause{false};
1824 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1826 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1827 uint32_t calculate_size() const;
1828#ifdef HAS_PROTO_MESSAGE_DUMP
1829 const char *dump_to(DumpBuffer &out) const override;
1830#endif
1831
1832 protected:
1833};
1835 public:
1836 static constexpr uint8_t MESSAGE_TYPE = 64;
1837 static constexpr uint8_t ESTIMATED_SIZE = 18;
1838#ifdef HAS_PROTO_MESSAGE_DUMP
1839 const LogString *message_name() const override { return LOG_STR("media_player_state_response"); }
1840#endif
1842 float volume{0.0f};
1843 bool muted{false};
1844 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1845 uint32_t calculate_size() const;
1846#ifdef HAS_PROTO_MESSAGE_DUMP
1847 const char *dump_to(DumpBuffer &out) const override;
1848#endif
1849
1850 protected:
1851};
1853 public:
1854 static constexpr uint8_t MESSAGE_TYPE = 65;
1855 static constexpr uint8_t ESTIMATED_SIZE = 35;
1856#ifdef HAS_PROTO_MESSAGE_DUMP
1857 const LogString *message_name() const override { return LOG_STR("media_player_command_request"); }
1858#endif
1859 bool has_command{false};
1861 bool has_volume{false};
1862 float volume{0.0f};
1863 bool has_media_url{false};
1865 bool has_announcement{false};
1866 bool announcement{false};
1867#ifdef HAS_PROTO_MESSAGE_DUMP
1868 const char *dump_to(DumpBuffer &out) const override;
1869#endif
1870
1871 protected:
1872 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1873 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1874 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1875};
1876#endif
1877#ifdef USE_BLUETOOTH_PROXY
1879 public:
1880 static constexpr uint8_t MESSAGE_TYPE = 66;
1881 static constexpr uint8_t ESTIMATED_SIZE = 4;
1882#ifdef HAS_PROTO_MESSAGE_DUMP
1883 const LogString *message_name() const override { return LOG_STR("subscribe_bluetooth_le_advertisements_request"); }
1884#endif
1886#ifdef HAS_PROTO_MESSAGE_DUMP
1887 const char *dump_to(DumpBuffer &out) const override;
1888#endif
1889
1890 protected:
1891 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1892};
1894 public:
1895 uint64_t address{0};
1896 int32_t rssi{0};
1898 uint8_t data[62]{};
1899 uint8_t data_len{0};
1900#ifdef HAS_PROTO_MESSAGE_DUMP
1901 const char *dump_to(DumpBuffer &out) const override;
1902#endif
1903
1904 protected:
1905};
1907 public:
1908 static constexpr uint8_t MESSAGE_TYPE = 93;
1909 static constexpr uint8_t ESTIMATED_SIZE = 136;
1910#ifdef HAS_PROTO_MESSAGE_DUMP
1911 const LogString *message_name() const override { return LOG_STR("bluetooth_le_raw_advertisements_response"); }
1912#endif
1913 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
1915 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1917#ifdef HAS_PROTO_MESSAGE_DUMP
1918 const char *dump_to(DumpBuffer &out) const override;
1919#endif
1920
1921 protected:
1922};
1924 public:
1925 static constexpr uint8_t MESSAGE_TYPE = 68;
1926 static constexpr uint8_t ESTIMATED_SIZE = 12;
1927#ifdef HAS_PROTO_MESSAGE_DUMP
1928 const LogString *message_name() const override { return LOG_STR("bluetooth_device_request"); }
1929#endif
1930 uint64_t address{0};
1932 bool has_address_type{false};
1934#ifdef HAS_PROTO_MESSAGE_DUMP
1935 const char *dump_to(DumpBuffer &out) const override;
1936#endif
1937
1938 protected:
1939 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1940};
1942 public:
1943 static constexpr uint8_t MESSAGE_TYPE = 69;
1944 static constexpr uint8_t ESTIMATED_SIZE = 14;
1945#ifdef HAS_PROTO_MESSAGE_DUMP
1946 const LogString *message_name() const override { return LOG_STR("bluetooth_device_connection_response"); }
1947#endif
1948 uint64_t address{0};
1949 bool connected{false};
1951 int32_t error{0};
1952 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1953 uint32_t calculate_size() const;
1954#ifdef HAS_PROTO_MESSAGE_DUMP
1955 const char *dump_to(DumpBuffer &out) const override;
1956#endif
1957
1958 protected:
1959};
1961 public:
1962 static constexpr uint8_t MESSAGE_TYPE = 70;
1963 static constexpr uint8_t ESTIMATED_SIZE = 4;
1964#ifdef HAS_PROTO_MESSAGE_DUMP
1965 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_request"); }
1966#endif
1967 uint64_t address{0};
1968#ifdef HAS_PROTO_MESSAGE_DUMP
1969 const char *dump_to(DumpBuffer &out) const override;
1970#endif
1971
1972 protected:
1973 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
1974};
1976 public:
1977 std::array<uint64_t, 2> uuid{};
1980 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1981 uint32_t calculate_size() const;
1982#ifdef HAS_PROTO_MESSAGE_DUMP
1983 const char *dump_to(DumpBuffer &out) const override;
1984#endif
1985
1986 protected:
1987};
1989 public:
1990 std::array<uint64_t, 2> uuid{};
1995 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
1996 uint32_t calculate_size() const;
1997#ifdef HAS_PROTO_MESSAGE_DUMP
1998 const char *dump_to(DumpBuffer &out) const override;
1999#endif
2000
2001 protected:
2002};
2004 public:
2005 std::array<uint64_t, 2> uuid{};
2009 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2010 uint32_t calculate_size() const;
2011#ifdef HAS_PROTO_MESSAGE_DUMP
2012 const char *dump_to(DumpBuffer &out) const override;
2013#endif
2014
2015 protected:
2016};
2018 public:
2019 static constexpr uint8_t MESSAGE_TYPE = 71;
2020 static constexpr uint8_t ESTIMATED_SIZE = 38;
2021#ifdef HAS_PROTO_MESSAGE_DUMP
2022 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_response"); }
2023#endif
2024 uint64_t address{0};
2025 std::vector<BluetoothGATTService> services{};
2026 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2027 uint32_t calculate_size() const;
2028#ifdef HAS_PROTO_MESSAGE_DUMP
2029 const char *dump_to(DumpBuffer &out) const override;
2030#endif
2031
2032 protected:
2033};
2035 public:
2036 static constexpr uint8_t MESSAGE_TYPE = 72;
2037 static constexpr uint8_t ESTIMATED_SIZE = 4;
2038#ifdef HAS_PROTO_MESSAGE_DUMP
2039 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_done_response"); }
2040#endif
2041 uint64_t address{0};
2042 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2043 uint32_t calculate_size() const;
2044#ifdef HAS_PROTO_MESSAGE_DUMP
2045 const char *dump_to(DumpBuffer &out) const override;
2046#endif
2047
2048 protected:
2049};
2051 public:
2052 static constexpr uint8_t MESSAGE_TYPE = 73;
2053 static constexpr uint8_t ESTIMATED_SIZE = 8;
2054#ifdef HAS_PROTO_MESSAGE_DUMP
2055 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_request"); }
2056#endif
2057 uint64_t address{0};
2059#ifdef HAS_PROTO_MESSAGE_DUMP
2060 const char *dump_to(DumpBuffer &out) const override;
2061#endif
2062
2063 protected:
2064 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2065};
2067 public:
2068 static constexpr uint8_t MESSAGE_TYPE = 74;
2069 static constexpr uint8_t ESTIMATED_SIZE = 27;
2070#ifdef HAS_PROTO_MESSAGE_DUMP
2071 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_response"); }
2072#endif
2073 uint64_t address{0};
2075 const uint8_t *data_ptr_{nullptr};
2076 size_t data_len_{0};
2077 void set_data(const uint8_t *data, size_t len) {
2078 this->data_ptr_ = data;
2079 this->data_len_ = len;
2080 }
2081 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2082 uint32_t calculate_size() const;
2083#ifdef HAS_PROTO_MESSAGE_DUMP
2084 const char *dump_to(DumpBuffer &out) const override;
2085#endif
2086
2087 protected:
2088};
2090 public:
2091 static constexpr uint8_t MESSAGE_TYPE = 75;
2092 static constexpr uint8_t ESTIMATED_SIZE = 29;
2093#ifdef HAS_PROTO_MESSAGE_DUMP
2094 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_request"); }
2095#endif
2096 uint64_t address{0};
2098 bool response{false};
2099 const uint8_t *data{nullptr};
2100 uint16_t data_len{0};
2101#ifdef HAS_PROTO_MESSAGE_DUMP
2102 const char *dump_to(DumpBuffer &out) const override;
2103#endif
2104
2105 protected:
2106 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2107 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2108};
2110 public:
2111 static constexpr uint8_t MESSAGE_TYPE = 76;
2112 static constexpr uint8_t ESTIMATED_SIZE = 8;
2113#ifdef HAS_PROTO_MESSAGE_DUMP
2114 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_descriptor_request"); }
2115#endif
2116 uint64_t address{0};
2118#ifdef HAS_PROTO_MESSAGE_DUMP
2119 const char *dump_to(DumpBuffer &out) const override;
2120#endif
2121
2122 protected:
2123 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2124};
2126 public:
2127 static constexpr uint8_t MESSAGE_TYPE = 77;
2128 static constexpr uint8_t ESTIMATED_SIZE = 27;
2129#ifdef HAS_PROTO_MESSAGE_DUMP
2130 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_descriptor_request"); }
2131#endif
2132 uint64_t address{0};
2134 const uint8_t *data{nullptr};
2135 uint16_t data_len{0};
2136#ifdef HAS_PROTO_MESSAGE_DUMP
2137 const char *dump_to(DumpBuffer &out) const override;
2138#endif
2139
2140 protected:
2141 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2142 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2143};
2145 public:
2146 static constexpr uint8_t MESSAGE_TYPE = 78;
2147 static constexpr uint8_t ESTIMATED_SIZE = 10;
2148#ifdef HAS_PROTO_MESSAGE_DUMP
2149 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_request"); }
2150#endif
2151 uint64_t address{0};
2153 bool enable{false};
2154#ifdef HAS_PROTO_MESSAGE_DUMP
2155 const char *dump_to(DumpBuffer &out) const override;
2156#endif
2157
2158 protected:
2159 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2160};
2162 public:
2163 static constexpr uint8_t MESSAGE_TYPE = 79;
2164 static constexpr uint8_t ESTIMATED_SIZE = 27;
2165#ifdef HAS_PROTO_MESSAGE_DUMP
2166 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_data_response"); }
2167#endif
2168 uint64_t address{0};
2170 const uint8_t *data_ptr_{nullptr};
2171 size_t data_len_{0};
2172 void set_data(const uint8_t *data, size_t len) {
2173 this->data_ptr_ = data;
2174 this->data_len_ = len;
2175 }
2176 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2177 uint32_t calculate_size() const;
2178#ifdef HAS_PROTO_MESSAGE_DUMP
2179 const char *dump_to(DumpBuffer &out) const override;
2180#endif
2181
2182 protected:
2183};
2185 public:
2186 static constexpr uint8_t MESSAGE_TYPE = 81;
2187 static constexpr uint8_t ESTIMATED_SIZE = 20;
2188#ifdef HAS_PROTO_MESSAGE_DUMP
2189 const LogString *message_name() const override { return LOG_STR("bluetooth_connections_free_response"); }
2190#endif
2193 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2194 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2195 uint32_t calculate_size() const;
2196#ifdef HAS_PROTO_MESSAGE_DUMP
2197 const char *dump_to(DumpBuffer &out) const override;
2198#endif
2199
2200 protected:
2201};
2203 public:
2204 static constexpr uint8_t MESSAGE_TYPE = 82;
2205 static constexpr uint8_t ESTIMATED_SIZE = 12;
2206#ifdef HAS_PROTO_MESSAGE_DUMP
2207 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_error_response"); }
2208#endif
2209 uint64_t address{0};
2211 int32_t error{0};
2212 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2213 uint32_t calculate_size() const;
2214#ifdef HAS_PROTO_MESSAGE_DUMP
2215 const char *dump_to(DumpBuffer &out) const override;
2216#endif
2217
2218 protected:
2219};
2221 public:
2222 static constexpr uint8_t MESSAGE_TYPE = 83;
2223 static constexpr uint8_t ESTIMATED_SIZE = 8;
2224#ifdef HAS_PROTO_MESSAGE_DUMP
2225 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_response"); }
2226#endif
2227 uint64_t address{0};
2229 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2230 uint32_t calculate_size() const;
2231#ifdef HAS_PROTO_MESSAGE_DUMP
2232 const char *dump_to(DumpBuffer &out) const override;
2233#endif
2234
2235 protected:
2236};
2238 public:
2239 static constexpr uint8_t MESSAGE_TYPE = 84;
2240 static constexpr uint8_t ESTIMATED_SIZE = 8;
2241#ifdef HAS_PROTO_MESSAGE_DUMP
2242 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_response"); }
2243#endif
2244 uint64_t address{0};
2246 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2247 uint32_t calculate_size() const;
2248#ifdef HAS_PROTO_MESSAGE_DUMP
2249 const char *dump_to(DumpBuffer &out) const override;
2250#endif
2251
2252 protected:
2253};
2255 public:
2256 static constexpr uint8_t MESSAGE_TYPE = 85;
2257 static constexpr uint8_t ESTIMATED_SIZE = 10;
2258#ifdef HAS_PROTO_MESSAGE_DUMP
2259 const LogString *message_name() const override { return LOG_STR("bluetooth_device_pairing_response"); }
2260#endif
2261 uint64_t address{0};
2262 bool paired{false};
2263 int32_t error{0};
2264 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2265 uint32_t calculate_size() const;
2266#ifdef HAS_PROTO_MESSAGE_DUMP
2267 const char *dump_to(DumpBuffer &out) const override;
2268#endif
2269
2270 protected:
2271};
2273 public:
2274 static constexpr uint8_t MESSAGE_TYPE = 86;
2275 static constexpr uint8_t ESTIMATED_SIZE = 10;
2276#ifdef HAS_PROTO_MESSAGE_DUMP
2277 const LogString *message_name() const override { return LOG_STR("bluetooth_device_unpairing_response"); }
2278#endif
2279 uint64_t address{0};
2280 bool success{false};
2281 int32_t error{0};
2282 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2283 uint32_t calculate_size() const;
2284#ifdef HAS_PROTO_MESSAGE_DUMP
2285 const char *dump_to(DumpBuffer &out) const override;
2286#endif
2287
2288 protected:
2289};
2291 public:
2292 static constexpr uint8_t MESSAGE_TYPE = 88;
2293 static constexpr uint8_t ESTIMATED_SIZE = 10;
2294#ifdef HAS_PROTO_MESSAGE_DUMP
2295 const LogString *message_name() const override { return LOG_STR("bluetooth_device_clear_cache_response"); }
2296#endif
2297 uint64_t address{0};
2298 bool success{false};
2299 int32_t error{0};
2300 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2301 uint32_t calculate_size() const;
2302#ifdef HAS_PROTO_MESSAGE_DUMP
2303 const char *dump_to(DumpBuffer &out) const override;
2304#endif
2305
2306 protected:
2307};
2309 public:
2310 static constexpr uint8_t MESSAGE_TYPE = 126;
2311 static constexpr uint8_t ESTIMATED_SIZE = 6;
2312#ifdef HAS_PROTO_MESSAGE_DUMP
2313 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_state_response"); }
2314#endif
2318 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2319 uint32_t calculate_size() const;
2320#ifdef HAS_PROTO_MESSAGE_DUMP
2321 const char *dump_to(DumpBuffer &out) const override;
2322#endif
2323
2324 protected:
2325};
2327 public:
2328 static constexpr uint8_t MESSAGE_TYPE = 127;
2329 static constexpr uint8_t ESTIMATED_SIZE = 2;
2330#ifdef HAS_PROTO_MESSAGE_DUMP
2331 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_set_mode_request"); }
2332#endif
2334#ifdef HAS_PROTO_MESSAGE_DUMP
2335 const char *dump_to(DumpBuffer &out) const override;
2336#endif
2337
2338 protected:
2339 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2340};
2341#endif
2342#ifdef USE_VOICE_ASSISTANT
2344 public:
2345 static constexpr uint8_t MESSAGE_TYPE = 89;
2346 static constexpr uint8_t ESTIMATED_SIZE = 6;
2347#ifdef HAS_PROTO_MESSAGE_DUMP
2348 const LogString *message_name() const override { return LOG_STR("subscribe_voice_assistant_request"); }
2349#endif
2350 bool subscribe{false};
2352#ifdef HAS_PROTO_MESSAGE_DUMP
2353 const char *dump_to(DumpBuffer &out) const override;
2354#endif
2355
2356 protected:
2357 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2358};
2360 public:
2364 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2365 uint32_t calculate_size() const;
2366#ifdef HAS_PROTO_MESSAGE_DUMP
2367 const char *dump_to(DumpBuffer &out) const override;
2368#endif
2369
2370 protected:
2371};
2373 public:
2374 static constexpr uint8_t MESSAGE_TYPE = 90;
2375 static constexpr uint8_t ESTIMATED_SIZE = 41;
2376#ifdef HAS_PROTO_MESSAGE_DUMP
2377 const LogString *message_name() const override { return LOG_STR("voice_assistant_request"); }
2378#endif
2379 bool start{false};
2384 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2385 uint32_t calculate_size() const;
2386#ifdef HAS_PROTO_MESSAGE_DUMP
2387 const char *dump_to(DumpBuffer &out) const override;
2388#endif
2389
2390 protected:
2391};
2393 public:
2394 static constexpr uint8_t MESSAGE_TYPE = 91;
2395 static constexpr uint8_t ESTIMATED_SIZE = 6;
2396#ifdef HAS_PROTO_MESSAGE_DUMP
2397 const LogString *message_name() const override { return LOG_STR("voice_assistant_response"); }
2398#endif
2400 bool error{false};
2401#ifdef HAS_PROTO_MESSAGE_DUMP
2402 const char *dump_to(DumpBuffer &out) const override;
2403#endif
2404
2405 protected:
2406 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2407};
2409 public:
2412#ifdef HAS_PROTO_MESSAGE_DUMP
2413 const char *dump_to(DumpBuffer &out) const override;
2414#endif
2415
2416 protected:
2417 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2418};
2420 public:
2421 static constexpr uint8_t MESSAGE_TYPE = 92;
2422 static constexpr uint8_t ESTIMATED_SIZE = 36;
2423#ifdef HAS_PROTO_MESSAGE_DUMP
2424 const LogString *message_name() const override { return LOG_STR("voice_assistant_event_response"); }
2425#endif
2427 std::vector<VoiceAssistantEventData> data{};
2428#ifdef HAS_PROTO_MESSAGE_DUMP
2429 const char *dump_to(DumpBuffer &out) const override;
2430#endif
2431
2432 protected:
2433 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2434 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2435};
2437 public:
2438 static constexpr uint8_t MESSAGE_TYPE = 106;
2439 static constexpr uint8_t ESTIMATED_SIZE = 40;
2440#ifdef HAS_PROTO_MESSAGE_DUMP
2441 const LogString *message_name() const override { return LOG_STR("voice_assistant_audio"); }
2442#endif
2443 const uint8_t *data{nullptr};
2444 uint16_t data_len{0};
2445 bool end{false};
2446 const uint8_t *data2{nullptr};
2447 uint16_t data2_len{0};
2448 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2449 uint32_t calculate_size() const;
2450#ifdef HAS_PROTO_MESSAGE_DUMP
2451 const char *dump_to(DumpBuffer &out) const override;
2452#endif
2453
2454 protected:
2455 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2456 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2457};
2459 public:
2460 static constexpr uint8_t MESSAGE_TYPE = 115;
2461 static constexpr uint8_t ESTIMATED_SIZE = 30;
2462#ifdef HAS_PROTO_MESSAGE_DUMP
2463 const LogString *message_name() const override { return LOG_STR("voice_assistant_timer_event_response"); }
2464#endif
2470 bool is_active{false};
2471#ifdef HAS_PROTO_MESSAGE_DUMP
2472 const char *dump_to(DumpBuffer &out) const override;
2473#endif
2474
2475 protected:
2476 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2477 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2478};
2480 public:
2481 static constexpr uint8_t MESSAGE_TYPE = 119;
2482 static constexpr uint8_t ESTIMATED_SIZE = 29;
2483#ifdef HAS_PROTO_MESSAGE_DUMP
2484 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_request"); }
2485#endif
2490#ifdef HAS_PROTO_MESSAGE_DUMP
2491 const char *dump_to(DumpBuffer &out) const override;
2492#endif
2493
2494 protected:
2495 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2496 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2497};
2499 public:
2500 static constexpr uint8_t MESSAGE_TYPE = 120;
2501 static constexpr uint8_t ESTIMATED_SIZE = 2;
2502#ifdef HAS_PROTO_MESSAGE_DUMP
2503 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_finished"); }
2504#endif
2505 bool success{false};
2506 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2507 uint32_t calculate_size() const;
2508#ifdef HAS_PROTO_MESSAGE_DUMP
2509 const char *dump_to(DumpBuffer &out) const override;
2510#endif
2511
2512 protected:
2513};
2515 public:
2518 std::vector<std::string> trained_languages{};
2519 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2520 uint32_t calculate_size() const;
2521#ifdef HAS_PROTO_MESSAGE_DUMP
2522 const char *dump_to(DumpBuffer &out) const override;
2523#endif
2524
2525 protected:
2526};
2528 public:
2531 std::vector<std::string> trained_languages{};
2536#ifdef HAS_PROTO_MESSAGE_DUMP
2537 const char *dump_to(DumpBuffer &out) const override;
2538#endif
2539
2540 protected:
2541 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2542 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2543};
2545 public:
2546 static constexpr uint8_t MESSAGE_TYPE = 121;
2547 static constexpr uint8_t ESTIMATED_SIZE = 34;
2548#ifdef HAS_PROTO_MESSAGE_DUMP
2549 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_request"); }
2550#endif
2551 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
2552#ifdef HAS_PROTO_MESSAGE_DUMP
2553 const char *dump_to(DumpBuffer &out) const override;
2554#endif
2555
2556 protected:
2557 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2558};
2560 public:
2561 static constexpr uint8_t MESSAGE_TYPE = 122;
2562 static constexpr uint8_t ESTIMATED_SIZE = 56;
2563#ifdef HAS_PROTO_MESSAGE_DUMP
2564 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_response"); }
2565#endif
2566 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2567 const std::vector<std::string> *active_wake_words{};
2569 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2570 uint32_t calculate_size() const;
2571#ifdef HAS_PROTO_MESSAGE_DUMP
2572 const char *dump_to(DumpBuffer &out) const override;
2573#endif
2574
2575 protected:
2576};
2578 public:
2579 static constexpr uint8_t MESSAGE_TYPE = 123;
2580 static constexpr uint8_t ESTIMATED_SIZE = 18;
2581#ifdef HAS_PROTO_MESSAGE_DUMP
2582 const LogString *message_name() const override { return LOG_STR("voice_assistant_set_configuration"); }
2583#endif
2584 std::vector<std::string> active_wake_words{};
2585#ifdef HAS_PROTO_MESSAGE_DUMP
2586 const char *dump_to(DumpBuffer &out) const override;
2587#endif
2588
2589 protected:
2590 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2591};
2592#endif
2593#ifdef USE_ALARM_CONTROL_PANEL
2595 public:
2596 static constexpr uint8_t MESSAGE_TYPE = 94;
2597 static constexpr uint8_t ESTIMATED_SIZE = 48;
2598#ifdef HAS_PROTO_MESSAGE_DUMP
2599 const LogString *message_name() const override { return LOG_STR("list_entities_alarm_control_panel_response"); }
2600#endif
2602 bool requires_code{false};
2604 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2605 uint32_t calculate_size() const;
2606#ifdef HAS_PROTO_MESSAGE_DUMP
2607 const char *dump_to(DumpBuffer &out) const override;
2608#endif
2609
2610 protected:
2611};
2613 public:
2614 static constexpr uint8_t MESSAGE_TYPE = 95;
2615 static constexpr uint8_t ESTIMATED_SIZE = 11;
2616#ifdef HAS_PROTO_MESSAGE_DUMP
2617 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_state_response"); }
2618#endif
2620 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2621 uint32_t calculate_size() const;
2622#ifdef HAS_PROTO_MESSAGE_DUMP
2623 const char *dump_to(DumpBuffer &out) const override;
2624#endif
2625
2626 protected:
2627};
2629 public:
2630 static constexpr uint8_t MESSAGE_TYPE = 96;
2631 static constexpr uint8_t ESTIMATED_SIZE = 20;
2632#ifdef HAS_PROTO_MESSAGE_DUMP
2633 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_command_request"); }
2634#endif
2637#ifdef HAS_PROTO_MESSAGE_DUMP
2638 const char *dump_to(DumpBuffer &out) const override;
2639#endif
2640
2641 protected:
2642 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2643 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2644 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2645};
2646#endif
2647#ifdef USE_TEXT
2649 public:
2650 static constexpr uint8_t MESSAGE_TYPE = 97;
2651 static constexpr uint8_t ESTIMATED_SIZE = 59;
2652#ifdef HAS_PROTO_MESSAGE_DUMP
2653 const LogString *message_name() const override { return LOG_STR("list_entities_text_response"); }
2654#endif
2659 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2660 uint32_t calculate_size() const;
2661#ifdef HAS_PROTO_MESSAGE_DUMP
2662 const char *dump_to(DumpBuffer &out) const override;
2663#endif
2664
2665 protected:
2666};
2668 public:
2669 static constexpr uint8_t MESSAGE_TYPE = 98;
2670 static constexpr uint8_t ESTIMATED_SIZE = 20;
2671#ifdef HAS_PROTO_MESSAGE_DUMP
2672 const LogString *message_name() const override { return LOG_STR("text_state_response"); }
2673#endif
2675 bool missing_state{false};
2676 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2677 uint32_t calculate_size() const;
2678#ifdef HAS_PROTO_MESSAGE_DUMP
2679 const char *dump_to(DumpBuffer &out) const override;
2680#endif
2681
2682 protected:
2683};
2685 public:
2686 static constexpr uint8_t MESSAGE_TYPE = 99;
2687 static constexpr uint8_t ESTIMATED_SIZE = 18;
2688#ifdef HAS_PROTO_MESSAGE_DUMP
2689 const LogString *message_name() const override { return LOG_STR("text_command_request"); }
2690#endif
2692#ifdef HAS_PROTO_MESSAGE_DUMP
2693 const char *dump_to(DumpBuffer &out) const override;
2694#endif
2695
2696 protected:
2697 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2698 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2699 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2700};
2701#endif
2702#ifdef USE_DATETIME_DATE
2704 public:
2705 static constexpr uint8_t MESSAGE_TYPE = 100;
2706 static constexpr uint8_t ESTIMATED_SIZE = 40;
2707#ifdef HAS_PROTO_MESSAGE_DUMP
2708 const LogString *message_name() const override { return LOG_STR("list_entities_date_response"); }
2709#endif
2710 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2711 uint32_t calculate_size() const;
2712#ifdef HAS_PROTO_MESSAGE_DUMP
2713 const char *dump_to(DumpBuffer &out) const override;
2714#endif
2715
2716 protected:
2717};
2719 public:
2720 static constexpr uint8_t MESSAGE_TYPE = 101;
2721 static constexpr uint8_t ESTIMATED_SIZE = 23;
2722#ifdef HAS_PROTO_MESSAGE_DUMP
2723 const LogString *message_name() const override { return LOG_STR("date_state_response"); }
2724#endif
2725 bool missing_state{false};
2729 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2730 uint32_t calculate_size() const;
2731#ifdef HAS_PROTO_MESSAGE_DUMP
2732 const char *dump_to(DumpBuffer &out) const override;
2733#endif
2734
2735 protected:
2736};
2738 public:
2739 static constexpr uint8_t MESSAGE_TYPE = 102;
2740 static constexpr uint8_t ESTIMATED_SIZE = 21;
2741#ifdef HAS_PROTO_MESSAGE_DUMP
2742 const LogString *message_name() const override { return LOG_STR("date_command_request"); }
2743#endif
2747#ifdef HAS_PROTO_MESSAGE_DUMP
2748 const char *dump_to(DumpBuffer &out) const override;
2749#endif
2750
2751 protected:
2752 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2753 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2754};
2755#endif
2756#ifdef USE_DATETIME_TIME
2758 public:
2759 static constexpr uint8_t MESSAGE_TYPE = 103;
2760 static constexpr uint8_t ESTIMATED_SIZE = 40;
2761#ifdef HAS_PROTO_MESSAGE_DUMP
2762 const LogString *message_name() const override { return LOG_STR("list_entities_time_response"); }
2763#endif
2764 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2765 uint32_t calculate_size() const;
2766#ifdef HAS_PROTO_MESSAGE_DUMP
2767 const char *dump_to(DumpBuffer &out) const override;
2768#endif
2769
2770 protected:
2771};
2773 public:
2774 static constexpr uint8_t MESSAGE_TYPE = 104;
2775 static constexpr uint8_t ESTIMATED_SIZE = 23;
2776#ifdef HAS_PROTO_MESSAGE_DUMP
2777 const LogString *message_name() const override { return LOG_STR("time_state_response"); }
2778#endif
2779 bool missing_state{false};
2783 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2784 uint32_t calculate_size() const;
2785#ifdef HAS_PROTO_MESSAGE_DUMP
2786 const char *dump_to(DumpBuffer &out) const override;
2787#endif
2788
2789 protected:
2790};
2792 public:
2793 static constexpr uint8_t MESSAGE_TYPE = 105;
2794 static constexpr uint8_t ESTIMATED_SIZE = 21;
2795#ifdef HAS_PROTO_MESSAGE_DUMP
2796 const LogString *message_name() const override { return LOG_STR("time_command_request"); }
2797#endif
2801#ifdef HAS_PROTO_MESSAGE_DUMP
2802 const char *dump_to(DumpBuffer &out) const override;
2803#endif
2804
2805 protected:
2806 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2807 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2808};
2809#endif
2810#ifdef USE_EVENT
2812 public:
2813 static constexpr uint8_t MESSAGE_TYPE = 107;
2814 static constexpr uint8_t ESTIMATED_SIZE = 67;
2815#ifdef HAS_PROTO_MESSAGE_DUMP
2816 const LogString *message_name() const override { return LOG_STR("list_entities_event_response"); }
2817#endif
2820 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2821 uint32_t calculate_size() const;
2822#ifdef HAS_PROTO_MESSAGE_DUMP
2823 const char *dump_to(DumpBuffer &out) const override;
2824#endif
2825
2826 protected:
2827};
2829 public:
2830 static constexpr uint8_t MESSAGE_TYPE = 108;
2831 static constexpr uint8_t ESTIMATED_SIZE = 18;
2832#ifdef HAS_PROTO_MESSAGE_DUMP
2833 const LogString *message_name() const override { return LOG_STR("event_response"); }
2834#endif
2836 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2837 uint32_t calculate_size() const;
2838#ifdef HAS_PROTO_MESSAGE_DUMP
2839 const char *dump_to(DumpBuffer &out) const override;
2840#endif
2841
2842 protected:
2843};
2844#endif
2845#ifdef USE_VALVE
2847 public:
2848 static constexpr uint8_t MESSAGE_TYPE = 109;
2849 static constexpr uint8_t ESTIMATED_SIZE = 55;
2850#ifdef HAS_PROTO_MESSAGE_DUMP
2851 const LogString *message_name() const override { return LOG_STR("list_entities_valve_response"); }
2852#endif
2854 bool assumed_state{false};
2856 bool supports_stop{false};
2857 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2858 uint32_t calculate_size() const;
2859#ifdef HAS_PROTO_MESSAGE_DUMP
2860 const char *dump_to(DumpBuffer &out) const override;
2861#endif
2862
2863 protected:
2864};
2866 public:
2867 static constexpr uint8_t MESSAGE_TYPE = 110;
2868 static constexpr uint8_t ESTIMATED_SIZE = 16;
2869#ifdef HAS_PROTO_MESSAGE_DUMP
2870 const LogString *message_name() const override { return LOG_STR("valve_state_response"); }
2871#endif
2872 float position{0.0f};
2874 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2875 uint32_t calculate_size() const;
2876#ifdef HAS_PROTO_MESSAGE_DUMP
2877 const char *dump_to(DumpBuffer &out) const override;
2878#endif
2879
2880 protected:
2881};
2883 public:
2884 static constexpr uint8_t MESSAGE_TYPE = 111;
2885 static constexpr uint8_t ESTIMATED_SIZE = 18;
2886#ifdef HAS_PROTO_MESSAGE_DUMP
2887 const LogString *message_name() const override { return LOG_STR("valve_command_request"); }
2888#endif
2889 bool has_position{false};
2890 float position{0.0f};
2891 bool stop{false};
2892#ifdef HAS_PROTO_MESSAGE_DUMP
2893 const char *dump_to(DumpBuffer &out) const override;
2894#endif
2895
2896 protected:
2897 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2898 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2899};
2900#endif
2901#ifdef USE_DATETIME_DATETIME
2903 public:
2904 static constexpr uint8_t MESSAGE_TYPE = 112;
2905 static constexpr uint8_t ESTIMATED_SIZE = 40;
2906#ifdef HAS_PROTO_MESSAGE_DUMP
2907 const LogString *message_name() const override { return LOG_STR("list_entities_date_time_response"); }
2908#endif
2909 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2910 uint32_t calculate_size() const;
2911#ifdef HAS_PROTO_MESSAGE_DUMP
2912 const char *dump_to(DumpBuffer &out) const override;
2913#endif
2914
2915 protected:
2916};
2918 public:
2919 static constexpr uint8_t MESSAGE_TYPE = 113;
2920 static constexpr uint8_t ESTIMATED_SIZE = 16;
2921#ifdef HAS_PROTO_MESSAGE_DUMP
2922 const LogString *message_name() const override { return LOG_STR("date_time_state_response"); }
2923#endif
2924 bool missing_state{false};
2926 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2927 uint32_t calculate_size() const;
2928#ifdef HAS_PROTO_MESSAGE_DUMP
2929 const char *dump_to(DumpBuffer &out) const override;
2930#endif
2931
2932 protected:
2933};
2935 public:
2936 static constexpr uint8_t MESSAGE_TYPE = 114;
2937 static constexpr uint8_t ESTIMATED_SIZE = 14;
2938#ifdef HAS_PROTO_MESSAGE_DUMP
2939 const LogString *message_name() const override { return LOG_STR("date_time_command_request"); }
2940#endif
2942#ifdef HAS_PROTO_MESSAGE_DUMP
2943 const char *dump_to(DumpBuffer &out) const override;
2944#endif
2945
2946 protected:
2947 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2948 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
2949};
2950#endif
2951#ifdef USE_UPDATE
2953 public:
2954 static constexpr uint8_t MESSAGE_TYPE = 116;
2955 static constexpr uint8_t ESTIMATED_SIZE = 49;
2956#ifdef HAS_PROTO_MESSAGE_DUMP
2957 const LogString *message_name() const override { return LOG_STR("list_entities_update_response"); }
2958#endif
2960 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2961 uint32_t calculate_size() const;
2962#ifdef HAS_PROTO_MESSAGE_DUMP
2963 const char *dump_to(DumpBuffer &out) const override;
2964#endif
2965
2966 protected:
2967};
2969 public:
2970 static constexpr uint8_t MESSAGE_TYPE = 117;
2971 static constexpr uint8_t ESTIMATED_SIZE = 65;
2972#ifdef HAS_PROTO_MESSAGE_DUMP
2973 const LogString *message_name() const override { return LOG_STR("update_state_response"); }
2974#endif
2975 bool missing_state{false};
2976 bool in_progress{false};
2977 bool has_progress{false};
2978 float progress{0.0f};
2984 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
2985 uint32_t calculate_size() const;
2986#ifdef HAS_PROTO_MESSAGE_DUMP
2987 const char *dump_to(DumpBuffer &out) const override;
2988#endif
2989
2990 protected:
2991};
2993 public:
2994 static constexpr uint8_t MESSAGE_TYPE = 118;
2995 static constexpr uint8_t ESTIMATED_SIZE = 11;
2996#ifdef HAS_PROTO_MESSAGE_DUMP
2997 const LogString *message_name() const override { return LOG_STR("update_command_request"); }
2998#endif
3000#ifdef HAS_PROTO_MESSAGE_DUMP
3001 const char *dump_to(DumpBuffer &out) const override;
3002#endif
3003
3004 protected:
3005 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3006 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3007};
3008#endif
3009#ifdef USE_ZWAVE_PROXY
3011 public:
3012 static constexpr uint8_t MESSAGE_TYPE = 128;
3013 static constexpr uint8_t ESTIMATED_SIZE = 19;
3014#ifdef HAS_PROTO_MESSAGE_DUMP
3015 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_frame"); }
3016#endif
3017 const uint8_t *data{nullptr};
3018 uint16_t data_len{0};
3019 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3021#ifdef HAS_PROTO_MESSAGE_DUMP
3022 const char *dump_to(DumpBuffer &out) const override;
3023#endif
3024
3025 protected:
3026 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3027};
3029 public:
3030 static constexpr uint8_t MESSAGE_TYPE = 129;
3031 static constexpr uint8_t ESTIMATED_SIZE = 21;
3032#ifdef HAS_PROTO_MESSAGE_DUMP
3033 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_request"); }
3034#endif
3036 const uint8_t *data{nullptr};
3037 uint16_t data_len{0};
3038 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3039 uint32_t calculate_size() const;
3040#ifdef HAS_PROTO_MESSAGE_DUMP
3041 const char *dump_to(DumpBuffer &out) const override;
3042#endif
3043
3044 protected:
3045 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3046 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3047};
3048#endif
3049#ifdef USE_INFRARED
3051 public:
3052 static constexpr uint8_t MESSAGE_TYPE = 135;
3053 static constexpr uint8_t ESTIMATED_SIZE = 48;
3054#ifdef HAS_PROTO_MESSAGE_DUMP
3055 const LogString *message_name() const override { return LOG_STR("list_entities_infrared_response"); }
3056#endif
3059 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3060 uint32_t calculate_size() const;
3061#ifdef HAS_PROTO_MESSAGE_DUMP
3062 const char *dump_to(DumpBuffer &out) const override;
3063#endif
3064
3065 protected:
3066};
3067#endif
3068#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
3070 public:
3071 static constexpr uint8_t MESSAGE_TYPE = 136;
3072 static constexpr uint8_t ESTIMATED_SIZE = 224;
3073#ifdef HAS_PROTO_MESSAGE_DUMP
3074 const LogString *message_name() const override { return LOG_STR("infrared_rf_transmit_raw_timings_request"); }
3075#endif
3076#ifdef USE_DEVICES
3078#endif
3082 const uint8_t *timings_data_{nullptr};
3083 uint16_t timings_length_{0};
3084 uint16_t timings_count_{0};
3086#ifdef HAS_PROTO_MESSAGE_DUMP
3087 const char *dump_to(DumpBuffer &out) const override;
3088#endif
3089
3090 protected:
3091 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3092 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3093 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3094};
3096 public:
3097 static constexpr uint8_t MESSAGE_TYPE = 137;
3098 static constexpr uint8_t ESTIMATED_SIZE = 17;
3099#ifdef HAS_PROTO_MESSAGE_DUMP
3100 const LogString *message_name() const override { return LOG_STR("infrared_rf_receive_event"); }
3101#endif
3102#ifdef USE_DEVICES
3104#endif
3106 const std::vector<int32_t> *timings{};
3107 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3109#ifdef HAS_PROTO_MESSAGE_DUMP
3110 const char *dump_to(DumpBuffer &out) const override;
3111#endif
3112
3113 protected:
3114};
3115#endif
3116#ifdef USE_RADIO_FREQUENCY
3118 public:
3119 static constexpr uint8_t MESSAGE_TYPE = 148;
3120 static constexpr uint8_t ESTIMATED_SIZE = 56;
3121#ifdef HAS_PROTO_MESSAGE_DUMP
3122 const LogString *message_name() const override { return LOG_STR("list_entities_radio_frequency_response"); }
3123#endif
3128 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3130#ifdef HAS_PROTO_MESSAGE_DUMP
3131 const char *dump_to(DumpBuffer &out) const override;
3132#endif
3133
3134 protected:
3135};
3136#endif
3137#ifdef USE_SERIAL_PROXY
3139 public:
3140 static constexpr uint8_t MESSAGE_TYPE = 138;
3141 static constexpr uint8_t ESTIMATED_SIZE = 20;
3142#ifdef HAS_PROTO_MESSAGE_DUMP
3143 const LogString *message_name() const override { return LOG_STR("serial_proxy_configure_request"); }
3144#endif
3147 bool flow_control{false};
3151#ifdef HAS_PROTO_MESSAGE_DUMP
3152 const char *dump_to(DumpBuffer &out) const override;
3153#endif
3154
3155 protected:
3156 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3157};
3159 public:
3160 static constexpr uint8_t MESSAGE_TYPE = 139;
3161 static constexpr uint8_t ESTIMATED_SIZE = 23;
3162#ifdef HAS_PROTO_MESSAGE_DUMP
3163 const LogString *message_name() const override { return LOG_STR("serial_proxy_data_received"); }
3164#endif
3166 const uint8_t *data_ptr_{nullptr};
3167 size_t data_len_{0};
3168 void set_data(const uint8_t *data, size_t len) {
3169 this->data_ptr_ = data;
3170 this->data_len_ = len;
3171 }
3172 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3174#ifdef HAS_PROTO_MESSAGE_DUMP
3175 const char *dump_to(DumpBuffer &out) const override;
3176#endif
3177
3178 protected:
3179};
3181 public:
3182 static constexpr uint8_t MESSAGE_TYPE = 140;
3183 static constexpr uint8_t ESTIMATED_SIZE = 23;
3184#ifdef HAS_PROTO_MESSAGE_DUMP
3185 const LogString *message_name() const override { return LOG_STR("serial_proxy_write_request"); }
3186#endif
3188 const uint8_t *data{nullptr};
3189 uint16_t data_len{0};
3190#ifdef HAS_PROTO_MESSAGE_DUMP
3191 const char *dump_to(DumpBuffer &out) const override;
3192#endif
3193
3194 protected:
3195 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3196 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3197};
3199 public:
3200 static constexpr uint8_t MESSAGE_TYPE = 141;
3201 static constexpr uint8_t ESTIMATED_SIZE = 8;
3202#ifdef HAS_PROTO_MESSAGE_DUMP
3203 const LogString *message_name() const override { return LOG_STR("serial_proxy_set_modem_pins_request"); }
3204#endif
3207#ifdef HAS_PROTO_MESSAGE_DUMP
3208 const char *dump_to(DumpBuffer &out) const override;
3209#endif
3210
3211 protected:
3212 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3213};
3215 public:
3216 static constexpr uint8_t MESSAGE_TYPE = 142;
3217 static constexpr uint8_t ESTIMATED_SIZE = 4;
3218#ifdef HAS_PROTO_MESSAGE_DUMP
3219 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_request"); }
3220#endif
3222#ifdef HAS_PROTO_MESSAGE_DUMP
3223 const char *dump_to(DumpBuffer &out) const override;
3224#endif
3225
3226 protected:
3227 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3228};
3230 public:
3231 static constexpr uint8_t MESSAGE_TYPE = 143;
3232 static constexpr uint8_t ESTIMATED_SIZE = 8;
3233#ifdef HAS_PROTO_MESSAGE_DUMP
3234 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_response"); }
3235#endif
3238 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3239 uint32_t calculate_size() const;
3240#ifdef HAS_PROTO_MESSAGE_DUMP
3241 const char *dump_to(DumpBuffer &out) const override;
3242#endif
3243
3244 protected:
3245};
3247 public:
3248 static constexpr uint8_t MESSAGE_TYPE = 144;
3249 static constexpr uint8_t ESTIMATED_SIZE = 6;
3250#ifdef HAS_PROTO_MESSAGE_DUMP
3251 const LogString *message_name() const override { return LOG_STR("serial_proxy_request"); }
3252#endif
3255#ifdef HAS_PROTO_MESSAGE_DUMP
3256 const char *dump_to(DumpBuffer &out) const override;
3257#endif
3258
3259 protected:
3260 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3261};
3263 public:
3264 static constexpr uint8_t MESSAGE_TYPE = 147;
3265 static constexpr uint8_t ESTIMATED_SIZE = 17;
3266#ifdef HAS_PROTO_MESSAGE_DUMP
3267 const LogString *message_name() const override { return LOG_STR("serial_proxy_request_response"); }
3268#endif
3273 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3274 uint32_t calculate_size() const;
3275#ifdef HAS_PROTO_MESSAGE_DUMP
3276 const char *dump_to(DumpBuffer &out) const override;
3277#endif
3278
3279 protected:
3280};
3281#endif
3282#ifdef USE_BLUETOOTH_PROXY
3284 public:
3285 static constexpr uint8_t MESSAGE_TYPE = 145;
3286 static constexpr uint8_t ESTIMATED_SIZE = 20;
3287#ifdef HAS_PROTO_MESSAGE_DUMP
3288 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_request"); }
3289#endif
3290 uint64_t address{0};
3295#ifdef HAS_PROTO_MESSAGE_DUMP
3296 const char *dump_to(DumpBuffer &out) const override;
3297#endif
3298
3299 protected:
3300 bool decode_varint(uint32_t field_id, proto_varint_value_t value) override;
3301};
3303 public:
3304 static constexpr uint8_t MESSAGE_TYPE = 146;
3305 static constexpr uint8_t ESTIMATED_SIZE = 8;
3306#ifdef HAS_PROTO_MESSAGE_DUMP
3307 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_response"); }
3308#endif
3309 uint64_t address{0};
3310 int32_t error{0};
3311 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const;
3312 uint32_t calculate_size() const;
3313#ifdef HAS_PROTO_MESSAGE_DUMP
3314 const char *dump_to(DumpBuffer &out) const override;
3315#endif
3316
3317 protected:
3318};
3319#endif
3320
3321} // namespace esphome::api
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
Definition helpers.h:529
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:3182
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:3156
const LogString * message_name() const override
Definition api_pb2.h:2633
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2635
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3171
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2631
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2615
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelState state
Definition api_pb2.h:2619
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2614
const LogString * message_name() const override
Definition api_pb2.h:2617
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3138
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.cpp:57
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:51
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:625
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:253
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:626
const LogString * message_name() const override
Definition api_pb2.h:628
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2193
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2189
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2657
const LogString * message_name() const override
Definition api_pb2.h:2295
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2745
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1946
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2402
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2257
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2256
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2717
const LogString * message_name() const override
Definition api_pb2.h:2259
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1925
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1931
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1926
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1928
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
const LogString * message_name() const override
Definition api_pb2.h:2277
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2731
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:1993
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1990
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2448
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2428
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1977
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2205
const LogString * message_name() const override
Definition api_pb2.h:2207
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2679
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2204
const LogString * message_name() const override
Definition api_pb2.h:2039
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2524
const LogString * message_name() const override
Definition api_pb2.h:1965
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1963
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:2418
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2506
const LogString * message_name() const override
Definition api_pb2.h:2022
std::vector< BluetoothGATTService > services
Definition api_pb2.h:2025
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2643
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2166
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2172
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2164
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2147
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2146
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:2627
const LogString * message_name() const override
Definition api_pb2.h:2149
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2239
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2240
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2242
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2705
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2114
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2589
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2052
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2055
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2534
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2053
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2068
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2077
const LogString * message_name() const override
Definition api_pb2.h:2071
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2547
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2069
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:2007
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2478
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2005
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2602
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2615
const LogString * message_name() const override
Definition api_pb2.h:2130
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2577
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2092
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2561
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2094
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2091
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2223
const LogString * message_name() const override
Definition api_pb2.h:2225
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2693
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2222
const char * dump_to(DumpBuffer &out) const override
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1913
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:1911
enums::BluetoothScannerMode mode
Definition api_pb2.h:2333
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2328
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2331
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2329
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2773
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2311
enums::BluetoothScannerMode mode
Definition api_pb2.h:2316
enums::BluetoothScannerState state
Definition api_pb2.h:2315
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2310
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2759
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2317
const LogString * message_name() const override
Definition api_pb2.h:2313
const LogString * message_name() const override
Definition api_pb2.h:3288
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:4123
const LogString * message_name() const override
Definition api_pb2.h:3307
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4145
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2173
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1786
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2185
const LogString * message_name() const override
Definition api_pb2.h:1789
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1787
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1384
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1364
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1363
const LogString * message_name() const override
Definition api_pb2.h:1366
const char * dump_to(DumpBuffer &out) const override
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1348
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1342
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1344
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1341
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1364
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1606
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1443
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1444
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1459
const LogString * message_name() const override
Definition api_pb2.h:1446
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1457
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1537
enums::ClimatePreset preset
Definition api_pb2.h:1463
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1591
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1426
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1427
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1415
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1495
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1425
const LogString * message_name() const override
Definition api_pb2.h:1418
enums::ClimatePreset preset
Definition api_pb2.h:1429
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1416
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:358
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:682
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:683
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:337
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:685
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:665
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:315
enums::CoverOperation current_operation
Definition api_pb2.h:671
const LogString * message_name() const override
Definition api_pb2.h:667
uint32_t calculate_size() const
Definition api_pb2.cpp:326
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:664
enums::DSTRuleType type
Definition api_pb2.h:1177
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1097
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3362
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2739
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2742
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3341
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2740
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3317
const LogString * message_name() const override
Definition api_pb2.h:2723
uint32_t calculate_size() const
Definition api_pb2.cpp:3329
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2720
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2721
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2937
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2936
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2939
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3662
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3674
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3642
const LogString * message_name() const override
Definition api_pb2.h:2922
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2919
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2920
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:65
uint32_t calculate_size() const
Definition api_pb2.cpp:72
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:527
const LogString * message_name() const override
Definition api_pb2.h:530
static constexpr uint16_t ESTIMATED_SIZE
Definition api_pb2.h:528
uint32_t calculate_size() const
Definition api_pb2.cpp:156
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:94
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:570
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:582
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:567
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:432
const LogString * message_name() const override
Definition api_pb2.h:435
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:433
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:445
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:446
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:448
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:543
uint32_t calculate_size() const
Definition api_pb2.cpp:3510
const LogString * message_name() const override
Definition api_pb2.h:2833
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2830
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3501
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2831
const char * dump_to(DumpBuffer &out) const override
FixedVector< float > float_array
Definition api_pb2.h:1261
FixedVector< std::string > string_array
Definition api_pb2.h:1262
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1207
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1256
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1229
FixedVector< int32_t > int_array
Definition api_pb2.h:1260
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1243
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1275
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1281
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1276
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1305
const LogString * message_name() const override
Definition api_pb2.h:1278
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1267
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1295
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1284
const LogString * message_name() const override
Definition api_pb2.h:1305
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1303
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1302
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1312
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:744
const LogString * message_name() const override
Definition api_pb2.h:747
const char * dump_to(DumpBuffer &out) const override
enums::FanDirection direction
Definition api_pb2.h:754
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:487
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:745
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:448
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:498
const LogString * message_name() const override
Definition api_pb2.h:727
enums::FanDirection direction
Definition api_pb2.h:731
uint32_t calculate_size() const
Definition api_pb2.cpp:435
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:725
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:724
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:422
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1162
const LogString * message_name() const override
Definition api_pb2.h:1165
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1163
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1162
ParsedTimezone parsed_timezone
Definition api_pb2.h:1211
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1148
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1205
const LogString * message_name() const override
Definition api_pb2.h:1207
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1204
const LogString * message_name() const override
Definition api_pb2.h:398
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:396
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:395
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:413
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:414
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:416
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1144
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1145
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1077
const LogString * message_name() const override
Definition api_pb2.h:1147
const LogString * message_name() const override
Definition api_pb2.h:1074
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1079
FixedVector< HomeassistantServiceMap > data
Definition api_pb2.h:1077
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:974
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1072
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1078
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1071
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1043
const LogString * message_name() const override
Definition api_pb2.h:1105
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1030
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1103
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1102
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:962
enums::EntityCategory entity_category
Definition api_pb2.h:363
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3098
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
const std::vector< int32_t > * timings
Definition api_pb2.h:3106
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3097
const LogString * message_name() const override
Definition api_pb2.h:3100
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3914
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3074
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3880
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3901
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:658
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:669
const LogString * message_name() const override
Definition api_pb2.h:821
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:818
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:598
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:819
const LogString * message_name() const override
Definition api_pb2.h:794
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:792
uint32_t calculate_size() const
Definition api_pb2.cpp:578
enums::ColorMode color_mode
Definition api_pb2.h:798
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:791
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:558
const LogString * message_name() const override
Definition api_pb2.h:2599
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3102
const LogString * message_name() const override
Definition api_pb2.h:611
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:219
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:609
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1771
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1770
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2141
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1773
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1326
const LogString * message_name() const override
Definition api_pb2.h:1329
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1327
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1334
const std::vector< const char * > * supported_custom_presets
Definition api_pb2.h:1397
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1394
enums::TemperatureUnit temperature_unit
Definition api_pb2.h:1404
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1382
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1395
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1381
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1396
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1399
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1393
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1388
const LogString * message_name() const override
Definition api_pb2.h:1384
const LogString * message_name() const override
Definition api_pb2.h:647
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:645
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:275
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:644
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2706
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3287
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2708
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2705
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3612
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2904
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2905
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2907
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:594
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:595
const LogString * message_name() const override
Definition api_pb2.h:597
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3461
const LogString * message_name() const override
Definition api_pb2.h:2816
const FixedVector< const char * > * event_types
Definition api_pb2.h:2819
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2814
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2813
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:376
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:713
const LogString * message_name() const override
Definition api_pb2.h:707
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:705
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:704
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3844
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3052
const LogString * message_name() const override
Definition api_pb2.h:3055
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3053
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:773
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * effects
Definition api_pb2.h:780
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:777
const LogString * message_name() const override
Definition api_pb2.h:775
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:772
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:510
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1714
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1717
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2044
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1715
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1819
const LogString * message_name() const override
Definition api_pb2.h:1821
const char * dump_to(DumpBuffer &out) const override
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1824
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2215
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1547
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1746
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1549
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1546
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:3122
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1602
const FixedVector< const char * > * options
Definition api_pb2.h:1607
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1603
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1835
const LogString * message_name() const override
Definition api_pb2.h:1605
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:708
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:863
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:862
const LogString * message_name() const override
Definition api_pb2.h:865
enums::SensorStateClass state_class
Definition api_pb2.h:871
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1173
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1185
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1238
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1235
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1236
enums::SupportsResponseType supports_response
Definition api_pb2.h:1243
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1242
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1928
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1654
const LogString * message_name() const override
Definition api_pb2.h:1657
const FixedVector< const char * > * tones
Definition api_pb2.h:1659
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1655
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:904
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:902
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:901
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2650
const LogString * message_name() const override
Definition api_pb2.h:2653
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3194
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2651
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:952
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:953
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:853
const LogString * message_name() const override
Definition api_pb2.h:955
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2760
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2762
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3374
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2759
const LogString * message_name() const override
Definition api_pb2.h:2957
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2954
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2955
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3689
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2848
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3521
const LogString * message_name() const override
Definition api_pb2.h:2851
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2849
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1630
const water_heater::WaterHeaterModeMask * supported_modes
Definition api_pb2.h:1489
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1482
const LogString * message_name() const override
Definition api_pb2.h:1484
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:2100
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1749
const LogString * message_name() const override
Definition api_pb2.h:1752
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2129
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1750
enums::LockCommand command
Definition api_pb2.h:1754
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2118
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1734
uint32_t calculate_size() const
Definition api_pb2.cpp:2091
const LogString * message_name() const override
Definition api_pb2.h:1736
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1733
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2082
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1855
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerCommand command
Definition api_pb2.h:1860
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2320
const LogString * message_name() const override
Definition api_pb2.h:1857
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2309
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2279
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1854
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1836
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2257
enums::MediaPlayerState state
Definition api_pb2.h:1841
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1839
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1837
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1806
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2197
const LogString * message_name() const override
Definition api_pb2.h:1028
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1025
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:1026
const LogString * message_name() const override
Definition api_pb2.h:1044
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:950
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1042
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1041
const LogString * message_name() const override
Definition api_pb2.h:1587
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1584
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1820
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1585
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1808
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1568
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1567
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1788
const LogString * message_name() const override
Definition api_pb2.h:1570
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1135
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1122
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:458
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:459
const LogString * message_name() const override
Definition api_pb2.h:461
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:474
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:471
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:472
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1905
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1636
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1893
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1635
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1916
const LogString * message_name() const override
Definition api_pb2.h:1638
const LogString * message_name() const override
Definition api_pb2.h:1621
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1873
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1619
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1618
const LogString * message_name() const override
Definition api_pb2.h:885
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:883
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:882
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3140
enums::SerialProxyParity parity
Definition api_pb2.h:3148
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3141
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:3143
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3160
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:3168
const LogString * message_name() const override
Definition api_pb2.h:3163
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3161
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3216
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4070
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3219
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3217
const LogString * message_name() const override
Definition api_pb2.h:3234
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3232
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4080
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.cpp:87
enums::SerialProxyPortType port_type
Definition api_pb2.h:515
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:81
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3251
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4092
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3248
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3249
enums::SerialProxyRequestType type
Definition api_pb2.h:3254
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3265
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3264
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:4105
const LogString * message_name() const override
Definition api_pb2.h:3267
enums::SerialProxyRequestType type
Definition api_pb2.h:3270
enums::SerialProxyStatus status
Definition api_pb2.h:3271
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3203
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:4057
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3200
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3201
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3182
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:4045
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3183
const LogString * message_name() const override
Definition api_pb2.h:3185
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:1988
const LogString * message_name() const override
Definition api_pb2.h:1691
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2018
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1689
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2029
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1688
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1675
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1673
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1970
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1672
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:2335
const LogString * message_name() const override
Definition api_pb2.h:1883
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1063
const LogString * message_name() const override
Definition api_pb2.h:1129
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:989
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:987
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:986
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:906
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1002
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1003
const LogString * message_name() const override
Definition api_pb2.h:1005
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:1010
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:2785
const LogString * message_name() const override
Definition api_pb2.h:2348
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2345
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2346
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:841
const LogString * message_name() const override
Definition api_pb2.h:937
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:934
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:935
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:921
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:919
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:918
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3264
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3252
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2687
const LogString * message_name() const override
Definition api_pb2.h:2689
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3275
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2686
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:968
const LogString * message_name() const override
Definition api_pb2.h:971
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:969
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:885
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2670
uint32_t calculate_size() const
Definition api_pb2.cpp:3242
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3232
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2669
const LogString * message_name() const override
Definition api_pb2.h:2672
const LogString * message_name() const override
Definition api_pb2.h:2796
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3449
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2793
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3428
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2794
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3404
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2774
const LogString * message_name() const override
Definition api_pb2.h:2777
uint32_t calculate_size() const
Definition api_pb2.cpp:3416
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2775
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2997
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2995
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3770
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3755
enums::UpdateCommand command
Definition api_pb2.h:2999
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2994
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2971
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2973
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3721
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2970
const LogString * message_name() const override
Definition api_pb2.h:2887
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2884
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:3579
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2885
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3597
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2868
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3559
enums::ValveOperation current_operation
Definition api_pb2.h:2873
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2867
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2870
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2501
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2500
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2983
const LogString * message_name() const override
Definition api_pb2.h:2503
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2964
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2482
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2954
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2484
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2481
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2879
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2889
const LogString * message_name() const override
Definition api_pb2.h:2441
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2439
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2438
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2906
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2798
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3053
const LogString * message_name() const override
Definition api_pb2.h:2549
const char * dump_to(DumpBuffer &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2551
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2566
const LogString * message_name() const override
Definition api_pb2.h:2564
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2567
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3064
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2843
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2868
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2422
const LogString * message_name() const override
Definition api_pb2.h:2424
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2421
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2426
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2858
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2427
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3023
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:3013
std::vector< std::string > trained_languages
Definition api_pb2.h:2531
const LogString * message_name() const override
Definition api_pb2.h:2377
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2812
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2374
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2382
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2375
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:2830
const LogString * message_name() const override
Definition api_pb2.h:2397
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2395
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2394
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2580
std::vector< std::string > active_wake_words
Definition api_pb2.h:2584
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2579
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3090
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2582
const LogString * message_name() const override
Definition api_pb2.h:2463
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2465
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2939
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:2920
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:2993
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2518
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
Definition api_pb2.cpp:1704
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1725
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1524
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1526
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1523
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1502
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1503
const LogString * message_name() const override
Definition api_pb2.h:1505
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:1676
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3013
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3782
const LogString * message_name() const override
Definition api_pb2.h:3015
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:3012
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3031
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3818
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3030
bool decode_varint(uint32_t field_id, proto_varint_value_t value) override
const LogString * message_name() const override
Definition api_pb2.h:3033
uint32_t calculate_size() const
Definition api_pb2.cpp:3836
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3035
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.cpp:3830
const char * dump_to(DumpBuffer &out) const override
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:199
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:289
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:83
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:86
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:85
@ SERIAL_PROXY_PORT_TYPE_RS232
Definition api_pb2.h:16
@ SERIAL_PROXY_PORT_TYPE_RS485
Definition api_pb2.h:17
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:254
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:253
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:153
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:154
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:340
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
Definition api_pb2.h:341
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:339
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:221
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:220
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:41
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:48
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:44
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:49
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:277
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:276
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:279
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:278
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:213
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:214
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:211
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:210
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:217
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:215
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:267
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:272
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:269
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:273
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:271
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:268
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
Definition api_pb2.h:345
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:348
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:229
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:230
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:226
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:228
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:231
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:232
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:227
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:243
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:244
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:240
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:236
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:239
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:237
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:238
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:73
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:74
@ TEMPERATURE_UNIT_FAHRENHEIT
Definition api_pb2.h:97
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:166
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:160
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:163
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:167
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:164
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:162
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:161
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:165
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:327
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:328
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:329
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:299
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:301
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:300
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:249
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:248
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:56
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:58
uint64_t proto_varint_value_t
Type used for decoded varint values - uint64_t when BLE needs 64-bit addresses, uint32_t otherwise.
Definition proto.h:118
std::string size_t len
static void uint32_t
uint16_t length
Definition tt21100.cpp:0