ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
api_pb2.h
Go to the documentation of this file.
1// This file was automatically generated with a tool.
2// See script/api_protobuf/api_protobuf.py
3#pragma once
4
6
7#include "proto.h"
8#include "api_pb2_includes.h"
9
10namespace esphome::api {
11
12namespace enums {
13
19#ifdef USE_COVER
25#endif
26#ifdef USE_FAN
31#endif
32#ifdef USE_LIGHT
46#endif
47#ifdef USE_SENSOR
55#endif
72#ifdef USE_API_USER_DEFINED_ACTIONS
89#endif
90#ifdef USE_CLIMATE
137#endif
138#ifdef USE_WATER_HEATER
148#endif
159#ifdef USE_NUMBER
165#endif
166#ifdef USE_LOCK
175enum LockCommand : uint32_t {
179};
180#endif
181#ifdef USE_MEDIA_PLAYER
211#endif
212#ifdef USE_BLUETOOTH_PROXY
234#endif
244#ifdef USE_VOICE_ASSISTANT
269#endif
270#ifdef USE_ALARM_CONTROL_PANEL
292#endif
293#ifdef USE_TEXT
294enum TextMode : uint32_t {
297};
298#endif
299#ifdef USE_VALVE
305#endif
306#ifdef USE_UPDATE
312#endif
313#ifdef USE_ZWAVE_PROXY
319#endif
320
321} // namespace enums
322
324 public:
326 uint32_t key{0};
329#ifdef USE_ENTITY_ICON
331#endif
333#ifdef USE_DEVICES
334 uint32_t device_id{0};
335#endif
336
337 protected:
339};
340
342 public:
343 uint32_t key{0};
344#ifdef USE_DEVICES
345 uint32_t device_id{0};
346#endif
347
348 protected:
350};
351
353 public:
354 uint32_t key{0};
355#ifdef USE_DEVICES
356 uint32_t device_id{0};
357#endif
358
359 protected:
361};
363 public:
364 static constexpr uint8_t MESSAGE_TYPE = 1;
365 static constexpr uint8_t ESTIMATED_SIZE = 17;
366#ifdef HAS_PROTO_MESSAGE_DUMP
367 const char *message_name() const override { return "hello_request"; }
368#endif
370 uint32_t api_version_major{0};
371 uint32_t api_version_minor{0};
372#ifdef HAS_PROTO_MESSAGE_DUMP
373 const char *dump_to(DumpBuffer &out) const override;
374#endif
375
376 protected:
377 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
378 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
379};
380class HelloResponse final : public ProtoMessage {
381 public:
382 static constexpr uint8_t MESSAGE_TYPE = 2;
383 static constexpr uint8_t ESTIMATED_SIZE = 26;
384#ifdef HAS_PROTO_MESSAGE_DUMP
385 const char *message_name() const override { return "hello_response"; }
386#endif
387 uint32_t api_version_major{0};
388 uint32_t api_version_minor{0};
391 void encode(ProtoWriteBuffer &buffer) const override;
392 void calculate_size(ProtoSize &size) const override;
393#ifdef HAS_PROTO_MESSAGE_DUMP
394 const char *dump_to(DumpBuffer &out) const override;
395#endif
396
397 protected:
398};
399class DisconnectRequest final : public ProtoMessage {
400 public:
401 static constexpr uint8_t MESSAGE_TYPE = 5;
402 static constexpr uint8_t ESTIMATED_SIZE = 0;
403#ifdef HAS_PROTO_MESSAGE_DUMP
404 const char *message_name() const override { return "disconnect_request"; }
405#endif
406#ifdef HAS_PROTO_MESSAGE_DUMP
407 const char *dump_to(DumpBuffer &out) const override;
408#endif
409
410 protected:
411};
412class DisconnectResponse final : public ProtoMessage {
413 public:
414 static constexpr uint8_t MESSAGE_TYPE = 6;
415 static constexpr uint8_t ESTIMATED_SIZE = 0;
416#ifdef HAS_PROTO_MESSAGE_DUMP
417 const char *message_name() const override { return "disconnect_response"; }
418#endif
419#ifdef HAS_PROTO_MESSAGE_DUMP
420 const char *dump_to(DumpBuffer &out) const override;
421#endif
422
423 protected:
424};
425class PingRequest final : public ProtoMessage {
426 public:
427 static constexpr uint8_t MESSAGE_TYPE = 7;
428 static constexpr uint8_t ESTIMATED_SIZE = 0;
429#ifdef HAS_PROTO_MESSAGE_DUMP
430 const char *message_name() const override { return "ping_request"; }
431#endif
432#ifdef HAS_PROTO_MESSAGE_DUMP
433 const char *dump_to(DumpBuffer &out) const override;
434#endif
435
436 protected:
437};
438class PingResponse final : public ProtoMessage {
439 public:
440 static constexpr uint8_t MESSAGE_TYPE = 8;
441 static constexpr uint8_t ESTIMATED_SIZE = 0;
442#ifdef HAS_PROTO_MESSAGE_DUMP
443 const char *message_name() const override { return "ping_response"; }
444#endif
445#ifdef HAS_PROTO_MESSAGE_DUMP
446 const char *dump_to(DumpBuffer &out) const override;
447#endif
448
449 protected:
450};
451#ifdef USE_AREAS
452class AreaInfo final : public ProtoMessage {
453 public:
454 uint32_t area_id{0};
456 void encode(ProtoWriteBuffer &buffer) const override;
457 void calculate_size(ProtoSize &size) const override;
458#ifdef HAS_PROTO_MESSAGE_DUMP
459 const char *dump_to(DumpBuffer &out) const override;
460#endif
461
462 protected:
463};
464#endif
465#ifdef USE_DEVICES
466class DeviceInfo final : public ProtoMessage {
467 public:
468 uint32_t device_id{0};
470 uint32_t area_id{0};
471 void encode(ProtoWriteBuffer &buffer) const override;
472 void calculate_size(ProtoSize &size) const override;
473#ifdef HAS_PROTO_MESSAGE_DUMP
474 const char *dump_to(DumpBuffer &out) const override;
475#endif
476
477 protected:
478};
479#endif
480class DeviceInfoResponse final : public ProtoMessage {
481 public:
482 static constexpr uint8_t MESSAGE_TYPE = 10;
483 static constexpr uint8_t ESTIMATED_SIZE = 255;
484#ifdef HAS_PROTO_MESSAGE_DUMP
485 const char *message_name() const override { return "device_info_response"; }
486#endif
492#ifdef USE_DEEP_SLEEP
493 bool has_deep_sleep{false};
494#endif
495#ifdef ESPHOME_PROJECT_NAME
497#endif
498#ifdef ESPHOME_PROJECT_NAME
500#endif
501#ifdef USE_WEBSERVER
502 uint32_t webserver_port{0};
503#endif
504#ifdef USE_BLUETOOTH_PROXY
506#endif
509#ifdef USE_VOICE_ASSISTANT
511#endif
512#ifdef USE_AREAS
514#endif
515#ifdef USE_BLUETOOTH_PROXY
517#endif
518#ifdef USE_API_NOISE
520#endif
521#ifdef USE_DEVICES
522 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
523#endif
524#ifdef USE_AREAS
525 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
526#endif
527#ifdef USE_AREAS
529#endif
530#ifdef USE_ZWAVE_PROXY
532#endif
533#ifdef USE_ZWAVE_PROXY
534 uint32_t zwave_home_id{0};
535#endif
536 void encode(ProtoWriteBuffer &buffer) const override;
537 void calculate_size(ProtoSize &size) const override;
538#ifdef HAS_PROTO_MESSAGE_DUMP
539 const char *dump_to(DumpBuffer &out) const override;
540#endif
541
542 protected:
543};
545 public:
546 static constexpr uint8_t MESSAGE_TYPE = 19;
547 static constexpr uint8_t ESTIMATED_SIZE = 0;
548#ifdef HAS_PROTO_MESSAGE_DUMP
549 const char *message_name() const override { return "list_entities_done_response"; }
550#endif
551#ifdef HAS_PROTO_MESSAGE_DUMP
552 const char *dump_to(DumpBuffer &out) const override;
553#endif
554
555 protected:
556};
557#ifdef USE_BINARY_SENSOR
559 public:
560 static constexpr uint8_t MESSAGE_TYPE = 12;
561 static constexpr uint8_t ESTIMATED_SIZE = 51;
562#ifdef HAS_PROTO_MESSAGE_DUMP
563 const char *message_name() const override { return "list_entities_binary_sensor_response"; }
564#endif
567 void encode(ProtoWriteBuffer &buffer) const override;
568 void calculate_size(ProtoSize &size) const override;
569#ifdef HAS_PROTO_MESSAGE_DUMP
570 const char *dump_to(DumpBuffer &out) const override;
571#endif
572
573 protected:
574};
576 public:
577 static constexpr uint8_t MESSAGE_TYPE = 21;
578 static constexpr uint8_t ESTIMATED_SIZE = 13;
579#ifdef HAS_PROTO_MESSAGE_DUMP
580 const char *message_name() const override { return "binary_sensor_state_response"; }
581#endif
582 bool state{false};
583 bool missing_state{false};
584 void encode(ProtoWriteBuffer &buffer) const override;
585 void calculate_size(ProtoSize &size) const override;
586#ifdef HAS_PROTO_MESSAGE_DUMP
587 const char *dump_to(DumpBuffer &out) const override;
588#endif
589
590 protected:
591};
592#endif
593#ifdef USE_COVER
595 public:
596 static constexpr uint8_t MESSAGE_TYPE = 13;
597 static constexpr uint8_t ESTIMATED_SIZE = 57;
598#ifdef HAS_PROTO_MESSAGE_DUMP
599 const char *message_name() const override { return "list_entities_cover_response"; }
600#endif
601 bool assumed_state{false};
602 bool supports_position{false};
603 bool supports_tilt{false};
605 bool supports_stop{false};
606 void encode(ProtoWriteBuffer &buffer) const override;
607 void calculate_size(ProtoSize &size) const override;
608#ifdef HAS_PROTO_MESSAGE_DUMP
609 const char *dump_to(DumpBuffer &out) const override;
610#endif
611
612 protected:
613};
615 public:
616 static constexpr uint8_t MESSAGE_TYPE = 22;
617 static constexpr uint8_t ESTIMATED_SIZE = 21;
618#ifdef HAS_PROTO_MESSAGE_DUMP
619 const char *message_name() const override { return "cover_state_response"; }
620#endif
621 float position{0.0f};
622 float tilt{0.0f};
624 void encode(ProtoWriteBuffer &buffer) const override;
625 void calculate_size(ProtoSize &size) const override;
626#ifdef HAS_PROTO_MESSAGE_DUMP
627 const char *dump_to(DumpBuffer &out) const override;
628#endif
629
630 protected:
631};
633 public:
634 static constexpr uint8_t MESSAGE_TYPE = 30;
635 static constexpr uint8_t ESTIMATED_SIZE = 25;
636#ifdef HAS_PROTO_MESSAGE_DUMP
637 const char *message_name() const override { return "cover_command_request"; }
638#endif
639 bool has_position{false};
640 float position{0.0f};
641 bool has_tilt{false};
642 float tilt{0.0f};
643 bool stop{false};
644#ifdef HAS_PROTO_MESSAGE_DUMP
645 const char *dump_to(DumpBuffer &out) const override;
646#endif
647
648 protected:
649 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
650 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
651};
652#endif
653#ifdef USE_FAN
655 public:
656 static constexpr uint8_t MESSAGE_TYPE = 14;
657 static constexpr uint8_t ESTIMATED_SIZE = 68;
658#ifdef HAS_PROTO_MESSAGE_DUMP
659 const char *message_name() const override { return "list_entities_fan_response"; }
660#endif
662 bool supports_speed{false};
665 const std::vector<const char *> *supported_preset_modes{};
666 void encode(ProtoWriteBuffer &buffer) const override;
667 void calculate_size(ProtoSize &size) const override;
668#ifdef HAS_PROTO_MESSAGE_DUMP
669 const char *dump_to(DumpBuffer &out) const override;
670#endif
671
672 protected:
673};
675 public:
676 static constexpr uint8_t MESSAGE_TYPE = 23;
677 static constexpr uint8_t ESTIMATED_SIZE = 28;
678#ifdef HAS_PROTO_MESSAGE_DUMP
679 const char *message_name() const override { return "fan_state_response"; }
680#endif
681 bool state{false};
682 bool oscillating{false};
684 int32_t speed_level{0};
686 void encode(ProtoWriteBuffer &buffer) const override;
687 void calculate_size(ProtoSize &size) const override;
688#ifdef HAS_PROTO_MESSAGE_DUMP
689 const char *dump_to(DumpBuffer &out) const override;
690#endif
691
692 protected:
693};
695 public:
696 static constexpr uint8_t MESSAGE_TYPE = 31;
697 static constexpr uint8_t ESTIMATED_SIZE = 38;
698#ifdef HAS_PROTO_MESSAGE_DUMP
699 const char *message_name() const override { return "fan_command_request"; }
700#endif
701 bool has_state{false};
702 bool state{false};
703 bool has_oscillating{false};
704 bool oscillating{false};
705 bool has_direction{false};
707 bool has_speed_level{false};
708 int32_t speed_level{0};
709 bool has_preset_mode{false};
711#ifdef HAS_PROTO_MESSAGE_DUMP
712 const char *dump_to(DumpBuffer &out) const override;
713#endif
714
715 protected:
716 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
717 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
718 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
719};
720#endif
721#ifdef USE_LIGHT
723 public:
724 static constexpr uint8_t MESSAGE_TYPE = 15;
725 static constexpr uint8_t ESTIMATED_SIZE = 73;
726#ifdef HAS_PROTO_MESSAGE_DUMP
727 const char *message_name() const override { return "list_entities_light_response"; }
728#endif
730 float min_mireds{0.0f};
731 float max_mireds{0.0f};
733 void encode(ProtoWriteBuffer &buffer) const override;
734 void calculate_size(ProtoSize &size) const override;
735#ifdef HAS_PROTO_MESSAGE_DUMP
736 const char *dump_to(DumpBuffer &out) const override;
737#endif
738
739 protected:
740};
742 public:
743 static constexpr uint8_t MESSAGE_TYPE = 24;
744 static constexpr uint8_t ESTIMATED_SIZE = 67;
745#ifdef HAS_PROTO_MESSAGE_DUMP
746 const char *message_name() const override { return "light_state_response"; }
747#endif
748 bool state{false};
749 float brightness{0.0f};
751 float color_brightness{0.0f};
752 float red{0.0f};
753 float green{0.0f};
754 float blue{0.0f};
755 float white{0.0f};
756 float color_temperature{0.0f};
757 float cold_white{0.0f};
758 float warm_white{0.0f};
760 void encode(ProtoWriteBuffer &buffer) const override;
761 void calculate_size(ProtoSize &size) const override;
762#ifdef HAS_PROTO_MESSAGE_DUMP
763 const char *dump_to(DumpBuffer &out) const override;
764#endif
765
766 protected:
767};
769 public:
770 static constexpr uint8_t MESSAGE_TYPE = 32;
771 static constexpr uint8_t ESTIMATED_SIZE = 112;
772#ifdef HAS_PROTO_MESSAGE_DUMP
773 const char *message_name() const override { return "light_command_request"; }
774#endif
775 bool has_state{false};
776 bool state{false};
777 bool has_brightness{false};
778 float brightness{0.0f};
779 bool has_color_mode{false};
782 float color_brightness{0.0f};
783 bool has_rgb{false};
784 float red{0.0f};
785 float green{0.0f};
786 float blue{0.0f};
787 bool has_white{false};
788 float white{0.0f};
790 float color_temperature{0.0f};
791 bool has_cold_white{false};
792 float cold_white{0.0f};
793 bool has_warm_white{false};
794 float warm_white{0.0f};
796 uint32_t transition_length{0};
797 bool has_flash_length{false};
798 uint32_t flash_length{0};
799 bool has_effect{false};
801#ifdef HAS_PROTO_MESSAGE_DUMP
802 const char *dump_to(DumpBuffer &out) const override;
803#endif
804
805 protected:
806 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
807 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
808 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
809};
810#endif
811#ifdef USE_SENSOR
813 public:
814 static constexpr uint8_t MESSAGE_TYPE = 16;
815 static constexpr uint8_t ESTIMATED_SIZE = 66;
816#ifdef HAS_PROTO_MESSAGE_DUMP
817 const char *message_name() const override { return "list_entities_sensor_response"; }
818#endif
821 bool force_update{false};
824 void encode(ProtoWriteBuffer &buffer) const override;
825 void calculate_size(ProtoSize &size) const override;
826#ifdef HAS_PROTO_MESSAGE_DUMP
827 const char *dump_to(DumpBuffer &out) const override;
828#endif
829
830 protected:
831};
833 public:
834 static constexpr uint8_t MESSAGE_TYPE = 25;
835 static constexpr uint8_t ESTIMATED_SIZE = 16;
836#ifdef HAS_PROTO_MESSAGE_DUMP
837 const char *message_name() const override { return "sensor_state_response"; }
838#endif
839 float state{0.0f};
840 bool missing_state{false};
841 void encode(ProtoWriteBuffer &buffer) const override;
842 void calculate_size(ProtoSize &size) const override;
843#ifdef HAS_PROTO_MESSAGE_DUMP
844 const char *dump_to(DumpBuffer &out) const override;
845#endif
846
847 protected:
848};
849#endif
850#ifdef USE_SWITCH
852 public:
853 static constexpr uint8_t MESSAGE_TYPE = 17;
854 static constexpr uint8_t ESTIMATED_SIZE = 51;
855#ifdef HAS_PROTO_MESSAGE_DUMP
856 const char *message_name() const override { return "list_entities_switch_response"; }
857#endif
858 bool assumed_state{false};
860 void encode(ProtoWriteBuffer &buffer) const override;
861 void calculate_size(ProtoSize &size) const override;
862#ifdef HAS_PROTO_MESSAGE_DUMP
863 const char *dump_to(DumpBuffer &out) const override;
864#endif
865
866 protected:
867};
869 public:
870 static constexpr uint8_t MESSAGE_TYPE = 26;
871 static constexpr uint8_t ESTIMATED_SIZE = 11;
872#ifdef HAS_PROTO_MESSAGE_DUMP
873 const char *message_name() const override { return "switch_state_response"; }
874#endif
875 bool state{false};
876 void encode(ProtoWriteBuffer &buffer) const override;
877 void calculate_size(ProtoSize &size) const override;
878#ifdef HAS_PROTO_MESSAGE_DUMP
879 const char *dump_to(DumpBuffer &out) const override;
880#endif
881
882 protected:
883};
885 public:
886 static constexpr uint8_t MESSAGE_TYPE = 33;
887 static constexpr uint8_t ESTIMATED_SIZE = 11;
888#ifdef HAS_PROTO_MESSAGE_DUMP
889 const char *message_name() const override { return "switch_command_request"; }
890#endif
891 bool state{false};
892#ifdef HAS_PROTO_MESSAGE_DUMP
893 const char *dump_to(DumpBuffer &out) const override;
894#endif
895
896 protected:
897 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
898 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
899};
900#endif
901#ifdef USE_TEXT_SENSOR
903 public:
904 static constexpr uint8_t MESSAGE_TYPE = 18;
905 static constexpr uint8_t ESTIMATED_SIZE = 49;
906#ifdef HAS_PROTO_MESSAGE_DUMP
907 const char *message_name() const override { return "list_entities_text_sensor_response"; }
908#endif
910 void encode(ProtoWriteBuffer &buffer) const override;
911 void calculate_size(ProtoSize &size) const override;
912#ifdef HAS_PROTO_MESSAGE_DUMP
913 const char *dump_to(DumpBuffer &out) const override;
914#endif
915
916 protected:
917};
919 public:
920 static constexpr uint8_t MESSAGE_TYPE = 27;
921 static constexpr uint8_t ESTIMATED_SIZE = 20;
922#ifdef HAS_PROTO_MESSAGE_DUMP
923 const char *message_name() const override { return "text_sensor_state_response"; }
924#endif
926 bool missing_state{false};
927 void encode(ProtoWriteBuffer &buffer) const override;
928 void calculate_size(ProtoSize &size) const override;
929#ifdef HAS_PROTO_MESSAGE_DUMP
930 const char *dump_to(DumpBuffer &out) const override;
931#endif
932
933 protected:
934};
935#endif
937 public:
938 static constexpr uint8_t MESSAGE_TYPE = 28;
939 static constexpr uint8_t ESTIMATED_SIZE = 4;
940#ifdef HAS_PROTO_MESSAGE_DUMP
941 const char *message_name() const override { return "subscribe_logs_request"; }
942#endif
944 bool dump_config{false};
945#ifdef HAS_PROTO_MESSAGE_DUMP
946 const char *dump_to(DumpBuffer &out) const override;
947#endif
948
949 protected:
950 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
951};
953 public:
954 static constexpr uint8_t MESSAGE_TYPE = 29;
955 static constexpr uint8_t ESTIMATED_SIZE = 21;
956#ifdef HAS_PROTO_MESSAGE_DUMP
957 const char *message_name() const override { return "subscribe_logs_response"; }
958#endif
960 const uint8_t *message_ptr_{nullptr};
961 size_t message_len_{0};
962 void set_message(const uint8_t *data, size_t len) {
963 this->message_ptr_ = data;
964 this->message_len_ = len;
965 }
966 void encode(ProtoWriteBuffer &buffer) const override;
967 void calculate_size(ProtoSize &size) const override;
968#ifdef HAS_PROTO_MESSAGE_DUMP
969 const char *dump_to(DumpBuffer &out) const override;
970#endif
971
972 protected:
973};
974#ifdef USE_API_NOISE
976 public:
977 static constexpr uint8_t MESSAGE_TYPE = 124;
978 static constexpr uint8_t ESTIMATED_SIZE = 19;
979#ifdef HAS_PROTO_MESSAGE_DUMP
980 const char *message_name() const override { return "noise_encryption_set_key_request"; }
981#endif
982 const uint8_t *key{nullptr};
983 uint16_t key_len{0};
984#ifdef HAS_PROTO_MESSAGE_DUMP
985 const char *dump_to(DumpBuffer &out) const override;
986#endif
987
988 protected:
989 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
990};
992 public:
993 static constexpr uint8_t MESSAGE_TYPE = 125;
994 static constexpr uint8_t ESTIMATED_SIZE = 2;
995#ifdef HAS_PROTO_MESSAGE_DUMP
996 const char *message_name() const override { return "noise_encryption_set_key_response"; }
997#endif
998 bool success{false};
999 void encode(ProtoWriteBuffer &buffer) const override;
1000 void calculate_size(ProtoSize &size) const override;
1001#ifdef HAS_PROTO_MESSAGE_DUMP
1002 const char *dump_to(DumpBuffer &out) const override;
1003#endif
1004
1005 protected:
1006};
1007#endif
1008#ifdef USE_API_HOMEASSISTANT_SERVICES
1010 public:
1013 void encode(ProtoWriteBuffer &buffer) const override;
1014 void calculate_size(ProtoSize &size) const override;
1015#ifdef HAS_PROTO_MESSAGE_DUMP
1016 const char *dump_to(DumpBuffer &out) const override;
1017#endif
1018
1019 protected:
1020};
1022 public:
1023 static constexpr uint8_t MESSAGE_TYPE = 35;
1024 static constexpr uint8_t ESTIMATED_SIZE = 128;
1025#ifdef HAS_PROTO_MESSAGE_DUMP
1026 const char *message_name() const override { return "homeassistant_action_request"; }
1027#endif
1032 bool is_event{false};
1033#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1034 uint32_t call_id{0};
1035#endif
1036#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1037 bool wants_response{false};
1038#endif
1039#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1041#endif
1042 void encode(ProtoWriteBuffer &buffer) const override;
1043 void calculate_size(ProtoSize &size) const override;
1044#ifdef HAS_PROTO_MESSAGE_DUMP
1045 const char *dump_to(DumpBuffer &out) const override;
1046#endif
1047
1048 protected:
1049};
1050#endif
1051#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1053 public:
1054 static constexpr uint8_t MESSAGE_TYPE = 130;
1055 static constexpr uint8_t ESTIMATED_SIZE = 34;
1056#ifdef HAS_PROTO_MESSAGE_DUMP
1057 const char *message_name() const override { return "homeassistant_action_response"; }
1058#endif
1059 uint32_t call_id{0};
1060 bool success{false};
1062#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1063 const uint8_t *response_data{nullptr};
1065#endif
1066#ifdef HAS_PROTO_MESSAGE_DUMP
1067 const char *dump_to(DumpBuffer &out) const override;
1068#endif
1069
1070 protected:
1071 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1072 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1073};
1074#endif
1075#ifdef USE_API_HOMEASSISTANT_STATES
1077 public:
1078 static constexpr uint8_t MESSAGE_TYPE = 39;
1079 static constexpr uint8_t ESTIMATED_SIZE = 20;
1080#ifdef HAS_PROTO_MESSAGE_DUMP
1081 const char *message_name() const override { return "subscribe_home_assistant_state_response"; }
1082#endif
1085 bool once{false};
1086 void encode(ProtoWriteBuffer &buffer) const override;
1087 void calculate_size(ProtoSize &size) const override;
1088#ifdef HAS_PROTO_MESSAGE_DUMP
1089 const char *dump_to(DumpBuffer &out) const override;
1090#endif
1091
1092 protected:
1093};
1095 public:
1096 static constexpr uint8_t MESSAGE_TYPE = 40;
1097 static constexpr uint8_t ESTIMATED_SIZE = 27;
1098#ifdef HAS_PROTO_MESSAGE_DUMP
1099 const char *message_name() const override { return "home_assistant_state_response"; }
1100#endif
1104#ifdef HAS_PROTO_MESSAGE_DUMP
1105 const char *dump_to(DumpBuffer &out) const override;
1106#endif
1107
1108 protected:
1109 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1110};
1111#endif
1112class GetTimeRequest final : public ProtoMessage {
1113 public:
1114 static constexpr uint8_t MESSAGE_TYPE = 36;
1115 static constexpr uint8_t ESTIMATED_SIZE = 0;
1116#ifdef HAS_PROTO_MESSAGE_DUMP
1117 const char *message_name() const override { return "get_time_request"; }
1118#endif
1119#ifdef HAS_PROTO_MESSAGE_DUMP
1120 const char *dump_to(DumpBuffer &out) const override;
1121#endif
1122
1123 protected:
1124};
1125class DSTRule final : public ProtoDecodableMessage {
1126 public:
1127 int32_t time_seconds{0};
1128 uint32_t day{0};
1130 uint32_t month{0};
1131 uint32_t week{0};
1132 uint32_t day_of_week{0};
1133#ifdef HAS_PROTO_MESSAGE_DUMP
1134 const char *dump_to(DumpBuffer &out) const override;
1135#endif
1136
1137 protected:
1138 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1139};
1141 public:
1146#ifdef HAS_PROTO_MESSAGE_DUMP
1147 const char *dump_to(DumpBuffer &out) const override;
1148#endif
1149
1150 protected:
1151 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1152 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1153};
1155 public:
1156 static constexpr uint8_t MESSAGE_TYPE = 37;
1157 static constexpr uint8_t ESTIMATED_SIZE = 31;
1158#ifdef HAS_PROTO_MESSAGE_DUMP
1159 const char *message_name() const override { return "get_time_response"; }
1160#endif
1161 uint32_t epoch_seconds{0};
1164#ifdef HAS_PROTO_MESSAGE_DUMP
1165 const char *dump_to(DumpBuffer &out) const override;
1166#endif
1167
1168 protected:
1169 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1170 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1171};
1172#ifdef USE_API_USER_DEFINED_ACTIONS
1174 public:
1177 void encode(ProtoWriteBuffer &buffer) const override;
1178 void calculate_size(ProtoSize &size) const override;
1179#ifdef HAS_PROTO_MESSAGE_DUMP
1180 const char *dump_to(DumpBuffer &out) const override;
1181#endif
1182
1183 protected:
1184};
1186 public:
1187 static constexpr uint8_t MESSAGE_TYPE = 41;
1188 static constexpr uint8_t ESTIMATED_SIZE = 50;
1189#ifdef HAS_PROTO_MESSAGE_DUMP
1190 const char *message_name() const override { return "list_entities_services_response"; }
1191#endif
1193 uint32_t key{0};
1196 void encode(ProtoWriteBuffer &buffer) const override;
1197 void calculate_size(ProtoSize &size) const override;
1198#ifdef HAS_PROTO_MESSAGE_DUMP
1199 const char *dump_to(DumpBuffer &out) const override;
1200#endif
1201
1202 protected:
1203};
1205 public:
1206 bool bool_{false};
1207 int32_t legacy_int{0};
1208 float float_{0.0f};
1210 int32_t int_{0};
1215 void decode(const uint8_t *buffer, size_t length) override;
1216#ifdef HAS_PROTO_MESSAGE_DUMP
1217 const char *dump_to(DumpBuffer &out) const override;
1218#endif
1219
1220 protected:
1221 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1222 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1223 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1224};
1226 public:
1227 static constexpr uint8_t MESSAGE_TYPE = 42;
1228 static constexpr uint8_t ESTIMATED_SIZE = 45;
1229#ifdef HAS_PROTO_MESSAGE_DUMP
1230 const char *message_name() const override { return "execute_service_request"; }
1231#endif
1232 uint32_t key{0};
1234#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1235 uint32_t call_id{0};
1236#endif
1237#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1238 bool return_response{false};
1239#endif
1240 void decode(const uint8_t *buffer, size_t length) override;
1241#ifdef HAS_PROTO_MESSAGE_DUMP
1242 const char *dump_to(DumpBuffer &out) const override;
1243#endif
1244
1245 protected:
1246 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1247 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1248 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1249};
1250#endif
1251#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1253 public:
1254 static constexpr uint8_t MESSAGE_TYPE = 131;
1255 static constexpr uint8_t ESTIMATED_SIZE = 34;
1256#ifdef HAS_PROTO_MESSAGE_DUMP
1257 const char *message_name() const override { return "execute_service_response"; }
1258#endif
1259 uint32_t call_id{0};
1260 bool success{false};
1262#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1263 const uint8_t *response_data{nullptr};
1265#endif
1266 void encode(ProtoWriteBuffer &buffer) const override;
1267 void calculate_size(ProtoSize &size) const override;
1268#ifdef HAS_PROTO_MESSAGE_DUMP
1269 const char *dump_to(DumpBuffer &out) const override;
1270#endif
1271
1272 protected:
1273};
1274#endif
1275#ifdef USE_CAMERA
1277 public:
1278 static constexpr uint8_t MESSAGE_TYPE = 43;
1279 static constexpr uint8_t ESTIMATED_SIZE = 40;
1280#ifdef HAS_PROTO_MESSAGE_DUMP
1281 const char *message_name() const override { return "list_entities_camera_response"; }
1282#endif
1283 void encode(ProtoWriteBuffer &buffer) const override;
1284 void calculate_size(ProtoSize &size) const override;
1285#ifdef HAS_PROTO_MESSAGE_DUMP
1286 const char *dump_to(DumpBuffer &out) const override;
1287#endif
1288
1289 protected:
1290};
1292 public:
1293 static constexpr uint8_t MESSAGE_TYPE = 44;
1294 static constexpr uint8_t ESTIMATED_SIZE = 30;
1295#ifdef HAS_PROTO_MESSAGE_DUMP
1296 const char *message_name() const override { return "camera_image_response"; }
1297#endif
1298 const uint8_t *data_ptr_{nullptr};
1299 size_t data_len_{0};
1300 void set_data(const uint8_t *data, size_t len) {
1301 this->data_ptr_ = data;
1302 this->data_len_ = len;
1303 }
1304 bool done{false};
1305 void encode(ProtoWriteBuffer &buffer) const override;
1306 void calculate_size(ProtoSize &size) const override;
1307#ifdef HAS_PROTO_MESSAGE_DUMP
1308 const char *dump_to(DumpBuffer &out) const override;
1309#endif
1310
1311 protected:
1312};
1314 public:
1315 static constexpr uint8_t MESSAGE_TYPE = 45;
1316 static constexpr uint8_t ESTIMATED_SIZE = 4;
1317#ifdef HAS_PROTO_MESSAGE_DUMP
1318 const char *message_name() const override { return "camera_image_request"; }
1319#endif
1320 bool single{false};
1321 bool stream{false};
1322#ifdef HAS_PROTO_MESSAGE_DUMP
1323 const char *dump_to(DumpBuffer &out) const override;
1324#endif
1325
1326 protected:
1327 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1328};
1329#endif
1330#ifdef USE_CLIMATE
1332 public:
1333 static constexpr uint8_t MESSAGE_TYPE = 46;
1334 static constexpr uint8_t ESTIMATED_SIZE = 150;
1335#ifdef HAS_PROTO_MESSAGE_DUMP
1336 const char *message_name() const override { return "list_entities_climate_response"; }
1337#endif
1344 bool supports_action{false};
1347 const std::vector<const char *> *supported_custom_fan_modes{};
1349 const std::vector<const char *> *supported_custom_presets{};
1355 uint32_t feature_flags{0};
1356 void encode(ProtoWriteBuffer &buffer) const override;
1357 void calculate_size(ProtoSize &size) const override;
1358#ifdef HAS_PROTO_MESSAGE_DUMP
1359 const char *dump_to(DumpBuffer &out) const override;
1360#endif
1361
1362 protected:
1363};
1365 public:
1366 static constexpr uint8_t MESSAGE_TYPE = 47;
1367 static constexpr uint8_t ESTIMATED_SIZE = 68;
1368#ifdef HAS_PROTO_MESSAGE_DUMP
1369 const char *message_name() const override { return "climate_state_response"; }
1370#endif
1382 float current_humidity{0.0f};
1383 float target_humidity{0.0f};
1384 void encode(ProtoWriteBuffer &buffer) const override;
1385 void calculate_size(ProtoSize &size) const override;
1386#ifdef HAS_PROTO_MESSAGE_DUMP
1387 const char *dump_to(DumpBuffer &out) const override;
1388#endif
1389
1390 protected:
1391};
1393 public:
1394 static constexpr uint8_t MESSAGE_TYPE = 48;
1395 static constexpr uint8_t ESTIMATED_SIZE = 84;
1396#ifdef HAS_PROTO_MESSAGE_DUMP
1397 const char *message_name() const override { return "climate_command_request"; }
1398#endif
1399 bool has_mode{false};
1407 bool has_fan_mode{false};
1409 bool has_swing_mode{false};
1413 bool has_preset{false};
1418 float target_humidity{0.0f};
1419#ifdef HAS_PROTO_MESSAGE_DUMP
1420 const char *dump_to(DumpBuffer &out) const override;
1421#endif
1422
1423 protected:
1424 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1425 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1426 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1427};
1428#endif
1429#ifdef USE_WATER_HEATER
1431 public:
1432 static constexpr uint8_t MESSAGE_TYPE = 132;
1433 static constexpr uint8_t ESTIMATED_SIZE = 63;
1434#ifdef HAS_PROTO_MESSAGE_DUMP
1435 const char *message_name() const override { return "list_entities_water_heater_response"; }
1436#endif
1437 float min_temperature{0.0f};
1438 float max_temperature{0.0f};
1442 void encode(ProtoWriteBuffer &buffer) const override;
1443 void calculate_size(ProtoSize &size) const override;
1444#ifdef HAS_PROTO_MESSAGE_DUMP
1445 const char *dump_to(DumpBuffer &out) const override;
1446#endif
1447
1448 protected:
1449};
1451 public:
1452 static constexpr uint8_t MESSAGE_TYPE = 133;
1453 static constexpr uint8_t ESTIMATED_SIZE = 35;
1454#ifdef HAS_PROTO_MESSAGE_DUMP
1455 const char *message_name() const override { return "water_heater_state_response"; }
1456#endif
1460 uint32_t state{0};
1463 void encode(ProtoWriteBuffer &buffer) const override;
1464 void calculate_size(ProtoSize &size) const override;
1465#ifdef HAS_PROTO_MESSAGE_DUMP
1466 const char *dump_to(DumpBuffer &out) const override;
1467#endif
1468
1469 protected:
1470};
1472 public:
1473 static constexpr uint8_t MESSAGE_TYPE = 134;
1474 static constexpr uint8_t ESTIMATED_SIZE = 34;
1475#ifdef HAS_PROTO_MESSAGE_DUMP
1476 const char *message_name() const override { return "water_heater_command_request"; }
1477#endif
1478 uint32_t has_fields{0};
1481 uint32_t state{0};
1484#ifdef HAS_PROTO_MESSAGE_DUMP
1485 const char *dump_to(DumpBuffer &out) const override;
1486#endif
1487
1488 protected:
1489 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1490 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1491};
1492#endif
1493#ifdef USE_NUMBER
1495 public:
1496 static constexpr uint8_t MESSAGE_TYPE = 49;
1497 static constexpr uint8_t ESTIMATED_SIZE = 75;
1498#ifdef HAS_PROTO_MESSAGE_DUMP
1499 const char *message_name() const override { return "list_entities_number_response"; }
1500#endif
1501 float min_value{0.0f};
1502 float max_value{0.0f};
1503 float step{0.0f};
1507 void encode(ProtoWriteBuffer &buffer) const override;
1508 void calculate_size(ProtoSize &size) const override;
1509#ifdef HAS_PROTO_MESSAGE_DUMP
1510 const char *dump_to(DumpBuffer &out) const override;
1511#endif
1512
1513 protected:
1514};
1516 public:
1517 static constexpr uint8_t MESSAGE_TYPE = 50;
1518 static constexpr uint8_t ESTIMATED_SIZE = 16;
1519#ifdef HAS_PROTO_MESSAGE_DUMP
1520 const char *message_name() const override { return "number_state_response"; }
1521#endif
1522 float state{0.0f};
1523 bool missing_state{false};
1524 void encode(ProtoWriteBuffer &buffer) const override;
1525 void calculate_size(ProtoSize &size) const override;
1526#ifdef HAS_PROTO_MESSAGE_DUMP
1527 const char *dump_to(DumpBuffer &out) const override;
1528#endif
1529
1530 protected:
1531};
1533 public:
1534 static constexpr uint8_t MESSAGE_TYPE = 51;
1535 static constexpr uint8_t ESTIMATED_SIZE = 14;
1536#ifdef HAS_PROTO_MESSAGE_DUMP
1537 const char *message_name() const override { return "number_command_request"; }
1538#endif
1539 float state{0.0f};
1540#ifdef HAS_PROTO_MESSAGE_DUMP
1541 const char *dump_to(DumpBuffer &out) const override;
1542#endif
1543
1544 protected:
1545 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1546 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1547};
1548#endif
1549#ifdef USE_SELECT
1551 public:
1552 static constexpr uint8_t MESSAGE_TYPE = 52;
1553 static constexpr uint8_t ESTIMATED_SIZE = 58;
1554#ifdef HAS_PROTO_MESSAGE_DUMP
1555 const char *message_name() const override { return "list_entities_select_response"; }
1556#endif
1558 void encode(ProtoWriteBuffer &buffer) const override;
1559 void calculate_size(ProtoSize &size) const override;
1560#ifdef HAS_PROTO_MESSAGE_DUMP
1561 const char *dump_to(DumpBuffer &out) const override;
1562#endif
1563
1564 protected:
1565};
1567 public:
1568 static constexpr uint8_t MESSAGE_TYPE = 53;
1569 static constexpr uint8_t ESTIMATED_SIZE = 20;
1570#ifdef HAS_PROTO_MESSAGE_DUMP
1571 const char *message_name() const override { return "select_state_response"; }
1572#endif
1574 bool missing_state{false};
1575 void encode(ProtoWriteBuffer &buffer) const override;
1576 void calculate_size(ProtoSize &size) const override;
1577#ifdef HAS_PROTO_MESSAGE_DUMP
1578 const char *dump_to(DumpBuffer &out) const override;
1579#endif
1580
1581 protected:
1582};
1584 public:
1585 static constexpr uint8_t MESSAGE_TYPE = 54;
1586 static constexpr uint8_t ESTIMATED_SIZE = 18;
1587#ifdef HAS_PROTO_MESSAGE_DUMP
1588 const char *message_name() const override { return "select_command_request"; }
1589#endif
1591#ifdef HAS_PROTO_MESSAGE_DUMP
1592 const char *dump_to(DumpBuffer &out) const override;
1593#endif
1594
1595 protected:
1596 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1597 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1598 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1599};
1600#endif
1601#ifdef USE_SIREN
1603 public:
1604 static constexpr uint8_t MESSAGE_TYPE = 55;
1605 static constexpr uint8_t ESTIMATED_SIZE = 62;
1606#ifdef HAS_PROTO_MESSAGE_DUMP
1607 const char *message_name() const override { return "list_entities_siren_response"; }
1608#endif
1611 bool supports_volume{false};
1612 void encode(ProtoWriteBuffer &buffer) const override;
1613 void calculate_size(ProtoSize &size) const override;
1614#ifdef HAS_PROTO_MESSAGE_DUMP
1615 const char *dump_to(DumpBuffer &out) const override;
1616#endif
1617
1618 protected:
1619};
1621 public:
1622 static constexpr uint8_t MESSAGE_TYPE = 56;
1623 static constexpr uint8_t ESTIMATED_SIZE = 11;
1624#ifdef HAS_PROTO_MESSAGE_DUMP
1625 const char *message_name() const override { return "siren_state_response"; }
1626#endif
1627 bool state{false};
1628 void encode(ProtoWriteBuffer &buffer) const override;
1629 void calculate_size(ProtoSize &size) const override;
1630#ifdef HAS_PROTO_MESSAGE_DUMP
1631 const char *dump_to(DumpBuffer &out) const override;
1632#endif
1633
1634 protected:
1635};
1637 public:
1638 static constexpr uint8_t MESSAGE_TYPE = 57;
1639 static constexpr uint8_t ESTIMATED_SIZE = 37;
1640#ifdef HAS_PROTO_MESSAGE_DUMP
1641 const char *message_name() const override { return "siren_command_request"; }
1642#endif
1643 bool has_state{false};
1644 bool state{false};
1645 bool has_tone{false};
1647 bool has_duration{false};
1648 uint32_t duration{0};
1649 bool has_volume{false};
1650 float volume{0.0f};
1651#ifdef HAS_PROTO_MESSAGE_DUMP
1652 const char *dump_to(DumpBuffer &out) const override;
1653#endif
1654
1655 protected:
1656 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1657 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1658 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1659};
1660#endif
1661#ifdef USE_LOCK
1663 public:
1664 static constexpr uint8_t MESSAGE_TYPE = 58;
1665 static constexpr uint8_t ESTIMATED_SIZE = 55;
1666#ifdef HAS_PROTO_MESSAGE_DUMP
1667 const char *message_name() const override { return "list_entities_lock_response"; }
1668#endif
1669 bool assumed_state{false};
1670 bool supports_open{false};
1671 bool requires_code{false};
1673 void encode(ProtoWriteBuffer &buffer) const override;
1674 void calculate_size(ProtoSize &size) const override;
1675#ifdef HAS_PROTO_MESSAGE_DUMP
1676 const char *dump_to(DumpBuffer &out) const override;
1677#endif
1678
1679 protected:
1680};
1682 public:
1683 static constexpr uint8_t MESSAGE_TYPE = 59;
1684 static constexpr uint8_t ESTIMATED_SIZE = 11;
1685#ifdef HAS_PROTO_MESSAGE_DUMP
1686 const char *message_name() const override { return "lock_state_response"; }
1687#endif
1689 void encode(ProtoWriteBuffer &buffer) const override;
1690 void calculate_size(ProtoSize &size) const override;
1691#ifdef HAS_PROTO_MESSAGE_DUMP
1692 const char *dump_to(DumpBuffer &out) const override;
1693#endif
1694
1695 protected:
1696};
1698 public:
1699 static constexpr uint8_t MESSAGE_TYPE = 60;
1700 static constexpr uint8_t ESTIMATED_SIZE = 22;
1701#ifdef HAS_PROTO_MESSAGE_DUMP
1702 const char *message_name() const override { return "lock_command_request"; }
1703#endif
1705 bool has_code{false};
1707#ifdef HAS_PROTO_MESSAGE_DUMP
1708 const char *dump_to(DumpBuffer &out) const override;
1709#endif
1710
1711 protected:
1712 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1713 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1714 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1715};
1716#endif
1717#ifdef USE_BUTTON
1719 public:
1720 static constexpr uint8_t MESSAGE_TYPE = 61;
1721 static constexpr uint8_t ESTIMATED_SIZE = 49;
1722#ifdef HAS_PROTO_MESSAGE_DUMP
1723 const char *message_name() const override { return "list_entities_button_response"; }
1724#endif
1726 void encode(ProtoWriteBuffer &buffer) const override;
1727 void calculate_size(ProtoSize &size) const override;
1728#ifdef HAS_PROTO_MESSAGE_DUMP
1729 const char *dump_to(DumpBuffer &out) const override;
1730#endif
1731
1732 protected:
1733};
1735 public:
1736 static constexpr uint8_t MESSAGE_TYPE = 62;
1737 static constexpr uint8_t ESTIMATED_SIZE = 9;
1738#ifdef HAS_PROTO_MESSAGE_DUMP
1739 const char *message_name() const override { return "button_command_request"; }
1740#endif
1741#ifdef HAS_PROTO_MESSAGE_DUMP
1742 const char *dump_to(DumpBuffer &out) const override;
1743#endif
1744
1745 protected:
1746 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1747 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1748};
1749#endif
1750#ifdef USE_MEDIA_PLAYER
1752 public:
1754 uint32_t sample_rate{0};
1755 uint32_t num_channels{0};
1757 uint32_t sample_bytes{0};
1758 void encode(ProtoWriteBuffer &buffer) const override;
1759 void calculate_size(ProtoSize &size) const override;
1760#ifdef HAS_PROTO_MESSAGE_DUMP
1761 const char *dump_to(DumpBuffer &out) const override;
1762#endif
1763
1764 protected:
1765};
1767 public:
1768 static constexpr uint8_t MESSAGE_TYPE = 63;
1769 static constexpr uint8_t ESTIMATED_SIZE = 80;
1770#ifdef HAS_PROTO_MESSAGE_DUMP
1771 const char *message_name() const override { return "list_entities_media_player_response"; }
1772#endif
1773 bool supports_pause{false};
1774 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1775 uint32_t feature_flags{0};
1776 void encode(ProtoWriteBuffer &buffer) const override;
1777 void calculate_size(ProtoSize &size) const override;
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 = 64;
1787 static constexpr uint8_t ESTIMATED_SIZE = 18;
1788#ifdef HAS_PROTO_MESSAGE_DUMP
1789 const char *message_name() const override { return "media_player_state_response"; }
1790#endif
1792 float volume{0.0f};
1793 bool muted{false};
1794 void encode(ProtoWriteBuffer &buffer) const override;
1795 void calculate_size(ProtoSize &size) const override;
1796#ifdef HAS_PROTO_MESSAGE_DUMP
1797 const char *dump_to(DumpBuffer &out) const override;
1798#endif
1799
1800 protected:
1801};
1803 public:
1804 static constexpr uint8_t MESSAGE_TYPE = 65;
1805 static constexpr uint8_t ESTIMATED_SIZE = 35;
1806#ifdef HAS_PROTO_MESSAGE_DUMP
1807 const char *message_name() const override { return "media_player_command_request"; }
1808#endif
1809 bool has_command{false};
1811 bool has_volume{false};
1812 float volume{0.0f};
1813 bool has_media_url{false};
1815 bool has_announcement{false};
1816 bool announcement{false};
1817#ifdef HAS_PROTO_MESSAGE_DUMP
1818 const char *dump_to(DumpBuffer &out) const override;
1819#endif
1820
1821 protected:
1822 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1823 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1824 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1825};
1826#endif
1827#ifdef USE_BLUETOOTH_PROXY
1829 public:
1830 static constexpr uint8_t MESSAGE_TYPE = 66;
1831 static constexpr uint8_t ESTIMATED_SIZE = 4;
1832#ifdef HAS_PROTO_MESSAGE_DUMP
1833 const char *message_name() const override { return "subscribe_bluetooth_le_advertisements_request"; }
1834#endif
1835 uint32_t flags{0};
1836#ifdef HAS_PROTO_MESSAGE_DUMP
1837 const char *dump_to(DumpBuffer &out) const override;
1838#endif
1839
1840 protected:
1841 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1842};
1844 public:
1845 uint64_t address{0};
1846 int32_t rssi{0};
1847 uint32_t address_type{0};
1848 uint8_t data[62]{};
1849 uint8_t data_len{0};
1850 void encode(ProtoWriteBuffer &buffer) const override;
1851 void calculate_size(ProtoSize &size) const override;
1852#ifdef HAS_PROTO_MESSAGE_DUMP
1853 const char *dump_to(DumpBuffer &out) const override;
1854#endif
1855
1856 protected:
1857};
1859 public:
1860 static constexpr uint8_t MESSAGE_TYPE = 93;
1861 static constexpr uint8_t ESTIMATED_SIZE = 136;
1862#ifdef HAS_PROTO_MESSAGE_DUMP
1863 const char *message_name() const override { return "bluetooth_le_raw_advertisements_response"; }
1864#endif
1865 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
1867 void encode(ProtoWriteBuffer &buffer) const override;
1868 void calculate_size(ProtoSize &size) const override;
1869#ifdef HAS_PROTO_MESSAGE_DUMP
1870 const char *dump_to(DumpBuffer &out) const override;
1871#endif
1872
1873 protected:
1874};
1876 public:
1877 static constexpr uint8_t MESSAGE_TYPE = 68;
1878 static constexpr uint8_t ESTIMATED_SIZE = 12;
1879#ifdef HAS_PROTO_MESSAGE_DUMP
1880 const char *message_name() const override { return "bluetooth_device_request"; }
1881#endif
1882 uint64_t address{0};
1884 bool has_address_type{false};
1885 uint32_t address_type{0};
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, ProtoVarInt value) override;
1892};
1894 public:
1895 static constexpr uint8_t MESSAGE_TYPE = 69;
1896 static constexpr uint8_t ESTIMATED_SIZE = 14;
1897#ifdef HAS_PROTO_MESSAGE_DUMP
1898 const char *message_name() const override { return "bluetooth_device_connection_response"; }
1899#endif
1900 uint64_t address{0};
1901 bool connected{false};
1902 uint32_t mtu{0};
1903 int32_t error{0};
1904 void encode(ProtoWriteBuffer &buffer) const override;
1905 void calculate_size(ProtoSize &size) const override;
1906#ifdef HAS_PROTO_MESSAGE_DUMP
1907 const char *dump_to(DumpBuffer &out) const override;
1908#endif
1909
1910 protected:
1911};
1913 public:
1914 static constexpr uint8_t MESSAGE_TYPE = 70;
1915 static constexpr uint8_t ESTIMATED_SIZE = 4;
1916#ifdef HAS_PROTO_MESSAGE_DUMP
1917 const char *message_name() const override { return "bluetooth_gatt_get_services_request"; }
1918#endif
1919 uint64_t address{0};
1920#ifdef HAS_PROTO_MESSAGE_DUMP
1921 const char *dump_to(DumpBuffer &out) const override;
1922#endif
1923
1924 protected:
1925 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1926};
1928 public:
1929 std::array<uint64_t, 2> uuid{};
1930 uint32_t handle{0};
1931 uint32_t short_uuid{0};
1932 void encode(ProtoWriteBuffer &buffer) const override;
1933 void calculate_size(ProtoSize &size) const override;
1934#ifdef HAS_PROTO_MESSAGE_DUMP
1935 const char *dump_to(DumpBuffer &out) const override;
1936#endif
1937
1938 protected:
1939};
1941 public:
1942 std::array<uint64_t, 2> uuid{};
1943 uint32_t handle{0};
1944 uint32_t properties{0};
1946 uint32_t short_uuid{0};
1947 void encode(ProtoWriteBuffer &buffer) const override;
1948 void calculate_size(ProtoSize &size) const override;
1949#ifdef HAS_PROTO_MESSAGE_DUMP
1950 const char *dump_to(DumpBuffer &out) const override;
1951#endif
1952
1953 protected:
1954};
1956 public:
1957 std::array<uint64_t, 2> uuid{};
1958 uint32_t handle{0};
1960 uint32_t short_uuid{0};
1961 void encode(ProtoWriteBuffer &buffer) const override;
1962 void calculate_size(ProtoSize &size) const override;
1963#ifdef HAS_PROTO_MESSAGE_DUMP
1964 const char *dump_to(DumpBuffer &out) const override;
1965#endif
1966
1967 protected:
1968};
1970 public:
1971 static constexpr uint8_t MESSAGE_TYPE = 71;
1972 static constexpr uint8_t ESTIMATED_SIZE = 38;
1973#ifdef HAS_PROTO_MESSAGE_DUMP
1974 const char *message_name() const override { return "bluetooth_gatt_get_services_response"; }
1975#endif
1976 uint64_t address{0};
1977 std::vector<BluetoothGATTService> services{};
1978 void encode(ProtoWriteBuffer &buffer) const override;
1979 void calculate_size(ProtoSize &size) const override;
1980#ifdef HAS_PROTO_MESSAGE_DUMP
1981 const char *dump_to(DumpBuffer &out) const override;
1982#endif
1983
1984 protected:
1985};
1987 public:
1988 static constexpr uint8_t MESSAGE_TYPE = 72;
1989 static constexpr uint8_t ESTIMATED_SIZE = 4;
1990#ifdef HAS_PROTO_MESSAGE_DUMP
1991 const char *message_name() const override { return "bluetooth_gatt_get_services_done_response"; }
1992#endif
1993 uint64_t address{0};
1994 void encode(ProtoWriteBuffer &buffer) const override;
1995 void calculate_size(ProtoSize &size) const override;
1996#ifdef HAS_PROTO_MESSAGE_DUMP
1997 const char *dump_to(DumpBuffer &out) const override;
1998#endif
1999
2000 protected:
2001};
2003 public:
2004 static constexpr uint8_t MESSAGE_TYPE = 73;
2005 static constexpr uint8_t ESTIMATED_SIZE = 8;
2006#ifdef HAS_PROTO_MESSAGE_DUMP
2007 const char *message_name() const override { return "bluetooth_gatt_read_request"; }
2008#endif
2009 uint64_t address{0};
2010 uint32_t handle{0};
2011#ifdef HAS_PROTO_MESSAGE_DUMP
2012 const char *dump_to(DumpBuffer &out) const override;
2013#endif
2014
2015 protected:
2016 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2017};
2019 public:
2020 static constexpr uint8_t MESSAGE_TYPE = 74;
2021 static constexpr uint8_t ESTIMATED_SIZE = 27;
2022#ifdef HAS_PROTO_MESSAGE_DUMP
2023 const char *message_name() const override { return "bluetooth_gatt_read_response"; }
2024#endif
2025 uint64_t address{0};
2026 uint32_t handle{0};
2027 const uint8_t *data_ptr_{nullptr};
2028 size_t data_len_{0};
2029 void set_data(const uint8_t *data, size_t len) {
2030 this->data_ptr_ = data;
2031 this->data_len_ = len;
2032 }
2033 void encode(ProtoWriteBuffer &buffer) const override;
2034 void calculate_size(ProtoSize &size) const override;
2035#ifdef HAS_PROTO_MESSAGE_DUMP
2036 const char *dump_to(DumpBuffer &out) const override;
2037#endif
2038
2039 protected:
2040};
2042 public:
2043 static constexpr uint8_t MESSAGE_TYPE = 75;
2044 static constexpr uint8_t ESTIMATED_SIZE = 29;
2045#ifdef HAS_PROTO_MESSAGE_DUMP
2046 const char *message_name() const override { return "bluetooth_gatt_write_request"; }
2047#endif
2048 uint64_t address{0};
2049 uint32_t handle{0};
2050 bool response{false};
2051 const uint8_t *data{nullptr};
2052 uint16_t data_len{0};
2053#ifdef HAS_PROTO_MESSAGE_DUMP
2054 const char *dump_to(DumpBuffer &out) const override;
2055#endif
2056
2057 protected:
2058 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2059 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2060};
2062 public:
2063 static constexpr uint8_t MESSAGE_TYPE = 76;
2064 static constexpr uint8_t ESTIMATED_SIZE = 8;
2065#ifdef HAS_PROTO_MESSAGE_DUMP
2066 const char *message_name() const override { return "bluetooth_gatt_read_descriptor_request"; }
2067#endif
2068 uint64_t address{0};
2069 uint32_t handle{0};
2070#ifdef HAS_PROTO_MESSAGE_DUMP
2071 const char *dump_to(DumpBuffer &out) const override;
2072#endif
2073
2074 protected:
2075 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2076};
2078 public:
2079 static constexpr uint8_t MESSAGE_TYPE = 77;
2080 static constexpr uint8_t ESTIMATED_SIZE = 27;
2081#ifdef HAS_PROTO_MESSAGE_DUMP
2082 const char *message_name() const override { return "bluetooth_gatt_write_descriptor_request"; }
2083#endif
2084 uint64_t address{0};
2085 uint32_t handle{0};
2086 const uint8_t *data{nullptr};
2087 uint16_t data_len{0};
2088#ifdef HAS_PROTO_MESSAGE_DUMP
2089 const char *dump_to(DumpBuffer &out) const override;
2090#endif
2091
2092 protected:
2093 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2094 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2095};
2097 public:
2098 static constexpr uint8_t MESSAGE_TYPE = 78;
2099 static constexpr uint8_t ESTIMATED_SIZE = 10;
2100#ifdef HAS_PROTO_MESSAGE_DUMP
2101 const char *message_name() const override { return "bluetooth_gatt_notify_request"; }
2102#endif
2103 uint64_t address{0};
2104 uint32_t handle{0};
2105 bool enable{false};
2106#ifdef HAS_PROTO_MESSAGE_DUMP
2107 const char *dump_to(DumpBuffer &out) const override;
2108#endif
2109
2110 protected:
2111 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2112};
2114 public:
2115 static constexpr uint8_t MESSAGE_TYPE = 79;
2116 static constexpr uint8_t ESTIMATED_SIZE = 27;
2117#ifdef HAS_PROTO_MESSAGE_DUMP
2118 const char *message_name() const override { return "bluetooth_gatt_notify_data_response"; }
2119#endif
2120 uint64_t address{0};
2121 uint32_t handle{0};
2122 const uint8_t *data_ptr_{nullptr};
2123 size_t data_len_{0};
2124 void set_data(const uint8_t *data, size_t len) {
2125 this->data_ptr_ = data;
2126 this->data_len_ = len;
2127 }
2128 void encode(ProtoWriteBuffer &buffer) const override;
2129 void calculate_size(ProtoSize &size) const override;
2130#ifdef HAS_PROTO_MESSAGE_DUMP
2131 const char *dump_to(DumpBuffer &out) const override;
2132#endif
2133
2134 protected:
2135};
2137 public:
2138 static constexpr uint8_t MESSAGE_TYPE = 81;
2139 static constexpr uint8_t ESTIMATED_SIZE = 20;
2140#ifdef HAS_PROTO_MESSAGE_DUMP
2141 const char *message_name() const override { return "bluetooth_connections_free_response"; }
2142#endif
2143 uint32_t free{0};
2144 uint32_t limit{0};
2145 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2146 void encode(ProtoWriteBuffer &buffer) const override;
2147 void calculate_size(ProtoSize &size) const override;
2148#ifdef HAS_PROTO_MESSAGE_DUMP
2149 const char *dump_to(DumpBuffer &out) const override;
2150#endif
2151
2152 protected:
2153};
2155 public:
2156 static constexpr uint8_t MESSAGE_TYPE = 82;
2157 static constexpr uint8_t ESTIMATED_SIZE = 12;
2158#ifdef HAS_PROTO_MESSAGE_DUMP
2159 const char *message_name() const override { return "bluetooth_gatt_error_response"; }
2160#endif
2161 uint64_t address{0};
2162 uint32_t handle{0};
2163 int32_t error{0};
2164 void encode(ProtoWriteBuffer &buffer) const override;
2165 void calculate_size(ProtoSize &size) const override;
2166#ifdef HAS_PROTO_MESSAGE_DUMP
2167 const char *dump_to(DumpBuffer &out) const override;
2168#endif
2169
2170 protected:
2171};
2173 public:
2174 static constexpr uint8_t MESSAGE_TYPE = 83;
2175 static constexpr uint8_t ESTIMATED_SIZE = 8;
2176#ifdef HAS_PROTO_MESSAGE_DUMP
2177 const char *message_name() const override { return "bluetooth_gatt_write_response"; }
2178#endif
2179 uint64_t address{0};
2180 uint32_t handle{0};
2181 void encode(ProtoWriteBuffer &buffer) const override;
2182 void calculate_size(ProtoSize &size) const override;
2183#ifdef HAS_PROTO_MESSAGE_DUMP
2184 const char *dump_to(DumpBuffer &out) const override;
2185#endif
2186
2187 protected:
2188};
2190 public:
2191 static constexpr uint8_t MESSAGE_TYPE = 84;
2192 static constexpr uint8_t ESTIMATED_SIZE = 8;
2193#ifdef HAS_PROTO_MESSAGE_DUMP
2194 const char *message_name() const override { return "bluetooth_gatt_notify_response"; }
2195#endif
2196 uint64_t address{0};
2197 uint32_t handle{0};
2198 void encode(ProtoWriteBuffer &buffer) const override;
2199 void calculate_size(ProtoSize &size) const override;
2200#ifdef HAS_PROTO_MESSAGE_DUMP
2201 const char *dump_to(DumpBuffer &out) const override;
2202#endif
2203
2204 protected:
2205};
2207 public:
2208 static constexpr uint8_t MESSAGE_TYPE = 85;
2209 static constexpr uint8_t ESTIMATED_SIZE = 10;
2210#ifdef HAS_PROTO_MESSAGE_DUMP
2211 const char *message_name() const override { return "bluetooth_device_pairing_response"; }
2212#endif
2213 uint64_t address{0};
2214 bool paired{false};
2215 int32_t error{0};
2216 void encode(ProtoWriteBuffer &buffer) const override;
2217 void calculate_size(ProtoSize &size) const override;
2218#ifdef HAS_PROTO_MESSAGE_DUMP
2219 const char *dump_to(DumpBuffer &out) const override;
2220#endif
2221
2222 protected:
2223};
2225 public:
2226 static constexpr uint8_t MESSAGE_TYPE = 86;
2227 static constexpr uint8_t ESTIMATED_SIZE = 10;
2228#ifdef HAS_PROTO_MESSAGE_DUMP
2229 const char *message_name() const override { return "bluetooth_device_unpairing_response"; }
2230#endif
2231 uint64_t address{0};
2232 bool success{false};
2233 int32_t error{0};
2234 void encode(ProtoWriteBuffer &buffer) const override;
2235 void calculate_size(ProtoSize &size) const override;
2236#ifdef HAS_PROTO_MESSAGE_DUMP
2237 const char *dump_to(DumpBuffer &out) const override;
2238#endif
2239
2240 protected:
2241};
2243 public:
2244 static constexpr uint8_t MESSAGE_TYPE = 88;
2245 static constexpr uint8_t ESTIMATED_SIZE = 10;
2246#ifdef HAS_PROTO_MESSAGE_DUMP
2247 const char *message_name() const override { return "bluetooth_device_clear_cache_response"; }
2248#endif
2249 uint64_t address{0};
2250 bool success{false};
2251 int32_t error{0};
2252 void encode(ProtoWriteBuffer &buffer) const override;
2253 void calculate_size(ProtoSize &size) const override;
2254#ifdef HAS_PROTO_MESSAGE_DUMP
2255 const char *dump_to(DumpBuffer &out) const override;
2256#endif
2257
2258 protected:
2259};
2261 public:
2262 static constexpr uint8_t MESSAGE_TYPE = 126;
2263 static constexpr uint8_t ESTIMATED_SIZE = 6;
2264#ifdef HAS_PROTO_MESSAGE_DUMP
2265 const char *message_name() const override { return "bluetooth_scanner_state_response"; }
2266#endif
2270 void encode(ProtoWriteBuffer &buffer) const override;
2271 void calculate_size(ProtoSize &size) const override;
2272#ifdef HAS_PROTO_MESSAGE_DUMP
2273 const char *dump_to(DumpBuffer &out) const override;
2274#endif
2275
2276 protected:
2277};
2279 public:
2280 static constexpr uint8_t MESSAGE_TYPE = 127;
2281 static constexpr uint8_t ESTIMATED_SIZE = 2;
2282#ifdef HAS_PROTO_MESSAGE_DUMP
2283 const char *message_name() const override { return "bluetooth_scanner_set_mode_request"; }
2284#endif
2286#ifdef HAS_PROTO_MESSAGE_DUMP
2287 const char *dump_to(DumpBuffer &out) const override;
2288#endif
2289
2290 protected:
2291 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2292};
2293#endif
2294#ifdef USE_VOICE_ASSISTANT
2296 public:
2297 static constexpr uint8_t MESSAGE_TYPE = 89;
2298 static constexpr uint8_t ESTIMATED_SIZE = 6;
2299#ifdef HAS_PROTO_MESSAGE_DUMP
2300 const char *message_name() const override { return "subscribe_voice_assistant_request"; }
2301#endif
2302 bool subscribe{false};
2303 uint32_t flags{0};
2304#ifdef HAS_PROTO_MESSAGE_DUMP
2305 const char *dump_to(DumpBuffer &out) const override;
2306#endif
2307
2308 protected:
2309 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2310};
2312 public:
2314 uint32_t auto_gain{0};
2316 void encode(ProtoWriteBuffer &buffer) const override;
2317 void calculate_size(ProtoSize &size) const override;
2318#ifdef HAS_PROTO_MESSAGE_DUMP
2319 const char *dump_to(DumpBuffer &out) const override;
2320#endif
2321
2322 protected:
2323};
2325 public:
2326 static constexpr uint8_t MESSAGE_TYPE = 90;
2327 static constexpr uint8_t ESTIMATED_SIZE = 41;
2328#ifdef HAS_PROTO_MESSAGE_DUMP
2329 const char *message_name() const override { return "voice_assistant_request"; }
2330#endif
2331 bool start{false};
2333 uint32_t flags{0};
2336 void encode(ProtoWriteBuffer &buffer) const override;
2337 void calculate_size(ProtoSize &size) const override;
2338#ifdef HAS_PROTO_MESSAGE_DUMP
2339 const char *dump_to(DumpBuffer &out) const override;
2340#endif
2341
2342 protected:
2343};
2345 public:
2346 static constexpr uint8_t MESSAGE_TYPE = 91;
2347 static constexpr uint8_t ESTIMATED_SIZE = 6;
2348#ifdef HAS_PROTO_MESSAGE_DUMP
2349 const char *message_name() const override { return "voice_assistant_response"; }
2350#endif
2351 uint32_t port{0};
2352 bool error{false};
2353#ifdef HAS_PROTO_MESSAGE_DUMP
2354 const char *dump_to(DumpBuffer &out) const override;
2355#endif
2356
2357 protected:
2358 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2359};
2361 public:
2364#ifdef HAS_PROTO_MESSAGE_DUMP
2365 const char *dump_to(DumpBuffer &out) const override;
2366#endif
2367
2368 protected:
2369 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2370};
2372 public:
2373 static constexpr uint8_t MESSAGE_TYPE = 92;
2374 static constexpr uint8_t ESTIMATED_SIZE = 36;
2375#ifdef HAS_PROTO_MESSAGE_DUMP
2376 const char *message_name() const override { return "voice_assistant_event_response"; }
2377#endif
2379 std::vector<VoiceAssistantEventData> data{};
2380#ifdef HAS_PROTO_MESSAGE_DUMP
2381 const char *dump_to(DumpBuffer &out) const override;
2382#endif
2383
2384 protected:
2385 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2386 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2387};
2389 public:
2390 static constexpr uint8_t MESSAGE_TYPE = 106;
2391 static constexpr uint8_t ESTIMATED_SIZE = 21;
2392#ifdef HAS_PROTO_MESSAGE_DUMP
2393 const char *message_name() const override { return "voice_assistant_audio"; }
2394#endif
2395 const uint8_t *data{nullptr};
2396 uint16_t data_len{0};
2397 bool end{false};
2398 void encode(ProtoWriteBuffer &buffer) const override;
2399 void calculate_size(ProtoSize &size) const override;
2400#ifdef HAS_PROTO_MESSAGE_DUMP
2401 const char *dump_to(DumpBuffer &out) const override;
2402#endif
2403
2404 protected:
2405 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2406 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2407};
2409 public:
2410 static constexpr uint8_t MESSAGE_TYPE = 115;
2411 static constexpr uint8_t ESTIMATED_SIZE = 30;
2412#ifdef HAS_PROTO_MESSAGE_DUMP
2413 const char *message_name() const override { return "voice_assistant_timer_event_response"; }
2414#endif
2418 uint32_t total_seconds{0};
2419 uint32_t seconds_left{0};
2420 bool is_active{false};
2421#ifdef HAS_PROTO_MESSAGE_DUMP
2422 const char *dump_to(DumpBuffer &out) const override;
2423#endif
2424
2425 protected:
2426 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2427 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2428};
2430 public:
2431 static constexpr uint8_t MESSAGE_TYPE = 119;
2432 static constexpr uint8_t ESTIMATED_SIZE = 29;
2433#ifdef HAS_PROTO_MESSAGE_DUMP
2434 const char *message_name() const override { return "voice_assistant_announce_request"; }
2435#endif
2440#ifdef HAS_PROTO_MESSAGE_DUMP
2441 const char *dump_to(DumpBuffer &out) const override;
2442#endif
2443
2444 protected:
2445 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2446 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2447};
2449 public:
2450 static constexpr uint8_t MESSAGE_TYPE = 120;
2451 static constexpr uint8_t ESTIMATED_SIZE = 2;
2452#ifdef HAS_PROTO_MESSAGE_DUMP
2453 const char *message_name() const override { return "voice_assistant_announce_finished"; }
2454#endif
2455 bool success{false};
2456 void encode(ProtoWriteBuffer &buffer) const override;
2457 void calculate_size(ProtoSize &size) const override;
2458#ifdef HAS_PROTO_MESSAGE_DUMP
2459 const char *dump_to(DumpBuffer &out) const override;
2460#endif
2461
2462 protected:
2463};
2465 public:
2468 std::vector<std::string> trained_languages{};
2469 void encode(ProtoWriteBuffer &buffer) const override;
2470 void calculate_size(ProtoSize &size) const override;
2471#ifdef HAS_PROTO_MESSAGE_DUMP
2472 const char *dump_to(DumpBuffer &out) const override;
2473#endif
2474
2475 protected:
2476};
2478 public:
2481 std::vector<std::string> trained_languages{};
2483 uint32_t model_size{0};
2486#ifdef HAS_PROTO_MESSAGE_DUMP
2487 const char *dump_to(DumpBuffer &out) const override;
2488#endif
2489
2490 protected:
2491 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2492 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2493};
2495 public:
2496 static constexpr uint8_t MESSAGE_TYPE = 121;
2497 static constexpr uint8_t ESTIMATED_SIZE = 34;
2498#ifdef HAS_PROTO_MESSAGE_DUMP
2499 const char *message_name() const override { return "voice_assistant_configuration_request"; }
2500#endif
2501 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
2502#ifdef HAS_PROTO_MESSAGE_DUMP
2503 const char *dump_to(DumpBuffer &out) const override;
2504#endif
2505
2506 protected:
2507 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2508};
2510 public:
2511 static constexpr uint8_t MESSAGE_TYPE = 122;
2512 static constexpr uint8_t ESTIMATED_SIZE = 56;
2513#ifdef HAS_PROTO_MESSAGE_DUMP
2514 const char *message_name() const override { return "voice_assistant_configuration_response"; }
2515#endif
2516 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2517 const std::vector<std::string> *active_wake_words{};
2519 void encode(ProtoWriteBuffer &buffer) const override;
2520 void calculate_size(ProtoSize &size) const override;
2521#ifdef HAS_PROTO_MESSAGE_DUMP
2522 const char *dump_to(DumpBuffer &out) const override;
2523#endif
2524
2525 protected:
2526};
2528 public:
2529 static constexpr uint8_t MESSAGE_TYPE = 123;
2530 static constexpr uint8_t ESTIMATED_SIZE = 18;
2531#ifdef HAS_PROTO_MESSAGE_DUMP
2532 const char *message_name() const override { return "voice_assistant_set_configuration"; }
2533#endif
2534 std::vector<std::string> active_wake_words{};
2535#ifdef HAS_PROTO_MESSAGE_DUMP
2536 const char *dump_to(DumpBuffer &out) const override;
2537#endif
2538
2539 protected:
2540 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2541};
2542#endif
2543#ifdef USE_ALARM_CONTROL_PANEL
2545 public:
2546 static constexpr uint8_t MESSAGE_TYPE = 94;
2547 static constexpr uint8_t ESTIMATED_SIZE = 48;
2548#ifdef HAS_PROTO_MESSAGE_DUMP
2549 const char *message_name() const override { return "list_entities_alarm_control_panel_response"; }
2550#endif
2552 bool requires_code{false};
2554 void encode(ProtoWriteBuffer &buffer) const override;
2555 void calculate_size(ProtoSize &size) const override;
2556#ifdef HAS_PROTO_MESSAGE_DUMP
2557 const char *dump_to(DumpBuffer &out) const override;
2558#endif
2559
2560 protected:
2561};
2563 public:
2564 static constexpr uint8_t MESSAGE_TYPE = 95;
2565 static constexpr uint8_t ESTIMATED_SIZE = 11;
2566#ifdef HAS_PROTO_MESSAGE_DUMP
2567 const char *message_name() const override { return "alarm_control_panel_state_response"; }
2568#endif
2570 void encode(ProtoWriteBuffer &buffer) const override;
2571 void calculate_size(ProtoSize &size) const override;
2572#ifdef HAS_PROTO_MESSAGE_DUMP
2573 const char *dump_to(DumpBuffer &out) const override;
2574#endif
2575
2576 protected:
2577};
2579 public:
2580 static constexpr uint8_t MESSAGE_TYPE = 96;
2581 static constexpr uint8_t ESTIMATED_SIZE = 20;
2582#ifdef HAS_PROTO_MESSAGE_DUMP
2583 const char *message_name() const override { return "alarm_control_panel_command_request"; }
2584#endif
2587#ifdef HAS_PROTO_MESSAGE_DUMP
2588 const char *dump_to(DumpBuffer &out) const override;
2589#endif
2590
2591 protected:
2592 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2593 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2594 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2595};
2596#endif
2597#ifdef USE_TEXT
2599 public:
2600 static constexpr uint8_t MESSAGE_TYPE = 97;
2601 static constexpr uint8_t ESTIMATED_SIZE = 59;
2602#ifdef HAS_PROTO_MESSAGE_DUMP
2603 const char *message_name() const override { return "list_entities_text_response"; }
2604#endif
2605 uint32_t min_length{0};
2606 uint32_t max_length{0};
2609 void encode(ProtoWriteBuffer &buffer) const override;
2610 void calculate_size(ProtoSize &size) const override;
2611#ifdef HAS_PROTO_MESSAGE_DUMP
2612 const char *dump_to(DumpBuffer &out) const override;
2613#endif
2614
2615 protected:
2616};
2618 public:
2619 static constexpr uint8_t MESSAGE_TYPE = 98;
2620 static constexpr uint8_t ESTIMATED_SIZE = 20;
2621#ifdef HAS_PROTO_MESSAGE_DUMP
2622 const char *message_name() const override { return "text_state_response"; }
2623#endif
2625 bool missing_state{false};
2626 void encode(ProtoWriteBuffer &buffer) const override;
2627 void calculate_size(ProtoSize &size) const override;
2628#ifdef HAS_PROTO_MESSAGE_DUMP
2629 const char *dump_to(DumpBuffer &out) const override;
2630#endif
2631
2632 protected:
2633};
2635 public:
2636 static constexpr uint8_t MESSAGE_TYPE = 99;
2637 static constexpr uint8_t ESTIMATED_SIZE = 18;
2638#ifdef HAS_PROTO_MESSAGE_DUMP
2639 const char *message_name() const override { return "text_command_request"; }
2640#endif
2642#ifdef HAS_PROTO_MESSAGE_DUMP
2643 const char *dump_to(DumpBuffer &out) const override;
2644#endif
2645
2646 protected:
2647 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2648 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2649 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2650};
2651#endif
2652#ifdef USE_DATETIME_DATE
2654 public:
2655 static constexpr uint8_t MESSAGE_TYPE = 100;
2656 static constexpr uint8_t ESTIMATED_SIZE = 40;
2657#ifdef HAS_PROTO_MESSAGE_DUMP
2658 const char *message_name() const override { return "list_entities_date_response"; }
2659#endif
2660 void encode(ProtoWriteBuffer &buffer) const override;
2661 void calculate_size(ProtoSize &size) const override;
2662#ifdef HAS_PROTO_MESSAGE_DUMP
2663 const char *dump_to(DumpBuffer &out) const override;
2664#endif
2665
2666 protected:
2667};
2669 public:
2670 static constexpr uint8_t MESSAGE_TYPE = 101;
2671 static constexpr uint8_t ESTIMATED_SIZE = 23;
2672#ifdef HAS_PROTO_MESSAGE_DUMP
2673 const char *message_name() const override { return "date_state_response"; }
2674#endif
2675 bool missing_state{false};
2676 uint32_t year{0};
2677 uint32_t month{0};
2678 uint32_t day{0};
2679 void encode(ProtoWriteBuffer &buffer) const override;
2680 void calculate_size(ProtoSize &size) const override;
2681#ifdef HAS_PROTO_MESSAGE_DUMP
2682 const char *dump_to(DumpBuffer &out) const override;
2683#endif
2684
2685 protected:
2686};
2688 public:
2689 static constexpr uint8_t MESSAGE_TYPE = 102;
2690 static constexpr uint8_t ESTIMATED_SIZE = 21;
2691#ifdef HAS_PROTO_MESSAGE_DUMP
2692 const char *message_name() const override { return "date_command_request"; }
2693#endif
2694 uint32_t year{0};
2695 uint32_t month{0};
2696 uint32_t day{0};
2697#ifdef HAS_PROTO_MESSAGE_DUMP
2698 const char *dump_to(DumpBuffer &out) const override;
2699#endif
2700
2701 protected:
2702 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2703 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2704};
2705#endif
2706#ifdef USE_DATETIME_TIME
2708 public:
2709 static constexpr uint8_t MESSAGE_TYPE = 103;
2710 static constexpr uint8_t ESTIMATED_SIZE = 40;
2711#ifdef HAS_PROTO_MESSAGE_DUMP
2712 const char *message_name() const override { return "list_entities_time_response"; }
2713#endif
2714 void encode(ProtoWriteBuffer &buffer) const override;
2715 void calculate_size(ProtoSize &size) const override;
2716#ifdef HAS_PROTO_MESSAGE_DUMP
2717 const char *dump_to(DumpBuffer &out) const override;
2718#endif
2719
2720 protected:
2721};
2723 public:
2724 static constexpr uint8_t MESSAGE_TYPE = 104;
2725 static constexpr uint8_t ESTIMATED_SIZE = 23;
2726#ifdef HAS_PROTO_MESSAGE_DUMP
2727 const char *message_name() const override { return "time_state_response"; }
2728#endif
2729 bool missing_state{false};
2730 uint32_t hour{0};
2731 uint32_t minute{0};
2732 uint32_t second{0};
2733 void encode(ProtoWriteBuffer &buffer) const override;
2734 void calculate_size(ProtoSize &size) const override;
2735#ifdef HAS_PROTO_MESSAGE_DUMP
2736 const char *dump_to(DumpBuffer &out) const override;
2737#endif
2738
2739 protected:
2740};
2742 public:
2743 static constexpr uint8_t MESSAGE_TYPE = 105;
2744 static constexpr uint8_t ESTIMATED_SIZE = 21;
2745#ifdef HAS_PROTO_MESSAGE_DUMP
2746 const char *message_name() const override { return "time_command_request"; }
2747#endif
2748 uint32_t hour{0};
2749 uint32_t minute{0};
2750 uint32_t second{0};
2751#ifdef HAS_PROTO_MESSAGE_DUMP
2752 const char *dump_to(DumpBuffer &out) const override;
2753#endif
2754
2755 protected:
2756 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2757 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2758};
2759#endif
2760#ifdef USE_EVENT
2762 public:
2763 static constexpr uint8_t MESSAGE_TYPE = 107;
2764 static constexpr uint8_t ESTIMATED_SIZE = 67;
2765#ifdef HAS_PROTO_MESSAGE_DUMP
2766 const char *message_name() const override { return "list_entities_event_response"; }
2767#endif
2770 void encode(ProtoWriteBuffer &buffer) const override;
2771 void calculate_size(ProtoSize &size) const override;
2772#ifdef HAS_PROTO_MESSAGE_DUMP
2773 const char *dump_to(DumpBuffer &out) const override;
2774#endif
2775
2776 protected:
2777};
2779 public:
2780 static constexpr uint8_t MESSAGE_TYPE = 108;
2781 static constexpr uint8_t ESTIMATED_SIZE = 18;
2782#ifdef HAS_PROTO_MESSAGE_DUMP
2783 const char *message_name() const override { return "event_response"; }
2784#endif
2786 void encode(ProtoWriteBuffer &buffer) const override;
2787 void calculate_size(ProtoSize &size) const override;
2788#ifdef HAS_PROTO_MESSAGE_DUMP
2789 const char *dump_to(DumpBuffer &out) const override;
2790#endif
2791
2792 protected:
2793};
2794#endif
2795#ifdef USE_VALVE
2797 public:
2798 static constexpr uint8_t MESSAGE_TYPE = 109;
2799 static constexpr uint8_t ESTIMATED_SIZE = 55;
2800#ifdef HAS_PROTO_MESSAGE_DUMP
2801 const char *message_name() const override { return "list_entities_valve_response"; }
2802#endif
2804 bool assumed_state{false};
2806 bool supports_stop{false};
2807 void encode(ProtoWriteBuffer &buffer) const override;
2808 void calculate_size(ProtoSize &size) const override;
2809#ifdef HAS_PROTO_MESSAGE_DUMP
2810 const char *dump_to(DumpBuffer &out) const override;
2811#endif
2812
2813 protected:
2814};
2816 public:
2817 static constexpr uint8_t MESSAGE_TYPE = 110;
2818 static constexpr uint8_t ESTIMATED_SIZE = 16;
2819#ifdef HAS_PROTO_MESSAGE_DUMP
2820 const char *message_name() const override { return "valve_state_response"; }
2821#endif
2822 float position{0.0f};
2824 void encode(ProtoWriteBuffer &buffer) const override;
2825 void calculate_size(ProtoSize &size) const override;
2826#ifdef HAS_PROTO_MESSAGE_DUMP
2827 const char *dump_to(DumpBuffer &out) const override;
2828#endif
2829
2830 protected:
2831};
2833 public:
2834 static constexpr uint8_t MESSAGE_TYPE = 111;
2835 static constexpr uint8_t ESTIMATED_SIZE = 18;
2836#ifdef HAS_PROTO_MESSAGE_DUMP
2837 const char *message_name() const override { return "valve_command_request"; }
2838#endif
2839 bool has_position{false};
2840 float position{0.0f};
2841 bool stop{false};
2842#ifdef HAS_PROTO_MESSAGE_DUMP
2843 const char *dump_to(DumpBuffer &out) const override;
2844#endif
2845
2846 protected:
2847 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2848 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2849};
2850#endif
2851#ifdef USE_DATETIME_DATETIME
2853 public:
2854 static constexpr uint8_t MESSAGE_TYPE = 112;
2855 static constexpr uint8_t ESTIMATED_SIZE = 40;
2856#ifdef HAS_PROTO_MESSAGE_DUMP
2857 const char *message_name() const override { return "list_entities_date_time_response"; }
2858#endif
2859 void encode(ProtoWriteBuffer &buffer) const override;
2860 void calculate_size(ProtoSize &size) const override;
2861#ifdef HAS_PROTO_MESSAGE_DUMP
2862 const char *dump_to(DumpBuffer &out) const override;
2863#endif
2864
2865 protected:
2866};
2868 public:
2869 static constexpr uint8_t MESSAGE_TYPE = 113;
2870 static constexpr uint8_t ESTIMATED_SIZE = 16;
2871#ifdef HAS_PROTO_MESSAGE_DUMP
2872 const char *message_name() const override { return "date_time_state_response"; }
2873#endif
2874 bool missing_state{false};
2875 uint32_t epoch_seconds{0};
2876 void encode(ProtoWriteBuffer &buffer) const override;
2877 void calculate_size(ProtoSize &size) const override;
2878#ifdef HAS_PROTO_MESSAGE_DUMP
2879 const char *dump_to(DumpBuffer &out) const override;
2880#endif
2881
2882 protected:
2883};
2885 public:
2886 static constexpr uint8_t MESSAGE_TYPE = 114;
2887 static constexpr uint8_t ESTIMATED_SIZE = 14;
2888#ifdef HAS_PROTO_MESSAGE_DUMP
2889 const char *message_name() const override { return "date_time_command_request"; }
2890#endif
2891 uint32_t epoch_seconds{0};
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, ProtoVarInt value) override;
2899};
2900#endif
2901#ifdef USE_UPDATE
2903 public:
2904 static constexpr uint8_t MESSAGE_TYPE = 116;
2905 static constexpr uint8_t ESTIMATED_SIZE = 49;
2906#ifdef HAS_PROTO_MESSAGE_DUMP
2907 const char *message_name() const override { return "list_entities_update_response"; }
2908#endif
2910 void encode(ProtoWriteBuffer &buffer) const override;
2911 void calculate_size(ProtoSize &size) const override;
2912#ifdef HAS_PROTO_MESSAGE_DUMP
2913 const char *dump_to(DumpBuffer &out) const override;
2914#endif
2915
2916 protected:
2917};
2919 public:
2920 static constexpr uint8_t MESSAGE_TYPE = 117;
2921 static constexpr uint8_t ESTIMATED_SIZE = 65;
2922#ifdef HAS_PROTO_MESSAGE_DUMP
2923 const char *message_name() const override { return "update_state_response"; }
2924#endif
2925 bool missing_state{false};
2926 bool in_progress{false};
2927 bool has_progress{false};
2928 float progress{0.0f};
2934 void encode(ProtoWriteBuffer &buffer) const override;
2935 void calculate_size(ProtoSize &size) const override;
2936#ifdef HAS_PROTO_MESSAGE_DUMP
2937 const char *dump_to(DumpBuffer &out) const override;
2938#endif
2939
2940 protected:
2941};
2943 public:
2944 static constexpr uint8_t MESSAGE_TYPE = 118;
2945 static constexpr uint8_t ESTIMATED_SIZE = 11;
2946#ifdef HAS_PROTO_MESSAGE_DUMP
2947 const char *message_name() const override { return "update_command_request"; }
2948#endif
2950#ifdef HAS_PROTO_MESSAGE_DUMP
2951 const char *dump_to(DumpBuffer &out) const override;
2952#endif
2953
2954 protected:
2955 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2956 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2957};
2958#endif
2959#ifdef USE_ZWAVE_PROXY
2961 public:
2962 static constexpr uint8_t MESSAGE_TYPE = 128;
2963 static constexpr uint8_t ESTIMATED_SIZE = 19;
2964#ifdef HAS_PROTO_MESSAGE_DUMP
2965 const char *message_name() const override { return "z_wave_proxy_frame"; }
2966#endif
2967 const uint8_t *data{nullptr};
2968 uint16_t data_len{0};
2969 void encode(ProtoWriteBuffer &buffer) const override;
2970 void calculate_size(ProtoSize &size) const override;
2971#ifdef HAS_PROTO_MESSAGE_DUMP
2972 const char *dump_to(DumpBuffer &out) const override;
2973#endif
2974
2975 protected:
2976 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2977};
2979 public:
2980 static constexpr uint8_t MESSAGE_TYPE = 129;
2981 static constexpr uint8_t ESTIMATED_SIZE = 21;
2982#ifdef HAS_PROTO_MESSAGE_DUMP
2983 const char *message_name() const override { return "z_wave_proxy_request"; }
2984#endif
2986 const uint8_t *data{nullptr};
2987 uint16_t data_len{0};
2988 void encode(ProtoWriteBuffer &buffer) const override;
2989 void calculate_size(ProtoSize &size) const override;
2990#ifdef HAS_PROTO_MESSAGE_DUMP
2991 const char *dump_to(DumpBuffer &out) const override;
2992#endif
2993
2994 protected:
2995 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2996 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2997};
2998#endif
2999#ifdef USE_INFRARED
3001 public:
3002 static constexpr uint8_t MESSAGE_TYPE = 135;
3003 static constexpr uint8_t ESTIMATED_SIZE = 44;
3004#ifdef HAS_PROTO_MESSAGE_DUMP
3005 const char *message_name() const override { return "list_entities_infrared_response"; }
3006#endif
3007 uint32_t capabilities{0};
3008 void encode(ProtoWriteBuffer &buffer) const override;
3009 void calculate_size(ProtoSize &size) const override;
3010#ifdef HAS_PROTO_MESSAGE_DUMP
3011 const char *dump_to(DumpBuffer &out) const override;
3012#endif
3013
3014 protected:
3015};
3016#endif
3017#ifdef USE_IR_RF
3019 public:
3020 static constexpr uint8_t MESSAGE_TYPE = 136;
3021 static constexpr uint8_t ESTIMATED_SIZE = 220;
3022#ifdef HAS_PROTO_MESSAGE_DUMP
3023 const char *message_name() const override { return "infrared_rf_transmit_raw_timings_request"; }
3024#endif
3025#ifdef USE_DEVICES
3026 uint32_t device_id{0};
3027#endif
3028 uint32_t key{0};
3030 uint32_t repeat_count{0};
3031 const uint8_t *timings_data_{nullptr};
3032 uint16_t timings_length_{0};
3033 uint16_t timings_count_{0};
3034#ifdef HAS_PROTO_MESSAGE_DUMP
3035 const char *dump_to(DumpBuffer &out) const override;
3036#endif
3037
3038 protected:
3039 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3040 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3041 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
3042};
3044 public:
3045 static constexpr uint8_t MESSAGE_TYPE = 137;
3046 static constexpr uint8_t ESTIMATED_SIZE = 17;
3047#ifdef HAS_PROTO_MESSAGE_DUMP
3048 const char *message_name() const override { return "infrared_rf_receive_event"; }
3049#endif
3050#ifdef USE_DEVICES
3051 uint32_t device_id{0};
3052#endif
3053 uint32_t key{0};
3054 const std::vector<int32_t> *timings{};
3055 void encode(ProtoWriteBuffer &buffer) const override;
3056 void calculate_size(ProtoSize &size) const override;
3057#ifdef HAS_PROTO_MESSAGE_DUMP
3058 const char *dump_to(DumpBuffer &out) const override;
3059#endif
3060
3061 protected:
3062};
3063#endif
3064
3065} // namespace esphome::api
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
Definition helpers.h:299
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:2815
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2789
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2583
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2585
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2804
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2581
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2775
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2565
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2782
enums::AlarmControlPanelState state
Definition api_pb2.h:2569
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2564
const char * message_name() const override
Definition api_pb2.h:2567
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:47
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:51
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:577
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:578
const char * message_name() const override
Definition api_pb2.h:580
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:209
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:217
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2145
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2141
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2369
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2378
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2438
const char * message_name() const override
Definition api_pb2.h:2247
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2433
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1898
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2160
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2166
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2418
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2209
const char * message_name() const override
Definition api_pb2.h:2211
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2208
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2413
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1877
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1883
const char * message_name() const override
Definition api_pb2.h:1880
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1878
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2141
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2229
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2423
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2428
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:1945
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2210
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1942
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2198
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2190
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1929
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2182
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2157
const char * message_name() const override
Definition api_pb2.h:2159
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2387
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2392
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2156
const char * message_name() const override
Definition api_pb2.h:1991
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2250
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2253
const char * message_name() const override
Definition api_pb2.h:1917
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1915
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2172
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2246
const char * message_name() const override
Definition api_pb2.h:1974
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2240
std::vector< BluetoothGATTService > services
Definition api_pb2.h:1977
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2359
const char * dump_to(DumpBuffer &out) const override
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2124
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2364
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2116
const char * message_name() const override
Definition api_pb2.h:2118
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2099
const char * message_name() const override
Definition api_pb2.h:2101
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2098
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2343
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2191
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2192
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2409
const char * message_name() const override
Definition api_pb2.h:2194
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2405
const char * message_name() const override
Definition api_pb2.h:2066
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2305
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2254
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2004
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2007
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2005
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2020
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2029
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2267
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2021
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2272
const char * message_name() const override
Definition api_pb2.h:2023
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:1959
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2231
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1957
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2220
const char * message_name() const override
Definition api_pb2.h:2082
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2331
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2318
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2293
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2044
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2046
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2277
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2043
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2401
const char * message_name() const override
Definition api_pb2.h:2177
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2175
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2174
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2397
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2119
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2125
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1865
const char * message_name() const override
Definition api_pb2.h:1863
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2136
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2131
const char * message_name() const override
Definition api_pb2.h:2283
enums::BluetoothScannerMode mode
Definition api_pb2.h:2285
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2280
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2453
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2281
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2263
enums::BluetoothScannerMode mode
Definition api_pb2.h:2268
enums::BluetoothScannerState state
Definition api_pb2.h:2267
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2262
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2269
const char * message_name() const override
Definition api_pb2.h:2265
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2443
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2448
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1736
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1963
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1739
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1975
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1737
const char * message_name() const override
Definition api_pb2.h:1318
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1316
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1315
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1220
const char * dump_to(DumpBuffer &out) const override
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1300
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1212
const char * message_name() const override
Definition api_pb2.h:1296
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1294
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1293
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1204
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1440
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1394
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1395
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1410
const char * message_name() const override
Definition api_pb2.h:1397
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1408
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1371
enums::ClimatePreset preset
Definition api_pb2.h:1414
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1425
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1377
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1378
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1366
const char * message_name() const override
Definition api_pb2.h:1369
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1376
enums::ClimatePreset preset
Definition api_pb2.h:1380
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1352
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1367
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1333
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:302
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:634
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:281
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:635
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:637
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:617
const char * message_name() const override
Definition api_pb2.h:619
enums::CoverOperation current_operation
Definition api_pb2.h:623
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:272
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:263
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:616
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:957
enums::DSTRuleType type
Definition api_pb2.h:1129
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2979
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2689
const char * message_name() const override
Definition api_pb2.h:2692
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2958
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2690
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2938
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2670
const char * message_name() const override
Definition api_pb2.h:2673
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2948
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2671
const char * message_name() const override
Definition api_pb2.h:2889
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2887
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2886
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3259
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3247
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3239
const char * message_name() const override
Definition api_pb2.h:2872
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2869
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2870
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3231
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:62
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:57
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:482
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:123
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:68
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:525
const char * message_name() const override
Definition api_pb2.h:485
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:483
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:522
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:401
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:402
const char * message_name() const override
Definition api_pb2.h:404
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:414
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:415
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:417
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:388
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3113
const char * message_name() const override
Definition api_pb2.h:2783
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2780
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3106
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2781
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length) override
Definition api_pb2.cpp:1104
FixedVector< float > float_array
Definition api_pb2.h:1213
FixedVector< std::string > string_array
Definition api_pb2.h:1214
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1077
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1055
FixedVector< int32_t > int_array
Definition api_pb2.h:1212
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1091
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1227
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1233
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1115
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1228
void decode(const uint8_t *buffer, size_t length) override
Definition api_pb2.cpp:1153
const char * message_name() const override
Definition api_pb2.h:1230
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1143
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1132
const char * message_name() const override
Definition api_pb2.h:1257
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1168
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1255
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1160
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1254
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:696
const char * message_name() const override
Definition api_pb2.h:699
const char * dump_to(DumpBuffer &out) const override
enums::FanDirection direction
Definition api_pb2.h:706
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:384
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:423
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:697
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:434
enums::FanDirection direction
Definition api_pb2.h:683
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:677
const char * message_name() const override
Definition api_pb2.h:679
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:362
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:373
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:676
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1114
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1117
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1115
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1159
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1022
ParsedTimezone parsed_timezone
Definition api_pb2.h:1163
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1008
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1157
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1156
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:10
const char * message_name() const override
Definition api_pb2.h:367
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:365
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:364
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:382
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:40
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:34
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:383
const char * message_name() const override
Definition api_pb2.h:385
const char * message_name() const override
Definition api_pb2.h:1099
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1096
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1097
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:937
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:854
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1031
FixedVector< HomeassistantServiceMap > data
Definition api_pb2.h:1029
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1024
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1030
const char * message_name() const override
Definition api_pb2.h:1026
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:876
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1023
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:894
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:907
const char * message_name() const override
Definition api_pb2.h:1057
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1055
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1054
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:846
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:850
enums::EntityCategory entity_category
Definition api_pb2.h:332
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3046
const char * message_name() const override
Definition api_pb2.h:3048
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3476
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3485
const std::vector< int32_t > * timings
Definition api_pb2.h:3054
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3045
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3466
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:3023
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3453
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3435
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:588
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:599
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:528
const char * message_name() const override
Definition api_pb2.h:773
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:770
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:771
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:744
enums::ColorMode color_mode
Definition api_pb2.h:750
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:743
const char * message_name() const override
Definition api_pb2.h:746
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:510
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:492
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2743
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2759
const char * message_name() const override
Definition api_pb2.h:2549
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:194
const char * message_name() const override
Definition api_pb2.h:563
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:561
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:179
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1721
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1720
const char * message_name() const override
Definition api_pb2.h:1723
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1935
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1949
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1281
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1278
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1191
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1178
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1279
const std::vector< const char * > * supported_custom_presets
Definition api_pb2.h:1349
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1346
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1334
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1347
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1333
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1278
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1348
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1345
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1340
const char * message_name() const override
Definition api_pb2.h:1336
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1235
const char * message_name() const override
Definition api_pb2.h:599
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:227
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:597
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:245
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:596
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2656
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2925
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2655
const char * message_name() const override
Definition api_pb2.h:2658
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2912
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3218
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2854
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2855
const char * message_name() const override
Definition api_pb2.h:2857
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3205
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:546
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:547
const char * message_name() const override
Definition api_pb2.h:549
const FixedVector< const char * > * event_types
Definition api_pb2.h:2769
const char * message_name() const override
Definition api_pb2.h:2766
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3087
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2764
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3070
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2763
const char * message_name() const override
Definition api_pb2.h:659
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:665
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:657
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:656
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:340
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:320
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3419
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3405
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3002
const char * message_name() const override
Definition api_pb2.h:3005
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3003
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:725
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:467
const char * message_name() const override
Definition api_pb2.h:727
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * effects
Definition api_pb2.h:732
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:446
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:729
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:724
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1664
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1863
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1846
const char * message_name() const override
Definition api_pb2.h:1667
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1665
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1769
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2001
const char * message_name() const override
Definition api_pb2.h:1771
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2019
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1774
const char * message_name() const override
Definition api_pb2.h:1499
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1591
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1497
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1572
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1496
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1552
const char * message_name() const override
Definition api_pb2.h:1555
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1669
const FixedVector< const char * > * options
Definition api_pb2.h:1557
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1553
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1653
const char * message_name() const override
Definition api_pb2.h:817
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:656
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:815
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:814
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:638
enums::SensorStateClass state_class
Definition api_pb2.h:823
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1037
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1033
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1049
const char * message_name() const override
Definition api_pb2.h:1190
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1187
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1188
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1041
enums::SupportsResponseType supports_response
Definition api_pb2.h:1195
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1194
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1738
const char * message_name() const override
Definition api_pb2.h:1607
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1756
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1604
const FixedVector< const char * > * tones
Definition api_pb2.h:1609
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1605
const char * message_name() const override
Definition api_pb2.h:856
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:692
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:854
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:853
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:707
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2600
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2827
const char * message_name() const override
Definition api_pb2.h:2603
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2844
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2601
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:777
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:904
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:763
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:905
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:907
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3004
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2710
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2712
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2709
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2991
const char * message_name() const override
Definition api_pb2.h:2907
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3274
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3288
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
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2798
const char * message_name() const override
Definition api_pb2.h:2801
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2799
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3139
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3122
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1464
const water_heater::WaterHeaterModeMask * supported_modes
Definition api_pb2.h:1440
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1484
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1433
const char * message_name() const override
Definition api_pb2.h:1435
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1699
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1894
const char * message_name() const override
Definition api_pb2.h:1702
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1923
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1700
enums::LockCommand command
Definition api_pb2.h:1704
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1912
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1684
const char * message_name() const override
Definition api_pb2.h:1686
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1880
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1683
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1887
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1805
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerCommand command
Definition api_pb2.h:1810
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2094
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2053
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2083
const char * message_name() const override
Definition api_pb2.h:1807
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1804
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2035
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2044
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1786
enums::MediaPlayerState state
Definition api_pb2.h:1791
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1789
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1787
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1994
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1756
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1987
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:977
const char * message_name() const override
Definition api_pb2.h:980
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:830
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:978
const char * message_name() const override
Definition api_pb2.h:996
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:842
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:843
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:994
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:993
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1534
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1638
const char * message_name() const override
Definition api_pb2.h:1537
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1535
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1626
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1520
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1518
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1517
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1610
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1618
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:982
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:995
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:430
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:427
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:428
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:440
const char * message_name() const override
Definition api_pb2.h:443
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:441
const char * dump_to(DumpBuffer &out) const override
Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
Definition proto.h:102
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1715
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1703
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1586
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1585
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1726
const char * message_name() const override
Definition api_pb2.h:1588
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1569
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1687
const char * message_name() const override
Definition api_pb2.h:1571
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1695
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1568
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:674
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:682
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:835
const char * message_name() const override
Definition api_pb2.h:837
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:834
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1820
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1790
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1639
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1831
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1638
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1641
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1783
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1623
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1776
const char * message_name() const override
Definition api_pb2.h:1625
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1622
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2109
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:932
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:927
const char * message_name() const override
Definition api_pb2.h:1081
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:941
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:939
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:938
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:808
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:954
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:825
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:955
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:962
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:821
const char * message_name() const override
Definition api_pb2.h:957
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2300
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2297
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2465
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2298
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:751
const char * message_name() const override
Definition api_pb2.h:889
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:736
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:886
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:887
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:873
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:722
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:871
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:729
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:870
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2889
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2637
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2900
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2639
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2877
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2636
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:799
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:920
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:791
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:921
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:923
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2620
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2861
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2619
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2869
const char * message_name() const override
Definition api_pb2.h:2622
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3058
const char * message_name() const override
Definition api_pb2.h:2746
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2743
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3037
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2744
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2724
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3017
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2725
const char * message_name() const override
Definition api_pb2.h:2727
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3027
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2945
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3347
enums::UpdateCommand command
Definition api_pb2.h:2949
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3332
const char * message_name() const override
Definition api_pb2.h:2947
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2944
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2921
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3302
const char * message_name() const override
Definition api_pb2.h:2923
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3317
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2920
const char * message_name() const override
Definition api_pb2.h:2837
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2834
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3172
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2835
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3190
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2818
const char * message_name() const override
Definition api_pb2.h:2820
enums::ValveOperation current_operation
Definition api_pb2.h:2823
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3156
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2817
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3164
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2645
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2451
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2644
const char * message_name() const override
Definition api_pb2.h:2453
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2450
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2625
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2432
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2431
const char * message_name() const override
Definition api_pb2.h:2434
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2615
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2577
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2393
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2561
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2391
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2390
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2551
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2573
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2478
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2483
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2499
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2702
const char * dump_to(DumpBuffer &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2501
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2722
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2516
const char * message_name() const override
Definition api_pb2.h:2514
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2517
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2713
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2515
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2540
const char * message_name() const override
Definition api_pb2.h:2376
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2374
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2373
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2378
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2530
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2379
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2672
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2662
std::vector< std::string > trained_languages
Definition api_pb2.h:2481
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2495
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2488
const char * message_name() const override
Definition api_pb2.h:2329
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2326
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2334
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2327
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2349
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2347
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2346
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2502
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2530
std::vector< std::string > active_wake_words
Definition api_pb2.h:2534
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2529
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2731
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2532
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2415
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2600
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2581
const char * message_name() const override
Definition api_pb2.h:2413
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:2646
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2653
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2468
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1551
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1530
const char * message_name() const override
Definition api_pb2.h:1476
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1474
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1473
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1452
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1453
const char * message_name() const override
Definition api_pb2.h:1455
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1518
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:1506
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2963
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3359
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3371
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3372
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2962
const char * message_name() const override
Definition api_pb2.h:2965
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2981
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3399
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3383
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3373
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2980
void encode(ProtoWriteBuffer &buffer) const override
Definition api_pb2.cpp:3395
const char * message_name() const override
Definition api_pb2.h:2983
enums::ZWaveProxyRequestType type
Definition api_pb2.h:2985
const char * dump_to(DumpBuffer &out) const override
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:187
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:277
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:78
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:81
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:80
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:242
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:241
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:143
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:144
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:209
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:208
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:36
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:43
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:39
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:44
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:265
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:264
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:267
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:266
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:201
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:202
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:199
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:198
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:205
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:203
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:255
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:260
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:257
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:261
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:259
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:256
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:217
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:218
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:214
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:216
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:219
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:220
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:215
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:231
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:232
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:228
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:224
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:227
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:225
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:226
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:68
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:69
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:156
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:150
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:153
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:157
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:154
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:152
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:151
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:155
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:315
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:316
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:317
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:287
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:289
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:288
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:237
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:236
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:51
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:53
std::string size_t len
Definition helpers.h:817
size_t size
Definition helpers.h:854
uint16_t length
Definition tt21100.cpp:0