ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
api_pb2.h
Go to the documentation of this file.
1// This file was automatically generated with a tool.
2// See script/api_protobuf/api_protobuf.py
3#pragma once
4
6
7#include "proto.h"
8#include "api_pb2_includes.h"
9
10namespace esphome::api {
11
12// Upper bound on message IDs, enforced by the code generator: the plaintext
13// frame header budgets 2 varint bytes for the type (HEADER_PADDING).
14static constexpr uint16_t MAX_MESSAGE_TYPE = 16383;
15
16namespace enums {
17
37#ifdef USE_COVER
43#endif
44#ifdef USE_FAN
49#endif
50#ifdef USE_LIGHT
64#endif
65#ifdef USE_SENSOR
73#endif
90#ifdef USE_API_USER_DEFINED_ACTIONS
107#endif
113#ifdef USE_CLIMATE
160#endif
161#ifdef USE_WATER_HEATER
171#endif
182#ifdef USE_NUMBER
188#endif
189#ifdef USE_LOCK
205#endif
206#ifdef USE_MEDIA_PLAYER
236#endif
237#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
247#endif
248#ifdef USE_BLUETOOTH_PROXY
261#endif
271#ifdef USE_VOICE_ASSISTANT
296#endif
297#ifdef USE_ALARM_CONTROL_PANEL
319#endif
320#ifdef USE_TEXT
325#endif
326#ifdef USE_VALVE
332#endif
333#ifdef USE_UPDATE
339#endif
340#ifdef USE_ZWAVE_PROXY
351#endif
352#ifdef USE_SERIAL_PROXY
384#endif
390#ifdef USE_SENDSPIN
398#endif
399
400} // namespace enums
401
403 public:
408#ifdef USE_ENTITY_ICON
410#endif
412#ifdef USE_DEVICES
414#endif
415
416 protected:
418};
419
421 public:
423#ifdef USE_DEVICES
425#endif
426
427 protected:
429};
430
432 public:
434#ifdef USE_DEVICES
436#endif
437
438 protected:
440};
442 public:
443 static constexpr uint16_t MESSAGE_TYPE = 1;
444 static constexpr uint8_t ESTIMATED_SIZE = 19;
445#ifdef HAS_PROTO_MESSAGE_DUMP
446 const LogString *message_name() const override { return LOG_STR("hello_request"); }
447#endif
451#ifdef USE_API_OUTGOING_CONNECTION
453#endif
454 void decode(const uint8_t *buffer, size_t length) {
456 }
457#ifdef HAS_PROTO_MESSAGE_DUMP
458 const char *dump_to(DumpBuffer &out) const override;
459#endif
460
461 protected:
462 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
463};
464class HelloResponse final : public ProtoMessage {
465 public:
466 static constexpr uint16_t MESSAGE_TYPE = 2;
467 static constexpr uint8_t ESTIMATED_SIZE = 26;
468#ifdef HAS_PROTO_MESSAGE_DUMP
469 const LogString *message_name() const override { return LOG_STR("hello_response"); }
470#endif
475 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
476 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
477 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
478 }
479 static uint32_t calc_size_msg(const void *self);
480 uint32_t calculate_size() const { return calc_size_msg(this); }
481#ifdef HAS_PROTO_MESSAGE_DUMP
482 const char *dump_to(DumpBuffer &out) const override;
483#endif
484
485 protected:
486};
488 public:
489 static constexpr uint16_t MESSAGE_TYPE = 5;
490 static constexpr uint8_t ESTIMATED_SIZE = 2;
491#ifdef HAS_PROTO_MESSAGE_DUMP
492 const LogString *message_name() const override { return LOG_STR("disconnect_request"); }
493#endif
495 void decode(const uint8_t *buffer, size_t length) {
497 }
498 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
499 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
500 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
501 }
502 static uint32_t calc_size_msg(const void *self);
503 uint32_t calculate_size() const { return calc_size_msg(this); }
504#ifdef HAS_PROTO_MESSAGE_DUMP
505 const char *dump_to(DumpBuffer &out) const override;
506#endif
507
508 protected:
509 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
510};
511class DisconnectResponse final : public ProtoMessage {
512 public:
513 static constexpr uint16_t MESSAGE_TYPE = 6;
514 static constexpr uint8_t ESTIMATED_SIZE = 0;
515#ifdef HAS_PROTO_MESSAGE_DUMP
516 const LogString *message_name() const override { return LOG_STR("disconnect_response"); }
517#endif
518#ifdef HAS_PROTO_MESSAGE_DUMP
519 const char *dump_to(DumpBuffer &out) const override;
520#endif
521
522 protected:
523};
524class PingRequest final : public ProtoMessage {
525 public:
526 static constexpr uint16_t MESSAGE_TYPE = 7;
527 static constexpr uint8_t ESTIMATED_SIZE = 0;
528#ifdef HAS_PROTO_MESSAGE_DUMP
529 const LogString *message_name() const override { return LOG_STR("ping_request"); }
530#endif
531#ifdef HAS_PROTO_MESSAGE_DUMP
532 const char *dump_to(DumpBuffer &out) const override;
533#endif
534
535 protected:
536};
537class PingResponse final : public ProtoMessage {
538 public:
539 static constexpr uint16_t MESSAGE_TYPE = 8;
540 static constexpr uint8_t ESTIMATED_SIZE = 0;
541#ifdef HAS_PROTO_MESSAGE_DUMP
542 const LogString *message_name() const override { return LOG_STR("ping_response"); }
543#endif
544#ifdef HAS_PROTO_MESSAGE_DUMP
545 const char *dump_to(DumpBuffer &out) const override;
546#endif
547
548 protected:
549};
550#ifdef USE_AREAS
551class AreaInfo final : public ProtoMessage {
552 public:
555 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
556 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
557 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
558 }
559 static uint32_t calc_size_msg(const void *self);
560 uint32_t calculate_size() const { return calc_size_msg(this); }
561#ifdef HAS_PROTO_MESSAGE_DUMP
562 const char *dump_to(DumpBuffer &out) const override;
563#endif
564
565 protected:
566};
567#endif
568#ifdef USE_DEVICES
569class DeviceInfo final : public ProtoMessage {
570 public:
575 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
576 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
577 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
578 }
579 static uint32_t calc_size_msg(const void *self);
580 uint32_t calculate_size() const { return calc_size_msg(this); }
581#ifdef HAS_PROTO_MESSAGE_DUMP
582 const char *dump_to(DumpBuffer &out) const override;
583#endif
584
585 protected:
586};
587#endif
588#ifdef USE_SERIAL_PROXY
589class SerialProxyInfo final : public ProtoMessage {
590 public:
591 StringRef name{nullptr, 0}; // null until set, encode only
594 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
595 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
596 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
597 }
598 static uint32_t calc_size_msg(const void *self);
599 uint32_t calculate_size() const { return calc_size_msg(this); }
600#ifdef HAS_PROTO_MESSAGE_DUMP
601 const char *dump_to(DumpBuffer &out) const override;
602#endif
603
604 protected:
605};
606#endif
607class DeviceInfoResponse final : public ProtoMessage {
608 public:
609 static constexpr uint16_t MESSAGE_TYPE = 10;
610 static constexpr uint16_t ESTIMATED_SIZE = 315;
611#ifdef HAS_PROTO_MESSAGE_DUMP
612 const LogString *message_name() const override { return LOG_STR("device_info_response"); }
613#endif
619#ifdef USE_DEEP_SLEEP
620 bool has_deep_sleep{false};
621#endif
622#ifdef ESPHOME_PROJECT_NAME
624#endif
625#ifdef ESPHOME_PROJECT_NAME
627#endif
628#ifdef USE_WEBSERVER
630#endif
631#ifdef USE_BLUETOOTH_PROXY
633#endif
636#ifdef USE_VOICE_ASSISTANT
638#endif
639#ifdef USE_AREAS
641#endif
642#ifdef USE_BLUETOOTH_PROXY
644#endif
645#ifdef USE_API_NOISE
647#endif
648#ifdef USE_DEVICES
649 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
650#endif
651#ifdef USE_AREAS
652 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
653#endif
654#ifdef USE_AREAS
656#endif
657#ifdef USE_ZWAVE_PROXY
659#endif
660#ifdef USE_ZWAVE_PROXY
662#endif
663#ifdef USE_SERIAL_PROXY
664 std::array<SerialProxyInfo, SERIAL_PROXY_COUNT> serial_proxies{};
665#endif
666#ifdef USE_API_NOISE
668#endif
669#ifdef USE_API_OUTGOING_CONNECTION
671#endif
672 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
673 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
674 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
675 }
676 static uint32_t calc_size_msg(const void *self);
677 uint32_t calculate_size() const { return calc_size_msg(this); }
678#ifdef HAS_PROTO_MESSAGE_DUMP
679 const char *dump_to(DumpBuffer &out) const override;
680#endif
681
682 protected:
683};
684#ifdef USE_BLUETOOTH_PROXY
686 public:
689 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
690 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
691 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
692 }
693 static uint32_t calc_size_msg(const void *self);
694 uint32_t calculate_size() const { return calc_size_msg(this); }
695#ifdef HAS_PROTO_MESSAGE_DUMP
696 const char *dump_to(DumpBuffer &out) const override;
697#endif
698
699 protected:
700};
701#endif
702#ifdef USE_VOICE_ASSISTANT
704 public:
706 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
707 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
708 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
709 }
710 static uint32_t calc_size_msg(const void *self);
711 uint32_t calculate_size() const { return calc_size_msg(this); }
712#ifdef HAS_PROTO_MESSAGE_DUMP
713 const char *dump_to(DumpBuffer &out) const override;
714#endif
715
716 protected:
717};
718#endif
719#ifdef USE_ZWAVE_PROXY
721 public:
724 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
725 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
726 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
727 }
728 static uint32_t calc_size_msg(const void *self);
729 uint32_t calculate_size() const { return calc_size_msg(this); }
730#ifdef HAS_PROTO_MESSAGE_DUMP
731 const char *dump_to(DumpBuffer &out) const override;
732#endif
733
734 protected:
735};
736#endif
737#ifdef USE_API_WIZARD
738class WizardCapabilities final : public ProtoMessage {
739 public:
740 bool configured{false};
741 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
742 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
743 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
744 }
745 static uint32_t calc_size_msg(const void *self);
746 uint32_t calculate_size() const { return calc_size_msg(this); }
747#ifdef HAS_PROTO_MESSAGE_DUMP
748 const char *dump_to(DumpBuffer &out) const override;
749#endif
750
751 protected:
752};
753#endif
754#ifdef USE_SENDSPIN
755class SendspinCapabilities final : public ProtoMessage {
756 public:
758 StringRef client_id{nullptr, 0}; // null until set, encode only
759 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
760 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
761 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
762 }
763 static uint32_t calc_size_msg(const void *self);
764 uint32_t calculate_size() const { return calc_size_msg(this); }
765#ifdef HAS_PROTO_MESSAGE_DUMP
766 const char *dump_to(DumpBuffer &out) const override;
767#endif
768
769 protected:
770};
771#endif
773 public:
774 static constexpr uint16_t MESSAGE_TYPE = 150;
775 static constexpr uint8_t ESTIMATED_SIZE = 136;
776#ifdef HAS_PROTO_MESSAGE_DUMP
777 const LogString *message_name() const override { return LOG_STR("device_capabilities_response"); }
778#endif
779#ifdef USE_BLUETOOTH_PROXY
781#endif
782#ifdef USE_VOICE_ASSISTANT
784#endif
785#ifdef USE_ZWAVE_PROXY
787#endif
788#ifdef USE_SERIAL_PROXY
789 std::array<SerialProxyInfo, SERIAL_PROXY_COUNT> serial_proxies{};
790#endif
791#ifdef USE_API_WIZARD
793#endif
794#ifdef USE_SENDSPIN
796#endif
797 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
798 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
799 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
800 }
801 static uint32_t calc_size_msg(const void *self);
802 uint32_t calculate_size() const { return calc_size_msg(this); }
803#ifdef HAS_PROTO_MESSAGE_DUMP
804 const char *dump_to(DumpBuffer &out) const override;
805#endif
806
807 protected:
808};
809#ifdef USE_API_WIZARD
810class DeviceWizardResponse final : public ProtoMessage {
811 public:
812 static constexpr uint16_t MESSAGE_TYPE = 157;
813 static constexpr uint8_t ESTIMATED_SIZE = 19;
814#ifdef HAS_PROTO_MESSAGE_DUMP
815 const LogString *message_name() const override { return LOG_STR("device_wizard_response"); }
816#endif
817 const uint8_t *data{nullptr};
818 uint16_t data_len{0};
819 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
820 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
821 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
822 }
823 static uint32_t calc_size_msg(const void *self);
824 uint32_t calculate_size() const { return calc_size_msg(this); }
825#ifdef HAS_PROTO_MESSAGE_DUMP
826 const char *dump_to(DumpBuffer &out) const override;
827#endif
828
829 protected:
830};
831#endif
832#ifdef USE_API_WIZARD_INPUTS
834 public:
835 static constexpr uint16_t MESSAGE_TYPE = 158;
836 static constexpr uint8_t ESTIMATED_SIZE = 14;
837#ifdef HAS_PROTO_MESSAGE_DUMP
838 const LogString *message_name() const override { return LOG_STR("wizard_input_set_request"); }
839#endif
842 void decode(const uint8_t *buffer, size_t length) {
844 }
845#ifdef HAS_PROTO_MESSAGE_DUMP
846 const char *dump_to(DumpBuffer &out) const override;
847#endif
848
849 protected:
850 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
851};
852#endif
854 public:
855 static constexpr uint16_t MESSAGE_TYPE = 19;
856 static constexpr uint8_t ESTIMATED_SIZE = 0;
857#ifdef HAS_PROTO_MESSAGE_DUMP
858 const LogString *message_name() const override { return LOG_STR("list_entities_done_response"); }
859#endif
860#ifdef HAS_PROTO_MESSAGE_DUMP
861 const char *dump_to(DumpBuffer &out) const override;
862#endif
863
864 protected:
865};
866#ifdef USE_BINARY_SENSOR
868 public:
869 static constexpr uint16_t MESSAGE_TYPE = 12;
870 static constexpr uint8_t ESTIMATED_SIZE = 51;
871#ifdef HAS_PROTO_MESSAGE_DUMP
872 const LogString *message_name() const override { return LOG_STR("list_entities_binary_sensor_response"); }
873#endif
876 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
877 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
878 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
879 }
880 static uint32_t calc_size_msg(const void *self);
881 uint32_t calculate_size() const { return calc_size_msg(this); }
882#ifdef HAS_PROTO_MESSAGE_DUMP
883 const char *dump_to(DumpBuffer &out) const override;
884#endif
885
886 protected:
887};
889 public:
890 static constexpr uint16_t MESSAGE_TYPE = 21;
891 static constexpr uint8_t ESTIMATED_SIZE = 13;
892#ifdef HAS_PROTO_MESSAGE_DUMP
893 const LogString *message_name() const override { return LOG_STR("binary_sensor_state_response"); }
894#endif
895 bool state{false};
896 bool missing_state{false};
897 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
898 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
899 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
900 }
901 static uint32_t calc_size_msg(const void *self);
902 uint32_t calculate_size() const { return calc_size_msg(this); }
903#ifdef HAS_PROTO_MESSAGE_DUMP
904 const char *dump_to(DumpBuffer &out) const override;
905#endif
906
907 protected:
908};
909#endif
910#ifdef USE_COVER
912 public:
913 static constexpr uint16_t MESSAGE_TYPE = 13;
914 static constexpr uint8_t ESTIMATED_SIZE = 61;
915#ifdef HAS_PROTO_MESSAGE_DUMP
916 const LogString *message_name() const override { return LOG_STR("list_entities_cover_response"); }
917#endif
918 bool assumed_state{false};
919 bool supports_position{false};
920 bool supports_tilt{false};
922 bool supports_stop{false};
924 bool supports_toggle{false};
925 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
926 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
927 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
928 }
929 static uint32_t calc_size_msg(const void *self);
930 uint32_t calculate_size() const { return calc_size_msg(this); }
931#ifdef HAS_PROTO_MESSAGE_DUMP
932 const char *dump_to(DumpBuffer &out) const override;
933#endif
934
935 protected:
936};
938 public:
939 static constexpr uint16_t MESSAGE_TYPE = 22;
940 static constexpr uint8_t ESTIMATED_SIZE = 21;
941#ifdef HAS_PROTO_MESSAGE_DUMP
942 const LogString *message_name() const override { return LOG_STR("cover_state_response"); }
943#endif
944 float position{0.0f};
945 float tilt{0.0f};
947 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
948 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
949 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
950 }
951 static uint32_t calc_size_msg(const void *self);
952 uint32_t calculate_size() const { return calc_size_msg(this); }
953#ifdef HAS_PROTO_MESSAGE_DUMP
954 const char *dump_to(DumpBuffer &out) const override;
955#endif
956
957 protected:
958};
960 public:
961 static constexpr uint16_t MESSAGE_TYPE = 30;
962 static constexpr uint8_t ESTIMATED_SIZE = 29;
963#ifdef HAS_PROTO_MESSAGE_DUMP
964 const LogString *message_name() const override { return LOG_STR("cover_command_request"); }
965#endif
966 bool has_position{false};
967 float position{0.0f};
968 bool has_tilt{false};
969 float tilt{0.0f};
970 bool stop{false};
971 bool stop_tilt{false};
972 bool toggle{false};
973 void decode(const uint8_t *buffer, size_t length) {
975 }
976#ifdef HAS_PROTO_MESSAGE_DUMP
977 const char *dump_to(DumpBuffer &out) const override;
978#endif
979
980 protected:
981 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
982};
983#endif
984#ifdef USE_FAN
986 public:
987 static constexpr uint16_t MESSAGE_TYPE = 14;
988 static constexpr uint8_t ESTIMATED_SIZE = 68;
989#ifdef HAS_PROTO_MESSAGE_DUMP
990 const LogString *message_name() const override { return LOG_STR("list_entities_fan_response"); }
991#endif
993 bool supports_speed{false};
997 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
998 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
999 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1000 }
1001 static uint32_t calc_size_msg(const void *self);
1002 uint32_t calculate_size() const { return calc_size_msg(this); }
1003#ifdef HAS_PROTO_MESSAGE_DUMP
1004 const char *dump_to(DumpBuffer &out) const override;
1005#endif
1006
1007 protected:
1008};
1010 public:
1011 static constexpr uint16_t MESSAGE_TYPE = 23;
1012 static constexpr uint8_t ESTIMATED_SIZE = 28;
1013#ifdef HAS_PROTO_MESSAGE_DUMP
1014 const LogString *message_name() const override { return LOG_STR("fan_state_response"); }
1015#endif
1016 bool state{false};
1017 bool oscillating{false};
1019 int32_t speed_level{0};
1020 StringRef preset_mode{nullptr, 0}; // null until set, encode only
1021 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1022 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1023 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1024 }
1025 static uint32_t calc_size_msg(const void *self);
1026 uint32_t calculate_size() const { return calc_size_msg(this); }
1027#ifdef HAS_PROTO_MESSAGE_DUMP
1028 const char *dump_to(DumpBuffer &out) const override;
1029#endif
1030
1031 protected:
1032};
1034 public:
1035 static constexpr uint16_t MESSAGE_TYPE = 31;
1036 static constexpr uint8_t ESTIMATED_SIZE = 38;
1037#ifdef HAS_PROTO_MESSAGE_DUMP
1038 const LogString *message_name() const override { return LOG_STR("fan_command_request"); }
1039#endif
1040 bool has_state{false};
1041 bool state{false};
1042 bool has_oscillating{false};
1043 bool oscillating{false};
1044 bool has_direction{false};
1046 bool has_speed_level{false};
1047 int32_t speed_level{0};
1048 bool has_preset_mode{false};
1050 void decode(const uint8_t *buffer, size_t length) {
1052 }
1053#ifdef HAS_PROTO_MESSAGE_DUMP
1054 const char *dump_to(DumpBuffer &out) const override;
1055#endif
1056
1057 protected:
1058 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1059};
1060#endif
1061#ifdef USE_LIGHT
1063 public:
1064 static constexpr uint16_t MESSAGE_TYPE = 15;
1065 static constexpr uint8_t ESTIMATED_SIZE = 73;
1066#ifdef HAS_PROTO_MESSAGE_DUMP
1067 const LogString *message_name() const override { return LOG_STR("list_entities_light_response"); }
1068#endif
1070 float min_mireds{0.0f};
1071 float max_mireds{0.0f};
1073 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1074 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1075 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1076 }
1077 static uint32_t calc_size_msg(const void *self);
1078 uint32_t calculate_size() const { return calc_size_msg(this); }
1079#ifdef HAS_PROTO_MESSAGE_DUMP
1080 const char *dump_to(DumpBuffer &out) const override;
1081#endif
1082
1083 protected:
1084};
1086 public:
1087 static constexpr uint16_t MESSAGE_TYPE = 24;
1088 static constexpr uint8_t ESTIMATED_SIZE = 67;
1089#ifdef HAS_PROTO_MESSAGE_DUMP
1090 const LogString *message_name() const override { return LOG_STR("light_state_response"); }
1091#endif
1092 bool state{false};
1093 float brightness{0.0f};
1095 float color_brightness{0.0f};
1096 float red{0.0f};
1097 float green{0.0f};
1098 float blue{0.0f};
1099 float white{0.0f};
1101 float cold_white{0.0f};
1102 float warm_white{0.0f};
1103 StringRef effect{nullptr, 0}; // null until set, encode only
1104 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1105 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1106 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1107 }
1108 static uint32_t calc_size_msg(const void *self);
1109 uint32_t calculate_size() const { return calc_size_msg(this); }
1110#ifdef HAS_PROTO_MESSAGE_DUMP
1111 const char *dump_to(DumpBuffer &out) const override;
1112#endif
1113
1114 protected:
1115};
1117 public:
1118 static constexpr uint16_t MESSAGE_TYPE = 32;
1119 static constexpr uint8_t ESTIMATED_SIZE = 112;
1120#ifdef HAS_PROTO_MESSAGE_DUMP
1121 const LogString *message_name() const override { return LOG_STR("light_command_request"); }
1122#endif
1123 bool has_state{false};
1124 bool state{false};
1125 bool has_brightness{false};
1126 float brightness{0.0f};
1127 bool has_color_mode{false};
1130 float color_brightness{0.0f};
1131 bool has_rgb{false};
1132 float red{0.0f};
1133 float green{0.0f};
1134 float blue{0.0f};
1135 bool has_white{false};
1136 float white{0.0f};
1139 bool has_cold_white{false};
1140 float cold_white{0.0f};
1141 bool has_warm_white{false};
1142 float warm_white{0.0f};
1145 bool has_flash_length{false};
1147 bool has_effect{false};
1149 void decode(const uint8_t *buffer, size_t length) {
1151 }
1152#ifdef HAS_PROTO_MESSAGE_DUMP
1153 const char *dump_to(DumpBuffer &out) const override;
1154#endif
1155
1156 protected:
1157 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1158};
1159#endif
1160#ifdef USE_SENSOR
1162 public:
1163 static constexpr uint16_t MESSAGE_TYPE = 16;
1164 static constexpr uint8_t ESTIMATED_SIZE = 66;
1165#ifdef HAS_PROTO_MESSAGE_DUMP
1166 const LogString *message_name() const override { return LOG_STR("list_entities_sensor_response"); }
1167#endif
1168 StringRef unit_of_measurement{nullptr, 0}; // null until set, encode only
1170 bool force_update{false};
1173 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1174 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1175 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1176 }
1177 static uint32_t calc_size_msg(const void *self);
1178 uint32_t calculate_size() const { return calc_size_msg(this); }
1179#ifdef HAS_PROTO_MESSAGE_DUMP
1180 const char *dump_to(DumpBuffer &out) const override;
1181#endif
1182
1183 protected:
1184};
1186 public:
1187 static constexpr uint16_t MESSAGE_TYPE = 25;
1188 static constexpr uint8_t ESTIMATED_SIZE = 16;
1189#ifdef HAS_PROTO_MESSAGE_DUMP
1190 const LogString *message_name() const override { return LOG_STR("sensor_state_response"); }
1191#endif
1192 float state{0.0f};
1193 bool missing_state{false};
1194 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1195 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1196 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1197 }
1198 static uint32_t calc_size_msg(const void *self);
1199 uint32_t calculate_size() const { return calc_size_msg(this); }
1200#ifdef HAS_PROTO_MESSAGE_DUMP
1201 const char *dump_to(DumpBuffer &out) const override;
1202#endif
1203
1204 protected:
1205};
1206#endif
1207#ifdef USE_SWITCH
1209 public:
1210 static constexpr uint16_t MESSAGE_TYPE = 17;
1211 static constexpr uint8_t ESTIMATED_SIZE = 51;
1212#ifdef HAS_PROTO_MESSAGE_DUMP
1213 const LogString *message_name() const override { return LOG_STR("list_entities_switch_response"); }
1214#endif
1215 bool assumed_state{false};
1217 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1218 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1219 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1220 }
1221 static uint32_t calc_size_msg(const void *self);
1222 uint32_t calculate_size() const { return calc_size_msg(this); }
1223#ifdef HAS_PROTO_MESSAGE_DUMP
1224 const char *dump_to(DumpBuffer &out) const override;
1225#endif
1226
1227 protected:
1228};
1230 public:
1231 static constexpr uint16_t MESSAGE_TYPE = 26;
1232 static constexpr uint8_t ESTIMATED_SIZE = 13;
1233#ifdef HAS_PROTO_MESSAGE_DUMP
1234 const LogString *message_name() const override { return LOG_STR("switch_state_response"); }
1235#endif
1236 bool state{false};
1237 bool missing_state{false};
1238 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1239 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1240 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1241 }
1242 static uint32_t calc_size_msg(const void *self);
1243 uint32_t calculate_size() const { return calc_size_msg(this); }
1244#ifdef HAS_PROTO_MESSAGE_DUMP
1245 const char *dump_to(DumpBuffer &out) const override;
1246#endif
1247
1248 protected:
1249};
1251 public:
1252 static constexpr uint16_t MESSAGE_TYPE = 33;
1253 static constexpr uint8_t ESTIMATED_SIZE = 11;
1254#ifdef HAS_PROTO_MESSAGE_DUMP
1255 const LogString *message_name() const override { return LOG_STR("switch_command_request"); }
1256#endif
1257 bool state{false};
1258 void decode(const uint8_t *buffer, size_t length) {
1260 }
1261#ifdef HAS_PROTO_MESSAGE_DUMP
1262 const char *dump_to(DumpBuffer &out) const override;
1263#endif
1264
1265 protected:
1266 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1267};
1268#endif
1269#ifdef USE_TEXT_SENSOR
1271 public:
1272 static constexpr uint16_t MESSAGE_TYPE = 18;
1273 static constexpr uint8_t ESTIMATED_SIZE = 49;
1274#ifdef HAS_PROTO_MESSAGE_DUMP
1275 const LogString *message_name() const override { return LOG_STR("list_entities_text_sensor_response"); }
1276#endif
1278 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1279 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1280 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1281 }
1282 static uint32_t calc_size_msg(const void *self);
1283 uint32_t calculate_size() const { return calc_size_msg(this); }
1284#ifdef HAS_PROTO_MESSAGE_DUMP
1285 const char *dump_to(DumpBuffer &out) const override;
1286#endif
1287
1288 protected:
1289};
1291 public:
1292 static constexpr uint16_t MESSAGE_TYPE = 27;
1293 static constexpr uint8_t ESTIMATED_SIZE = 20;
1294#ifdef HAS_PROTO_MESSAGE_DUMP
1295 const LogString *message_name() const override { return LOG_STR("text_sensor_state_response"); }
1296#endif
1297 StringRef state{nullptr, 0}; // null until set, encode only
1298 bool missing_state{false};
1299 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1300 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1301 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1302 }
1303 static uint32_t calc_size_msg(const void *self);
1304 uint32_t calculate_size() const { return calc_size_msg(this); }
1305#ifdef HAS_PROTO_MESSAGE_DUMP
1306 const char *dump_to(DumpBuffer &out) const override;
1307#endif
1308
1309 protected:
1310};
1311#endif
1313 public:
1314 static constexpr uint16_t MESSAGE_TYPE = 28;
1315 static constexpr uint8_t ESTIMATED_SIZE = 4;
1316#ifdef HAS_PROTO_MESSAGE_DUMP
1317 const LogString *message_name() const override { return LOG_STR("subscribe_logs_request"); }
1318#endif
1320 bool dump_config{false};
1321 void decode(const uint8_t *buffer, size_t length) {
1323 }
1324#ifdef HAS_PROTO_MESSAGE_DUMP
1325 const char *dump_to(DumpBuffer &out) const override;
1326#endif
1327
1328 protected:
1329 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1330};
1332 public:
1333 static constexpr uint16_t MESSAGE_TYPE = 29;
1334 static constexpr uint8_t ESTIMATED_SIZE = 21;
1335#ifdef HAS_PROTO_MESSAGE_DUMP
1336 const LogString *message_name() const override { return LOG_STR("subscribe_logs_response"); }
1337#endif
1339 const uint8_t *message_ptr_{nullptr};
1340 size_t message_len_{0};
1341 void set_message(const uint8_t *data, size_t len) {
1342 this->message_ptr_ = data;
1343 this->message_len_ = len;
1344 }
1345 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1346 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1347 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1348 }
1349 static uint32_t calc_size_msg(const void *self);
1350 uint32_t calculate_size() const { return calc_size_msg(this); }
1351#ifdef HAS_PROTO_MESSAGE_DUMP
1352 const char *dump_to(DumpBuffer &out) const override;
1353#endif
1354
1355 protected:
1356};
1357#ifdef USE_API_NOISE
1359 public:
1360 static constexpr uint16_t MESSAGE_TYPE = 124;
1361 static constexpr uint8_t ESTIMATED_SIZE = 19;
1362#ifdef HAS_PROTO_MESSAGE_DUMP
1363 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_request"); }
1364#endif
1365 const uint8_t *key{nullptr};
1366 uint16_t key_len{0};
1367 void decode(const uint8_t *buffer, size_t length) {
1369 }
1370#ifdef HAS_PROTO_MESSAGE_DUMP
1371 const char *dump_to(DumpBuffer &out) const override;
1372#endif
1373
1374 protected:
1375 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1376};
1378 public:
1379 static constexpr uint16_t MESSAGE_TYPE = 125;
1380 static constexpr uint8_t ESTIMATED_SIZE = 2;
1381#ifdef HAS_PROTO_MESSAGE_DUMP
1382 const LogString *message_name() const override { return LOG_STR("noise_encryption_set_key_response"); }
1383#endif
1384 bool success{false};
1385 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1386 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1387 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1388 }
1389 static uint32_t calc_size_msg(const void *self);
1390 uint32_t calculate_size() const { return calc_size_msg(this); }
1391#ifdef HAS_PROTO_MESSAGE_DUMP
1392 const char *dump_to(DumpBuffer &out) const override;
1393#endif
1394
1395 protected:
1396};
1397#endif
1398#ifdef USE_API_HOMEASSISTANT_SERVICES
1400 public:
1403 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1404 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1405 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1406 }
1407 static uint32_t calc_size_msg(const void *self);
1408 uint32_t calculate_size() const { return calc_size_msg(this); }
1409#ifdef HAS_PROTO_MESSAGE_DUMP
1410 const char *dump_to(DumpBuffer &out) const override;
1411#endif
1412
1413 protected:
1414};
1416 public:
1417 static constexpr uint16_t MESSAGE_TYPE = 35;
1418 static constexpr uint8_t ESTIMATED_SIZE = 128;
1419#ifdef HAS_PROTO_MESSAGE_DUMP
1420 const LogString *message_name() const override { return LOG_STR("homeassistant_action_request"); }
1421#endif
1426 bool is_event{false};
1427#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1429#endif
1430#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1431 bool wants_response{false};
1432#endif
1433#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1434 StringRef response_template{nullptr, 0}; // null until set, encode only
1435#endif
1436 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1437 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1438 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1439 }
1440 static uint32_t calc_size_msg(const void *self);
1441 uint32_t calculate_size() const { return calc_size_msg(this); }
1442#ifdef HAS_PROTO_MESSAGE_DUMP
1443 const char *dump_to(DumpBuffer &out) const override;
1444#endif
1445
1446 protected:
1447};
1448#endif
1449#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1451 public:
1452 static constexpr uint16_t MESSAGE_TYPE = 130;
1453 static constexpr uint8_t ESTIMATED_SIZE = 34;
1454#ifdef HAS_PROTO_MESSAGE_DUMP
1455 const LogString *message_name() const override { return LOG_STR("homeassistant_action_response"); }
1456#endif
1458 bool success{false};
1460#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1461 const uint8_t *response_data{nullptr};
1463#endif
1464 void decode(const uint8_t *buffer, size_t length) {
1466 }
1467#ifdef HAS_PROTO_MESSAGE_DUMP
1468 const char *dump_to(DumpBuffer &out) const override;
1469#endif
1470
1471 protected:
1472 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1473};
1474#endif
1475#ifdef USE_API_HOMEASSISTANT_STATES
1477 public:
1478 static constexpr uint16_t MESSAGE_TYPE = 39;
1479 static constexpr uint8_t ESTIMATED_SIZE = 20;
1480#ifdef HAS_PROTO_MESSAGE_DUMP
1481 const LogString *message_name() const override { return LOG_STR("subscribe_home_assistant_state_response"); }
1482#endif
1483 StringRef entity_id{nullptr, 0}; // null until set, encode only
1484 StringRef attribute{nullptr, 0}; // null until set, encode only
1485 bool once{false};
1486 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1487 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1488 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1489 }
1490 static uint32_t calc_size_msg(const void *self);
1491 uint32_t calculate_size() const { return calc_size_msg(this); }
1492#ifdef HAS_PROTO_MESSAGE_DUMP
1493 const char *dump_to(DumpBuffer &out) const override;
1494#endif
1495
1496 protected:
1497};
1499 public:
1500 static constexpr uint16_t MESSAGE_TYPE = 40;
1501 static constexpr uint8_t ESTIMATED_SIZE = 27;
1502#ifdef HAS_PROTO_MESSAGE_DUMP
1503 const LogString *message_name() const override { return LOG_STR("home_assistant_state_response"); }
1504#endif
1508 void decode(const uint8_t *buffer, size_t length) {
1510 }
1511#ifdef HAS_PROTO_MESSAGE_DUMP
1512 const char *dump_to(DumpBuffer &out) const override;
1513#endif
1514
1515 protected:
1516 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1517};
1518#endif
1519class GetTimeRequest final : public ProtoMessage {
1520 public:
1521 static constexpr uint16_t MESSAGE_TYPE = 36;
1522 static constexpr uint8_t ESTIMATED_SIZE = 0;
1523#ifdef HAS_PROTO_MESSAGE_DUMP
1524 const LogString *message_name() const override { return LOG_STR("get_time_request"); }
1525#endif
1526#ifdef HAS_PROTO_MESSAGE_DUMP
1527 const char *dump_to(DumpBuffer &out) const override;
1528#endif
1529
1530 protected:
1531};
1532class DSTRule final : public ProtoDecodableMessage {
1533 public:
1534 int32_t time_seconds{0};
1540 void decode(const uint8_t *buffer, size_t length) {
1542 }
1543#ifdef HAS_PROTO_MESSAGE_DUMP
1544 const char *dump_to(DumpBuffer &out) const override;
1545#endif
1546
1547 protected:
1548 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1549};
1551 public:
1556 void decode(const uint8_t *buffer, size_t length) {
1558 }
1559#ifdef HAS_PROTO_MESSAGE_DUMP
1560 const char *dump_to(DumpBuffer &out) const override;
1561#endif
1562
1563 protected:
1564 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1565};
1567 public:
1568 static constexpr uint16_t MESSAGE_TYPE = 37;
1569 static constexpr uint8_t ESTIMATED_SIZE = 22;
1570#ifdef HAS_PROTO_MESSAGE_DUMP
1571 const LogString *message_name() const override { return LOG_STR("get_time_response"); }
1572#endif
1576 void decode(const uint8_t *buffer, size_t length) {
1578 }
1579#ifdef HAS_PROTO_MESSAGE_DUMP
1580 const char *dump_to(DumpBuffer &out) const override;
1581#endif
1582
1583 protected:
1584 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1585};
1586#ifdef USE_API_USER_DEFINED_ACTIONS
1588 public:
1591#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1593#endif
1594#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1596#endif
1597#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1598 bool optional{false};
1599#endif
1600#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1602#endif
1603 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1604 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1605 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1606 }
1607 static uint32_t calc_size_msg(const void *self);
1608 uint32_t calculate_size() const { return calc_size_msg(this); }
1609#ifdef HAS_PROTO_MESSAGE_DUMP
1610 const char *dump_to(DumpBuffer &out) const override;
1611#endif
1612
1613 protected:
1614};
1616 public:
1617 static constexpr uint16_t MESSAGE_TYPE = 41;
1618 static constexpr uint8_t ESTIMATED_SIZE = 59;
1619#ifdef HAS_PROTO_MESSAGE_DUMP
1620 const LogString *message_name() const override { return LOG_STR("list_entities_services_response"); }
1621#endif
1626#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1628#endif
1629 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1630 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1631 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1632 }
1633 static uint32_t calc_size_msg(const void *self);
1634 uint32_t calculate_size() const { return calc_size_msg(this); }
1635#ifdef HAS_PROTO_MESSAGE_DUMP
1636 const char *dump_to(DumpBuffer &out) const override;
1637#endif
1638
1639 protected:
1640};
1642 public:
1643 bool bool_{false};
1644 int32_t legacy_int{0};
1645 float float_{0.0f};
1647 int32_t int_{0};
1652 void decode(const uint8_t *buffer, size_t length);
1653#ifdef HAS_PROTO_MESSAGE_DUMP
1654 const char *dump_to(DumpBuffer &out) const override;
1655#endif
1656
1657 protected:
1658 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1659};
1661 public:
1662 static constexpr uint16_t MESSAGE_TYPE = 42;
1663 static constexpr uint8_t ESTIMATED_SIZE = 45;
1664#ifdef HAS_PROTO_MESSAGE_DUMP
1665 const LogString *message_name() const override { return LOG_STR("execute_service_request"); }
1666#endif
1669#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1671#endif
1672#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1673 bool return_response{false};
1674#endif
1675 void decode(const uint8_t *buffer, size_t length);
1676#ifdef HAS_PROTO_MESSAGE_DUMP
1677 const char *dump_to(DumpBuffer &out) const override;
1678#endif
1679
1680 protected:
1681 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1682};
1683#endif
1684#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1686 public:
1687 static constexpr uint16_t MESSAGE_TYPE = 131;
1688 static constexpr uint8_t ESTIMATED_SIZE = 34;
1689#ifdef HAS_PROTO_MESSAGE_DUMP
1690 const LogString *message_name() const override { return LOG_STR("execute_service_response"); }
1691#endif
1693 bool success{false};
1694 StringRef error_message{nullptr, 0}; // null until set, encode only
1695#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1696 const uint8_t *response_data{nullptr};
1698#endif
1699 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1700 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1701 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1702 }
1703 static uint32_t calc_size_msg(const void *self);
1704 uint32_t calculate_size() const { return calc_size_msg(this); }
1705#ifdef HAS_PROTO_MESSAGE_DUMP
1706 const char *dump_to(DumpBuffer &out) const override;
1707#endif
1708
1709 protected:
1710};
1711#endif
1712#ifdef USE_CAMERA
1714 public:
1715 static constexpr uint16_t MESSAGE_TYPE = 43;
1716 static constexpr uint8_t ESTIMATED_SIZE = 40;
1717#ifdef HAS_PROTO_MESSAGE_DUMP
1718 const LogString *message_name() const override { return LOG_STR("list_entities_camera_response"); }
1719#endif
1720 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1721 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1722 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1723 }
1724 static uint32_t calc_size_msg(const void *self);
1725 uint32_t calculate_size() const { return calc_size_msg(this); }
1726#ifdef HAS_PROTO_MESSAGE_DUMP
1727 const char *dump_to(DumpBuffer &out) const override;
1728#endif
1729
1730 protected:
1731};
1733 public:
1734 static constexpr uint16_t MESSAGE_TYPE = 44;
1735 static constexpr uint8_t ESTIMATED_SIZE = 30;
1736#ifdef HAS_PROTO_MESSAGE_DUMP
1737 const LogString *message_name() const override { return LOG_STR("camera_image_response"); }
1738#endif
1739 const uint8_t *data_ptr_{nullptr};
1740 size_t data_len_{0};
1741 void set_data(const uint8_t *data, size_t len) {
1742 this->data_ptr_ = data;
1743 this->data_len_ = len;
1744 }
1745 bool done{false};
1746 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1747 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1748 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1749 }
1750 static uint32_t calc_size_msg(const void *self);
1751 uint32_t calculate_size() const { return calc_size_msg(this); }
1752#ifdef HAS_PROTO_MESSAGE_DUMP
1753 const char *dump_to(DumpBuffer &out) const override;
1754#endif
1755
1756 protected:
1757};
1759 public:
1760 static constexpr uint16_t MESSAGE_TYPE = 45;
1761 static constexpr uint8_t ESTIMATED_SIZE = 4;
1762#ifdef HAS_PROTO_MESSAGE_DUMP
1763 const LogString *message_name() const override { return LOG_STR("camera_image_request"); }
1764#endif
1765 bool single{false};
1766 bool stream{false};
1767 void decode(const uint8_t *buffer, size_t length) {
1769 }
1770#ifdef HAS_PROTO_MESSAGE_DUMP
1771 const char *dump_to(DumpBuffer &out) const override;
1772#endif
1773
1774 protected:
1775 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1776};
1777#endif
1778#ifdef USE_CLIMATE
1780 public:
1781 static constexpr uint16_t MESSAGE_TYPE = 46;
1782 static constexpr uint8_t ESTIMATED_SIZE = 153;
1783#ifdef HAS_PROTO_MESSAGE_DUMP
1784 const LogString *message_name() const override { return LOG_STR("list_entities_climate_response"); }
1785#endif
1792 bool supports_action{false};
1805 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1806 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1807 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1808 }
1809 static uint32_t calc_size_msg(const void *self);
1810 uint32_t calculate_size() const { return calc_size_msg(this); }
1811#ifdef HAS_PROTO_MESSAGE_DUMP
1812 const char *dump_to(DumpBuffer &out) const override;
1813#endif
1814
1815 protected:
1816};
1818 public:
1819 static constexpr uint16_t MESSAGE_TYPE = 47;
1820 static constexpr uint8_t ESTIMATED_SIZE = 71;
1821#ifdef HAS_PROTO_MESSAGE_DUMP
1822 const LogString *message_name() const override { return LOG_STR("climate_state_response"); }
1823#endif
1832 StringRef custom_fan_mode{nullptr, 0}; // null until set, encode only
1834 StringRef custom_preset{nullptr, 0}; // null until set, encode only
1835 float current_humidity{0.0f};
1836 float target_humidity{0.0f};
1837 bool missing_state{false};
1838 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1839 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1840 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1841 }
1842 static uint32_t calc_size_msg(const void *self);
1843 uint32_t calculate_size() const { return calc_size_msg(this); }
1844#ifdef HAS_PROTO_MESSAGE_DUMP
1845 const char *dump_to(DumpBuffer &out) const override;
1846#endif
1847
1848 protected:
1849};
1851 public:
1852 static constexpr uint16_t MESSAGE_TYPE = 48;
1853 static constexpr uint8_t ESTIMATED_SIZE = 84;
1854#ifdef HAS_PROTO_MESSAGE_DUMP
1855 const LogString *message_name() const override { return LOG_STR("climate_command_request"); }
1856#endif
1857 bool has_mode{false};
1865 bool has_fan_mode{false};
1867 bool has_swing_mode{false};
1871 bool has_preset{false};
1876 float target_humidity{0.0f};
1877 void decode(const uint8_t *buffer, size_t length) {
1879 }
1880#ifdef HAS_PROTO_MESSAGE_DUMP
1881 const char *dump_to(DumpBuffer &out) const override;
1882#endif
1883
1884 protected:
1885 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1886};
1887#endif
1888#ifdef USE_WATER_HEATER
1890 public:
1891 static constexpr uint16_t MESSAGE_TYPE = 132;
1892 static constexpr uint8_t ESTIMATED_SIZE = 65;
1893#ifdef HAS_PROTO_MESSAGE_DUMP
1894 const LogString *message_name() const override { return LOG_STR("list_entities_water_heater_response"); }
1895#endif
1896 float min_temperature{0.0f};
1897 float max_temperature{0.0f};
1902 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1903 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1904 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1905 }
1906 static uint32_t calc_size_msg(const void *self);
1907 uint32_t calculate_size() const { return calc_size_msg(this); }
1908#ifdef HAS_PROTO_MESSAGE_DUMP
1909 const char *dump_to(DumpBuffer &out) const override;
1910#endif
1911
1912 protected:
1913};
1915 public:
1916 static constexpr uint16_t MESSAGE_TYPE = 133;
1917 static constexpr uint8_t ESTIMATED_SIZE = 37;
1918#ifdef HAS_PROTO_MESSAGE_DUMP
1919 const LogString *message_name() const override { return LOG_STR("water_heater_state_response"); }
1920#endif
1927 bool missing_state{false};
1928 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1929 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1930 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1931 }
1932 static uint32_t calc_size_msg(const void *self);
1933 uint32_t calculate_size() const { return calc_size_msg(this); }
1934#ifdef HAS_PROTO_MESSAGE_DUMP
1935 const char *dump_to(DumpBuffer &out) const override;
1936#endif
1937
1938 protected:
1939};
1941 public:
1942 static constexpr uint16_t MESSAGE_TYPE = 134;
1943 static constexpr uint8_t ESTIMATED_SIZE = 34;
1944#ifdef HAS_PROTO_MESSAGE_DUMP
1945 const LogString *message_name() const override { return LOG_STR("water_heater_command_request"); }
1946#endif
1953 void decode(const uint8_t *buffer, size_t length) {
1955 }
1956#ifdef HAS_PROTO_MESSAGE_DUMP
1957 const char *dump_to(DumpBuffer &out) const override;
1958#endif
1959
1960 protected:
1961 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
1962};
1963#endif
1964#ifdef USE_NUMBER
1966 public:
1967 static constexpr uint16_t MESSAGE_TYPE = 49;
1968 static constexpr uint8_t ESTIMATED_SIZE = 75;
1969#ifdef HAS_PROTO_MESSAGE_DUMP
1970 const LogString *message_name() const override { return LOG_STR("list_entities_number_response"); }
1971#endif
1972 float min_value{0.0f};
1973 float max_value{0.0f};
1974 float step{0.0f};
1975 StringRef unit_of_measurement{nullptr, 0}; // null until set, encode only
1978 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
1979 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
1980 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
1981 }
1982 static uint32_t calc_size_msg(const void *self);
1983 uint32_t calculate_size() const { return calc_size_msg(this); }
1984#ifdef HAS_PROTO_MESSAGE_DUMP
1985 const char *dump_to(DumpBuffer &out) const override;
1986#endif
1987
1988 protected:
1989};
1991 public:
1992 static constexpr uint16_t MESSAGE_TYPE = 50;
1993 static constexpr uint8_t ESTIMATED_SIZE = 16;
1994#ifdef HAS_PROTO_MESSAGE_DUMP
1995 const LogString *message_name() const override { return LOG_STR("number_state_response"); }
1996#endif
1997 float state{0.0f};
1998 bool missing_state{false};
1999 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2000 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2001 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2002 }
2003 static uint32_t calc_size_msg(const void *self);
2004 uint32_t calculate_size() const { return calc_size_msg(this); }
2005#ifdef HAS_PROTO_MESSAGE_DUMP
2006 const char *dump_to(DumpBuffer &out) const override;
2007#endif
2008
2009 protected:
2010};
2012 public:
2013 static constexpr uint16_t MESSAGE_TYPE = 51;
2014 static constexpr uint8_t ESTIMATED_SIZE = 14;
2015#ifdef HAS_PROTO_MESSAGE_DUMP
2016 const LogString *message_name() const override { return LOG_STR("number_command_request"); }
2017#endif
2018 float state{0.0f};
2019 void decode(const uint8_t *buffer, size_t length) {
2021 }
2022#ifdef HAS_PROTO_MESSAGE_DUMP
2023 const char *dump_to(DumpBuffer &out) const override;
2024#endif
2025
2026 protected:
2027 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2028};
2029#endif
2030#ifdef USE_SELECT
2032 public:
2033 static constexpr uint16_t MESSAGE_TYPE = 52;
2034 static constexpr uint8_t ESTIMATED_SIZE = 58;
2035#ifdef HAS_PROTO_MESSAGE_DUMP
2036 const LogString *message_name() const override { return LOG_STR("list_entities_select_response"); }
2037#endif
2038 const std::span<const char *const> *options{};
2039 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2040 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2041 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2042 }
2043 static uint32_t calc_size_msg(const void *self);
2044 uint32_t calculate_size() const { return calc_size_msg(this); }
2045#ifdef HAS_PROTO_MESSAGE_DUMP
2046 const char *dump_to(DumpBuffer &out) const override;
2047#endif
2048
2049 protected:
2050};
2052 public:
2053 static constexpr uint16_t MESSAGE_TYPE = 53;
2054 static constexpr uint8_t ESTIMATED_SIZE = 20;
2055#ifdef HAS_PROTO_MESSAGE_DUMP
2056 const LogString *message_name() const override { return LOG_STR("select_state_response"); }
2057#endif
2058 StringRef state{nullptr, 0}; // null until set, encode only
2059 bool missing_state{false};
2060 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2061 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2062 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2063 }
2064 static uint32_t calc_size_msg(const void *self);
2065 uint32_t calculate_size() const { return calc_size_msg(this); }
2066#ifdef HAS_PROTO_MESSAGE_DUMP
2067 const char *dump_to(DumpBuffer &out) const override;
2068#endif
2069
2070 protected:
2071};
2073 public:
2074 static constexpr uint16_t MESSAGE_TYPE = 54;
2075 static constexpr uint8_t ESTIMATED_SIZE = 18;
2076#ifdef HAS_PROTO_MESSAGE_DUMP
2077 const LogString *message_name() const override { return LOG_STR("select_command_request"); }
2078#endif
2080 void decode(const uint8_t *buffer, size_t length) {
2082 }
2083#ifdef HAS_PROTO_MESSAGE_DUMP
2084 const char *dump_to(DumpBuffer &out) const override;
2085#endif
2086
2087 protected:
2088 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2089};
2090#endif
2091#ifdef USE_SIREN
2093 public:
2094 static constexpr uint16_t MESSAGE_TYPE = 55;
2095 static constexpr uint8_t ESTIMATED_SIZE = 62;
2096#ifdef HAS_PROTO_MESSAGE_DUMP
2097 const LogString *message_name() const override { return LOG_STR("list_entities_siren_response"); }
2098#endif
2101 bool supports_volume{false};
2102 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2103 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2104 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2105 }
2106 static uint32_t calc_size_msg(const void *self);
2107 uint32_t calculate_size() const { return calc_size_msg(this); }
2108#ifdef HAS_PROTO_MESSAGE_DUMP
2109 const char *dump_to(DumpBuffer &out) const override;
2110#endif
2111
2112 protected:
2113};
2115 public:
2116 static constexpr uint16_t MESSAGE_TYPE = 56;
2117 static constexpr uint8_t ESTIMATED_SIZE = 11;
2118#ifdef HAS_PROTO_MESSAGE_DUMP
2119 const LogString *message_name() const override { return LOG_STR("siren_state_response"); }
2120#endif
2121 bool state{false};
2122 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2123 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2124 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2125 }
2126 static uint32_t calc_size_msg(const void *self);
2127 uint32_t calculate_size() const { return calc_size_msg(this); }
2128#ifdef HAS_PROTO_MESSAGE_DUMP
2129 const char *dump_to(DumpBuffer &out) const override;
2130#endif
2131
2132 protected:
2133};
2135 public:
2136 static constexpr uint16_t MESSAGE_TYPE = 57;
2137 static constexpr uint8_t ESTIMATED_SIZE = 37;
2138#ifdef HAS_PROTO_MESSAGE_DUMP
2139 const LogString *message_name() const override { return LOG_STR("siren_command_request"); }
2140#endif
2141 bool has_state{false};
2142 bool state{false};
2143 bool has_tone{false};
2145 bool has_duration{false};
2147 bool has_volume{false};
2148 float volume{0.0f};
2149 void decode(const uint8_t *buffer, size_t length) {
2151 }
2152#ifdef HAS_PROTO_MESSAGE_DUMP
2153 const char *dump_to(DumpBuffer &out) const override;
2154#endif
2155
2156 protected:
2157 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2158};
2159#endif
2160#ifdef USE_LOCK
2162 public:
2163 static constexpr uint16_t MESSAGE_TYPE = 58;
2164 static constexpr uint8_t ESTIMATED_SIZE = 55;
2165#ifdef HAS_PROTO_MESSAGE_DUMP
2166 const LogString *message_name() const override { return LOG_STR("list_entities_lock_response"); }
2167#endif
2168 bool assumed_state{false};
2169 bool supports_open{false};
2170 bool requires_code{false};
2171 StringRef code_format{nullptr, 0}; // null until set, encode only
2172 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2173 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2174 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2175 }
2176 static uint32_t calc_size_msg(const void *self);
2177 uint32_t calculate_size() const { return calc_size_msg(this); }
2178#ifdef HAS_PROTO_MESSAGE_DUMP
2179 const char *dump_to(DumpBuffer &out) const override;
2180#endif
2181
2182 protected:
2183};
2185 public:
2186 static constexpr uint16_t MESSAGE_TYPE = 59;
2187 static constexpr uint8_t ESTIMATED_SIZE = 11;
2188#ifdef HAS_PROTO_MESSAGE_DUMP
2189 const LogString *message_name() const override { return LOG_STR("lock_state_response"); }
2190#endif
2192 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2193 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2194 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2195 }
2196 static uint32_t calc_size_msg(const void *self);
2197 uint32_t calculate_size() const { return calc_size_msg(this); }
2198#ifdef HAS_PROTO_MESSAGE_DUMP
2199 const char *dump_to(DumpBuffer &out) const override;
2200#endif
2201
2202 protected:
2203};
2205 public:
2206 static constexpr uint16_t MESSAGE_TYPE = 60;
2207 static constexpr uint8_t ESTIMATED_SIZE = 22;
2208#ifdef HAS_PROTO_MESSAGE_DUMP
2209 const LogString *message_name() const override { return LOG_STR("lock_command_request"); }
2210#endif
2212 bool has_code{false};
2214 void decode(const uint8_t *buffer, size_t length) {
2216 }
2217#ifdef HAS_PROTO_MESSAGE_DUMP
2218 const char *dump_to(DumpBuffer &out) const override;
2219#endif
2220
2221 protected:
2222 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2223};
2224#endif
2225#ifdef USE_BUTTON
2227 public:
2228 static constexpr uint16_t MESSAGE_TYPE = 61;
2229 static constexpr uint8_t ESTIMATED_SIZE = 49;
2230#ifdef HAS_PROTO_MESSAGE_DUMP
2231 const LogString *message_name() const override { return LOG_STR("list_entities_button_response"); }
2232#endif
2234 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2235 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2236 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2237 }
2238 static uint32_t calc_size_msg(const void *self);
2239 uint32_t calculate_size() const { return calc_size_msg(this); }
2240#ifdef HAS_PROTO_MESSAGE_DUMP
2241 const char *dump_to(DumpBuffer &out) const override;
2242#endif
2243
2244 protected:
2245};
2247 public:
2248 static constexpr uint16_t MESSAGE_TYPE = 62;
2249 static constexpr uint8_t ESTIMATED_SIZE = 9;
2250#ifdef HAS_PROTO_MESSAGE_DUMP
2251 const LogString *message_name() const override { return LOG_STR("button_command_request"); }
2252#endif
2253 void decode(const uint8_t *buffer, size_t length) {
2255 }
2256#ifdef HAS_PROTO_MESSAGE_DUMP
2257 const char *dump_to(DumpBuffer &out) const override;
2258#endif
2259
2260 protected:
2261 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2262};
2263#endif
2264#ifdef USE_MEDIA_PLAYER
2266 public:
2267 StringRef format{nullptr, 0}; // null until set, encode only
2273 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2274 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2275 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2276 }
2277 static uint32_t calc_size_msg(const void *self);
2278 uint32_t calculate_size() const { return calc_size_msg(this); }
2279#ifdef HAS_PROTO_MESSAGE_DUMP
2280 const char *dump_to(DumpBuffer &out) const override;
2281#endif
2282
2283 protected:
2284};
2286 public:
2287 static constexpr uint16_t MESSAGE_TYPE = 63;
2288 static constexpr uint8_t ESTIMATED_SIZE = 78;
2289#ifdef HAS_PROTO_MESSAGE_DUMP
2290 const LogString *message_name() const override { return LOG_STR("list_entities_media_player_response"); }
2291#endif
2292 std::vector<MediaPlayerSupportedFormat> supported_formats{};
2294 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2295 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2296 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2297 }
2298 static uint32_t calc_size_msg(const void *self);
2299 uint32_t calculate_size() const { return calc_size_msg(this); }
2300#ifdef HAS_PROTO_MESSAGE_DUMP
2301 const char *dump_to(DumpBuffer &out) const override;
2302#endif
2303
2304 protected:
2305};
2307 public:
2308 static constexpr uint16_t MESSAGE_TYPE = 64;
2309 static constexpr uint8_t ESTIMATED_SIZE = 18;
2310#ifdef HAS_PROTO_MESSAGE_DUMP
2311 const LogString *message_name() const override { return LOG_STR("media_player_state_response"); }
2312#endif
2314 float volume{0.0f};
2315 bool muted{false};
2316 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2317 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2318 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2319 }
2320 static uint32_t calc_size_msg(const void *self);
2321 uint32_t calculate_size() const { return calc_size_msg(this); }
2322#ifdef HAS_PROTO_MESSAGE_DUMP
2323 const char *dump_to(DumpBuffer &out) const override;
2324#endif
2325
2326 protected:
2327};
2329 public:
2330 static constexpr uint16_t MESSAGE_TYPE = 65;
2331 static constexpr uint8_t ESTIMATED_SIZE = 35;
2332#ifdef HAS_PROTO_MESSAGE_DUMP
2333 const LogString *message_name() const override { return LOG_STR("media_player_command_request"); }
2334#endif
2335 bool has_command{false};
2337 bool has_volume{false};
2338 float volume{0.0f};
2339 bool has_media_url{false};
2341 bool has_announcement{false};
2342 bool announcement{false};
2343 void decode(const uint8_t *buffer, size_t length) {
2345 }
2346#ifdef HAS_PROTO_MESSAGE_DUMP
2347 const char *dump_to(DumpBuffer &out) const override;
2348#endif
2349
2350 protected:
2351 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2352};
2353#endif
2354#ifdef USE_BLUETOOTH_PROXY
2356 public:
2357 static constexpr uint16_t MESSAGE_TYPE = 66;
2358 static constexpr uint8_t ESTIMATED_SIZE = 4;
2359#ifdef HAS_PROTO_MESSAGE_DUMP
2360 const LogString *message_name() const override { return LOG_STR("subscribe_bluetooth_le_advertisements_request"); }
2361#endif
2363 void decode(const uint8_t *buffer, size_t length) {
2365 }
2366#ifdef HAS_PROTO_MESSAGE_DUMP
2367 const char *dump_to(DumpBuffer &out) const override;
2368#endif
2369
2370 protected:
2371 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2372};
2374 public:
2375 uint64_t address{0};
2376 int32_t rssi{0};
2378 uint8_t data[62]{};
2379 uint8_t data_len{0};
2380#ifdef HAS_PROTO_MESSAGE_DUMP
2381 const char *dump_to(DumpBuffer &out) const override;
2382#endif
2383
2384 protected:
2385};
2387 public:
2388 static constexpr uint16_t MESSAGE_TYPE = 93;
2389 static constexpr uint8_t ESTIMATED_SIZE = 136;
2390#ifdef HAS_PROTO_MESSAGE_DUMP
2391 const LogString *message_name() const override { return LOG_STR("bluetooth_le_raw_advertisements_response"); }
2392#endif
2393 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
2395 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2396 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2397 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2398 }
2399 static uint32_t calc_size_msg(const void *self);
2400 uint32_t calculate_size() const { return calc_size_msg(this); }
2401#ifdef HAS_PROTO_MESSAGE_DUMP
2402 const char *dump_to(DumpBuffer &out) const override;
2403#endif
2404
2405 protected:
2406};
2407#endif
2408#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2410 public:
2411 static constexpr uint16_t MESSAGE_TYPE = 68;
2412 static constexpr uint8_t ESTIMATED_SIZE = 12;
2413#ifdef HAS_PROTO_MESSAGE_DUMP
2414 const LogString *message_name() const override { return LOG_STR("bluetooth_device_request"); }
2415#endif
2416 uint64_t address{0};
2418 bool has_address_type{false};
2420 void decode(const uint8_t *buffer, size_t length) {
2422 }
2423#ifdef HAS_PROTO_MESSAGE_DUMP
2424 const char *dump_to(DumpBuffer &out) const override;
2425#endif
2426
2427 protected:
2428 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2429};
2431 public:
2432 static constexpr uint16_t MESSAGE_TYPE = 69;
2433 static constexpr uint8_t ESTIMATED_SIZE = 14;
2434#ifdef HAS_PROTO_MESSAGE_DUMP
2435 const LogString *message_name() const override { return LOG_STR("bluetooth_device_connection_response"); }
2436#endif
2437 uint64_t address{0};
2438 bool connected{false};
2440 int32_t error{0};
2441 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2442 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2443 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2444 }
2445 static uint32_t calc_size_msg(const void *self);
2446 uint32_t calculate_size() const { return calc_size_msg(this); }
2447#ifdef HAS_PROTO_MESSAGE_DUMP
2448 const char *dump_to(DumpBuffer &out) const override;
2449#endif
2450
2451 protected:
2452};
2454 public:
2455 static constexpr uint16_t MESSAGE_TYPE = 70;
2456 static constexpr uint8_t ESTIMATED_SIZE = 4;
2457#ifdef HAS_PROTO_MESSAGE_DUMP
2458 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_request"); }
2459#endif
2460 uint64_t address{0};
2461 void decode(const uint8_t *buffer, size_t length) {
2463 }
2464#ifdef HAS_PROTO_MESSAGE_DUMP
2465 const char *dump_to(DumpBuffer &out) const override;
2466#endif
2467
2468 protected:
2469 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2470};
2472 public:
2473 std::array<uint64_t, 2> uuid{};
2476 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2477 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2478 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2479 }
2480 static uint32_t calc_size_msg(const void *self);
2481 uint32_t calculate_size() const { return calc_size_msg(this); }
2482#ifdef HAS_PROTO_MESSAGE_DUMP
2483 const char *dump_to(DumpBuffer &out) const override;
2484#endif
2485
2486 protected:
2487};
2489 public:
2490 std::array<uint64_t, 2> uuid{};
2495 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2496 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2497 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2498 }
2499 static uint32_t calc_size_msg(const void *self);
2500 uint32_t calculate_size() const { return calc_size_msg(this); }
2501#ifdef HAS_PROTO_MESSAGE_DUMP
2502 const char *dump_to(DumpBuffer &out) const override;
2503#endif
2504
2505 protected:
2506};
2508 public:
2509 std::array<uint64_t, 2> uuid{};
2513 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2514 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2515 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2516 }
2517 static uint32_t calc_size_msg(const void *self);
2518 uint32_t calculate_size() const { return calc_size_msg(this); }
2519#ifdef HAS_PROTO_MESSAGE_DUMP
2520 const char *dump_to(DumpBuffer &out) const override;
2521#endif
2522
2523 protected:
2524};
2526 public:
2527 static constexpr uint16_t MESSAGE_TYPE = 71;
2528 static constexpr uint8_t ESTIMATED_SIZE = 38;
2529#ifdef HAS_PROTO_MESSAGE_DUMP
2530 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_response"); }
2531#endif
2532 uint64_t address{0};
2533 std::vector<BluetoothGATTService> services{};
2534 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2535 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2536 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2537 }
2538 static uint32_t calc_size_msg(const void *self);
2539 uint32_t calculate_size() const { return calc_size_msg(this); }
2540#ifdef HAS_PROTO_MESSAGE_DUMP
2541 const char *dump_to(DumpBuffer &out) const override;
2542#endif
2543
2544 protected:
2545};
2547 public:
2548 static constexpr uint16_t MESSAGE_TYPE = 72;
2549 static constexpr uint8_t ESTIMATED_SIZE = 4;
2550#ifdef HAS_PROTO_MESSAGE_DUMP
2551 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_get_services_done_response"); }
2552#endif
2553 uint64_t address{0};
2554 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2555 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2556 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2557 }
2558 static uint32_t calc_size_msg(const void *self);
2559 uint32_t calculate_size() const { return calc_size_msg(this); }
2560#ifdef HAS_PROTO_MESSAGE_DUMP
2561 const char *dump_to(DumpBuffer &out) const override;
2562#endif
2563
2564 protected:
2565};
2567 public:
2568 static constexpr uint16_t MESSAGE_TYPE = 73;
2569 static constexpr uint8_t ESTIMATED_SIZE = 8;
2570#ifdef HAS_PROTO_MESSAGE_DUMP
2571 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_request"); }
2572#endif
2573 uint64_t address{0};
2575 void decode(const uint8_t *buffer, size_t length) {
2577 }
2578#ifdef HAS_PROTO_MESSAGE_DUMP
2579 const char *dump_to(DumpBuffer &out) const override;
2580#endif
2581
2582 protected:
2583 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2584};
2586 public:
2587 static constexpr uint16_t MESSAGE_TYPE = 74;
2588 static constexpr uint8_t ESTIMATED_SIZE = 27;
2589#ifdef HAS_PROTO_MESSAGE_DUMP
2590 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_response"); }
2591#endif
2592 uint64_t address{0};
2594 const uint8_t *data_ptr_{nullptr};
2595 size_t data_len_{0};
2596 void set_data(const uint8_t *data, size_t len) {
2597 this->data_ptr_ = data;
2598 this->data_len_ = len;
2599 }
2600 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2601 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2602 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2603 }
2604 static uint32_t calc_size_msg(const void *self);
2605 uint32_t calculate_size() const { return calc_size_msg(this); }
2606#ifdef HAS_PROTO_MESSAGE_DUMP
2607 const char *dump_to(DumpBuffer &out) const override;
2608#endif
2609
2610 protected:
2611};
2613 public:
2614 static constexpr uint16_t MESSAGE_TYPE = 75;
2615 static constexpr uint8_t ESTIMATED_SIZE = 29;
2616#ifdef HAS_PROTO_MESSAGE_DUMP
2617 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_request"); }
2618#endif
2619 uint64_t address{0};
2621 bool response{false};
2622 const uint8_t *data{nullptr};
2623 uint16_t data_len{0};
2624 void decode(const uint8_t *buffer, size_t length) {
2626 }
2627#ifdef HAS_PROTO_MESSAGE_DUMP
2628 const char *dump_to(DumpBuffer &out) const override;
2629#endif
2630
2631 protected:
2632 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2633};
2635 public:
2636 static constexpr uint16_t MESSAGE_TYPE = 76;
2637 static constexpr uint8_t ESTIMATED_SIZE = 8;
2638#ifdef HAS_PROTO_MESSAGE_DUMP
2639 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_read_descriptor_request"); }
2640#endif
2641 uint64_t address{0};
2643 void decode(const uint8_t *buffer, size_t length) {
2645 }
2646#ifdef HAS_PROTO_MESSAGE_DUMP
2647 const char *dump_to(DumpBuffer &out) const override;
2648#endif
2649
2650 protected:
2651 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2652};
2654 public:
2655 static constexpr uint16_t MESSAGE_TYPE = 77;
2656 static constexpr uint8_t ESTIMATED_SIZE = 27;
2657#ifdef HAS_PROTO_MESSAGE_DUMP
2658 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_descriptor_request"); }
2659#endif
2660 uint64_t address{0};
2662 const uint8_t *data{nullptr};
2663 uint16_t data_len{0};
2664 void decode(const uint8_t *buffer, size_t length) {
2666 }
2667#ifdef HAS_PROTO_MESSAGE_DUMP
2668 const char *dump_to(DumpBuffer &out) const override;
2669#endif
2670
2671 protected:
2672 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2673};
2675 public:
2676 static constexpr uint16_t MESSAGE_TYPE = 78;
2677 static constexpr uint8_t ESTIMATED_SIZE = 10;
2678#ifdef HAS_PROTO_MESSAGE_DUMP
2679 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_request"); }
2680#endif
2681 uint64_t address{0};
2683 bool enable{false};
2684 void decode(const uint8_t *buffer, size_t length) {
2686 }
2687#ifdef HAS_PROTO_MESSAGE_DUMP
2688 const char *dump_to(DumpBuffer &out) const override;
2689#endif
2690
2691 protected:
2692 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2693};
2695 public:
2696 static constexpr uint16_t MESSAGE_TYPE = 79;
2697 static constexpr uint8_t ESTIMATED_SIZE = 27;
2698#ifdef HAS_PROTO_MESSAGE_DUMP
2699 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_data_response"); }
2700#endif
2701 uint64_t address{0};
2703 const uint8_t *data_ptr_{nullptr};
2704 size_t data_len_{0};
2705 void set_data(const uint8_t *data, size_t len) {
2706 this->data_ptr_ = data;
2707 this->data_len_ = len;
2708 }
2709 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2710 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2711 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2712 }
2713 static uint32_t calc_size_msg(const void *self);
2714 uint32_t calculate_size() const { return calc_size_msg(this); }
2715#ifdef HAS_PROTO_MESSAGE_DUMP
2716 const char *dump_to(DumpBuffer &out) const override;
2717#endif
2718
2719 protected:
2720};
2722 public:
2723 static constexpr uint16_t MESSAGE_TYPE = 81;
2724 static constexpr uint8_t ESTIMATED_SIZE = 20;
2725#ifdef HAS_PROTO_MESSAGE_DUMP
2726 const LogString *message_name() const override { return LOG_STR("bluetooth_connections_free_response"); }
2727#endif
2730 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2731 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2732 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2733 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2734 }
2735 static uint32_t calc_size_msg(const void *self);
2736 uint32_t calculate_size() const { return calc_size_msg(this); }
2737#ifdef HAS_PROTO_MESSAGE_DUMP
2738 const char *dump_to(DumpBuffer &out) const override;
2739#endif
2740
2741 protected:
2742};
2744 public:
2745 static constexpr uint16_t MESSAGE_TYPE = 82;
2746 static constexpr uint8_t ESTIMATED_SIZE = 12;
2747#ifdef HAS_PROTO_MESSAGE_DUMP
2748 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_error_response"); }
2749#endif
2750 uint64_t address{0};
2752 int32_t error{0};
2753 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2754 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2755 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2756 }
2757 static uint32_t calc_size_msg(const void *self);
2758 uint32_t calculate_size() const { return calc_size_msg(this); }
2759#ifdef HAS_PROTO_MESSAGE_DUMP
2760 const char *dump_to(DumpBuffer &out) const override;
2761#endif
2762
2763 protected:
2764};
2766 public:
2767 static constexpr uint16_t MESSAGE_TYPE = 83;
2768 static constexpr uint8_t ESTIMATED_SIZE = 8;
2769#ifdef HAS_PROTO_MESSAGE_DUMP
2770 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_write_response"); }
2771#endif
2772 uint64_t address{0};
2774 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2775 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2776 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2777 }
2778 static uint32_t calc_size_msg(const void *self);
2779 uint32_t calculate_size() const { return calc_size_msg(this); }
2780#ifdef HAS_PROTO_MESSAGE_DUMP
2781 const char *dump_to(DumpBuffer &out) const override;
2782#endif
2783
2784 protected:
2785};
2787 public:
2788 static constexpr uint16_t MESSAGE_TYPE = 84;
2789 static constexpr uint8_t ESTIMATED_SIZE = 8;
2790#ifdef HAS_PROTO_MESSAGE_DUMP
2791 const LogString *message_name() const override { return LOG_STR("bluetooth_gatt_notify_response"); }
2792#endif
2793 uint64_t address{0};
2795 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2796 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2797 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2798 }
2799 static uint32_t calc_size_msg(const void *self);
2800 uint32_t calculate_size() const { return calc_size_msg(this); }
2801#ifdef HAS_PROTO_MESSAGE_DUMP
2802 const char *dump_to(DumpBuffer &out) const override;
2803#endif
2804
2805 protected:
2806};
2808 public:
2809 static constexpr uint16_t MESSAGE_TYPE = 85;
2810 static constexpr uint8_t ESTIMATED_SIZE = 10;
2811#ifdef HAS_PROTO_MESSAGE_DUMP
2812 const LogString *message_name() const override { return LOG_STR("bluetooth_device_pairing_response"); }
2813#endif
2814 uint64_t address{0};
2815 bool paired{false};
2816 int32_t error{0};
2817 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2818 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2819 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2820 }
2821 static uint32_t calc_size_msg(const void *self);
2822 uint32_t calculate_size() const { return calc_size_msg(this); }
2823#ifdef HAS_PROTO_MESSAGE_DUMP
2824 const char *dump_to(DumpBuffer &out) const override;
2825#endif
2826
2827 protected:
2828};
2830 public:
2831 static constexpr uint16_t MESSAGE_TYPE = 86;
2832 static constexpr uint8_t ESTIMATED_SIZE = 10;
2833#ifdef HAS_PROTO_MESSAGE_DUMP
2834 const LogString *message_name() const override { return LOG_STR("bluetooth_device_unpairing_response"); }
2835#endif
2836 uint64_t address{0};
2837 bool success{false};
2838 int32_t error{0};
2839 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2840 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2841 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2842 }
2843 static uint32_t calc_size_msg(const void *self);
2844 uint32_t calculate_size() const { return calc_size_msg(this); }
2845#ifdef HAS_PROTO_MESSAGE_DUMP
2846 const char *dump_to(DumpBuffer &out) const override;
2847#endif
2848
2849 protected:
2850};
2852 public:
2853 static constexpr uint16_t MESSAGE_TYPE = 88;
2854 static constexpr uint8_t ESTIMATED_SIZE = 10;
2855#ifdef HAS_PROTO_MESSAGE_DUMP
2856 const LogString *message_name() const override { return LOG_STR("bluetooth_device_clear_cache_response"); }
2857#endif
2858 uint64_t address{0};
2859 bool success{false};
2860 int32_t error{0};
2861 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2862 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2863 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2864 }
2865 static uint32_t calc_size_msg(const void *self);
2866 uint32_t calculate_size() const { return calc_size_msg(this); }
2867#ifdef HAS_PROTO_MESSAGE_DUMP
2868 const char *dump_to(DumpBuffer &out) const override;
2869#endif
2870
2871 protected:
2872};
2873#endif
2874#ifdef USE_BLUETOOTH_PROXY
2876 public:
2877 static constexpr uint16_t MESSAGE_TYPE = 126;
2878 static constexpr uint8_t ESTIMATED_SIZE = 6;
2879#ifdef HAS_PROTO_MESSAGE_DUMP
2880 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_state_response"); }
2881#endif
2885 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2886 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2887 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2888 }
2889 static uint32_t calc_size_msg(const void *self);
2890 uint32_t calculate_size() const { return calc_size_msg(this); }
2891#ifdef HAS_PROTO_MESSAGE_DUMP
2892 const char *dump_to(DumpBuffer &out) const override;
2893#endif
2894
2895 protected:
2896};
2898 public:
2899 static constexpr uint16_t MESSAGE_TYPE = 127;
2900 static constexpr uint8_t ESTIMATED_SIZE = 2;
2901#ifdef HAS_PROTO_MESSAGE_DUMP
2902 const LogString *message_name() const override { return LOG_STR("bluetooth_scanner_set_mode_request"); }
2903#endif
2905 void decode(const uint8_t *buffer, size_t length) {
2907 }
2908#ifdef HAS_PROTO_MESSAGE_DUMP
2909 const char *dump_to(DumpBuffer &out) const override;
2910#endif
2911
2912 protected:
2913 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2914};
2915#endif
2916#ifdef USE_VOICE_ASSISTANT
2918 public:
2919 static constexpr uint16_t MESSAGE_TYPE = 89;
2920 static constexpr uint8_t ESTIMATED_SIZE = 6;
2921#ifdef HAS_PROTO_MESSAGE_DUMP
2922 const LogString *message_name() const override { return LOG_STR("subscribe_voice_assistant_request"); }
2923#endif
2924 bool subscribe{false};
2926 void decode(const uint8_t *buffer, size_t length) {
2928 }
2929#ifdef HAS_PROTO_MESSAGE_DUMP
2930 const char *dump_to(DumpBuffer &out) const override;
2931#endif
2932
2933 protected:
2934 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2935};
2937 public:
2941 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2942 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2943 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2944 }
2945 static uint32_t calc_size_msg(const void *self);
2946 uint32_t calculate_size() const { return calc_size_msg(this); }
2947#ifdef HAS_PROTO_MESSAGE_DUMP
2948 const char *dump_to(DumpBuffer &out) const override;
2949#endif
2950
2951 protected:
2952};
2954 public:
2955 static constexpr uint16_t MESSAGE_TYPE = 90;
2956 static constexpr uint8_t ESTIMATED_SIZE = 41;
2957#ifdef HAS_PROTO_MESSAGE_DUMP
2958 const LogString *message_name() const override { return LOG_STR("voice_assistant_request"); }
2959#endif
2960 bool start{false};
2961 StringRef conversation_id{nullptr, 0}; // null until set, encode only
2964 StringRef wake_word_phrase{nullptr, 0}; // null until set, encode only
2965 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
2966 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
2967 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
2968 }
2969 static uint32_t calc_size_msg(const void *self);
2970 uint32_t calculate_size() const { return calc_size_msg(this); }
2971#ifdef HAS_PROTO_MESSAGE_DUMP
2972 const char *dump_to(DumpBuffer &out) const override;
2973#endif
2974
2975 protected:
2976};
2978 public:
2979 static constexpr uint16_t MESSAGE_TYPE = 91;
2980 static constexpr uint8_t ESTIMATED_SIZE = 6;
2981#ifdef HAS_PROTO_MESSAGE_DUMP
2982 const LogString *message_name() const override { return LOG_STR("voice_assistant_response"); }
2983#endif
2985 bool error{false};
2986 void decode(const uint8_t *buffer, size_t length) {
2988 }
2989#ifdef HAS_PROTO_MESSAGE_DUMP
2990 const char *dump_to(DumpBuffer &out) const override;
2991#endif
2992
2993 protected:
2994 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
2995};
2997 public:
3000 void decode(const uint8_t *buffer, size_t length) {
3002 }
3003#ifdef HAS_PROTO_MESSAGE_DUMP
3004 const char *dump_to(DumpBuffer &out) const override;
3005#endif
3006
3007 protected:
3008 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3009};
3011 public:
3012 static constexpr uint16_t MESSAGE_TYPE = 92;
3013 static constexpr uint8_t ESTIMATED_SIZE = 36;
3014#ifdef HAS_PROTO_MESSAGE_DUMP
3015 const LogString *message_name() const override { return LOG_STR("voice_assistant_event_response"); }
3016#endif
3018 std::vector<VoiceAssistantEventData> data{};
3019 void decode(const uint8_t *buffer, size_t length) {
3021 }
3022#ifdef HAS_PROTO_MESSAGE_DUMP
3023 const char *dump_to(DumpBuffer &out) const override;
3024#endif
3025
3026 protected:
3027 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3028};
3030 public:
3031 static constexpr uint16_t MESSAGE_TYPE = 106;
3032 static constexpr uint8_t ESTIMATED_SIZE = 40;
3033#ifdef HAS_PROTO_MESSAGE_DUMP
3034 const LogString *message_name() const override { return LOG_STR("voice_assistant_audio"); }
3035#endif
3036 const uint8_t *data{nullptr};
3037 uint16_t data_len{0};
3038 bool end{false};
3039 const uint8_t *data2{nullptr};
3040 uint16_t data2_len{0};
3041 void decode(const uint8_t *buffer, size_t length) {
3043 }
3044 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3045 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3046 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3047 }
3048 static uint32_t calc_size_msg(const void *self);
3049 uint32_t calculate_size() const { return calc_size_msg(this); }
3050#ifdef HAS_PROTO_MESSAGE_DUMP
3051 const char *dump_to(DumpBuffer &out) const override;
3052#endif
3053
3054 protected:
3055 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3056};
3058 public:
3059 static constexpr uint16_t MESSAGE_TYPE = 115;
3060 static constexpr uint8_t ESTIMATED_SIZE = 30;
3061#ifdef HAS_PROTO_MESSAGE_DUMP
3062 const LogString *message_name() const override { return LOG_STR("voice_assistant_timer_event_response"); }
3063#endif
3069 bool is_active{false};
3070 void decode(const uint8_t *buffer, size_t length) {
3072 }
3073#ifdef HAS_PROTO_MESSAGE_DUMP
3074 const char *dump_to(DumpBuffer &out) const override;
3075#endif
3076
3077 protected:
3078 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3079};
3081 public:
3082 static constexpr uint16_t MESSAGE_TYPE = 119;
3083 static constexpr uint8_t ESTIMATED_SIZE = 29;
3084#ifdef HAS_PROTO_MESSAGE_DUMP
3085 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_request"); }
3086#endif
3091 void decode(const uint8_t *buffer, size_t length) {
3093 }
3094#ifdef HAS_PROTO_MESSAGE_DUMP
3095 const char *dump_to(DumpBuffer &out) const override;
3096#endif
3097
3098 protected:
3099 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3100};
3102 public:
3103 static constexpr uint16_t MESSAGE_TYPE = 120;
3104 static constexpr uint8_t ESTIMATED_SIZE = 2;
3105#ifdef HAS_PROTO_MESSAGE_DUMP
3106 const LogString *message_name() const override { return LOG_STR("voice_assistant_announce_finished"); }
3107#endif
3108 bool success{false};
3109 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3110 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3111 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3112 }
3113 static uint32_t calc_size_msg(const void *self);
3114 uint32_t calculate_size() const { return calc_size_msg(this); }
3115#ifdef HAS_PROTO_MESSAGE_DUMP
3116 const char *dump_to(DumpBuffer &out) const override;
3117#endif
3118
3119 protected:
3120};
3122 public:
3123 StringRef id{nullptr, 0}; // null until set, encode only
3124 StringRef wake_word{nullptr, 0}; // null until set, encode only
3125 std::vector<std::string> trained_languages{};
3126 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3127 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3128 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3129 }
3130 static uint32_t calc_size_msg(const void *self);
3131 uint32_t calculate_size() const { return calc_size_msg(this); }
3132#ifdef HAS_PROTO_MESSAGE_DUMP
3133 const char *dump_to(DumpBuffer &out) const override;
3134#endif
3135
3136 protected:
3137};
3139 public:
3142 std::vector<std::string> trained_languages{};
3147 void decode(const uint8_t *buffer, size_t length) {
3149 }
3150#ifdef HAS_PROTO_MESSAGE_DUMP
3151 const char *dump_to(DumpBuffer &out) const override;
3152#endif
3153
3154 protected:
3155 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3156};
3158 public:
3159 static constexpr uint16_t MESSAGE_TYPE = 121;
3160 static constexpr uint8_t ESTIMATED_SIZE = 34;
3161#ifdef HAS_PROTO_MESSAGE_DUMP
3162 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_request"); }
3163#endif
3164 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
3165 void decode(const uint8_t *buffer, size_t length) {
3167 }
3168#ifdef HAS_PROTO_MESSAGE_DUMP
3169 const char *dump_to(DumpBuffer &out) const override;
3170#endif
3171
3172 protected:
3173 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3174};
3176 public:
3177 static constexpr uint16_t MESSAGE_TYPE = 122;
3178 static constexpr uint8_t ESTIMATED_SIZE = 56;
3179#ifdef HAS_PROTO_MESSAGE_DUMP
3180 const LogString *message_name() const override { return LOG_STR("voice_assistant_configuration_response"); }
3181#endif
3182 std::vector<VoiceAssistantWakeWord> available_wake_words{};
3183 const std::vector<std::string> *active_wake_words{};
3185 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3186 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3187 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3188 }
3189 static uint32_t calc_size_msg(const void *self);
3190 uint32_t calculate_size() const { return calc_size_msg(this); }
3191#ifdef HAS_PROTO_MESSAGE_DUMP
3192 const char *dump_to(DumpBuffer &out) const override;
3193#endif
3194
3195 protected:
3196};
3198 public:
3199 static constexpr uint16_t MESSAGE_TYPE = 123;
3200 static constexpr uint8_t ESTIMATED_SIZE = 18;
3201#ifdef HAS_PROTO_MESSAGE_DUMP
3202 const LogString *message_name() const override { return LOG_STR("voice_assistant_set_configuration"); }
3203#endif
3204 std::vector<std::string> active_wake_words{};
3205 void decode(const uint8_t *buffer, size_t length) {
3207 }
3208#ifdef HAS_PROTO_MESSAGE_DUMP
3209 const char *dump_to(DumpBuffer &out) const override;
3210#endif
3211
3212 protected:
3213 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3214};
3215#endif
3216#ifdef USE_ALARM_CONTROL_PANEL
3218 public:
3219 static constexpr uint16_t MESSAGE_TYPE = 94;
3220 static constexpr uint8_t ESTIMATED_SIZE = 48;
3221#ifdef HAS_PROTO_MESSAGE_DUMP
3222 const LogString *message_name() const override { return LOG_STR("list_entities_alarm_control_panel_response"); }
3223#endif
3225 bool requires_code{false};
3227 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3228 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3229 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3230 }
3231 static uint32_t calc_size_msg(const void *self);
3232 uint32_t calculate_size() const { return calc_size_msg(this); }
3233#ifdef HAS_PROTO_MESSAGE_DUMP
3234 const char *dump_to(DumpBuffer &out) const override;
3235#endif
3236
3237 protected:
3238};
3240 public:
3241 static constexpr uint16_t MESSAGE_TYPE = 95;
3242 static constexpr uint8_t ESTIMATED_SIZE = 11;
3243#ifdef HAS_PROTO_MESSAGE_DUMP
3244 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_state_response"); }
3245#endif
3247 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3248 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3249 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3250 }
3251 static uint32_t calc_size_msg(const void *self);
3252 uint32_t calculate_size() const { return calc_size_msg(this); }
3253#ifdef HAS_PROTO_MESSAGE_DUMP
3254 const char *dump_to(DumpBuffer &out) const override;
3255#endif
3256
3257 protected:
3258};
3260 public:
3261 static constexpr uint16_t MESSAGE_TYPE = 96;
3262 static constexpr uint8_t ESTIMATED_SIZE = 20;
3263#ifdef HAS_PROTO_MESSAGE_DUMP
3264 const LogString *message_name() const override { return LOG_STR("alarm_control_panel_command_request"); }
3265#endif
3268 void decode(const uint8_t *buffer, size_t length) {
3270 }
3271#ifdef HAS_PROTO_MESSAGE_DUMP
3272 const char *dump_to(DumpBuffer &out) const override;
3273#endif
3274
3275 protected:
3276 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3277};
3278#endif
3279#ifdef USE_TEXT
3281 public:
3282 static constexpr uint16_t MESSAGE_TYPE = 97;
3283 static constexpr uint8_t ESTIMATED_SIZE = 59;
3284#ifdef HAS_PROTO_MESSAGE_DUMP
3285 const LogString *message_name() const override { return LOG_STR("list_entities_text_response"); }
3286#endif
3289 StringRef pattern{nullptr, 0}; // null until set, encode only
3291 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3292 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3293 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3294 }
3295 static uint32_t calc_size_msg(const void *self);
3296 uint32_t calculate_size() const { return calc_size_msg(this); }
3297#ifdef HAS_PROTO_MESSAGE_DUMP
3298 const char *dump_to(DumpBuffer &out) const override;
3299#endif
3300
3301 protected:
3302};
3304 public:
3305 static constexpr uint16_t MESSAGE_TYPE = 98;
3306 static constexpr uint8_t ESTIMATED_SIZE = 20;
3307#ifdef HAS_PROTO_MESSAGE_DUMP
3308 const LogString *message_name() const override { return LOG_STR("text_state_response"); }
3309#endif
3310 StringRef state{nullptr, 0}; // null until set, encode only
3311 bool missing_state{false};
3312 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3313 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3314 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3315 }
3316 static uint32_t calc_size_msg(const void *self);
3317 uint32_t calculate_size() const { return calc_size_msg(this); }
3318#ifdef HAS_PROTO_MESSAGE_DUMP
3319 const char *dump_to(DumpBuffer &out) const override;
3320#endif
3321
3322 protected:
3323};
3325 public:
3326 static constexpr uint16_t MESSAGE_TYPE = 99;
3327 static constexpr uint8_t ESTIMATED_SIZE = 18;
3328#ifdef HAS_PROTO_MESSAGE_DUMP
3329 const LogString *message_name() const override { return LOG_STR("text_command_request"); }
3330#endif
3332 void decode(const uint8_t *buffer, size_t length) {
3334 }
3335#ifdef HAS_PROTO_MESSAGE_DUMP
3336 const char *dump_to(DumpBuffer &out) const override;
3337#endif
3338
3339 protected:
3340 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3341};
3342#endif
3343#ifdef USE_DATETIME_DATE
3345 public:
3346 static constexpr uint16_t MESSAGE_TYPE = 100;
3347 static constexpr uint8_t ESTIMATED_SIZE = 40;
3348#ifdef HAS_PROTO_MESSAGE_DUMP
3349 const LogString *message_name() const override { return LOG_STR("list_entities_date_response"); }
3350#endif
3351 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3352 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3353 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3354 }
3355 static uint32_t calc_size_msg(const void *self);
3356 uint32_t calculate_size() const { return calc_size_msg(this); }
3357#ifdef HAS_PROTO_MESSAGE_DUMP
3358 const char *dump_to(DumpBuffer &out) const override;
3359#endif
3360
3361 protected:
3362};
3364 public:
3365 static constexpr uint16_t MESSAGE_TYPE = 101;
3366 static constexpr uint8_t ESTIMATED_SIZE = 23;
3367#ifdef HAS_PROTO_MESSAGE_DUMP
3368 const LogString *message_name() const override { return LOG_STR("date_state_response"); }
3369#endif
3370 bool missing_state{false};
3374 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3375 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3376 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3377 }
3378 static uint32_t calc_size_msg(const void *self);
3379 uint32_t calculate_size() const { return calc_size_msg(this); }
3380#ifdef HAS_PROTO_MESSAGE_DUMP
3381 const char *dump_to(DumpBuffer &out) const override;
3382#endif
3383
3384 protected:
3385};
3387 public:
3388 static constexpr uint16_t MESSAGE_TYPE = 102;
3389 static constexpr uint8_t ESTIMATED_SIZE = 21;
3390#ifdef HAS_PROTO_MESSAGE_DUMP
3391 const LogString *message_name() const override { return LOG_STR("date_command_request"); }
3392#endif
3396 void decode(const uint8_t *buffer, size_t length) {
3398 }
3399#ifdef HAS_PROTO_MESSAGE_DUMP
3400 const char *dump_to(DumpBuffer &out) const override;
3401#endif
3402
3403 protected:
3404 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3405};
3406#endif
3407#ifdef USE_DATETIME_TIME
3409 public:
3410 static constexpr uint16_t MESSAGE_TYPE = 103;
3411 static constexpr uint8_t ESTIMATED_SIZE = 40;
3412#ifdef HAS_PROTO_MESSAGE_DUMP
3413 const LogString *message_name() const override { return LOG_STR("list_entities_time_response"); }
3414#endif
3415 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3416 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3417 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3418 }
3419 static uint32_t calc_size_msg(const void *self);
3420 uint32_t calculate_size() const { return calc_size_msg(this); }
3421#ifdef HAS_PROTO_MESSAGE_DUMP
3422 const char *dump_to(DumpBuffer &out) const override;
3423#endif
3424
3425 protected:
3426};
3428 public:
3429 static constexpr uint16_t MESSAGE_TYPE = 104;
3430 static constexpr uint8_t ESTIMATED_SIZE = 23;
3431#ifdef HAS_PROTO_MESSAGE_DUMP
3432 const LogString *message_name() const override { return LOG_STR("time_state_response"); }
3433#endif
3434 bool missing_state{false};
3438 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3439 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3440 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3441 }
3442 static uint32_t calc_size_msg(const void *self);
3443 uint32_t calculate_size() const { return calc_size_msg(this); }
3444#ifdef HAS_PROTO_MESSAGE_DUMP
3445 const char *dump_to(DumpBuffer &out) const override;
3446#endif
3447
3448 protected:
3449};
3451 public:
3452 static constexpr uint16_t MESSAGE_TYPE = 105;
3453 static constexpr uint8_t ESTIMATED_SIZE = 21;
3454#ifdef HAS_PROTO_MESSAGE_DUMP
3455 const LogString *message_name() const override { return LOG_STR("time_command_request"); }
3456#endif
3460 void decode(const uint8_t *buffer, size_t length) {
3462 }
3463#ifdef HAS_PROTO_MESSAGE_DUMP
3464 const char *dump_to(DumpBuffer &out) const override;
3465#endif
3466
3467 protected:
3468 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3469};
3470#endif
3471#ifdef USE_EVENT
3473 public:
3474 static constexpr uint16_t MESSAGE_TYPE = 107;
3475 static constexpr uint8_t ESTIMATED_SIZE = 67;
3476#ifdef HAS_PROTO_MESSAGE_DUMP
3477 const LogString *message_name() const override { return LOG_STR("list_entities_event_response"); }
3478#endif
3481 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3482 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3483 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3484 }
3485 static uint32_t calc_size_msg(const void *self);
3486 uint32_t calculate_size() const { return calc_size_msg(this); }
3487#ifdef HAS_PROTO_MESSAGE_DUMP
3488 const char *dump_to(DumpBuffer &out) const override;
3489#endif
3490
3491 protected:
3492};
3494 public:
3495 static constexpr uint16_t MESSAGE_TYPE = 108;
3496 static constexpr uint8_t ESTIMATED_SIZE = 18;
3497#ifdef HAS_PROTO_MESSAGE_DUMP
3498 const LogString *message_name() const override { return LOG_STR("event_response"); }
3499#endif
3500 StringRef event_type{nullptr, 0}; // null until set, encode only
3501 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3502 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3503 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3504 }
3505 static uint32_t calc_size_msg(const void *self);
3506 uint32_t calculate_size() const { return calc_size_msg(this); }
3507#ifdef HAS_PROTO_MESSAGE_DUMP
3508 const char *dump_to(DumpBuffer &out) const override;
3509#endif
3510
3511 protected:
3512};
3513#endif
3514#ifdef USE_VALVE
3516 public:
3517 static constexpr uint16_t MESSAGE_TYPE = 109;
3518 static constexpr uint8_t ESTIMATED_SIZE = 55;
3519#ifdef HAS_PROTO_MESSAGE_DUMP
3520 const LogString *message_name() const override { return LOG_STR("list_entities_valve_response"); }
3521#endif
3523 bool assumed_state{false};
3525 bool supports_stop{false};
3526 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3527 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3528 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3529 }
3530 static uint32_t calc_size_msg(const void *self);
3531 uint32_t calculate_size() const { return calc_size_msg(this); }
3532#ifdef HAS_PROTO_MESSAGE_DUMP
3533 const char *dump_to(DumpBuffer &out) const override;
3534#endif
3535
3536 protected:
3537};
3539 public:
3540 static constexpr uint16_t MESSAGE_TYPE = 110;
3541 static constexpr uint8_t ESTIMATED_SIZE = 16;
3542#ifdef HAS_PROTO_MESSAGE_DUMP
3543 const LogString *message_name() const override { return LOG_STR("valve_state_response"); }
3544#endif
3545 float position{0.0f};
3547 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3548 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3549 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3550 }
3551 static uint32_t calc_size_msg(const void *self);
3552 uint32_t calculate_size() const { return calc_size_msg(this); }
3553#ifdef HAS_PROTO_MESSAGE_DUMP
3554 const char *dump_to(DumpBuffer &out) const override;
3555#endif
3556
3557 protected:
3558};
3560 public:
3561 static constexpr uint16_t MESSAGE_TYPE = 111;
3562 static constexpr uint8_t ESTIMATED_SIZE = 18;
3563#ifdef HAS_PROTO_MESSAGE_DUMP
3564 const LogString *message_name() const override { return LOG_STR("valve_command_request"); }
3565#endif
3566 bool has_position{false};
3567 float position{0.0f};
3568 bool stop{false};
3569 void decode(const uint8_t *buffer, size_t length) {
3571 }
3572#ifdef HAS_PROTO_MESSAGE_DUMP
3573 const char *dump_to(DumpBuffer &out) const override;
3574#endif
3575
3576 protected:
3577 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3578};
3579#endif
3580#ifdef USE_DATETIME_DATETIME
3582 public:
3583 static constexpr uint16_t MESSAGE_TYPE = 112;
3584 static constexpr uint8_t ESTIMATED_SIZE = 40;
3585#ifdef HAS_PROTO_MESSAGE_DUMP
3586 const LogString *message_name() const override { return LOG_STR("list_entities_date_time_response"); }
3587#endif
3588 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3589 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3590 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3591 }
3592 static uint32_t calc_size_msg(const void *self);
3593 uint32_t calculate_size() const { return calc_size_msg(this); }
3594#ifdef HAS_PROTO_MESSAGE_DUMP
3595 const char *dump_to(DumpBuffer &out) const override;
3596#endif
3597
3598 protected:
3599};
3601 public:
3602 static constexpr uint16_t MESSAGE_TYPE = 113;
3603 static constexpr uint8_t ESTIMATED_SIZE = 16;
3604#ifdef HAS_PROTO_MESSAGE_DUMP
3605 const LogString *message_name() const override { return LOG_STR("date_time_state_response"); }
3606#endif
3607 bool missing_state{false};
3609 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3610 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3611 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3612 }
3613 static uint32_t calc_size_msg(const void *self);
3614 uint32_t calculate_size() const { return calc_size_msg(this); }
3615#ifdef HAS_PROTO_MESSAGE_DUMP
3616 const char *dump_to(DumpBuffer &out) const override;
3617#endif
3618
3619 protected:
3620};
3622 public:
3623 static constexpr uint16_t MESSAGE_TYPE = 114;
3624 static constexpr uint8_t ESTIMATED_SIZE = 14;
3625#ifdef HAS_PROTO_MESSAGE_DUMP
3626 const LogString *message_name() const override { return LOG_STR("date_time_command_request"); }
3627#endif
3629 void decode(const uint8_t *buffer, size_t length) {
3631 }
3632#ifdef HAS_PROTO_MESSAGE_DUMP
3633 const char *dump_to(DumpBuffer &out) const override;
3634#endif
3635
3636 protected:
3637 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3638};
3639#endif
3640#ifdef USE_UPDATE
3642 public:
3643 static constexpr uint16_t MESSAGE_TYPE = 116;
3644 static constexpr uint8_t ESTIMATED_SIZE = 49;
3645#ifdef HAS_PROTO_MESSAGE_DUMP
3646 const LogString *message_name() const override { return LOG_STR("list_entities_update_response"); }
3647#endif
3649 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3650 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3651 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3652 }
3653 static uint32_t calc_size_msg(const void *self);
3654 uint32_t calculate_size() const { return calc_size_msg(this); }
3655#ifdef HAS_PROTO_MESSAGE_DUMP
3656 const char *dump_to(DumpBuffer &out) const override;
3657#endif
3658
3659 protected:
3660};
3662 public:
3663 static constexpr uint16_t MESSAGE_TYPE = 117;
3664 static constexpr uint8_t ESTIMATED_SIZE = 65;
3665#ifdef HAS_PROTO_MESSAGE_DUMP
3666 const LogString *message_name() const override { return LOG_STR("update_state_response"); }
3667#endif
3668 bool missing_state{false};
3669 bool in_progress{false};
3670 bool has_progress{false};
3671 float progress{0.0f};
3672 StringRef current_version{nullptr, 0}; // null until set, encode only
3673 StringRef latest_version{nullptr, 0}; // null until set, encode only
3674 StringRef title{nullptr, 0}; // null until set, encode only
3675 StringRef release_summary{nullptr, 0}; // null until set, encode only
3676 StringRef release_url{nullptr, 0}; // null until set, encode only
3677 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3678 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3679 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3680 }
3681 static uint32_t calc_size_msg(const void *self);
3682 uint32_t calculate_size() const { return calc_size_msg(this); }
3683#ifdef HAS_PROTO_MESSAGE_DUMP
3684 const char *dump_to(DumpBuffer &out) const override;
3685#endif
3686
3687 protected:
3688};
3690 public:
3691 static constexpr uint16_t MESSAGE_TYPE = 118;
3692 static constexpr uint8_t ESTIMATED_SIZE = 11;
3693#ifdef HAS_PROTO_MESSAGE_DUMP
3694 const LogString *message_name() const override { return LOG_STR("update_command_request"); }
3695#endif
3697 void decode(const uint8_t *buffer, size_t length) {
3699 }
3700#ifdef HAS_PROTO_MESSAGE_DUMP
3701 const char *dump_to(DumpBuffer &out) const override;
3702#endif
3703
3704 protected:
3705 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3706};
3707#endif
3708#ifdef USE_ZWAVE_PROXY
3710 public:
3711 static constexpr uint16_t MESSAGE_TYPE = 128;
3712 static constexpr uint8_t ESTIMATED_SIZE = 19;
3713#ifdef HAS_PROTO_MESSAGE_DUMP
3714 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_frame"); }
3715#endif
3716 const uint8_t *data{nullptr};
3717 uint16_t data_len{0};
3718 void decode(const uint8_t *buffer, size_t length) {
3720 }
3721 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3722 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3723 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3724 }
3725 static uint32_t calc_size_msg(const void *self);
3726 uint32_t calculate_size() const { return calc_size_msg(this); }
3727#ifdef HAS_PROTO_MESSAGE_DUMP
3728 const char *dump_to(DumpBuffer &out) const override;
3729#endif
3730
3731 protected:
3732 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3733};
3735 public:
3736 static constexpr uint16_t MESSAGE_TYPE = 129;
3737 static constexpr uint8_t ESTIMATED_SIZE = 21;
3738#ifdef HAS_PROTO_MESSAGE_DUMP
3739 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_request"); }
3740#endif
3742 const uint8_t *data{nullptr};
3743 uint16_t data_len{0};
3744 void decode(const uint8_t *buffer, size_t length) {
3746 }
3747 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3748 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3749 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3750 }
3751 static uint32_t calc_size_msg(const void *self);
3752 uint32_t calculate_size() const { return calc_size_msg(this); }
3753#ifdef HAS_PROTO_MESSAGE_DUMP
3754 const char *dump_to(DumpBuffer &out) const override;
3755#endif
3756
3757 protected:
3758 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3759};
3761 public:
3762 static constexpr uint16_t MESSAGE_TYPE = 151;
3763 static constexpr uint8_t ESTIMATED_SIZE = 4;
3764#ifdef HAS_PROTO_MESSAGE_DUMP
3765 const LogString *message_name() const override { return LOG_STR("z_wave_proxy_request_response"); }
3766#endif
3769 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3770 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3771 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3772 }
3773 static uint32_t calc_size_msg(const void *self);
3774 uint32_t calculate_size() const { return calc_size_msg(this); }
3775#ifdef HAS_PROTO_MESSAGE_DUMP
3776 const char *dump_to(DumpBuffer &out) const override;
3777#endif
3778
3779 protected:
3780};
3781#endif
3782#ifdef USE_INFRARED
3784 public:
3785 static constexpr uint16_t MESSAGE_TYPE = 135;
3786 static constexpr uint8_t ESTIMATED_SIZE = 48;
3787#ifdef HAS_PROTO_MESSAGE_DUMP
3788 const LogString *message_name() const override { return LOG_STR("list_entities_infrared_response"); }
3789#endif
3792 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3793 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3794 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3795 }
3796 static uint32_t calc_size_msg(const void *self);
3797 uint32_t calculate_size() const { return calc_size_msg(this); }
3798#ifdef HAS_PROTO_MESSAGE_DUMP
3799 const char *dump_to(DumpBuffer &out) const override;
3800#endif
3801
3802 protected:
3803};
3804#endif
3805#ifdef USE_IR_RF
3807 public:
3808 static constexpr uint16_t MESSAGE_TYPE = 136;
3809 static constexpr uint8_t ESTIMATED_SIZE = 224;
3810#ifdef HAS_PROTO_MESSAGE_DUMP
3811 const LogString *message_name() const override { return LOG_STR("infrared_rf_transmit_raw_timings_request"); }
3812#endif
3813#ifdef USE_DEVICES
3815#endif
3819 const uint8_t *timings_data_{nullptr};
3820 uint16_t timings_length_{0};
3821 uint16_t timings_count_{0};
3823 void decode(const uint8_t *buffer, size_t length) {
3825 }
3826#ifdef HAS_PROTO_MESSAGE_DUMP
3827 const char *dump_to(DumpBuffer &out) const override;
3828#endif
3829
3830 protected:
3831 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3832};
3834 public:
3835 static constexpr uint16_t MESSAGE_TYPE = 137;
3836 static constexpr uint8_t ESTIMATED_SIZE = 17;
3837#ifdef HAS_PROTO_MESSAGE_DUMP
3838 const LogString *message_name() const override { return LOG_STR("infrared_rf_receive_event"); }
3839#endif
3840#ifdef USE_DEVICES
3842#endif
3844 const std::vector<int32_t> *timings{};
3845 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3846 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3847 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3848 }
3849 static uint32_t calc_size_msg(const void *self);
3850 uint32_t calculate_size() const { return calc_size_msg(this); }
3851#ifdef HAS_PROTO_MESSAGE_DUMP
3852 const char *dump_to(DumpBuffer &out) const override;
3853#endif
3854
3855 protected:
3856};
3858 public:
3859 static constexpr uint16_t MESSAGE_TYPE = 153;
3860 static constexpr uint8_t ESTIMATED_SIZE = 11;
3861#ifdef HAS_PROTO_MESSAGE_DUMP
3862 const LogString *message_name() const override { return LOG_STR("infrared_rf_transmit_complete_response"); }
3863#endif
3864#ifdef USE_DEVICES
3866#endif
3868 bool success{false};
3869 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3870 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3871 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3872 }
3873 static uint32_t calc_size_msg(const void *self);
3874 uint32_t calculate_size() const { return calc_size_msg(this); }
3875#ifdef HAS_PROTO_MESSAGE_DUMP
3876 const char *dump_to(DumpBuffer &out) const override;
3877#endif
3878
3879 protected:
3880};
3881#endif
3882#ifdef USE_RADIO_FREQUENCY
3884 public:
3885 static constexpr uint16_t MESSAGE_TYPE = 148;
3886 static constexpr uint8_t ESTIMATED_SIZE = 56;
3887#ifdef HAS_PROTO_MESSAGE_DUMP
3888 const LogString *message_name() const override { return LOG_STR("list_entities_radio_frequency_response"); }
3889#endif
3894 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3895 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3896 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3897 }
3898 static uint32_t calc_size_msg(const void *self);
3899 uint32_t calculate_size() const { return calc_size_msg(this); }
3900#ifdef HAS_PROTO_MESSAGE_DUMP
3901 const char *dump_to(DumpBuffer &out) const override;
3902#endif
3903
3904 protected:
3905};
3906#endif
3907#ifdef USE_SERIAL_PROXY
3909 public:
3910 static constexpr uint16_t MESSAGE_TYPE = 138;
3911 static constexpr uint8_t ESTIMATED_SIZE = 20;
3912#ifdef HAS_PROTO_MESSAGE_DUMP
3913 const LogString *message_name() const override { return LOG_STR("serial_proxy_configure_request"); }
3914#endif
3917 bool flow_control{false};
3921 void decode(const uint8_t *buffer, size_t length) {
3923 }
3924#ifdef HAS_PROTO_MESSAGE_DUMP
3925 const char *dump_to(DumpBuffer &out) const override;
3926#endif
3927
3928 protected:
3929 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3930};
3932 public:
3933 static constexpr uint16_t MESSAGE_TYPE = 139;
3934 static constexpr uint8_t ESTIMATED_SIZE = 23;
3935#ifdef HAS_PROTO_MESSAGE_DUMP
3936 const LogString *message_name() const override { return LOG_STR("serial_proxy_data_received"); }
3937#endif
3939 const uint8_t *data_ptr_{nullptr};
3940 size_t data_len_{0};
3941 void set_data(const uint8_t *data, size_t len) {
3942 this->data_ptr_ = data;
3943 this->data_len_ = len;
3944 }
3945 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
3946 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
3947 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
3948 }
3949 static uint32_t calc_size_msg(const void *self);
3950 uint32_t calculate_size() const { return calc_size_msg(this); }
3951#ifdef HAS_PROTO_MESSAGE_DUMP
3952 const char *dump_to(DumpBuffer &out) const override;
3953#endif
3954
3955 protected:
3956};
3958 public:
3959 static constexpr uint16_t MESSAGE_TYPE = 140;
3960 static constexpr uint8_t ESTIMATED_SIZE = 23;
3961#ifdef HAS_PROTO_MESSAGE_DUMP
3962 const LogString *message_name() const override { return LOG_STR("serial_proxy_write_request"); }
3963#endif
3965 const uint8_t *data{nullptr};
3966 uint16_t data_len{0};
3967 void decode(const uint8_t *buffer, size_t length) {
3969 }
3970#ifdef HAS_PROTO_MESSAGE_DUMP
3971 const char *dump_to(DumpBuffer &out) const override;
3972#endif
3973
3974 protected:
3975 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3976};
3978 public:
3979 static constexpr uint16_t MESSAGE_TYPE = 141;
3980 static constexpr uint8_t ESTIMATED_SIZE = 8;
3981#ifdef HAS_PROTO_MESSAGE_DUMP
3982 const LogString *message_name() const override { return LOG_STR("serial_proxy_set_modem_pins_request"); }
3983#endif
3986 void decode(const uint8_t *buffer, size_t length) {
3988 }
3989#ifdef HAS_PROTO_MESSAGE_DUMP
3990 const char *dump_to(DumpBuffer &out) const override;
3991#endif
3992
3993 protected:
3994 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
3995};
3997 public:
3998 static constexpr uint16_t MESSAGE_TYPE = 142;
3999 static constexpr uint8_t ESTIMATED_SIZE = 4;
4000#ifdef HAS_PROTO_MESSAGE_DUMP
4001 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_request"); }
4002#endif
4004 void decode(const uint8_t *buffer, size_t length) {
4006 }
4007#ifdef HAS_PROTO_MESSAGE_DUMP
4008 const char *dump_to(DumpBuffer &out) const override;
4009#endif
4010
4011 protected:
4012 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
4013};
4015 public:
4016 static constexpr uint16_t MESSAGE_TYPE = 143;
4017 static constexpr uint8_t ESTIMATED_SIZE = 10;
4018#ifdef HAS_PROTO_MESSAGE_DUMP
4019 const LogString *message_name() const override { return LOG_STR("serial_proxy_get_modem_pins_response"); }
4020#endif
4024 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
4025 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
4026 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
4027 }
4028 static uint32_t calc_size_msg(const void *self);
4029 uint32_t calculate_size() const { return calc_size_msg(this); }
4030#ifdef HAS_PROTO_MESSAGE_DUMP
4031 const char *dump_to(DumpBuffer &out) const override;
4032#endif
4033
4034 protected:
4035};
4037 public:
4038 static constexpr uint16_t MESSAGE_TYPE = 144;
4039 static constexpr uint8_t ESTIMATED_SIZE = 6;
4040#ifdef HAS_PROTO_MESSAGE_DUMP
4041 const LogString *message_name() const override { return LOG_STR("serial_proxy_request"); }
4042#endif
4045 void decode(const uint8_t *buffer, size_t length) {
4047 }
4048#ifdef HAS_PROTO_MESSAGE_DUMP
4049 const char *dump_to(DumpBuffer &out) const override;
4050#endif
4051
4052 protected:
4053 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
4054};
4056 public:
4057 static constexpr uint16_t MESSAGE_TYPE = 147;
4058 static constexpr uint8_t ESTIMATED_SIZE = 17;
4059#ifdef HAS_PROTO_MESSAGE_DUMP
4060 const LogString *message_name() const override { return LOG_STR("serial_proxy_request_response"); }
4061#endif
4065 StringRef error_message{nullptr, 0}; // null until set, encode only
4066 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
4067 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
4068 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
4069 }
4070 static uint32_t calc_size_msg(const void *self);
4071 uint32_t calculate_size() const { return calc_size_msg(this); }
4072#ifdef HAS_PROTO_MESSAGE_DUMP
4073 const char *dump_to(DumpBuffer &out) const override;
4074#endif
4075
4076 protected:
4077};
4079 public:
4080 static constexpr uint16_t MESSAGE_TYPE = 152;
4081 static constexpr uint8_t ESTIMATED_SIZE = 6;
4082#ifdef HAS_PROTO_MESSAGE_DUMP
4083 const LogString *message_name() const override { return LOG_STR("serial_proxy_set_mode_request"); }
4084#endif
4087 void decode(const uint8_t *buffer, size_t length) {
4089 }
4090#ifdef HAS_PROTO_MESSAGE_DUMP
4091 const char *dump_to(DumpBuffer &out) const override;
4092#endif
4093
4094 protected:
4095 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
4096};
4097class UsbDeviceDescriptor final : public ProtoMessage {
4098 public:
4105 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
4106 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
4107 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
4108 }
4109 static uint32_t calc_size_msg(const void *self);
4110 uint32_t calculate_size() const { return calc_size_msg(this); }
4111#ifdef HAS_PROTO_MESSAGE_DUMP
4112 const char *dump_to(DumpBuffer &out) const override;
4113#endif
4114
4115 protected:
4116};
4117class SerialProxyIdentity final : public ProtoMessage {
4118 public:
4119 static constexpr uint16_t MESSAGE_TYPE = 155;
4120 static constexpr uint8_t ESTIMATED_SIZE = 54;
4121#ifdef HAS_PROTO_MESSAGE_DUMP
4122 const LogString *message_name() const override { return LOG_STR("serial_proxy_identity"); }
4123#endif
4127 StringRef manufacturer{nullptr, 0}; // null until set, encode only
4128 StringRef product{nullptr, 0}; // null until set, encode only
4129 StringRef serial_number{nullptr, 0}; // null until set, encode only
4131 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
4132 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
4133 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
4134 }
4135 static uint32_t calc_size_msg(const void *self);
4136 uint32_t calculate_size() const { return calc_size_msg(this); }
4137#ifdef HAS_PROTO_MESSAGE_DUMP
4138 const char *dump_to(DumpBuffer &out) const override;
4139#endif
4140
4141 protected:
4142};
4143#endif
4144#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
4146 public:
4147 static constexpr uint16_t MESSAGE_TYPE = 145;
4148 static constexpr uint8_t ESTIMATED_SIZE = 20;
4149#ifdef HAS_PROTO_MESSAGE_DUMP
4150 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_request"); }
4151#endif
4152 uint64_t address{0};
4157 void decode(const uint8_t *buffer, size_t length) {
4159 }
4160#ifdef HAS_PROTO_MESSAGE_DUMP
4161 const char *dump_to(DumpBuffer &out) const override;
4162#endif
4163
4164 protected:
4165 static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar);
4166};
4168 public:
4169 static constexpr uint16_t MESSAGE_TYPE = 146;
4170 static constexpr uint8_t ESTIMATED_SIZE = 8;
4171#ifdef HAS_PROTO_MESSAGE_DUMP
4172 const LogString *message_name() const override { return LOG_STR("bluetooth_set_connection_params_response"); }
4173#endif
4174 uint64_t address{0};
4175 int32_t error{0};
4176 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
4177 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
4178 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
4179 }
4180 static uint32_t calc_size_msg(const void *self);
4181 uint32_t calculate_size() const { return calc_size_msg(this); }
4182#ifdef HAS_PROTO_MESSAGE_DUMP
4183 const char *dump_to(DumpBuffer &out) const override;
4184#endif
4185
4186 protected:
4187};
4188#endif
4189#ifdef USE_SENDSPIN
4191 public:
4192 static constexpr uint16_t MESSAGE_TYPE = 160;
4193 static constexpr uint8_t ESTIMATED_SIZE = 11;
4194#ifdef HAS_PROTO_MESSAGE_DUMP
4195 const LogString *message_name() const override { return LOG_STR("sendspin_pairing_token_response"); }
4196#endif
4198 StringRef token{nullptr, 0}; // null until set, encode only
4199 static uint8_t *encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM);
4200 uint8_t *encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const {
4201 return encode_msg(this, buffer.get_pos() PROTO_ENCODE_DEBUG_ARG);
4202 }
4203 static uint32_t calc_size_msg(const void *self);
4204 uint32_t calculate_size() const { return calc_size_msg(this); }
4205#ifdef HAS_PROTO_MESSAGE_DUMP
4206 const char *dump_to(DumpBuffer &out) const override;
4207#endif
4208
4209 protected:
4210};
4211#endif
4212
4213} // namespace esphome::api
Lightweight read-only view over a const array stored in RODATA (will typically be in flash memory).
Definition helpers.h:130
Fixed-capacity vector - sized once through init() or try_init(); push_back never reallocates This avo...
Definition helpers.h:624
A string that may live in flash (on ESP8266): pointer and length, with no byte-reading operations.
Definition string_ref.h:230
StringRef is a reference to a string owned by something else.
Definition string_ref.h:31
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3345
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3261
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3268
const LogString * message_name() const override
Definition api_pb2.h:3264
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:3266
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3262
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3242
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3325
enums::AlarmControlPanelState state
Definition api_pb2.h:3246
const LogString * message_name() const override
Definition api_pb2.h:3244
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3248
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3335
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3241
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:72
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:78
uint32_t calculate_size() const
Definition api_pb2.h:560
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:556
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:455
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:898
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:891
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:890
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:445
const LogString * message_name() const override
Definition api_pb2.h:893
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2847
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2730
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2726
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2732
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2859
const LogString * message_name() const override
Definition api_pb2.h:2856
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2952
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2862
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2944
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2593
const LogString * message_name() const override
Definition api_pb2.h:2435
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2584
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2442
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2809
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2912
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2810
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2818
const LogString * message_name() const override
Definition api_pb2.h:2812
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2920
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:2417
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2411
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2412
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2420
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2564
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2414
const LogString * message_name() const override
Definition api_pb2.h:2834
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2840
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2928
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2936
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2649
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:2493
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2490
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2635
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2496
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2477
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2473
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2614
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2624
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2746
const LogString * message_name() const override
Definition api_pb2.h:2748
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2871
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2745
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2754
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2878
const LogString * message_name() const override
Definition api_pb2.h:2551
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2721
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2715
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2555
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2602
const LogString * message_name() const override
Definition api_pb2.h:2458
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2456
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2461
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2455
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2535
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2704
const LogString * message_name() const override
Definition api_pb2.h:2530
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2695
std::vector< BluetoothGATTService > services
Definition api_pb2.h:2533
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2710
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2831
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2696
const LogString * message_name() const override
Definition api_pb2.h:2699
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2705
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2697
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2839
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2677
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2676
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2684
const LogString * message_name() const override
Definition api_pb2.h:2679
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2813
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2899
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2789
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2905
const LogString * message_name() const override
Definition api_pb2.h:2791
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2796
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2788
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2779
const LogString * message_name() const override
Definition api_pb2.h:2639
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2643
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2575
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2727
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2571
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2568
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2569
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2742
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2749
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2596
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2587
const LogString * message_name() const override
Definition api_pb2.h:2590
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2601
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2588
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:2511
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2514
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2666
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2679
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2509
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2664
const LogString * message_name() const override
Definition api_pb2.h:2658
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2794
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2757
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2614
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2615
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2624
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2617
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2886
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2768
const LogString * message_name() const override
Definition api_pb2.h:2770
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2775
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2767
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2892
const char * dump_to(DumpBuffer &out) const override
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:2393
static uint32_t calc_size_msg(const void *self)
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2396
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
const LogString * message_name() const override
Definition api_pb2.h:2391
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:690
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:260
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:266
enums::BluetoothScannerMode mode
Definition api_pb2.h:2904
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2899
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2978
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2905
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2902
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2900
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2970
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2877
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2878
enums::BluetoothScannerMode mode
Definition api_pb2.h:2883
enums::BluetoothScannerState state
Definition api_pb2.h:2882
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2886
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2962
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2884
const LogString * message_name() const override
Definition api_pb2.h:2880
const LogString * message_name() const override
Definition api_pb2.h:4150
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:4157
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:4355
const LogString * message_name() const override
Definition api_pb2.h:4172
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:4386
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:4177
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:4379
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2253
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2248
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2363
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2251
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2249
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1583
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1761
const LogString * message_name() const override
Definition api_pb2.h:1763
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1760
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1767
const char * dump_to(DumpBuffer &out) const override
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1741
uint32_t calculate_size() const
Definition api_pb2.h:1751
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1562
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1572
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1735
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1737
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1734
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1747
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1853
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1877
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1759
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1868
const LogString * message_name() const override
Definition api_pb2.h:1855
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1866
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1852
enums::ClimatePreset preset
Definition api_pb2.h:1872
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1830
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1831
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1839
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1829
const LogString * message_name() const override
Definition api_pb2.h:1822
enums::ClimatePreset preset
Definition api_pb2.h:1833
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1702
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1820
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1819
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1736
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:962
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:540
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:973
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:961
const LogString * message_name() const override
Definition api_pb2.h:964
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:940
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:939
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:528
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:948
enums::CoverOperation current_operation
Definition api_pb2.h:946
const LogString * message_name() const override
Definition api_pb2.h:942
uint32_t calculate_size() const
Definition api_pb2.h:952
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:513
enums::DSTRuleType type
Definition api_pb2.h:1536
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1300
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1540
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3507
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3391
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3388
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3396
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3389
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3365
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3375
const LogString * message_name() const override
Definition api_pb2.h:3368
uint32_t calculate_size() const
Definition api_pb2.h:3379
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3482
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3494
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3366
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3624
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3823
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3623
const LogString * message_name() const override
Definition api_pb2.h:3626
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3629
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3610
const LogString * message_name() const override
Definition api_pb2.h:3605
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3800
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3603
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3812
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3602
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:789
const LogString * message_name() const override
Definition api_pb2.h:777
VoiceAssistantCapabilities voice_assistant
Definition api_pb2.h:783
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:354
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:775
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:798
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:774
ZWaveProxyCapabilities zwave_proxy
Definition api_pb2.h:786
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:330
BluetoothProxyCapabilities bluetooth_proxy
Definition api_pb2.h:780
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:576
uint32_t calculate_size() const
Definition api_pb2.h:580
enums::DeviceRelation relation
Definition api_pb2.h:574
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:95
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:87
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef project_name
Definition api_pb2.h:623
ProgmemStringRef esphome_version
Definition api_pb2.h:616
const LogString * message_name() const override
Definition api_pb2.h:612
ProgmemStringRef project_version
Definition api_pb2.h:626
static constexpr uint16_t ESTIMATED_SIZE
Definition api_pb2.h:610
uint32_t calculate_size() const
Definition api_pb2.h:677
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:673
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:652
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:122
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:190
ProgmemStringRef manufacturer
Definition api_pb2.h:634
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:609
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:664
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:649
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.h:824
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:813
const LogString * message_name() const override
Definition api_pb2.h:815
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:812
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:385
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:380
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:820
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:65
const LogString * message_name() const override
Definition api_pb2.h:492
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:49
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:495
uint32_t calculate_size() const
Definition api_pb2.h:503
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:489
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:60
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:490
enums::DisconnectReason reason
Definition api_pb2.h:494
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:499
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:513
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:514
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:516
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:677
uint32_t calculate_size() const
Definition api_pb2.h:3506
const LogString * message_name() const override
Definition api_pb2.h:3498
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3502
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3495
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3658
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3496
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3667
const char * dump_to(DumpBuffer &out) const override
FixedVector< float > float_array
Definition api_pb2.h:1650
FixedVector< std::string > string_array
Definition api_pb2.h:1651
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1430
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1465
FixedVector< int32_t > int_array
Definition api_pb2.h:1649
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1662
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1668
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1663
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1501
const LogString * message_name() const override
Definition api_pb2.h:1665
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1476
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1518
const LogString * message_name() const override
Definition api_pb2.h:1690
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1688
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1687
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1508
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1700
const LogString * message_name() const override
Definition api_pb2.h:1038
const char * dump_to(DumpBuffer &out) const override
enums::FanDirection direction
Definition api_pb2.h:1045
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:653
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1036
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1050
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1035
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1011
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:639
const LogString * message_name() const override
Definition api_pb2.h:1014
enums::FanDirection direction
Definition api_pb2.h:1018
uint32_t calculate_size() const
Definition api_pb2.h:1026
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1012
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1022
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:626
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1524
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1521
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1522
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1568
const char * dump_to(DumpBuffer &out) const override
ParsedTimezone parsed_timezone
Definition api_pb2.h:1574
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1569
const LogString * message_name() const override
Definition api_pb2.h:1571
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1576
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1346
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:443
const LogString * message_name() const override
Definition api_pb2.h:446
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:454
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:444
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:10
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:466
ProgmemStringRef server_info
Definition api_pb2.h:473
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:32
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:467
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:476
uint32_t calculate_size() const
Definition api_pb2.h:480
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:40
const LogString * message_name() const override
Definition api_pb2.h:469
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1508
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1500
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1501
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1281
const LogString * message_name() const override
Definition api_pb2.h:1503
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1417
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1182
const LogString * message_name() const override
Definition api_pb2.h:1420
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1425
FixedVector< HomeassistantServiceMap > data
Definition api_pb2.h:1423
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1437
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1418
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1424
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1206
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1455
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1452
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1239
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1453
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1464
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1175
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1169
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1404
enums::EntityCategory entity_category
Definition api_pb2.h:411
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3836
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3835
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3846
const std::vector< int32_t > * timings
Definition api_pb2.h:3844
static uint32_t calc_size_msg(const void *self)
const LogString * message_name() const override
Definition api_pb2.h:3838
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:4099
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3870
const LogString * message_name() const override
Definition api_pb2.h:3862
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:4109
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:4041
const LogString * message_name() const override
Definition api_pb2.h:3811
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3823
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:813
const LogString * message_name() const override
Definition api_pb2.h:1121
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1149
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1118
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1119
const LogString * message_name() const override
Definition api_pb2.h:1090
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:754
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:792
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1088
uint32_t calculate_size() const
Definition api_pb2.h:1109
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1087
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1105
const LogString * message_name() const override
Definition api_pb2.h:3222
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3306
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3287
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3228
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:427
const LogString * message_name() const override
Definition api_pb2.h:872
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:409
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:877
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:869
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:870
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2229
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2346
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2228
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2235
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2330
const LogString * message_name() const override
Definition api_pb2.h:2231
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1546
const LogString * message_name() const override
Definition api_pb2.h:1718
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1715
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1531
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1716
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1721
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1794
enums::TemperatureUnit temperature_unit
Definition api_pb2.h:1804
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1651
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1782
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1781
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1796
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1806
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1793
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1788
const LogString * message_name() const override
Definition api_pb2.h:1784
const ConstVector< const char *, true > * supported_custom_fan_modes
Definition api_pb2.h:1795
const ConstVector< const char *, true > * supported_custom_presets
Definition api_pb2.h:1797
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1599
const LogString * message_name() const override
Definition api_pb2.h:916
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:490
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:913
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:468
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:914
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:926
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3347
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3451
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3346
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3352
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3349
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3466
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3589
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3784
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3584
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3583
const LogString * message_name() const override
Definition api_pb2.h:3586
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3768
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:855
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:856
const LogString * message_name() const override
Definition api_pb2.h:858
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3482
const LogString * message_name() const override
Definition api_pb2.h:3477
const ConstVector< const char *, true > * event_types
Definition api_pb2.h:3480
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3617
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3636
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3474
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3475
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:998
const LogString * message_name() const override
Definition api_pb2.h:990
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:987
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:579
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:988
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:601
const ConstVector< const char *, true > * supported_preset_modes
Definition api_pb2.h:996
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3785
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3793
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:4003
const LogString * message_name() const override
Definition api_pb2.h:3788
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:4021
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3786
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1065
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:728
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:701
const light::LightEffectNames * effects
Definition api_pb2.h:1072
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1064
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:1069
const LogString * message_name() const override
Definition api_pb2.h:1067
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1074
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2163
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2264
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2166
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2245
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2173
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2164
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2402
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2288
const LogString * message_name() const override
Definition api_pb2.h:2290
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2287
const char * dump_to(DumpBuffer &out) const override
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:2292
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2295
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2422
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1968
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1967
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1979
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1967
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1970
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1994
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3895
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:4141
const LogString * message_name() const override
Definition api_pb2.h:3888
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:4121
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2033
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2078
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2034
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2060
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2040
const std::span< const char *const > * options
Definition api_pb2.h:2038
const LogString * message_name() const override
Definition api_pb2.h:2036
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1163
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1174
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:909
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1164
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1166
enums::SensorStateClass state_class
Definition api_pb2.h:1172
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:929
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1604
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1362
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1381
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1414
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1630
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1400
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1617
const LogString * message_name() const override
Definition api_pb2.h:1620
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1618
enums::SupportsResponseType supports_response
Definition api_pb2.h:1625
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1624
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2094
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2103
const LogString * message_name() const override
Definition api_pb2.h:2097
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2141
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2161
const FixedVector< const char * > * tones
Definition api_pb2.h:2099
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2095
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1210
const LogString * message_name() const override
Definition api_pb2.h:1213
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:994
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1211
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1218
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:977
const LogString * message_name() const override
Definition api_pb2.h:3285
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3292
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3370
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3282
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3389
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3283
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1272
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1054
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1273
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1071
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1279
const LogString * message_name() const override
Definition api_pb2.h:1275
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3410
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3549
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3411
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3413
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3416
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3534
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3643
const LogString * message_name() const override
Definition api_pb2.h:3646
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3844
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3644
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3650
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3860
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3527
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3679
const LogString * message_name() const override
Definition api_pb2.h:3520
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3518
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3517
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3698
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1903
const water_heater::WaterHeaterModeMask * supported_modes
Definition api_pb2.h:1899
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1867
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1892
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1837
const LogString * message_name() const override
Definition api_pb2.h:1894
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1891
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2209
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2214
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2303
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2207
enums::LockCommand command
Definition api_pb2.h:2211
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2206
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2187
uint32_t calculate_size() const
Definition api_pb2.h:2197
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2284
const LogString * message_name() const override
Definition api_pb2.h:2189
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2293
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2186
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2193
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2469
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2331
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2330
enums::MediaPlayerCommand command
Definition api_pb2.h:2336
const LogString * message_name() const override
Definition api_pb2.h:2333
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2343
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2444
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2317
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2457
enums::MediaPlayerState state
Definition api_pb2.h:2313
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2308
const LogString * message_name() const override
Definition api_pb2.h:2311
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2309
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:2270
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2381
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2391
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2274
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1367
const LogString * message_name() const override
Definition api_pb2.h:1363
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1142
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1360
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1361
const LogString * message_name() const override
Definition api_pb2.h:1382
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1386
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1161
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1379
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1380
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1155
const LogString * message_name() const override
Definition api_pb2.h:2016
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2014
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2019
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2013
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2039
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1992
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2016
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1993
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2028
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2000
const LogString * message_name() const override
Definition api_pb2.h:1995
uint32_t calculate_size() const
Definition api_pb2.h:2004
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1556
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1326
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:526
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:527
const LogString * message_name() const override
Definition api_pb2.h:529
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:542
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:539
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:540
const char * dump_to(DumpBuffer &out) const override
static void decode_fields(void *msg, const uint8_t *buffer, size_t length, DecodeFieldFn field)
Walk buffer and hand every field to field.
Definition proto.cpp:205
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2120
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2080
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2075
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2074
const LogString * message_name() const override
Definition api_pb2.h:2077
const LogString * message_name() const override
Definition api_pb2.h:2056
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2061
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2054
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2099
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2109
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2053
uint32_t calculate_size() const
Definition api_pb2.h:2065
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:322
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:760
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:316
uint32_t calculate_size() const
Definition api_pb2.h:764
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:4195
enums::SendspinPairingTokenStatus status
Definition api_pb2.h:4197
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:4192
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:4395
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:4193
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:4402
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:4200
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
const LogString * message_name() const override
Definition api_pb2.h:1190
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1195
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1187
uint32_t calculate_size() const
Definition api_pb2.h:1199
static uint32_t calc_size_msg(const void *self)
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1188
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3910
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:4163
enums::SerialProxyParity parity
Definition api_pb2.h:3918
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3911
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3921
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3913
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:3941
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
const LogString * message_name() const override
Definition api_pb2.h:3936
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3934
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3933
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3946
static uint32_t calc_size_msg(const void *self)
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3998
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:4004
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:4235
const LogString * message_name() const override
Definition api_pb2.h:4001
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3999
const LogString * message_name() const override
Definition api_pb2.h:4019
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:4255
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:4017
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:4016
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:4025
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:4247
uint32_t calculate_size() const
Definition api_pb2.h:4136
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:4120
const LogString * message_name() const override
Definition api_pb2.h:4122
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:4341
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:4119
enums::SerialProxyIdentitySource source
Definition api_pb2.h:4125
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:4330
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:4132
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:106
uint32_t calculate_size() const
Definition api_pb2.h:599
enums::SerialProxyPortType port_type
Definition api_pb2.h:592
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:595
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:113
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:4041
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:4039
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:4038
enums::SerialProxyRequestType type
Definition api_pb2.h:4044
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:4263
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:4045
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:4058
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:4067
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:4057
const LogString * message_name() const override
Definition api_pb2.h:4060
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:4277
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:4285
enums::SerialProxyRequestType type
Definition api_pb2.h:4063
enums::SerialProxyStatus status
Definition api_pb2.h:4064
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:4083
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:4080
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:4294
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:4087
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:4081
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3982
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3986
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:4220
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3980
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3979
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:4205
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3959
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3967
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3960
const LogString * message_name() const override
Definition api_pb2.h:3962
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2203
const LogString * message_name() const override
Definition api_pb2.h:2139
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2149
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2136
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2137
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.h:2127
const LogString * message_name() const override
Definition api_pb2.h:2119
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2117
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:2184
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2116
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2123
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:2193
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2512
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2363
const LogString * message_name() const override
Definition api_pb2.h:2360
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1487
const LogString * message_name() const override
Definition api_pb2.h:1481
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1265
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1273
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1314
const LogString * message_name() const override
Definition api_pb2.h:1317
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1315
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1110
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1321
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1346
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1333
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1334
const LogString * message_name() const override
Definition api_pb2.h:1336
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:1341
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2922
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2926
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2919
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2920
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:2992
const LogString * message_name() const override
Definition api_pb2.h:1255
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1253
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1033
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1252
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1258
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1239
const LogString * message_name() const override
Definition api_pb2.h:1234
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1022
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1232
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1012
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1231
uint32_t calculate_size() const
Definition api_pb2.h:1243
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3332
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3326
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3327
const LogString * message_name() const override
Definition api_pb2.h:3329
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3430
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1292
const LogString * message_name() const override
Definition api_pb2.h:1295
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1098
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1088
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1293
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1300
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3419
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3306
uint32_t calculate_size() const
Definition api_pb2.h:3317
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3313
const LogString * message_name() const override
Definition api_pb2.h:3308
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3305
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3409
const LogString * message_name() const override
Definition api_pb2.h:3455
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3460
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3590
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3452
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3453
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3439
const LogString * message_name() const override
Definition api_pb2.h:3432
uint32_t calculate_size() const
Definition api_pb2.h:3443
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3565
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3429
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3430
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3577
const LogString * message_name() const override
Definition api_pb2.h:3694
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3692
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3691
enums::UpdateCommand command
Definition api_pb2.h:3696
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3914
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3697
uint32_t calculate_size() const
Definition api_pb2.h:3682
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3664
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:3666
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3896
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3678
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3663
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3877
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:4309
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:4319
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.h:4110
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:4106
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3741
const LogString * message_name() const override
Definition api_pb2.h:3564
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3561
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3562
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3569
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3541
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3548
enums::ValveOperation current_operation
Definition api_pb2.h:3546
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3540
uint32_t calculate_size() const
Definition api_pb2.h:3552
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3718
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3730
const LogString * message_name() const override
Definition api_pb2.h:3543
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3104
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3110
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3175
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3169
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3103
const LogString * message_name() const override
Definition api_pb2.h:3106
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3083
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3091
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3148
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3082
const LogString * message_name() const override
Definition api_pb2.h:3085
uint32_t calculate_size() const
Definition api_pb2.h:3049
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3041
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3113
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3087
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3106
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3031
const LogString * message_name() const override
Definition api_pb2.h:3034
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3032
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3045
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2942
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3007
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3016
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:280
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:275
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:707
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3165
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3232
const LogString * message_name() const override
Definition api_pb2.h:3162
const char * dump_to(DumpBuffer &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:3164
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:3182
const LogString * message_name() const override
Definition api_pb2.h:3180
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:3183
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3257
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3245
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3186
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3057
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3000
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3012
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3071
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3013
const LogString * message_name() const override
Definition api_pb2.h:3015
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3019
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:3017
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:3018
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3202
const char * dump_to(DumpBuffer &out) const override
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3147
std::vector< std::string > trained_languages
Definition api_pb2.h:3142
const LogString * message_name() const override
Definition api_pb2.h:2958
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3024
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:2966
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3033
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2963
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2956
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2955
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:2982
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3043
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2980
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:2986
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:2979
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3200
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3273
std::vector< std::string > active_wake_words
Definition api_pb2.h:3204
const char * dump_to(DumpBuffer &out) const override
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3199
const LogString * message_name() const override
Definition api_pb2.h:3202
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3205
const LogString * message_name() const override
Definition api_pb2.h:3062
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:3064
const char * dump_to(DumpBuffer &out) const override
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3121
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3070
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3190
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3127
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3181
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:3125
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1942
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:1953
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:1930
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1943
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:1945
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1917
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:1914
const LogString * message_name() const override
Definition api_pb2.h:1919
const char * dump_to(DumpBuffer &out) const override
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:1929
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:1916
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:1891
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:308
const char * dump_to(DumpBuffer &out) const override
uint32_t calculate_size() const
Definition api_pb2.h:746
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:742
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:303
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:393
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:842
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:835
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:836
const char * dump_to(DumpBuffer &out) const override
const LogString * message_name() const override
Definition api_pb2.h:838
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:294
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:725
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:288
const char * dump_to(DumpBuffer &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3712
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
const LogString * message_name() const override
Definition api_pb2.h:3714
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3722
uint32_t calculate_size() const
Definition api_pb2.h:3726
const char * dump_to(DumpBuffer &out) const override
static uint32_t calc_size_msg(const void *self)
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3711
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3718
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3935
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3981
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3737
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3736
static void decode_field(void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
Definition api_pb2.cpp:3960
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.h:3744
const LogString * message_name() const override
Definition api_pb2.h:3739
uint32_t calculate_size() const
Definition api_pb2.h:3752
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3741
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3748
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3975
const char * dump_to(DumpBuffer &out) const override
static uint8_t * encode_msg(const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
Definition api_pb2.cpp:3988
const LogString * message_name() const override
Definition api_pb2.h:3765
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3767
static constexpr uint16_t MESSAGE_TYPE
Definition api_pb2.h:3762
static uint32_t calc_size_msg(const void *self)
Definition api_pb2.cpp:3994
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3763
enums::ZWaveProxyStatus status
Definition api_pb2.h:3768
uint8_t * encode(ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
Definition api_pb2.h:3770
const char * dump_to(DumpBuffer &out) const override
Effect names as the native API lists them: "None" first, then each effect; empty without effects.
std::vector< uint8_t > & out
Definition gif.cpp:49
uint32_t buffer
Definition gif.cpp:50
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:212
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:304
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:96
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:99
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:98
@ SERIAL_PROXY_PORT_TYPE_RS232
Definition api_pb2.h:28
@ SERIAL_PROXY_PORT_TYPE_RS485
Definition api_pb2.h:29
@ SERIAL_PROXY_PORT_TYPE_USB_SERIAL
Definition api_pb2.h:30
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:269
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:268
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:166
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:167
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:360
@ SERIAL_PROXY_REQUEST_TYPE_SET_MODEM_PINS
Definition api_pb2.h:363
@ SERIAL_PROXY_REQUEST_TYPE_SET_MODE
Definition api_pb2.h:364
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
Definition api_pb2.h:361
@ SERIAL_PROXY_REQUEST_TYPE_CONFIGURE
Definition api_pb2.h:362
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:359
@ SERIAL_PROXY_IDENTITY_FLAG_CONNECTED
Definition api_pb2.h:387
@ SERIAL_PROXY_IDENTITY_FLAG_ERROR
Definition api_pb2.h:388
@ SERIAL_PROXY_IDENTITY_FLAG_NONE
Definition api_pb2.h:386
@ SENDSPIN_PAIRING_TOKEN_STATUS_OK
Definition api_pb2.h:393
@ SENDSPIN_PAIRING_TOKEN_STATUS_ENCRYPTION_REQUIRED
Definition api_pb2.h:394
@ SENDSPIN_PAIRING_TOKEN_STATUS_FAILED
Definition api_pb2.h:396
@ SENDSPIN_PAIRING_TOKEN_STATUS_DISABLED
Definition api_pb2.h:395
@ SENDSPIN_PAIRING_TOKEN_STATUS_NOT_READY
Definition api_pb2.h:392
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:234
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:233
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:54
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:61
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:57
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:62
@ ZWAVE_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:349
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:292
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:291
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:294
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:293
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:226
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:227
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:224
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:223
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:230
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:228
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:282
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:287
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:284
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:288
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:286
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:283
@ SERIAL_PROXY_IDENTITY_SOURCE_CONFIGURED
Definition api_pb2.h:381
@ SERIAL_PROXY_IDENTITY_SOURCE_NONE
Definition api_pb2.h:380
@ SERIAL_PROXY_IDENTITY_SOURCE_USB
Definition api_pb2.h:382
@ SERIAL_PROXY_STATUS_INVALID_ARGUMENT
Definition api_pb2.h:373
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
Definition api_pb2.h:368
@ SERIAL_PROXY_STATUS_PORT_IN_USE
Definition api_pb2.h:372
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:371
@ DISCONNECT_REASON_PROVISIONING_CLOSED
Definition api_pb2.h:20
@ DISCONNECT_REASON_UNSPECIFIED
Definition api_pb2.h:19
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:242
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:243
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:239
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:241
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:244
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:245
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:240
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:258
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:259
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:255
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:251
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:254
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:252
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:253
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:86
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:87
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:179
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:173
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:176
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:180
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:177
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:175
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:174
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:178
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:342
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:343
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:344
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:314
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:316
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:315
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:264
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:263
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:69
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:71
uint64_t proto_varint_value_t
Type used for decoded varint values - uint64_t when BLE needs 64-bit addresses, uint32_t otherwise.
Definition proto.h:123
const void size_t len
Definition hal.h:68
size_t size_t pos
Definition helpers.h:1255
static void uint32_t
uint16_t length
Definition tt21100.cpp:0