ESPHome 2026.2.1
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
7
8#include "proto.h"
9#include "api_pb2_includes.h"
10
11namespace esphome::api {
12
13namespace enums {
14
20#ifdef USE_COVER
26#endif
27#ifdef USE_FAN
32#endif
33#ifdef USE_LIGHT
47#endif
48#ifdef USE_SENSOR
56#endif
67#ifdef USE_API_USER_DEFINED_ACTIONS
84#endif
85#ifdef USE_CLIMATE
131#endif
132#ifdef USE_WATER_HEATER
142#endif
153#ifdef USE_NUMBER
159#endif
160#ifdef USE_LOCK
169enum LockCommand : uint32_t {
173};
174#endif
175#ifdef USE_MEDIA_PLAYER
205#endif
206#ifdef USE_BLUETOOTH_PROXY
228#endif
238#ifdef USE_VOICE_ASSISTANT
263#endif
264#ifdef USE_ALARM_CONTROL_PANEL
286#endif
287#ifdef USE_TEXT
288enum TextMode : uint32_t {
291};
292#endif
293#ifdef USE_VALVE
299#endif
300#ifdef USE_UPDATE
306#endif
307#ifdef USE_ZWAVE_PROXY
313#endif
314
315} // namespace enums
316
318 public:
319 ~InfoResponseProtoMessage() override = default;
321 uint32_t key{0};
324#ifdef USE_ENTITY_ICON
326#endif
328#ifdef USE_DEVICES
329 uint32_t device_id{0};
330#endif
331
332 protected:
333};
334
336 public:
337 ~StateResponseProtoMessage() override = default;
338 uint32_t key{0};
339#ifdef USE_DEVICES
340 uint32_t device_id{0};
341#endif
342
343 protected:
344};
345
347 public:
348 ~CommandProtoMessage() override = default;
349 uint32_t key{0};
350#ifdef USE_DEVICES
351 uint32_t device_id{0};
352#endif
353
354 protected:
355};
357 public:
358 static constexpr uint8_t MESSAGE_TYPE = 1;
359 static constexpr uint8_t ESTIMATED_SIZE = 17;
360#ifdef HAS_PROTO_MESSAGE_DUMP
361 const char *message_name() const override { return "hello_request"; }
362#endif
364 uint32_t api_version_major{0};
365 uint32_t api_version_minor{0};
366#ifdef HAS_PROTO_MESSAGE_DUMP
367 const char *dump_to(DumpBuffer &out) const override;
368#endif
369
370 protected:
371 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
372 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
373};
374class HelloResponse final : public ProtoMessage {
375 public:
376 static constexpr uint8_t MESSAGE_TYPE = 2;
377 static constexpr uint8_t ESTIMATED_SIZE = 26;
378#ifdef HAS_PROTO_MESSAGE_DUMP
379 const char *message_name() const override { return "hello_response"; }
380#endif
381 uint32_t api_version_major{0};
382 uint32_t api_version_minor{0};
385 void encode(ProtoWriteBuffer buffer) const override;
386 void calculate_size(ProtoSize &size) const override;
387#ifdef HAS_PROTO_MESSAGE_DUMP
388 const char *dump_to(DumpBuffer &out) const override;
389#endif
390
391 protected:
392};
393class DisconnectRequest final : public ProtoMessage {
394 public:
395 static constexpr uint8_t MESSAGE_TYPE = 5;
396 static constexpr uint8_t ESTIMATED_SIZE = 0;
397#ifdef HAS_PROTO_MESSAGE_DUMP
398 const char *message_name() const override { return "disconnect_request"; }
399#endif
400#ifdef HAS_PROTO_MESSAGE_DUMP
401 const char *dump_to(DumpBuffer &out) const override;
402#endif
403
404 protected:
405};
406class DisconnectResponse final : public ProtoMessage {
407 public:
408 static constexpr uint8_t MESSAGE_TYPE = 6;
409 static constexpr uint8_t ESTIMATED_SIZE = 0;
410#ifdef HAS_PROTO_MESSAGE_DUMP
411 const char *message_name() const override { return "disconnect_response"; }
412#endif
413#ifdef HAS_PROTO_MESSAGE_DUMP
414 const char *dump_to(DumpBuffer &out) const override;
415#endif
416
417 protected:
418};
419class PingRequest final : public ProtoMessage {
420 public:
421 static constexpr uint8_t MESSAGE_TYPE = 7;
422 static constexpr uint8_t ESTIMATED_SIZE = 0;
423#ifdef HAS_PROTO_MESSAGE_DUMP
424 const char *message_name() const override { return "ping_request"; }
425#endif
426#ifdef HAS_PROTO_MESSAGE_DUMP
427 const char *dump_to(DumpBuffer &out) const override;
428#endif
429
430 protected:
431};
432class PingResponse final : public ProtoMessage {
433 public:
434 static constexpr uint8_t MESSAGE_TYPE = 8;
435 static constexpr uint8_t ESTIMATED_SIZE = 0;
436#ifdef HAS_PROTO_MESSAGE_DUMP
437 const char *message_name() const override { return "ping_response"; }
438#endif
439#ifdef HAS_PROTO_MESSAGE_DUMP
440 const char *dump_to(DumpBuffer &out) const override;
441#endif
442
443 protected:
444};
445#ifdef USE_AREAS
446class AreaInfo final : public ProtoMessage {
447 public:
448 uint32_t area_id{0};
450 void encode(ProtoWriteBuffer buffer) const override;
451 void calculate_size(ProtoSize &size) const override;
452#ifdef HAS_PROTO_MESSAGE_DUMP
453 const char *dump_to(DumpBuffer &out) const override;
454#endif
455
456 protected:
457};
458#endif
459#ifdef USE_DEVICES
460class DeviceInfo final : public ProtoMessage {
461 public:
462 uint32_t device_id{0};
464 uint32_t area_id{0};
465 void encode(ProtoWriteBuffer buffer) const override;
466 void calculate_size(ProtoSize &size) const override;
467#ifdef HAS_PROTO_MESSAGE_DUMP
468 const char *dump_to(DumpBuffer &out) const override;
469#endif
470
471 protected:
472};
473#endif
474class DeviceInfoResponse final : public ProtoMessage {
475 public:
476 static constexpr uint8_t MESSAGE_TYPE = 10;
477 static constexpr uint8_t ESTIMATED_SIZE = 255;
478#ifdef HAS_PROTO_MESSAGE_DUMP
479 const char *message_name() const override { return "device_info_response"; }
480#endif
486#ifdef USE_DEEP_SLEEP
487 bool has_deep_sleep{false};
488#endif
489#ifdef ESPHOME_PROJECT_NAME
491#endif
492#ifdef ESPHOME_PROJECT_NAME
494#endif
495#ifdef USE_WEBSERVER
496 uint32_t webserver_port{0};
497#endif
498#ifdef USE_BLUETOOTH_PROXY
500#endif
503#ifdef USE_VOICE_ASSISTANT
505#endif
506#ifdef USE_AREAS
508#endif
509#ifdef USE_BLUETOOTH_PROXY
511#endif
512#ifdef USE_API_NOISE
514#endif
515#ifdef USE_DEVICES
516 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
517#endif
518#ifdef USE_AREAS
519 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
520#endif
521#ifdef USE_AREAS
523#endif
524#ifdef USE_ZWAVE_PROXY
526#endif
527#ifdef USE_ZWAVE_PROXY
528 uint32_t zwave_home_id{0};
529#endif
530 void encode(ProtoWriteBuffer buffer) const override;
531 void calculate_size(ProtoSize &size) const override;
532#ifdef HAS_PROTO_MESSAGE_DUMP
533 const char *dump_to(DumpBuffer &out) const override;
534#endif
535
536 protected:
537};
539 public:
540 static constexpr uint8_t MESSAGE_TYPE = 19;
541 static constexpr uint8_t ESTIMATED_SIZE = 0;
542#ifdef HAS_PROTO_MESSAGE_DUMP
543 const char *message_name() const override { return "list_entities_done_response"; }
544#endif
545#ifdef HAS_PROTO_MESSAGE_DUMP
546 const char *dump_to(DumpBuffer &out) const override;
547#endif
548
549 protected:
550};
551#ifdef USE_BINARY_SENSOR
553 public:
554 static constexpr uint8_t MESSAGE_TYPE = 12;
555 static constexpr uint8_t ESTIMATED_SIZE = 51;
556#ifdef HAS_PROTO_MESSAGE_DUMP
557 const char *message_name() const override { return "list_entities_binary_sensor_response"; }
558#endif
561 void encode(ProtoWriteBuffer buffer) const override;
562 void calculate_size(ProtoSize &size) const override;
563#ifdef HAS_PROTO_MESSAGE_DUMP
564 const char *dump_to(DumpBuffer &out) const override;
565#endif
566
567 protected:
568};
570 public:
571 static constexpr uint8_t MESSAGE_TYPE = 21;
572 static constexpr uint8_t ESTIMATED_SIZE = 13;
573#ifdef HAS_PROTO_MESSAGE_DUMP
574 const char *message_name() const override { return "binary_sensor_state_response"; }
575#endif
576 bool state{false};
577 bool missing_state{false};
578 void encode(ProtoWriteBuffer buffer) const override;
579 void calculate_size(ProtoSize &size) const override;
580#ifdef HAS_PROTO_MESSAGE_DUMP
581 const char *dump_to(DumpBuffer &out) const override;
582#endif
583
584 protected:
585};
586#endif
587#ifdef USE_COVER
589 public:
590 static constexpr uint8_t MESSAGE_TYPE = 13;
591 static constexpr uint8_t ESTIMATED_SIZE = 57;
592#ifdef HAS_PROTO_MESSAGE_DUMP
593 const char *message_name() const override { return "list_entities_cover_response"; }
594#endif
595 bool assumed_state{false};
596 bool supports_position{false};
597 bool supports_tilt{false};
599 bool supports_stop{false};
600 void encode(ProtoWriteBuffer buffer) const override;
601 void calculate_size(ProtoSize &size) const override;
602#ifdef HAS_PROTO_MESSAGE_DUMP
603 const char *dump_to(DumpBuffer &out) const override;
604#endif
605
606 protected:
607};
609 public:
610 static constexpr uint8_t MESSAGE_TYPE = 22;
611 static constexpr uint8_t ESTIMATED_SIZE = 21;
612#ifdef HAS_PROTO_MESSAGE_DUMP
613 const char *message_name() const override { return "cover_state_response"; }
614#endif
615 float position{0.0f};
616 float tilt{0.0f};
618 void encode(ProtoWriteBuffer buffer) const override;
619 void calculate_size(ProtoSize &size) const override;
620#ifdef HAS_PROTO_MESSAGE_DUMP
621 const char *dump_to(DumpBuffer &out) const override;
622#endif
623
624 protected:
625};
627 public:
628 static constexpr uint8_t MESSAGE_TYPE = 30;
629 static constexpr uint8_t ESTIMATED_SIZE = 25;
630#ifdef HAS_PROTO_MESSAGE_DUMP
631 const char *message_name() const override { return "cover_command_request"; }
632#endif
633 bool has_position{false};
634 float position{0.0f};
635 bool has_tilt{false};
636 float tilt{0.0f};
637 bool stop{false};
638#ifdef HAS_PROTO_MESSAGE_DUMP
639 const char *dump_to(DumpBuffer &out) const override;
640#endif
641
642 protected:
643 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
644 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
645};
646#endif
647#ifdef USE_FAN
649 public:
650 static constexpr uint8_t MESSAGE_TYPE = 14;
651 static constexpr uint8_t ESTIMATED_SIZE = 68;
652#ifdef HAS_PROTO_MESSAGE_DUMP
653 const char *message_name() const override { return "list_entities_fan_response"; }
654#endif
656 bool supports_speed{false};
659 const std::vector<const char *> *supported_preset_modes{};
660 void encode(ProtoWriteBuffer buffer) const override;
661 void calculate_size(ProtoSize &size) const override;
662#ifdef HAS_PROTO_MESSAGE_DUMP
663 const char *dump_to(DumpBuffer &out) const override;
664#endif
665
666 protected:
667};
669 public:
670 static constexpr uint8_t MESSAGE_TYPE = 23;
671 static constexpr uint8_t ESTIMATED_SIZE = 28;
672#ifdef HAS_PROTO_MESSAGE_DUMP
673 const char *message_name() const override { return "fan_state_response"; }
674#endif
675 bool state{false};
676 bool oscillating{false};
678 int32_t speed_level{0};
680 void encode(ProtoWriteBuffer buffer) const override;
681 void calculate_size(ProtoSize &size) const override;
682#ifdef HAS_PROTO_MESSAGE_DUMP
683 const char *dump_to(DumpBuffer &out) const override;
684#endif
685
686 protected:
687};
689 public:
690 static constexpr uint8_t MESSAGE_TYPE = 31;
691 static constexpr uint8_t ESTIMATED_SIZE = 38;
692#ifdef HAS_PROTO_MESSAGE_DUMP
693 const char *message_name() const override { return "fan_command_request"; }
694#endif
695 bool has_state{false};
696 bool state{false};
697 bool has_oscillating{false};
698 bool oscillating{false};
699 bool has_direction{false};
701 bool has_speed_level{false};
702 int32_t speed_level{0};
703 bool has_preset_mode{false};
705#ifdef HAS_PROTO_MESSAGE_DUMP
706 const char *dump_to(DumpBuffer &out) const override;
707#endif
708
709 protected:
710 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
711 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
712 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
713};
714#endif
715#ifdef USE_LIGHT
717 public:
718 static constexpr uint8_t MESSAGE_TYPE = 15;
719 static constexpr uint8_t ESTIMATED_SIZE = 73;
720#ifdef HAS_PROTO_MESSAGE_DUMP
721 const char *message_name() const override { return "list_entities_light_response"; }
722#endif
724 float min_mireds{0.0f};
725 float max_mireds{0.0f};
727 void encode(ProtoWriteBuffer buffer) const override;
728 void calculate_size(ProtoSize &size) const override;
729#ifdef HAS_PROTO_MESSAGE_DUMP
730 const char *dump_to(DumpBuffer &out) const override;
731#endif
732
733 protected:
734};
736 public:
737 static constexpr uint8_t MESSAGE_TYPE = 24;
738 static constexpr uint8_t ESTIMATED_SIZE = 67;
739#ifdef HAS_PROTO_MESSAGE_DUMP
740 const char *message_name() const override { return "light_state_response"; }
741#endif
742 bool state{false};
743 float brightness{0.0f};
745 float color_brightness{0.0f};
746 float red{0.0f};
747 float green{0.0f};
748 float blue{0.0f};
749 float white{0.0f};
750 float color_temperature{0.0f};
751 float cold_white{0.0f};
752 float warm_white{0.0f};
754 void encode(ProtoWriteBuffer buffer) const override;
755 void calculate_size(ProtoSize &size) const override;
756#ifdef HAS_PROTO_MESSAGE_DUMP
757 const char *dump_to(DumpBuffer &out) const override;
758#endif
759
760 protected:
761};
763 public:
764 static constexpr uint8_t MESSAGE_TYPE = 32;
765 static constexpr uint8_t ESTIMATED_SIZE = 112;
766#ifdef HAS_PROTO_MESSAGE_DUMP
767 const char *message_name() const override { return "light_command_request"; }
768#endif
769 bool has_state{false};
770 bool state{false};
771 bool has_brightness{false};
772 float brightness{0.0f};
773 bool has_color_mode{false};
776 float color_brightness{0.0f};
777 bool has_rgb{false};
778 float red{0.0f};
779 float green{0.0f};
780 float blue{0.0f};
781 bool has_white{false};
782 float white{0.0f};
784 float color_temperature{0.0f};
785 bool has_cold_white{false};
786 float cold_white{0.0f};
787 bool has_warm_white{false};
788 float warm_white{0.0f};
790 uint32_t transition_length{0};
791 bool has_flash_length{false};
792 uint32_t flash_length{0};
793 bool has_effect{false};
795#ifdef HAS_PROTO_MESSAGE_DUMP
796 const char *dump_to(DumpBuffer &out) const override;
797#endif
798
799 protected:
800 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
801 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
802 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
803};
804#endif
805#ifdef USE_SENSOR
807 public:
808 static constexpr uint8_t MESSAGE_TYPE = 16;
809 static constexpr uint8_t ESTIMATED_SIZE = 66;
810#ifdef HAS_PROTO_MESSAGE_DUMP
811 const char *message_name() const override { return "list_entities_sensor_response"; }
812#endif
815 bool force_update{false};
818 void encode(ProtoWriteBuffer buffer) const override;
819 void calculate_size(ProtoSize &size) const override;
820#ifdef HAS_PROTO_MESSAGE_DUMP
821 const char *dump_to(DumpBuffer &out) const override;
822#endif
823
824 protected:
825};
827 public:
828 static constexpr uint8_t MESSAGE_TYPE = 25;
829 static constexpr uint8_t ESTIMATED_SIZE = 16;
830#ifdef HAS_PROTO_MESSAGE_DUMP
831 const char *message_name() const override { return "sensor_state_response"; }
832#endif
833 float state{0.0f};
834 bool missing_state{false};
835 void encode(ProtoWriteBuffer buffer) const override;
836 void calculate_size(ProtoSize &size) const override;
837#ifdef HAS_PROTO_MESSAGE_DUMP
838 const char *dump_to(DumpBuffer &out) const override;
839#endif
840
841 protected:
842};
843#endif
844#ifdef USE_SWITCH
846 public:
847 static constexpr uint8_t MESSAGE_TYPE = 17;
848 static constexpr uint8_t ESTIMATED_SIZE = 51;
849#ifdef HAS_PROTO_MESSAGE_DUMP
850 const char *message_name() const override { return "list_entities_switch_response"; }
851#endif
852 bool assumed_state{false};
854 void encode(ProtoWriteBuffer buffer) const override;
855 void calculate_size(ProtoSize &size) const override;
856#ifdef HAS_PROTO_MESSAGE_DUMP
857 const char *dump_to(DumpBuffer &out) const override;
858#endif
859
860 protected:
861};
863 public:
864 static constexpr uint8_t MESSAGE_TYPE = 26;
865 static constexpr uint8_t ESTIMATED_SIZE = 11;
866#ifdef HAS_PROTO_MESSAGE_DUMP
867 const char *message_name() const override { return "switch_state_response"; }
868#endif
869 bool state{false};
870 void encode(ProtoWriteBuffer buffer) const override;
871 void calculate_size(ProtoSize &size) const override;
872#ifdef HAS_PROTO_MESSAGE_DUMP
873 const char *dump_to(DumpBuffer &out) const override;
874#endif
875
876 protected:
877};
879 public:
880 static constexpr uint8_t MESSAGE_TYPE = 33;
881 static constexpr uint8_t ESTIMATED_SIZE = 11;
882#ifdef HAS_PROTO_MESSAGE_DUMP
883 const char *message_name() const override { return "switch_command_request"; }
884#endif
885 bool state{false};
886#ifdef HAS_PROTO_MESSAGE_DUMP
887 const char *dump_to(DumpBuffer &out) const override;
888#endif
889
890 protected:
891 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
892 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
893};
894#endif
895#ifdef USE_TEXT_SENSOR
897 public:
898 static constexpr uint8_t MESSAGE_TYPE = 18;
899 static constexpr uint8_t ESTIMATED_SIZE = 49;
900#ifdef HAS_PROTO_MESSAGE_DUMP
901 const char *message_name() const override { return "list_entities_text_sensor_response"; }
902#endif
904 void encode(ProtoWriteBuffer buffer) const override;
905 void calculate_size(ProtoSize &size) const override;
906#ifdef HAS_PROTO_MESSAGE_DUMP
907 const char *dump_to(DumpBuffer &out) const override;
908#endif
909
910 protected:
911};
913 public:
914 static constexpr uint8_t MESSAGE_TYPE = 27;
915 static constexpr uint8_t ESTIMATED_SIZE = 20;
916#ifdef HAS_PROTO_MESSAGE_DUMP
917 const char *message_name() const override { return "text_sensor_state_response"; }
918#endif
920 bool missing_state{false};
921 void encode(ProtoWriteBuffer buffer) const override;
922 void calculate_size(ProtoSize &size) const override;
923#ifdef HAS_PROTO_MESSAGE_DUMP
924 const char *dump_to(DumpBuffer &out) const override;
925#endif
926
927 protected:
928};
929#endif
931 public:
932 static constexpr uint8_t MESSAGE_TYPE = 28;
933 static constexpr uint8_t ESTIMATED_SIZE = 4;
934#ifdef HAS_PROTO_MESSAGE_DUMP
935 const char *message_name() const override { return "subscribe_logs_request"; }
936#endif
938 bool dump_config{false};
939#ifdef HAS_PROTO_MESSAGE_DUMP
940 const char *dump_to(DumpBuffer &out) const override;
941#endif
942
943 protected:
944 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
945};
947 public:
948 static constexpr uint8_t MESSAGE_TYPE = 29;
949 static constexpr uint8_t ESTIMATED_SIZE = 21;
950#ifdef HAS_PROTO_MESSAGE_DUMP
951 const char *message_name() const override { return "subscribe_logs_response"; }
952#endif
954 const uint8_t *message_ptr_{nullptr};
955 size_t message_len_{0};
956 void set_message(const uint8_t *data, size_t len) {
957 this->message_ptr_ = data;
958 this->message_len_ = len;
959 }
960 void encode(ProtoWriteBuffer buffer) const override;
961 void calculate_size(ProtoSize &size) const override;
962#ifdef HAS_PROTO_MESSAGE_DUMP
963 const char *dump_to(DumpBuffer &out) const override;
964#endif
965
966 protected:
967};
968#ifdef USE_API_NOISE
970 public:
971 static constexpr uint8_t MESSAGE_TYPE = 124;
972 static constexpr uint8_t ESTIMATED_SIZE = 19;
973#ifdef HAS_PROTO_MESSAGE_DUMP
974 const char *message_name() const override { return "noise_encryption_set_key_request"; }
975#endif
976 const uint8_t *key{nullptr};
977 uint16_t key_len{0};
978#ifdef HAS_PROTO_MESSAGE_DUMP
979 const char *dump_to(DumpBuffer &out) const override;
980#endif
981
982 protected:
983 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
984};
986 public:
987 static constexpr uint8_t MESSAGE_TYPE = 125;
988 static constexpr uint8_t ESTIMATED_SIZE = 2;
989#ifdef HAS_PROTO_MESSAGE_DUMP
990 const char *message_name() const override { return "noise_encryption_set_key_response"; }
991#endif
992 bool success{false};
993 void encode(ProtoWriteBuffer buffer) const override;
994 void calculate_size(ProtoSize &size) const override;
995#ifdef HAS_PROTO_MESSAGE_DUMP
996 const char *dump_to(DumpBuffer &out) const override;
997#endif
998
999 protected:
1000};
1001#endif
1002#ifdef USE_API_HOMEASSISTANT_SERVICES
1004 public:
1007 void encode(ProtoWriteBuffer buffer) const override;
1008 void calculate_size(ProtoSize &size) const override;
1009#ifdef HAS_PROTO_MESSAGE_DUMP
1010 const char *dump_to(DumpBuffer &out) const override;
1011#endif
1012
1013 protected:
1014};
1016 public:
1017 static constexpr uint8_t MESSAGE_TYPE = 35;
1018 static constexpr uint8_t ESTIMATED_SIZE = 128;
1019#ifdef HAS_PROTO_MESSAGE_DUMP
1020 const char *message_name() const override { return "homeassistant_action_request"; }
1021#endif
1026 bool is_event{false};
1027#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1028 uint32_t call_id{0};
1029#endif
1030#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1031 bool wants_response{false};
1032#endif
1033#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1035#endif
1036 void encode(ProtoWriteBuffer buffer) const override;
1037 void calculate_size(ProtoSize &size) const override;
1038#ifdef HAS_PROTO_MESSAGE_DUMP
1039 const char *dump_to(DumpBuffer &out) const override;
1040#endif
1041
1042 protected:
1043};
1044#endif
1045#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1047 public:
1048 static constexpr uint8_t MESSAGE_TYPE = 130;
1049 static constexpr uint8_t ESTIMATED_SIZE = 34;
1050#ifdef HAS_PROTO_MESSAGE_DUMP
1051 const char *message_name() const override { return "homeassistant_action_response"; }
1052#endif
1053 uint32_t call_id{0};
1054 bool success{false};
1056#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1057 const uint8_t *response_data{nullptr};
1059#endif
1060#ifdef HAS_PROTO_MESSAGE_DUMP
1061 const char *dump_to(DumpBuffer &out) const override;
1062#endif
1063
1064 protected:
1065 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1066 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1067};
1068#endif
1069#ifdef USE_API_HOMEASSISTANT_STATES
1071 public:
1072 static constexpr uint8_t MESSAGE_TYPE = 39;
1073 static constexpr uint8_t ESTIMATED_SIZE = 20;
1074#ifdef HAS_PROTO_MESSAGE_DUMP
1075 const char *message_name() const override { return "subscribe_home_assistant_state_response"; }
1076#endif
1079 bool once{false};
1080 void encode(ProtoWriteBuffer buffer) const override;
1081 void calculate_size(ProtoSize &size) const override;
1082#ifdef HAS_PROTO_MESSAGE_DUMP
1083 const char *dump_to(DumpBuffer &out) const override;
1084#endif
1085
1086 protected:
1087};
1089 public:
1090 static constexpr uint8_t MESSAGE_TYPE = 40;
1091 static constexpr uint8_t ESTIMATED_SIZE = 27;
1092#ifdef HAS_PROTO_MESSAGE_DUMP
1093 const char *message_name() const override { return "home_assistant_state_response"; }
1094#endif
1098#ifdef HAS_PROTO_MESSAGE_DUMP
1099 const char *dump_to(DumpBuffer &out) const override;
1100#endif
1101
1102 protected:
1103 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1104};
1105#endif
1106class GetTimeRequest final : public ProtoMessage {
1107 public:
1108 static constexpr uint8_t MESSAGE_TYPE = 36;
1109 static constexpr uint8_t ESTIMATED_SIZE = 0;
1110#ifdef HAS_PROTO_MESSAGE_DUMP
1111 const char *message_name() const override { return "get_time_request"; }
1112#endif
1113#ifdef HAS_PROTO_MESSAGE_DUMP
1114 const char *dump_to(DumpBuffer &out) const override;
1115#endif
1116
1117 protected:
1118};
1120 public:
1121 static constexpr uint8_t MESSAGE_TYPE = 37;
1122 static constexpr uint8_t ESTIMATED_SIZE = 14;
1123#ifdef HAS_PROTO_MESSAGE_DUMP
1124 const char *message_name() const override { return "get_time_response"; }
1125#endif
1126 uint32_t epoch_seconds{0};
1128#ifdef HAS_PROTO_MESSAGE_DUMP
1129 const char *dump_to(DumpBuffer &out) const override;
1130#endif
1131
1132 protected:
1133 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1134 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1135};
1136#ifdef USE_API_USER_DEFINED_ACTIONS
1138 public:
1141 void encode(ProtoWriteBuffer buffer) const override;
1142 void calculate_size(ProtoSize &size) const override;
1143#ifdef HAS_PROTO_MESSAGE_DUMP
1144 const char *dump_to(DumpBuffer &out) const override;
1145#endif
1146
1147 protected:
1148};
1150 public:
1151 static constexpr uint8_t MESSAGE_TYPE = 41;
1152 static constexpr uint8_t ESTIMATED_SIZE = 50;
1153#ifdef HAS_PROTO_MESSAGE_DUMP
1154 const char *message_name() const override { return "list_entities_services_response"; }
1155#endif
1157 uint32_t key{0};
1160 void encode(ProtoWriteBuffer buffer) const override;
1161 void calculate_size(ProtoSize &size) const override;
1162#ifdef HAS_PROTO_MESSAGE_DUMP
1163 const char *dump_to(DumpBuffer &out) const override;
1164#endif
1165
1166 protected:
1167};
1169 public:
1170 bool bool_{false};
1171 int32_t legacy_int{0};
1172 float float_{0.0f};
1174 int32_t int_{0};
1179 void decode(const uint8_t *buffer, size_t length) override;
1180#ifdef HAS_PROTO_MESSAGE_DUMP
1181 const char *dump_to(DumpBuffer &out) const override;
1182#endif
1183
1184 protected:
1185 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1186 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1187 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1188};
1190 public:
1191 static constexpr uint8_t MESSAGE_TYPE = 42;
1192 static constexpr uint8_t ESTIMATED_SIZE = 45;
1193#ifdef HAS_PROTO_MESSAGE_DUMP
1194 const char *message_name() const override { return "execute_service_request"; }
1195#endif
1196 uint32_t key{0};
1198#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1199 uint32_t call_id{0};
1200#endif
1201#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1202 bool return_response{false};
1203#endif
1204 void decode(const uint8_t *buffer, size_t length) override;
1205#ifdef HAS_PROTO_MESSAGE_DUMP
1206 const char *dump_to(DumpBuffer &out) const override;
1207#endif
1208
1209 protected:
1210 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1211 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1212 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1213};
1214#endif
1215#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1217 public:
1218 static constexpr uint8_t MESSAGE_TYPE = 131;
1219 static constexpr uint8_t ESTIMATED_SIZE = 34;
1220#ifdef HAS_PROTO_MESSAGE_DUMP
1221 const char *message_name() const override { return "execute_service_response"; }
1222#endif
1223 uint32_t call_id{0};
1224 bool success{false};
1226#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1227 const uint8_t *response_data{nullptr};
1229#endif
1230 void encode(ProtoWriteBuffer buffer) const override;
1231 void calculate_size(ProtoSize &size) const override;
1232#ifdef HAS_PROTO_MESSAGE_DUMP
1233 const char *dump_to(DumpBuffer &out) const override;
1234#endif
1235
1236 protected:
1237};
1238#endif
1239#ifdef USE_CAMERA
1241 public:
1242 static constexpr uint8_t MESSAGE_TYPE = 43;
1243 static constexpr uint8_t ESTIMATED_SIZE = 40;
1244#ifdef HAS_PROTO_MESSAGE_DUMP
1245 const char *message_name() const override { return "list_entities_camera_response"; }
1246#endif
1247 void encode(ProtoWriteBuffer buffer) const override;
1248 void calculate_size(ProtoSize &size) const override;
1249#ifdef HAS_PROTO_MESSAGE_DUMP
1250 const char *dump_to(DumpBuffer &out) const override;
1251#endif
1252
1253 protected:
1254};
1256 public:
1257 static constexpr uint8_t MESSAGE_TYPE = 44;
1258 static constexpr uint8_t ESTIMATED_SIZE = 30;
1259#ifdef HAS_PROTO_MESSAGE_DUMP
1260 const char *message_name() const override { return "camera_image_response"; }
1261#endif
1262 const uint8_t *data_ptr_{nullptr};
1263 size_t data_len_{0};
1264 void set_data(const uint8_t *data, size_t len) {
1265 this->data_ptr_ = data;
1266 this->data_len_ = len;
1267 }
1268 bool done{false};
1269 void encode(ProtoWriteBuffer buffer) const override;
1270 void calculate_size(ProtoSize &size) const override;
1271#ifdef HAS_PROTO_MESSAGE_DUMP
1272 const char *dump_to(DumpBuffer &out) const override;
1273#endif
1274
1275 protected:
1276};
1278 public:
1279 static constexpr uint8_t MESSAGE_TYPE = 45;
1280 static constexpr uint8_t ESTIMATED_SIZE = 4;
1281#ifdef HAS_PROTO_MESSAGE_DUMP
1282 const char *message_name() const override { return "camera_image_request"; }
1283#endif
1284 bool single{false};
1285 bool stream{false};
1286#ifdef HAS_PROTO_MESSAGE_DUMP
1287 const char *dump_to(DumpBuffer &out) const override;
1288#endif
1289
1290 protected:
1291 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1292};
1293#endif
1294#ifdef USE_CLIMATE
1296 public:
1297 static constexpr uint8_t MESSAGE_TYPE = 46;
1298 static constexpr uint8_t ESTIMATED_SIZE = 150;
1299#ifdef HAS_PROTO_MESSAGE_DUMP
1300 const char *message_name() const override { return "list_entities_climate_response"; }
1301#endif
1308 bool supports_action{false};
1311 const std::vector<const char *> *supported_custom_fan_modes{};
1313 const std::vector<const char *> *supported_custom_presets{};
1319 uint32_t feature_flags{0};
1320 void encode(ProtoWriteBuffer buffer) const override;
1321 void calculate_size(ProtoSize &size) const override;
1322#ifdef HAS_PROTO_MESSAGE_DUMP
1323 const char *dump_to(DumpBuffer &out) const override;
1324#endif
1325
1326 protected:
1327};
1329 public:
1330 static constexpr uint8_t MESSAGE_TYPE = 47;
1331 static constexpr uint8_t ESTIMATED_SIZE = 68;
1332#ifdef HAS_PROTO_MESSAGE_DUMP
1333 const char *message_name() const override { return "climate_state_response"; }
1334#endif
1346 float current_humidity{0.0f};
1347 float target_humidity{0.0f};
1348 void encode(ProtoWriteBuffer buffer) const override;
1349 void calculate_size(ProtoSize &size) const override;
1350#ifdef HAS_PROTO_MESSAGE_DUMP
1351 const char *dump_to(DumpBuffer &out) const override;
1352#endif
1353
1354 protected:
1355};
1357 public:
1358 static constexpr uint8_t MESSAGE_TYPE = 48;
1359 static constexpr uint8_t ESTIMATED_SIZE = 84;
1360#ifdef HAS_PROTO_MESSAGE_DUMP
1361 const char *message_name() const override { return "climate_command_request"; }
1362#endif
1363 bool has_mode{false};
1371 bool has_fan_mode{false};
1373 bool has_swing_mode{false};
1377 bool has_preset{false};
1382 float target_humidity{0.0f};
1383#ifdef HAS_PROTO_MESSAGE_DUMP
1384 const char *dump_to(DumpBuffer &out) const override;
1385#endif
1386
1387 protected:
1388 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1389 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1390 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1391};
1392#endif
1393#ifdef USE_WATER_HEATER
1395 public:
1396 static constexpr uint8_t MESSAGE_TYPE = 132;
1397 static constexpr uint8_t ESTIMATED_SIZE = 63;
1398#ifdef HAS_PROTO_MESSAGE_DUMP
1399 const char *message_name() const override { return "list_entities_water_heater_response"; }
1400#endif
1401 float min_temperature{0.0f};
1402 float max_temperature{0.0f};
1406 void encode(ProtoWriteBuffer buffer) const override;
1407 void calculate_size(ProtoSize &size) const override;
1408#ifdef HAS_PROTO_MESSAGE_DUMP
1409 const char *dump_to(DumpBuffer &out) const override;
1410#endif
1411
1412 protected:
1413};
1415 public:
1416 static constexpr uint8_t MESSAGE_TYPE = 133;
1417 static constexpr uint8_t ESTIMATED_SIZE = 35;
1418#ifdef HAS_PROTO_MESSAGE_DUMP
1419 const char *message_name() const override { return "water_heater_state_response"; }
1420#endif
1424 uint32_t state{0};
1427 void encode(ProtoWriteBuffer buffer) const override;
1428 void calculate_size(ProtoSize &size) const override;
1429#ifdef HAS_PROTO_MESSAGE_DUMP
1430 const char *dump_to(DumpBuffer &out) const override;
1431#endif
1432
1433 protected:
1434};
1436 public:
1437 static constexpr uint8_t MESSAGE_TYPE = 134;
1438 static constexpr uint8_t ESTIMATED_SIZE = 34;
1439#ifdef HAS_PROTO_MESSAGE_DUMP
1440 const char *message_name() const override { return "water_heater_command_request"; }
1441#endif
1442 uint32_t has_fields{0};
1445 uint32_t state{0};
1448#ifdef HAS_PROTO_MESSAGE_DUMP
1449 const char *dump_to(DumpBuffer &out) const override;
1450#endif
1451
1452 protected:
1453 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1454 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1455};
1456#endif
1457#ifdef USE_NUMBER
1459 public:
1460 static constexpr uint8_t MESSAGE_TYPE = 49;
1461 static constexpr uint8_t ESTIMATED_SIZE = 75;
1462#ifdef HAS_PROTO_MESSAGE_DUMP
1463 const char *message_name() const override { return "list_entities_number_response"; }
1464#endif
1465 float min_value{0.0f};
1466 float max_value{0.0f};
1467 float step{0.0f};
1471 void encode(ProtoWriteBuffer buffer) const override;
1472 void calculate_size(ProtoSize &size) const override;
1473#ifdef HAS_PROTO_MESSAGE_DUMP
1474 const char *dump_to(DumpBuffer &out) const override;
1475#endif
1476
1477 protected:
1478};
1480 public:
1481 static constexpr uint8_t MESSAGE_TYPE = 50;
1482 static constexpr uint8_t ESTIMATED_SIZE = 16;
1483#ifdef HAS_PROTO_MESSAGE_DUMP
1484 const char *message_name() const override { return "number_state_response"; }
1485#endif
1486 float state{0.0f};
1487 bool missing_state{false};
1488 void encode(ProtoWriteBuffer buffer) const override;
1489 void calculate_size(ProtoSize &size) const override;
1490#ifdef HAS_PROTO_MESSAGE_DUMP
1491 const char *dump_to(DumpBuffer &out) const override;
1492#endif
1493
1494 protected:
1495};
1497 public:
1498 static constexpr uint8_t MESSAGE_TYPE = 51;
1499 static constexpr uint8_t ESTIMATED_SIZE = 14;
1500#ifdef HAS_PROTO_MESSAGE_DUMP
1501 const char *message_name() const override { return "number_command_request"; }
1502#endif
1503 float state{0.0f};
1504#ifdef HAS_PROTO_MESSAGE_DUMP
1505 const char *dump_to(DumpBuffer &out) const override;
1506#endif
1507
1508 protected:
1509 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1510 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1511};
1512#endif
1513#ifdef USE_SELECT
1515 public:
1516 static constexpr uint8_t MESSAGE_TYPE = 52;
1517 static constexpr uint8_t ESTIMATED_SIZE = 58;
1518#ifdef HAS_PROTO_MESSAGE_DUMP
1519 const char *message_name() const override { return "list_entities_select_response"; }
1520#endif
1522 void encode(ProtoWriteBuffer buffer) const override;
1523 void calculate_size(ProtoSize &size) const override;
1524#ifdef HAS_PROTO_MESSAGE_DUMP
1525 const char *dump_to(DumpBuffer &out) const override;
1526#endif
1527
1528 protected:
1529};
1531 public:
1532 static constexpr uint8_t MESSAGE_TYPE = 53;
1533 static constexpr uint8_t ESTIMATED_SIZE = 20;
1534#ifdef HAS_PROTO_MESSAGE_DUMP
1535 const char *message_name() const override { return "select_state_response"; }
1536#endif
1538 bool missing_state{false};
1539 void encode(ProtoWriteBuffer buffer) const override;
1540 void calculate_size(ProtoSize &size) const override;
1541#ifdef HAS_PROTO_MESSAGE_DUMP
1542 const char *dump_to(DumpBuffer &out) const override;
1543#endif
1544
1545 protected:
1546};
1548 public:
1549 static constexpr uint8_t MESSAGE_TYPE = 54;
1550 static constexpr uint8_t ESTIMATED_SIZE = 18;
1551#ifdef HAS_PROTO_MESSAGE_DUMP
1552 const char *message_name() const override { return "select_command_request"; }
1553#endif
1555#ifdef HAS_PROTO_MESSAGE_DUMP
1556 const char *dump_to(DumpBuffer &out) const override;
1557#endif
1558
1559 protected:
1560 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1561 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1562 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1563};
1564#endif
1565#ifdef USE_SIREN
1567 public:
1568 static constexpr uint8_t MESSAGE_TYPE = 55;
1569 static constexpr uint8_t ESTIMATED_SIZE = 62;
1570#ifdef HAS_PROTO_MESSAGE_DUMP
1571 const char *message_name() const override { return "list_entities_siren_response"; }
1572#endif
1575 bool supports_volume{false};
1576 void encode(ProtoWriteBuffer buffer) const override;
1577 void calculate_size(ProtoSize &size) const override;
1578#ifdef HAS_PROTO_MESSAGE_DUMP
1579 const char *dump_to(DumpBuffer &out) const override;
1580#endif
1581
1582 protected:
1583};
1585 public:
1586 static constexpr uint8_t MESSAGE_TYPE = 56;
1587 static constexpr uint8_t ESTIMATED_SIZE = 11;
1588#ifdef HAS_PROTO_MESSAGE_DUMP
1589 const char *message_name() const override { return "siren_state_response"; }
1590#endif
1591 bool state{false};
1592 void encode(ProtoWriteBuffer buffer) const override;
1593 void calculate_size(ProtoSize &size) const override;
1594#ifdef HAS_PROTO_MESSAGE_DUMP
1595 const char *dump_to(DumpBuffer &out) const override;
1596#endif
1597
1598 protected:
1599};
1601 public:
1602 static constexpr uint8_t MESSAGE_TYPE = 57;
1603 static constexpr uint8_t ESTIMATED_SIZE = 37;
1604#ifdef HAS_PROTO_MESSAGE_DUMP
1605 const char *message_name() const override { return "siren_command_request"; }
1606#endif
1607 bool has_state{false};
1608 bool state{false};
1609 bool has_tone{false};
1611 bool has_duration{false};
1612 uint32_t duration{0};
1613 bool has_volume{false};
1614 float volume{0.0f};
1615#ifdef HAS_PROTO_MESSAGE_DUMP
1616 const char *dump_to(DumpBuffer &out) const override;
1617#endif
1618
1619 protected:
1620 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1621 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1622 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1623};
1624#endif
1625#ifdef USE_LOCK
1627 public:
1628 static constexpr uint8_t MESSAGE_TYPE = 58;
1629 static constexpr uint8_t ESTIMATED_SIZE = 55;
1630#ifdef HAS_PROTO_MESSAGE_DUMP
1631 const char *message_name() const override { return "list_entities_lock_response"; }
1632#endif
1633 bool assumed_state{false};
1634 bool supports_open{false};
1635 bool requires_code{false};
1637 void encode(ProtoWriteBuffer buffer) const override;
1638 void calculate_size(ProtoSize &size) const override;
1639#ifdef HAS_PROTO_MESSAGE_DUMP
1640 const char *dump_to(DumpBuffer &out) const override;
1641#endif
1642
1643 protected:
1644};
1646 public:
1647 static constexpr uint8_t MESSAGE_TYPE = 59;
1648 static constexpr uint8_t ESTIMATED_SIZE = 11;
1649#ifdef HAS_PROTO_MESSAGE_DUMP
1650 const char *message_name() const override { return "lock_state_response"; }
1651#endif
1653 void encode(ProtoWriteBuffer buffer) const override;
1654 void calculate_size(ProtoSize &size) const override;
1655#ifdef HAS_PROTO_MESSAGE_DUMP
1656 const char *dump_to(DumpBuffer &out) const override;
1657#endif
1658
1659 protected:
1660};
1662 public:
1663 static constexpr uint8_t MESSAGE_TYPE = 60;
1664 static constexpr uint8_t ESTIMATED_SIZE = 22;
1665#ifdef HAS_PROTO_MESSAGE_DUMP
1666 const char *message_name() const override { return "lock_command_request"; }
1667#endif
1669 bool has_code{false};
1671#ifdef HAS_PROTO_MESSAGE_DUMP
1672 const char *dump_to(DumpBuffer &out) const override;
1673#endif
1674
1675 protected:
1676 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1677 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1678 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1679};
1680#endif
1681#ifdef USE_BUTTON
1683 public:
1684 static constexpr uint8_t MESSAGE_TYPE = 61;
1685 static constexpr uint8_t ESTIMATED_SIZE = 49;
1686#ifdef HAS_PROTO_MESSAGE_DUMP
1687 const char *message_name() const override { return "list_entities_button_response"; }
1688#endif
1690 void encode(ProtoWriteBuffer buffer) const override;
1691 void calculate_size(ProtoSize &size) const override;
1692#ifdef HAS_PROTO_MESSAGE_DUMP
1693 const char *dump_to(DumpBuffer &out) const override;
1694#endif
1695
1696 protected:
1697};
1699 public:
1700 static constexpr uint8_t MESSAGE_TYPE = 62;
1701 static constexpr uint8_t ESTIMATED_SIZE = 9;
1702#ifdef HAS_PROTO_MESSAGE_DUMP
1703 const char *message_name() const override { return "button_command_request"; }
1704#endif
1705#ifdef HAS_PROTO_MESSAGE_DUMP
1706 const char *dump_to(DumpBuffer &out) const override;
1707#endif
1708
1709 protected:
1710 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1711 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1712};
1713#endif
1714#ifdef USE_MEDIA_PLAYER
1716 public:
1718 uint32_t sample_rate{0};
1719 uint32_t num_channels{0};
1721 uint32_t sample_bytes{0};
1722 void encode(ProtoWriteBuffer buffer) const override;
1723 void calculate_size(ProtoSize &size) const override;
1724#ifdef HAS_PROTO_MESSAGE_DUMP
1725 const char *dump_to(DumpBuffer &out) const override;
1726#endif
1727
1728 protected:
1729};
1731 public:
1732 static constexpr uint8_t MESSAGE_TYPE = 63;
1733 static constexpr uint8_t ESTIMATED_SIZE = 80;
1734#ifdef HAS_PROTO_MESSAGE_DUMP
1735 const char *message_name() const override { return "list_entities_media_player_response"; }
1736#endif
1737 bool supports_pause{false};
1738 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1739 uint32_t feature_flags{0};
1740 void encode(ProtoWriteBuffer buffer) const override;
1741 void calculate_size(ProtoSize &size) const override;
1742#ifdef HAS_PROTO_MESSAGE_DUMP
1743 const char *dump_to(DumpBuffer &out) const override;
1744#endif
1745
1746 protected:
1747};
1749 public:
1750 static constexpr uint8_t MESSAGE_TYPE = 64;
1751 static constexpr uint8_t ESTIMATED_SIZE = 18;
1752#ifdef HAS_PROTO_MESSAGE_DUMP
1753 const char *message_name() const override { return "media_player_state_response"; }
1754#endif
1756 float volume{0.0f};
1757 bool muted{false};
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 = 65;
1769 static constexpr uint8_t ESTIMATED_SIZE = 35;
1770#ifdef HAS_PROTO_MESSAGE_DUMP
1771 const char *message_name() const override { return "media_player_command_request"; }
1772#endif
1773 bool has_command{false};
1775 bool has_volume{false};
1776 float volume{0.0f};
1777 bool has_media_url{false};
1779 bool has_announcement{false};
1780 bool announcement{false};
1781#ifdef HAS_PROTO_MESSAGE_DUMP
1782 const char *dump_to(DumpBuffer &out) const override;
1783#endif
1784
1785 protected:
1786 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1787 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1788 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1789};
1790#endif
1791#ifdef USE_BLUETOOTH_PROXY
1793 public:
1794 static constexpr uint8_t MESSAGE_TYPE = 66;
1795 static constexpr uint8_t ESTIMATED_SIZE = 4;
1796#ifdef HAS_PROTO_MESSAGE_DUMP
1797 const char *message_name() const override { return "subscribe_bluetooth_le_advertisements_request"; }
1798#endif
1799 uint32_t flags{0};
1800#ifdef HAS_PROTO_MESSAGE_DUMP
1801 const char *dump_to(DumpBuffer &out) const override;
1802#endif
1803
1804 protected:
1805 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1806};
1808 public:
1809 uint64_t address{0};
1810 int32_t rssi{0};
1811 uint32_t address_type{0};
1812 uint8_t data[62]{};
1813 uint8_t data_len{0};
1814 void encode(ProtoWriteBuffer buffer) const override;
1815 void calculate_size(ProtoSize &size) const override;
1816#ifdef HAS_PROTO_MESSAGE_DUMP
1817 const char *dump_to(DumpBuffer &out) const override;
1818#endif
1819
1820 protected:
1821};
1823 public:
1824 static constexpr uint8_t MESSAGE_TYPE = 93;
1825 static constexpr uint8_t ESTIMATED_SIZE = 136;
1826#ifdef HAS_PROTO_MESSAGE_DUMP
1827 const char *message_name() const override { return "bluetooth_le_raw_advertisements_response"; }
1828#endif
1829 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
1831 void encode(ProtoWriteBuffer buffer) const override;
1832 void calculate_size(ProtoSize &size) const override;
1833#ifdef HAS_PROTO_MESSAGE_DUMP
1834 const char *dump_to(DumpBuffer &out) const override;
1835#endif
1836
1837 protected:
1838};
1840 public:
1841 static constexpr uint8_t MESSAGE_TYPE = 68;
1842 static constexpr uint8_t ESTIMATED_SIZE = 12;
1843#ifdef HAS_PROTO_MESSAGE_DUMP
1844 const char *message_name() const override { return "bluetooth_device_request"; }
1845#endif
1846 uint64_t address{0};
1848 bool has_address_type{false};
1849 uint32_t address_type{0};
1850#ifdef HAS_PROTO_MESSAGE_DUMP
1851 const char *dump_to(DumpBuffer &out) const override;
1852#endif
1853
1854 protected:
1855 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1856};
1858 public:
1859 static constexpr uint8_t MESSAGE_TYPE = 69;
1860 static constexpr uint8_t ESTIMATED_SIZE = 14;
1861#ifdef HAS_PROTO_MESSAGE_DUMP
1862 const char *message_name() const override { return "bluetooth_device_connection_response"; }
1863#endif
1864 uint64_t address{0};
1865 bool connected{false};
1866 uint32_t mtu{0};
1867 int32_t error{0};
1868 void encode(ProtoWriteBuffer buffer) const override;
1869 void calculate_size(ProtoSize &size) const override;
1870#ifdef HAS_PROTO_MESSAGE_DUMP
1871 const char *dump_to(DumpBuffer &out) const override;
1872#endif
1873
1874 protected:
1875};
1877 public:
1878 static constexpr uint8_t MESSAGE_TYPE = 70;
1879 static constexpr uint8_t ESTIMATED_SIZE = 4;
1880#ifdef HAS_PROTO_MESSAGE_DUMP
1881 const char *message_name() const override { return "bluetooth_gatt_get_services_request"; }
1882#endif
1883 uint64_t address{0};
1884#ifdef HAS_PROTO_MESSAGE_DUMP
1885 const char *dump_to(DumpBuffer &out) const override;
1886#endif
1887
1888 protected:
1889 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1890};
1892 public:
1893 std::array<uint64_t, 2> uuid{};
1894 uint32_t handle{0};
1895 uint32_t short_uuid{0};
1896 void encode(ProtoWriteBuffer buffer) const override;
1897 void calculate_size(ProtoSize &size) const override;
1898#ifdef HAS_PROTO_MESSAGE_DUMP
1899 const char *dump_to(DumpBuffer &out) const override;
1900#endif
1901
1902 protected:
1903};
1905 public:
1906 std::array<uint64_t, 2> uuid{};
1907 uint32_t handle{0};
1908 uint32_t properties{0};
1910 uint32_t short_uuid{0};
1911 void encode(ProtoWriteBuffer buffer) const override;
1912 void calculate_size(ProtoSize &size) const override;
1913#ifdef HAS_PROTO_MESSAGE_DUMP
1914 const char *dump_to(DumpBuffer &out) const override;
1915#endif
1916
1917 protected:
1918};
1920 public:
1921 std::array<uint64_t, 2> uuid{};
1922 uint32_t handle{0};
1924 uint32_t short_uuid{0};
1925 void encode(ProtoWriteBuffer buffer) const override;
1926 void calculate_size(ProtoSize &size) const override;
1927#ifdef HAS_PROTO_MESSAGE_DUMP
1928 const char *dump_to(DumpBuffer &out) const override;
1929#endif
1930
1931 protected:
1932};
1934 public:
1935 static constexpr uint8_t MESSAGE_TYPE = 71;
1936 static constexpr uint8_t ESTIMATED_SIZE = 38;
1937#ifdef HAS_PROTO_MESSAGE_DUMP
1938 const char *message_name() const override { return "bluetooth_gatt_get_services_response"; }
1939#endif
1940 uint64_t address{0};
1941 std::vector<BluetoothGATTService> services{};
1942 void encode(ProtoWriteBuffer buffer) const override;
1943 void calculate_size(ProtoSize &size) const override;
1944#ifdef HAS_PROTO_MESSAGE_DUMP
1945 const char *dump_to(DumpBuffer &out) const override;
1946#endif
1947
1948 protected:
1949};
1951 public:
1952 static constexpr uint8_t MESSAGE_TYPE = 72;
1953 static constexpr uint8_t ESTIMATED_SIZE = 4;
1954#ifdef HAS_PROTO_MESSAGE_DUMP
1955 const char *message_name() const override { return "bluetooth_gatt_get_services_done_response"; }
1956#endif
1957 uint64_t address{0};
1958 void encode(ProtoWriteBuffer buffer) const override;
1959 void calculate_size(ProtoSize &size) const override;
1960#ifdef HAS_PROTO_MESSAGE_DUMP
1961 const char *dump_to(DumpBuffer &out) const override;
1962#endif
1963
1964 protected:
1965};
1967 public:
1968 static constexpr uint8_t MESSAGE_TYPE = 73;
1969 static constexpr uint8_t ESTIMATED_SIZE = 8;
1970#ifdef HAS_PROTO_MESSAGE_DUMP
1971 const char *message_name() const override { return "bluetooth_gatt_read_request"; }
1972#endif
1973 uint64_t address{0};
1974 uint32_t handle{0};
1975#ifdef HAS_PROTO_MESSAGE_DUMP
1976 const char *dump_to(DumpBuffer &out) const override;
1977#endif
1978
1979 protected:
1980 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1981};
1983 public:
1984 static constexpr uint8_t MESSAGE_TYPE = 74;
1985 static constexpr uint8_t ESTIMATED_SIZE = 27;
1986#ifdef HAS_PROTO_MESSAGE_DUMP
1987 const char *message_name() const override { return "bluetooth_gatt_read_response"; }
1988#endif
1989 uint64_t address{0};
1990 uint32_t handle{0};
1991 const uint8_t *data_ptr_{nullptr};
1992 size_t data_len_{0};
1993 void set_data(const uint8_t *data, size_t len) {
1994 this->data_ptr_ = data;
1995 this->data_len_ = len;
1996 }
1997 void encode(ProtoWriteBuffer buffer) const override;
1998 void calculate_size(ProtoSize &size) const override;
1999#ifdef HAS_PROTO_MESSAGE_DUMP
2000 const char *dump_to(DumpBuffer &out) const override;
2001#endif
2002
2003 protected:
2004};
2006 public:
2007 static constexpr uint8_t MESSAGE_TYPE = 75;
2008 static constexpr uint8_t ESTIMATED_SIZE = 29;
2009#ifdef HAS_PROTO_MESSAGE_DUMP
2010 const char *message_name() const override { return "bluetooth_gatt_write_request"; }
2011#endif
2012 uint64_t address{0};
2013 uint32_t handle{0};
2014 bool response{false};
2015 const uint8_t *data{nullptr};
2016 uint16_t data_len{0};
2017#ifdef HAS_PROTO_MESSAGE_DUMP
2018 const char *dump_to(DumpBuffer &out) const override;
2019#endif
2020
2021 protected:
2022 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2023 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2024};
2026 public:
2027 static constexpr uint8_t MESSAGE_TYPE = 76;
2028 static constexpr uint8_t ESTIMATED_SIZE = 8;
2029#ifdef HAS_PROTO_MESSAGE_DUMP
2030 const char *message_name() const override { return "bluetooth_gatt_read_descriptor_request"; }
2031#endif
2032 uint64_t address{0};
2033 uint32_t handle{0};
2034#ifdef HAS_PROTO_MESSAGE_DUMP
2035 const char *dump_to(DumpBuffer &out) const override;
2036#endif
2037
2038 protected:
2039 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2040};
2042 public:
2043 static constexpr uint8_t MESSAGE_TYPE = 77;
2044 static constexpr uint8_t ESTIMATED_SIZE = 27;
2045#ifdef HAS_PROTO_MESSAGE_DUMP
2046 const char *message_name() const override { return "bluetooth_gatt_write_descriptor_request"; }
2047#endif
2048 uint64_t address{0};
2049 uint32_t handle{0};
2050 const uint8_t *data{nullptr};
2051 uint16_t data_len{0};
2052#ifdef HAS_PROTO_MESSAGE_DUMP
2053 const char *dump_to(DumpBuffer &out) const override;
2054#endif
2055
2056 protected:
2057 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2058 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2059};
2061 public:
2062 static constexpr uint8_t MESSAGE_TYPE = 78;
2063 static constexpr uint8_t ESTIMATED_SIZE = 10;
2064#ifdef HAS_PROTO_MESSAGE_DUMP
2065 const char *message_name() const override { return "bluetooth_gatt_notify_request"; }
2066#endif
2067 uint64_t address{0};
2068 uint32_t handle{0};
2069 bool enable{false};
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 = 79;
2080 static constexpr uint8_t ESTIMATED_SIZE = 27;
2081#ifdef HAS_PROTO_MESSAGE_DUMP
2082 const char *message_name() const override { return "bluetooth_gatt_notify_data_response"; }
2083#endif
2084 uint64_t address{0};
2085 uint32_t handle{0};
2086 const uint8_t *data_ptr_{nullptr};
2087 size_t data_len_{0};
2088 void set_data(const uint8_t *data, size_t len) {
2089 this->data_ptr_ = data;
2090 this->data_len_ = len;
2091 }
2092 void encode(ProtoWriteBuffer buffer) const override;
2093 void calculate_size(ProtoSize &size) const override;
2094#ifdef HAS_PROTO_MESSAGE_DUMP
2095 const char *dump_to(DumpBuffer &out) const override;
2096#endif
2097
2098 protected:
2099};
2101 public:
2102 static constexpr uint8_t MESSAGE_TYPE = 81;
2103 static constexpr uint8_t ESTIMATED_SIZE = 20;
2104#ifdef HAS_PROTO_MESSAGE_DUMP
2105 const char *message_name() const override { return "bluetooth_connections_free_response"; }
2106#endif
2107 uint32_t free{0};
2108 uint32_t limit{0};
2109 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2110 void encode(ProtoWriteBuffer buffer) const override;
2111 void calculate_size(ProtoSize &size) const override;
2112#ifdef HAS_PROTO_MESSAGE_DUMP
2113 const char *dump_to(DumpBuffer &out) const override;
2114#endif
2115
2116 protected:
2117};
2119 public:
2120 static constexpr uint8_t MESSAGE_TYPE = 82;
2121 static constexpr uint8_t ESTIMATED_SIZE = 12;
2122#ifdef HAS_PROTO_MESSAGE_DUMP
2123 const char *message_name() const override { return "bluetooth_gatt_error_response"; }
2124#endif
2125 uint64_t address{0};
2126 uint32_t handle{0};
2127 int32_t error{0};
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 = 83;
2139 static constexpr uint8_t ESTIMATED_SIZE = 8;
2140#ifdef HAS_PROTO_MESSAGE_DUMP
2141 const char *message_name() const override { return "bluetooth_gatt_write_response"; }
2142#endif
2143 uint64_t address{0};
2144 uint32_t handle{0};
2145 void encode(ProtoWriteBuffer buffer) const override;
2146 void calculate_size(ProtoSize &size) const override;
2147#ifdef HAS_PROTO_MESSAGE_DUMP
2148 const char *dump_to(DumpBuffer &out) const override;
2149#endif
2150
2151 protected:
2152};
2154 public:
2155 static constexpr uint8_t MESSAGE_TYPE = 84;
2156 static constexpr uint8_t ESTIMATED_SIZE = 8;
2157#ifdef HAS_PROTO_MESSAGE_DUMP
2158 const char *message_name() const override { return "bluetooth_gatt_notify_response"; }
2159#endif
2160 uint64_t address{0};
2161 uint32_t handle{0};
2162 void encode(ProtoWriteBuffer buffer) const override;
2163 void calculate_size(ProtoSize &size) const override;
2164#ifdef HAS_PROTO_MESSAGE_DUMP
2165 const char *dump_to(DumpBuffer &out) const override;
2166#endif
2167
2168 protected:
2169};
2171 public:
2172 static constexpr uint8_t MESSAGE_TYPE = 85;
2173 static constexpr uint8_t ESTIMATED_SIZE = 10;
2174#ifdef HAS_PROTO_MESSAGE_DUMP
2175 const char *message_name() const override { return "bluetooth_device_pairing_response"; }
2176#endif
2177 uint64_t address{0};
2178 bool paired{false};
2179 int32_t error{0};
2180 void encode(ProtoWriteBuffer buffer) const override;
2181 void calculate_size(ProtoSize &size) const override;
2182#ifdef HAS_PROTO_MESSAGE_DUMP
2183 const char *dump_to(DumpBuffer &out) const override;
2184#endif
2185
2186 protected:
2187};
2189 public:
2190 static constexpr uint8_t MESSAGE_TYPE = 86;
2191 static constexpr uint8_t ESTIMATED_SIZE = 10;
2192#ifdef HAS_PROTO_MESSAGE_DUMP
2193 const char *message_name() const override { return "bluetooth_device_unpairing_response"; }
2194#endif
2195 uint64_t address{0};
2196 bool success{false};
2197 int32_t error{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 = 88;
2209 static constexpr uint8_t ESTIMATED_SIZE = 10;
2210#ifdef HAS_PROTO_MESSAGE_DUMP
2211 const char *message_name() const override { return "bluetooth_device_clear_cache_response"; }
2212#endif
2213 uint64_t address{0};
2214 bool success{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 = 126;
2227 static constexpr uint8_t ESTIMATED_SIZE = 6;
2228#ifdef HAS_PROTO_MESSAGE_DUMP
2229 const char *message_name() const override { return "bluetooth_scanner_state_response"; }
2230#endif
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 = 127;
2245 static constexpr uint8_t ESTIMATED_SIZE = 2;
2246#ifdef HAS_PROTO_MESSAGE_DUMP
2247 const char *message_name() const override { return "bluetooth_scanner_set_mode_request"; }
2248#endif
2250#ifdef HAS_PROTO_MESSAGE_DUMP
2251 const char *dump_to(DumpBuffer &out) const override;
2252#endif
2253
2254 protected:
2255 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2256};
2257#endif
2258#ifdef USE_VOICE_ASSISTANT
2260 public:
2261 static constexpr uint8_t MESSAGE_TYPE = 89;
2262 static constexpr uint8_t ESTIMATED_SIZE = 6;
2263#ifdef HAS_PROTO_MESSAGE_DUMP
2264 const char *message_name() const override { return "subscribe_voice_assistant_request"; }
2265#endif
2266 bool subscribe{false};
2267 uint32_t flags{0};
2268#ifdef HAS_PROTO_MESSAGE_DUMP
2269 const char *dump_to(DumpBuffer &out) const override;
2270#endif
2271
2272 protected:
2273 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2274};
2276 public:
2278 uint32_t auto_gain{0};
2280 void encode(ProtoWriteBuffer buffer) const override;
2281 void calculate_size(ProtoSize &size) const override;
2282#ifdef HAS_PROTO_MESSAGE_DUMP
2283 const char *dump_to(DumpBuffer &out) const override;
2284#endif
2285
2286 protected:
2287};
2289 public:
2290 static constexpr uint8_t MESSAGE_TYPE = 90;
2291 static constexpr uint8_t ESTIMATED_SIZE = 41;
2292#ifdef HAS_PROTO_MESSAGE_DUMP
2293 const char *message_name() const override { return "voice_assistant_request"; }
2294#endif
2295 bool start{false};
2297 uint32_t flags{0};
2300 void encode(ProtoWriteBuffer buffer) const override;
2301 void calculate_size(ProtoSize &size) const override;
2302#ifdef HAS_PROTO_MESSAGE_DUMP
2303 const char *dump_to(DumpBuffer &out) const override;
2304#endif
2305
2306 protected:
2307};
2309 public:
2310 static constexpr uint8_t MESSAGE_TYPE = 91;
2311 static constexpr uint8_t ESTIMATED_SIZE = 6;
2312#ifdef HAS_PROTO_MESSAGE_DUMP
2313 const char *message_name() const override { return "voice_assistant_response"; }
2314#endif
2315 uint32_t port{0};
2316 bool error{false};
2317#ifdef HAS_PROTO_MESSAGE_DUMP
2318 const char *dump_to(DumpBuffer &out) const override;
2319#endif
2320
2321 protected:
2322 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2323};
2325 public:
2328#ifdef HAS_PROTO_MESSAGE_DUMP
2329 const char *dump_to(DumpBuffer &out) const override;
2330#endif
2331
2332 protected:
2333 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2334};
2336 public:
2337 static constexpr uint8_t MESSAGE_TYPE = 92;
2338 static constexpr uint8_t ESTIMATED_SIZE = 36;
2339#ifdef HAS_PROTO_MESSAGE_DUMP
2340 const char *message_name() const override { return "voice_assistant_event_response"; }
2341#endif
2343 std::vector<VoiceAssistantEventData> data{};
2344#ifdef HAS_PROTO_MESSAGE_DUMP
2345 const char *dump_to(DumpBuffer &out) const override;
2346#endif
2347
2348 protected:
2349 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2350 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2351};
2353 public:
2354 static constexpr uint8_t MESSAGE_TYPE = 106;
2355 static constexpr uint8_t ESTIMATED_SIZE = 21;
2356#ifdef HAS_PROTO_MESSAGE_DUMP
2357 const char *message_name() const override { return "voice_assistant_audio"; }
2358#endif
2359 const uint8_t *data{nullptr};
2360 uint16_t data_len{0};
2361 bool end{false};
2362 void encode(ProtoWriteBuffer buffer) const override;
2363 void calculate_size(ProtoSize &size) const override;
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 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2371};
2373 public:
2374 static constexpr uint8_t MESSAGE_TYPE = 115;
2375 static constexpr uint8_t ESTIMATED_SIZE = 30;
2376#ifdef HAS_PROTO_MESSAGE_DUMP
2377 const char *message_name() const override { return "voice_assistant_timer_event_response"; }
2378#endif
2382 uint32_t total_seconds{0};
2383 uint32_t seconds_left{0};
2384 bool is_active{false};
2385#ifdef HAS_PROTO_MESSAGE_DUMP
2386 const char *dump_to(DumpBuffer &out) const override;
2387#endif
2388
2389 protected:
2390 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2391 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2392};
2394 public:
2395 static constexpr uint8_t MESSAGE_TYPE = 119;
2396 static constexpr uint8_t ESTIMATED_SIZE = 29;
2397#ifdef HAS_PROTO_MESSAGE_DUMP
2398 const char *message_name() const override { return "voice_assistant_announce_request"; }
2399#endif
2404#ifdef HAS_PROTO_MESSAGE_DUMP
2405 const char *dump_to(DumpBuffer &out) const override;
2406#endif
2407
2408 protected:
2409 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2410 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2411};
2413 public:
2414 static constexpr uint8_t MESSAGE_TYPE = 120;
2415 static constexpr uint8_t ESTIMATED_SIZE = 2;
2416#ifdef HAS_PROTO_MESSAGE_DUMP
2417 const char *message_name() const override { return "voice_assistant_announce_finished"; }
2418#endif
2419 bool success{false};
2420 void encode(ProtoWriteBuffer buffer) const override;
2421 void calculate_size(ProtoSize &size) const override;
2422#ifdef HAS_PROTO_MESSAGE_DUMP
2423 const char *dump_to(DumpBuffer &out) const override;
2424#endif
2425
2426 protected:
2427};
2429 public:
2432 std::vector<std::string> trained_languages{};
2433 void encode(ProtoWriteBuffer buffer) const override;
2434 void calculate_size(ProtoSize &size) const override;
2435#ifdef HAS_PROTO_MESSAGE_DUMP
2436 const char *dump_to(DumpBuffer &out) const override;
2437#endif
2438
2439 protected:
2440};
2442 public:
2445 std::vector<std::string> trained_languages{};
2447 uint32_t model_size{0};
2450#ifdef HAS_PROTO_MESSAGE_DUMP
2451 const char *dump_to(DumpBuffer &out) const override;
2452#endif
2453
2454 protected:
2455 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2456 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2457};
2459 public:
2460 static constexpr uint8_t MESSAGE_TYPE = 121;
2461 static constexpr uint8_t ESTIMATED_SIZE = 34;
2462#ifdef HAS_PROTO_MESSAGE_DUMP
2463 const char *message_name() const override { return "voice_assistant_configuration_request"; }
2464#endif
2465 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
2466#ifdef HAS_PROTO_MESSAGE_DUMP
2467 const char *dump_to(DumpBuffer &out) const override;
2468#endif
2469
2470 protected:
2471 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2472};
2474 public:
2475 static constexpr uint8_t MESSAGE_TYPE = 122;
2476 static constexpr uint8_t ESTIMATED_SIZE = 56;
2477#ifdef HAS_PROTO_MESSAGE_DUMP
2478 const char *message_name() const override { return "voice_assistant_configuration_response"; }
2479#endif
2480 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2481 const std::vector<std::string> *active_wake_words{};
2483 void encode(ProtoWriteBuffer buffer) const override;
2484 void calculate_size(ProtoSize &size) const override;
2485#ifdef HAS_PROTO_MESSAGE_DUMP
2486 const char *dump_to(DumpBuffer &out) const override;
2487#endif
2488
2489 protected:
2490};
2492 public:
2493 static constexpr uint8_t MESSAGE_TYPE = 123;
2494 static constexpr uint8_t ESTIMATED_SIZE = 18;
2495#ifdef HAS_PROTO_MESSAGE_DUMP
2496 const char *message_name() const override { return "voice_assistant_set_configuration"; }
2497#endif
2498 std::vector<std::string> active_wake_words{};
2499#ifdef HAS_PROTO_MESSAGE_DUMP
2500 const char *dump_to(DumpBuffer &out) const override;
2501#endif
2502
2503 protected:
2504 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2505};
2506#endif
2507#ifdef USE_ALARM_CONTROL_PANEL
2509 public:
2510 static constexpr uint8_t MESSAGE_TYPE = 94;
2511 static constexpr uint8_t ESTIMATED_SIZE = 48;
2512#ifdef HAS_PROTO_MESSAGE_DUMP
2513 const char *message_name() const override { return "list_entities_alarm_control_panel_response"; }
2514#endif
2516 bool requires_code{false};
2518 void encode(ProtoWriteBuffer buffer) const override;
2519 void calculate_size(ProtoSize &size) const override;
2520#ifdef HAS_PROTO_MESSAGE_DUMP
2521 const char *dump_to(DumpBuffer &out) const override;
2522#endif
2523
2524 protected:
2525};
2527 public:
2528 static constexpr uint8_t MESSAGE_TYPE = 95;
2529 static constexpr uint8_t ESTIMATED_SIZE = 11;
2530#ifdef HAS_PROTO_MESSAGE_DUMP
2531 const char *message_name() const override { return "alarm_control_panel_state_response"; }
2532#endif
2534 void encode(ProtoWriteBuffer buffer) const override;
2535 void calculate_size(ProtoSize &size) const override;
2536#ifdef HAS_PROTO_MESSAGE_DUMP
2537 const char *dump_to(DumpBuffer &out) const override;
2538#endif
2539
2540 protected:
2541};
2543 public:
2544 static constexpr uint8_t MESSAGE_TYPE = 96;
2545 static constexpr uint8_t ESTIMATED_SIZE = 20;
2546#ifdef HAS_PROTO_MESSAGE_DUMP
2547 const char *message_name() const override { return "alarm_control_panel_command_request"; }
2548#endif
2551#ifdef HAS_PROTO_MESSAGE_DUMP
2552 const char *dump_to(DumpBuffer &out) const override;
2553#endif
2554
2555 protected:
2556 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2557 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2558 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2559};
2560#endif
2561#ifdef USE_TEXT
2563 public:
2564 static constexpr uint8_t MESSAGE_TYPE = 97;
2565 static constexpr uint8_t ESTIMATED_SIZE = 59;
2566#ifdef HAS_PROTO_MESSAGE_DUMP
2567 const char *message_name() const override { return "list_entities_text_response"; }
2568#endif
2569 uint32_t min_length{0};
2570 uint32_t max_length{0};
2573 void encode(ProtoWriteBuffer buffer) const override;
2574 void calculate_size(ProtoSize &size) const override;
2575#ifdef HAS_PROTO_MESSAGE_DUMP
2576 const char *dump_to(DumpBuffer &out) const override;
2577#endif
2578
2579 protected:
2580};
2582 public:
2583 static constexpr uint8_t MESSAGE_TYPE = 98;
2584 static constexpr uint8_t ESTIMATED_SIZE = 20;
2585#ifdef HAS_PROTO_MESSAGE_DUMP
2586 const char *message_name() const override { return "text_state_response"; }
2587#endif
2589 bool missing_state{false};
2590 void encode(ProtoWriteBuffer buffer) const override;
2591 void calculate_size(ProtoSize &size) const override;
2592#ifdef HAS_PROTO_MESSAGE_DUMP
2593 const char *dump_to(DumpBuffer &out) const override;
2594#endif
2595
2596 protected:
2597};
2599 public:
2600 static constexpr uint8_t MESSAGE_TYPE = 99;
2601 static constexpr uint8_t ESTIMATED_SIZE = 18;
2602#ifdef HAS_PROTO_MESSAGE_DUMP
2603 const char *message_name() const override { return "text_command_request"; }
2604#endif
2606#ifdef HAS_PROTO_MESSAGE_DUMP
2607 const char *dump_to(DumpBuffer &out) const override;
2608#endif
2609
2610 protected:
2611 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2612 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2613 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2614};
2615#endif
2616#ifdef USE_DATETIME_DATE
2618 public:
2619 static constexpr uint8_t MESSAGE_TYPE = 100;
2620 static constexpr uint8_t ESTIMATED_SIZE = 40;
2621#ifdef HAS_PROTO_MESSAGE_DUMP
2622 const char *message_name() const override { return "list_entities_date_response"; }
2623#endif
2624 void encode(ProtoWriteBuffer buffer) const override;
2625 void calculate_size(ProtoSize &size) const override;
2626#ifdef HAS_PROTO_MESSAGE_DUMP
2627 const char *dump_to(DumpBuffer &out) const override;
2628#endif
2629
2630 protected:
2631};
2633 public:
2634 static constexpr uint8_t MESSAGE_TYPE = 101;
2635 static constexpr uint8_t ESTIMATED_SIZE = 23;
2636#ifdef HAS_PROTO_MESSAGE_DUMP
2637 const char *message_name() const override { return "date_state_response"; }
2638#endif
2639 bool missing_state{false};
2640 uint32_t year{0};
2641 uint32_t month{0};
2642 uint32_t day{0};
2643 void encode(ProtoWriteBuffer buffer) const override;
2644 void calculate_size(ProtoSize &size) const override;
2645#ifdef HAS_PROTO_MESSAGE_DUMP
2646 const char *dump_to(DumpBuffer &out) const override;
2647#endif
2648
2649 protected:
2650};
2652 public:
2653 static constexpr uint8_t MESSAGE_TYPE = 102;
2654 static constexpr uint8_t ESTIMATED_SIZE = 21;
2655#ifdef HAS_PROTO_MESSAGE_DUMP
2656 const char *message_name() const override { return "date_command_request"; }
2657#endif
2658 uint32_t year{0};
2659 uint32_t month{0};
2660 uint32_t day{0};
2661#ifdef HAS_PROTO_MESSAGE_DUMP
2662 const char *dump_to(DumpBuffer &out) const override;
2663#endif
2664
2665 protected:
2666 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2667 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2668};
2669#endif
2670#ifdef USE_DATETIME_TIME
2672 public:
2673 static constexpr uint8_t MESSAGE_TYPE = 103;
2674 static constexpr uint8_t ESTIMATED_SIZE = 40;
2675#ifdef HAS_PROTO_MESSAGE_DUMP
2676 const char *message_name() const override { return "list_entities_time_response"; }
2677#endif
2678 void encode(ProtoWriteBuffer buffer) const override;
2679 void calculate_size(ProtoSize &size) const override;
2680#ifdef HAS_PROTO_MESSAGE_DUMP
2681 const char *dump_to(DumpBuffer &out) const override;
2682#endif
2683
2684 protected:
2685};
2687 public:
2688 static constexpr uint8_t MESSAGE_TYPE = 104;
2689 static constexpr uint8_t ESTIMATED_SIZE = 23;
2690#ifdef HAS_PROTO_MESSAGE_DUMP
2691 const char *message_name() const override { return "time_state_response"; }
2692#endif
2693 bool missing_state{false};
2694 uint32_t hour{0};
2695 uint32_t minute{0};
2696 uint32_t second{0};
2697 void encode(ProtoWriteBuffer buffer) const override;
2698 void calculate_size(ProtoSize &size) const override;
2699#ifdef HAS_PROTO_MESSAGE_DUMP
2700 const char *dump_to(DumpBuffer &out) const override;
2701#endif
2702
2703 protected:
2704};
2706 public:
2707 static constexpr uint8_t MESSAGE_TYPE = 105;
2708 static constexpr uint8_t ESTIMATED_SIZE = 21;
2709#ifdef HAS_PROTO_MESSAGE_DUMP
2710 const char *message_name() const override { return "time_command_request"; }
2711#endif
2712 uint32_t hour{0};
2713 uint32_t minute{0};
2714 uint32_t second{0};
2715#ifdef HAS_PROTO_MESSAGE_DUMP
2716 const char *dump_to(DumpBuffer &out) const override;
2717#endif
2718
2719 protected:
2720 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2721 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2722};
2723#endif
2724#ifdef USE_EVENT
2726 public:
2727 static constexpr uint8_t MESSAGE_TYPE = 107;
2728 static constexpr uint8_t ESTIMATED_SIZE = 67;
2729#ifdef HAS_PROTO_MESSAGE_DUMP
2730 const char *message_name() const override { return "list_entities_event_response"; }
2731#endif
2734 void encode(ProtoWriteBuffer buffer) const override;
2735 void calculate_size(ProtoSize &size) const override;
2736#ifdef HAS_PROTO_MESSAGE_DUMP
2737 const char *dump_to(DumpBuffer &out) const override;
2738#endif
2739
2740 protected:
2741};
2743 public:
2744 static constexpr uint8_t MESSAGE_TYPE = 108;
2745 static constexpr uint8_t ESTIMATED_SIZE = 18;
2746#ifdef HAS_PROTO_MESSAGE_DUMP
2747 const char *message_name() const override { return "event_response"; }
2748#endif
2750 void encode(ProtoWriteBuffer buffer) const override;
2751 void calculate_size(ProtoSize &size) const override;
2752#ifdef HAS_PROTO_MESSAGE_DUMP
2753 const char *dump_to(DumpBuffer &out) const override;
2754#endif
2755
2756 protected:
2757};
2758#endif
2759#ifdef USE_VALVE
2761 public:
2762 static constexpr uint8_t MESSAGE_TYPE = 109;
2763 static constexpr uint8_t ESTIMATED_SIZE = 55;
2764#ifdef HAS_PROTO_MESSAGE_DUMP
2765 const char *message_name() const override { return "list_entities_valve_response"; }
2766#endif
2768 bool assumed_state{false};
2770 bool supports_stop{false};
2771 void encode(ProtoWriteBuffer buffer) const override;
2772 void calculate_size(ProtoSize &size) const override;
2773#ifdef HAS_PROTO_MESSAGE_DUMP
2774 const char *dump_to(DumpBuffer &out) const override;
2775#endif
2776
2777 protected:
2778};
2780 public:
2781 static constexpr uint8_t MESSAGE_TYPE = 110;
2782 static constexpr uint8_t ESTIMATED_SIZE = 16;
2783#ifdef HAS_PROTO_MESSAGE_DUMP
2784 const char *message_name() const override { return "valve_state_response"; }
2785#endif
2786 float position{0.0f};
2788 void encode(ProtoWriteBuffer buffer) const override;
2789 void calculate_size(ProtoSize &size) const override;
2790#ifdef HAS_PROTO_MESSAGE_DUMP
2791 const char *dump_to(DumpBuffer &out) const override;
2792#endif
2793
2794 protected:
2795};
2797 public:
2798 static constexpr uint8_t MESSAGE_TYPE = 111;
2799 static constexpr uint8_t ESTIMATED_SIZE = 18;
2800#ifdef HAS_PROTO_MESSAGE_DUMP
2801 const char *message_name() const override { return "valve_command_request"; }
2802#endif
2803 bool has_position{false};
2804 float position{0.0f};
2805 bool stop{false};
2806#ifdef HAS_PROTO_MESSAGE_DUMP
2807 const char *dump_to(DumpBuffer &out) const override;
2808#endif
2809
2810 protected:
2811 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2812 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2813};
2814#endif
2815#ifdef USE_DATETIME_DATETIME
2817 public:
2818 static constexpr uint8_t MESSAGE_TYPE = 112;
2819 static constexpr uint8_t ESTIMATED_SIZE = 40;
2820#ifdef HAS_PROTO_MESSAGE_DUMP
2821 const char *message_name() const override { return "list_entities_date_time_response"; }
2822#endif
2823 void encode(ProtoWriteBuffer buffer) const override;
2824 void calculate_size(ProtoSize &size) const override;
2825#ifdef HAS_PROTO_MESSAGE_DUMP
2826 const char *dump_to(DumpBuffer &out) const override;
2827#endif
2828
2829 protected:
2830};
2832 public:
2833 static constexpr uint8_t MESSAGE_TYPE = 113;
2834 static constexpr uint8_t ESTIMATED_SIZE = 16;
2835#ifdef HAS_PROTO_MESSAGE_DUMP
2836 const char *message_name() const override { return "date_time_state_response"; }
2837#endif
2838 bool missing_state{false};
2839 uint32_t epoch_seconds{0};
2840 void encode(ProtoWriteBuffer buffer) const override;
2841 void calculate_size(ProtoSize &size) const override;
2842#ifdef HAS_PROTO_MESSAGE_DUMP
2843 const char *dump_to(DumpBuffer &out) const override;
2844#endif
2845
2846 protected:
2847};
2849 public:
2850 static constexpr uint8_t MESSAGE_TYPE = 114;
2851 static constexpr uint8_t ESTIMATED_SIZE = 14;
2852#ifdef HAS_PROTO_MESSAGE_DUMP
2853 const char *message_name() const override { return "date_time_command_request"; }
2854#endif
2855 uint32_t epoch_seconds{0};
2856#ifdef HAS_PROTO_MESSAGE_DUMP
2857 const char *dump_to(DumpBuffer &out) const override;
2858#endif
2859
2860 protected:
2861 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2862 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2863};
2864#endif
2865#ifdef USE_UPDATE
2867 public:
2868 static constexpr uint8_t MESSAGE_TYPE = 116;
2869 static constexpr uint8_t ESTIMATED_SIZE = 49;
2870#ifdef HAS_PROTO_MESSAGE_DUMP
2871 const char *message_name() const override { return "list_entities_update_response"; }
2872#endif
2874 void encode(ProtoWriteBuffer buffer) const override;
2875 void calculate_size(ProtoSize &size) const override;
2876#ifdef HAS_PROTO_MESSAGE_DUMP
2877 const char *dump_to(DumpBuffer &out) const override;
2878#endif
2879
2880 protected:
2881};
2883 public:
2884 static constexpr uint8_t MESSAGE_TYPE = 117;
2885 static constexpr uint8_t ESTIMATED_SIZE = 65;
2886#ifdef HAS_PROTO_MESSAGE_DUMP
2887 const char *message_name() const override { return "update_state_response"; }
2888#endif
2889 bool missing_state{false};
2890 bool in_progress{false};
2891 bool has_progress{false};
2892 float progress{0.0f};
2898 void encode(ProtoWriteBuffer buffer) const override;
2899 void calculate_size(ProtoSize &size) const override;
2900#ifdef HAS_PROTO_MESSAGE_DUMP
2901 const char *dump_to(DumpBuffer &out) const override;
2902#endif
2903
2904 protected:
2905};
2907 public:
2908 static constexpr uint8_t MESSAGE_TYPE = 118;
2909 static constexpr uint8_t ESTIMATED_SIZE = 11;
2910#ifdef HAS_PROTO_MESSAGE_DUMP
2911 const char *message_name() const override { return "update_command_request"; }
2912#endif
2914#ifdef HAS_PROTO_MESSAGE_DUMP
2915 const char *dump_to(DumpBuffer &out) const override;
2916#endif
2917
2918 protected:
2919 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2920 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2921};
2922#endif
2923#ifdef USE_ZWAVE_PROXY
2925 public:
2926 static constexpr uint8_t MESSAGE_TYPE = 128;
2927 static constexpr uint8_t ESTIMATED_SIZE = 19;
2928#ifdef HAS_PROTO_MESSAGE_DUMP
2929 const char *message_name() const override { return "z_wave_proxy_frame"; }
2930#endif
2931 const uint8_t *data{nullptr};
2932 uint16_t data_len{0};
2933 void encode(ProtoWriteBuffer buffer) const override;
2934 void calculate_size(ProtoSize &size) const override;
2935#ifdef HAS_PROTO_MESSAGE_DUMP
2936 const char *dump_to(DumpBuffer &out) const override;
2937#endif
2938
2939 protected:
2940 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2941};
2943 public:
2944 static constexpr uint8_t MESSAGE_TYPE = 129;
2945 static constexpr uint8_t ESTIMATED_SIZE = 21;
2946#ifdef HAS_PROTO_MESSAGE_DUMP
2947 const char *message_name() const override { return "z_wave_proxy_request"; }
2948#endif
2950 const uint8_t *data{nullptr};
2951 uint16_t data_len{0};
2952 void encode(ProtoWriteBuffer buffer) const override;
2953 void calculate_size(ProtoSize &size) const override;
2954#ifdef HAS_PROTO_MESSAGE_DUMP
2955 const char *dump_to(DumpBuffer &out) const override;
2956#endif
2957
2958 protected:
2959 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2960 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2961};
2962#endif
2963#ifdef USE_INFRARED
2965 public:
2966 static constexpr uint8_t MESSAGE_TYPE = 135;
2967 static constexpr uint8_t ESTIMATED_SIZE = 44;
2968#ifdef HAS_PROTO_MESSAGE_DUMP
2969 const char *message_name() const override { return "list_entities_infrared_response"; }
2970#endif
2971 uint32_t capabilities{0};
2972 void encode(ProtoWriteBuffer buffer) const override;
2973 void calculate_size(ProtoSize &size) const override;
2974#ifdef HAS_PROTO_MESSAGE_DUMP
2975 const char *dump_to(DumpBuffer &out) const override;
2976#endif
2977
2978 protected:
2979};
2980#endif
2981#ifdef USE_IR_RF
2983 public:
2984 static constexpr uint8_t MESSAGE_TYPE = 136;
2985 static constexpr uint8_t ESTIMATED_SIZE = 220;
2986#ifdef HAS_PROTO_MESSAGE_DUMP
2987 const char *message_name() const override { return "infrared_rf_transmit_raw_timings_request"; }
2988#endif
2989#ifdef USE_DEVICES
2990 uint32_t device_id{0};
2991#endif
2992 uint32_t key{0};
2994 uint32_t repeat_count{0};
2995 const uint8_t *timings_data_{nullptr};
2996 uint16_t timings_length_{0};
2997 uint16_t timings_count_{0};
2998#ifdef HAS_PROTO_MESSAGE_DUMP
2999 const char *dump_to(DumpBuffer &out) const override;
3000#endif
3001
3002 protected:
3003 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3004 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3005 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
3006};
3008 public:
3009 static constexpr uint8_t MESSAGE_TYPE = 137;
3010 static constexpr uint8_t ESTIMATED_SIZE = 17;
3011#ifdef HAS_PROTO_MESSAGE_DUMP
3012 const char *message_name() const override { return "infrared_rf_receive_event"; }
3013#endif
3014#ifdef USE_DEVICES
3015 uint32_t device_id{0};
3016#endif
3017 uint32_t key{0};
3018 const std::vector<int32_t> *timings{};
3019 void encode(ProtoWriteBuffer buffer) const override;
3020 void calculate_size(ProtoSize &size) const override;
3021#ifdef HAS_PROTO_MESSAGE_DUMP
3022 const char *dump_to(DumpBuffer &out) const override;
3023#endif
3024
3025 protected:
3026};
3027#endif
3028
3029} // namespace esphome::api
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
Definition helpers.h:227
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:2761
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2735
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2547
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2549
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2750
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2545
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2529
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2728
enums::AlarmControlPanelState state
Definition api_pb2.h:2533
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2528
const char * message_name() const override
Definition api_pb2.h:2531
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2721
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
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:209
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:571
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:572
const char * message_name() const override
Definition api_pb2.h:574
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:2109
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2315
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2105
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2324
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2384
const char * message_name() const override
Definition api_pb2.h:2211
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2379
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1862
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2106
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2112
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2364
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2173
const char * message_name() const override
Definition api_pb2.h:2175
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2172
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2359
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1841
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1847
const char * message_name() const override
Definition api_pb2.h:1844
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1842
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2087
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2369
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2193
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2374
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2144
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:1909
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2156
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1906
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2136
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1893
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2128
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2333
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2121
const char * message_name() const override
Definition api_pb2.h:2123
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2338
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2120
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2196
const char * message_name() const override
Definition api_pb2.h:1955
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2199
const char * message_name() const override
Definition api_pb2.h:1881
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1879
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2118
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:2192
const char * message_name() const override
Definition api_pb2.h:1938
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2186
std::vector< BluetoothGATTService > services
Definition api_pb2.h:1941
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2305
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2088
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2310
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2080
const char * message_name() const override
Definition api_pb2.h:2082
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2063
const char * message_name() const override
Definition api_pb2.h:2065
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2062
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2289
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2155
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2156
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2355
const char * message_name() const override
Definition api_pb2.h:2158
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2351
const char * message_name() const override
Definition api_pb2.h:2030
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2251
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2200
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1968
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1971
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1969
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2213
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1984
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1993
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1985
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2218
const char * message_name() const override
Definition api_pb2.h:1987
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:1923
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2177
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2166
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1921
const char * message_name() const override
Definition api_pb2.h:2046
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2277
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2264
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2239
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2008
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2010
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2223
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2007
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2347
const char * message_name() const override
Definition api_pb2.h:2141
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2139
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2343
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2138
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2071
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2065
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1829
const char * message_name() const override
Definition api_pb2.h:1827
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2077
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2082
const char * message_name() const override
Definition api_pb2.h:2247
enums::BluetoothScannerMode mode
Definition api_pb2.h:2249
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2244
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2399
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2245
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2389
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2227
enums::BluetoothScannerMode mode
Definition api_pb2.h:2232
enums::BluetoothScannerState state
Definition api_pb2.h:2231
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2226
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2233
const char * message_name() const override
Definition api_pb2.h:2229
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2394
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1700
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1909
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1703
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1921
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1701
const char * message_name() const override
Definition api_pb2.h:1282
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1280
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1279
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1166
const char * dump_to(DumpBuffer &out) const override
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1264
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1158
const char * message_name() const override
Definition api_pb2.h:1260
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1258
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1257
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1150
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1386
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1358
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1359
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1374
const char * message_name() const override
Definition api_pb2.h:1361
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1372
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1317
enums::ClimatePreset preset
Definition api_pb2.h:1378
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1371
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1341
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1342
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1330
const char * message_name() const override
Definition api_pb2.h:1333
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1340
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1279
enums::ClimatePreset preset
Definition api_pb2.h:1344
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1298
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1331
~CommandProtoMessage() override=default
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:628
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:629
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:631
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:611
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:263
const char * message_name() const override
Definition api_pb2.h:613
enums::CoverOperation current_operation
Definition api_pb2.h:617
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:272
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:610
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2925
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2653
const char * message_name() const override
Definition api_pb2.h:2656
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2904
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2654
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2884
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2634
const char * message_name() const override
Definition api_pb2.h:2637
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2894
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2635
const char * message_name() const override
Definition api_pb2.h:2853
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2851
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2850
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3205
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3193
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3185
const char * message_name() const override
Definition api_pb2.h:2836
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2833
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2834
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3177
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:62
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:57
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:68
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:476
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:123
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:519
const char * message_name() const override
Definition api_pb2.h:479
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:477
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:516
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:395
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:396
const char * message_name() const override
Definition api_pb2.h:398
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:408
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:409
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:411
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:350
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3059
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3052
const char * message_name() const override
Definition api_pb2.h:2747
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2744
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2745
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length) override
Definition api_pb2.cpp:1050
FixedVector< float > float_array
Definition api_pb2.h:1177
FixedVector< std::string > string_array
Definition api_pb2.h:1178
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1023
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1001
FixedVector< int32_t > int_array
Definition api_pb2.h:1176
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1037
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1191
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1197
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1061
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1192
void decode(const uint8_t *buffer, size_t length) override
Definition api_pb2.cpp:1099
const char * message_name() const override
Definition api_pb2.h:1194
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1089
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1078
const char * message_name() const override
Definition api_pb2.h:1221
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1114
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1106
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1219
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1218
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:690
const char * message_name() const override
Definition api_pb2.h:693
const char * dump_to(DumpBuffer &out) const override
enums::FanDirection direction
Definition api_pb2.h:700
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:691
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:434
enums::FanDirection direction
Definition api_pb2.h:677
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:362
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:671
const char * message_name() const override
Definition api_pb2.h:673
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:373
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:670
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1108
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1111
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1109
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1124
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:968
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:957
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1122
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1121
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:361
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:359
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:358
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:376
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:377
const char * message_name() const override
Definition api_pb2.h:379
const char * message_name() const override
Definition api_pb2.h:1093
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1090
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1091
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:937
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1025
FixedVector< HomeassistantServiceMap > data
Definition api_pb2.h:1023
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1018
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1024
const char * message_name() const override
Definition api_pb2.h:1020
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:876
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:854
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1017
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:1051
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1049
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1048
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
~InfoResponseProtoMessage() override=default
enums::EntityCategory entity_category
Definition api_pb2.h:327
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3010
const char * message_name() const override
Definition api_pb2.h:3012
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3422
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3431
const std::vector< int32_t > * timings
Definition api_pb2.h:3018
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3009
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3412
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2987
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3399
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3381
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:767
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:764
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:765
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:492
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:738
enums::ColorMode color_mode
Definition api_pb2.h:744
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:737
const char * message_name() const override
Definition api_pb2.h:740
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:510
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:2705
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2689
const char * message_name() const override
Definition api_pb2.h:2513
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:179
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:194
const char * message_name() const override
Definition api_pb2.h:557
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:555
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1685
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1684
const char * message_name() const override
Definition api_pb2.h:1687
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1895
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1881
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1245
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1242
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1137
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1124
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1243
const std::vector< const char * > * supported_custom_presets
Definition api_pb2.h:1313
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1310
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1298
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1311
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1297
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1224
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1312
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1309
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1181
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1304
const char * message_name() const override
Definition api_pb2.h:1300
const char * message_name() const override
Definition api_pb2.h:593
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:591
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:590
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:227
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2620
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2858
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2871
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2619
const char * message_name() const override
Definition api_pb2.h:2622
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3164
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2818
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2819
const char * message_name() const override
Definition api_pb2.h:2821
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3151
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:540
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:541
const char * message_name() const override
Definition api_pb2.h:543
const FixedVector< const char * > * event_types
Definition api_pb2.h:2733
const char * message_name() const override
Definition api_pb2.h:2730
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3033
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3016
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2728
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2727
const char * message_name() const override
Definition api_pb2.h:653
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:659
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:651
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:650
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:320
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:340
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3365
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3351
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2966
const char * message_name() const override
Definition api_pb2.h:2969
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2967
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:719
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:467
const char * message_name() const override
Definition api_pb2.h:721
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * effects
Definition api_pb2.h:726
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:723
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:718
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:446
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1792
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1628
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1809
const char * message_name() const override
Definition api_pb2.h:1631
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1629
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1733
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1947
const char * message_name() const override
Definition api_pb2.h:1735
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1965
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1738
const char * message_name() const override
Definition api_pb2.h:1463
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1537
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1461
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1460
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1518
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1516
const char * message_name() const override
Definition api_pb2.h:1519
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1615
const FixedVector< const char * > * options
Definition api_pb2.h:1521
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1599
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1517
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:811
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:638
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:656
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:809
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:808
enums::SensorStateClass state_class
Definition api_pb2.h:817
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:983
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:979
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:995
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:987
const char * message_name() const override
Definition api_pb2.h:1154
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1151
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1152
enums::SupportsResponseType supports_response
Definition api_pb2.h:1159
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1158
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1684
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1571
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1702
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1568
const FixedVector< const char * > * tones
Definition api_pb2.h:1573
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1569
const char * message_name() const override
Definition api_pb2.h:850
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:848
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:847
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:707
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2564
const char * message_name() const override
Definition api_pb2.h:2567
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2790
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2565
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2773
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:777
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:763
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:898
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:899
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:901
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2937
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2950
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2674
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2676
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2673
const char * message_name() const override
Definition api_pb2.h:2871
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3234
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2868
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2869
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3220
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2762
const char * message_name() const override
Definition api_pb2.h:2765
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2763
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3085
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3068
const char * dump_to(DumpBuffer &out) const override
const water_heater::WaterHeaterModeMask * supported_modes
Definition api_pb2.h:1404
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1430
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1410
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1397
const char * message_name() const override
Definition api_pb2.h:1399
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1663
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1840
const char * message_name() const override
Definition api_pb2.h:1666
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1869
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1664
enums::LockCommand command
Definition api_pb2.h:1668
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1858
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1648
const char * message_name() const override
Definition api_pb2.h:1650
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1647
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1833
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1826
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1769
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerCommand command
Definition api_pb2.h:1774
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2040
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1999
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2029
const char * message_name() const override
Definition api_pb2.h:1771
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1768
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1990
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1750
enums::MediaPlayerState state
Definition api_pb2.h:1755
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1981
const char * message_name() const override
Definition api_pb2.h:1753
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1751
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1940
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1720
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1933
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:971
const char * message_name() const override
Definition api_pb2.h:974
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:972
const char * message_name() const override
Definition api_pb2.h:990
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:988
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:987
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1498
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1584
const char * message_name() const override
Definition api_pb2.h:1501
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1499
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1572
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1556
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1484
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1482
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1481
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1564
const char * message_name() const override
Definition api_pb2.h:424
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:421
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:422
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:434
const char * message_name() const override
Definition api_pb2.h:437
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:435
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:101
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1661
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1649
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1550
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1549
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1672
const char * message_name() const override
Definition api_pb2.h:1552
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1533
const char * message_name() const override
Definition api_pb2.h:1535
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1633
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1641
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1532
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:682
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:674
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:829
const char * message_name() const override
Definition api_pb2.h:831
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:828
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1766
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1736
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1603
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1777
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1602
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:1605
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1729
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1587
const char * message_name() const override
Definition api_pb2.h:1589
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1586
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1722
const char * dump_to(DumpBuffer &out) const override
~StateResponseProtoMessage() override=default
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2055
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:932
const char * message_name() const override
Definition api_pb2.h:1075
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:927
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:935
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:933
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:932
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:948
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:949
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:956
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:821
const char * message_name() const override
Definition api_pb2.h:951
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2264
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2261
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2411
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2262
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:883
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:880
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:881
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:867
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:865
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:729
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:864
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2835
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2601
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2846
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2603
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2823
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2600
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:799
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:791
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:914
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:915
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:917
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2584
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2583
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2815
const char * message_name() const override
Definition api_pb2.h:2586
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2807
const char * dump_to(DumpBuffer &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3004
const char * message_name() const override
Definition api_pb2.h:2710
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2707
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2983
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2708
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2688
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2689
const char * message_name() const override
Definition api_pb2.h:2691
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2973
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2963
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2909
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3293
enums::UpdateCommand command
Definition api_pb2.h:2913
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3278
const char * message_name() const override
Definition api_pb2.h:2911
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2908
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2885
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2887
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3263
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3248
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2884
const char * message_name() const override
Definition api_pb2.h:2801
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2798
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3118
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2799
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3136
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3102
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2782
const char * message_name() const override
Definition api_pb2.h:2784
enums::ValveOperation current_operation
Definition api_pb2.h:2787
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2781
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3110
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2591
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2415
const char * message_name() const override
Definition api_pb2.h:2417
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2414
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2590
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2571
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2396
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2395
const char * message_name() const override
Definition api_pb2.h:2398
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2561
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2519
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2523
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2357
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2507
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2355
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2354
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2497
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2424
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2429
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2463
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2648
const char * dump_to(DumpBuffer &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2465
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2668
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2480
const char * message_name() const override
Definition api_pb2.h:2478
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2481
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2659
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2461
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2486
const char * message_name() const override
Definition api_pb2.h:2340
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2338
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2337
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2342
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2476
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2343
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2618
const char * dump_to(DumpBuffer &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2608
std::vector< std::string > trained_languages
Definition api_pb2.h:2445
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2441
const char * message_name() const override
Definition api_pb2.h:2293
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2290
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2298
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2291
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2434
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2313
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2311
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2310
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2448
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2494
std::vector< std::string > active_wake_words
Definition api_pb2.h:2498
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2493
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2677
const char * dump_to(DumpBuffer &out) const override
const char * message_name() const override
Definition api_pb2.h:2496
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2379
const char * dump_to(DumpBuffer &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2546
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2527
const char * message_name() const override
Definition api_pb2.h:2377
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2592
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2599
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2432
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1497
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1476
const char * message_name() const override
Definition api_pb2.h:1440
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1438
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1437
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1416
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1417
const char * message_name() const override
Definition api_pb2.h:1419
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1464
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1452
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2927
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3305
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3317
const char * dump_to(DumpBuffer &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3318
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2926
const char * message_name() const override
Definition api_pb2.h:2929
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2945
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3345
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3329
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3319
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2944
const char * message_name() const override
Definition api_pb2.h:2947
enums::ZWaveProxyRequestType type
Definition api_pb2.h:2949
const char * dump_to(DumpBuffer &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3341
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:181
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:271
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:73
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:76
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:75
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:236
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:235
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:137
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:138
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:203
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:202
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:37
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:44
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:40
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:45
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:259
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:258
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:261
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:260
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:195
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:196
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:193
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:192
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:199
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:197
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:249
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:254
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:251
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:255
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:253
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:250
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:211
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:212
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:208
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:210
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:213
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:214
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:209
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:225
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:226
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:222
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:218
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:221
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:219
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:220
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:150
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:144
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:147
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:151
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:148
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:146
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:145
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:149
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:309
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:310
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:311
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:281
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:283
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:282
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:231
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:230
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:52
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:54
std::string size_t len
Definition helpers.h:692
size_t size
Definition helpers.h:729
uint16_t length
Definition tt21100.cpp:0