ESPHome 2026.1.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
7
8#include "proto.h"
9#include "api_pb2_includes.h"
10
11namespace esphome::api {
12
13namespace enums {
14
20#ifdef USE_COVER
26#endif
27#ifdef USE_FAN
32#endif
33#ifdef USE_LIGHT
47#endif
48#ifdef USE_SENSOR
56#endif
67#ifdef USE_API_USER_DEFINED_ACTIONS
84#endif
85#ifdef USE_CLIMATE
131#endif
132#ifdef USE_WATER_HEATER
142#endif
151#ifdef USE_NUMBER
157#endif
158#ifdef USE_LOCK
167enum LockCommand : uint32_t {
171};
172#endif
173#ifdef USE_MEDIA_PLAYER
203#endif
204#ifdef USE_BLUETOOTH_PROXY
226#endif
236#ifdef USE_VOICE_ASSISTANT
261#endif
262#ifdef USE_ALARM_CONTROL_PANEL
284#endif
285#ifdef USE_TEXT
286enum TextMode : uint32_t {
289};
290#endif
291#ifdef USE_VALVE
297#endif
298#ifdef USE_UPDATE
304#endif
305#ifdef USE_ZWAVE_PROXY
311#endif
312
313} // namespace enums
314
316 public:
317 ~InfoResponseProtoMessage() override = default;
319 void set_object_id(const StringRef &ref) { this->object_id_ref_ = ref; }
320 uint32_t key{0};
322 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
324#ifdef USE_ENTITY_ICON
326 void set_icon(const StringRef &ref) { this->icon_ref_ = ref; }
327#endif
329#ifdef USE_DEVICES
330 uint32_t device_id{0};
331#endif
332
333 protected:
334};
335
337 public:
338 ~StateResponseProtoMessage() override = default;
339 uint32_t key{0};
340#ifdef USE_DEVICES
341 uint32_t device_id{0};
342#endif
343
344 protected:
345};
346
348 public:
349 ~CommandProtoMessage() override = default;
350 uint32_t key{0};
351#ifdef USE_DEVICES
352 uint32_t device_id{0};
353#endif
354
355 protected:
356};
358 public:
359 static constexpr uint8_t MESSAGE_TYPE = 1;
360 static constexpr uint8_t ESTIMATED_SIZE = 27;
361#ifdef HAS_PROTO_MESSAGE_DUMP
362 const char *message_name() const override { return "hello_request"; }
363#endif
364 const uint8_t *client_info{nullptr};
365 uint16_t client_info_len{0};
366 uint32_t api_version_major{0};
367 uint32_t api_version_minor{0};
368#ifdef HAS_PROTO_MESSAGE_DUMP
369 void dump_to(std::string &out) const override;
370#endif
371
372 protected:
373 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
374 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
375};
376class HelloResponse final : public ProtoMessage {
377 public:
378 static constexpr uint8_t MESSAGE_TYPE = 2;
379 static constexpr uint8_t ESTIMATED_SIZE = 26;
380#ifdef HAS_PROTO_MESSAGE_DUMP
381 const char *message_name() const override { return "hello_response"; }
382#endif
383 uint32_t api_version_major{0};
384 uint32_t api_version_minor{0};
386 void set_server_info(const StringRef &ref) { this->server_info_ref_ = ref; }
388 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
389 void encode(ProtoWriteBuffer buffer) const override;
390 void calculate_size(ProtoSize &size) const override;
391#ifdef HAS_PROTO_MESSAGE_DUMP
392 void dump_to(std::string &out) const override;
393#endif
394
395 protected:
396};
397#ifdef USE_API_PASSWORD
399 public:
400 static constexpr uint8_t MESSAGE_TYPE = 3;
401 static constexpr uint8_t ESTIMATED_SIZE = 19;
402#ifdef HAS_PROTO_MESSAGE_DUMP
403 const char *message_name() const override { return "authentication_request"; }
404#endif
405 const uint8_t *password{nullptr};
406 uint16_t password_len{0};
407#ifdef HAS_PROTO_MESSAGE_DUMP
408 void dump_to(std::string &out) const override;
409#endif
410
411 protected:
412 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
413};
415 public:
416 static constexpr uint8_t MESSAGE_TYPE = 4;
417 static constexpr uint8_t ESTIMATED_SIZE = 2;
418#ifdef HAS_PROTO_MESSAGE_DUMP
419 const char *message_name() const override { return "authentication_response"; }
420#endif
421 bool invalid_password{false};
422 void encode(ProtoWriteBuffer buffer) const override;
423 void calculate_size(ProtoSize &size) const override;
424#ifdef HAS_PROTO_MESSAGE_DUMP
425 void dump_to(std::string &out) const override;
426#endif
427
428 protected:
429};
430#endif
431class DisconnectRequest final : public ProtoMessage {
432 public:
433 static constexpr uint8_t MESSAGE_TYPE = 5;
434 static constexpr uint8_t ESTIMATED_SIZE = 0;
435#ifdef HAS_PROTO_MESSAGE_DUMP
436 const char *message_name() const override { return "disconnect_request"; }
437#endif
438#ifdef HAS_PROTO_MESSAGE_DUMP
439 void dump_to(std::string &out) const override;
440#endif
441
442 protected:
443};
444class DisconnectResponse final : public ProtoMessage {
445 public:
446 static constexpr uint8_t MESSAGE_TYPE = 6;
447 static constexpr uint8_t ESTIMATED_SIZE = 0;
448#ifdef HAS_PROTO_MESSAGE_DUMP
449 const char *message_name() const override { return "disconnect_response"; }
450#endif
451#ifdef HAS_PROTO_MESSAGE_DUMP
452 void dump_to(std::string &out) const override;
453#endif
454
455 protected:
456};
457class PingRequest final : public ProtoMessage {
458 public:
459 static constexpr uint8_t MESSAGE_TYPE = 7;
460 static constexpr uint8_t ESTIMATED_SIZE = 0;
461#ifdef HAS_PROTO_MESSAGE_DUMP
462 const char *message_name() const override { return "ping_request"; }
463#endif
464#ifdef HAS_PROTO_MESSAGE_DUMP
465 void dump_to(std::string &out) const override;
466#endif
467
468 protected:
469};
470class PingResponse final : public ProtoMessage {
471 public:
472 static constexpr uint8_t MESSAGE_TYPE = 8;
473 static constexpr uint8_t ESTIMATED_SIZE = 0;
474#ifdef HAS_PROTO_MESSAGE_DUMP
475 const char *message_name() const override { return "ping_response"; }
476#endif
477#ifdef HAS_PROTO_MESSAGE_DUMP
478 void dump_to(std::string &out) const override;
479#endif
480
481 protected:
482};
483class DeviceInfoRequest final : public ProtoMessage {
484 public:
485 static constexpr uint8_t MESSAGE_TYPE = 9;
486 static constexpr uint8_t ESTIMATED_SIZE = 0;
487#ifdef HAS_PROTO_MESSAGE_DUMP
488 const char *message_name() const override { return "device_info_request"; }
489#endif
490#ifdef HAS_PROTO_MESSAGE_DUMP
491 void dump_to(std::string &out) const override;
492#endif
493
494 protected:
495};
496#ifdef USE_AREAS
497class AreaInfo final : public ProtoMessage {
498 public:
499 uint32_t area_id{0};
501 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
502 void encode(ProtoWriteBuffer buffer) const override;
503 void calculate_size(ProtoSize &size) const override;
504#ifdef HAS_PROTO_MESSAGE_DUMP
505 void dump_to(std::string &out) const override;
506#endif
507
508 protected:
509};
510#endif
511#ifdef USE_DEVICES
512class DeviceInfo final : public ProtoMessage {
513 public:
514 uint32_t device_id{0};
516 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
517 uint32_t area_id{0};
518 void encode(ProtoWriteBuffer buffer) const override;
519 void calculate_size(ProtoSize &size) const override;
520#ifdef HAS_PROTO_MESSAGE_DUMP
521 void dump_to(std::string &out) const override;
522#endif
523
524 protected:
525};
526#endif
527class DeviceInfoResponse final : public ProtoMessage {
528 public:
529 static constexpr uint8_t MESSAGE_TYPE = 10;
530 static constexpr uint16_t ESTIMATED_SIZE = 257;
531#ifdef HAS_PROTO_MESSAGE_DUMP
532 const char *message_name() const override { return "device_info_response"; }
533#endif
534#ifdef USE_API_PASSWORD
535 bool uses_password{false};
536#endif
538 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
540 void set_mac_address(const StringRef &ref) { this->mac_address_ref_ = ref; }
542 void set_esphome_version(const StringRef &ref) { this->esphome_version_ref_ = ref; }
544 void set_compilation_time(const StringRef &ref) { this->compilation_time_ref_ = ref; }
546 void set_model(const StringRef &ref) { this->model_ref_ = ref; }
547#ifdef USE_DEEP_SLEEP
548 bool has_deep_sleep{false};
549#endif
550#ifdef ESPHOME_PROJECT_NAME
552 void set_project_name(const StringRef &ref) { this->project_name_ref_ = ref; }
553#endif
554#ifdef ESPHOME_PROJECT_NAME
556 void set_project_version(const StringRef &ref) { this->project_version_ref_ = ref; }
557#endif
558#ifdef USE_WEBSERVER
559 uint32_t webserver_port{0};
560#endif
561#ifdef USE_BLUETOOTH_PROXY
563#endif
565 void set_manufacturer(const StringRef &ref) { this->manufacturer_ref_ = ref; }
567 void set_friendly_name(const StringRef &ref) { this->friendly_name_ref_ = ref; }
568#ifdef USE_VOICE_ASSISTANT
570#endif
571#ifdef USE_AREAS
573 void set_suggested_area(const StringRef &ref) { this->suggested_area_ref_ = ref; }
574#endif
575#ifdef USE_BLUETOOTH_PROXY
578#endif
579#ifdef USE_API_NOISE
581#endif
582#ifdef USE_DEVICES
583 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
584#endif
585#ifdef USE_AREAS
586 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
587#endif
588#ifdef USE_AREAS
590#endif
591#ifdef USE_ZWAVE_PROXY
593#endif
594#ifdef USE_ZWAVE_PROXY
595 uint32_t zwave_home_id{0};
596#endif
597 void encode(ProtoWriteBuffer buffer) const override;
598 void calculate_size(ProtoSize &size) const override;
599#ifdef HAS_PROTO_MESSAGE_DUMP
600 void dump_to(std::string &out) const override;
601#endif
602
603 protected:
604};
605class ListEntitiesRequest final : public ProtoMessage {
606 public:
607 static constexpr uint8_t MESSAGE_TYPE = 11;
608 static constexpr uint8_t ESTIMATED_SIZE = 0;
609#ifdef HAS_PROTO_MESSAGE_DUMP
610 const char *message_name() const override { return "list_entities_request"; }
611#endif
612#ifdef HAS_PROTO_MESSAGE_DUMP
613 void dump_to(std::string &out) const override;
614#endif
615
616 protected:
617};
619 public:
620 static constexpr uint8_t MESSAGE_TYPE = 19;
621 static constexpr uint8_t ESTIMATED_SIZE = 0;
622#ifdef HAS_PROTO_MESSAGE_DUMP
623 const char *message_name() const override { return "list_entities_done_response"; }
624#endif
625#ifdef HAS_PROTO_MESSAGE_DUMP
626 void dump_to(std::string &out) const override;
627#endif
628
629 protected:
630};
632 public:
633 static constexpr uint8_t MESSAGE_TYPE = 20;
634 static constexpr uint8_t ESTIMATED_SIZE = 0;
635#ifdef HAS_PROTO_MESSAGE_DUMP
636 const char *message_name() const override { return "subscribe_states_request"; }
637#endif
638#ifdef HAS_PROTO_MESSAGE_DUMP
639 void dump_to(std::string &out) const override;
640#endif
641
642 protected:
643};
644#ifdef USE_BINARY_SENSOR
646 public:
647 static constexpr uint8_t MESSAGE_TYPE = 12;
648 static constexpr uint8_t ESTIMATED_SIZE = 51;
649#ifdef HAS_PROTO_MESSAGE_DUMP
650 const char *message_name() const override { return "list_entities_binary_sensor_response"; }
651#endif
653 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
655 void encode(ProtoWriteBuffer buffer) const override;
656 void calculate_size(ProtoSize &size) const override;
657#ifdef HAS_PROTO_MESSAGE_DUMP
658 void dump_to(std::string &out) const override;
659#endif
660
661 protected:
662};
664 public:
665 static constexpr uint8_t MESSAGE_TYPE = 21;
666 static constexpr uint8_t ESTIMATED_SIZE = 13;
667#ifdef HAS_PROTO_MESSAGE_DUMP
668 const char *message_name() const override { return "binary_sensor_state_response"; }
669#endif
670 bool state{false};
671 bool missing_state{false};
672 void encode(ProtoWriteBuffer buffer) const override;
673 void calculate_size(ProtoSize &size) const override;
674#ifdef HAS_PROTO_MESSAGE_DUMP
675 void dump_to(std::string &out) const override;
676#endif
677
678 protected:
679};
680#endif
681#ifdef USE_COVER
683 public:
684 static constexpr uint8_t MESSAGE_TYPE = 13;
685 static constexpr uint8_t ESTIMATED_SIZE = 57;
686#ifdef HAS_PROTO_MESSAGE_DUMP
687 const char *message_name() const override { return "list_entities_cover_response"; }
688#endif
689 bool assumed_state{false};
690 bool supports_position{false};
691 bool supports_tilt{false};
693 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
694 bool supports_stop{false};
695 void encode(ProtoWriteBuffer buffer) const override;
696 void calculate_size(ProtoSize &size) const override;
697#ifdef HAS_PROTO_MESSAGE_DUMP
698 void dump_to(std::string &out) const override;
699#endif
700
701 protected:
702};
704 public:
705 static constexpr uint8_t MESSAGE_TYPE = 22;
706 static constexpr uint8_t ESTIMATED_SIZE = 21;
707#ifdef HAS_PROTO_MESSAGE_DUMP
708 const char *message_name() const override { return "cover_state_response"; }
709#endif
710 float position{0.0f};
711 float tilt{0.0f};
713 void encode(ProtoWriteBuffer buffer) const override;
714 void calculate_size(ProtoSize &size) const override;
715#ifdef HAS_PROTO_MESSAGE_DUMP
716 void dump_to(std::string &out) const override;
717#endif
718
719 protected:
720};
722 public:
723 static constexpr uint8_t MESSAGE_TYPE = 30;
724 static constexpr uint8_t ESTIMATED_SIZE = 25;
725#ifdef HAS_PROTO_MESSAGE_DUMP
726 const char *message_name() const override { return "cover_command_request"; }
727#endif
728 bool has_position{false};
729 float position{0.0f};
730 bool has_tilt{false};
731 float tilt{0.0f};
732 bool stop{false};
733#ifdef HAS_PROTO_MESSAGE_DUMP
734 void dump_to(std::string &out) const override;
735#endif
736
737 protected:
738 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
739 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
740};
741#endif
742#ifdef USE_FAN
744 public:
745 static constexpr uint8_t MESSAGE_TYPE = 14;
746 static constexpr uint8_t ESTIMATED_SIZE = 68;
747#ifdef HAS_PROTO_MESSAGE_DUMP
748 const char *message_name() const override { return "list_entities_fan_response"; }
749#endif
751 bool supports_speed{false};
754 const std::vector<const char *> *supported_preset_modes{};
755 void encode(ProtoWriteBuffer buffer) const override;
756 void calculate_size(ProtoSize &size) const override;
757#ifdef HAS_PROTO_MESSAGE_DUMP
758 void dump_to(std::string &out) const override;
759#endif
760
761 protected:
762};
764 public:
765 static constexpr uint8_t MESSAGE_TYPE = 23;
766 static constexpr uint8_t ESTIMATED_SIZE = 28;
767#ifdef HAS_PROTO_MESSAGE_DUMP
768 const char *message_name() const override { return "fan_state_response"; }
769#endif
770 bool state{false};
771 bool oscillating{false};
773 int32_t speed_level{0};
775 void set_preset_mode(const StringRef &ref) { this->preset_mode_ref_ = ref; }
776 void encode(ProtoWriteBuffer buffer) const override;
777 void calculate_size(ProtoSize &size) const override;
778#ifdef HAS_PROTO_MESSAGE_DUMP
779 void dump_to(std::string &out) const override;
780#endif
781
782 protected:
783};
785 public:
786 static constexpr uint8_t MESSAGE_TYPE = 31;
787 static constexpr uint8_t ESTIMATED_SIZE = 48;
788#ifdef HAS_PROTO_MESSAGE_DUMP
789 const char *message_name() const override { return "fan_command_request"; }
790#endif
791 bool has_state{false};
792 bool state{false};
793 bool has_oscillating{false};
794 bool oscillating{false};
795 bool has_direction{false};
797 bool has_speed_level{false};
798 int32_t speed_level{0};
799 bool has_preset_mode{false};
800 const uint8_t *preset_mode{nullptr};
801 uint16_t preset_mode_len{0};
802#ifdef HAS_PROTO_MESSAGE_DUMP
803 void dump_to(std::string &out) const override;
804#endif
805
806 protected:
807 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
808 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
809 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
810};
811#endif
812#ifdef USE_LIGHT
814 public:
815 static constexpr uint8_t MESSAGE_TYPE = 15;
816 static constexpr uint8_t ESTIMATED_SIZE = 73;
817#ifdef HAS_PROTO_MESSAGE_DUMP
818 const char *message_name() const override { return "list_entities_light_response"; }
819#endif
821 float min_mireds{0.0f};
822 float max_mireds{0.0f};
824 void encode(ProtoWriteBuffer buffer) const override;
825 void calculate_size(ProtoSize &size) const override;
826#ifdef HAS_PROTO_MESSAGE_DUMP
827 void dump_to(std::string &out) const override;
828#endif
829
830 protected:
831};
833 public:
834 static constexpr uint8_t MESSAGE_TYPE = 24;
835 static constexpr uint8_t ESTIMATED_SIZE = 67;
836#ifdef HAS_PROTO_MESSAGE_DUMP
837 const char *message_name() const override { return "light_state_response"; }
838#endif
839 bool state{false};
840 float brightness{0.0f};
842 float color_brightness{0.0f};
843 float red{0.0f};
844 float green{0.0f};
845 float blue{0.0f};
846 float white{0.0f};
847 float color_temperature{0.0f};
848 float cold_white{0.0f};
849 float warm_white{0.0f};
851 void set_effect(const StringRef &ref) { this->effect_ref_ = ref; }
852 void encode(ProtoWriteBuffer buffer) const override;
853 void calculate_size(ProtoSize &size) const override;
854#ifdef HAS_PROTO_MESSAGE_DUMP
855 void dump_to(std::string &out) const override;
856#endif
857
858 protected:
859};
861 public:
862 static constexpr uint8_t MESSAGE_TYPE = 32;
863 static constexpr uint8_t ESTIMATED_SIZE = 122;
864#ifdef HAS_PROTO_MESSAGE_DUMP
865 const char *message_name() const override { return "light_command_request"; }
866#endif
867 bool has_state{false};
868 bool state{false};
869 bool has_brightness{false};
870 float brightness{0.0f};
871 bool has_color_mode{false};
874 float color_brightness{0.0f};
875 bool has_rgb{false};
876 float red{0.0f};
877 float green{0.0f};
878 float blue{0.0f};
879 bool has_white{false};
880 float white{0.0f};
882 float color_temperature{0.0f};
883 bool has_cold_white{false};
884 float cold_white{0.0f};
885 bool has_warm_white{false};
886 float warm_white{0.0f};
888 uint32_t transition_length{0};
889 bool has_flash_length{false};
890 uint32_t flash_length{0};
891 bool has_effect{false};
892 const uint8_t *effect{nullptr};
893 uint16_t effect_len{0};
894#ifdef HAS_PROTO_MESSAGE_DUMP
895 void dump_to(std::string &out) const override;
896#endif
897
898 protected:
899 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
900 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
901 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
902};
903#endif
904#ifdef USE_SENSOR
906 public:
907 static constexpr uint8_t MESSAGE_TYPE = 16;
908 static constexpr uint8_t ESTIMATED_SIZE = 66;
909#ifdef HAS_PROTO_MESSAGE_DUMP
910 const char *message_name() const override { return "list_entities_sensor_response"; }
911#endif
915 bool force_update{false};
917 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
919 void encode(ProtoWriteBuffer buffer) const override;
920 void calculate_size(ProtoSize &size) const override;
921#ifdef HAS_PROTO_MESSAGE_DUMP
922 void dump_to(std::string &out) const override;
923#endif
924
925 protected:
926};
928 public:
929 static constexpr uint8_t MESSAGE_TYPE = 25;
930 static constexpr uint8_t ESTIMATED_SIZE = 16;
931#ifdef HAS_PROTO_MESSAGE_DUMP
932 const char *message_name() const override { return "sensor_state_response"; }
933#endif
934 float state{0.0f};
935 bool missing_state{false};
936 void encode(ProtoWriteBuffer buffer) const override;
937 void calculate_size(ProtoSize &size) const override;
938#ifdef HAS_PROTO_MESSAGE_DUMP
939 void dump_to(std::string &out) const override;
940#endif
941
942 protected:
943};
944#endif
945#ifdef USE_SWITCH
947 public:
948 static constexpr uint8_t MESSAGE_TYPE = 17;
949 static constexpr uint8_t ESTIMATED_SIZE = 51;
950#ifdef HAS_PROTO_MESSAGE_DUMP
951 const char *message_name() const override { return "list_entities_switch_response"; }
952#endif
953 bool assumed_state{false};
955 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
956 void encode(ProtoWriteBuffer buffer) const override;
957 void calculate_size(ProtoSize &size) const override;
958#ifdef HAS_PROTO_MESSAGE_DUMP
959 void dump_to(std::string &out) const override;
960#endif
961
962 protected:
963};
965 public:
966 static constexpr uint8_t MESSAGE_TYPE = 26;
967 static constexpr uint8_t ESTIMATED_SIZE = 11;
968#ifdef HAS_PROTO_MESSAGE_DUMP
969 const char *message_name() const override { return "switch_state_response"; }
970#endif
971 bool state{false};
972 void encode(ProtoWriteBuffer buffer) const override;
973 void calculate_size(ProtoSize &size) const override;
974#ifdef HAS_PROTO_MESSAGE_DUMP
975 void dump_to(std::string &out) const override;
976#endif
977
978 protected:
979};
981 public:
982 static constexpr uint8_t MESSAGE_TYPE = 33;
983 static constexpr uint8_t ESTIMATED_SIZE = 11;
984#ifdef HAS_PROTO_MESSAGE_DUMP
985 const char *message_name() const override { return "switch_command_request"; }
986#endif
987 bool state{false};
988#ifdef HAS_PROTO_MESSAGE_DUMP
989 void dump_to(std::string &out) const override;
990#endif
991
992 protected:
993 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
994 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
995};
996#endif
997#ifdef USE_TEXT_SENSOR
999 public:
1000 static constexpr uint8_t MESSAGE_TYPE = 18;
1001 static constexpr uint8_t ESTIMATED_SIZE = 49;
1002#ifdef HAS_PROTO_MESSAGE_DUMP
1003 const char *message_name() const override { return "list_entities_text_sensor_response"; }
1004#endif
1006 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
1007 void encode(ProtoWriteBuffer buffer) const override;
1008 void calculate_size(ProtoSize &size) const override;
1009#ifdef HAS_PROTO_MESSAGE_DUMP
1010 void dump_to(std::string &out) const override;
1011#endif
1012
1013 protected:
1014};
1016 public:
1017 static constexpr uint8_t MESSAGE_TYPE = 27;
1018 static constexpr uint8_t ESTIMATED_SIZE = 20;
1019#ifdef HAS_PROTO_MESSAGE_DUMP
1020 const char *message_name() const override { return "text_sensor_state_response"; }
1021#endif
1023 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
1024 bool missing_state{false};
1025 void encode(ProtoWriteBuffer buffer) const override;
1026 void calculate_size(ProtoSize &size) const override;
1027#ifdef HAS_PROTO_MESSAGE_DUMP
1028 void dump_to(std::string &out) const override;
1029#endif
1030
1031 protected:
1032};
1033#endif
1035 public:
1036 static constexpr uint8_t MESSAGE_TYPE = 28;
1037 static constexpr uint8_t ESTIMATED_SIZE = 4;
1038#ifdef HAS_PROTO_MESSAGE_DUMP
1039 const char *message_name() const override { return "subscribe_logs_request"; }
1040#endif
1042 bool dump_config{false};
1043#ifdef HAS_PROTO_MESSAGE_DUMP
1044 void dump_to(std::string &out) const override;
1045#endif
1046
1047 protected:
1048 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1049};
1051 public:
1052 static constexpr uint8_t MESSAGE_TYPE = 29;
1053 static constexpr uint8_t ESTIMATED_SIZE = 11;
1054#ifdef HAS_PROTO_MESSAGE_DUMP
1055 const char *message_name() const override { return "subscribe_logs_response"; }
1056#endif
1058 const uint8_t *message_ptr_{nullptr};
1059 size_t message_len_{0};
1060 void set_message(const uint8_t *data, size_t len) {
1061 this->message_ptr_ = data;
1062 this->message_len_ = len;
1063 }
1064 void encode(ProtoWriteBuffer buffer) const override;
1065 void calculate_size(ProtoSize &size) const override;
1066#ifdef HAS_PROTO_MESSAGE_DUMP
1067 void dump_to(std::string &out) const override;
1068#endif
1069
1070 protected:
1071};
1072#ifdef USE_API_NOISE
1074 public:
1075 static constexpr uint8_t MESSAGE_TYPE = 124;
1076 static constexpr uint8_t ESTIMATED_SIZE = 19;
1077#ifdef HAS_PROTO_MESSAGE_DUMP
1078 const char *message_name() const override { return "noise_encryption_set_key_request"; }
1079#endif
1080 const uint8_t *key{nullptr};
1081 uint16_t key_len{0};
1082#ifdef HAS_PROTO_MESSAGE_DUMP
1083 void dump_to(std::string &out) const override;
1084#endif
1085
1086 protected:
1087 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1088};
1090 public:
1091 static constexpr uint8_t MESSAGE_TYPE = 125;
1092 static constexpr uint8_t ESTIMATED_SIZE = 2;
1093#ifdef HAS_PROTO_MESSAGE_DUMP
1094 const char *message_name() const override { return "noise_encryption_set_key_response"; }
1095#endif
1096 bool success{false};
1097 void encode(ProtoWriteBuffer buffer) const override;
1098 void calculate_size(ProtoSize &size) const override;
1099#ifdef HAS_PROTO_MESSAGE_DUMP
1100 void dump_to(std::string &out) const override;
1101#endif
1102
1103 protected:
1104};
1105#endif
1106#ifdef USE_API_HOMEASSISTANT_SERVICES
1108 public:
1109 static constexpr uint8_t MESSAGE_TYPE = 34;
1110 static constexpr uint8_t ESTIMATED_SIZE = 0;
1111#ifdef HAS_PROTO_MESSAGE_DUMP
1112 const char *message_name() const override { return "subscribe_homeassistant_services_request"; }
1113#endif
1114#ifdef HAS_PROTO_MESSAGE_DUMP
1115 void dump_to(std::string &out) const override;
1116#endif
1117
1118 protected:
1119};
1121 public:
1123 void set_key(const StringRef &ref) { this->key_ref_ = ref; }
1124 std::string value{};
1125 void encode(ProtoWriteBuffer buffer) const override;
1126 void calculate_size(ProtoSize &size) const override;
1127#ifdef HAS_PROTO_MESSAGE_DUMP
1128 void dump_to(std::string &out) const override;
1129#endif
1130
1131 protected:
1132};
1134 public:
1135 static constexpr uint8_t MESSAGE_TYPE = 35;
1136 static constexpr uint8_t ESTIMATED_SIZE = 128;
1137#ifdef HAS_PROTO_MESSAGE_DUMP
1138 const char *message_name() const override { return "homeassistant_action_request"; }
1139#endif
1141 void set_service(const StringRef &ref) { this->service_ref_ = ref; }
1145 bool is_event{false};
1146#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1147 uint32_t call_id{0};
1148#endif
1149#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1150 bool wants_response{false};
1151#endif
1152#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1153 std::string response_template{};
1154#endif
1155 void encode(ProtoWriteBuffer buffer) const override;
1156 void calculate_size(ProtoSize &size) const override;
1157#ifdef HAS_PROTO_MESSAGE_DUMP
1158 void dump_to(std::string &out) const override;
1159#endif
1160
1161 protected:
1162};
1163#endif
1164#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1166 public:
1167 static constexpr uint8_t MESSAGE_TYPE = 130;
1168 static constexpr uint8_t ESTIMATED_SIZE = 34;
1169#ifdef HAS_PROTO_MESSAGE_DUMP
1170 const char *message_name() const override { return "homeassistant_action_response"; }
1171#endif
1172 uint32_t call_id{0};
1173 bool success{false};
1174 std::string error_message{};
1175#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1176 const uint8_t *response_data{nullptr};
1178#endif
1179#ifdef HAS_PROTO_MESSAGE_DUMP
1180 void dump_to(std::string &out) const override;
1181#endif
1182
1183 protected:
1184 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1185 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1186};
1187#endif
1188#ifdef USE_API_HOMEASSISTANT_STATES
1190 public:
1191 static constexpr uint8_t MESSAGE_TYPE = 38;
1192 static constexpr uint8_t ESTIMATED_SIZE = 0;
1193#ifdef HAS_PROTO_MESSAGE_DUMP
1194 const char *message_name() const override { return "subscribe_home_assistant_states_request"; }
1195#endif
1196#ifdef HAS_PROTO_MESSAGE_DUMP
1197 void dump_to(std::string &out) const override;
1198#endif
1199
1200 protected:
1201};
1203 public:
1204 static constexpr uint8_t MESSAGE_TYPE = 39;
1205 static constexpr uint8_t ESTIMATED_SIZE = 20;
1206#ifdef HAS_PROTO_MESSAGE_DUMP
1207 const char *message_name() const override { return "subscribe_home_assistant_state_response"; }
1208#endif
1210 void set_entity_id(const StringRef &ref) { this->entity_id_ref_ = ref; }
1212 void set_attribute(const StringRef &ref) { this->attribute_ref_ = ref; }
1213 bool once{false};
1214 void encode(ProtoWriteBuffer buffer) const override;
1215 void calculate_size(ProtoSize &size) const override;
1216#ifdef HAS_PROTO_MESSAGE_DUMP
1217 void dump_to(std::string &out) const override;
1218#endif
1219
1220 protected:
1221};
1223 public:
1224 static constexpr uint8_t MESSAGE_TYPE = 40;
1225 static constexpr uint8_t ESTIMATED_SIZE = 57;
1226#ifdef HAS_PROTO_MESSAGE_DUMP
1227 const char *message_name() const override { return "home_assistant_state_response"; }
1228#endif
1229 const uint8_t *entity_id{nullptr};
1230 uint16_t entity_id_len{0};
1231 const uint8_t *state{nullptr};
1232 uint16_t state_len{0};
1233 const uint8_t *attribute{nullptr};
1234 uint16_t attribute_len{0};
1235#ifdef HAS_PROTO_MESSAGE_DUMP
1236 void dump_to(std::string &out) const override;
1237#endif
1238
1239 protected:
1240 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1241};
1242#endif
1243class GetTimeRequest final : public ProtoMessage {
1244 public:
1245 static constexpr uint8_t MESSAGE_TYPE = 36;
1246 static constexpr uint8_t ESTIMATED_SIZE = 0;
1247#ifdef HAS_PROTO_MESSAGE_DUMP
1248 const char *message_name() const override { return "get_time_request"; }
1249#endif
1250#ifdef HAS_PROTO_MESSAGE_DUMP
1251 void dump_to(std::string &out) const override;
1252#endif
1253
1254 protected:
1255};
1257 public:
1258 static constexpr uint8_t MESSAGE_TYPE = 37;
1259 static constexpr uint8_t ESTIMATED_SIZE = 24;
1260#ifdef HAS_PROTO_MESSAGE_DUMP
1261 const char *message_name() const override { return "get_time_response"; }
1262#endif
1263 uint32_t epoch_seconds{0};
1264 const uint8_t *timezone{nullptr};
1265 uint16_t timezone_len{0};
1266#ifdef HAS_PROTO_MESSAGE_DUMP
1267 void dump_to(std::string &out) const override;
1268#endif
1269
1270 protected:
1271 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1272 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1273};
1274#ifdef USE_API_USER_DEFINED_ACTIONS
1276 public:
1278 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
1280 void encode(ProtoWriteBuffer buffer) const override;
1281 void calculate_size(ProtoSize &size) const override;
1282#ifdef HAS_PROTO_MESSAGE_DUMP
1283 void dump_to(std::string &out) const override;
1284#endif
1285
1286 protected:
1287};
1289 public:
1290 static constexpr uint8_t MESSAGE_TYPE = 41;
1291 static constexpr uint8_t ESTIMATED_SIZE = 50;
1292#ifdef HAS_PROTO_MESSAGE_DUMP
1293 const char *message_name() const override { return "list_entities_services_response"; }
1294#endif
1296 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
1297 uint32_t key{0};
1300 void encode(ProtoWriteBuffer buffer) const override;
1301 void calculate_size(ProtoSize &size) const override;
1302#ifdef HAS_PROTO_MESSAGE_DUMP
1303 void dump_to(std::string &out) const override;
1304#endif
1305
1306 protected:
1307};
1309 public:
1310 bool bool_{false};
1311 int32_t legacy_int{0};
1312 float float_{0.0f};
1313 std::string string_{};
1314 int32_t int_{0};
1319 void decode(const uint8_t *buffer, size_t length) override;
1320#ifdef HAS_PROTO_MESSAGE_DUMP
1321 void dump_to(std::string &out) const override;
1322#endif
1323
1324 protected:
1325 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1326 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1327 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1328};
1330 public:
1331 static constexpr uint8_t MESSAGE_TYPE = 42;
1332 static constexpr uint8_t ESTIMATED_SIZE = 45;
1333#ifdef HAS_PROTO_MESSAGE_DUMP
1334 const char *message_name() const override { return "execute_service_request"; }
1335#endif
1336 uint32_t key{0};
1338#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1339 uint32_t call_id{0};
1340#endif
1341#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1342 bool return_response{false};
1343#endif
1344 void decode(const uint8_t *buffer, size_t length) override;
1345#ifdef HAS_PROTO_MESSAGE_DUMP
1346 void dump_to(std::string &out) const override;
1347#endif
1348
1349 protected:
1350 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1351 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1352 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1353};
1354#endif
1355#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1357 public:
1358 static constexpr uint8_t MESSAGE_TYPE = 131;
1359 static constexpr uint8_t ESTIMATED_SIZE = 34;
1360#ifdef HAS_PROTO_MESSAGE_DUMP
1361 const char *message_name() const override { return "execute_service_response"; }
1362#endif
1363 uint32_t call_id{0};
1364 bool success{false};
1366 void set_error_message(const StringRef &ref) { this->error_message_ref_ = ref; }
1367#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1368 const uint8_t *response_data{nullptr};
1370#endif
1371 void encode(ProtoWriteBuffer buffer) const override;
1372 void calculate_size(ProtoSize &size) const override;
1373#ifdef HAS_PROTO_MESSAGE_DUMP
1374 void dump_to(std::string &out) const override;
1375#endif
1376
1377 protected:
1378};
1379#endif
1380#ifdef USE_CAMERA
1382 public:
1383 static constexpr uint8_t MESSAGE_TYPE = 43;
1384 static constexpr uint8_t ESTIMATED_SIZE = 40;
1385#ifdef HAS_PROTO_MESSAGE_DUMP
1386 const char *message_name() const override { return "list_entities_camera_response"; }
1387#endif
1388 void encode(ProtoWriteBuffer buffer) const override;
1389 void calculate_size(ProtoSize &size) const override;
1390#ifdef HAS_PROTO_MESSAGE_DUMP
1391 void dump_to(std::string &out) const override;
1392#endif
1393
1394 protected:
1395};
1397 public:
1398 static constexpr uint8_t MESSAGE_TYPE = 44;
1399 static constexpr uint8_t ESTIMATED_SIZE = 20;
1400#ifdef HAS_PROTO_MESSAGE_DUMP
1401 const char *message_name() const override { return "camera_image_response"; }
1402#endif
1403 const uint8_t *data_ptr_{nullptr};
1404 size_t data_len_{0};
1405 void set_data(const uint8_t *data, size_t len) {
1406 this->data_ptr_ = data;
1407 this->data_len_ = len;
1408 }
1409 bool done{false};
1410 void encode(ProtoWriteBuffer buffer) const override;
1411 void calculate_size(ProtoSize &size) const override;
1412#ifdef HAS_PROTO_MESSAGE_DUMP
1413 void dump_to(std::string &out) const override;
1414#endif
1415
1416 protected:
1417};
1419 public:
1420 static constexpr uint8_t MESSAGE_TYPE = 45;
1421 static constexpr uint8_t ESTIMATED_SIZE = 4;
1422#ifdef HAS_PROTO_MESSAGE_DUMP
1423 const char *message_name() const override { return "camera_image_request"; }
1424#endif
1425 bool single{false};
1426 bool stream{false};
1427#ifdef HAS_PROTO_MESSAGE_DUMP
1428 void dump_to(std::string &out) const override;
1429#endif
1430
1431 protected:
1432 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1433};
1434#endif
1435#ifdef USE_CLIMATE
1437 public:
1438 static constexpr uint8_t MESSAGE_TYPE = 46;
1439 static constexpr uint8_t ESTIMATED_SIZE = 150;
1440#ifdef HAS_PROTO_MESSAGE_DUMP
1441 const char *message_name() const override { return "list_entities_climate_response"; }
1442#endif
1449 bool supports_action{false};
1452 const std::vector<const char *> *supported_custom_fan_modes{};
1454 const std::vector<const char *> *supported_custom_presets{};
1460 uint32_t feature_flags{0};
1461 void encode(ProtoWriteBuffer buffer) const override;
1462 void calculate_size(ProtoSize &size) const override;
1463#ifdef HAS_PROTO_MESSAGE_DUMP
1464 void dump_to(std::string &out) const override;
1465#endif
1466
1467 protected:
1468};
1470 public:
1471 static constexpr uint8_t MESSAGE_TYPE = 47;
1472 static constexpr uint8_t ESTIMATED_SIZE = 68;
1473#ifdef HAS_PROTO_MESSAGE_DUMP
1474 const char *message_name() const override { return "climate_state_response"; }
1475#endif
1485 void set_custom_fan_mode(const StringRef &ref) { this->custom_fan_mode_ref_ = ref; }
1488 void set_custom_preset(const StringRef &ref) { this->custom_preset_ref_ = ref; }
1489 float current_humidity{0.0f};
1490 float target_humidity{0.0f};
1491 void encode(ProtoWriteBuffer buffer) const override;
1492 void calculate_size(ProtoSize &size) const override;
1493#ifdef HAS_PROTO_MESSAGE_DUMP
1494 void dump_to(std::string &out) const override;
1495#endif
1496
1497 protected:
1498};
1500 public:
1501 static constexpr uint8_t MESSAGE_TYPE = 48;
1502 static constexpr uint8_t ESTIMATED_SIZE = 104;
1503#ifdef HAS_PROTO_MESSAGE_DUMP
1504 const char *message_name() const override { return "climate_command_request"; }
1505#endif
1506 bool has_mode{false};
1514 bool has_fan_mode{false};
1516 bool has_swing_mode{false};
1519 const uint8_t *custom_fan_mode{nullptr};
1521 bool has_preset{false};
1524 const uint8_t *custom_preset{nullptr};
1527 float target_humidity{0.0f};
1528#ifdef HAS_PROTO_MESSAGE_DUMP
1529 void dump_to(std::string &out) const override;
1530#endif
1531
1532 protected:
1533 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1534 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1535 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1536};
1537#endif
1538#ifdef USE_WATER_HEATER
1540 public:
1541 static constexpr uint8_t MESSAGE_TYPE = 132;
1542 static constexpr uint8_t ESTIMATED_SIZE = 63;
1543#ifdef HAS_PROTO_MESSAGE_DUMP
1544 const char *message_name() const override { return "list_entities_water_heater_response"; }
1545#endif
1546 float min_temperature{0.0f};
1547 float max_temperature{0.0f};
1551 void encode(ProtoWriteBuffer buffer) const override;
1552 void calculate_size(ProtoSize &size) const override;
1553#ifdef HAS_PROTO_MESSAGE_DUMP
1554 void dump_to(std::string &out) const override;
1555#endif
1556
1557 protected:
1558};
1560 public:
1561 static constexpr uint8_t MESSAGE_TYPE = 133;
1562 static constexpr uint8_t ESTIMATED_SIZE = 35;
1563#ifdef HAS_PROTO_MESSAGE_DUMP
1564 const char *message_name() const override { return "water_heater_state_response"; }
1565#endif
1569 uint32_t state{0};
1572 void encode(ProtoWriteBuffer buffer) const override;
1573 void calculate_size(ProtoSize &size) const override;
1574#ifdef HAS_PROTO_MESSAGE_DUMP
1575 void dump_to(std::string &out) const override;
1576#endif
1577
1578 protected:
1579};
1581 public:
1582 static constexpr uint8_t MESSAGE_TYPE = 134;
1583 static constexpr uint8_t ESTIMATED_SIZE = 34;
1584#ifdef HAS_PROTO_MESSAGE_DUMP
1585 const char *message_name() const override { return "water_heater_command_request"; }
1586#endif
1587 uint32_t has_fields{0};
1590 uint32_t state{0};
1593#ifdef HAS_PROTO_MESSAGE_DUMP
1594 void dump_to(std::string &out) const override;
1595#endif
1596
1597 protected:
1598 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1599 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1600};
1601#endif
1602#ifdef USE_NUMBER
1604 public:
1605 static constexpr uint8_t MESSAGE_TYPE = 49;
1606 static constexpr uint8_t ESTIMATED_SIZE = 75;
1607#ifdef HAS_PROTO_MESSAGE_DUMP
1608 const char *message_name() const override { return "list_entities_number_response"; }
1609#endif
1610 float min_value{0.0f};
1611 float max_value{0.0f};
1612 float step{0.0f};
1617 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
1618 void encode(ProtoWriteBuffer buffer) const override;
1619 void calculate_size(ProtoSize &size) const override;
1620#ifdef HAS_PROTO_MESSAGE_DUMP
1621 void dump_to(std::string &out) const override;
1622#endif
1623
1624 protected:
1625};
1627 public:
1628 static constexpr uint8_t MESSAGE_TYPE = 50;
1629 static constexpr uint8_t ESTIMATED_SIZE = 16;
1630#ifdef HAS_PROTO_MESSAGE_DUMP
1631 const char *message_name() const override { return "number_state_response"; }
1632#endif
1633 float state{0.0f};
1634 bool missing_state{false};
1635 void encode(ProtoWriteBuffer buffer) const override;
1636 void calculate_size(ProtoSize &size) const override;
1637#ifdef HAS_PROTO_MESSAGE_DUMP
1638 void dump_to(std::string &out) const override;
1639#endif
1640
1641 protected:
1642};
1644 public:
1645 static constexpr uint8_t MESSAGE_TYPE = 51;
1646 static constexpr uint8_t ESTIMATED_SIZE = 14;
1647#ifdef HAS_PROTO_MESSAGE_DUMP
1648 const char *message_name() const override { return "number_command_request"; }
1649#endif
1650 float state{0.0f};
1651#ifdef HAS_PROTO_MESSAGE_DUMP
1652 void dump_to(std::string &out) const override;
1653#endif
1654
1655 protected:
1656 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1657 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1658};
1659#endif
1660#ifdef USE_SELECT
1662 public:
1663 static constexpr uint8_t MESSAGE_TYPE = 52;
1664 static constexpr uint8_t ESTIMATED_SIZE = 58;
1665#ifdef HAS_PROTO_MESSAGE_DUMP
1666 const char *message_name() const override { return "list_entities_select_response"; }
1667#endif
1669 void encode(ProtoWriteBuffer buffer) const override;
1670 void calculate_size(ProtoSize &size) const override;
1671#ifdef HAS_PROTO_MESSAGE_DUMP
1672 void dump_to(std::string &out) const override;
1673#endif
1674
1675 protected:
1676};
1678 public:
1679 static constexpr uint8_t MESSAGE_TYPE = 53;
1680 static constexpr uint8_t ESTIMATED_SIZE = 20;
1681#ifdef HAS_PROTO_MESSAGE_DUMP
1682 const char *message_name() const override { return "select_state_response"; }
1683#endif
1685 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
1686 bool missing_state{false};
1687 void encode(ProtoWriteBuffer buffer) const override;
1688 void calculate_size(ProtoSize &size) const override;
1689#ifdef HAS_PROTO_MESSAGE_DUMP
1690 void dump_to(std::string &out) const override;
1691#endif
1692
1693 protected:
1694};
1696 public:
1697 static constexpr uint8_t MESSAGE_TYPE = 54;
1698 static constexpr uint8_t ESTIMATED_SIZE = 28;
1699#ifdef HAS_PROTO_MESSAGE_DUMP
1700 const char *message_name() const override { return "select_command_request"; }
1701#endif
1702 const uint8_t *state{nullptr};
1703 uint16_t state_len{0};
1704#ifdef HAS_PROTO_MESSAGE_DUMP
1705 void dump_to(std::string &out) const override;
1706#endif
1707
1708 protected:
1709 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1710 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1711 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1712};
1713#endif
1714#ifdef USE_SIREN
1716 public:
1717 static constexpr uint8_t MESSAGE_TYPE = 55;
1718 static constexpr uint8_t ESTIMATED_SIZE = 62;
1719#ifdef HAS_PROTO_MESSAGE_DUMP
1720 const char *message_name() const override { return "list_entities_siren_response"; }
1721#endif
1722 std::vector<std::string> tones{};
1724 bool supports_volume{false};
1725 void encode(ProtoWriteBuffer buffer) const override;
1726 void calculate_size(ProtoSize &size) const override;
1727#ifdef HAS_PROTO_MESSAGE_DUMP
1728 void dump_to(std::string &out) const override;
1729#endif
1730
1731 protected:
1732};
1734 public:
1735 static constexpr uint8_t MESSAGE_TYPE = 56;
1736 static constexpr uint8_t ESTIMATED_SIZE = 11;
1737#ifdef HAS_PROTO_MESSAGE_DUMP
1738 const char *message_name() const override { return "siren_state_response"; }
1739#endif
1740 bool state{false};
1741 void encode(ProtoWriteBuffer buffer) const override;
1742 void calculate_size(ProtoSize &size) const override;
1743#ifdef HAS_PROTO_MESSAGE_DUMP
1744 void dump_to(std::string &out) const override;
1745#endif
1746
1747 protected:
1748};
1750 public:
1751 static constexpr uint8_t MESSAGE_TYPE = 57;
1752 static constexpr uint8_t ESTIMATED_SIZE = 37;
1753#ifdef HAS_PROTO_MESSAGE_DUMP
1754 const char *message_name() const override { return "siren_command_request"; }
1755#endif
1756 bool has_state{false};
1757 bool state{false};
1758 bool has_tone{false};
1759 std::string tone{};
1760 bool has_duration{false};
1761 uint32_t duration{0};
1762 bool has_volume{false};
1763 float volume{0.0f};
1764#ifdef HAS_PROTO_MESSAGE_DUMP
1765 void dump_to(std::string &out) const override;
1766#endif
1767
1768 protected:
1769 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1770 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1771 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1772};
1773#endif
1774#ifdef USE_LOCK
1776 public:
1777 static constexpr uint8_t MESSAGE_TYPE = 58;
1778 static constexpr uint8_t ESTIMATED_SIZE = 55;
1779#ifdef HAS_PROTO_MESSAGE_DUMP
1780 const char *message_name() const override { return "list_entities_lock_response"; }
1781#endif
1782 bool assumed_state{false};
1783 bool supports_open{false};
1784 bool requires_code{false};
1786 void set_code_format(const StringRef &ref) { this->code_format_ref_ = ref; }
1787 void encode(ProtoWriteBuffer buffer) const override;
1788 void calculate_size(ProtoSize &size) const override;
1789#ifdef HAS_PROTO_MESSAGE_DUMP
1790 void dump_to(std::string &out) const override;
1791#endif
1792
1793 protected:
1794};
1796 public:
1797 static constexpr uint8_t MESSAGE_TYPE = 59;
1798 static constexpr uint8_t ESTIMATED_SIZE = 11;
1799#ifdef HAS_PROTO_MESSAGE_DUMP
1800 const char *message_name() const override { return "lock_state_response"; }
1801#endif
1803 void encode(ProtoWriteBuffer buffer) const override;
1804 void calculate_size(ProtoSize &size) const override;
1805#ifdef HAS_PROTO_MESSAGE_DUMP
1806 void dump_to(std::string &out) const override;
1807#endif
1808
1809 protected:
1810};
1812 public:
1813 static constexpr uint8_t MESSAGE_TYPE = 60;
1814 static constexpr uint8_t ESTIMATED_SIZE = 22;
1815#ifdef HAS_PROTO_MESSAGE_DUMP
1816 const char *message_name() const override { return "lock_command_request"; }
1817#endif
1819 bool has_code{false};
1820 std::string code{};
1821#ifdef HAS_PROTO_MESSAGE_DUMP
1822 void dump_to(std::string &out) const override;
1823#endif
1824
1825 protected:
1826 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1827 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1828 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1829};
1830#endif
1831#ifdef USE_BUTTON
1833 public:
1834 static constexpr uint8_t MESSAGE_TYPE = 61;
1835 static constexpr uint8_t ESTIMATED_SIZE = 49;
1836#ifdef HAS_PROTO_MESSAGE_DUMP
1837 const char *message_name() const override { return "list_entities_button_response"; }
1838#endif
1840 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
1841 void encode(ProtoWriteBuffer buffer) const override;
1842 void calculate_size(ProtoSize &size) const override;
1843#ifdef HAS_PROTO_MESSAGE_DUMP
1844 void dump_to(std::string &out) const override;
1845#endif
1846
1847 protected:
1848};
1850 public:
1851 static constexpr uint8_t MESSAGE_TYPE = 62;
1852 static constexpr uint8_t ESTIMATED_SIZE = 9;
1853#ifdef HAS_PROTO_MESSAGE_DUMP
1854 const char *message_name() const override { return "button_command_request"; }
1855#endif
1856#ifdef HAS_PROTO_MESSAGE_DUMP
1857 void dump_to(std::string &out) const override;
1858#endif
1859
1860 protected:
1861 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1862 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1863};
1864#endif
1865#ifdef USE_MEDIA_PLAYER
1867 public:
1869 void set_format(const StringRef &ref) { this->format_ref_ = ref; }
1870 uint32_t sample_rate{0};
1871 uint32_t num_channels{0};
1873 uint32_t sample_bytes{0};
1874 void encode(ProtoWriteBuffer buffer) const override;
1875 void calculate_size(ProtoSize &size) const override;
1876#ifdef HAS_PROTO_MESSAGE_DUMP
1877 void dump_to(std::string &out) const override;
1878#endif
1879
1880 protected:
1881};
1883 public:
1884 static constexpr uint8_t MESSAGE_TYPE = 63;
1885 static constexpr uint8_t ESTIMATED_SIZE = 80;
1886#ifdef HAS_PROTO_MESSAGE_DUMP
1887 const char *message_name() const override { return "list_entities_media_player_response"; }
1888#endif
1889 bool supports_pause{false};
1890 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1891 uint32_t feature_flags{0};
1892 void encode(ProtoWriteBuffer buffer) const override;
1893 void calculate_size(ProtoSize &size) const override;
1894#ifdef HAS_PROTO_MESSAGE_DUMP
1895 void dump_to(std::string &out) const override;
1896#endif
1897
1898 protected:
1899};
1901 public:
1902 static constexpr uint8_t MESSAGE_TYPE = 64;
1903 static constexpr uint8_t ESTIMATED_SIZE = 18;
1904#ifdef HAS_PROTO_MESSAGE_DUMP
1905 const char *message_name() const override { return "media_player_state_response"; }
1906#endif
1908 float volume{0.0f};
1909 bool muted{false};
1910 void encode(ProtoWriteBuffer buffer) const override;
1911 void calculate_size(ProtoSize &size) const override;
1912#ifdef HAS_PROTO_MESSAGE_DUMP
1913 void dump_to(std::string &out) const override;
1914#endif
1915
1916 protected:
1917};
1919 public:
1920 static constexpr uint8_t MESSAGE_TYPE = 65;
1921 static constexpr uint8_t ESTIMATED_SIZE = 35;
1922#ifdef HAS_PROTO_MESSAGE_DUMP
1923 const char *message_name() const override { return "media_player_command_request"; }
1924#endif
1925 bool has_command{false};
1927 bool has_volume{false};
1928 float volume{0.0f};
1929 bool has_media_url{false};
1930 std::string media_url{};
1931 bool has_announcement{false};
1932 bool announcement{false};
1933#ifdef HAS_PROTO_MESSAGE_DUMP
1934 void dump_to(std::string &out) const override;
1935#endif
1936
1937 protected:
1938 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1939 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1940 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1941};
1942#endif
1943#ifdef USE_BLUETOOTH_PROXY
1945 public:
1946 static constexpr uint8_t MESSAGE_TYPE = 66;
1947 static constexpr uint8_t ESTIMATED_SIZE = 4;
1948#ifdef HAS_PROTO_MESSAGE_DUMP
1949 const char *message_name() const override { return "subscribe_bluetooth_le_advertisements_request"; }
1950#endif
1951 uint32_t flags{0};
1952#ifdef HAS_PROTO_MESSAGE_DUMP
1953 void dump_to(std::string &out) const override;
1954#endif
1955
1956 protected:
1957 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1958};
1960 public:
1961 uint64_t address{0};
1962 int32_t rssi{0};
1963 uint32_t address_type{0};
1964 uint8_t data[62]{};
1965 uint8_t data_len{0};
1966 void encode(ProtoWriteBuffer buffer) const override;
1967 void calculate_size(ProtoSize &size) const override;
1968#ifdef HAS_PROTO_MESSAGE_DUMP
1969 void dump_to(std::string &out) const override;
1970#endif
1971
1972 protected:
1973};
1975 public:
1976 static constexpr uint8_t MESSAGE_TYPE = 93;
1977 static constexpr uint8_t ESTIMATED_SIZE = 136;
1978#ifdef HAS_PROTO_MESSAGE_DUMP
1979 const char *message_name() const override { return "bluetooth_le_raw_advertisements_response"; }
1980#endif
1981 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
1983 void encode(ProtoWriteBuffer buffer) const override;
1984 void calculate_size(ProtoSize &size) const override;
1985#ifdef HAS_PROTO_MESSAGE_DUMP
1986 void dump_to(std::string &out) const override;
1987#endif
1988
1989 protected:
1990};
1992 public:
1993 static constexpr uint8_t MESSAGE_TYPE = 68;
1994 static constexpr uint8_t ESTIMATED_SIZE = 12;
1995#ifdef HAS_PROTO_MESSAGE_DUMP
1996 const char *message_name() const override { return "bluetooth_device_request"; }
1997#endif
1998 uint64_t address{0};
2000 bool has_address_type{false};
2001 uint32_t address_type{0};
2002#ifdef HAS_PROTO_MESSAGE_DUMP
2003 void dump_to(std::string &out) const override;
2004#endif
2005
2006 protected:
2007 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2008};
2010 public:
2011 static constexpr uint8_t MESSAGE_TYPE = 69;
2012 static constexpr uint8_t ESTIMATED_SIZE = 14;
2013#ifdef HAS_PROTO_MESSAGE_DUMP
2014 const char *message_name() const override { return "bluetooth_device_connection_response"; }
2015#endif
2016 uint64_t address{0};
2017 bool connected{false};
2018 uint32_t mtu{0};
2019 int32_t error{0};
2020 void encode(ProtoWriteBuffer buffer) const override;
2021 void calculate_size(ProtoSize &size) const override;
2022#ifdef HAS_PROTO_MESSAGE_DUMP
2023 void dump_to(std::string &out) const override;
2024#endif
2025
2026 protected:
2027};
2029 public:
2030 static constexpr uint8_t MESSAGE_TYPE = 70;
2031 static constexpr uint8_t ESTIMATED_SIZE = 4;
2032#ifdef HAS_PROTO_MESSAGE_DUMP
2033 const char *message_name() const override { return "bluetooth_gatt_get_services_request"; }
2034#endif
2035 uint64_t address{0};
2036#ifdef HAS_PROTO_MESSAGE_DUMP
2037 void dump_to(std::string &out) const override;
2038#endif
2039
2040 protected:
2041 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2042};
2044 public:
2045 std::array<uint64_t, 2> uuid{};
2046 uint32_t handle{0};
2047 uint32_t short_uuid{0};
2048 void encode(ProtoWriteBuffer buffer) const override;
2049 void calculate_size(ProtoSize &size) const override;
2050#ifdef HAS_PROTO_MESSAGE_DUMP
2051 void dump_to(std::string &out) const override;
2052#endif
2053
2054 protected:
2055};
2057 public:
2058 std::array<uint64_t, 2> uuid{};
2059 uint32_t handle{0};
2060 uint32_t properties{0};
2062 uint32_t short_uuid{0};
2063 void encode(ProtoWriteBuffer buffer) const override;
2064 void calculate_size(ProtoSize &size) const override;
2065#ifdef HAS_PROTO_MESSAGE_DUMP
2066 void dump_to(std::string &out) const override;
2067#endif
2068
2069 protected:
2070};
2072 public:
2073 std::array<uint64_t, 2> uuid{};
2074 uint32_t handle{0};
2076 uint32_t short_uuid{0};
2077 void encode(ProtoWriteBuffer buffer) const override;
2078 void calculate_size(ProtoSize &size) const override;
2079#ifdef HAS_PROTO_MESSAGE_DUMP
2080 void dump_to(std::string &out) const override;
2081#endif
2082
2083 protected:
2084};
2086 public:
2087 static constexpr uint8_t MESSAGE_TYPE = 71;
2088 static constexpr uint8_t ESTIMATED_SIZE = 38;
2089#ifdef HAS_PROTO_MESSAGE_DUMP
2090 const char *message_name() const override { return "bluetooth_gatt_get_services_response"; }
2091#endif
2092 uint64_t address{0};
2093 std::vector<BluetoothGATTService> services{};
2094 void encode(ProtoWriteBuffer buffer) const override;
2095 void calculate_size(ProtoSize &size) const override;
2096#ifdef HAS_PROTO_MESSAGE_DUMP
2097 void dump_to(std::string &out) const override;
2098#endif
2099
2100 protected:
2101};
2103 public:
2104 static constexpr uint8_t MESSAGE_TYPE = 72;
2105 static constexpr uint8_t ESTIMATED_SIZE = 4;
2106#ifdef HAS_PROTO_MESSAGE_DUMP
2107 const char *message_name() const override { return "bluetooth_gatt_get_services_done_response"; }
2108#endif
2109 uint64_t address{0};
2110 void encode(ProtoWriteBuffer buffer) const override;
2111 void calculate_size(ProtoSize &size) const override;
2112#ifdef HAS_PROTO_MESSAGE_DUMP
2113 void dump_to(std::string &out) const override;
2114#endif
2115
2116 protected:
2117};
2119 public:
2120 static constexpr uint8_t MESSAGE_TYPE = 73;
2121 static constexpr uint8_t ESTIMATED_SIZE = 8;
2122#ifdef HAS_PROTO_MESSAGE_DUMP
2123 const char *message_name() const override { return "bluetooth_gatt_read_request"; }
2124#endif
2125 uint64_t address{0};
2126 uint32_t handle{0};
2127#ifdef HAS_PROTO_MESSAGE_DUMP
2128 void dump_to(std::string &out) const override;
2129#endif
2130
2131 protected:
2132 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2133};
2135 public:
2136 static constexpr uint8_t MESSAGE_TYPE = 74;
2137 static constexpr uint8_t ESTIMATED_SIZE = 17;
2138#ifdef HAS_PROTO_MESSAGE_DUMP
2139 const char *message_name() const override { return "bluetooth_gatt_read_response"; }
2140#endif
2141 uint64_t address{0};
2142 uint32_t handle{0};
2143 const uint8_t *data_ptr_{nullptr};
2144 size_t data_len_{0};
2145 void set_data(const uint8_t *data, size_t len) {
2146 this->data_ptr_ = data;
2147 this->data_len_ = len;
2148 }
2149 void encode(ProtoWriteBuffer buffer) const override;
2150 void calculate_size(ProtoSize &size) const override;
2151#ifdef HAS_PROTO_MESSAGE_DUMP
2152 void dump_to(std::string &out) const override;
2153#endif
2154
2155 protected:
2156};
2158 public:
2159 static constexpr uint8_t MESSAGE_TYPE = 75;
2160 static constexpr uint8_t ESTIMATED_SIZE = 29;
2161#ifdef HAS_PROTO_MESSAGE_DUMP
2162 const char *message_name() const override { return "bluetooth_gatt_write_request"; }
2163#endif
2164 uint64_t address{0};
2165 uint32_t handle{0};
2166 bool response{false};
2167 const uint8_t *data{nullptr};
2168 uint16_t data_len{0};
2169#ifdef HAS_PROTO_MESSAGE_DUMP
2170 void dump_to(std::string &out) const override;
2171#endif
2172
2173 protected:
2174 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2175 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2176};
2178 public:
2179 static constexpr uint8_t MESSAGE_TYPE = 76;
2180 static constexpr uint8_t ESTIMATED_SIZE = 8;
2181#ifdef HAS_PROTO_MESSAGE_DUMP
2182 const char *message_name() const override { return "bluetooth_gatt_read_descriptor_request"; }
2183#endif
2184 uint64_t address{0};
2185 uint32_t handle{0};
2186#ifdef HAS_PROTO_MESSAGE_DUMP
2187 void dump_to(std::string &out) const override;
2188#endif
2189
2190 protected:
2191 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2192};
2194 public:
2195 static constexpr uint8_t MESSAGE_TYPE = 77;
2196 static constexpr uint8_t ESTIMATED_SIZE = 27;
2197#ifdef HAS_PROTO_MESSAGE_DUMP
2198 const char *message_name() const override { return "bluetooth_gatt_write_descriptor_request"; }
2199#endif
2200 uint64_t address{0};
2201 uint32_t handle{0};
2202 const uint8_t *data{nullptr};
2203 uint16_t data_len{0};
2204#ifdef HAS_PROTO_MESSAGE_DUMP
2205 void dump_to(std::string &out) const override;
2206#endif
2207
2208 protected:
2209 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2210 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2211};
2213 public:
2214 static constexpr uint8_t MESSAGE_TYPE = 78;
2215 static constexpr uint8_t ESTIMATED_SIZE = 10;
2216#ifdef HAS_PROTO_MESSAGE_DUMP
2217 const char *message_name() const override { return "bluetooth_gatt_notify_request"; }
2218#endif
2219 uint64_t address{0};
2220 uint32_t handle{0};
2221 bool enable{false};
2222#ifdef HAS_PROTO_MESSAGE_DUMP
2223 void dump_to(std::string &out) const override;
2224#endif
2225
2226 protected:
2227 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2228};
2230 public:
2231 static constexpr uint8_t MESSAGE_TYPE = 79;
2232 static constexpr uint8_t ESTIMATED_SIZE = 17;
2233#ifdef HAS_PROTO_MESSAGE_DUMP
2234 const char *message_name() const override { return "bluetooth_gatt_notify_data_response"; }
2235#endif
2236 uint64_t address{0};
2237 uint32_t handle{0};
2238 const uint8_t *data_ptr_{nullptr};
2239 size_t data_len_{0};
2240 void set_data(const uint8_t *data, size_t len) {
2241 this->data_ptr_ = data;
2242 this->data_len_ = len;
2243 }
2244 void encode(ProtoWriteBuffer buffer) const override;
2245 void calculate_size(ProtoSize &size) const override;
2246#ifdef HAS_PROTO_MESSAGE_DUMP
2247 void dump_to(std::string &out) const override;
2248#endif
2249
2250 protected:
2251};
2253 public:
2254 static constexpr uint8_t MESSAGE_TYPE = 80;
2255 static constexpr uint8_t ESTIMATED_SIZE = 0;
2256#ifdef HAS_PROTO_MESSAGE_DUMP
2257 const char *message_name() const override { return "subscribe_bluetooth_connections_free_request"; }
2258#endif
2259#ifdef HAS_PROTO_MESSAGE_DUMP
2260 void dump_to(std::string &out) const override;
2261#endif
2262
2263 protected:
2264};
2266 public:
2267 static constexpr uint8_t MESSAGE_TYPE = 81;
2268 static constexpr uint8_t ESTIMATED_SIZE = 20;
2269#ifdef HAS_PROTO_MESSAGE_DUMP
2270 const char *message_name() const override { return "bluetooth_connections_free_response"; }
2271#endif
2272 uint32_t free{0};
2273 uint32_t limit{0};
2274 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2275 void encode(ProtoWriteBuffer buffer) const override;
2276 void calculate_size(ProtoSize &size) const override;
2277#ifdef HAS_PROTO_MESSAGE_DUMP
2278 void dump_to(std::string &out) const override;
2279#endif
2280
2281 protected:
2282};
2284 public:
2285 static constexpr uint8_t MESSAGE_TYPE = 82;
2286 static constexpr uint8_t ESTIMATED_SIZE = 12;
2287#ifdef HAS_PROTO_MESSAGE_DUMP
2288 const char *message_name() const override { return "bluetooth_gatt_error_response"; }
2289#endif
2290 uint64_t address{0};
2291 uint32_t handle{0};
2292 int32_t error{0};
2293 void encode(ProtoWriteBuffer buffer) const override;
2294 void calculate_size(ProtoSize &size) const override;
2295#ifdef HAS_PROTO_MESSAGE_DUMP
2296 void dump_to(std::string &out) const override;
2297#endif
2298
2299 protected:
2300};
2302 public:
2303 static constexpr uint8_t MESSAGE_TYPE = 83;
2304 static constexpr uint8_t ESTIMATED_SIZE = 8;
2305#ifdef HAS_PROTO_MESSAGE_DUMP
2306 const char *message_name() const override { return "bluetooth_gatt_write_response"; }
2307#endif
2308 uint64_t address{0};
2309 uint32_t handle{0};
2310 void encode(ProtoWriteBuffer buffer) const override;
2311 void calculate_size(ProtoSize &size) const override;
2312#ifdef HAS_PROTO_MESSAGE_DUMP
2313 void dump_to(std::string &out) const override;
2314#endif
2315
2316 protected:
2317};
2319 public:
2320 static constexpr uint8_t MESSAGE_TYPE = 84;
2321 static constexpr uint8_t ESTIMATED_SIZE = 8;
2322#ifdef HAS_PROTO_MESSAGE_DUMP
2323 const char *message_name() const override { return "bluetooth_gatt_notify_response"; }
2324#endif
2325 uint64_t address{0};
2326 uint32_t handle{0};
2327 void encode(ProtoWriteBuffer buffer) const override;
2328 void calculate_size(ProtoSize &size) const override;
2329#ifdef HAS_PROTO_MESSAGE_DUMP
2330 void dump_to(std::string &out) const override;
2331#endif
2332
2333 protected:
2334};
2336 public:
2337 static constexpr uint8_t MESSAGE_TYPE = 85;
2338 static constexpr uint8_t ESTIMATED_SIZE = 10;
2339#ifdef HAS_PROTO_MESSAGE_DUMP
2340 const char *message_name() const override { return "bluetooth_device_pairing_response"; }
2341#endif
2342 uint64_t address{0};
2343 bool paired{false};
2344 int32_t error{0};
2345 void encode(ProtoWriteBuffer buffer) const override;
2346 void calculate_size(ProtoSize &size) const override;
2347#ifdef HAS_PROTO_MESSAGE_DUMP
2348 void dump_to(std::string &out) const override;
2349#endif
2350
2351 protected:
2352};
2354 public:
2355 static constexpr uint8_t MESSAGE_TYPE = 86;
2356 static constexpr uint8_t ESTIMATED_SIZE = 10;
2357#ifdef HAS_PROTO_MESSAGE_DUMP
2358 const char *message_name() const override { return "bluetooth_device_unpairing_response"; }
2359#endif
2360 uint64_t address{0};
2361 bool success{false};
2362 int32_t error{0};
2363 void encode(ProtoWriteBuffer buffer) const override;
2364 void calculate_size(ProtoSize &size) const override;
2365#ifdef HAS_PROTO_MESSAGE_DUMP
2366 void dump_to(std::string &out) const override;
2367#endif
2368
2369 protected:
2370};
2372 public:
2373 static constexpr uint8_t MESSAGE_TYPE = 87;
2374 static constexpr uint8_t ESTIMATED_SIZE = 0;
2375#ifdef HAS_PROTO_MESSAGE_DUMP
2376 const char *message_name() const override { return "unsubscribe_bluetooth_le_advertisements_request"; }
2377#endif
2378#ifdef HAS_PROTO_MESSAGE_DUMP
2379 void dump_to(std::string &out) const override;
2380#endif
2381
2382 protected:
2383};
2385 public:
2386 static constexpr uint8_t MESSAGE_TYPE = 88;
2387 static constexpr uint8_t ESTIMATED_SIZE = 10;
2388#ifdef HAS_PROTO_MESSAGE_DUMP
2389 const char *message_name() const override { return "bluetooth_device_clear_cache_response"; }
2390#endif
2391 uint64_t address{0};
2392 bool success{false};
2393 int32_t error{0};
2394 void encode(ProtoWriteBuffer buffer) const override;
2395 void calculate_size(ProtoSize &size) const override;
2396#ifdef HAS_PROTO_MESSAGE_DUMP
2397 void dump_to(std::string &out) const override;
2398#endif
2399
2400 protected:
2401};
2403 public:
2404 static constexpr uint8_t MESSAGE_TYPE = 126;
2405 static constexpr uint8_t ESTIMATED_SIZE = 6;
2406#ifdef HAS_PROTO_MESSAGE_DUMP
2407 const char *message_name() const override { return "bluetooth_scanner_state_response"; }
2408#endif
2412 void encode(ProtoWriteBuffer buffer) const override;
2413 void calculate_size(ProtoSize &size) const override;
2414#ifdef HAS_PROTO_MESSAGE_DUMP
2415 void dump_to(std::string &out) const override;
2416#endif
2417
2418 protected:
2419};
2421 public:
2422 static constexpr uint8_t MESSAGE_TYPE = 127;
2423 static constexpr uint8_t ESTIMATED_SIZE = 2;
2424#ifdef HAS_PROTO_MESSAGE_DUMP
2425 const char *message_name() const override { return "bluetooth_scanner_set_mode_request"; }
2426#endif
2428#ifdef HAS_PROTO_MESSAGE_DUMP
2429 void dump_to(std::string &out) const override;
2430#endif
2431
2432 protected:
2433 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2434};
2435#endif
2436#ifdef USE_VOICE_ASSISTANT
2438 public:
2439 static constexpr uint8_t MESSAGE_TYPE = 89;
2440 static constexpr uint8_t ESTIMATED_SIZE = 6;
2441#ifdef HAS_PROTO_MESSAGE_DUMP
2442 const char *message_name() const override { return "subscribe_voice_assistant_request"; }
2443#endif
2444 bool subscribe{false};
2445 uint32_t flags{0};
2446#ifdef HAS_PROTO_MESSAGE_DUMP
2447 void dump_to(std::string &out) const override;
2448#endif
2449
2450 protected:
2451 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2452};
2454 public:
2456 uint32_t auto_gain{0};
2458 void encode(ProtoWriteBuffer buffer) const override;
2459 void calculate_size(ProtoSize &size) const override;
2460#ifdef HAS_PROTO_MESSAGE_DUMP
2461 void dump_to(std::string &out) const override;
2462#endif
2463
2464 protected:
2465};
2467 public:
2468 static constexpr uint8_t MESSAGE_TYPE = 90;
2469 static constexpr uint8_t ESTIMATED_SIZE = 41;
2470#ifdef HAS_PROTO_MESSAGE_DUMP
2471 const char *message_name() const override { return "voice_assistant_request"; }
2472#endif
2473 bool start{false};
2475 void set_conversation_id(const StringRef &ref) { this->conversation_id_ref_ = ref; }
2476 uint32_t flags{0};
2479 void set_wake_word_phrase(const StringRef &ref) { this->wake_word_phrase_ref_ = ref; }
2480 void encode(ProtoWriteBuffer buffer) const override;
2481 void calculate_size(ProtoSize &size) const override;
2482#ifdef HAS_PROTO_MESSAGE_DUMP
2483 void dump_to(std::string &out) const override;
2484#endif
2485
2486 protected:
2487};
2489 public:
2490 static constexpr uint8_t MESSAGE_TYPE = 91;
2491 static constexpr uint8_t ESTIMATED_SIZE = 6;
2492#ifdef HAS_PROTO_MESSAGE_DUMP
2493 const char *message_name() const override { return "voice_assistant_response"; }
2494#endif
2495 uint32_t port{0};
2496 bool error{false};
2497#ifdef HAS_PROTO_MESSAGE_DUMP
2498 void dump_to(std::string &out) const override;
2499#endif
2500
2501 protected:
2502 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2503};
2505 public:
2506 std::string name{};
2507 std::string value{};
2508#ifdef HAS_PROTO_MESSAGE_DUMP
2509 void dump_to(std::string &out) const override;
2510#endif
2511
2512 protected:
2513 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2514};
2516 public:
2517 static constexpr uint8_t MESSAGE_TYPE = 92;
2518 static constexpr uint8_t ESTIMATED_SIZE = 36;
2519#ifdef HAS_PROTO_MESSAGE_DUMP
2520 const char *message_name() const override { return "voice_assistant_event_response"; }
2521#endif
2523 std::vector<VoiceAssistantEventData> data{};
2524#ifdef HAS_PROTO_MESSAGE_DUMP
2525 void dump_to(std::string &out) const override;
2526#endif
2527
2528 protected:
2529 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2530 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2531};
2533 public:
2534 static constexpr uint8_t MESSAGE_TYPE = 106;
2535 static constexpr uint8_t ESTIMATED_SIZE = 11;
2536#ifdef HAS_PROTO_MESSAGE_DUMP
2537 const char *message_name() const override { return "voice_assistant_audio"; }
2538#endif
2539 std::string data{};
2540 const uint8_t *data_ptr_{nullptr};
2541 size_t data_len_{0};
2542 void set_data(const uint8_t *data, size_t len) {
2543 this->data_ptr_ = data;
2544 this->data_len_ = len;
2545 }
2546 bool end{false};
2547 void encode(ProtoWriteBuffer buffer) const override;
2548 void calculate_size(ProtoSize &size) const override;
2549#ifdef HAS_PROTO_MESSAGE_DUMP
2550 void dump_to(std::string &out) const override;
2551#endif
2552
2553 protected:
2554 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2555 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2556};
2558 public:
2559 static constexpr uint8_t MESSAGE_TYPE = 115;
2560 static constexpr uint8_t ESTIMATED_SIZE = 30;
2561#ifdef HAS_PROTO_MESSAGE_DUMP
2562 const char *message_name() const override { return "voice_assistant_timer_event_response"; }
2563#endif
2565 std::string timer_id{};
2566 std::string name{};
2567 uint32_t total_seconds{0};
2568 uint32_t seconds_left{0};
2569 bool is_active{false};
2570#ifdef HAS_PROTO_MESSAGE_DUMP
2571 void dump_to(std::string &out) const override;
2572#endif
2573
2574 protected:
2575 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2576 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2577};
2579 public:
2580 static constexpr uint8_t MESSAGE_TYPE = 119;
2581 static constexpr uint8_t ESTIMATED_SIZE = 29;
2582#ifdef HAS_PROTO_MESSAGE_DUMP
2583 const char *message_name() const override { return "voice_assistant_announce_request"; }
2584#endif
2585 std::string media_id{};
2586 std::string text{};
2589#ifdef HAS_PROTO_MESSAGE_DUMP
2590 void dump_to(std::string &out) const override;
2591#endif
2592
2593 protected:
2594 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2595 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2596};
2598 public:
2599 static constexpr uint8_t MESSAGE_TYPE = 120;
2600 static constexpr uint8_t ESTIMATED_SIZE = 2;
2601#ifdef HAS_PROTO_MESSAGE_DUMP
2602 const char *message_name() const override { return "voice_assistant_announce_finished"; }
2603#endif
2604 bool success{false};
2605 void encode(ProtoWriteBuffer buffer) const override;
2606 void calculate_size(ProtoSize &size) const override;
2607#ifdef HAS_PROTO_MESSAGE_DUMP
2608 void dump_to(std::string &out) const override;
2609#endif
2610
2611 protected:
2612};
2614 public:
2616 void set_id(const StringRef &ref) { this->id_ref_ = ref; }
2618 void set_wake_word(const StringRef &ref) { this->wake_word_ref_ = ref; }
2619 std::vector<std::string> trained_languages{};
2620 void encode(ProtoWriteBuffer buffer) const override;
2621 void calculate_size(ProtoSize &size) const override;
2622#ifdef HAS_PROTO_MESSAGE_DUMP
2623 void dump_to(std::string &out) const override;
2624#endif
2625
2626 protected:
2627};
2629 public:
2630 std::string id{};
2631 std::string wake_word{};
2632 std::vector<std::string> trained_languages{};
2633 std::string model_type{};
2634 uint32_t model_size{0};
2635 std::string model_hash{};
2636 std::string url{};
2637#ifdef HAS_PROTO_MESSAGE_DUMP
2638 void dump_to(std::string &out) const override;
2639#endif
2640
2641 protected:
2642 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2643 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2644};
2646 public:
2647 static constexpr uint8_t MESSAGE_TYPE = 121;
2648 static constexpr uint8_t ESTIMATED_SIZE = 34;
2649#ifdef HAS_PROTO_MESSAGE_DUMP
2650 const char *message_name() const override { return "voice_assistant_configuration_request"; }
2651#endif
2652 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
2653#ifdef HAS_PROTO_MESSAGE_DUMP
2654 void dump_to(std::string &out) const override;
2655#endif
2656
2657 protected:
2658 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2659};
2661 public:
2662 static constexpr uint8_t MESSAGE_TYPE = 122;
2663 static constexpr uint8_t ESTIMATED_SIZE = 56;
2664#ifdef HAS_PROTO_MESSAGE_DUMP
2665 const char *message_name() const override { return "voice_assistant_configuration_response"; }
2666#endif
2667 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2668 const std::vector<std::string> *active_wake_words{};
2670 void encode(ProtoWriteBuffer buffer) const override;
2671 void calculate_size(ProtoSize &size) const override;
2672#ifdef HAS_PROTO_MESSAGE_DUMP
2673 void dump_to(std::string &out) const override;
2674#endif
2675
2676 protected:
2677};
2679 public:
2680 static constexpr uint8_t MESSAGE_TYPE = 123;
2681 static constexpr uint8_t ESTIMATED_SIZE = 18;
2682#ifdef HAS_PROTO_MESSAGE_DUMP
2683 const char *message_name() const override { return "voice_assistant_set_configuration"; }
2684#endif
2685 std::vector<std::string> active_wake_words{};
2686#ifdef HAS_PROTO_MESSAGE_DUMP
2687 void dump_to(std::string &out) const override;
2688#endif
2689
2690 protected:
2691 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2692};
2693#endif
2694#ifdef USE_ALARM_CONTROL_PANEL
2696 public:
2697 static constexpr uint8_t MESSAGE_TYPE = 94;
2698 static constexpr uint8_t ESTIMATED_SIZE = 48;
2699#ifdef HAS_PROTO_MESSAGE_DUMP
2700 const char *message_name() const override { return "list_entities_alarm_control_panel_response"; }
2701#endif
2703 bool requires_code{false};
2705 void encode(ProtoWriteBuffer buffer) const override;
2706 void calculate_size(ProtoSize &size) const override;
2707#ifdef HAS_PROTO_MESSAGE_DUMP
2708 void dump_to(std::string &out) const override;
2709#endif
2710
2711 protected:
2712};
2714 public:
2715 static constexpr uint8_t MESSAGE_TYPE = 95;
2716 static constexpr uint8_t ESTIMATED_SIZE = 11;
2717#ifdef HAS_PROTO_MESSAGE_DUMP
2718 const char *message_name() const override { return "alarm_control_panel_state_response"; }
2719#endif
2721 void encode(ProtoWriteBuffer buffer) const override;
2722 void calculate_size(ProtoSize &size) const override;
2723#ifdef HAS_PROTO_MESSAGE_DUMP
2724 void dump_to(std::string &out) const override;
2725#endif
2726
2727 protected:
2728};
2730 public:
2731 static constexpr uint8_t MESSAGE_TYPE = 96;
2732 static constexpr uint8_t ESTIMATED_SIZE = 20;
2733#ifdef HAS_PROTO_MESSAGE_DUMP
2734 const char *message_name() const override { return "alarm_control_panel_command_request"; }
2735#endif
2737 std::string code{};
2738#ifdef HAS_PROTO_MESSAGE_DUMP
2739 void dump_to(std::string &out) const override;
2740#endif
2741
2742 protected:
2743 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2744 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2745 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2746};
2747#endif
2748#ifdef USE_TEXT
2750 public:
2751 static constexpr uint8_t MESSAGE_TYPE = 97;
2752 static constexpr uint8_t ESTIMATED_SIZE = 59;
2753#ifdef HAS_PROTO_MESSAGE_DUMP
2754 const char *message_name() const override { return "list_entities_text_response"; }
2755#endif
2756 uint32_t min_length{0};
2757 uint32_t max_length{0};
2759 void set_pattern(const StringRef &ref) { this->pattern_ref_ = ref; }
2761 void encode(ProtoWriteBuffer buffer) const override;
2762 void calculate_size(ProtoSize &size) const override;
2763#ifdef HAS_PROTO_MESSAGE_DUMP
2764 void dump_to(std::string &out) const override;
2765#endif
2766
2767 protected:
2768};
2770 public:
2771 static constexpr uint8_t MESSAGE_TYPE = 98;
2772 static constexpr uint8_t ESTIMATED_SIZE = 20;
2773#ifdef HAS_PROTO_MESSAGE_DUMP
2774 const char *message_name() const override { return "text_state_response"; }
2775#endif
2777 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
2778 bool missing_state{false};
2779 void encode(ProtoWriteBuffer buffer) const override;
2780 void calculate_size(ProtoSize &size) const override;
2781#ifdef HAS_PROTO_MESSAGE_DUMP
2782 void dump_to(std::string &out) const override;
2783#endif
2784
2785 protected:
2786};
2788 public:
2789 static constexpr uint8_t MESSAGE_TYPE = 99;
2790 static constexpr uint8_t ESTIMATED_SIZE = 18;
2791#ifdef HAS_PROTO_MESSAGE_DUMP
2792 const char *message_name() const override { return "text_command_request"; }
2793#endif
2794 std::string state{};
2795#ifdef HAS_PROTO_MESSAGE_DUMP
2796 void dump_to(std::string &out) const override;
2797#endif
2798
2799 protected:
2800 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2801 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2802 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2803};
2804#endif
2805#ifdef USE_DATETIME_DATE
2807 public:
2808 static constexpr uint8_t MESSAGE_TYPE = 100;
2809 static constexpr uint8_t ESTIMATED_SIZE = 40;
2810#ifdef HAS_PROTO_MESSAGE_DUMP
2811 const char *message_name() const override { return "list_entities_date_response"; }
2812#endif
2813 void encode(ProtoWriteBuffer buffer) const override;
2814 void calculate_size(ProtoSize &size) const override;
2815#ifdef HAS_PROTO_MESSAGE_DUMP
2816 void dump_to(std::string &out) const override;
2817#endif
2818
2819 protected:
2820};
2822 public:
2823 static constexpr uint8_t MESSAGE_TYPE = 101;
2824 static constexpr uint8_t ESTIMATED_SIZE = 23;
2825#ifdef HAS_PROTO_MESSAGE_DUMP
2826 const char *message_name() const override { return "date_state_response"; }
2827#endif
2828 bool missing_state{false};
2829 uint32_t year{0};
2830 uint32_t month{0};
2831 uint32_t day{0};
2832 void encode(ProtoWriteBuffer buffer) const override;
2833 void calculate_size(ProtoSize &size) const override;
2834#ifdef HAS_PROTO_MESSAGE_DUMP
2835 void dump_to(std::string &out) const override;
2836#endif
2837
2838 protected:
2839};
2841 public:
2842 static constexpr uint8_t MESSAGE_TYPE = 102;
2843 static constexpr uint8_t ESTIMATED_SIZE = 21;
2844#ifdef HAS_PROTO_MESSAGE_DUMP
2845 const char *message_name() const override { return "date_command_request"; }
2846#endif
2847 uint32_t year{0};
2848 uint32_t month{0};
2849 uint32_t day{0};
2850#ifdef HAS_PROTO_MESSAGE_DUMP
2851 void dump_to(std::string &out) const override;
2852#endif
2853
2854 protected:
2855 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2856 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2857};
2858#endif
2859#ifdef USE_DATETIME_TIME
2861 public:
2862 static constexpr uint8_t MESSAGE_TYPE = 103;
2863 static constexpr uint8_t ESTIMATED_SIZE = 40;
2864#ifdef HAS_PROTO_MESSAGE_DUMP
2865 const char *message_name() const override { return "list_entities_time_response"; }
2866#endif
2867 void encode(ProtoWriteBuffer buffer) const override;
2868 void calculate_size(ProtoSize &size) const override;
2869#ifdef HAS_PROTO_MESSAGE_DUMP
2870 void dump_to(std::string &out) const override;
2871#endif
2872
2873 protected:
2874};
2876 public:
2877 static constexpr uint8_t MESSAGE_TYPE = 104;
2878 static constexpr uint8_t ESTIMATED_SIZE = 23;
2879#ifdef HAS_PROTO_MESSAGE_DUMP
2880 const char *message_name() const override { return "time_state_response"; }
2881#endif
2882 bool missing_state{false};
2883 uint32_t hour{0};
2884 uint32_t minute{0};
2885 uint32_t second{0};
2886 void encode(ProtoWriteBuffer buffer) const override;
2887 void calculate_size(ProtoSize &size) const override;
2888#ifdef HAS_PROTO_MESSAGE_DUMP
2889 void dump_to(std::string &out) const override;
2890#endif
2891
2892 protected:
2893};
2895 public:
2896 static constexpr uint8_t MESSAGE_TYPE = 105;
2897 static constexpr uint8_t ESTIMATED_SIZE = 21;
2898#ifdef HAS_PROTO_MESSAGE_DUMP
2899 const char *message_name() const override { return "time_command_request"; }
2900#endif
2901 uint32_t hour{0};
2902 uint32_t minute{0};
2903 uint32_t second{0};
2904#ifdef HAS_PROTO_MESSAGE_DUMP
2905 void dump_to(std::string &out) const override;
2906#endif
2907
2908 protected:
2909 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2910 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2911};
2912#endif
2913#ifdef USE_EVENT
2915 public:
2916 static constexpr uint8_t MESSAGE_TYPE = 107;
2917 static constexpr uint8_t ESTIMATED_SIZE = 67;
2918#ifdef HAS_PROTO_MESSAGE_DUMP
2919 const char *message_name() const override { return "list_entities_event_response"; }
2920#endif
2922 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2924 void encode(ProtoWriteBuffer buffer) const override;
2925 void calculate_size(ProtoSize &size) const override;
2926#ifdef HAS_PROTO_MESSAGE_DUMP
2927 void dump_to(std::string &out) const override;
2928#endif
2929
2930 protected:
2931};
2933 public:
2934 static constexpr uint8_t MESSAGE_TYPE = 108;
2935 static constexpr uint8_t ESTIMATED_SIZE = 18;
2936#ifdef HAS_PROTO_MESSAGE_DUMP
2937 const char *message_name() const override { return "event_response"; }
2938#endif
2940 void set_event_type(const StringRef &ref) { this->event_type_ref_ = ref; }
2941 void encode(ProtoWriteBuffer buffer) const override;
2942 void calculate_size(ProtoSize &size) const override;
2943#ifdef HAS_PROTO_MESSAGE_DUMP
2944 void dump_to(std::string &out) const override;
2945#endif
2946
2947 protected:
2948};
2949#endif
2950#ifdef USE_VALVE
2952 public:
2953 static constexpr uint8_t MESSAGE_TYPE = 109;
2954 static constexpr uint8_t ESTIMATED_SIZE = 55;
2955#ifdef HAS_PROTO_MESSAGE_DUMP
2956 const char *message_name() const override { return "list_entities_valve_response"; }
2957#endif
2959 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2960 bool assumed_state{false};
2962 bool supports_stop{false};
2963 void encode(ProtoWriteBuffer buffer) const override;
2964 void calculate_size(ProtoSize &size) const override;
2965#ifdef HAS_PROTO_MESSAGE_DUMP
2966 void dump_to(std::string &out) const override;
2967#endif
2968
2969 protected:
2970};
2972 public:
2973 static constexpr uint8_t MESSAGE_TYPE = 110;
2974 static constexpr uint8_t ESTIMATED_SIZE = 16;
2975#ifdef HAS_PROTO_MESSAGE_DUMP
2976 const char *message_name() const override { return "valve_state_response"; }
2977#endif
2978 float position{0.0f};
2980 void encode(ProtoWriteBuffer buffer) const override;
2981 void calculate_size(ProtoSize &size) const override;
2982#ifdef HAS_PROTO_MESSAGE_DUMP
2983 void dump_to(std::string &out) const override;
2984#endif
2985
2986 protected:
2987};
2989 public:
2990 static constexpr uint8_t MESSAGE_TYPE = 111;
2991 static constexpr uint8_t ESTIMATED_SIZE = 18;
2992#ifdef HAS_PROTO_MESSAGE_DUMP
2993 const char *message_name() const override { return "valve_command_request"; }
2994#endif
2995 bool has_position{false};
2996 float position{0.0f};
2997 bool stop{false};
2998#ifdef HAS_PROTO_MESSAGE_DUMP
2999 void dump_to(std::string &out) const override;
3000#endif
3001
3002 protected:
3003 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3004 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
3005};
3006#endif
3007#ifdef USE_DATETIME_DATETIME
3009 public:
3010 static constexpr uint8_t MESSAGE_TYPE = 112;
3011 static constexpr uint8_t ESTIMATED_SIZE = 40;
3012#ifdef HAS_PROTO_MESSAGE_DUMP
3013 const char *message_name() const override { return "list_entities_date_time_response"; }
3014#endif
3015 void encode(ProtoWriteBuffer buffer) const override;
3016 void calculate_size(ProtoSize &size) const override;
3017#ifdef HAS_PROTO_MESSAGE_DUMP
3018 void dump_to(std::string &out) const override;
3019#endif
3020
3021 protected:
3022};
3024 public:
3025 static constexpr uint8_t MESSAGE_TYPE = 113;
3026 static constexpr uint8_t ESTIMATED_SIZE = 16;
3027#ifdef HAS_PROTO_MESSAGE_DUMP
3028 const char *message_name() const override { return "date_time_state_response"; }
3029#endif
3030 bool missing_state{false};
3031 uint32_t epoch_seconds{0};
3032 void encode(ProtoWriteBuffer buffer) const override;
3033 void calculate_size(ProtoSize &size) const override;
3034#ifdef HAS_PROTO_MESSAGE_DUMP
3035 void dump_to(std::string &out) const override;
3036#endif
3037
3038 protected:
3039};
3041 public:
3042 static constexpr uint8_t MESSAGE_TYPE = 114;
3043 static constexpr uint8_t ESTIMATED_SIZE = 14;
3044#ifdef HAS_PROTO_MESSAGE_DUMP
3045 const char *message_name() const override { return "date_time_command_request"; }
3046#endif
3047 uint32_t epoch_seconds{0};
3048#ifdef HAS_PROTO_MESSAGE_DUMP
3049 void dump_to(std::string &out) const override;
3050#endif
3051
3052 protected:
3053 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3054 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
3055};
3056#endif
3057#ifdef USE_UPDATE
3059 public:
3060 static constexpr uint8_t MESSAGE_TYPE = 116;
3061 static constexpr uint8_t ESTIMATED_SIZE = 49;
3062#ifdef HAS_PROTO_MESSAGE_DUMP
3063 const char *message_name() const override { return "list_entities_update_response"; }
3064#endif
3066 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
3067 void encode(ProtoWriteBuffer buffer) const override;
3068 void calculate_size(ProtoSize &size) const override;
3069#ifdef HAS_PROTO_MESSAGE_DUMP
3070 void dump_to(std::string &out) const override;
3071#endif
3072
3073 protected:
3074};
3076 public:
3077 static constexpr uint8_t MESSAGE_TYPE = 117;
3078 static constexpr uint8_t ESTIMATED_SIZE = 65;
3079#ifdef HAS_PROTO_MESSAGE_DUMP
3080 const char *message_name() const override { return "update_state_response"; }
3081#endif
3082 bool missing_state{false};
3083 bool in_progress{false};
3084 bool has_progress{false};
3085 float progress{0.0f};
3087 void set_current_version(const StringRef &ref) { this->current_version_ref_ = ref; }
3089 void set_latest_version(const StringRef &ref) { this->latest_version_ref_ = ref; }
3091 void set_title(const StringRef &ref) { this->title_ref_ = ref; }
3093 void set_release_summary(const StringRef &ref) { this->release_summary_ref_ = ref; }
3095 void set_release_url(const StringRef &ref) { this->release_url_ref_ = ref; }
3096 void encode(ProtoWriteBuffer buffer) const override;
3097 void calculate_size(ProtoSize &size) const override;
3098#ifdef HAS_PROTO_MESSAGE_DUMP
3099 void dump_to(std::string &out) const override;
3100#endif
3101
3102 protected:
3103};
3105 public:
3106 static constexpr uint8_t MESSAGE_TYPE = 118;
3107 static constexpr uint8_t ESTIMATED_SIZE = 11;
3108#ifdef HAS_PROTO_MESSAGE_DUMP
3109 const char *message_name() const override { return "update_command_request"; }
3110#endif
3112#ifdef HAS_PROTO_MESSAGE_DUMP
3113 void dump_to(std::string &out) const override;
3114#endif
3115
3116 protected:
3117 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
3118 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
3119};
3120#endif
3121#ifdef USE_ZWAVE_PROXY
3123 public:
3124 static constexpr uint8_t MESSAGE_TYPE = 128;
3125 static constexpr uint8_t ESTIMATED_SIZE = 19;
3126#ifdef HAS_PROTO_MESSAGE_DUMP
3127 const char *message_name() const override { return "z_wave_proxy_frame"; }
3128#endif
3129 const uint8_t *data{nullptr};
3130 uint16_t data_len{0};
3131 void encode(ProtoWriteBuffer buffer) const override;
3132 void calculate_size(ProtoSize &size) const override;
3133#ifdef HAS_PROTO_MESSAGE_DUMP
3134 void dump_to(std::string &out) const override;
3135#endif
3136
3137 protected:
3138 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3139};
3141 public:
3142 static constexpr uint8_t MESSAGE_TYPE = 129;
3143 static constexpr uint8_t ESTIMATED_SIZE = 21;
3144#ifdef HAS_PROTO_MESSAGE_DUMP
3145 const char *message_name() const override { return "z_wave_proxy_request"; }
3146#endif
3148 const uint8_t *data{nullptr};
3149 uint16_t data_len{0};
3150 void encode(ProtoWriteBuffer buffer) const override;
3151 void calculate_size(ProtoSize &size) const override;
3152#ifdef HAS_PROTO_MESSAGE_DUMP
3153 void dump_to(std::string &out) const override;
3154#endif
3155
3156 protected:
3157 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3158 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
3159};
3160#endif
3161
3162} // namespace esphome::api
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
Definition helpers.h:184
StringRef is a reference to a string owned by something else.
Definition string_ref.h:22
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2788
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2763
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2734
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2736
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2778
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2732
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2716
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2756
enums::AlarmControlPanelState state
Definition api_pb2.h:2720
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2715
const char * message_name() const override
Definition api_pb2.h:2718
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2749
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:66
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:70
void set_name(const StringRef &ref)
Definition api_pb2.h:501
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:49
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:400
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:401
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:403
const char * message_name() const override
Definition api_pb2.h:419
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:62
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:417
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:416
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:63
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:234
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:665
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:666
const char * message_name() const override
Definition api_pb2.h:668
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:242
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2274
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2357
const char * message_name() const override
Definition api_pb2.h:2270
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2366
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2426
const char * message_name() const override
Definition api_pb2.h:2389
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2421
const char * message_name() const override
Definition api_pb2.h:2014
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2146
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2152
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2406
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2338
const char * message_name() const override
Definition api_pb2.h:2340
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2337
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2401
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1993
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1999
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1996
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1994
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2127
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2411
const char * message_name() const override
Definition api_pb2.h:2358
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2416
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2184
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:2061
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2196
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2058
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2176
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2045
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2168
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2375
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2286
const char * message_name() const override
Definition api_pb2.h:2288
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2380
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2285
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2236
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2107
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2239
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2033
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2031
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2158
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2232
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2090
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2226
std::vector< BluetoothGATTService > services
Definition api_pb2.h:2093
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2347
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2240
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2352
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2232
const char * message_name() const override
Definition api_pb2.h:2234
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2215
const char * message_name() const override
Definition api_pb2.h:2217
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2214
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2331
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2320
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2321
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2397
const char * message_name() const override
Definition api_pb2.h:2323
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2393
const char * message_name() const override
Definition api_pb2.h:2182
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2292
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2240
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2120
const char * message_name() const override
Definition api_pb2.h:2123
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2121
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2253
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2136
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2145
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2137
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2258
const char * message_name() const override
Definition api_pb2.h:2139
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:2075
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2217
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2206
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2073
const char * message_name() const override
Definition api_pb2.h:2198
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2318
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2305
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2279
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2160
const char * message_name() const override
Definition api_pb2.h:2162
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2263
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2159
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2389
const char * message_name() const override
Definition api_pb2.h:2306
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2304
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2385
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2303
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2111
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2105
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1981
const char * message_name() const override
Definition api_pb2.h:1979
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2117
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2122
const char * message_name() const override
Definition api_pb2.h:2425
enums::BluetoothScannerMode mode
Definition api_pb2.h:2427
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2422
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2441
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2423
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2431
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2405
enums::BluetoothScannerMode mode
Definition api_pb2.h:2410
void dump_to(std::string &out) const override
enums::BluetoothScannerState state
Definition api_pb2.h:2409
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2404
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2411
const char * message_name() const override
Definition api_pb2.h:2407
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2436
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1851
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1950
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1854
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1962
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1852
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1423
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1421
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1420
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1203
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1405
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1195
const char * message_name() const override
Definition api_pb2.h:1401
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1399
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1398
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1187
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1427
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1501
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1502
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1517
const char * message_name() const override
Definition api_pb2.h:1504
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1515
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1354
enums::ClimatePreset preset
Definition api_pb2.h:1522
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1408
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1482
void dump_to(std::string &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1483
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1471
void set_custom_fan_mode(const StringRef &ref)
Definition api_pb2.h:1485
void set_custom_preset(const StringRef &ref)
Definition api_pb2.h:1488
const char * message_name() const override
Definition api_pb2.h:1474
enums::ClimateAction action
Definition api_pb2.h:1481
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1316
enums::ClimatePreset preset
Definition api_pb2.h:1486
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1335
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1472
~CommandProtoMessage() override=default
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:327
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:723
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:306
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:724
const char * message_name() const override
Definition api_pb2.h:726
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:706
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:288
const char * message_name() const override
Definition api_pb2.h:708
enums::CoverOperation current_operation
Definition api_pb2.h:712
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:297
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:705
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2951
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2842
const char * message_name() const override
Definition api_pb2.h:2845
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2930
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2843
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2910
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2823
const char * message_name() const override
Definition api_pb2.h:2826
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2920
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2824
const char * message_name() const override
Definition api_pb2.h:3045
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3043
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3042
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3231
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3219
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3211
const char * message_name() const override
Definition api_pb2.h:3028
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3025
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3026
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3203
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:81
void set_name(const StringRef &ref)
Definition api_pb2.h:516
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:76
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:485
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:486
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:488
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:87
void set_friendly_name(const StringRef &ref)
Definition api_pb2.h:567
void set_model(const StringRef &ref)
Definition api_pb2.h:546
void set_project_name(const StringRef &ref)
Definition api_pb2.h:552
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:529
void set_project_version(const StringRef &ref)
Definition api_pb2.h:556
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:145
void set_esphome_version(const StringRef &ref)
Definition api_pb2.h:542
static constexpr uint16_t ESTIMATED_SIZE
Definition api_pb2.h:530
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:586
void set_compilation_time(const StringRef &ref)
Definition api_pb2.h:544
const char * message_name() const override
Definition api_pb2.h:532
void set_name(const StringRef &ref)
Definition api_pb2.h:538
void set_mac_address(const StringRef &ref)
Definition api_pb2.h:540
void set_bluetooth_mac_address(const StringRef &ref)
Definition api_pb2.h:577
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:583
void set_suggested_area(const StringRef &ref)
Definition api_pb2.h:573
void set_manufacturer(const StringRef &ref)
Definition api_pb2.h:565
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:433
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:434
const char * message_name() const override
Definition api_pb2.h:436
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:446
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:447
const char * message_name() const override
Definition api_pb2.h:449
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3085
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3078
const char * message_name() const override
Definition api_pb2.h:2937
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2934
void set_event_type(const StringRef &ref)
Definition api_pb2.h:2940
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2935
void decode(const uint8_t *buffer, size_t length) override
Definition api_pb2.cpp:1087
FixedVector< float > float_array
Definition api_pb2.h:1317
FixedVector< std::string > string_array
Definition api_pb2.h:1318
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1061
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1039
FixedVector< int32_t > int_array
Definition api_pb2.h:1316
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1074
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1331
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1337
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1098
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1332
void dump_to(std::string &out) const override
void decode(const uint8_t *buffer, size_t length) override
Definition api_pb2.cpp:1136
const char * message_name() const override
Definition api_pb2.h:1334
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1126
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1115
const char * message_name() const override
Definition api_pb2.h:1361
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1151
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1143
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1359
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1358
void set_error_message(const StringRef &ref)
Definition api_pb2.h:1366
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:786
const char * message_name() const override
Definition api_pb2.h:789
const uint8_t * preset_mode
Definition api_pb2.h:800
enums::FanDirection direction
Definition api_pb2.h:796
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:409
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:448
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:787
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:461
void dump_to(std::string &out) const override
enums::FanDirection direction
Definition api_pb2.h:772
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:387
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:766
const char * message_name() const override
Definition api_pb2.h:768
void set_preset_mode(const StringRef &ref)
Definition api_pb2.h:775
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:398
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:765
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1245
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1248
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1246
const char * message_name() const override
Definition api_pb2.h:1261
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1006
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:993
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1259
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1258
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:10
void dump_to(std::string &out) const override
const uint8_t * client_info
Definition api_pb2.h:364
const char * message_name() const override
Definition api_pb2.h:362
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:360
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:359
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:23
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:378
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:42
void set_name(const StringRef &ref)
Definition api_pb2.h:388
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:36
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:379
const char * message_name() const override
Definition api_pb2.h:381
void set_server_info(const StringRef &ref)
Definition api_pb2.h:386
const char * message_name() const override
Definition api_pb2.h:1227
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1224
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1225
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:967
void dump_to(std::string &out) const override
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1144
FixedVector< HomeassistantServiceMap > data
Definition api_pb2.h:1142
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1136
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1143
void set_service(const StringRef &ref)
Definition api_pb2.h:1141
const char * message_name() const override
Definition api_pb2.h:1138
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:906
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:884
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1135
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:924
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:937
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1170
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1168
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1167
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:876
void dump_to(std::string &out) const override
void set_key(const StringRef &ref)
Definition api_pb2.h:1123
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:880
void set_object_id(const StringRef &ref)
Definition api_pb2.h:319
~InfoResponseProtoMessage() override=default
enums::EntityCategory entity_category
Definition api_pb2.h:328
void set_icon(const StringRef &ref)
Definition api_pb2.h:326
void set_name(const StringRef &ref)
Definition api_pb2.h:322
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:615
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:628
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:555
const char * message_name() const override
Definition api_pb2.h:865
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:862
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:863
void dump_to(std::string &out) const override
void set_effect(const StringRef &ref)
Definition api_pb2.h:851
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:519
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:835
enums::ColorMode color_mode
Definition api_pb2.h:841
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:834
const char * message_name() const override
Definition api_pb2.h:837
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:537
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2733
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2717
const char * message_name() const override
Definition api_pb2.h:2700
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:204
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:219
void set_device_class(const StringRef &ref)
Definition api_pb2.h:653
const char * message_name() const override
Definition api_pb2.h:650
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:648
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1835
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1834
void set_device_class(const StringRef &ref)
Definition api_pb2.h:1840
const char * message_name() const override
Definition api_pb2.h:1837
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1936
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1922
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1386
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1383
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1174
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1161
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1384
const std::vector< const char * > * supported_custom_presets
Definition api_pb2.h:1454
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1451
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1439
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1452
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1438
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1261
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1453
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1450
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1218
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1445
const char * message_name() const override
Definition api_pb2.h:1441
const char * message_name() const override
Definition api_pb2.h:687
void set_device_class(const StringRef &ref)
Definition api_pb2.h:693
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:685
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:270
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:684
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:252
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2809
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2884
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2897
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2808
const char * message_name() const override
Definition api_pb2.h:2811
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3190
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3010
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3011
const char * message_name() const override
Definition api_pb2.h:3013
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3177
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:620
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:621
const char * message_name() const override
Definition api_pb2.h:623
void dump_to(std::string &out) const override
const FixedVector< const char * > * event_types
Definition api_pb2.h:2923
const char * message_name() const override
Definition api_pb2.h:2919
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3059
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3042
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2917
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2916
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2922
const char * message_name() const override
Definition api_pb2.h:748
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:754
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:746
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:745
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:345
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:365
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:816
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:494
const char * message_name() const override
Definition api_pb2.h:818
void dump_to(std::string &out) const override
const FixedVector< const char * > * effects
Definition api_pb2.h:823
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:820
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:815
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:473
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1834
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1777
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1851
void set_code_format(const StringRef &ref)
Definition api_pb2.h:1786
const char * message_name() const override
Definition api_pb2.h:1780
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1778
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1885
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1988
const char * message_name() const override
Definition api_pb2.h:1887
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2006
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1890
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1608
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1578
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1606
void set_unit_of_measurement(const StringRef &ref)
Definition api_pb2.h:1614
void set_device_class(const StringRef &ref)
Definition api_pb2.h:1617
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1605
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1559
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:608
const char * message_name() const override
Definition api_pb2.h:610
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:607
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1663
const char * message_name() const override
Definition api_pb2.h:1666
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1656
const FixedVector< const char * > * options
Definition api_pb2.h:1668
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1640
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1664
const char * message_name() const override
Definition api_pb2.h:910
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:667
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:685
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:908
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:907
void set_unit_of_measurement(const StringRef &ref)
Definition api_pb2.h:913
void dump_to(std::string &out) const override
void set_device_class(const StringRef &ref)
Definition api_pb2.h:917
enums::SensorStateClass state_class
Definition api_pb2.h:918
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1021
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1017
void dump_to(std::string &out) const override
void set_name(const StringRef &ref)
Definition api_pb2.h:1278
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1033
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1025
const char * message_name() const override
Definition api_pb2.h:1293
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1290
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1291
enums::SupportsResponseType supports_response
Definition api_pb2.h:1299
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1298
void set_name(const StringRef &ref)
Definition api_pb2.h:1296
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1727
const char * message_name() const override
Definition api_pb2.h:1720
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1745
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1717
void dump_to(std::string &out) const override
std::vector< std::string > tones
Definition api_pb2.h:1722
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1718
const char * message_name() const override
Definition api_pb2.h:951
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:721
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:949
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:948
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:736
void set_device_class(const StringRef &ref)
Definition api_pb2.h:955
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2751
void set_pattern(const StringRef &ref)
Definition api_pb2.h:2759
const char * message_name() const override
Definition api_pb2.h:2754
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2817
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2752
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2800
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:806
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:792
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1000
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1001
const char * message_name() const override
Definition api_pb2.h:1003
void set_device_class(const StringRef &ref)
Definition api_pb2.h:1006
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2963
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2976
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2863
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2865
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2862
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:3063
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3260
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3060
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3061
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3246
void set_device_class(const StringRef &ref)
Definition api_pb2.h:3066
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2953
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2959
const char * message_name() const override
Definition api_pb2.h:2956
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2954
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3111
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3094
void dump_to(std::string &out) const override
const water_heater::WaterHeaterModeMask * supported_modes
Definition api_pb2.h:1549
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1471
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1451
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1542
const char * message_name() const override
Definition api_pb2.h:1544
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1813
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1882
const char * message_name() const override
Definition api_pb2.h:1816
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1910
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1814
enums::LockCommand command
Definition api_pb2.h:1818
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1900
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1798
const char * message_name() const override
Definition api_pb2.h:1800
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1797
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1875
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1868
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1921
enums::MediaPlayerCommand command
Definition api_pb2.h:1926
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2080
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2040
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2070
const char * message_name() const override
Definition api_pb2.h:1923
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1920
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2031
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1902
void dump_to(std::string &out) const override
enums::MediaPlayerState state
Definition api_pb2.h:1907
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2022
const char * message_name() const override
Definition api_pb2.h:1905
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1903
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1981
void set_format(const StringRef &ref)
Definition api_pb2.h:1869
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1872
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1974
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1075
const char * message_name() const override
Definition api_pb2.h:1078
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:859
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1076
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1094
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:872
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:873
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1092
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1091
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1645
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1625
const char * message_name() const override
Definition api_pb2.h:1648
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1646
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1613
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1597
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1631
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1629
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1628
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1605
const char * message_name() const override
Definition api_pb2.h:462
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:459
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:460
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:472
const char * message_name() const override
Definition api_pb2.h:475
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:473
void dump_to(std::string &out) const override
Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
Definition proto.h:73
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1702
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1690
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1698
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1697
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1715
const char * message_name() const override
Definition api_pb2.h:1700
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1680
const char * message_name() const override
Definition api_pb2.h:1682
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1674
void set_state(const StringRef &ref)
Definition api_pb2.h:1685
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1682
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1679
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:711
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:703
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:930
const char * message_name() const override
Definition api_pb2.h:932
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:929
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1809
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1779
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1752
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1819
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1751
const char * message_name() const override
Definition api_pb2.h:1754
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1772
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1736
const char * message_name() const override
Definition api_pb2.h:1738
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1735
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1765
~StateResponseProtoMessage() override=default
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2095
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:962
const char * message_name() const override
Definition api_pb2.h:1207
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:957
const char * message_name() const override
Definition api_pb2.h:1194
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1112
const char * message_name() const override
Definition api_pb2.h:1039
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1037
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1036
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:837
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1052
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:854
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1053
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:1060
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:850
const char * message_name() const override
Definition api_pb2.h:1055
const char * message_name() const override
Definition api_pb2.h:636
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:634
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:633
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2442
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2439
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2453
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2440
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:780
const char * message_name() const override
Definition api_pb2.h:985
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:765
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:982
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:983
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:969
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:751
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:967
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:758
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:966
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2862
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2790
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2872
const char * message_name() const override
Definition api_pb2.h:2792
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2850
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2789
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:828
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:820
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1017
void set_state(const StringRef &ref)
Definition api_pb2.h:1023
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1018
const char * message_name() const override
Definition api_pb2.h:1020
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2772
void set_state(const StringRef &ref)
Definition api_pb2.h:2777
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2771
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2842
const char * message_name() const override
Definition api_pb2.h:2774
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2834
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3030
const char * message_name() const override
Definition api_pb2.h:2899
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2896
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3009
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2897
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2877
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2878
const char * message_name() const override
Definition api_pb2.h:2880
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2999
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2989
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3107
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3319
enums::UpdateCommand command
Definition api_pb2.h:3111
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3304
const char * message_name() const override
Definition api_pb2.h:3109
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3106
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3078
void set_current_version(const StringRef &ref)
Definition api_pb2.h:3087
void set_latest_version(const StringRef &ref)
Definition api_pb2.h:3089
void set_release_summary(const StringRef &ref)
Definition api_pb2.h:3093
void set_title(const StringRef &ref)
Definition api_pb2.h:3091
const char * message_name() const override
Definition api_pb2.h:3080
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3289
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3274
void set_release_url(const StringRef &ref)
Definition api_pb2.h:3095
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3077
const char * message_name() const override
Definition api_pb2.h:2993
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2990
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3144
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2991
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3162
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3128
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2974
const char * message_name() const override
Definition api_pb2.h:2976
void dump_to(std::string &out) const override
enums::ValveOperation current_operation
Definition api_pb2.h:2979
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2973
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3136
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2624
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2600
const char * message_name() const override
Definition api_pb2.h:2602
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2599
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2623
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2607
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2581
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2580
const char * message_name() const override
Definition api_pb2.h:2583
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2597
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2542
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2557
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2561
const char * message_name() const override
Definition api_pb2.h:2537
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2547
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2535
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2534
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2537
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2466
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2471
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2650
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2676
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2652
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2696
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2667
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2665
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2668
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2687
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2503
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2526
const char * message_name() const override
Definition api_pb2.h:2520
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2518
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2517
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2522
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2516
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2523
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2651
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2641
std::vector< std::string > trained_languages
Definition api_pb2.h:2632
void set_wake_word_phrase(const StringRef &ref)
Definition api_pb2.h:2479
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2483
const char * message_name() const override
Definition api_pb2.h:2471
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2468
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2477
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2469
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2476
void dump_to(std::string &out) const override
void set_conversation_id(const StringRef &ref)
Definition api_pb2.h:2475
const char * message_name() const override
Definition api_pb2.h:2493
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2491
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2490
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2490
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2681
std::vector< std::string > active_wake_words
Definition api_pb2.h:2685
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2680
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2705
const char * message_name() const override
Definition api_pb2.h:2683
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2564
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2584
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2565
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2562
void set_id(const StringRef &ref)
Definition api_pb2.h:2616
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2625
void set_wake_word(const StringRef &ref)
Definition api_pb2.h:2618
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2632
std::vector< std::string > trained_languages
Definition api_pb2.h:2619
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1538
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1517
const char * message_name() const override
Definition api_pb2.h:1585
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1583
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1582
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1561
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1562
const char * message_name() const override
Definition api_pb2.h:1564
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1505
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1493
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3125
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3331
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3344
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3345
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3124
const char * message_name() const override
Definition api_pb2.h:3127
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3143
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3373
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3356
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3346
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3142
const char * message_name() const override
Definition api_pb2.h:3145
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3147
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3369
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:179
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:269
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:73
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:76
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:75
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:234
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:233
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:137
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:138
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:201
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:200
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:37
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:44
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:40
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:45
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:257
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:256
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:259
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:258
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:193
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:194
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:191
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:190
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:197
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:195
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:247
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:252
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:249
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:253
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:251
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:248
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:209
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:210
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:206
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:208
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:211
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:212
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:207
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:223
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:224
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:220
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:216
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:219
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:217
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:218
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:144
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:147
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:148
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:146
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:145
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:149
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:307
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:308
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:309
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:279
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:281
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:280
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:229
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:228
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:52
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:54
std::string size_t len
Definition helpers.h:533
uint16_t length
Definition tt21100.cpp:0