ESPHome 2025.8.0b1
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
55#endif
66#ifdef USE_API_SERVICES
77#endif
78#ifdef USE_CLIMATE
124#endif
125#ifdef USE_NUMBER
131#endif
132#ifdef USE_LOCK
141enum LockCommand : uint32_t {
145};
146#endif
147#ifdef USE_MEDIA_PLAYER
177#endif
178#ifdef USE_BLUETOOTH_PROXY
200#endif
210#ifdef USE_VOICE_ASSISTANT
235#endif
236#ifdef USE_ALARM_CONTROL_PANEL
258#endif
259#ifdef USE_TEXT
260enum TextMode : uint32_t {
263};
264#endif
265#ifdef USE_VALVE
271#endif
272#ifdef USE_UPDATE
278#endif
279
280} // namespace enums
281
283 public:
284 ~InfoResponseProtoMessage() override = default;
286 void set_object_id(const StringRef &ref) { this->object_id_ref_ = ref; }
287 uint32_t key{0};
289 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
291#ifdef USE_ENTITY_ICON
293 void set_icon(const StringRef &ref) { this->icon_ref_ = ref; }
294#endif
296#ifdef USE_DEVICES
297 uint32_t device_id{0};
298#endif
299
300 protected:
301};
302
304 public:
305 ~StateResponseProtoMessage() override = default;
306 uint32_t key{0};
307#ifdef USE_DEVICES
308 uint32_t device_id{0};
309#endif
310
311 protected:
312};
313
315 public:
316 ~CommandProtoMessage() override = default;
317 uint32_t key{0};
318#ifdef USE_DEVICES
319 uint32_t device_id{0};
320#endif
321
322 protected:
323};
325 public:
326 static constexpr uint8_t MESSAGE_TYPE = 1;
327 static constexpr uint8_t ESTIMATED_SIZE = 17;
328#ifdef HAS_PROTO_MESSAGE_DUMP
329 const char *message_name() const override { return "hello_request"; }
330#endif
331 std::string client_info{};
332 uint32_t api_version_major{0};
333 uint32_t api_version_minor{0};
334#ifdef HAS_PROTO_MESSAGE_DUMP
335 void dump_to(std::string &out) const override;
336#endif
337
338 protected:
339 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
340 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
341};
343 public:
344 static constexpr uint8_t MESSAGE_TYPE = 2;
345 static constexpr uint8_t ESTIMATED_SIZE = 26;
346#ifdef HAS_PROTO_MESSAGE_DUMP
347 const char *message_name() const override { return "hello_response"; }
348#endif
349 uint32_t api_version_major{0};
350 uint32_t api_version_minor{0};
352 void set_server_info(const StringRef &ref) { this->server_info_ref_ = ref; }
354 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
355 void encode(ProtoWriteBuffer buffer) const override;
356 void calculate_size(ProtoSize &size) const override;
357#ifdef HAS_PROTO_MESSAGE_DUMP
358 void dump_to(std::string &out) const override;
359#endif
360
361 protected:
362};
364 public:
365 static constexpr uint8_t MESSAGE_TYPE = 3;
366 static constexpr uint8_t ESTIMATED_SIZE = 9;
367#ifdef HAS_PROTO_MESSAGE_DUMP
368 const char *message_name() const override { return "connect_request"; }
369#endif
370 std::string password{};
371#ifdef HAS_PROTO_MESSAGE_DUMP
372 void dump_to(std::string &out) const override;
373#endif
374
375 protected:
376 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
377};
379 public:
380 static constexpr uint8_t MESSAGE_TYPE = 4;
381 static constexpr uint8_t ESTIMATED_SIZE = 2;
382#ifdef HAS_PROTO_MESSAGE_DUMP
383 const char *message_name() const override { return "connect_response"; }
384#endif
385 bool invalid_password{false};
386 void encode(ProtoWriteBuffer buffer) const override;
387 void calculate_size(ProtoSize &size) const override;
388#ifdef HAS_PROTO_MESSAGE_DUMP
389 void dump_to(std::string &out) const override;
390#endif
391
392 protected:
393};
395 public:
396 static constexpr uint8_t MESSAGE_TYPE = 5;
397 static constexpr uint8_t ESTIMATED_SIZE = 0;
398#ifdef HAS_PROTO_MESSAGE_DUMP
399 const char *message_name() const override { return "disconnect_request"; }
400#endif
401#ifdef HAS_PROTO_MESSAGE_DUMP
402 void dump_to(std::string &out) const override;
403#endif
404
405 protected:
406};
408 public:
409 static constexpr uint8_t MESSAGE_TYPE = 6;
410 static constexpr uint8_t ESTIMATED_SIZE = 0;
411#ifdef HAS_PROTO_MESSAGE_DUMP
412 const char *message_name() const override { return "disconnect_response"; }
413#endif
414#ifdef HAS_PROTO_MESSAGE_DUMP
415 void dump_to(std::string &out) const override;
416#endif
417
418 protected:
419};
420class PingRequest : public ProtoMessage {
421 public:
422 static constexpr uint8_t MESSAGE_TYPE = 7;
423 static constexpr uint8_t ESTIMATED_SIZE = 0;
424#ifdef HAS_PROTO_MESSAGE_DUMP
425 const char *message_name() const override { return "ping_request"; }
426#endif
427#ifdef HAS_PROTO_MESSAGE_DUMP
428 void dump_to(std::string &out) const override;
429#endif
430
431 protected:
432};
434 public:
435 static constexpr uint8_t MESSAGE_TYPE = 8;
436 static constexpr uint8_t ESTIMATED_SIZE = 0;
437#ifdef HAS_PROTO_MESSAGE_DUMP
438 const char *message_name() const override { return "ping_response"; }
439#endif
440#ifdef HAS_PROTO_MESSAGE_DUMP
441 void dump_to(std::string &out) const override;
442#endif
443
444 protected:
445};
447 public:
448 static constexpr uint8_t MESSAGE_TYPE = 9;
449 static constexpr uint8_t ESTIMATED_SIZE = 0;
450#ifdef HAS_PROTO_MESSAGE_DUMP
451 const char *message_name() const override { return "device_info_request"; }
452#endif
453#ifdef HAS_PROTO_MESSAGE_DUMP
454 void dump_to(std::string &out) const override;
455#endif
456
457 protected:
458};
459#ifdef USE_AREAS
460class AreaInfo : public ProtoMessage {
461 public:
462 uint32_t area_id{0};
464 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
465 void encode(ProtoWriteBuffer buffer) const override;
466 void calculate_size(ProtoSize &size) const override;
467#ifdef HAS_PROTO_MESSAGE_DUMP
468 void dump_to(std::string &out) const override;
469#endif
470
471 protected:
472};
473#endif
474#ifdef USE_DEVICES
475class DeviceInfo : public ProtoMessage {
476 public:
477 uint32_t device_id{0};
479 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
480 uint32_t area_id{0};
481 void encode(ProtoWriteBuffer buffer) const override;
482 void calculate_size(ProtoSize &size) const override;
483#ifdef HAS_PROTO_MESSAGE_DUMP
484 void dump_to(std::string &out) const override;
485#endif
486
487 protected:
488};
489#endif
491 public:
492 static constexpr uint8_t MESSAGE_TYPE = 10;
493 static constexpr uint8_t ESTIMATED_SIZE = 247;
494#ifdef HAS_PROTO_MESSAGE_DUMP
495 const char *message_name() const override { return "device_info_response"; }
496#endif
497#ifdef USE_API_PASSWORD
498 bool uses_password{false};
499#endif
501 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
503 void set_mac_address(const StringRef &ref) { this->mac_address_ref_ = ref; }
505 void set_esphome_version(const StringRef &ref) { this->esphome_version_ref_ = ref; }
507 void set_compilation_time(const StringRef &ref) { this->compilation_time_ref_ = ref; }
509 void set_model(const StringRef &ref) { this->model_ref_ = ref; }
510#ifdef USE_DEEP_SLEEP
511 bool has_deep_sleep{false};
512#endif
513#ifdef ESPHOME_PROJECT_NAME
515 void set_project_name(const StringRef &ref) { this->project_name_ref_ = ref; }
516#endif
517#ifdef ESPHOME_PROJECT_NAME
519 void set_project_version(const StringRef &ref) { this->project_version_ref_ = ref; }
520#endif
521#ifdef USE_WEBSERVER
522 uint32_t webserver_port{0};
523#endif
524#ifdef USE_BLUETOOTH_PROXY
526#endif
528 void set_manufacturer(const StringRef &ref) { this->manufacturer_ref_ = ref; }
530 void set_friendly_name(const StringRef &ref) { this->friendly_name_ref_ = ref; }
531#ifdef USE_VOICE_ASSISTANT
533#endif
534#ifdef USE_AREAS
536 void set_suggested_area(const StringRef &ref) { this->suggested_area_ref_ = ref; }
537#endif
538#ifdef USE_BLUETOOTH_PROXY
541#endif
542#ifdef USE_API_NOISE
544#endif
545#ifdef USE_DEVICES
546 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
547#endif
548#ifdef USE_AREAS
549 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
550#endif
551#ifdef USE_AREAS
553#endif
554 void encode(ProtoWriteBuffer buffer) const override;
555 void calculate_size(ProtoSize &size) const override;
556#ifdef HAS_PROTO_MESSAGE_DUMP
557 void dump_to(std::string &out) const override;
558#endif
559
560 protected:
561};
563 public:
564 static constexpr uint8_t MESSAGE_TYPE = 11;
565 static constexpr uint8_t ESTIMATED_SIZE = 0;
566#ifdef HAS_PROTO_MESSAGE_DUMP
567 const char *message_name() const override { return "list_entities_request"; }
568#endif
569#ifdef HAS_PROTO_MESSAGE_DUMP
570 void dump_to(std::string &out) const override;
571#endif
572
573 protected:
574};
576 public:
577 static constexpr uint8_t MESSAGE_TYPE = 19;
578 static constexpr uint8_t ESTIMATED_SIZE = 0;
579#ifdef HAS_PROTO_MESSAGE_DUMP
580 const char *message_name() const override { return "list_entities_done_response"; }
581#endif
582#ifdef HAS_PROTO_MESSAGE_DUMP
583 void dump_to(std::string &out) const override;
584#endif
585
586 protected:
587};
589 public:
590 static constexpr uint8_t MESSAGE_TYPE = 20;
591 static constexpr uint8_t ESTIMATED_SIZE = 0;
592#ifdef HAS_PROTO_MESSAGE_DUMP
593 const char *message_name() const override { return "subscribe_states_request"; }
594#endif
595#ifdef HAS_PROTO_MESSAGE_DUMP
596 void dump_to(std::string &out) const override;
597#endif
598
599 protected:
600};
601#ifdef USE_BINARY_SENSOR
603 public:
604 static constexpr uint8_t MESSAGE_TYPE = 12;
605 static constexpr uint8_t ESTIMATED_SIZE = 51;
606#ifdef HAS_PROTO_MESSAGE_DUMP
607 const char *message_name() const override { return "list_entities_binary_sensor_response"; }
608#endif
610 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
612 void encode(ProtoWriteBuffer buffer) const override;
613 void calculate_size(ProtoSize &size) const override;
614#ifdef HAS_PROTO_MESSAGE_DUMP
615 void dump_to(std::string &out) const override;
616#endif
617
618 protected:
619};
621 public:
622 static constexpr uint8_t MESSAGE_TYPE = 21;
623 static constexpr uint8_t ESTIMATED_SIZE = 13;
624#ifdef HAS_PROTO_MESSAGE_DUMP
625 const char *message_name() const override { return "binary_sensor_state_response"; }
626#endif
627 bool state{false};
628 bool missing_state{false};
629 void encode(ProtoWriteBuffer buffer) const override;
630 void calculate_size(ProtoSize &size) const override;
631#ifdef HAS_PROTO_MESSAGE_DUMP
632 void dump_to(std::string &out) const override;
633#endif
634
635 protected:
636};
637#endif
638#ifdef USE_COVER
640 public:
641 static constexpr uint8_t MESSAGE_TYPE = 13;
642 static constexpr uint8_t ESTIMATED_SIZE = 57;
643#ifdef HAS_PROTO_MESSAGE_DUMP
644 const char *message_name() const override { return "list_entities_cover_response"; }
645#endif
646 bool assumed_state{false};
647 bool supports_position{false};
648 bool supports_tilt{false};
650 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
651 bool supports_stop{false};
652 void encode(ProtoWriteBuffer buffer) const override;
653 void calculate_size(ProtoSize &size) const override;
654#ifdef HAS_PROTO_MESSAGE_DUMP
655 void dump_to(std::string &out) const override;
656#endif
657
658 protected:
659};
661 public:
662 static constexpr uint8_t MESSAGE_TYPE = 22;
663 static constexpr uint8_t ESTIMATED_SIZE = 21;
664#ifdef HAS_PROTO_MESSAGE_DUMP
665 const char *message_name() const override { return "cover_state_response"; }
666#endif
667 float position{0.0f};
668 float tilt{0.0f};
670 void encode(ProtoWriteBuffer buffer) const override;
671 void calculate_size(ProtoSize &size) const override;
672#ifdef HAS_PROTO_MESSAGE_DUMP
673 void dump_to(std::string &out) const override;
674#endif
675
676 protected:
677};
679 public:
680 static constexpr uint8_t MESSAGE_TYPE = 30;
681 static constexpr uint8_t ESTIMATED_SIZE = 25;
682#ifdef HAS_PROTO_MESSAGE_DUMP
683 const char *message_name() const override { return "cover_command_request"; }
684#endif
685 bool has_position{false};
686 float position{0.0f};
687 bool has_tilt{false};
688 float tilt{0.0f};
689 bool stop{false};
690#ifdef HAS_PROTO_MESSAGE_DUMP
691 void dump_to(std::string &out) const override;
692#endif
693
694 protected:
695 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
696 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
697};
698#endif
699#ifdef USE_FAN
701 public:
702 static constexpr uint8_t MESSAGE_TYPE = 14;
703 static constexpr uint8_t ESTIMATED_SIZE = 68;
704#ifdef HAS_PROTO_MESSAGE_DUMP
705 const char *message_name() const override { return "list_entities_fan_response"; }
706#endif
708 bool supports_speed{false};
711 const std::set<std::string> *supported_preset_modes{};
712 void encode(ProtoWriteBuffer buffer) const override;
713 void calculate_size(ProtoSize &size) const override;
714#ifdef HAS_PROTO_MESSAGE_DUMP
715 void dump_to(std::string &out) const override;
716#endif
717
718 protected:
719};
721 public:
722 static constexpr uint8_t MESSAGE_TYPE = 23;
723 static constexpr uint8_t ESTIMATED_SIZE = 28;
724#ifdef HAS_PROTO_MESSAGE_DUMP
725 const char *message_name() const override { return "fan_state_response"; }
726#endif
727 bool state{false};
728 bool oscillating{false};
730 int32_t speed_level{0};
732 void set_preset_mode(const StringRef &ref) { this->preset_mode_ref_ = ref; }
733 void encode(ProtoWriteBuffer buffer) const override;
734 void calculate_size(ProtoSize &size) const override;
735#ifdef HAS_PROTO_MESSAGE_DUMP
736 void dump_to(std::string &out) const override;
737#endif
738
739 protected:
740};
742 public:
743 static constexpr uint8_t MESSAGE_TYPE = 31;
744 static constexpr uint8_t ESTIMATED_SIZE = 38;
745#ifdef HAS_PROTO_MESSAGE_DUMP
746 const char *message_name() const override { return "fan_command_request"; }
747#endif
748 bool has_state{false};
749 bool state{false};
750 bool has_oscillating{false};
751 bool oscillating{false};
752 bool has_direction{false};
754 bool has_speed_level{false};
755 int32_t speed_level{0};
756 bool has_preset_mode{false};
757 std::string preset_mode{};
758#ifdef HAS_PROTO_MESSAGE_DUMP
759 void dump_to(std::string &out) const override;
760#endif
761
762 protected:
763 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
764 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
765 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
766};
767#endif
768#ifdef USE_LIGHT
770 public:
771 static constexpr uint8_t MESSAGE_TYPE = 15;
772 static constexpr uint8_t ESTIMATED_SIZE = 73;
773#ifdef HAS_PROTO_MESSAGE_DUMP
774 const char *message_name() const override { return "list_entities_light_response"; }
775#endif
776 const std::set<light::ColorMode> *supported_color_modes{};
777 float min_mireds{0.0f};
778 float max_mireds{0.0f};
779 std::vector<std::string> effects{};
780 void encode(ProtoWriteBuffer buffer) const override;
781 void calculate_size(ProtoSize &size) const override;
782#ifdef HAS_PROTO_MESSAGE_DUMP
783 void dump_to(std::string &out) const override;
784#endif
785
786 protected:
787};
789 public:
790 static constexpr uint8_t MESSAGE_TYPE = 24;
791 static constexpr uint8_t ESTIMATED_SIZE = 67;
792#ifdef HAS_PROTO_MESSAGE_DUMP
793 const char *message_name() const override { return "light_state_response"; }
794#endif
795 bool state{false};
796 float brightness{0.0f};
798 float color_brightness{0.0f};
799 float red{0.0f};
800 float green{0.0f};
801 float blue{0.0f};
802 float white{0.0f};
803 float color_temperature{0.0f};
804 float cold_white{0.0f};
805 float warm_white{0.0f};
807 void set_effect(const StringRef &ref) { this->effect_ref_ = ref; }
808 void encode(ProtoWriteBuffer buffer) const override;
809 void calculate_size(ProtoSize &size) const override;
810#ifdef HAS_PROTO_MESSAGE_DUMP
811 void dump_to(std::string &out) const override;
812#endif
813
814 protected:
815};
817 public:
818 static constexpr uint8_t MESSAGE_TYPE = 32;
819 static constexpr uint8_t ESTIMATED_SIZE = 112;
820#ifdef HAS_PROTO_MESSAGE_DUMP
821 const char *message_name() const override { return "light_command_request"; }
822#endif
823 bool has_state{false};
824 bool state{false};
825 bool has_brightness{false};
826 float brightness{0.0f};
827 bool has_color_mode{false};
830 float color_brightness{0.0f};
831 bool has_rgb{false};
832 float red{0.0f};
833 float green{0.0f};
834 float blue{0.0f};
835 bool has_white{false};
836 float white{0.0f};
838 float color_temperature{0.0f};
839 bool has_cold_white{false};
840 float cold_white{0.0f};
841 bool has_warm_white{false};
842 float warm_white{0.0f};
844 uint32_t transition_length{0};
845 bool has_flash_length{false};
846 uint32_t flash_length{0};
847 bool has_effect{false};
848 std::string effect{};
849#ifdef HAS_PROTO_MESSAGE_DUMP
850 void dump_to(std::string &out) const override;
851#endif
852
853 protected:
854 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
855 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
856 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
857};
858#endif
859#ifdef USE_SENSOR
861 public:
862 static constexpr uint8_t MESSAGE_TYPE = 16;
863 static constexpr uint8_t ESTIMATED_SIZE = 66;
864#ifdef HAS_PROTO_MESSAGE_DUMP
865 const char *message_name() const override { return "list_entities_sensor_response"; }
866#endif
870 bool force_update{false};
872 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
874 void encode(ProtoWriteBuffer buffer) const override;
875 void calculate_size(ProtoSize &size) const override;
876#ifdef HAS_PROTO_MESSAGE_DUMP
877 void dump_to(std::string &out) const override;
878#endif
879
880 protected:
881};
883 public:
884 static constexpr uint8_t MESSAGE_TYPE = 25;
885 static constexpr uint8_t ESTIMATED_SIZE = 16;
886#ifdef HAS_PROTO_MESSAGE_DUMP
887 const char *message_name() const override { return "sensor_state_response"; }
888#endif
889 float state{0.0f};
890 bool missing_state{false};
891 void encode(ProtoWriteBuffer buffer) const override;
892 void calculate_size(ProtoSize &size) const override;
893#ifdef HAS_PROTO_MESSAGE_DUMP
894 void dump_to(std::string &out) const override;
895#endif
896
897 protected:
898};
899#endif
900#ifdef USE_SWITCH
902 public:
903 static constexpr uint8_t MESSAGE_TYPE = 17;
904 static constexpr uint8_t ESTIMATED_SIZE = 51;
905#ifdef HAS_PROTO_MESSAGE_DUMP
906 const char *message_name() const override { return "list_entities_switch_response"; }
907#endif
908 bool assumed_state{false};
910 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
911 void encode(ProtoWriteBuffer buffer) const override;
912 void calculate_size(ProtoSize &size) const override;
913#ifdef HAS_PROTO_MESSAGE_DUMP
914 void dump_to(std::string &out) const override;
915#endif
916
917 protected:
918};
920 public:
921 static constexpr uint8_t MESSAGE_TYPE = 26;
922 static constexpr uint8_t ESTIMATED_SIZE = 11;
923#ifdef HAS_PROTO_MESSAGE_DUMP
924 const char *message_name() const override { return "switch_state_response"; }
925#endif
926 bool state{false};
927 void encode(ProtoWriteBuffer buffer) const override;
928 void calculate_size(ProtoSize &size) const override;
929#ifdef HAS_PROTO_MESSAGE_DUMP
930 void dump_to(std::string &out) const override;
931#endif
932
933 protected:
934};
936 public:
937 static constexpr uint8_t MESSAGE_TYPE = 33;
938 static constexpr uint8_t ESTIMATED_SIZE = 11;
939#ifdef HAS_PROTO_MESSAGE_DUMP
940 const char *message_name() const override { return "switch_command_request"; }
941#endif
942 bool state{false};
943#ifdef HAS_PROTO_MESSAGE_DUMP
944 void dump_to(std::string &out) const override;
945#endif
946
947 protected:
948 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
949 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
950};
951#endif
952#ifdef USE_TEXT_SENSOR
954 public:
955 static constexpr uint8_t MESSAGE_TYPE = 18;
956 static constexpr uint8_t ESTIMATED_SIZE = 49;
957#ifdef HAS_PROTO_MESSAGE_DUMP
958 const char *message_name() const override { return "list_entities_text_sensor_response"; }
959#endif
961 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
962 void encode(ProtoWriteBuffer buffer) const override;
963 void calculate_size(ProtoSize &size) const override;
964#ifdef HAS_PROTO_MESSAGE_DUMP
965 void dump_to(std::string &out) const override;
966#endif
967
968 protected:
969};
971 public:
972 static constexpr uint8_t MESSAGE_TYPE = 27;
973 static constexpr uint8_t ESTIMATED_SIZE = 20;
974#ifdef HAS_PROTO_MESSAGE_DUMP
975 const char *message_name() const override { return "text_sensor_state_response"; }
976#endif
978 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
979 bool missing_state{false};
980 void encode(ProtoWriteBuffer buffer) const override;
981 void calculate_size(ProtoSize &size) const override;
982#ifdef HAS_PROTO_MESSAGE_DUMP
983 void dump_to(std::string &out) const override;
984#endif
985
986 protected:
987};
988#endif
990 public:
991 static constexpr uint8_t MESSAGE_TYPE = 28;
992 static constexpr uint8_t ESTIMATED_SIZE = 4;
993#ifdef HAS_PROTO_MESSAGE_DUMP
994 const char *message_name() const override { return "subscribe_logs_request"; }
995#endif
997 bool dump_config{false};
998#ifdef HAS_PROTO_MESSAGE_DUMP
999 void dump_to(std::string &out) const override;
1000#endif
1001
1002 protected:
1003 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1004};
1006 public:
1007 static constexpr uint8_t MESSAGE_TYPE = 29;
1008 static constexpr uint8_t ESTIMATED_SIZE = 11;
1009#ifdef HAS_PROTO_MESSAGE_DUMP
1010 const char *message_name() const override { return "subscribe_logs_response"; }
1011#endif
1013 const uint8_t *message_ptr_{nullptr};
1014 size_t message_len_{0};
1015 void set_message(const uint8_t *data, size_t len) {
1016 this->message_ptr_ = data;
1017 this->message_len_ = len;
1018 }
1019 void encode(ProtoWriteBuffer buffer) const override;
1020 void calculate_size(ProtoSize &size) const override;
1021#ifdef HAS_PROTO_MESSAGE_DUMP
1022 void dump_to(std::string &out) const override;
1023#endif
1024
1025 protected:
1026};
1027#ifdef USE_API_NOISE
1029 public:
1030 static constexpr uint8_t MESSAGE_TYPE = 124;
1031 static constexpr uint8_t ESTIMATED_SIZE = 9;
1032#ifdef HAS_PROTO_MESSAGE_DUMP
1033 const char *message_name() const override { return "noise_encryption_set_key_request"; }
1034#endif
1035 std::string key{};
1036#ifdef HAS_PROTO_MESSAGE_DUMP
1037 void dump_to(std::string &out) const override;
1038#endif
1039
1040 protected:
1041 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1042};
1044 public:
1045 static constexpr uint8_t MESSAGE_TYPE = 125;
1046 static constexpr uint8_t ESTIMATED_SIZE = 2;
1047#ifdef HAS_PROTO_MESSAGE_DUMP
1048 const char *message_name() const override { return "noise_encryption_set_key_response"; }
1049#endif
1050 bool success{false};
1051 void encode(ProtoWriteBuffer buffer) const override;
1052 void calculate_size(ProtoSize &size) const override;
1053#ifdef HAS_PROTO_MESSAGE_DUMP
1054 void dump_to(std::string &out) const override;
1055#endif
1056
1057 protected:
1058};
1059#endif
1060#ifdef USE_API_HOMEASSISTANT_SERVICES
1062 public:
1063 static constexpr uint8_t MESSAGE_TYPE = 34;
1064 static constexpr uint8_t ESTIMATED_SIZE = 0;
1065#ifdef HAS_PROTO_MESSAGE_DUMP
1066 const char *message_name() const override { return "subscribe_homeassistant_services_request"; }
1067#endif
1068#ifdef HAS_PROTO_MESSAGE_DUMP
1069 void dump_to(std::string &out) const override;
1070#endif
1071
1072 protected:
1073};
1075 public:
1077 void set_key(const StringRef &ref) { this->key_ref_ = ref; }
1078 std::string value{};
1079 void encode(ProtoWriteBuffer buffer) const override;
1080 void calculate_size(ProtoSize &size) const override;
1081#ifdef HAS_PROTO_MESSAGE_DUMP
1082 void dump_to(std::string &out) const override;
1083#endif
1084
1085 protected:
1086};
1088 public:
1089 static constexpr uint8_t MESSAGE_TYPE = 35;
1090 static constexpr uint8_t ESTIMATED_SIZE = 113;
1091#ifdef HAS_PROTO_MESSAGE_DUMP
1092 const char *message_name() const override { return "homeassistant_service_response"; }
1093#endif
1095 void set_service(const StringRef &ref) { this->service_ref_ = ref; }
1096 std::vector<HomeassistantServiceMap> data{};
1097 std::vector<HomeassistantServiceMap> data_template{};
1098 std::vector<HomeassistantServiceMap> variables{};
1099 bool is_event{false};
1100 void encode(ProtoWriteBuffer buffer) const override;
1101 void calculate_size(ProtoSize &size) const override;
1102#ifdef HAS_PROTO_MESSAGE_DUMP
1103 void dump_to(std::string &out) const override;
1104#endif
1105
1106 protected:
1107};
1108#endif
1109#ifdef USE_API_HOMEASSISTANT_STATES
1111 public:
1112 static constexpr uint8_t MESSAGE_TYPE = 38;
1113 static constexpr uint8_t ESTIMATED_SIZE = 0;
1114#ifdef HAS_PROTO_MESSAGE_DUMP
1115 const char *message_name() const override { return "subscribe_home_assistant_states_request"; }
1116#endif
1117#ifdef HAS_PROTO_MESSAGE_DUMP
1118 void dump_to(std::string &out) const override;
1119#endif
1120
1121 protected:
1122};
1124 public:
1125 static constexpr uint8_t MESSAGE_TYPE = 39;
1126 static constexpr uint8_t ESTIMATED_SIZE = 20;
1127#ifdef HAS_PROTO_MESSAGE_DUMP
1128 const char *message_name() const override { return "subscribe_home_assistant_state_response"; }
1129#endif
1131 void set_entity_id(const StringRef &ref) { this->entity_id_ref_ = ref; }
1133 void set_attribute(const StringRef &ref) { this->attribute_ref_ = ref; }
1134 bool once{false};
1135 void encode(ProtoWriteBuffer buffer) const override;
1136 void calculate_size(ProtoSize &size) const override;
1137#ifdef HAS_PROTO_MESSAGE_DUMP
1138 void dump_to(std::string &out) const override;
1139#endif
1140
1141 protected:
1142};
1144 public:
1145 static constexpr uint8_t MESSAGE_TYPE = 40;
1146 static constexpr uint8_t ESTIMATED_SIZE = 27;
1147#ifdef HAS_PROTO_MESSAGE_DUMP
1148 const char *message_name() const override { return "home_assistant_state_response"; }
1149#endif
1150 std::string entity_id{};
1151 std::string state{};
1152 std::string attribute{};
1153#ifdef HAS_PROTO_MESSAGE_DUMP
1154 void dump_to(std::string &out) const override;
1155#endif
1156
1157 protected:
1158 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1159};
1160#endif
1162 public:
1163 static constexpr uint8_t MESSAGE_TYPE = 36;
1164 static constexpr uint8_t ESTIMATED_SIZE = 0;
1165#ifdef HAS_PROTO_MESSAGE_DUMP
1166 const char *message_name() const override { return "get_time_request"; }
1167#endif
1168#ifdef HAS_PROTO_MESSAGE_DUMP
1169 void dump_to(std::string &out) const override;
1170#endif
1171
1172 protected:
1173};
1175 public:
1176 static constexpr uint8_t MESSAGE_TYPE = 37;
1177 static constexpr uint8_t ESTIMATED_SIZE = 5;
1178#ifdef HAS_PROTO_MESSAGE_DUMP
1179 const char *message_name() const override { return "get_time_response"; }
1180#endif
1181 uint32_t epoch_seconds{0};
1182 void encode(ProtoWriteBuffer buffer) const override;
1183 void calculate_size(ProtoSize &size) const override;
1184#ifdef HAS_PROTO_MESSAGE_DUMP
1185 void dump_to(std::string &out) const override;
1186#endif
1187
1188 protected:
1189 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1190};
1191#ifdef USE_API_SERVICES
1193 public:
1195 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
1197 void encode(ProtoWriteBuffer buffer) const override;
1198 void calculate_size(ProtoSize &size) const override;
1199#ifdef HAS_PROTO_MESSAGE_DUMP
1200 void dump_to(std::string &out) const override;
1201#endif
1202
1203 protected:
1204};
1206 public:
1207 static constexpr uint8_t MESSAGE_TYPE = 41;
1208 static constexpr uint8_t ESTIMATED_SIZE = 48;
1209#ifdef HAS_PROTO_MESSAGE_DUMP
1210 const char *message_name() const override { return "list_entities_services_response"; }
1211#endif
1213 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
1214 uint32_t key{0};
1215 std::vector<ListEntitiesServicesArgument> args{};
1216 void encode(ProtoWriteBuffer buffer) const override;
1217 void calculate_size(ProtoSize &size) const override;
1218#ifdef HAS_PROTO_MESSAGE_DUMP
1219 void dump_to(std::string &out) const override;
1220#endif
1221
1222 protected:
1223};
1225 public:
1226 bool bool_{false};
1227 int32_t legacy_int{0};
1228 float float_{0.0f};
1229 std::string string_{};
1230 int32_t int_{0};
1231 std::vector<bool> bool_array{};
1232 std::vector<int32_t> int_array{};
1233 std::vector<float> float_array{};
1234 std::vector<std::string> string_array{};
1235#ifdef HAS_PROTO_MESSAGE_DUMP
1236 void dump_to(std::string &out) const override;
1237#endif
1238
1239 protected:
1240 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1241 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1242 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1243};
1245 public:
1246 static constexpr uint8_t MESSAGE_TYPE = 42;
1247 static constexpr uint8_t ESTIMATED_SIZE = 39;
1248#ifdef HAS_PROTO_MESSAGE_DUMP
1249 const char *message_name() const override { return "execute_service_request"; }
1250#endif
1251 uint32_t key{0};
1252 std::vector<ExecuteServiceArgument> args{};
1253#ifdef HAS_PROTO_MESSAGE_DUMP
1254 void dump_to(std::string &out) const override;
1255#endif
1256
1257 protected:
1258 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1259 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1260};
1261#endif
1262#ifdef USE_CAMERA
1264 public:
1265 static constexpr uint8_t MESSAGE_TYPE = 43;
1266 static constexpr uint8_t ESTIMATED_SIZE = 40;
1267#ifdef HAS_PROTO_MESSAGE_DUMP
1268 const char *message_name() const override { return "list_entities_camera_response"; }
1269#endif
1270 void encode(ProtoWriteBuffer buffer) const override;
1271 void calculate_size(ProtoSize &size) const override;
1272#ifdef HAS_PROTO_MESSAGE_DUMP
1273 void dump_to(std::string &out) const override;
1274#endif
1275
1276 protected:
1277};
1279 public:
1280 static constexpr uint8_t MESSAGE_TYPE = 44;
1281 static constexpr uint8_t ESTIMATED_SIZE = 20;
1282#ifdef HAS_PROTO_MESSAGE_DUMP
1283 const char *message_name() const override { return "camera_image_response"; }
1284#endif
1285 const uint8_t *data_ptr_{nullptr};
1286 size_t data_len_{0};
1287 void set_data(const uint8_t *data, size_t len) {
1288 this->data_ptr_ = data;
1289 this->data_len_ = len;
1290 }
1291 bool done{false};
1292 void encode(ProtoWriteBuffer buffer) const override;
1293 void calculate_size(ProtoSize &size) const override;
1294#ifdef HAS_PROTO_MESSAGE_DUMP
1295 void dump_to(std::string &out) const override;
1296#endif
1297
1298 protected:
1299};
1301 public:
1302 static constexpr uint8_t MESSAGE_TYPE = 45;
1303 static constexpr uint8_t ESTIMATED_SIZE = 4;
1304#ifdef HAS_PROTO_MESSAGE_DUMP
1305 const char *message_name() const override { return "camera_image_request"; }
1306#endif
1307 bool single{false};
1308 bool stream{false};
1309#ifdef HAS_PROTO_MESSAGE_DUMP
1310 void dump_to(std::string &out) const override;
1311#endif
1312
1313 protected:
1314 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1315};
1316#endif
1317#ifdef USE_CLIMATE
1319 public:
1320 static constexpr uint8_t MESSAGE_TYPE = 46;
1321 static constexpr uint8_t ESTIMATED_SIZE = 145;
1322#ifdef HAS_PROTO_MESSAGE_DUMP
1323 const char *message_name() const override { return "list_entities_climate_response"; }
1324#endif
1327 const std::set<climate::ClimateMode> *supported_modes{};
1331 bool supports_action{false};
1332 const std::set<climate::ClimateFanMode> *supported_fan_modes{};
1333 const std::set<climate::ClimateSwingMode> *supported_swing_modes{};
1334 const std::set<std::string> *supported_custom_fan_modes{};
1335 const std::set<climate::ClimatePreset> *supported_presets{};
1336 const std::set<std::string> *supported_custom_presets{};
1342 void encode(ProtoWriteBuffer buffer) const override;
1343 void calculate_size(ProtoSize &size) const override;
1344#ifdef HAS_PROTO_MESSAGE_DUMP
1345 void dump_to(std::string &out) const override;
1346#endif
1347
1348 protected:
1349};
1351 public:
1352 static constexpr uint8_t MESSAGE_TYPE = 47;
1353 static constexpr uint8_t ESTIMATED_SIZE = 68;
1354#ifdef HAS_PROTO_MESSAGE_DUMP
1355 const char *message_name() const override { return "climate_state_response"; }
1356#endif
1366 void set_custom_fan_mode(const StringRef &ref) { this->custom_fan_mode_ref_ = ref; }
1369 void set_custom_preset(const StringRef &ref) { this->custom_preset_ref_ = ref; }
1370 float current_humidity{0.0f};
1371 float target_humidity{0.0f};
1372 void encode(ProtoWriteBuffer buffer) const override;
1373 void calculate_size(ProtoSize &size) const override;
1374#ifdef HAS_PROTO_MESSAGE_DUMP
1375 void dump_to(std::string &out) const override;
1376#endif
1377
1378 protected:
1379};
1381 public:
1382 static constexpr uint8_t MESSAGE_TYPE = 48;
1383 static constexpr uint8_t ESTIMATED_SIZE = 84;
1384#ifdef HAS_PROTO_MESSAGE_DUMP
1385 const char *message_name() const override { return "climate_command_request"; }
1386#endif
1387 bool has_mode{false};
1395 bool has_fan_mode{false};
1397 bool has_swing_mode{false};
1400 std::string custom_fan_mode{};
1401 bool has_preset{false};
1404 std::string custom_preset{};
1406 float target_humidity{0.0f};
1407#ifdef HAS_PROTO_MESSAGE_DUMP
1408 void dump_to(std::string &out) const override;
1409#endif
1410
1411 protected:
1412 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1413 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1414 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1415};
1416#endif
1417#ifdef USE_NUMBER
1419 public:
1420 static constexpr uint8_t MESSAGE_TYPE = 49;
1421 static constexpr uint8_t ESTIMATED_SIZE = 75;
1422#ifdef HAS_PROTO_MESSAGE_DUMP
1423 const char *message_name() const override { return "list_entities_number_response"; }
1424#endif
1425 float min_value{0.0f};
1426 float max_value{0.0f};
1427 float step{0.0f};
1432 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
1433 void encode(ProtoWriteBuffer buffer) const override;
1434 void calculate_size(ProtoSize &size) const override;
1435#ifdef HAS_PROTO_MESSAGE_DUMP
1436 void dump_to(std::string &out) const override;
1437#endif
1438
1439 protected:
1440};
1442 public:
1443 static constexpr uint8_t MESSAGE_TYPE = 50;
1444 static constexpr uint8_t ESTIMATED_SIZE = 16;
1445#ifdef HAS_PROTO_MESSAGE_DUMP
1446 const char *message_name() const override { return "number_state_response"; }
1447#endif
1448 float state{0.0f};
1449 bool missing_state{false};
1450 void encode(ProtoWriteBuffer buffer) const override;
1451 void calculate_size(ProtoSize &size) const override;
1452#ifdef HAS_PROTO_MESSAGE_DUMP
1453 void dump_to(std::string &out) const override;
1454#endif
1455
1456 protected:
1457};
1459 public:
1460 static constexpr uint8_t MESSAGE_TYPE = 51;
1461 static constexpr uint8_t ESTIMATED_SIZE = 14;
1462#ifdef HAS_PROTO_MESSAGE_DUMP
1463 const char *message_name() const override { return "number_command_request"; }
1464#endif
1465 float state{0.0f};
1466#ifdef HAS_PROTO_MESSAGE_DUMP
1467 void dump_to(std::string &out) const override;
1468#endif
1469
1470 protected:
1471 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1472 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1473};
1474#endif
1475#ifdef USE_SELECT
1477 public:
1478 static constexpr uint8_t MESSAGE_TYPE = 52;
1479 static constexpr uint8_t ESTIMATED_SIZE = 58;
1480#ifdef HAS_PROTO_MESSAGE_DUMP
1481 const char *message_name() const override { return "list_entities_select_response"; }
1482#endif
1483 const std::vector<std::string> *options{};
1484 void encode(ProtoWriteBuffer buffer) const override;
1485 void calculate_size(ProtoSize &size) const override;
1486#ifdef HAS_PROTO_MESSAGE_DUMP
1487 void dump_to(std::string &out) const override;
1488#endif
1489
1490 protected:
1491};
1493 public:
1494 static constexpr uint8_t MESSAGE_TYPE = 53;
1495 static constexpr uint8_t ESTIMATED_SIZE = 20;
1496#ifdef HAS_PROTO_MESSAGE_DUMP
1497 const char *message_name() const override { return "select_state_response"; }
1498#endif
1500 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
1501 bool missing_state{false};
1502 void encode(ProtoWriteBuffer buffer) const override;
1503 void calculate_size(ProtoSize &size) const override;
1504#ifdef HAS_PROTO_MESSAGE_DUMP
1505 void dump_to(std::string &out) const override;
1506#endif
1507
1508 protected:
1509};
1511 public:
1512 static constexpr uint8_t MESSAGE_TYPE = 54;
1513 static constexpr uint8_t ESTIMATED_SIZE = 18;
1514#ifdef HAS_PROTO_MESSAGE_DUMP
1515 const char *message_name() const override { return "select_command_request"; }
1516#endif
1517 std::string state{};
1518#ifdef HAS_PROTO_MESSAGE_DUMP
1519 void dump_to(std::string &out) const override;
1520#endif
1521
1522 protected:
1523 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1524 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1525 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1526};
1527#endif
1528#ifdef USE_SIREN
1530 public:
1531 static constexpr uint8_t MESSAGE_TYPE = 55;
1532 static constexpr uint8_t ESTIMATED_SIZE = 62;
1533#ifdef HAS_PROTO_MESSAGE_DUMP
1534 const char *message_name() const override { return "list_entities_siren_response"; }
1535#endif
1536 std::vector<std::string> tones{};
1538 bool supports_volume{false};
1539 void encode(ProtoWriteBuffer buffer) const override;
1540 void calculate_size(ProtoSize &size) const override;
1541#ifdef HAS_PROTO_MESSAGE_DUMP
1542 void dump_to(std::string &out) const override;
1543#endif
1544
1545 protected:
1546};
1548 public:
1549 static constexpr uint8_t MESSAGE_TYPE = 56;
1550 static constexpr uint8_t ESTIMATED_SIZE = 11;
1551#ifdef HAS_PROTO_MESSAGE_DUMP
1552 const char *message_name() const override { return "siren_state_response"; }
1553#endif
1554 bool state{false};
1555 void encode(ProtoWriteBuffer buffer) const override;
1556 void calculate_size(ProtoSize &size) const override;
1557#ifdef HAS_PROTO_MESSAGE_DUMP
1558 void dump_to(std::string &out) const override;
1559#endif
1560
1561 protected:
1562};
1564 public:
1565 static constexpr uint8_t MESSAGE_TYPE = 57;
1566 static constexpr uint8_t ESTIMATED_SIZE = 37;
1567#ifdef HAS_PROTO_MESSAGE_DUMP
1568 const char *message_name() const override { return "siren_command_request"; }
1569#endif
1570 bool has_state{false};
1571 bool state{false};
1572 bool has_tone{false};
1573 std::string tone{};
1574 bool has_duration{false};
1575 uint32_t duration{0};
1576 bool has_volume{false};
1577 float volume{0.0f};
1578#ifdef HAS_PROTO_MESSAGE_DUMP
1579 void dump_to(std::string &out) const override;
1580#endif
1581
1582 protected:
1583 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1584 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1585 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1586};
1587#endif
1588#ifdef USE_LOCK
1590 public:
1591 static constexpr uint8_t MESSAGE_TYPE = 58;
1592 static constexpr uint8_t ESTIMATED_SIZE = 55;
1593#ifdef HAS_PROTO_MESSAGE_DUMP
1594 const char *message_name() const override { return "list_entities_lock_response"; }
1595#endif
1596 bool assumed_state{false};
1597 bool supports_open{false};
1598 bool requires_code{false};
1600 void set_code_format(const StringRef &ref) { this->code_format_ref_ = ref; }
1601 void encode(ProtoWriteBuffer buffer) const override;
1602 void calculate_size(ProtoSize &size) const override;
1603#ifdef HAS_PROTO_MESSAGE_DUMP
1604 void dump_to(std::string &out) const override;
1605#endif
1606
1607 protected:
1608};
1610 public:
1611 static constexpr uint8_t MESSAGE_TYPE = 59;
1612 static constexpr uint8_t ESTIMATED_SIZE = 11;
1613#ifdef HAS_PROTO_MESSAGE_DUMP
1614 const char *message_name() const override { return "lock_state_response"; }
1615#endif
1617 void encode(ProtoWriteBuffer buffer) const override;
1618 void calculate_size(ProtoSize &size) const override;
1619#ifdef HAS_PROTO_MESSAGE_DUMP
1620 void dump_to(std::string &out) const override;
1621#endif
1622
1623 protected:
1624};
1626 public:
1627 static constexpr uint8_t MESSAGE_TYPE = 60;
1628 static constexpr uint8_t ESTIMATED_SIZE = 22;
1629#ifdef HAS_PROTO_MESSAGE_DUMP
1630 const char *message_name() const override { return "lock_command_request"; }
1631#endif
1633 bool has_code{false};
1634 std::string code{};
1635#ifdef HAS_PROTO_MESSAGE_DUMP
1636 void dump_to(std::string &out) const override;
1637#endif
1638
1639 protected:
1640 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1641 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1642 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1643};
1644#endif
1645#ifdef USE_BUTTON
1647 public:
1648 static constexpr uint8_t MESSAGE_TYPE = 61;
1649 static constexpr uint8_t ESTIMATED_SIZE = 49;
1650#ifdef HAS_PROTO_MESSAGE_DUMP
1651 const char *message_name() const override { return "list_entities_button_response"; }
1652#endif
1654 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
1655 void encode(ProtoWriteBuffer buffer) const override;
1656 void calculate_size(ProtoSize &size) const override;
1657#ifdef HAS_PROTO_MESSAGE_DUMP
1658 void dump_to(std::string &out) const override;
1659#endif
1660
1661 protected:
1662};
1664 public:
1665 static constexpr uint8_t MESSAGE_TYPE = 62;
1666 static constexpr uint8_t ESTIMATED_SIZE = 9;
1667#ifdef HAS_PROTO_MESSAGE_DUMP
1668 const char *message_name() const override { return "button_command_request"; }
1669#endif
1670#ifdef HAS_PROTO_MESSAGE_DUMP
1671 void dump_to(std::string &out) const override;
1672#endif
1673
1674 protected:
1675 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1676 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1677};
1678#endif
1679#ifdef USE_MEDIA_PLAYER
1681 public:
1683 void set_format(const StringRef &ref) { this->format_ref_ = ref; }
1684 uint32_t sample_rate{0};
1685 uint32_t num_channels{0};
1687 uint32_t sample_bytes{0};
1688 void encode(ProtoWriteBuffer buffer) const override;
1689 void calculate_size(ProtoSize &size) const override;
1690#ifdef HAS_PROTO_MESSAGE_DUMP
1691 void dump_to(std::string &out) const override;
1692#endif
1693
1694 protected:
1695};
1697 public:
1698 static constexpr uint8_t MESSAGE_TYPE = 63;
1699 static constexpr uint8_t ESTIMATED_SIZE = 80;
1700#ifdef HAS_PROTO_MESSAGE_DUMP
1701 const char *message_name() const override { return "list_entities_media_player_response"; }
1702#endif
1703 bool supports_pause{false};
1704 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1705 uint32_t feature_flags{0};
1706 void encode(ProtoWriteBuffer buffer) const override;
1707 void calculate_size(ProtoSize &size) const override;
1708#ifdef HAS_PROTO_MESSAGE_DUMP
1709 void dump_to(std::string &out) const override;
1710#endif
1711
1712 protected:
1713};
1715 public:
1716 static constexpr uint8_t MESSAGE_TYPE = 64;
1717 static constexpr uint8_t ESTIMATED_SIZE = 18;
1718#ifdef HAS_PROTO_MESSAGE_DUMP
1719 const char *message_name() const override { return "media_player_state_response"; }
1720#endif
1722 float volume{0.0f};
1723 bool muted{false};
1724 void encode(ProtoWriteBuffer buffer) const override;
1725 void calculate_size(ProtoSize &size) const override;
1726#ifdef HAS_PROTO_MESSAGE_DUMP
1727 void dump_to(std::string &out) const override;
1728#endif
1729
1730 protected:
1731};
1733 public:
1734 static constexpr uint8_t MESSAGE_TYPE = 65;
1735 static constexpr uint8_t ESTIMATED_SIZE = 35;
1736#ifdef HAS_PROTO_MESSAGE_DUMP
1737 const char *message_name() const override { return "media_player_command_request"; }
1738#endif
1739 bool has_command{false};
1741 bool has_volume{false};
1742 float volume{0.0f};
1743 bool has_media_url{false};
1744 std::string media_url{};
1745 bool has_announcement{false};
1746 bool announcement{false};
1747#ifdef HAS_PROTO_MESSAGE_DUMP
1748 void dump_to(std::string &out) const override;
1749#endif
1750
1751 protected:
1752 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1753 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1754 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1755};
1756#endif
1757#ifdef USE_BLUETOOTH_PROXY
1759 public:
1760 static constexpr uint8_t MESSAGE_TYPE = 66;
1761 static constexpr uint8_t ESTIMATED_SIZE = 4;
1762#ifdef HAS_PROTO_MESSAGE_DUMP
1763 const char *message_name() const override { return "subscribe_bluetooth_le_advertisements_request"; }
1764#endif
1765 uint32_t flags{0};
1766#ifdef HAS_PROTO_MESSAGE_DUMP
1767 void dump_to(std::string &out) const override;
1768#endif
1769
1770 protected:
1771 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1772};
1774 public:
1775 uint64_t address{0};
1776 int32_t rssi{0};
1777 uint32_t address_type{0};
1778 uint8_t data[62]{};
1779 uint8_t data_len{0};
1780 void encode(ProtoWriteBuffer buffer) const override;
1781 void calculate_size(ProtoSize &size) const override;
1782#ifdef HAS_PROTO_MESSAGE_DUMP
1783 void dump_to(std::string &out) const override;
1784#endif
1785
1786 protected:
1787};
1789 public:
1790 static constexpr uint8_t MESSAGE_TYPE = 93;
1791 static constexpr uint8_t ESTIMATED_SIZE = 136;
1792#ifdef HAS_PROTO_MESSAGE_DUMP
1793 const char *message_name() const override { return "bluetooth_le_raw_advertisements_response"; }
1794#endif
1795 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
1797 void encode(ProtoWriteBuffer buffer) const override;
1798 void calculate_size(ProtoSize &size) const override;
1799#ifdef HAS_PROTO_MESSAGE_DUMP
1800 void dump_to(std::string &out) const override;
1801#endif
1802
1803 protected:
1804};
1806 public:
1807 static constexpr uint8_t MESSAGE_TYPE = 68;
1808 static constexpr uint8_t ESTIMATED_SIZE = 12;
1809#ifdef HAS_PROTO_MESSAGE_DUMP
1810 const char *message_name() const override { return "bluetooth_device_request"; }
1811#endif
1812 uint64_t address{0};
1814 bool has_address_type{false};
1815 uint32_t address_type{0};
1816#ifdef HAS_PROTO_MESSAGE_DUMP
1817 void dump_to(std::string &out) const override;
1818#endif
1819
1820 protected:
1821 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1822};
1824 public:
1825 static constexpr uint8_t MESSAGE_TYPE = 69;
1826 static constexpr uint8_t ESTIMATED_SIZE = 14;
1827#ifdef HAS_PROTO_MESSAGE_DUMP
1828 const char *message_name() const override { return "bluetooth_device_connection_response"; }
1829#endif
1830 uint64_t address{0};
1831 bool connected{false};
1832 uint32_t mtu{0};
1833 int32_t error{0};
1834 void encode(ProtoWriteBuffer buffer) const override;
1835 void calculate_size(ProtoSize &size) const override;
1836#ifdef HAS_PROTO_MESSAGE_DUMP
1837 void dump_to(std::string &out) const override;
1838#endif
1839
1840 protected:
1841};
1843 public:
1844 static constexpr uint8_t MESSAGE_TYPE = 70;
1845 static constexpr uint8_t ESTIMATED_SIZE = 4;
1846#ifdef HAS_PROTO_MESSAGE_DUMP
1847 const char *message_name() const override { return "bluetooth_gatt_get_services_request"; }
1848#endif
1849 uint64_t address{0};
1850#ifdef HAS_PROTO_MESSAGE_DUMP
1851 void dump_to(std::string &out) const override;
1852#endif
1853
1854 protected:
1855 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1856};
1858 public:
1859 std::array<uint64_t, 2> uuid{};
1860 uint32_t handle{0};
1861 uint32_t short_uuid{0};
1862 void encode(ProtoWriteBuffer buffer) const override;
1863 void calculate_size(ProtoSize &size) const override;
1864#ifdef HAS_PROTO_MESSAGE_DUMP
1865 void dump_to(std::string &out) const override;
1866#endif
1867
1868 protected:
1869};
1871 public:
1872 std::array<uint64_t, 2> uuid{};
1873 uint32_t handle{0};
1874 uint32_t properties{0};
1875 std::vector<BluetoothGATTDescriptor> descriptors{};
1876 uint32_t short_uuid{0};
1877 void encode(ProtoWriteBuffer buffer) const override;
1878 void calculate_size(ProtoSize &size) const override;
1879#ifdef HAS_PROTO_MESSAGE_DUMP
1880 void dump_to(std::string &out) const override;
1881#endif
1882
1883 protected:
1884};
1886 public:
1887 std::array<uint64_t, 2> uuid{};
1888 uint32_t handle{0};
1889 std::vector<BluetoothGATTCharacteristic> characteristics{};
1890 uint32_t short_uuid{0};
1891 void encode(ProtoWriteBuffer buffer) const override;
1892 void calculate_size(ProtoSize &size) const override;
1893#ifdef HAS_PROTO_MESSAGE_DUMP
1894 void dump_to(std::string &out) const override;
1895#endif
1896
1897 protected:
1898};
1900 public:
1901 static constexpr uint8_t MESSAGE_TYPE = 71;
1902 static constexpr uint8_t ESTIMATED_SIZE = 38;
1903#ifdef HAS_PROTO_MESSAGE_DUMP
1904 const char *message_name() const override { return "bluetooth_gatt_get_services_response"; }
1905#endif
1906 uint64_t address{0};
1907 std::vector<BluetoothGATTService> services{};
1908 void encode(ProtoWriteBuffer buffer) const override;
1909 void calculate_size(ProtoSize &size) const override;
1910#ifdef HAS_PROTO_MESSAGE_DUMP
1911 void dump_to(std::string &out) const override;
1912#endif
1913
1914 protected:
1915};
1917 public:
1918 static constexpr uint8_t MESSAGE_TYPE = 72;
1919 static constexpr uint8_t ESTIMATED_SIZE = 4;
1920#ifdef HAS_PROTO_MESSAGE_DUMP
1921 const char *message_name() const override { return "bluetooth_gatt_get_services_done_response"; }
1922#endif
1923 uint64_t address{0};
1924 void encode(ProtoWriteBuffer buffer) const override;
1925 void calculate_size(ProtoSize &size) const override;
1926#ifdef HAS_PROTO_MESSAGE_DUMP
1927 void dump_to(std::string &out) const override;
1928#endif
1929
1930 protected:
1931};
1933 public:
1934 static constexpr uint8_t MESSAGE_TYPE = 73;
1935 static constexpr uint8_t ESTIMATED_SIZE = 8;
1936#ifdef HAS_PROTO_MESSAGE_DUMP
1937 const char *message_name() const override { return "bluetooth_gatt_read_request"; }
1938#endif
1939 uint64_t address{0};
1940 uint32_t handle{0};
1941#ifdef HAS_PROTO_MESSAGE_DUMP
1942 void dump_to(std::string &out) const override;
1943#endif
1944
1945 protected:
1946 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1947};
1949 public:
1950 static constexpr uint8_t MESSAGE_TYPE = 74;
1951 static constexpr uint8_t ESTIMATED_SIZE = 17;
1952#ifdef HAS_PROTO_MESSAGE_DUMP
1953 const char *message_name() const override { return "bluetooth_gatt_read_response"; }
1954#endif
1955 uint64_t address{0};
1956 uint32_t handle{0};
1957 const uint8_t *data_ptr_{nullptr};
1958 size_t data_len_{0};
1959 void set_data(const uint8_t *data, size_t len) {
1960 this->data_ptr_ = data;
1961 this->data_len_ = len;
1962 }
1963 void encode(ProtoWriteBuffer buffer) const override;
1964 void calculate_size(ProtoSize &size) const override;
1965#ifdef HAS_PROTO_MESSAGE_DUMP
1966 void dump_to(std::string &out) const override;
1967#endif
1968
1969 protected:
1970};
1972 public:
1973 static constexpr uint8_t MESSAGE_TYPE = 75;
1974 static constexpr uint8_t ESTIMATED_SIZE = 19;
1975#ifdef HAS_PROTO_MESSAGE_DUMP
1976 const char *message_name() const override { return "bluetooth_gatt_write_request"; }
1977#endif
1978 uint64_t address{0};
1979 uint32_t handle{0};
1980 bool response{false};
1981 std::string data{};
1982#ifdef HAS_PROTO_MESSAGE_DUMP
1983 void dump_to(std::string &out) const override;
1984#endif
1985
1986 protected:
1987 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1988 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1989};
1991 public:
1992 static constexpr uint8_t MESSAGE_TYPE = 76;
1993 static constexpr uint8_t ESTIMATED_SIZE = 8;
1994#ifdef HAS_PROTO_MESSAGE_DUMP
1995 const char *message_name() const override { return "bluetooth_gatt_read_descriptor_request"; }
1996#endif
1997 uint64_t address{0};
1998 uint32_t handle{0};
1999#ifdef HAS_PROTO_MESSAGE_DUMP
2000 void dump_to(std::string &out) const override;
2001#endif
2002
2003 protected:
2004 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2005};
2007 public:
2008 static constexpr uint8_t MESSAGE_TYPE = 77;
2009 static constexpr uint8_t ESTIMATED_SIZE = 17;
2010#ifdef HAS_PROTO_MESSAGE_DUMP
2011 const char *message_name() const override { return "bluetooth_gatt_write_descriptor_request"; }
2012#endif
2013 uint64_t address{0};
2014 uint32_t handle{0};
2015 std::string data{};
2016#ifdef HAS_PROTO_MESSAGE_DUMP
2017 void dump_to(std::string &out) const override;
2018#endif
2019
2020 protected:
2021 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2022 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2023};
2025 public:
2026 static constexpr uint8_t MESSAGE_TYPE = 78;
2027 static constexpr uint8_t ESTIMATED_SIZE = 10;
2028#ifdef HAS_PROTO_MESSAGE_DUMP
2029 const char *message_name() const override { return "bluetooth_gatt_notify_request"; }
2030#endif
2031 uint64_t address{0};
2032 uint32_t handle{0};
2033 bool enable{false};
2034#ifdef HAS_PROTO_MESSAGE_DUMP
2035 void dump_to(std::string &out) const override;
2036#endif
2037
2038 protected:
2039 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2040};
2042 public:
2043 static constexpr uint8_t MESSAGE_TYPE = 79;
2044 static constexpr uint8_t ESTIMATED_SIZE = 17;
2045#ifdef HAS_PROTO_MESSAGE_DUMP
2046 const char *message_name() const override { return "bluetooth_gatt_notify_data_response"; }
2047#endif
2048 uint64_t address{0};
2049 uint32_t handle{0};
2050 const uint8_t *data_ptr_{nullptr};
2051 size_t data_len_{0};
2052 void set_data(const uint8_t *data, size_t len) {
2053 this->data_ptr_ = data;
2054 this->data_len_ = len;
2055 }
2056 void encode(ProtoWriteBuffer buffer) const override;
2057 void calculate_size(ProtoSize &size) const override;
2058#ifdef HAS_PROTO_MESSAGE_DUMP
2059 void dump_to(std::string &out) const override;
2060#endif
2061
2062 protected:
2063};
2065 public:
2066 static constexpr uint8_t MESSAGE_TYPE = 80;
2067 static constexpr uint8_t ESTIMATED_SIZE = 0;
2068#ifdef HAS_PROTO_MESSAGE_DUMP
2069 const char *message_name() const override { return "subscribe_bluetooth_connections_free_request"; }
2070#endif
2071#ifdef HAS_PROTO_MESSAGE_DUMP
2072 void dump_to(std::string &out) const override;
2073#endif
2074
2075 protected:
2076};
2078 public:
2079 static constexpr uint8_t MESSAGE_TYPE = 81;
2080 static constexpr uint8_t ESTIMATED_SIZE = 20;
2081#ifdef HAS_PROTO_MESSAGE_DUMP
2082 const char *message_name() const override { return "bluetooth_connections_free_response"; }
2083#endif
2084 uint32_t free{0};
2085 uint32_t limit{0};
2086 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2087 void encode(ProtoWriteBuffer buffer) const override;
2088 void calculate_size(ProtoSize &size) const override;
2089#ifdef HAS_PROTO_MESSAGE_DUMP
2090 void dump_to(std::string &out) const override;
2091#endif
2092
2093 protected:
2094};
2096 public:
2097 static constexpr uint8_t MESSAGE_TYPE = 82;
2098 static constexpr uint8_t ESTIMATED_SIZE = 12;
2099#ifdef HAS_PROTO_MESSAGE_DUMP
2100 const char *message_name() const override { return "bluetooth_gatt_error_response"; }
2101#endif
2102 uint64_t address{0};
2103 uint32_t handle{0};
2104 int32_t error{0};
2105 void encode(ProtoWriteBuffer buffer) const override;
2106 void calculate_size(ProtoSize &size) const override;
2107#ifdef HAS_PROTO_MESSAGE_DUMP
2108 void dump_to(std::string &out) const override;
2109#endif
2110
2111 protected:
2112};
2114 public:
2115 static constexpr uint8_t MESSAGE_TYPE = 83;
2116 static constexpr uint8_t ESTIMATED_SIZE = 8;
2117#ifdef HAS_PROTO_MESSAGE_DUMP
2118 const char *message_name() const override { return "bluetooth_gatt_write_response"; }
2119#endif
2120 uint64_t address{0};
2121 uint32_t handle{0};
2122 void encode(ProtoWriteBuffer buffer) const override;
2123 void calculate_size(ProtoSize &size) const override;
2124#ifdef HAS_PROTO_MESSAGE_DUMP
2125 void dump_to(std::string &out) const override;
2126#endif
2127
2128 protected:
2129};
2131 public:
2132 static constexpr uint8_t MESSAGE_TYPE = 84;
2133 static constexpr uint8_t ESTIMATED_SIZE = 8;
2134#ifdef HAS_PROTO_MESSAGE_DUMP
2135 const char *message_name() const override { return "bluetooth_gatt_notify_response"; }
2136#endif
2137 uint64_t address{0};
2138 uint32_t handle{0};
2139 void encode(ProtoWriteBuffer buffer) const override;
2140 void calculate_size(ProtoSize &size) const override;
2141#ifdef HAS_PROTO_MESSAGE_DUMP
2142 void dump_to(std::string &out) const override;
2143#endif
2144
2145 protected:
2146};
2148 public:
2149 static constexpr uint8_t MESSAGE_TYPE = 85;
2150 static constexpr uint8_t ESTIMATED_SIZE = 10;
2151#ifdef HAS_PROTO_MESSAGE_DUMP
2152 const char *message_name() const override { return "bluetooth_device_pairing_response"; }
2153#endif
2154 uint64_t address{0};
2155 bool paired{false};
2156 int32_t error{0};
2157 void encode(ProtoWriteBuffer buffer) const override;
2158 void calculate_size(ProtoSize &size) const override;
2159#ifdef HAS_PROTO_MESSAGE_DUMP
2160 void dump_to(std::string &out) const override;
2161#endif
2162
2163 protected:
2164};
2166 public:
2167 static constexpr uint8_t MESSAGE_TYPE = 86;
2168 static constexpr uint8_t ESTIMATED_SIZE = 10;
2169#ifdef HAS_PROTO_MESSAGE_DUMP
2170 const char *message_name() const override { return "bluetooth_device_unpairing_response"; }
2171#endif
2172 uint64_t address{0};
2173 bool success{false};
2174 int32_t error{0};
2175 void encode(ProtoWriteBuffer buffer) const override;
2176 void calculate_size(ProtoSize &size) const override;
2177#ifdef HAS_PROTO_MESSAGE_DUMP
2178 void dump_to(std::string &out) const override;
2179#endif
2180
2181 protected:
2182};
2184 public:
2185 static constexpr uint8_t MESSAGE_TYPE = 87;
2186 static constexpr uint8_t ESTIMATED_SIZE = 0;
2187#ifdef HAS_PROTO_MESSAGE_DUMP
2188 const char *message_name() const override { return "unsubscribe_bluetooth_le_advertisements_request"; }
2189#endif
2190#ifdef HAS_PROTO_MESSAGE_DUMP
2191 void dump_to(std::string &out) const override;
2192#endif
2193
2194 protected:
2195};
2197 public:
2198 static constexpr uint8_t MESSAGE_TYPE = 88;
2199 static constexpr uint8_t ESTIMATED_SIZE = 10;
2200#ifdef HAS_PROTO_MESSAGE_DUMP
2201 const char *message_name() const override { return "bluetooth_device_clear_cache_response"; }
2202#endif
2203 uint64_t address{0};
2204 bool success{false};
2205 int32_t error{0};
2206 void encode(ProtoWriteBuffer buffer) const override;
2207 void calculate_size(ProtoSize &size) const override;
2208#ifdef HAS_PROTO_MESSAGE_DUMP
2209 void dump_to(std::string &out) const override;
2210#endif
2211
2212 protected:
2213};
2215 public:
2216 static constexpr uint8_t MESSAGE_TYPE = 126;
2217 static constexpr uint8_t ESTIMATED_SIZE = 4;
2218#ifdef HAS_PROTO_MESSAGE_DUMP
2219 const char *message_name() const override { return "bluetooth_scanner_state_response"; }
2220#endif
2223 void encode(ProtoWriteBuffer buffer) const override;
2224 void calculate_size(ProtoSize &size) const override;
2225#ifdef HAS_PROTO_MESSAGE_DUMP
2226 void dump_to(std::string &out) const override;
2227#endif
2228
2229 protected:
2230};
2232 public:
2233 static constexpr uint8_t MESSAGE_TYPE = 127;
2234 static constexpr uint8_t ESTIMATED_SIZE = 2;
2235#ifdef HAS_PROTO_MESSAGE_DUMP
2236 const char *message_name() const override { return "bluetooth_scanner_set_mode_request"; }
2237#endif
2239#ifdef HAS_PROTO_MESSAGE_DUMP
2240 void dump_to(std::string &out) const override;
2241#endif
2242
2243 protected:
2244 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2245};
2246#endif
2247#ifdef USE_VOICE_ASSISTANT
2249 public:
2250 static constexpr uint8_t MESSAGE_TYPE = 89;
2251 static constexpr uint8_t ESTIMATED_SIZE = 6;
2252#ifdef HAS_PROTO_MESSAGE_DUMP
2253 const char *message_name() const override { return "subscribe_voice_assistant_request"; }
2254#endif
2255 bool subscribe{false};
2256 uint32_t flags{0};
2257#ifdef HAS_PROTO_MESSAGE_DUMP
2258 void dump_to(std::string &out) const override;
2259#endif
2260
2261 protected:
2262 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2263};
2265 public:
2267 uint32_t auto_gain{0};
2269 void encode(ProtoWriteBuffer buffer) const override;
2270 void calculate_size(ProtoSize &size) const override;
2271#ifdef HAS_PROTO_MESSAGE_DUMP
2272 void dump_to(std::string &out) const override;
2273#endif
2274
2275 protected:
2276};
2278 public:
2279 static constexpr uint8_t MESSAGE_TYPE = 90;
2280 static constexpr uint8_t ESTIMATED_SIZE = 41;
2281#ifdef HAS_PROTO_MESSAGE_DUMP
2282 const char *message_name() const override { return "voice_assistant_request"; }
2283#endif
2284 bool start{false};
2286 void set_conversation_id(const StringRef &ref) { this->conversation_id_ref_ = ref; }
2287 uint32_t flags{0};
2290 void set_wake_word_phrase(const StringRef &ref) { this->wake_word_phrase_ref_ = ref; }
2291 void encode(ProtoWriteBuffer buffer) const override;
2292 void calculate_size(ProtoSize &size) const override;
2293#ifdef HAS_PROTO_MESSAGE_DUMP
2294 void dump_to(std::string &out) const override;
2295#endif
2296
2297 protected:
2298};
2300 public:
2301 static constexpr uint8_t MESSAGE_TYPE = 91;
2302 static constexpr uint8_t ESTIMATED_SIZE = 6;
2303#ifdef HAS_PROTO_MESSAGE_DUMP
2304 const char *message_name() const override { return "voice_assistant_response"; }
2305#endif
2306 uint32_t port{0};
2307 bool error{false};
2308#ifdef HAS_PROTO_MESSAGE_DUMP
2309 void dump_to(std::string &out) const override;
2310#endif
2311
2312 protected:
2313 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2314};
2316 public:
2317 std::string name{};
2318 std::string value{};
2319#ifdef HAS_PROTO_MESSAGE_DUMP
2320 void dump_to(std::string &out) const override;
2321#endif
2322
2323 protected:
2324 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2325};
2327 public:
2328 static constexpr uint8_t MESSAGE_TYPE = 92;
2329 static constexpr uint8_t ESTIMATED_SIZE = 36;
2330#ifdef HAS_PROTO_MESSAGE_DUMP
2331 const char *message_name() const override { return "voice_assistant_event_response"; }
2332#endif
2334 std::vector<VoiceAssistantEventData> data{};
2335#ifdef HAS_PROTO_MESSAGE_DUMP
2336 void dump_to(std::string &out) const override;
2337#endif
2338
2339 protected:
2340 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2341 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2342};
2344 public:
2345 static constexpr uint8_t MESSAGE_TYPE = 106;
2346 static constexpr uint8_t ESTIMATED_SIZE = 11;
2347#ifdef HAS_PROTO_MESSAGE_DUMP
2348 const char *message_name() const override { return "voice_assistant_audio"; }
2349#endif
2350 std::string data{};
2351 const uint8_t *data_ptr_{nullptr};
2352 size_t data_len_{0};
2353 void set_data(const uint8_t *data, size_t len) {
2354 this->data_ptr_ = data;
2355 this->data_len_ = len;
2356 }
2357 bool end{false};
2358 void encode(ProtoWriteBuffer buffer) const override;
2359 void calculate_size(ProtoSize &size) const override;
2360#ifdef HAS_PROTO_MESSAGE_DUMP
2361 void dump_to(std::string &out) const override;
2362#endif
2363
2364 protected:
2365 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2366 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2367};
2369 public:
2370 static constexpr uint8_t MESSAGE_TYPE = 115;
2371 static constexpr uint8_t ESTIMATED_SIZE = 30;
2372#ifdef HAS_PROTO_MESSAGE_DUMP
2373 const char *message_name() const override { return "voice_assistant_timer_event_response"; }
2374#endif
2376 std::string timer_id{};
2377 std::string name{};
2378 uint32_t total_seconds{0};
2379 uint32_t seconds_left{0};
2380 bool is_active{false};
2381#ifdef HAS_PROTO_MESSAGE_DUMP
2382 void dump_to(std::string &out) const override;
2383#endif
2384
2385 protected:
2386 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2387 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2388};
2390 public:
2391 static constexpr uint8_t MESSAGE_TYPE = 119;
2392 static constexpr uint8_t ESTIMATED_SIZE = 29;
2393#ifdef HAS_PROTO_MESSAGE_DUMP
2394 const char *message_name() const override { return "voice_assistant_announce_request"; }
2395#endif
2396 std::string media_id{};
2397 std::string text{};
2400#ifdef HAS_PROTO_MESSAGE_DUMP
2401 void dump_to(std::string &out) const override;
2402#endif
2403
2404 protected:
2405 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2406 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2407};
2409 public:
2410 static constexpr uint8_t MESSAGE_TYPE = 120;
2411 static constexpr uint8_t ESTIMATED_SIZE = 2;
2412#ifdef HAS_PROTO_MESSAGE_DUMP
2413 const char *message_name() const override { return "voice_assistant_announce_finished"; }
2414#endif
2415 bool success{false};
2416 void encode(ProtoWriteBuffer buffer) const override;
2417 void calculate_size(ProtoSize &size) const override;
2418#ifdef HAS_PROTO_MESSAGE_DUMP
2419 void dump_to(std::string &out) const override;
2420#endif
2421
2422 protected:
2423};
2425 public:
2427 void set_id(const StringRef &ref) { this->id_ref_ = ref; }
2429 void set_wake_word(const StringRef &ref) { this->wake_word_ref_ = ref; }
2430 std::vector<std::string> trained_languages{};
2431 void encode(ProtoWriteBuffer buffer) const override;
2432 void calculate_size(ProtoSize &size) const override;
2433#ifdef HAS_PROTO_MESSAGE_DUMP
2434 void dump_to(std::string &out) const override;
2435#endif
2436
2437 protected:
2438};
2440 public:
2441 static constexpr uint8_t MESSAGE_TYPE = 121;
2442 static constexpr uint8_t ESTIMATED_SIZE = 0;
2443#ifdef HAS_PROTO_MESSAGE_DUMP
2444 const char *message_name() const override { return "voice_assistant_configuration_request"; }
2445#endif
2446#ifdef HAS_PROTO_MESSAGE_DUMP
2447 void dump_to(std::string &out) const override;
2448#endif
2449
2450 protected:
2451};
2453 public:
2454 static constexpr uint8_t MESSAGE_TYPE = 122;
2455 static constexpr uint8_t ESTIMATED_SIZE = 56;
2456#ifdef HAS_PROTO_MESSAGE_DUMP
2457 const char *message_name() const override { return "voice_assistant_configuration_response"; }
2458#endif
2459 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2460 const std::vector<std::string> *active_wake_words{};
2462 void encode(ProtoWriteBuffer buffer) const override;
2463 void calculate_size(ProtoSize &size) const override;
2464#ifdef HAS_PROTO_MESSAGE_DUMP
2465 void dump_to(std::string &out) const override;
2466#endif
2467
2468 protected:
2469};
2471 public:
2472 static constexpr uint8_t MESSAGE_TYPE = 123;
2473 static constexpr uint8_t ESTIMATED_SIZE = 18;
2474#ifdef HAS_PROTO_MESSAGE_DUMP
2475 const char *message_name() const override { return "voice_assistant_set_configuration"; }
2476#endif
2477 std::vector<std::string> active_wake_words{};
2478#ifdef HAS_PROTO_MESSAGE_DUMP
2479 void dump_to(std::string &out) const override;
2480#endif
2481
2482 protected:
2483 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2484};
2485#endif
2486#ifdef USE_ALARM_CONTROL_PANEL
2488 public:
2489 static constexpr uint8_t MESSAGE_TYPE = 94;
2490 static constexpr uint8_t ESTIMATED_SIZE = 48;
2491#ifdef HAS_PROTO_MESSAGE_DUMP
2492 const char *message_name() const override { return "list_entities_alarm_control_panel_response"; }
2493#endif
2495 bool requires_code{false};
2497 void encode(ProtoWriteBuffer buffer) const override;
2498 void calculate_size(ProtoSize &size) const override;
2499#ifdef HAS_PROTO_MESSAGE_DUMP
2500 void dump_to(std::string &out) const override;
2501#endif
2502
2503 protected:
2504};
2506 public:
2507 static constexpr uint8_t MESSAGE_TYPE = 95;
2508 static constexpr uint8_t ESTIMATED_SIZE = 11;
2509#ifdef HAS_PROTO_MESSAGE_DUMP
2510 const char *message_name() const override { return "alarm_control_panel_state_response"; }
2511#endif
2513 void encode(ProtoWriteBuffer buffer) const override;
2514 void calculate_size(ProtoSize &size) const override;
2515#ifdef HAS_PROTO_MESSAGE_DUMP
2516 void dump_to(std::string &out) const override;
2517#endif
2518
2519 protected:
2520};
2522 public:
2523 static constexpr uint8_t MESSAGE_TYPE = 96;
2524 static constexpr uint8_t ESTIMATED_SIZE = 20;
2525#ifdef HAS_PROTO_MESSAGE_DUMP
2526 const char *message_name() const override { return "alarm_control_panel_command_request"; }
2527#endif
2529 std::string code{};
2530#ifdef HAS_PROTO_MESSAGE_DUMP
2531 void dump_to(std::string &out) const override;
2532#endif
2533
2534 protected:
2535 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2536 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2537 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2538};
2539#endif
2540#ifdef USE_TEXT
2542 public:
2543 static constexpr uint8_t MESSAGE_TYPE = 97;
2544 static constexpr uint8_t ESTIMATED_SIZE = 59;
2545#ifdef HAS_PROTO_MESSAGE_DUMP
2546 const char *message_name() const override { return "list_entities_text_response"; }
2547#endif
2548 uint32_t min_length{0};
2549 uint32_t max_length{0};
2551 void set_pattern(const StringRef &ref) { this->pattern_ref_ = ref; }
2553 void encode(ProtoWriteBuffer buffer) const override;
2554 void calculate_size(ProtoSize &size) const override;
2555#ifdef HAS_PROTO_MESSAGE_DUMP
2556 void dump_to(std::string &out) const override;
2557#endif
2558
2559 protected:
2560};
2562 public:
2563 static constexpr uint8_t MESSAGE_TYPE = 98;
2564 static constexpr uint8_t ESTIMATED_SIZE = 20;
2565#ifdef HAS_PROTO_MESSAGE_DUMP
2566 const char *message_name() const override { return "text_state_response"; }
2567#endif
2569 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
2570 bool missing_state{false};
2571 void encode(ProtoWriteBuffer buffer) const override;
2572 void calculate_size(ProtoSize &size) const override;
2573#ifdef HAS_PROTO_MESSAGE_DUMP
2574 void dump_to(std::string &out) const override;
2575#endif
2576
2577 protected:
2578};
2580 public:
2581 static constexpr uint8_t MESSAGE_TYPE = 99;
2582 static constexpr uint8_t ESTIMATED_SIZE = 18;
2583#ifdef HAS_PROTO_MESSAGE_DUMP
2584 const char *message_name() const override { return "text_command_request"; }
2585#endif
2586 std::string state{};
2587#ifdef HAS_PROTO_MESSAGE_DUMP
2588 void dump_to(std::string &out) const override;
2589#endif
2590
2591 protected:
2592 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2593 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2594 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2595};
2596#endif
2597#ifdef USE_DATETIME_DATE
2599 public:
2600 static constexpr uint8_t MESSAGE_TYPE = 100;
2601 static constexpr uint8_t ESTIMATED_SIZE = 40;
2602#ifdef HAS_PROTO_MESSAGE_DUMP
2603 const char *message_name() const override { return "list_entities_date_response"; }
2604#endif
2605 void encode(ProtoWriteBuffer buffer) const override;
2606 void calculate_size(ProtoSize &size) const override;
2607#ifdef HAS_PROTO_MESSAGE_DUMP
2608 void dump_to(std::string &out) const override;
2609#endif
2610
2611 protected:
2612};
2614 public:
2615 static constexpr uint8_t MESSAGE_TYPE = 101;
2616 static constexpr uint8_t ESTIMATED_SIZE = 23;
2617#ifdef HAS_PROTO_MESSAGE_DUMP
2618 const char *message_name() const override { return "date_state_response"; }
2619#endif
2620 bool missing_state{false};
2621 uint32_t year{0};
2622 uint32_t month{0};
2623 uint32_t day{0};
2624 void encode(ProtoWriteBuffer buffer) const override;
2625 void calculate_size(ProtoSize &size) const override;
2626#ifdef HAS_PROTO_MESSAGE_DUMP
2627 void dump_to(std::string &out) const override;
2628#endif
2629
2630 protected:
2631};
2633 public:
2634 static constexpr uint8_t MESSAGE_TYPE = 102;
2635 static constexpr uint8_t ESTIMATED_SIZE = 21;
2636#ifdef HAS_PROTO_MESSAGE_DUMP
2637 const char *message_name() const override { return "date_command_request"; }
2638#endif
2639 uint32_t year{0};
2640 uint32_t month{0};
2641 uint32_t day{0};
2642#ifdef HAS_PROTO_MESSAGE_DUMP
2643 void dump_to(std::string &out) const override;
2644#endif
2645
2646 protected:
2647 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2648 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2649};
2650#endif
2651#ifdef USE_DATETIME_TIME
2653 public:
2654 static constexpr uint8_t MESSAGE_TYPE = 103;
2655 static constexpr uint8_t ESTIMATED_SIZE = 40;
2656#ifdef HAS_PROTO_MESSAGE_DUMP
2657 const char *message_name() const override { return "list_entities_time_response"; }
2658#endif
2659 void encode(ProtoWriteBuffer buffer) const override;
2660 void calculate_size(ProtoSize &size) const override;
2661#ifdef HAS_PROTO_MESSAGE_DUMP
2662 void dump_to(std::string &out) const override;
2663#endif
2664
2665 protected:
2666};
2668 public:
2669 static constexpr uint8_t MESSAGE_TYPE = 104;
2670 static constexpr uint8_t ESTIMATED_SIZE = 23;
2671#ifdef HAS_PROTO_MESSAGE_DUMP
2672 const char *message_name() const override { return "time_state_response"; }
2673#endif
2674 bool missing_state{false};
2675 uint32_t hour{0};
2676 uint32_t minute{0};
2677 uint32_t second{0};
2678 void encode(ProtoWriteBuffer buffer) const override;
2679 void calculate_size(ProtoSize &size) const override;
2680#ifdef HAS_PROTO_MESSAGE_DUMP
2681 void dump_to(std::string &out) const override;
2682#endif
2683
2684 protected:
2685};
2687 public:
2688 static constexpr uint8_t MESSAGE_TYPE = 105;
2689 static constexpr uint8_t ESTIMATED_SIZE = 21;
2690#ifdef HAS_PROTO_MESSAGE_DUMP
2691 const char *message_name() const override { return "time_command_request"; }
2692#endif
2693 uint32_t hour{0};
2694 uint32_t minute{0};
2695 uint32_t second{0};
2696#ifdef HAS_PROTO_MESSAGE_DUMP
2697 void dump_to(std::string &out) const override;
2698#endif
2699
2700 protected:
2701 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2702 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2703};
2704#endif
2705#ifdef USE_EVENT
2707 public:
2708 static constexpr uint8_t MESSAGE_TYPE = 107;
2709 static constexpr uint8_t ESTIMATED_SIZE = 67;
2710#ifdef HAS_PROTO_MESSAGE_DUMP
2711 const char *message_name() const override { return "list_entities_event_response"; }
2712#endif
2714 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2715 std::vector<std::string> event_types{};
2716 void encode(ProtoWriteBuffer buffer) const override;
2717 void calculate_size(ProtoSize &size) const override;
2718#ifdef HAS_PROTO_MESSAGE_DUMP
2719 void dump_to(std::string &out) const override;
2720#endif
2721
2722 protected:
2723};
2725 public:
2726 static constexpr uint8_t MESSAGE_TYPE = 108;
2727 static constexpr uint8_t ESTIMATED_SIZE = 18;
2728#ifdef HAS_PROTO_MESSAGE_DUMP
2729 const char *message_name() const override { return "event_response"; }
2730#endif
2732 void set_event_type(const StringRef &ref) { this->event_type_ref_ = ref; }
2733 void encode(ProtoWriteBuffer buffer) const override;
2734 void calculate_size(ProtoSize &size) const override;
2735#ifdef HAS_PROTO_MESSAGE_DUMP
2736 void dump_to(std::string &out) const override;
2737#endif
2738
2739 protected:
2740};
2741#endif
2742#ifdef USE_VALVE
2744 public:
2745 static constexpr uint8_t MESSAGE_TYPE = 109;
2746 static constexpr uint8_t ESTIMATED_SIZE = 55;
2747#ifdef HAS_PROTO_MESSAGE_DUMP
2748 const char *message_name() const override { return "list_entities_valve_response"; }
2749#endif
2751 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2752 bool assumed_state{false};
2754 bool supports_stop{false};
2755 void encode(ProtoWriteBuffer buffer) const override;
2756 void calculate_size(ProtoSize &size) const override;
2757#ifdef HAS_PROTO_MESSAGE_DUMP
2758 void dump_to(std::string &out) const override;
2759#endif
2760
2761 protected:
2762};
2764 public:
2765 static constexpr uint8_t MESSAGE_TYPE = 110;
2766 static constexpr uint8_t ESTIMATED_SIZE = 16;
2767#ifdef HAS_PROTO_MESSAGE_DUMP
2768 const char *message_name() const override { return "valve_state_response"; }
2769#endif
2770 float position{0.0f};
2772 void encode(ProtoWriteBuffer buffer) const override;
2773 void calculate_size(ProtoSize &size) const override;
2774#ifdef HAS_PROTO_MESSAGE_DUMP
2775 void dump_to(std::string &out) const override;
2776#endif
2777
2778 protected:
2779};
2781 public:
2782 static constexpr uint8_t MESSAGE_TYPE = 111;
2783 static constexpr uint8_t ESTIMATED_SIZE = 18;
2784#ifdef HAS_PROTO_MESSAGE_DUMP
2785 const char *message_name() const override { return "valve_command_request"; }
2786#endif
2787 bool has_position{false};
2788 float position{0.0f};
2789 bool stop{false};
2790#ifdef HAS_PROTO_MESSAGE_DUMP
2791 void dump_to(std::string &out) const override;
2792#endif
2793
2794 protected:
2795 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2796 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2797};
2798#endif
2799#ifdef USE_DATETIME_DATETIME
2801 public:
2802 static constexpr uint8_t MESSAGE_TYPE = 112;
2803 static constexpr uint8_t ESTIMATED_SIZE = 40;
2804#ifdef HAS_PROTO_MESSAGE_DUMP
2805 const char *message_name() const override { return "list_entities_date_time_response"; }
2806#endif
2807 void encode(ProtoWriteBuffer buffer) const override;
2808 void calculate_size(ProtoSize &size) const override;
2809#ifdef HAS_PROTO_MESSAGE_DUMP
2810 void dump_to(std::string &out) const override;
2811#endif
2812
2813 protected:
2814};
2816 public:
2817 static constexpr uint8_t MESSAGE_TYPE = 113;
2818 static constexpr uint8_t ESTIMATED_SIZE = 16;
2819#ifdef HAS_PROTO_MESSAGE_DUMP
2820 const char *message_name() const override { return "date_time_state_response"; }
2821#endif
2822 bool missing_state{false};
2823 uint32_t epoch_seconds{0};
2824 void encode(ProtoWriteBuffer buffer) const override;
2825 void calculate_size(ProtoSize &size) const override;
2826#ifdef HAS_PROTO_MESSAGE_DUMP
2827 void dump_to(std::string &out) const override;
2828#endif
2829
2830 protected:
2831};
2833 public:
2834 static constexpr uint8_t MESSAGE_TYPE = 114;
2835 static constexpr uint8_t ESTIMATED_SIZE = 14;
2836#ifdef HAS_PROTO_MESSAGE_DUMP
2837 const char *message_name() const override { return "date_time_command_request"; }
2838#endif
2839 uint32_t epoch_seconds{0};
2840#ifdef HAS_PROTO_MESSAGE_DUMP
2841 void dump_to(std::string &out) const override;
2842#endif
2843
2844 protected:
2845 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2846 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2847};
2848#endif
2849#ifdef USE_UPDATE
2851 public:
2852 static constexpr uint8_t MESSAGE_TYPE = 116;
2853 static constexpr uint8_t ESTIMATED_SIZE = 49;
2854#ifdef HAS_PROTO_MESSAGE_DUMP
2855 const char *message_name() const override { return "list_entities_update_response"; }
2856#endif
2858 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2859 void encode(ProtoWriteBuffer buffer) const override;
2860 void calculate_size(ProtoSize &size) const override;
2861#ifdef HAS_PROTO_MESSAGE_DUMP
2862 void dump_to(std::string &out) const override;
2863#endif
2864
2865 protected:
2866};
2868 public:
2869 static constexpr uint8_t MESSAGE_TYPE = 117;
2870 static constexpr uint8_t ESTIMATED_SIZE = 65;
2871#ifdef HAS_PROTO_MESSAGE_DUMP
2872 const char *message_name() const override { return "update_state_response"; }
2873#endif
2874 bool missing_state{false};
2875 bool in_progress{false};
2876 bool has_progress{false};
2877 float progress{0.0f};
2879 void set_current_version(const StringRef &ref) { this->current_version_ref_ = ref; }
2881 void set_latest_version(const StringRef &ref) { this->latest_version_ref_ = ref; }
2883 void set_title(const StringRef &ref) { this->title_ref_ = ref; }
2885 void set_release_summary(const StringRef &ref) { this->release_summary_ref_ = ref; }
2887 void set_release_url(const StringRef &ref) { this->release_url_ref_ = ref; }
2888 void encode(ProtoWriteBuffer buffer) const override;
2889 void calculate_size(ProtoSize &size) const override;
2890#ifdef HAS_PROTO_MESSAGE_DUMP
2891 void dump_to(std::string &out) const override;
2892#endif
2893
2894 protected:
2895};
2897 public:
2898 static constexpr uint8_t MESSAGE_TYPE = 118;
2899 static constexpr uint8_t ESTIMATED_SIZE = 11;
2900#ifdef HAS_PROTO_MESSAGE_DUMP
2901 const char *message_name() const override { return "update_command_request"; }
2902#endif
2904#ifdef HAS_PROTO_MESSAGE_DUMP
2905 void dump_to(std::string &out) const override;
2906#endif
2907
2908 protected:
2909 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2910 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2911};
2912#endif
2913
2914} // namespace esphome::api
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:2462
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2437
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2526
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2528
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2452
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2524
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2508
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2430
enums::AlarmControlPanelState state
Definition api_pb2.h:2512
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2507
const char * message_name() const override
Definition api_pb2.h:2510
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2423
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:58
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:62
void set_name(const StringRef &ref)
Definition api_pb2.h:464
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:214
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:622
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:623
const char * message_name() const override
Definition api_pb2.h:625
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:222
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2086
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2079
const char * message_name() const override
Definition api_pb2.h:2082
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2088
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2148
const char * message_name() const override
Definition api_pb2.h:2201
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2143
const char * message_name() const override
Definition api_pb2.h:1828
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1874
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1880
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:2128
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2150
const char * message_name() const override
Definition api_pb2.h:2152
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2149
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2123
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1807
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1813
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1810
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1808
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1855
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2133
const char * message_name() const override
Definition api_pb2.h:2170
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2138
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1912
std::vector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:1875
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1924
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1872
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1904
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1859
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1896
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2097
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2098
const char * message_name() const override
Definition api_pb2.h:2100
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2102
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2097
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1964
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1921
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1967
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1847
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1845
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1886
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1960
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1904
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1954
std::vector< BluetoothGATTService > services
Definition api_pb2.h:1907
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2069
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2052
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2074
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2044
const char * message_name() const override
Definition api_pb2.h:2046
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2027
const char * message_name() const override
Definition api_pb2.h:2029
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2026
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2053
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2132
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2133
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2119
const char * message_name() const override
Definition api_pb2.h:2135
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2115
const char * message_name() const override
Definition api_pb2.h:1995
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2017
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1968
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1934
const char * message_name() const override
Definition api_pb2.h:1937
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1935
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1981
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1950
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1959
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1951
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1986
const char * message_name() const override
Definition api_pb2.h:1953
std::vector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:1889
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1945
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1934
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1887
const char * message_name() const override
Definition api_pb2.h:2011
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2043
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2030
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2007
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1974
const char * message_name() const override
Definition api_pb2.h:1976
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1991
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1973
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2111
const char * message_name() const override
Definition api_pb2.h:2118
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2116
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2107
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2115
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1839
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1833
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1795
const char * message_name() const override
Definition api_pb2.h:1793
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1845
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1850
const char * message_name() const override
Definition api_pb2.h:2236
enums::BluetoothScannerMode mode
Definition api_pb2.h:2238
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2233
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2161
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2234
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2153
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2217
enums::BluetoothScannerMode mode
Definition api_pb2.h:2222
void dump_to(std::string &out) const override
enums::BluetoothScannerState state
Definition api_pb2.h:2221
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2216
const char * message_name() const override
Definition api_pb2.h:2219
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2157
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1665
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1678
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1668
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1690
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1666
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1305
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1303
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1302
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1050
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1287
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1042
const char * message_name() const override
Definition api_pb2.h:1283
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1281
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1280
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1034
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1266
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1382
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1383
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1398
const char * message_name() const override
Definition api_pb2.h:1385
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1396
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1199
enums::ClimatePreset preset
Definition api_pb2.h:1402
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1253
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1363
void dump_to(std::string &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1364
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1352
void set_custom_fan_mode(const StringRef &ref)
Definition api_pb2.h:1366
void set_custom_preset(const StringRef &ref)
Definition api_pb2.h:1369
const char * message_name() const override
Definition api_pb2.h:1355
enums::ClimateAction action
Definition api_pb2.h:1362
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1161
enums::ClimatePreset preset
Definition api_pb2.h:1367
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1180
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1353
~CommandProtoMessage() override=default
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:45
const char * message_name() const override
Definition api_pb2.h:368
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:366
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:365
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:383
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:56
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:381
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:55
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:380
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:307
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:680
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:286
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:681
const char * message_name() const override
Definition api_pb2.h:683
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:663
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:268
const char * message_name() const override
Definition api_pb2.h:665
enums::CoverOperation current_operation
Definition api_pb2.h:669
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:277
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:662
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2625
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2634
const char * message_name() const override
Definition api_pb2.h:2637
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2604
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2635
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2584
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2615
const char * message_name() const override
Definition api_pb2.h:2618
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2594
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2616
const char * message_name() const override
Definition api_pb2.h:2837
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2835
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2834
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2905
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2893
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2885
const char * message_name() const override
Definition api_pb2.h:2820
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2817
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2818
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2877
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:73
void set_name(const StringRef &ref)
Definition api_pb2.h:479
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:68
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:448
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:449
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:451
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:79
void set_friendly_name(const StringRef &ref)
Definition api_pb2.h:530
void set_model(const StringRef &ref)
Definition api_pb2.h:509
void set_project_name(const StringRef &ref)
Definition api_pb2.h:515
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:492
void set_project_version(const StringRef &ref)
Definition api_pb2.h:519
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:131
void set_esphome_version(const StringRef &ref)
Definition api_pb2.h:505
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:549
void set_compilation_time(const StringRef &ref)
Definition api_pb2.h:507
const char * message_name() const override
Definition api_pb2.h:495
void set_name(const StringRef &ref)
Definition api_pb2.h:501
void set_mac_address(const StringRef &ref)
Definition api_pb2.h:503
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:493
void set_bluetooth_mac_address(const StringRef &ref)
Definition api_pb2.h:540
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:546
void set_suggested_area(const StringRef &ref)
Definition api_pb2.h:536
void set_manufacturer(const StringRef &ref)
Definition api_pb2.h:528
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:396
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:397
const char * message_name() const override
Definition api_pb2.h:399
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:409
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:410
const char * message_name() const override
Definition api_pb2.h:412
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2759
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2752
const char * message_name() const override
Definition api_pb2.h:2729
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2726
void set_event_type(const StringRef &ref)
Definition api_pb2.h:2732
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2727
std::vector< int32_t > int_array
Definition api_pb2.h:1232
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:959
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:937
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:972
std::vector< std::string > string_array
Definition api_pb2.h:1234
std::vector< float > float_array
Definition api_pb2.h:1233
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1246
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1247
void dump_to(std::string &out) const override
std::vector< ExecuteServiceArgument > args
Definition api_pb2.h:1252
const char * message_name() const override
Definition api_pb2.h:1249
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:996
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:985
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:743
const char * message_name() const override
Definition api_pb2.h:746
enums::FanDirection direction
Definition api_pb2.h:753
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:389
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:428
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:744
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:438
void dump_to(std::string &out) const override
enums::FanDirection direction
Definition api_pb2.h:729
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:367
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:723
const char * message_name() const override
Definition api_pb2.h:725
void set_preset_mode(const StringRef &ref)
Definition api_pb2.h:732
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:378
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:722
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1163
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1166
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1164
const char * message_name() const override
Definition api_pb2.h:1179
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:904
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:914
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1177
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1176
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:915
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:10
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:329
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:327
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:326
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:344
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:39
void set_name(const StringRef &ref)
Definition api_pb2.h:354
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:33
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:345
const char * message_name() const override
Definition api_pb2.h:347
void set_server_info(const StringRef &ref)
Definition api_pb2.h:352
const char * message_name() const override
Definition api_pb2.h:1148
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1145
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1146
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:887
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:847
void dump_to(std::string &out) const override
void set_key(const StringRef &ref)
Definition api_pb2.h:1077
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:851
std::vector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1097
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:855
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:868
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1089
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1090
const char * message_name() const override
Definition api_pb2.h:1092
void set_service(const StringRef &ref)
Definition api_pb2.h:1095
std::vector< HomeassistantServiceMap > data
Definition api_pb2.h:1096
std::vector< HomeassistantServiceMap > variables
Definition api_pb2.h:1098
void set_object_id(const StringRef &ref)
Definition api_pb2.h:286
~InfoResponseProtoMessage() override=default
enums::EntityCategory entity_category
Definition api_pb2.h:295
void set_icon(const StringRef &ref)
Definition api_pb2.h:293
void set_name(const StringRef &ref)
Definition api_pb2.h:289
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:592
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:602
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:532
const char * message_name() const override
Definition api_pb2.h:821
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:818
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:819
void dump_to(std::string &out) const override
void set_effect(const StringRef &ref)
Definition api_pb2.h:807
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:496
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:791
enums::ColorMode color_mode
Definition api_pb2.h:797
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:790
const char * message_name() const override
Definition api_pb2.h:793
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:514
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2407
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2391
const char * message_name() const override
Definition api_pb2.h:2492
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:184
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:199
void set_device_class(const StringRef &ref)
Definition api_pb2.h:610
const char * message_name() const override
Definition api_pb2.h:607
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:605
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1649
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1648
void set_device_class(const StringRef &ref)
Definition api_pb2.h:1654
const char * message_name() const override
Definition api_pb2.h:1651
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1664
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1650
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1268
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1265
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1021
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1008
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1266
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1321
const std::set< std::string > * supported_custom_presets
Definition api_pb2.h:1336
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1320
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1107
const std::set< climate::ClimateSwingMode > * supported_swing_modes
Definition api_pb2.h:1333
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1065
const std::set< std::string > * supported_custom_fan_modes
Definition api_pb2.h:1334
const char * message_name() const override
Definition api_pb2.h:1323
const std::set< climate::ClimateFanMode > * supported_fan_modes
Definition api_pb2.h:1332
const std::set< climate::ClimatePreset > * supported_presets
Definition api_pb2.h:1335
const std::set< climate::ClimateMode > * supported_modes
Definition api_pb2.h:1327
const char * message_name() const override
Definition api_pb2.h:644
void set_device_class(const StringRef &ref)
Definition api_pb2.h:650
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:642
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:250
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:641
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:232
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2601
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2558
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2571
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2600
const char * message_name() const override
Definition api_pb2.h:2603
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2864
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2802
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2803
const char * message_name() const override
Definition api_pb2.h:2805
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2851
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:577
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:578
const char * message_name() const override
Definition api_pb2.h:580
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2711
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2733
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2716
std::vector< std::string > event_types
Definition api_pb2.h:2715
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2709
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2708
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2714
const char * message_name() const override
Definition api_pb2.h:705
const std::set< std::string > * supported_preset_modes
Definition api_pb2.h:711
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:703
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:702
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:325
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:345
const std::set< light::ColorMode > * supported_color_modes
Definition api_pb2.h:776
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:772
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:471
const char * message_name() const override
Definition api_pb2.h:774
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:771
std::vector< std::string > effects
Definition api_pb2.h:779
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:450
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1562
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1591
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1579
void set_code_format(const StringRef &ref)
Definition api_pb2.h:1600
const char * message_name() const override
Definition api_pb2.h:1594
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1592
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1699
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1716
const char * message_name() const override
Definition api_pb2.h:1701
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1734
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1704
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1423
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1309
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1421
void set_unit_of_measurement(const StringRef &ref)
Definition api_pb2.h:1429
void set_device_class(const StringRef &ref)
Definition api_pb2.h:1432
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1420
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1290
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:565
const char * message_name() const override
Definition api_pb2.h:567
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:564
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1478
const std::vector< std::string > * options
Definition api_pb2.h:1483
const char * message_name() const override
Definition api_pb2.h:1481
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1387
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1371
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1479
const char * message_name() const override
Definition api_pb2.h:865
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:641
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:659
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:863
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:862
void set_unit_of_measurement(const StringRef &ref)
Definition api_pb2.h:868
void dump_to(std::string &out) const override
void set_device_class(const StringRef &ref)
Definition api_pb2.h:872
enums::SensorStateClass state_class
Definition api_pb2.h:873
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:921
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:917
void dump_to(std::string &out) const override
void set_name(const StringRef &ref)
Definition api_pb2.h:1195
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:932
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:925
const char * message_name() const override
Definition api_pb2.h:1210
std::vector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1215
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1207
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1208
void set_name(const StringRef &ref)
Definition api_pb2.h:1213
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1455
const char * message_name() const override
Definition api_pb2.h:1534
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1473
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1531
void dump_to(std::string &out) const override
std::vector< std::string > tones
Definition api_pb2.h:1536
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1532
const char * message_name() const override
Definition api_pb2.h:906
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:695
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:904
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:903
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:710
void set_device_class(const StringRef &ref)
Definition api_pb2.h:910
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2543
void set_pattern(const StringRef &ref)
Definition api_pb2.h:2551
const char * message_name() const override
Definition api_pb2.h:2546
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2491
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2544
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2474
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:780
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:766
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:955
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:956
const char * message_name() const override
Definition api_pb2.h:958
void set_device_class(const StringRef &ref)
Definition api_pb2.h:961
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2637
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2650
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2655
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2657
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2654
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2855
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2934
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2852
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2853
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2920
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2858
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2745
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2751
const char * message_name() const override
Definition api_pb2.h:2748
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2746
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2785
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2768
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1627
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1610
const char * message_name() const override
Definition api_pb2.h:1630
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1638
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1628
enums::LockCommand command
Definition api_pb2.h:1632
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1628
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1612
const char * message_name() const override
Definition api_pb2.h:1614
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1611
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1603
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1596
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1735
enums::MediaPlayerCommand command
Definition api_pb2.h:1740
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1808
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1768
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1798
const char * message_name() const override
Definition api_pb2.h:1737
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1734
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1759
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1716
void dump_to(std::string &out) const override
enums::MediaPlayerState state
Definition api_pb2.h:1721
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1750
const char * message_name() const override
Definition api_pb2.h:1719
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1717
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1709
void set_format(const StringRef &ref)
Definition api_pb2.h:1683
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1686
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1702
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1030
const char * message_name() const override
Definition api_pb2.h:1033
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:833
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1031
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1048
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:843
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:844
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1046
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1045
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1460
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1356
const char * message_name() const override
Definition api_pb2.h:1463
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1461
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1344
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1328
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1446
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1444
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1443
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1336
const char * message_name() const override
Definition api_pb2.h:425
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:422
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:423
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:435
const char * message_name() const override
Definition api_pb2.h:438
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:436
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:66
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1433
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1421
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1513
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1512
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1443
const char * message_name() const override
Definition api_pb2.h:1515
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1495
const char * message_name() const override
Definition api_pb2.h:1497
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1405
void set_state(const StringRef &ref)
Definition api_pb2.h:1500
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1413
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1494
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:685
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:677
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:885
const char * message_name() const override
Definition api_pb2.h:887
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:884
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1537
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1507
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1566
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1547
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1565
const char * message_name() const override
Definition api_pb2.h:1568
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1500
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1550
const char * message_name() const override
Definition api_pb2.h:1552
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1549
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1493
~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:1823
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:882
const char * message_name() const override
Definition api_pb2.h:1128
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:877
const char * message_name() const override
Definition api_pb2.h:1115
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:1066
const char * message_name() const override
Definition api_pb2.h:994
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:992
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:991
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:811
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1007
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:828
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1008
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:1015
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:824
const char * message_name() const override
Definition api_pb2.h:1010
const char * message_name() const override
Definition api_pb2.h:593
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:591
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:590
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2253
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2250
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2173
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2251
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:754
const char * message_name() const override
Definition api_pb2.h:940
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:739
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:937
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:938
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:924
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:725
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:922
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:732
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:921
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2536
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2582
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2546
const char * message_name() const override
Definition api_pb2.h:2584
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2524
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2581
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:802
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:794
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:972
void set_state(const StringRef &ref)
Definition api_pb2.h:978
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:973
const char * message_name() const override
Definition api_pb2.h:975
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2564
void set_state(const StringRef &ref)
Definition api_pb2.h:2569
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2563
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2516
const char * message_name() const override
Definition api_pb2.h:2566
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2508
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2704
const char * message_name() const override
Definition api_pb2.h:2691
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2688
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2683
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2689
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2669
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2670
const char * message_name() const override
Definition api_pb2.h:2672
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2673
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2663
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2899
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2993
enums::UpdateCommand command
Definition api_pb2.h:2903
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2978
const char * message_name() const override
Definition api_pb2.h:2901
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2898
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2870
void set_current_version(const StringRef &ref)
Definition api_pb2.h:2879
void set_latest_version(const StringRef &ref)
Definition api_pb2.h:2881
void set_release_summary(const StringRef &ref)
Definition api_pb2.h:2885
void set_title(const StringRef &ref)
Definition api_pb2.h:2883
const char * message_name() const override
Definition api_pb2.h:2872
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2963
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2948
void set_release_url(const StringRef &ref)
Definition api_pb2.h:2887
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2869
const char * message_name() const override
Definition api_pb2.h:2785
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2782
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2818
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2783
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2836
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2802
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2766
const char * message_name() const override
Definition api_pb2.h:2768
void dump_to(std::string &out) const override
enums::ValveOperation current_operation
Definition api_pb2.h:2771
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2765
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2810
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2344
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2411
const char * message_name() const override
Definition api_pb2.h:2413
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2410
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2343
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2327
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2392
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2391
const char * message_name() const override
Definition api_pb2.h:2394
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2317
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2353
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2277
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2281
const char * message_name() const override
Definition api_pb2.h:2348
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2267
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2346
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2345
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2257
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2186
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2191
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2444
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2370
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2459
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2457
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2460
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2361
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2223
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2246
const char * message_name() const override
Definition api_pb2.h:2331
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2329
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2328
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2333
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2236
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2334
void set_wake_word_phrase(const StringRef &ref)
Definition api_pb2.h:2290
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2203
const char * message_name() const override
Definition api_pb2.h:2282
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2279
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2288
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2280
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2196
void dump_to(std::string &out) const override
void set_conversation_id(const StringRef &ref)
Definition api_pb2.h:2286
const char * message_name() const override
Definition api_pb2.h:2304
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2302
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2301
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2210
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2473
std::vector< std::string > active_wake_words
Definition api_pb2.h:2477
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2472
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2379
const char * message_name() const override
Definition api_pb2.h:2475
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2375
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2304
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2285
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2373
void set_id(const StringRef &ref)
Definition api_pb2.h:2427
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2345
void set_wake_word(const StringRef &ref)
Definition api_pb2.h:2429
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2352
std::vector< std::string > trained_languages
Definition api_pb2.h:2430
void dump_to(std::string &out) const override
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:153
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:243
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:72
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:75
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:74
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:208
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:207
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:175
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:174
@ 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:231
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:230
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:233
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:232
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:167
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:168
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:165
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:164
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:171
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:169
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:221
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:226
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:223
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:227
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:225
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:222
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:183
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:184
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:180
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:182
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:185
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:186
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:181
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:197
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:198
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:194
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:190
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:193
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:191
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:192
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:253
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:255
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:254
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:203
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:202
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:52
std::string size_t len
Definition helpers.h:279