ESPHome 2025.9.3
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};
342class HelloResponse final : public ProtoMessage {
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};
378class ConnectResponse final : public ProtoMessage {
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};
394class DisconnectRequest final : public ProtoMessage {
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};
407class DisconnectResponse final : public ProtoMessage {
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 final : 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};
433class PingResponse final : public ProtoMessage {
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};
446class DeviceInfoRequest final : public ProtoMessage {
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 final : 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 final : 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
490class DeviceInfoResponse final : public ProtoMessage {
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};
562class ListEntitiesRequest final : public ProtoMessage {
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
1161class GetTimeRequest final : public ProtoMessage {
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 = 14;
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 std::string timezone{};
1183#ifdef HAS_PROTO_MESSAGE_DUMP
1184 void dump_to(std::string &out) const override;
1185#endif
1186
1187 protected:
1188 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1189 bool decode_length(uint32_t field_id, ProtoLengthDelimited 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 = 6;
2218#ifdef HAS_PROTO_MESSAGE_DUMP
2219 const char *message_name() const override { return "bluetooth_scanner_state_response"; }
2220#endif
2224 void encode(ProtoWriteBuffer buffer) const override;
2225 void calculate_size(ProtoSize &size) const override;
2226#ifdef HAS_PROTO_MESSAGE_DUMP
2227 void dump_to(std::string &out) const override;
2228#endif
2229
2230 protected:
2231};
2233 public:
2234 static constexpr uint8_t MESSAGE_TYPE = 127;
2235 static constexpr uint8_t ESTIMATED_SIZE = 2;
2236#ifdef HAS_PROTO_MESSAGE_DUMP
2237 const char *message_name() const override { return "bluetooth_scanner_set_mode_request"; }
2238#endif
2240#ifdef HAS_PROTO_MESSAGE_DUMP
2241 void dump_to(std::string &out) const override;
2242#endif
2243
2244 protected:
2245 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2246};
2247#endif
2248#ifdef USE_VOICE_ASSISTANT
2250 public:
2251 static constexpr uint8_t MESSAGE_TYPE = 89;
2252 static constexpr uint8_t ESTIMATED_SIZE = 6;
2253#ifdef HAS_PROTO_MESSAGE_DUMP
2254 const char *message_name() const override { return "subscribe_voice_assistant_request"; }
2255#endif
2256 bool subscribe{false};
2257 uint32_t flags{0};
2258#ifdef HAS_PROTO_MESSAGE_DUMP
2259 void dump_to(std::string &out) const override;
2260#endif
2261
2262 protected:
2263 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2264};
2266 public:
2268 uint32_t auto_gain{0};
2270 void encode(ProtoWriteBuffer buffer) const override;
2271 void calculate_size(ProtoSize &size) const override;
2272#ifdef HAS_PROTO_MESSAGE_DUMP
2273 void dump_to(std::string &out) const override;
2274#endif
2275
2276 protected:
2277};
2279 public:
2280 static constexpr uint8_t MESSAGE_TYPE = 90;
2281 static constexpr uint8_t ESTIMATED_SIZE = 41;
2282#ifdef HAS_PROTO_MESSAGE_DUMP
2283 const char *message_name() const override { return "voice_assistant_request"; }
2284#endif
2285 bool start{false};
2287 void set_conversation_id(const StringRef &ref) { this->conversation_id_ref_ = ref; }
2288 uint32_t flags{0};
2291 void set_wake_word_phrase(const StringRef &ref) { this->wake_word_phrase_ref_ = ref; }
2292 void encode(ProtoWriteBuffer buffer) const override;
2293 void calculate_size(ProtoSize &size) const override;
2294#ifdef HAS_PROTO_MESSAGE_DUMP
2295 void dump_to(std::string &out) const override;
2296#endif
2297
2298 protected:
2299};
2301 public:
2302 static constexpr uint8_t MESSAGE_TYPE = 91;
2303 static constexpr uint8_t ESTIMATED_SIZE = 6;
2304#ifdef HAS_PROTO_MESSAGE_DUMP
2305 const char *message_name() const override { return "voice_assistant_response"; }
2306#endif
2307 uint32_t port{0};
2308 bool error{false};
2309#ifdef HAS_PROTO_MESSAGE_DUMP
2310 void dump_to(std::string &out) const override;
2311#endif
2312
2313 protected:
2314 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2315};
2317 public:
2318 std::string name{};
2319 std::string value{};
2320#ifdef HAS_PROTO_MESSAGE_DUMP
2321 void dump_to(std::string &out) const override;
2322#endif
2323
2324 protected:
2325 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2326};
2328 public:
2329 static constexpr uint8_t MESSAGE_TYPE = 92;
2330 static constexpr uint8_t ESTIMATED_SIZE = 36;
2331#ifdef HAS_PROTO_MESSAGE_DUMP
2332 const char *message_name() const override { return "voice_assistant_event_response"; }
2333#endif
2335 std::vector<VoiceAssistantEventData> data{};
2336#ifdef HAS_PROTO_MESSAGE_DUMP
2337 void dump_to(std::string &out) const override;
2338#endif
2339
2340 protected:
2341 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2342 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2343};
2345 public:
2346 static constexpr uint8_t MESSAGE_TYPE = 106;
2347 static constexpr uint8_t ESTIMATED_SIZE = 11;
2348#ifdef HAS_PROTO_MESSAGE_DUMP
2349 const char *message_name() const override { return "voice_assistant_audio"; }
2350#endif
2351 std::string data{};
2352 const uint8_t *data_ptr_{nullptr};
2353 size_t data_len_{0};
2354 void set_data(const uint8_t *data, size_t len) {
2355 this->data_ptr_ = data;
2356 this->data_len_ = len;
2357 }
2358 bool end{false};
2359 void encode(ProtoWriteBuffer buffer) const override;
2360 void calculate_size(ProtoSize &size) const override;
2361#ifdef HAS_PROTO_MESSAGE_DUMP
2362 void dump_to(std::string &out) const override;
2363#endif
2364
2365 protected:
2366 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2367 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2368};
2370 public:
2371 static constexpr uint8_t MESSAGE_TYPE = 115;
2372 static constexpr uint8_t ESTIMATED_SIZE = 30;
2373#ifdef HAS_PROTO_MESSAGE_DUMP
2374 const char *message_name() const override { return "voice_assistant_timer_event_response"; }
2375#endif
2377 std::string timer_id{};
2378 std::string name{};
2379 uint32_t total_seconds{0};
2380 uint32_t seconds_left{0};
2381 bool is_active{false};
2382#ifdef HAS_PROTO_MESSAGE_DUMP
2383 void dump_to(std::string &out) const override;
2384#endif
2385
2386 protected:
2387 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2388 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2389};
2391 public:
2392 static constexpr uint8_t MESSAGE_TYPE = 119;
2393 static constexpr uint8_t ESTIMATED_SIZE = 29;
2394#ifdef HAS_PROTO_MESSAGE_DUMP
2395 const char *message_name() const override { return "voice_assistant_announce_request"; }
2396#endif
2397 std::string media_id{};
2398 std::string text{};
2401#ifdef HAS_PROTO_MESSAGE_DUMP
2402 void dump_to(std::string &out) const override;
2403#endif
2404
2405 protected:
2406 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2407 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2408};
2410 public:
2411 static constexpr uint8_t MESSAGE_TYPE = 120;
2412 static constexpr uint8_t ESTIMATED_SIZE = 2;
2413#ifdef HAS_PROTO_MESSAGE_DUMP
2414 const char *message_name() const override { return "voice_assistant_announce_finished"; }
2415#endif
2416 bool success{false};
2417 void encode(ProtoWriteBuffer buffer) const override;
2418 void calculate_size(ProtoSize &size) const override;
2419#ifdef HAS_PROTO_MESSAGE_DUMP
2420 void dump_to(std::string &out) const override;
2421#endif
2422
2423 protected:
2424};
2426 public:
2428 void set_id(const StringRef &ref) { this->id_ref_ = ref; }
2430 void set_wake_word(const StringRef &ref) { this->wake_word_ref_ = ref; }
2431 std::vector<std::string> trained_languages{};
2432 void encode(ProtoWriteBuffer buffer) const override;
2433 void calculate_size(ProtoSize &size) const override;
2434#ifdef HAS_PROTO_MESSAGE_DUMP
2435 void dump_to(std::string &out) const override;
2436#endif
2437
2438 protected:
2439};
2441 public:
2442 static constexpr uint8_t MESSAGE_TYPE = 121;
2443 static constexpr uint8_t ESTIMATED_SIZE = 0;
2444#ifdef HAS_PROTO_MESSAGE_DUMP
2445 const char *message_name() const override { return "voice_assistant_configuration_request"; }
2446#endif
2447#ifdef HAS_PROTO_MESSAGE_DUMP
2448 void dump_to(std::string &out) const override;
2449#endif
2450
2451 protected:
2452};
2454 public:
2455 static constexpr uint8_t MESSAGE_TYPE = 122;
2456 static constexpr uint8_t ESTIMATED_SIZE = 56;
2457#ifdef HAS_PROTO_MESSAGE_DUMP
2458 const char *message_name() const override { return "voice_assistant_configuration_response"; }
2459#endif
2460 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2461 const std::vector<std::string> *active_wake_words{};
2463 void encode(ProtoWriteBuffer buffer) const override;
2464 void calculate_size(ProtoSize &size) const override;
2465#ifdef HAS_PROTO_MESSAGE_DUMP
2466 void dump_to(std::string &out) const override;
2467#endif
2468
2469 protected:
2470};
2472 public:
2473 static constexpr uint8_t MESSAGE_TYPE = 123;
2474 static constexpr uint8_t ESTIMATED_SIZE = 18;
2475#ifdef HAS_PROTO_MESSAGE_DUMP
2476 const char *message_name() const override { return "voice_assistant_set_configuration"; }
2477#endif
2478 std::vector<std::string> active_wake_words{};
2479#ifdef HAS_PROTO_MESSAGE_DUMP
2480 void dump_to(std::string &out) const override;
2481#endif
2482
2483 protected:
2484 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2485};
2486#endif
2487#ifdef USE_ALARM_CONTROL_PANEL
2489 public:
2490 static constexpr uint8_t MESSAGE_TYPE = 94;
2491 static constexpr uint8_t ESTIMATED_SIZE = 48;
2492#ifdef HAS_PROTO_MESSAGE_DUMP
2493 const char *message_name() const override { return "list_entities_alarm_control_panel_response"; }
2494#endif
2496 bool requires_code{false};
2498 void encode(ProtoWriteBuffer buffer) const override;
2499 void calculate_size(ProtoSize &size) const override;
2500#ifdef HAS_PROTO_MESSAGE_DUMP
2501 void dump_to(std::string &out) const override;
2502#endif
2503
2504 protected:
2505};
2507 public:
2508 static constexpr uint8_t MESSAGE_TYPE = 95;
2509 static constexpr uint8_t ESTIMATED_SIZE = 11;
2510#ifdef HAS_PROTO_MESSAGE_DUMP
2511 const char *message_name() const override { return "alarm_control_panel_state_response"; }
2512#endif
2514 void encode(ProtoWriteBuffer buffer) const override;
2515 void calculate_size(ProtoSize &size) const override;
2516#ifdef HAS_PROTO_MESSAGE_DUMP
2517 void dump_to(std::string &out) const override;
2518#endif
2519
2520 protected:
2521};
2523 public:
2524 static constexpr uint8_t MESSAGE_TYPE = 96;
2525 static constexpr uint8_t ESTIMATED_SIZE = 20;
2526#ifdef HAS_PROTO_MESSAGE_DUMP
2527 const char *message_name() const override { return "alarm_control_panel_command_request"; }
2528#endif
2530 std::string code{};
2531#ifdef HAS_PROTO_MESSAGE_DUMP
2532 void dump_to(std::string &out) const override;
2533#endif
2534
2535 protected:
2536 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2537 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2538 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2539};
2540#endif
2541#ifdef USE_TEXT
2543 public:
2544 static constexpr uint8_t MESSAGE_TYPE = 97;
2545 static constexpr uint8_t ESTIMATED_SIZE = 59;
2546#ifdef HAS_PROTO_MESSAGE_DUMP
2547 const char *message_name() const override { return "list_entities_text_response"; }
2548#endif
2549 uint32_t min_length{0};
2550 uint32_t max_length{0};
2552 void set_pattern(const StringRef &ref) { this->pattern_ref_ = ref; }
2554 void encode(ProtoWriteBuffer buffer) const override;
2555 void calculate_size(ProtoSize &size) const override;
2556#ifdef HAS_PROTO_MESSAGE_DUMP
2557 void dump_to(std::string &out) const override;
2558#endif
2559
2560 protected:
2561};
2563 public:
2564 static constexpr uint8_t MESSAGE_TYPE = 98;
2565 static constexpr uint8_t ESTIMATED_SIZE = 20;
2566#ifdef HAS_PROTO_MESSAGE_DUMP
2567 const char *message_name() const override { return "text_state_response"; }
2568#endif
2570 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
2571 bool missing_state{false};
2572 void encode(ProtoWriteBuffer buffer) const override;
2573 void calculate_size(ProtoSize &size) const override;
2574#ifdef HAS_PROTO_MESSAGE_DUMP
2575 void dump_to(std::string &out) const override;
2576#endif
2577
2578 protected:
2579};
2581 public:
2582 static constexpr uint8_t MESSAGE_TYPE = 99;
2583 static constexpr uint8_t ESTIMATED_SIZE = 18;
2584#ifdef HAS_PROTO_MESSAGE_DUMP
2585 const char *message_name() const override { return "text_command_request"; }
2586#endif
2587 std::string state{};
2588#ifdef HAS_PROTO_MESSAGE_DUMP
2589 void dump_to(std::string &out) const override;
2590#endif
2591
2592 protected:
2593 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2594 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2595 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2596};
2597#endif
2598#ifdef USE_DATETIME_DATE
2600 public:
2601 static constexpr uint8_t MESSAGE_TYPE = 100;
2602 static constexpr uint8_t ESTIMATED_SIZE = 40;
2603#ifdef HAS_PROTO_MESSAGE_DUMP
2604 const char *message_name() const override { return "list_entities_date_response"; }
2605#endif
2606 void encode(ProtoWriteBuffer buffer) const override;
2607 void calculate_size(ProtoSize &size) const override;
2608#ifdef HAS_PROTO_MESSAGE_DUMP
2609 void dump_to(std::string &out) const override;
2610#endif
2611
2612 protected:
2613};
2615 public:
2616 static constexpr uint8_t MESSAGE_TYPE = 101;
2617 static constexpr uint8_t ESTIMATED_SIZE = 23;
2618#ifdef HAS_PROTO_MESSAGE_DUMP
2619 const char *message_name() const override { return "date_state_response"; }
2620#endif
2621 bool missing_state{false};
2622 uint32_t year{0};
2623 uint32_t month{0};
2624 uint32_t day{0};
2625 void encode(ProtoWriteBuffer buffer) const override;
2626 void calculate_size(ProtoSize &size) const override;
2627#ifdef HAS_PROTO_MESSAGE_DUMP
2628 void dump_to(std::string &out) const override;
2629#endif
2630
2631 protected:
2632};
2634 public:
2635 static constexpr uint8_t MESSAGE_TYPE = 102;
2636 static constexpr uint8_t ESTIMATED_SIZE = 21;
2637#ifdef HAS_PROTO_MESSAGE_DUMP
2638 const char *message_name() const override { return "date_command_request"; }
2639#endif
2640 uint32_t year{0};
2641 uint32_t month{0};
2642 uint32_t day{0};
2643#ifdef HAS_PROTO_MESSAGE_DUMP
2644 void dump_to(std::string &out) const override;
2645#endif
2646
2647 protected:
2648 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2649 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2650};
2651#endif
2652#ifdef USE_DATETIME_TIME
2654 public:
2655 static constexpr uint8_t MESSAGE_TYPE = 103;
2656 static constexpr uint8_t ESTIMATED_SIZE = 40;
2657#ifdef HAS_PROTO_MESSAGE_DUMP
2658 const char *message_name() const override { return "list_entities_time_response"; }
2659#endif
2660 void encode(ProtoWriteBuffer buffer) const override;
2661 void calculate_size(ProtoSize &size) const override;
2662#ifdef HAS_PROTO_MESSAGE_DUMP
2663 void dump_to(std::string &out) const override;
2664#endif
2665
2666 protected:
2667};
2669 public:
2670 static constexpr uint8_t MESSAGE_TYPE = 104;
2671 static constexpr uint8_t ESTIMATED_SIZE = 23;
2672#ifdef HAS_PROTO_MESSAGE_DUMP
2673 const char *message_name() const override { return "time_state_response"; }
2674#endif
2675 bool missing_state{false};
2676 uint32_t hour{0};
2677 uint32_t minute{0};
2678 uint32_t second{0};
2679 void encode(ProtoWriteBuffer buffer) const override;
2680 void calculate_size(ProtoSize &size) const override;
2681#ifdef HAS_PROTO_MESSAGE_DUMP
2682 void dump_to(std::string &out) const override;
2683#endif
2684
2685 protected:
2686};
2688 public:
2689 static constexpr uint8_t MESSAGE_TYPE = 105;
2690 static constexpr uint8_t ESTIMATED_SIZE = 21;
2691#ifdef HAS_PROTO_MESSAGE_DUMP
2692 const char *message_name() const override { return "time_command_request"; }
2693#endif
2694 uint32_t hour{0};
2695 uint32_t minute{0};
2696 uint32_t second{0};
2697#ifdef HAS_PROTO_MESSAGE_DUMP
2698 void dump_to(std::string &out) const override;
2699#endif
2700
2701 protected:
2702 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2703 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2704};
2705#endif
2706#ifdef USE_EVENT
2708 public:
2709 static constexpr uint8_t MESSAGE_TYPE = 107;
2710 static constexpr uint8_t ESTIMATED_SIZE = 67;
2711#ifdef HAS_PROTO_MESSAGE_DUMP
2712 const char *message_name() const override { return "list_entities_event_response"; }
2713#endif
2715 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2716 std::vector<std::string> event_types{};
2717 void encode(ProtoWriteBuffer buffer) const override;
2718 void calculate_size(ProtoSize &size) const override;
2719#ifdef HAS_PROTO_MESSAGE_DUMP
2720 void dump_to(std::string &out) const override;
2721#endif
2722
2723 protected:
2724};
2726 public:
2727 static constexpr uint8_t MESSAGE_TYPE = 108;
2728 static constexpr uint8_t ESTIMATED_SIZE = 18;
2729#ifdef HAS_PROTO_MESSAGE_DUMP
2730 const char *message_name() const override { return "event_response"; }
2731#endif
2733 void set_event_type(const StringRef &ref) { this->event_type_ref_ = ref; }
2734 void encode(ProtoWriteBuffer buffer) const override;
2735 void calculate_size(ProtoSize &size) const override;
2736#ifdef HAS_PROTO_MESSAGE_DUMP
2737 void dump_to(std::string &out) const override;
2738#endif
2739
2740 protected:
2741};
2742#endif
2743#ifdef USE_VALVE
2745 public:
2746 static constexpr uint8_t MESSAGE_TYPE = 109;
2747 static constexpr uint8_t ESTIMATED_SIZE = 55;
2748#ifdef HAS_PROTO_MESSAGE_DUMP
2749 const char *message_name() const override { return "list_entities_valve_response"; }
2750#endif
2752 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2753 bool assumed_state{false};
2755 bool supports_stop{false};
2756 void encode(ProtoWriteBuffer buffer) const override;
2757 void calculate_size(ProtoSize &size) const override;
2758#ifdef HAS_PROTO_MESSAGE_DUMP
2759 void dump_to(std::string &out) const override;
2760#endif
2761
2762 protected:
2763};
2765 public:
2766 static constexpr uint8_t MESSAGE_TYPE = 110;
2767 static constexpr uint8_t ESTIMATED_SIZE = 16;
2768#ifdef HAS_PROTO_MESSAGE_DUMP
2769 const char *message_name() const override { return "valve_state_response"; }
2770#endif
2771 float position{0.0f};
2773 void encode(ProtoWriteBuffer buffer) const override;
2774 void calculate_size(ProtoSize &size) const override;
2775#ifdef HAS_PROTO_MESSAGE_DUMP
2776 void dump_to(std::string &out) const override;
2777#endif
2778
2779 protected:
2780};
2782 public:
2783 static constexpr uint8_t MESSAGE_TYPE = 111;
2784 static constexpr uint8_t ESTIMATED_SIZE = 18;
2785#ifdef HAS_PROTO_MESSAGE_DUMP
2786 const char *message_name() const override { return "valve_command_request"; }
2787#endif
2788 bool has_position{false};
2789 float position{0.0f};
2790 bool stop{false};
2791#ifdef HAS_PROTO_MESSAGE_DUMP
2792 void dump_to(std::string &out) const override;
2793#endif
2794
2795 protected:
2796 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2797 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2798};
2799#endif
2800#ifdef USE_DATETIME_DATETIME
2802 public:
2803 static constexpr uint8_t MESSAGE_TYPE = 112;
2804 static constexpr uint8_t ESTIMATED_SIZE = 40;
2805#ifdef HAS_PROTO_MESSAGE_DUMP
2806 const char *message_name() const override { return "list_entities_date_time_response"; }
2807#endif
2808 void encode(ProtoWriteBuffer buffer) const override;
2809 void calculate_size(ProtoSize &size) const override;
2810#ifdef HAS_PROTO_MESSAGE_DUMP
2811 void dump_to(std::string &out) const override;
2812#endif
2813
2814 protected:
2815};
2817 public:
2818 static constexpr uint8_t MESSAGE_TYPE = 113;
2819 static constexpr uint8_t ESTIMATED_SIZE = 16;
2820#ifdef HAS_PROTO_MESSAGE_DUMP
2821 const char *message_name() const override { return "date_time_state_response"; }
2822#endif
2823 bool missing_state{false};
2824 uint32_t epoch_seconds{0};
2825 void encode(ProtoWriteBuffer buffer) const override;
2826 void calculate_size(ProtoSize &size) const override;
2827#ifdef HAS_PROTO_MESSAGE_DUMP
2828 void dump_to(std::string &out) const override;
2829#endif
2830
2831 protected:
2832};
2834 public:
2835 static constexpr uint8_t MESSAGE_TYPE = 114;
2836 static constexpr uint8_t ESTIMATED_SIZE = 14;
2837#ifdef HAS_PROTO_MESSAGE_DUMP
2838 const char *message_name() const override { return "date_time_command_request"; }
2839#endif
2840 uint32_t epoch_seconds{0};
2841#ifdef HAS_PROTO_MESSAGE_DUMP
2842 void dump_to(std::string &out) const override;
2843#endif
2844
2845 protected:
2846 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2847 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2848};
2849#endif
2850#ifdef USE_UPDATE
2852 public:
2853 static constexpr uint8_t MESSAGE_TYPE = 116;
2854 static constexpr uint8_t ESTIMATED_SIZE = 49;
2855#ifdef HAS_PROTO_MESSAGE_DUMP
2856 const char *message_name() const override { return "list_entities_update_response"; }
2857#endif
2859 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2860 void encode(ProtoWriteBuffer buffer) const override;
2861 void calculate_size(ProtoSize &size) const override;
2862#ifdef HAS_PROTO_MESSAGE_DUMP
2863 void dump_to(std::string &out) const override;
2864#endif
2865
2866 protected:
2867};
2869 public:
2870 static constexpr uint8_t MESSAGE_TYPE = 117;
2871 static constexpr uint8_t ESTIMATED_SIZE = 65;
2872#ifdef HAS_PROTO_MESSAGE_DUMP
2873 const char *message_name() const override { return "update_state_response"; }
2874#endif
2875 bool missing_state{false};
2876 bool in_progress{false};
2877 bool has_progress{false};
2878 float progress{0.0f};
2880 void set_current_version(const StringRef &ref) { this->current_version_ref_ = ref; }
2882 void set_latest_version(const StringRef &ref) { this->latest_version_ref_ = ref; }
2884 void set_title(const StringRef &ref) { this->title_ref_ = ref; }
2886 void set_release_summary(const StringRef &ref) { this->release_summary_ref_ = ref; }
2888 void set_release_url(const StringRef &ref) { this->release_url_ref_ = ref; }
2889 void encode(ProtoWriteBuffer buffer) const override;
2890 void calculate_size(ProtoSize &size) const override;
2891#ifdef HAS_PROTO_MESSAGE_DUMP
2892 void dump_to(std::string &out) const override;
2893#endif
2894
2895 protected:
2896};
2898 public:
2899 static constexpr uint8_t MESSAGE_TYPE = 118;
2900 static constexpr uint8_t ESTIMATED_SIZE = 11;
2901#ifdef HAS_PROTO_MESSAGE_DUMP
2902 const char *message_name() const override { return "update_command_request"; }
2903#endif
2905#ifdef HAS_PROTO_MESSAGE_DUMP
2906 void dump_to(std::string &out) const override;
2907#endif
2908
2909 protected:
2910 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2911 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2912};
2913#endif
2914
2915} // 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:2472
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2447
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2527
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2529
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2462
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2525
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2509
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2440
enums::AlarmControlPanelState state
Definition api_pb2.h:2513
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2508
const char * message_name() const override
Definition api_pb2.h:2511
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2433
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:2087
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:2096
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2156
const char * message_name() const override
Definition api_pb2.h:2201
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2151
const char * message_name() const override
Definition api_pb2.h:1828
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1882
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1888
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:2136
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:2131
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:1863
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2141
const char * message_name() const override
Definition api_pb2.h:2170
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2146
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1920
std::vector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:1875
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1932
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:1912
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:1904
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2105
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:2110
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2097
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1972
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:1975
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:1894
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1968
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:1962
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:2077
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:2082
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:2061
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:2127
const char * message_name() const override
Definition api_pb2.h:2135
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2123
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:2025
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1976
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:1989
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:1994
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:1953
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1942
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:2051
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2038
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2015
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:1999
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1973
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2119
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:2115
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:1847
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1841
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:1853
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1858
const char * message_name() const override
Definition api_pb2.h:2237
enums::BluetoothScannerMode mode
Definition api_pb2.h:2239
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2234
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2171
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2235
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2161
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
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2223
const char * message_name() const override
Definition api_pb2.h:2219
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2166
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:1686
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:1698
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:1058
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:1050
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:1042
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1274
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:1207
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:1261
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:1169
enums::ClimatePreset preset
Definition api_pb2.h:1367
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1188
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:2635
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2635
const char * message_name() const override
Definition api_pb2.h:2638
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2614
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2636
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2594
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2616
const char * message_name() const override
Definition api_pb2.h:2619
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2604
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2617
const char * message_name() const override
Definition api_pb2.h:2838
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2836
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2835
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2915
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2903
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2895
const char * message_name() const override
Definition api_pb2.h:2821
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2818
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2819
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2887
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:2769
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2762
const char * message_name() const override
Definition api_pb2.h:2730
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2727
void set_event_type(const StringRef &ref)
Definition api_pb2.h:2733
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2728
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:967
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:945
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:980
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:1004
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:993
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:914
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:904
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
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:2417
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2401
const char * message_name() const override
Definition api_pb2.h:2493
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:1672
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1658
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:1029
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1016
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:1115
const std::set< climate::ClimateSwingMode > * supported_swing_modes
Definition api_pb2.h:1333
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1073
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:2602
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2568
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2581
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2601
const char * message_name() const override
Definition api_pb2.h:2604
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2874
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2803
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2804
const char * message_name() const override
Definition api_pb2.h:2806
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2861
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:2712
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2743
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2726
std::vector< std::string > event_types
Definition api_pb2.h:2716
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2710
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2709
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2715
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:1570
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:1587
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:1724
const char * message_name() const override
Definition api_pb2.h:1701
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1742
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:1317
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:1298
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:1395
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1379
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:929
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:925
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:940
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:933
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:1463
const char * message_name() const override
Definition api_pb2.h:1534
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1481
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:2544
void set_pattern(const StringRef &ref)
Definition api_pb2.h:2552
const char * message_name() const override
Definition api_pb2.h:2547
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2501
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2545
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2484
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:2647
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2660
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2656
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2658
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2655
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2856
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2944
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2853
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2854
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2930
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2859
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2746
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2752
const char * message_name() const override
Definition api_pb2.h:2749
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2747
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2795
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2778
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:1618
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:1646
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:1636
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:1611
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1604
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:1816
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1776
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1806
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:1767
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:1758
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:1717
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:1710
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:1364
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:1352
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1336
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:1344
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:1441
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1429
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:1451
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:1413
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:1421
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:1545
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1515
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:1555
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:1508
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:1501
~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:1831
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:2254
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2251
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2183
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2252
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:2546
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2583
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2556
const char * message_name() const override
Definition api_pb2.h:2585
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2534
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2582
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:2565
void set_state(const StringRef &ref)
Definition api_pb2.h:2570
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2564
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2526
const char * message_name() const override
Definition api_pb2.h:2567
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2518
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2714
const char * message_name() const override
Definition api_pb2.h:2692
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2689
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2693
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2690
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2670
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2671
const char * message_name() const override
Definition api_pb2.h:2673
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2683
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2673
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2900
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3003
enums::UpdateCommand command
Definition api_pb2.h:2904
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2988
const char * message_name() const override
Definition api_pb2.h:2902
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2899
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2871
void set_current_version(const StringRef &ref)
Definition api_pb2.h:2880
void set_latest_version(const StringRef &ref)
Definition api_pb2.h:2882
void set_release_summary(const StringRef &ref)
Definition api_pb2.h:2886
void set_title(const StringRef &ref)
Definition api_pb2.h:2884
const char * message_name() const override
Definition api_pb2.h:2873
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2973
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2958
void set_release_url(const StringRef &ref)
Definition api_pb2.h:2888
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2870
const char * message_name() const override
Definition api_pb2.h:2786
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2783
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2828
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2784
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2846
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2812
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2767
const char * message_name() const override
Definition api_pb2.h:2769
void dump_to(std::string &out) const override
enums::ValveOperation current_operation
Definition api_pb2.h:2772
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2766
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2820
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2354
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2412
const char * message_name() const override
Definition api_pb2.h:2414
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2411
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2353
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2337
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2393
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2392
const char * message_name() const override
Definition api_pb2.h:2395
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2327
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2354
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2287
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2291
const char * message_name() const override
Definition api_pb2.h:2349
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2277
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2347
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2346
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2267
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2196
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2201
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2445
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2380
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2460
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2458
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2461
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2371
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2233
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2256
const char * message_name() const override
Definition api_pb2.h:2332
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2330
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2329
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2334
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2246
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2335
void set_wake_word_phrase(const StringRef &ref)
Definition api_pb2.h:2291
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2213
const char * message_name() const override
Definition api_pb2.h:2283
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2280
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2289
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2281
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2206
void dump_to(std::string &out) const override
void set_conversation_id(const StringRef &ref)
Definition api_pb2.h:2287
const char * message_name() const override
Definition api_pb2.h:2305
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2303
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2302
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2220
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2474
std::vector< std::string > active_wake_words
Definition api_pb2.h:2478
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2473
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2389
const char * message_name() const override
Definition api_pb2.h:2476
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2376
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2314
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2295
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2374
void set_id(const StringRef &ref)
Definition api_pb2.h:2428
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2355
void set_wake_word(const StringRef &ref)
Definition api_pb2.h:2430
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2362
std::vector< std::string > trained_languages
Definition api_pb2.h:2431
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:280