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