ESPHome 2025.10.0-dev
Loading...
Searching...
No Matches
api_pb2.h
Go to the documentation of this file.
1// This file was automatically generated with a tool.
2// See script/api_protobuf/api_protobuf.py
3#pragma once
4
7
8#include "proto.h"
9#include "api_pb2_includes.h"
10
11namespace esphome::api {
12
13namespace enums {
14
20#ifdef USE_COVER
26#endif
27#ifdef USE_FAN
32#endif
33#ifdef USE_LIGHT
47#endif
48#ifdef USE_SENSOR
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#ifdef USE_ZWAVE_PROXY
285#endif
286
287} // namespace enums
288
290 public:
291 ~InfoResponseProtoMessage() override = default;
293 void set_object_id(const StringRef &ref) { this->object_id_ref_ = ref; }
294 uint32_t key{0};
296 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
298#ifdef USE_ENTITY_ICON
300 void set_icon(const StringRef &ref) { this->icon_ref_ = ref; }
301#endif
303#ifdef USE_DEVICES
304 uint32_t device_id{0};
305#endif
306
307 protected:
308};
309
311 public:
312 ~StateResponseProtoMessage() override = default;
313 uint32_t key{0};
314#ifdef USE_DEVICES
315 uint32_t device_id{0};
316#endif
317
318 protected:
319};
320
322 public:
323 ~CommandProtoMessage() override = default;
324 uint32_t key{0};
325#ifdef USE_DEVICES
326 uint32_t device_id{0};
327#endif
328
329 protected:
330};
332 public:
333 static constexpr uint8_t MESSAGE_TYPE = 1;
334 static constexpr uint8_t ESTIMATED_SIZE = 27;
335#ifdef HAS_PROTO_MESSAGE_DUMP
336 const char *message_name() const override { return "hello_request"; }
337#endif
338 const uint8_t *client_info{nullptr};
339 uint16_t client_info_len{0};
340 uint32_t api_version_major{0};
341 uint32_t api_version_minor{0};
342#ifdef HAS_PROTO_MESSAGE_DUMP
343 void dump_to(std::string &out) const override;
344#endif
345
346 protected:
347 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
348 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
349};
350class HelloResponse final : public ProtoMessage {
351 public:
352 static constexpr uint8_t MESSAGE_TYPE = 2;
353 static constexpr uint8_t ESTIMATED_SIZE = 26;
354#ifdef HAS_PROTO_MESSAGE_DUMP
355 const char *message_name() const override { return "hello_response"; }
356#endif
357 uint32_t api_version_major{0};
358 uint32_t api_version_minor{0};
360 void set_server_info(const StringRef &ref) { this->server_info_ref_ = ref; }
362 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
363 void encode(ProtoWriteBuffer buffer) const override;
364 void calculate_size(ProtoSize &size) const override;
365#ifdef HAS_PROTO_MESSAGE_DUMP
366 void dump_to(std::string &out) const override;
367#endif
368
369 protected:
370};
371#ifdef USE_API_PASSWORD
373 public:
374 static constexpr uint8_t MESSAGE_TYPE = 3;
375 static constexpr uint8_t ESTIMATED_SIZE = 19;
376#ifdef HAS_PROTO_MESSAGE_DUMP
377 const char *message_name() const override { return "authentication_request"; }
378#endif
379 const uint8_t *password{nullptr};
380 uint16_t password_len{0};
381#ifdef HAS_PROTO_MESSAGE_DUMP
382 void dump_to(std::string &out) const override;
383#endif
384
385 protected:
386 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
387};
389 public:
390 static constexpr uint8_t MESSAGE_TYPE = 4;
391 static constexpr uint8_t ESTIMATED_SIZE = 2;
392#ifdef HAS_PROTO_MESSAGE_DUMP
393 const char *message_name() const override { return "authentication_response"; }
394#endif
395 bool invalid_password{false};
396 void encode(ProtoWriteBuffer buffer) const override;
397 void calculate_size(ProtoSize &size) const override;
398#ifdef HAS_PROTO_MESSAGE_DUMP
399 void dump_to(std::string &out) const override;
400#endif
401
402 protected:
403};
404#endif
405class DisconnectRequest final : public ProtoMessage {
406 public:
407 static constexpr uint8_t MESSAGE_TYPE = 5;
408 static constexpr uint8_t ESTIMATED_SIZE = 0;
409#ifdef HAS_PROTO_MESSAGE_DUMP
410 const char *message_name() const override { return "disconnect_request"; }
411#endif
412#ifdef HAS_PROTO_MESSAGE_DUMP
413 void dump_to(std::string &out) const override;
414#endif
415
416 protected:
417};
418class DisconnectResponse final : public ProtoMessage {
419 public:
420 static constexpr uint8_t MESSAGE_TYPE = 6;
421 static constexpr uint8_t ESTIMATED_SIZE = 0;
422#ifdef HAS_PROTO_MESSAGE_DUMP
423 const char *message_name() const override { return "disconnect_response"; }
424#endif
425#ifdef HAS_PROTO_MESSAGE_DUMP
426 void dump_to(std::string &out) const override;
427#endif
428
429 protected:
430};
431class PingRequest final : public ProtoMessage {
432 public:
433 static constexpr uint8_t MESSAGE_TYPE = 7;
434 static constexpr uint8_t ESTIMATED_SIZE = 0;
435#ifdef HAS_PROTO_MESSAGE_DUMP
436 const char *message_name() const override { return "ping_request"; }
437#endif
438#ifdef HAS_PROTO_MESSAGE_DUMP
439 void dump_to(std::string &out) const override;
440#endif
441
442 protected:
443};
444class PingResponse final : public ProtoMessage {
445 public:
446 static constexpr uint8_t MESSAGE_TYPE = 8;
447 static constexpr uint8_t ESTIMATED_SIZE = 0;
448#ifdef HAS_PROTO_MESSAGE_DUMP
449 const char *message_name() const override { return "ping_response"; }
450#endif
451#ifdef HAS_PROTO_MESSAGE_DUMP
452 void dump_to(std::string &out) const override;
453#endif
454
455 protected:
456};
457class DeviceInfoRequest final : public ProtoMessage {
458 public:
459 static constexpr uint8_t MESSAGE_TYPE = 9;
460 static constexpr uint8_t ESTIMATED_SIZE = 0;
461#ifdef HAS_PROTO_MESSAGE_DUMP
462 const char *message_name() const override { return "device_info_request"; }
463#endif
464#ifdef HAS_PROTO_MESSAGE_DUMP
465 void dump_to(std::string &out) const override;
466#endif
467
468 protected:
469};
470#ifdef USE_AREAS
471class AreaInfo final : public ProtoMessage {
472 public:
473 uint32_t area_id{0};
475 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
476 void encode(ProtoWriteBuffer buffer) const override;
477 void calculate_size(ProtoSize &size) const override;
478#ifdef HAS_PROTO_MESSAGE_DUMP
479 void dump_to(std::string &out) const override;
480#endif
481
482 protected:
483};
484#endif
485#ifdef USE_DEVICES
486class DeviceInfo final : public ProtoMessage {
487 public:
488 uint32_t device_id{0};
490 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
491 uint32_t area_id{0};
492 void encode(ProtoWriteBuffer buffer) const override;
493 void calculate_size(ProtoSize &size) const override;
494#ifdef HAS_PROTO_MESSAGE_DUMP
495 void dump_to(std::string &out) const override;
496#endif
497
498 protected:
499};
500#endif
501class DeviceInfoResponse final : public ProtoMessage {
502 public:
503 static constexpr uint8_t MESSAGE_TYPE = 10;
504 static constexpr uint16_t ESTIMATED_SIZE = 257;
505#ifdef HAS_PROTO_MESSAGE_DUMP
506 const char *message_name() const override { return "device_info_response"; }
507#endif
508#ifdef USE_API_PASSWORD
509 bool uses_password{false};
510#endif
512 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
514 void set_mac_address(const StringRef &ref) { this->mac_address_ref_ = ref; }
516 void set_esphome_version(const StringRef &ref) { this->esphome_version_ref_ = ref; }
518 void set_compilation_time(const StringRef &ref) { this->compilation_time_ref_ = ref; }
520 void set_model(const StringRef &ref) { this->model_ref_ = ref; }
521#ifdef USE_DEEP_SLEEP
522 bool has_deep_sleep{false};
523#endif
524#ifdef ESPHOME_PROJECT_NAME
526 void set_project_name(const StringRef &ref) { this->project_name_ref_ = ref; }
527#endif
528#ifdef ESPHOME_PROJECT_NAME
530 void set_project_version(const StringRef &ref) { this->project_version_ref_ = ref; }
531#endif
532#ifdef USE_WEBSERVER
533 uint32_t webserver_port{0};
534#endif
535#ifdef USE_BLUETOOTH_PROXY
537#endif
539 void set_manufacturer(const StringRef &ref) { this->manufacturer_ref_ = ref; }
541 void set_friendly_name(const StringRef &ref) { this->friendly_name_ref_ = ref; }
542#ifdef USE_VOICE_ASSISTANT
544#endif
545#ifdef USE_AREAS
547 void set_suggested_area(const StringRef &ref) { this->suggested_area_ref_ = ref; }
548#endif
549#ifdef USE_BLUETOOTH_PROXY
552#endif
553#ifdef USE_API_NOISE
555#endif
556#ifdef USE_DEVICES
557 std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
558#endif
559#ifdef USE_AREAS
560 std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
561#endif
562#ifdef USE_AREAS
564#endif
565#ifdef USE_ZWAVE_PROXY
567#endif
568#ifdef USE_ZWAVE_PROXY
569 uint32_t zwave_home_id{0};
570#endif
571 void encode(ProtoWriteBuffer buffer) const override;
572 void calculate_size(ProtoSize &size) const override;
573#ifdef HAS_PROTO_MESSAGE_DUMP
574 void dump_to(std::string &out) const override;
575#endif
576
577 protected:
578};
579class ListEntitiesRequest final : public ProtoMessage {
580 public:
581 static constexpr uint8_t MESSAGE_TYPE = 11;
582 static constexpr uint8_t ESTIMATED_SIZE = 0;
583#ifdef HAS_PROTO_MESSAGE_DUMP
584 const char *message_name() const override { return "list_entities_request"; }
585#endif
586#ifdef HAS_PROTO_MESSAGE_DUMP
587 void dump_to(std::string &out) const override;
588#endif
589
590 protected:
591};
593 public:
594 static constexpr uint8_t MESSAGE_TYPE = 19;
595 static constexpr uint8_t ESTIMATED_SIZE = 0;
596#ifdef HAS_PROTO_MESSAGE_DUMP
597 const char *message_name() const override { return "list_entities_done_response"; }
598#endif
599#ifdef HAS_PROTO_MESSAGE_DUMP
600 void dump_to(std::string &out) const override;
601#endif
602
603 protected:
604};
606 public:
607 static constexpr uint8_t MESSAGE_TYPE = 20;
608 static constexpr uint8_t ESTIMATED_SIZE = 0;
609#ifdef HAS_PROTO_MESSAGE_DUMP
610 const char *message_name() const override { return "subscribe_states_request"; }
611#endif
612#ifdef HAS_PROTO_MESSAGE_DUMP
613 void dump_to(std::string &out) const override;
614#endif
615
616 protected:
617};
618#ifdef USE_BINARY_SENSOR
620 public:
621 static constexpr uint8_t MESSAGE_TYPE = 12;
622 static constexpr uint8_t ESTIMATED_SIZE = 51;
623#ifdef HAS_PROTO_MESSAGE_DUMP
624 const char *message_name() const override { return "list_entities_binary_sensor_response"; }
625#endif
627 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
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};
638 public:
639 static constexpr uint8_t MESSAGE_TYPE = 21;
640 static constexpr uint8_t ESTIMATED_SIZE = 13;
641#ifdef HAS_PROTO_MESSAGE_DUMP
642 const char *message_name() const override { return "binary_sensor_state_response"; }
643#endif
644 bool state{false};
645 bool missing_state{false};
646 void encode(ProtoWriteBuffer buffer) const override;
647 void calculate_size(ProtoSize &size) const override;
648#ifdef HAS_PROTO_MESSAGE_DUMP
649 void dump_to(std::string &out) const override;
650#endif
651
652 protected:
653};
654#endif
655#ifdef USE_COVER
657 public:
658 static constexpr uint8_t MESSAGE_TYPE = 13;
659 static constexpr uint8_t ESTIMATED_SIZE = 57;
660#ifdef HAS_PROTO_MESSAGE_DUMP
661 const char *message_name() const override { return "list_entities_cover_response"; }
662#endif
663 bool assumed_state{false};
664 bool supports_position{false};
665 bool supports_tilt{false};
667 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
668 bool supports_stop{false};
669 void encode(ProtoWriteBuffer buffer) const override;
670 void calculate_size(ProtoSize &size) const override;
671#ifdef HAS_PROTO_MESSAGE_DUMP
672 void dump_to(std::string &out) const override;
673#endif
674
675 protected:
676};
678 public:
679 static constexpr uint8_t MESSAGE_TYPE = 22;
680 static constexpr uint8_t ESTIMATED_SIZE = 21;
681#ifdef HAS_PROTO_MESSAGE_DUMP
682 const char *message_name() const override { return "cover_state_response"; }
683#endif
684 float position{0.0f};
685 float tilt{0.0f};
687 void encode(ProtoWriteBuffer buffer) const override;
688 void calculate_size(ProtoSize &size) const override;
689#ifdef HAS_PROTO_MESSAGE_DUMP
690 void dump_to(std::string &out) const override;
691#endif
692
693 protected:
694};
696 public:
697 static constexpr uint8_t MESSAGE_TYPE = 30;
698 static constexpr uint8_t ESTIMATED_SIZE = 25;
699#ifdef HAS_PROTO_MESSAGE_DUMP
700 const char *message_name() const override { return "cover_command_request"; }
701#endif
702 bool has_position{false};
703 float position{0.0f};
704 bool has_tilt{false};
705 float tilt{0.0f};
706 bool stop{false};
707#ifdef HAS_PROTO_MESSAGE_DUMP
708 void dump_to(std::string &out) const override;
709#endif
710
711 protected:
712 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
713 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
714};
715#endif
716#ifdef USE_FAN
718 public:
719 static constexpr uint8_t MESSAGE_TYPE = 14;
720 static constexpr uint8_t ESTIMATED_SIZE = 68;
721#ifdef HAS_PROTO_MESSAGE_DUMP
722 const char *message_name() const override { return "list_entities_fan_response"; }
723#endif
725 bool supports_speed{false};
728 const std::set<std::string> *supported_preset_modes{};
729 void encode(ProtoWriteBuffer buffer) const override;
730 void calculate_size(ProtoSize &size) const override;
731#ifdef HAS_PROTO_MESSAGE_DUMP
732 void dump_to(std::string &out) const override;
733#endif
734
735 protected:
736};
738 public:
739 static constexpr uint8_t MESSAGE_TYPE = 23;
740 static constexpr uint8_t ESTIMATED_SIZE = 28;
741#ifdef HAS_PROTO_MESSAGE_DUMP
742 const char *message_name() const override { return "fan_state_response"; }
743#endif
744 bool state{false};
745 bool oscillating{false};
747 int32_t speed_level{0};
749 void set_preset_mode(const StringRef &ref) { this->preset_mode_ref_ = ref; }
750 void encode(ProtoWriteBuffer buffer) const override;
751 void calculate_size(ProtoSize &size) const override;
752#ifdef HAS_PROTO_MESSAGE_DUMP
753 void dump_to(std::string &out) const override;
754#endif
755
756 protected:
757};
759 public:
760 static constexpr uint8_t MESSAGE_TYPE = 31;
761 static constexpr uint8_t ESTIMATED_SIZE = 38;
762#ifdef HAS_PROTO_MESSAGE_DUMP
763 const char *message_name() const override { return "fan_command_request"; }
764#endif
765 bool has_state{false};
766 bool state{false};
767 bool has_oscillating{false};
768 bool oscillating{false};
769 bool has_direction{false};
771 bool has_speed_level{false};
772 int32_t speed_level{0};
773 bool has_preset_mode{false};
774 std::string preset_mode{};
775#ifdef HAS_PROTO_MESSAGE_DUMP
776 void dump_to(std::string &out) const override;
777#endif
778
779 protected:
780 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
781 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
782 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
783};
784#endif
785#ifdef USE_LIGHT
787 public:
788 static constexpr uint8_t MESSAGE_TYPE = 15;
789 static constexpr uint8_t ESTIMATED_SIZE = 73;
790#ifdef HAS_PROTO_MESSAGE_DUMP
791 const char *message_name() const override { return "list_entities_light_response"; }
792#endif
793 const std::set<light::ColorMode> *supported_color_modes{};
794 float min_mireds{0.0f};
795 float max_mireds{0.0f};
796 std::vector<std::string> effects{};
797 void encode(ProtoWriteBuffer buffer) const override;
798 void calculate_size(ProtoSize &size) const override;
799#ifdef HAS_PROTO_MESSAGE_DUMP
800 void dump_to(std::string &out) const override;
801#endif
802
803 protected:
804};
806 public:
807 static constexpr uint8_t MESSAGE_TYPE = 24;
808 static constexpr uint8_t ESTIMATED_SIZE = 67;
809#ifdef HAS_PROTO_MESSAGE_DUMP
810 const char *message_name() const override { return "light_state_response"; }
811#endif
812 bool state{false};
813 float brightness{0.0f};
815 float color_brightness{0.0f};
816 float red{0.0f};
817 float green{0.0f};
818 float blue{0.0f};
819 float white{0.0f};
820 float color_temperature{0.0f};
821 float cold_white{0.0f};
822 float warm_white{0.0f};
824 void set_effect(const StringRef &ref) { this->effect_ref_ = ref; }
825 void encode(ProtoWriteBuffer buffer) const override;
826 void calculate_size(ProtoSize &size) const override;
827#ifdef HAS_PROTO_MESSAGE_DUMP
828 void dump_to(std::string &out) const override;
829#endif
830
831 protected:
832};
834 public:
835 static constexpr uint8_t MESSAGE_TYPE = 32;
836 static constexpr uint8_t ESTIMATED_SIZE = 112;
837#ifdef HAS_PROTO_MESSAGE_DUMP
838 const char *message_name() const override { return "light_command_request"; }
839#endif
840 bool has_state{false};
841 bool state{false};
842 bool has_brightness{false};
843 float brightness{0.0f};
844 bool has_color_mode{false};
847 float color_brightness{0.0f};
848 bool has_rgb{false};
849 float red{0.0f};
850 float green{0.0f};
851 float blue{0.0f};
852 bool has_white{false};
853 float white{0.0f};
855 float color_temperature{0.0f};
856 bool has_cold_white{false};
857 float cold_white{0.0f};
858 bool has_warm_white{false};
859 float warm_white{0.0f};
861 uint32_t transition_length{0};
862 bool has_flash_length{false};
863 uint32_t flash_length{0};
864 bool has_effect{false};
865 std::string effect{};
866#ifdef HAS_PROTO_MESSAGE_DUMP
867 void dump_to(std::string &out) const override;
868#endif
869
870 protected:
871 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
872 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
873 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
874};
875#endif
876#ifdef USE_SENSOR
878 public:
879 static constexpr uint8_t MESSAGE_TYPE = 16;
880 static constexpr uint8_t ESTIMATED_SIZE = 66;
881#ifdef HAS_PROTO_MESSAGE_DUMP
882 const char *message_name() const override { return "list_entities_sensor_response"; }
883#endif
887 bool force_update{false};
889 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
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};
900 public:
901 static constexpr uint8_t MESSAGE_TYPE = 25;
902 static constexpr uint8_t ESTIMATED_SIZE = 16;
903#ifdef HAS_PROTO_MESSAGE_DUMP
904 const char *message_name() const override { return "sensor_state_response"; }
905#endif
906 float state{0.0f};
907 bool missing_state{false};
908 void encode(ProtoWriteBuffer buffer) const override;
909 void calculate_size(ProtoSize &size) const override;
910#ifdef HAS_PROTO_MESSAGE_DUMP
911 void dump_to(std::string &out) const override;
912#endif
913
914 protected:
915};
916#endif
917#ifdef USE_SWITCH
919 public:
920 static constexpr uint8_t MESSAGE_TYPE = 17;
921 static constexpr uint8_t ESTIMATED_SIZE = 51;
922#ifdef HAS_PROTO_MESSAGE_DUMP
923 const char *message_name() const override { return "list_entities_switch_response"; }
924#endif
925 bool assumed_state{false};
927 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
928 void encode(ProtoWriteBuffer buffer) const override;
929 void calculate_size(ProtoSize &size) const override;
930#ifdef HAS_PROTO_MESSAGE_DUMP
931 void dump_to(std::string &out) const override;
932#endif
933
934 protected:
935};
937 public:
938 static constexpr uint8_t MESSAGE_TYPE = 26;
939 static constexpr uint8_t ESTIMATED_SIZE = 11;
940#ifdef HAS_PROTO_MESSAGE_DUMP
941 const char *message_name() const override { return "switch_state_response"; }
942#endif
943 bool state{false};
944 void encode(ProtoWriteBuffer buffer) const override;
945 void calculate_size(ProtoSize &size) const override;
946#ifdef HAS_PROTO_MESSAGE_DUMP
947 void dump_to(std::string &out) const override;
948#endif
949
950 protected:
951};
953 public:
954 static constexpr uint8_t MESSAGE_TYPE = 33;
955 static constexpr uint8_t ESTIMATED_SIZE = 11;
956#ifdef HAS_PROTO_MESSAGE_DUMP
957 const char *message_name() const override { return "switch_command_request"; }
958#endif
959 bool state{false};
960#ifdef HAS_PROTO_MESSAGE_DUMP
961 void dump_to(std::string &out) const override;
962#endif
963
964 protected:
965 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
966 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
967};
968#endif
969#ifdef USE_TEXT_SENSOR
971 public:
972 static constexpr uint8_t MESSAGE_TYPE = 18;
973 static constexpr uint8_t ESTIMATED_SIZE = 49;
974#ifdef HAS_PROTO_MESSAGE_DUMP
975 const char *message_name() const override { return "list_entities_text_sensor_response"; }
976#endif
978 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
979 void encode(ProtoWriteBuffer buffer) const override;
980 void calculate_size(ProtoSize &size) const override;
981#ifdef HAS_PROTO_MESSAGE_DUMP
982 void dump_to(std::string &out) const override;
983#endif
984
985 protected:
986};
988 public:
989 static constexpr uint8_t MESSAGE_TYPE = 27;
990 static constexpr uint8_t ESTIMATED_SIZE = 20;
991#ifdef HAS_PROTO_MESSAGE_DUMP
992 const char *message_name() const override { return "text_sensor_state_response"; }
993#endif
995 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
996 bool missing_state{false};
997 void encode(ProtoWriteBuffer buffer) const override;
998 void calculate_size(ProtoSize &size) const override;
999#ifdef HAS_PROTO_MESSAGE_DUMP
1000 void dump_to(std::string &out) const override;
1001#endif
1002
1003 protected:
1004};
1005#endif
1007 public:
1008 static constexpr uint8_t MESSAGE_TYPE = 28;
1009 static constexpr uint8_t ESTIMATED_SIZE = 4;
1010#ifdef HAS_PROTO_MESSAGE_DUMP
1011 const char *message_name() const override { return "subscribe_logs_request"; }
1012#endif
1014 bool dump_config{false};
1015#ifdef HAS_PROTO_MESSAGE_DUMP
1016 void dump_to(std::string &out) const override;
1017#endif
1018
1019 protected:
1020 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1021};
1023 public:
1024 static constexpr uint8_t MESSAGE_TYPE = 29;
1025 static constexpr uint8_t ESTIMATED_SIZE = 11;
1026#ifdef HAS_PROTO_MESSAGE_DUMP
1027 const char *message_name() const override { return "subscribe_logs_response"; }
1028#endif
1030 const uint8_t *message_ptr_{nullptr};
1031 size_t message_len_{0};
1032 void set_message(const uint8_t *data, size_t len) {
1033 this->message_ptr_ = data;
1034 this->message_len_ = len;
1035 }
1036 void encode(ProtoWriteBuffer buffer) const override;
1037 void calculate_size(ProtoSize &size) const override;
1038#ifdef HAS_PROTO_MESSAGE_DUMP
1039 void dump_to(std::string &out) const override;
1040#endif
1041
1042 protected:
1043};
1044#ifdef USE_API_NOISE
1046 public:
1047 static constexpr uint8_t MESSAGE_TYPE = 124;
1048 static constexpr uint8_t ESTIMATED_SIZE = 9;
1049#ifdef HAS_PROTO_MESSAGE_DUMP
1050 const char *message_name() const override { return "noise_encryption_set_key_request"; }
1051#endif
1052 std::string key{};
1053#ifdef HAS_PROTO_MESSAGE_DUMP
1054 void dump_to(std::string &out) const override;
1055#endif
1056
1057 protected:
1058 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1059};
1061 public:
1062 static constexpr uint8_t MESSAGE_TYPE = 125;
1063 static constexpr uint8_t ESTIMATED_SIZE = 2;
1064#ifdef HAS_PROTO_MESSAGE_DUMP
1065 const char *message_name() const override { return "noise_encryption_set_key_response"; }
1066#endif
1067 bool success{false};
1068 void encode(ProtoWriteBuffer buffer) const override;
1069 void calculate_size(ProtoSize &size) const override;
1070#ifdef HAS_PROTO_MESSAGE_DUMP
1071 void dump_to(std::string &out) const override;
1072#endif
1073
1074 protected:
1075};
1076#endif
1077#ifdef USE_API_HOMEASSISTANT_SERVICES
1079 public:
1080 static constexpr uint8_t MESSAGE_TYPE = 34;
1081 static constexpr uint8_t ESTIMATED_SIZE = 0;
1082#ifdef HAS_PROTO_MESSAGE_DUMP
1083 const char *message_name() const override { return "subscribe_homeassistant_services_request"; }
1084#endif
1085#ifdef HAS_PROTO_MESSAGE_DUMP
1086 void dump_to(std::string &out) const override;
1087#endif
1088
1089 protected:
1090};
1092 public:
1094 void set_key(const StringRef &ref) { this->key_ref_ = ref; }
1095 std::string value{};
1096 void encode(ProtoWriteBuffer buffer) const override;
1097 void calculate_size(ProtoSize &size) const override;
1098#ifdef HAS_PROTO_MESSAGE_DUMP
1099 void dump_to(std::string &out) const override;
1100#endif
1101
1102 protected:
1103};
1105 public:
1106 static constexpr uint8_t MESSAGE_TYPE = 35;
1107 static constexpr uint8_t ESTIMATED_SIZE = 113;
1108#ifdef HAS_PROTO_MESSAGE_DUMP
1109 const char *message_name() const override { return "homeassistant_action_request"; }
1110#endif
1112 void set_service(const StringRef &ref) { this->service_ref_ = ref; }
1113 std::vector<HomeassistantServiceMap> data{};
1114 std::vector<HomeassistantServiceMap> data_template{};
1115 std::vector<HomeassistantServiceMap> variables{};
1116 bool is_event{false};
1117 void encode(ProtoWriteBuffer buffer) const override;
1118 void calculate_size(ProtoSize &size) const override;
1119#ifdef HAS_PROTO_MESSAGE_DUMP
1120 void dump_to(std::string &out) const override;
1121#endif
1122
1123 protected:
1124};
1125#endif
1126#ifdef USE_API_HOMEASSISTANT_STATES
1128 public:
1129 static constexpr uint8_t MESSAGE_TYPE = 38;
1130 static constexpr uint8_t ESTIMATED_SIZE = 0;
1131#ifdef HAS_PROTO_MESSAGE_DUMP
1132 const char *message_name() const override { return "subscribe_home_assistant_states_request"; }
1133#endif
1134#ifdef HAS_PROTO_MESSAGE_DUMP
1135 void dump_to(std::string &out) const override;
1136#endif
1137
1138 protected:
1139};
1141 public:
1142 static constexpr uint8_t MESSAGE_TYPE = 39;
1143 static constexpr uint8_t ESTIMATED_SIZE = 20;
1144#ifdef HAS_PROTO_MESSAGE_DUMP
1145 const char *message_name() const override { return "subscribe_home_assistant_state_response"; }
1146#endif
1148 void set_entity_id(const StringRef &ref) { this->entity_id_ref_ = ref; }
1150 void set_attribute(const StringRef &ref) { this->attribute_ref_ = ref; }
1151 bool once{false};
1152 void encode(ProtoWriteBuffer buffer) const override;
1153 void calculate_size(ProtoSize &size) const override;
1154#ifdef HAS_PROTO_MESSAGE_DUMP
1155 void dump_to(std::string &out) const override;
1156#endif
1157
1158 protected:
1159};
1161 public:
1162 static constexpr uint8_t MESSAGE_TYPE = 40;
1163 static constexpr uint8_t ESTIMATED_SIZE = 27;
1164#ifdef HAS_PROTO_MESSAGE_DUMP
1165 const char *message_name() const override { return "home_assistant_state_response"; }
1166#endif
1167 std::string entity_id{};
1168 std::string state{};
1169 std::string attribute{};
1170#ifdef HAS_PROTO_MESSAGE_DUMP
1171 void dump_to(std::string &out) const override;
1172#endif
1173
1174 protected:
1175 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1176};
1177#endif
1178class GetTimeRequest final : public ProtoMessage {
1179 public:
1180 static constexpr uint8_t MESSAGE_TYPE = 36;
1181 static constexpr uint8_t ESTIMATED_SIZE = 0;
1182#ifdef HAS_PROTO_MESSAGE_DUMP
1183 const char *message_name() const override { return "get_time_request"; }
1184#endif
1185#ifdef HAS_PROTO_MESSAGE_DUMP
1186 void dump_to(std::string &out) const override;
1187#endif
1188
1189 protected:
1190};
1192 public:
1193 static constexpr uint8_t MESSAGE_TYPE = 37;
1194 static constexpr uint8_t ESTIMATED_SIZE = 24;
1195#ifdef HAS_PROTO_MESSAGE_DUMP
1196 const char *message_name() const override { return "get_time_response"; }
1197#endif
1198 uint32_t epoch_seconds{0};
1199 const uint8_t *timezone{nullptr};
1200 uint16_t timezone_len{0};
1201#ifdef HAS_PROTO_MESSAGE_DUMP
1202 void dump_to(std::string &out) const override;
1203#endif
1204
1205 protected:
1206 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1207 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1208};
1209#ifdef USE_API_SERVICES
1211 public:
1213 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
1215 void encode(ProtoWriteBuffer buffer) const override;
1216 void calculate_size(ProtoSize &size) const override;
1217#ifdef HAS_PROTO_MESSAGE_DUMP
1218 void dump_to(std::string &out) const override;
1219#endif
1220
1221 protected:
1222};
1224 public:
1225 static constexpr uint8_t MESSAGE_TYPE = 41;
1226 static constexpr uint8_t ESTIMATED_SIZE = 48;
1227#ifdef HAS_PROTO_MESSAGE_DUMP
1228 const char *message_name() const override { return "list_entities_services_response"; }
1229#endif
1231 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
1232 uint32_t key{0};
1233 std::vector<ListEntitiesServicesArgument> args{};
1234 void encode(ProtoWriteBuffer buffer) const override;
1235 void calculate_size(ProtoSize &size) const override;
1236#ifdef HAS_PROTO_MESSAGE_DUMP
1237 void dump_to(std::string &out) const override;
1238#endif
1239
1240 protected:
1241};
1243 public:
1244 bool bool_{false};
1245 int32_t legacy_int{0};
1246 float float_{0.0f};
1247 std::string string_{};
1248 int32_t int_{0};
1249 std::vector<bool> bool_array{};
1250 std::vector<int32_t> int_array{};
1251 std::vector<float> float_array{};
1252 std::vector<std::string> string_array{};
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 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1261};
1263 public:
1264 static constexpr uint8_t MESSAGE_TYPE = 42;
1265 static constexpr uint8_t ESTIMATED_SIZE = 39;
1266#ifdef HAS_PROTO_MESSAGE_DUMP
1267 const char *message_name() const override { return "execute_service_request"; }
1268#endif
1269 uint32_t key{0};
1270 std::vector<ExecuteServiceArgument> args{};
1271#ifdef HAS_PROTO_MESSAGE_DUMP
1272 void dump_to(std::string &out) const override;
1273#endif
1274
1275 protected:
1276 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1277 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1278};
1279#endif
1280#ifdef USE_CAMERA
1282 public:
1283 static constexpr uint8_t MESSAGE_TYPE = 43;
1284 static constexpr uint8_t ESTIMATED_SIZE = 40;
1285#ifdef HAS_PROTO_MESSAGE_DUMP
1286 const char *message_name() const override { return "list_entities_camera_response"; }
1287#endif
1288 void encode(ProtoWriteBuffer buffer) const override;
1289 void calculate_size(ProtoSize &size) const override;
1290#ifdef HAS_PROTO_MESSAGE_DUMP
1291 void dump_to(std::string &out) const override;
1292#endif
1293
1294 protected:
1295};
1297 public:
1298 static constexpr uint8_t MESSAGE_TYPE = 44;
1299 static constexpr uint8_t ESTIMATED_SIZE = 20;
1300#ifdef HAS_PROTO_MESSAGE_DUMP
1301 const char *message_name() const override { return "camera_image_response"; }
1302#endif
1303 const uint8_t *data_ptr_{nullptr};
1304 size_t data_len_{0};
1305 void set_data(const uint8_t *data, size_t len) {
1306 this->data_ptr_ = data;
1307 this->data_len_ = len;
1308 }
1309 bool done{false};
1310 void encode(ProtoWriteBuffer buffer) const override;
1311 void calculate_size(ProtoSize &size) const override;
1312#ifdef HAS_PROTO_MESSAGE_DUMP
1313 void dump_to(std::string &out) const override;
1314#endif
1315
1316 protected:
1317};
1319 public:
1320 static constexpr uint8_t MESSAGE_TYPE = 45;
1321 static constexpr uint8_t ESTIMATED_SIZE = 4;
1322#ifdef HAS_PROTO_MESSAGE_DUMP
1323 const char *message_name() const override { return "camera_image_request"; }
1324#endif
1325 bool single{false};
1326 bool stream{false};
1327#ifdef HAS_PROTO_MESSAGE_DUMP
1328 void dump_to(std::string &out) const override;
1329#endif
1330
1331 protected:
1332 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1333};
1334#endif
1335#ifdef USE_CLIMATE
1337 public:
1338 static constexpr uint8_t MESSAGE_TYPE = 46;
1339 static constexpr uint8_t ESTIMATED_SIZE = 145;
1340#ifdef HAS_PROTO_MESSAGE_DUMP
1341 const char *message_name() const override { return "list_entities_climate_response"; }
1342#endif
1345 const std::set<climate::ClimateMode> *supported_modes{};
1349 bool supports_action{false};
1350 const std::set<climate::ClimateFanMode> *supported_fan_modes{};
1351 const std::set<climate::ClimateSwingMode> *supported_swing_modes{};
1352 const std::set<std::string> *supported_custom_fan_modes{};
1353 const std::set<climate::ClimatePreset> *supported_presets{};
1354 const std::set<std::string> *supported_custom_presets{};
1360 void encode(ProtoWriteBuffer buffer) const override;
1361 void calculate_size(ProtoSize &size) const override;
1362#ifdef HAS_PROTO_MESSAGE_DUMP
1363 void dump_to(std::string &out) const override;
1364#endif
1365
1366 protected:
1367};
1369 public:
1370 static constexpr uint8_t MESSAGE_TYPE = 47;
1371 static constexpr uint8_t ESTIMATED_SIZE = 68;
1372#ifdef HAS_PROTO_MESSAGE_DUMP
1373 const char *message_name() const override { return "climate_state_response"; }
1374#endif
1384 void set_custom_fan_mode(const StringRef &ref) { this->custom_fan_mode_ref_ = ref; }
1387 void set_custom_preset(const StringRef &ref) { this->custom_preset_ref_ = ref; }
1388 float current_humidity{0.0f};
1389 float target_humidity{0.0f};
1390 void encode(ProtoWriteBuffer buffer) const override;
1391 void calculate_size(ProtoSize &size) const override;
1392#ifdef HAS_PROTO_MESSAGE_DUMP
1393 void dump_to(std::string &out) const override;
1394#endif
1395
1396 protected:
1397};
1399 public:
1400 static constexpr uint8_t MESSAGE_TYPE = 48;
1401 static constexpr uint8_t ESTIMATED_SIZE = 84;
1402#ifdef HAS_PROTO_MESSAGE_DUMP
1403 const char *message_name() const override { return "climate_command_request"; }
1404#endif
1405 bool has_mode{false};
1413 bool has_fan_mode{false};
1415 bool has_swing_mode{false};
1418 std::string custom_fan_mode{};
1419 bool has_preset{false};
1422 std::string custom_preset{};
1424 float target_humidity{0.0f};
1425#ifdef HAS_PROTO_MESSAGE_DUMP
1426 void dump_to(std::string &out) const override;
1427#endif
1428
1429 protected:
1430 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1431 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1432 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1433};
1434#endif
1435#ifdef USE_NUMBER
1437 public:
1438 static constexpr uint8_t MESSAGE_TYPE = 49;
1439 static constexpr uint8_t ESTIMATED_SIZE = 75;
1440#ifdef HAS_PROTO_MESSAGE_DUMP
1441 const char *message_name() const override { return "list_entities_number_response"; }
1442#endif
1443 float min_value{0.0f};
1444 float max_value{0.0f};
1445 float step{0.0f};
1450 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
1451 void encode(ProtoWriteBuffer buffer) const override;
1452 void calculate_size(ProtoSize &size) const override;
1453#ifdef HAS_PROTO_MESSAGE_DUMP
1454 void dump_to(std::string &out) const override;
1455#endif
1456
1457 protected:
1458};
1460 public:
1461 static constexpr uint8_t MESSAGE_TYPE = 50;
1462 static constexpr uint8_t ESTIMATED_SIZE = 16;
1463#ifdef HAS_PROTO_MESSAGE_DUMP
1464 const char *message_name() const override { return "number_state_response"; }
1465#endif
1466 float state{0.0f};
1467 bool missing_state{false};
1468 void encode(ProtoWriteBuffer buffer) const override;
1469 void calculate_size(ProtoSize &size) const override;
1470#ifdef HAS_PROTO_MESSAGE_DUMP
1471 void dump_to(std::string &out) const override;
1472#endif
1473
1474 protected:
1475};
1477 public:
1478 static constexpr uint8_t MESSAGE_TYPE = 51;
1479 static constexpr uint8_t ESTIMATED_SIZE = 14;
1480#ifdef HAS_PROTO_MESSAGE_DUMP
1481 const char *message_name() const override { return "number_command_request"; }
1482#endif
1483 float state{0.0f};
1484#ifdef HAS_PROTO_MESSAGE_DUMP
1485 void dump_to(std::string &out) const override;
1486#endif
1487
1488 protected:
1489 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1490 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1491};
1492#endif
1493#ifdef USE_SELECT
1495 public:
1496 static constexpr uint8_t MESSAGE_TYPE = 52;
1497 static constexpr uint8_t ESTIMATED_SIZE = 58;
1498#ifdef HAS_PROTO_MESSAGE_DUMP
1499 const char *message_name() const override { return "list_entities_select_response"; }
1500#endif
1501 const std::vector<std::string> *options{};
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 = 53;
1513 static constexpr uint8_t ESTIMATED_SIZE = 20;
1514#ifdef HAS_PROTO_MESSAGE_DUMP
1515 const char *message_name() const override { return "select_state_response"; }
1516#endif
1518 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
1519 bool missing_state{false};
1520 void encode(ProtoWriteBuffer buffer) const override;
1521 void calculate_size(ProtoSize &size) const override;
1522#ifdef HAS_PROTO_MESSAGE_DUMP
1523 void dump_to(std::string &out) const override;
1524#endif
1525
1526 protected:
1527};
1529 public:
1530 static constexpr uint8_t MESSAGE_TYPE = 54;
1531 static constexpr uint8_t ESTIMATED_SIZE = 18;
1532#ifdef HAS_PROTO_MESSAGE_DUMP
1533 const char *message_name() const override { return "select_command_request"; }
1534#endif
1535 std::string state{};
1536#ifdef HAS_PROTO_MESSAGE_DUMP
1537 void dump_to(std::string &out) const override;
1538#endif
1539
1540 protected:
1541 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1542 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1543 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1544};
1545#endif
1546#ifdef USE_SIREN
1548 public:
1549 static constexpr uint8_t MESSAGE_TYPE = 55;
1550 static constexpr uint8_t ESTIMATED_SIZE = 62;
1551#ifdef HAS_PROTO_MESSAGE_DUMP
1552 const char *message_name() const override { return "list_entities_siren_response"; }
1553#endif
1554 std::vector<std::string> tones{};
1556 bool supports_volume{false};
1557 void encode(ProtoWriteBuffer buffer) const override;
1558 void calculate_size(ProtoSize &size) const override;
1559#ifdef HAS_PROTO_MESSAGE_DUMP
1560 void dump_to(std::string &out) const override;
1561#endif
1562
1563 protected:
1564};
1566 public:
1567 static constexpr uint8_t MESSAGE_TYPE = 56;
1568 static constexpr uint8_t ESTIMATED_SIZE = 11;
1569#ifdef HAS_PROTO_MESSAGE_DUMP
1570 const char *message_name() const override { return "siren_state_response"; }
1571#endif
1572 bool state{false};
1573 void encode(ProtoWriteBuffer buffer) const override;
1574 void calculate_size(ProtoSize &size) const override;
1575#ifdef HAS_PROTO_MESSAGE_DUMP
1576 void dump_to(std::string &out) const override;
1577#endif
1578
1579 protected:
1580};
1582 public:
1583 static constexpr uint8_t MESSAGE_TYPE = 57;
1584 static constexpr uint8_t ESTIMATED_SIZE = 37;
1585#ifdef HAS_PROTO_MESSAGE_DUMP
1586 const char *message_name() const override { return "siren_command_request"; }
1587#endif
1588 bool has_state{false};
1589 bool state{false};
1590 bool has_tone{false};
1591 std::string tone{};
1592 bool has_duration{false};
1593 uint32_t duration{0};
1594 bool has_volume{false};
1595 float volume{0.0f};
1596#ifdef HAS_PROTO_MESSAGE_DUMP
1597 void dump_to(std::string &out) const override;
1598#endif
1599
1600 protected:
1601 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1602 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1603 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1604};
1605#endif
1606#ifdef USE_LOCK
1608 public:
1609 static constexpr uint8_t MESSAGE_TYPE = 58;
1610 static constexpr uint8_t ESTIMATED_SIZE = 55;
1611#ifdef HAS_PROTO_MESSAGE_DUMP
1612 const char *message_name() const override { return "list_entities_lock_response"; }
1613#endif
1614 bool assumed_state{false};
1615 bool supports_open{false};
1616 bool requires_code{false};
1618 void set_code_format(const StringRef &ref) { this->code_format_ref_ = ref; }
1619 void encode(ProtoWriteBuffer buffer) const override;
1620 void calculate_size(ProtoSize &size) const override;
1621#ifdef HAS_PROTO_MESSAGE_DUMP
1622 void dump_to(std::string &out) const override;
1623#endif
1624
1625 protected:
1626};
1628 public:
1629 static constexpr uint8_t MESSAGE_TYPE = 59;
1630 static constexpr uint8_t ESTIMATED_SIZE = 11;
1631#ifdef HAS_PROTO_MESSAGE_DUMP
1632 const char *message_name() const override { return "lock_state_response"; }
1633#endif
1635 void encode(ProtoWriteBuffer buffer) const override;
1636 void calculate_size(ProtoSize &size) const override;
1637#ifdef HAS_PROTO_MESSAGE_DUMP
1638 void dump_to(std::string &out) const override;
1639#endif
1640
1641 protected:
1642};
1644 public:
1645 static constexpr uint8_t MESSAGE_TYPE = 60;
1646 static constexpr uint8_t ESTIMATED_SIZE = 22;
1647#ifdef HAS_PROTO_MESSAGE_DUMP
1648 const char *message_name() const override { return "lock_command_request"; }
1649#endif
1651 bool has_code{false};
1652 std::string code{};
1653#ifdef HAS_PROTO_MESSAGE_DUMP
1654 void dump_to(std::string &out) const override;
1655#endif
1656
1657 protected:
1658 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1659 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1660 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1661};
1662#endif
1663#ifdef USE_BUTTON
1665 public:
1666 static constexpr uint8_t MESSAGE_TYPE = 61;
1667 static constexpr uint8_t ESTIMATED_SIZE = 49;
1668#ifdef HAS_PROTO_MESSAGE_DUMP
1669 const char *message_name() const override { return "list_entities_button_response"; }
1670#endif
1672 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
1673 void encode(ProtoWriteBuffer buffer) const override;
1674 void calculate_size(ProtoSize &size) const override;
1675#ifdef HAS_PROTO_MESSAGE_DUMP
1676 void dump_to(std::string &out) const override;
1677#endif
1678
1679 protected:
1680};
1682 public:
1683 static constexpr uint8_t MESSAGE_TYPE = 62;
1684 static constexpr uint8_t ESTIMATED_SIZE = 9;
1685#ifdef HAS_PROTO_MESSAGE_DUMP
1686 const char *message_name() const override { return "button_command_request"; }
1687#endif
1688#ifdef HAS_PROTO_MESSAGE_DUMP
1689 void dump_to(std::string &out) const override;
1690#endif
1691
1692 protected:
1693 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1694 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1695};
1696#endif
1697#ifdef USE_MEDIA_PLAYER
1699 public:
1701 void set_format(const StringRef &ref) { this->format_ref_ = ref; }
1702 uint32_t sample_rate{0};
1703 uint32_t num_channels{0};
1705 uint32_t sample_bytes{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 = 63;
1717 static constexpr uint8_t ESTIMATED_SIZE = 80;
1718#ifdef HAS_PROTO_MESSAGE_DUMP
1719 const char *message_name() const override { return "list_entities_media_player_response"; }
1720#endif
1721 bool supports_pause{false};
1722 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1723 uint32_t feature_flags{0};
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 = 64;
1735 static constexpr uint8_t ESTIMATED_SIZE = 18;
1736#ifdef HAS_PROTO_MESSAGE_DUMP
1737 const char *message_name() const override { return "media_player_state_response"; }
1738#endif
1740 float volume{0.0f};
1741 bool muted{false};
1742 void encode(ProtoWriteBuffer buffer) const override;
1743 void calculate_size(ProtoSize &size) const override;
1744#ifdef HAS_PROTO_MESSAGE_DUMP
1745 void dump_to(std::string &out) const override;
1746#endif
1747
1748 protected:
1749};
1751 public:
1752 static constexpr uint8_t MESSAGE_TYPE = 65;
1753 static constexpr uint8_t ESTIMATED_SIZE = 35;
1754#ifdef HAS_PROTO_MESSAGE_DUMP
1755 const char *message_name() const override { return "media_player_command_request"; }
1756#endif
1757 bool has_command{false};
1759 bool has_volume{false};
1760 float volume{0.0f};
1761 bool has_media_url{false};
1762 std::string media_url{};
1763 bool has_announcement{false};
1764 bool announcement{false};
1765#ifdef HAS_PROTO_MESSAGE_DUMP
1766 void dump_to(std::string &out) const override;
1767#endif
1768
1769 protected:
1770 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1771 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1772 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1773};
1774#endif
1775#ifdef USE_BLUETOOTH_PROXY
1777 public:
1778 static constexpr uint8_t MESSAGE_TYPE = 66;
1779 static constexpr uint8_t ESTIMATED_SIZE = 4;
1780#ifdef HAS_PROTO_MESSAGE_DUMP
1781 const char *message_name() const override { return "subscribe_bluetooth_le_advertisements_request"; }
1782#endif
1783 uint32_t flags{0};
1784#ifdef HAS_PROTO_MESSAGE_DUMP
1785 void dump_to(std::string &out) const override;
1786#endif
1787
1788 protected:
1789 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1790};
1792 public:
1793 uint64_t address{0};
1794 int32_t rssi{0};
1795 uint32_t address_type{0};
1796 uint8_t data[62]{};
1797 uint8_t data_len{0};
1798 void encode(ProtoWriteBuffer buffer) const override;
1799 void calculate_size(ProtoSize &size) const override;
1800#ifdef HAS_PROTO_MESSAGE_DUMP
1801 void dump_to(std::string &out) const override;
1802#endif
1803
1804 protected:
1805};
1807 public:
1808 static constexpr uint8_t MESSAGE_TYPE = 93;
1809 static constexpr uint8_t ESTIMATED_SIZE = 136;
1810#ifdef HAS_PROTO_MESSAGE_DUMP
1811 const char *message_name() const override { return "bluetooth_le_raw_advertisements_response"; }
1812#endif
1813 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
1815 void encode(ProtoWriteBuffer buffer) const override;
1816 void calculate_size(ProtoSize &size) const override;
1817#ifdef HAS_PROTO_MESSAGE_DUMP
1818 void dump_to(std::string &out) const override;
1819#endif
1820
1821 protected:
1822};
1824 public:
1825 static constexpr uint8_t MESSAGE_TYPE = 68;
1826 static constexpr uint8_t ESTIMATED_SIZE = 12;
1827#ifdef HAS_PROTO_MESSAGE_DUMP
1828 const char *message_name() const override { return "bluetooth_device_request"; }
1829#endif
1830 uint64_t address{0};
1832 bool has_address_type{false};
1833 uint32_t address_type{0};
1834#ifdef HAS_PROTO_MESSAGE_DUMP
1835 void dump_to(std::string &out) const override;
1836#endif
1837
1838 protected:
1839 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1840};
1842 public:
1843 static constexpr uint8_t MESSAGE_TYPE = 69;
1844 static constexpr uint8_t ESTIMATED_SIZE = 14;
1845#ifdef HAS_PROTO_MESSAGE_DUMP
1846 const char *message_name() const override { return "bluetooth_device_connection_response"; }
1847#endif
1848 uint64_t address{0};
1849 bool connected{false};
1850 uint32_t mtu{0};
1851 int32_t error{0};
1852 void encode(ProtoWriteBuffer buffer) const override;
1853 void calculate_size(ProtoSize &size) const override;
1854#ifdef HAS_PROTO_MESSAGE_DUMP
1855 void dump_to(std::string &out) const override;
1856#endif
1857
1858 protected:
1859};
1861 public:
1862 static constexpr uint8_t MESSAGE_TYPE = 70;
1863 static constexpr uint8_t ESTIMATED_SIZE = 4;
1864#ifdef HAS_PROTO_MESSAGE_DUMP
1865 const char *message_name() const override { return "bluetooth_gatt_get_services_request"; }
1866#endif
1867 uint64_t address{0};
1868#ifdef HAS_PROTO_MESSAGE_DUMP
1869 void dump_to(std::string &out) const override;
1870#endif
1871
1872 protected:
1873 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1874};
1876 public:
1877 std::array<uint64_t, 2> uuid{};
1878 uint32_t handle{0};
1879 uint32_t short_uuid{0};
1880 void encode(ProtoWriteBuffer buffer) const override;
1881 void calculate_size(ProtoSize &size) const override;
1882#ifdef HAS_PROTO_MESSAGE_DUMP
1883 void dump_to(std::string &out) const override;
1884#endif
1885
1886 protected:
1887};
1889 public:
1890 std::array<uint64_t, 2> uuid{};
1891 uint32_t handle{0};
1892 uint32_t properties{0};
1893 std::vector<BluetoothGATTDescriptor> descriptors{};
1894 uint32_t short_uuid{0};
1895 void encode(ProtoWriteBuffer buffer) const override;
1896 void calculate_size(ProtoSize &size) const override;
1897#ifdef HAS_PROTO_MESSAGE_DUMP
1898 void dump_to(std::string &out) const override;
1899#endif
1900
1901 protected:
1902};
1904 public:
1905 std::array<uint64_t, 2> uuid{};
1906 uint32_t handle{0};
1907 std::vector<BluetoothGATTCharacteristic> characteristics{};
1908 uint32_t short_uuid{0};
1909 void encode(ProtoWriteBuffer buffer) const override;
1910 void calculate_size(ProtoSize &size) const override;
1911#ifdef HAS_PROTO_MESSAGE_DUMP
1912 void dump_to(std::string &out) const override;
1913#endif
1914
1915 protected:
1916};
1918 public:
1919 static constexpr uint8_t MESSAGE_TYPE = 71;
1920 static constexpr uint8_t ESTIMATED_SIZE = 38;
1921#ifdef HAS_PROTO_MESSAGE_DUMP
1922 const char *message_name() const override { return "bluetooth_gatt_get_services_response"; }
1923#endif
1924 uint64_t address{0};
1925 std::vector<BluetoothGATTService> services{};
1926 void encode(ProtoWriteBuffer buffer) const override;
1927 void calculate_size(ProtoSize &size) const override;
1928#ifdef HAS_PROTO_MESSAGE_DUMP
1929 void dump_to(std::string &out) const override;
1930#endif
1931
1932 protected:
1933};
1935 public:
1936 static constexpr uint8_t MESSAGE_TYPE = 72;
1937 static constexpr uint8_t ESTIMATED_SIZE = 4;
1938#ifdef HAS_PROTO_MESSAGE_DUMP
1939 const char *message_name() const override { return "bluetooth_gatt_get_services_done_response"; }
1940#endif
1941 uint64_t address{0};
1942 void encode(ProtoWriteBuffer buffer) const override;
1943 void calculate_size(ProtoSize &size) const override;
1944#ifdef HAS_PROTO_MESSAGE_DUMP
1945 void dump_to(std::string &out) const override;
1946#endif
1947
1948 protected:
1949};
1951 public:
1952 static constexpr uint8_t MESSAGE_TYPE = 73;
1953 static constexpr uint8_t ESTIMATED_SIZE = 8;
1954#ifdef HAS_PROTO_MESSAGE_DUMP
1955 const char *message_name() const override { return "bluetooth_gatt_read_request"; }
1956#endif
1957 uint64_t address{0};
1958 uint32_t handle{0};
1959#ifdef HAS_PROTO_MESSAGE_DUMP
1960 void dump_to(std::string &out) const override;
1961#endif
1962
1963 protected:
1964 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1965};
1967 public:
1968 static constexpr uint8_t MESSAGE_TYPE = 74;
1969 static constexpr uint8_t ESTIMATED_SIZE = 17;
1970#ifdef HAS_PROTO_MESSAGE_DUMP
1971 const char *message_name() const override { return "bluetooth_gatt_read_response"; }
1972#endif
1973 uint64_t address{0};
1974 uint32_t handle{0};
1975 const uint8_t *data_ptr_{nullptr};
1976 size_t data_len_{0};
1977 void set_data(const uint8_t *data, size_t len) {
1978 this->data_ptr_ = data;
1979 this->data_len_ = len;
1980 }
1981 void encode(ProtoWriteBuffer buffer) const override;
1982 void calculate_size(ProtoSize &size) const override;
1983#ifdef HAS_PROTO_MESSAGE_DUMP
1984 void dump_to(std::string &out) const override;
1985#endif
1986
1987 protected:
1988};
1990 public:
1991 static constexpr uint8_t MESSAGE_TYPE = 75;
1992 static constexpr uint8_t ESTIMATED_SIZE = 29;
1993#ifdef HAS_PROTO_MESSAGE_DUMP
1994 const char *message_name() const override { return "bluetooth_gatt_write_request"; }
1995#endif
1996 uint64_t address{0};
1997 uint32_t handle{0};
1998 bool response{false};
1999 const uint8_t *data{nullptr};
2000 uint16_t data_len{0};
2001#ifdef HAS_PROTO_MESSAGE_DUMP
2002 void dump_to(std::string &out) const override;
2003#endif
2004
2005 protected:
2006 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2007 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2008};
2010 public:
2011 static constexpr uint8_t MESSAGE_TYPE = 76;
2012 static constexpr uint8_t ESTIMATED_SIZE = 8;
2013#ifdef HAS_PROTO_MESSAGE_DUMP
2014 const char *message_name() const override { return "bluetooth_gatt_read_descriptor_request"; }
2015#endif
2016 uint64_t address{0};
2017 uint32_t handle{0};
2018#ifdef HAS_PROTO_MESSAGE_DUMP
2019 void dump_to(std::string &out) const override;
2020#endif
2021
2022 protected:
2023 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2024};
2026 public:
2027 static constexpr uint8_t MESSAGE_TYPE = 77;
2028 static constexpr uint8_t ESTIMATED_SIZE = 27;
2029#ifdef HAS_PROTO_MESSAGE_DUMP
2030 const char *message_name() const override { return "bluetooth_gatt_write_descriptor_request"; }
2031#endif
2032 uint64_t address{0};
2033 uint32_t handle{0};
2034 const uint8_t *data{nullptr};
2035 uint16_t data_len{0};
2036#ifdef HAS_PROTO_MESSAGE_DUMP
2037 void dump_to(std::string &out) const override;
2038#endif
2039
2040 protected:
2041 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2042 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2043};
2045 public:
2046 static constexpr uint8_t MESSAGE_TYPE = 78;
2047 static constexpr uint8_t ESTIMATED_SIZE = 10;
2048#ifdef HAS_PROTO_MESSAGE_DUMP
2049 const char *message_name() const override { return "bluetooth_gatt_notify_request"; }
2050#endif
2051 uint64_t address{0};
2052 uint32_t handle{0};
2053 bool enable{false};
2054#ifdef HAS_PROTO_MESSAGE_DUMP
2055 void dump_to(std::string &out) const override;
2056#endif
2057
2058 protected:
2059 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2060};
2062 public:
2063 static constexpr uint8_t MESSAGE_TYPE = 79;
2064 static constexpr uint8_t ESTIMATED_SIZE = 17;
2065#ifdef HAS_PROTO_MESSAGE_DUMP
2066 const char *message_name() const override { return "bluetooth_gatt_notify_data_response"; }
2067#endif
2068 uint64_t address{0};
2069 uint32_t handle{0};
2070 const uint8_t *data_ptr_{nullptr};
2071 size_t data_len_{0};
2072 void set_data(const uint8_t *data, size_t len) {
2073 this->data_ptr_ = data;
2074 this->data_len_ = len;
2075 }
2076 void encode(ProtoWriteBuffer buffer) const override;
2077 void calculate_size(ProtoSize &size) const override;
2078#ifdef HAS_PROTO_MESSAGE_DUMP
2079 void dump_to(std::string &out) const override;
2080#endif
2081
2082 protected:
2083};
2085 public:
2086 static constexpr uint8_t MESSAGE_TYPE = 80;
2087 static constexpr uint8_t ESTIMATED_SIZE = 0;
2088#ifdef HAS_PROTO_MESSAGE_DUMP
2089 const char *message_name() const override { return "subscribe_bluetooth_connections_free_request"; }
2090#endif
2091#ifdef HAS_PROTO_MESSAGE_DUMP
2092 void dump_to(std::string &out) const override;
2093#endif
2094
2095 protected:
2096};
2098 public:
2099 static constexpr uint8_t MESSAGE_TYPE = 81;
2100 static constexpr uint8_t ESTIMATED_SIZE = 20;
2101#ifdef HAS_PROTO_MESSAGE_DUMP
2102 const char *message_name() const override { return "bluetooth_connections_free_response"; }
2103#endif
2104 uint32_t free{0};
2105 uint32_t limit{0};
2106 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2107 void encode(ProtoWriteBuffer buffer) const override;
2108 void calculate_size(ProtoSize &size) const override;
2109#ifdef HAS_PROTO_MESSAGE_DUMP
2110 void dump_to(std::string &out) const override;
2111#endif
2112
2113 protected:
2114};
2116 public:
2117 static constexpr uint8_t MESSAGE_TYPE = 82;
2118 static constexpr uint8_t ESTIMATED_SIZE = 12;
2119#ifdef HAS_PROTO_MESSAGE_DUMP
2120 const char *message_name() const override { return "bluetooth_gatt_error_response"; }
2121#endif
2122 uint64_t address{0};
2123 uint32_t handle{0};
2124 int32_t error{0};
2125 void encode(ProtoWriteBuffer buffer) const override;
2126 void calculate_size(ProtoSize &size) const override;
2127#ifdef HAS_PROTO_MESSAGE_DUMP
2128 void dump_to(std::string &out) const override;
2129#endif
2130
2131 protected:
2132};
2134 public:
2135 static constexpr uint8_t MESSAGE_TYPE = 83;
2136 static constexpr uint8_t ESTIMATED_SIZE = 8;
2137#ifdef HAS_PROTO_MESSAGE_DUMP
2138 const char *message_name() const override { return "bluetooth_gatt_write_response"; }
2139#endif
2140 uint64_t address{0};
2141 uint32_t handle{0};
2142 void encode(ProtoWriteBuffer buffer) const override;
2143 void calculate_size(ProtoSize &size) const override;
2144#ifdef HAS_PROTO_MESSAGE_DUMP
2145 void dump_to(std::string &out) const override;
2146#endif
2147
2148 protected:
2149};
2151 public:
2152 static constexpr uint8_t MESSAGE_TYPE = 84;
2153 static constexpr uint8_t ESTIMATED_SIZE = 8;
2154#ifdef HAS_PROTO_MESSAGE_DUMP
2155 const char *message_name() const override { return "bluetooth_gatt_notify_response"; }
2156#endif
2157 uint64_t address{0};
2158 uint32_t handle{0};
2159 void encode(ProtoWriteBuffer buffer) const override;
2160 void calculate_size(ProtoSize &size) const override;
2161#ifdef HAS_PROTO_MESSAGE_DUMP
2162 void dump_to(std::string &out) const override;
2163#endif
2164
2165 protected:
2166};
2168 public:
2169 static constexpr uint8_t MESSAGE_TYPE = 85;
2170 static constexpr uint8_t ESTIMATED_SIZE = 10;
2171#ifdef HAS_PROTO_MESSAGE_DUMP
2172 const char *message_name() const override { return "bluetooth_device_pairing_response"; }
2173#endif
2174 uint64_t address{0};
2175 bool paired{false};
2176 int32_t error{0};
2177 void encode(ProtoWriteBuffer buffer) const override;
2178 void calculate_size(ProtoSize &size) const override;
2179#ifdef HAS_PROTO_MESSAGE_DUMP
2180 void dump_to(std::string &out) const override;
2181#endif
2182
2183 protected:
2184};
2186 public:
2187 static constexpr uint8_t MESSAGE_TYPE = 86;
2188 static constexpr uint8_t ESTIMATED_SIZE = 10;
2189#ifdef HAS_PROTO_MESSAGE_DUMP
2190 const char *message_name() const override { return "bluetooth_device_unpairing_response"; }
2191#endif
2192 uint64_t address{0};
2193 bool success{false};
2194 int32_t error{0};
2195 void encode(ProtoWriteBuffer buffer) const override;
2196 void calculate_size(ProtoSize &size) const override;
2197#ifdef HAS_PROTO_MESSAGE_DUMP
2198 void dump_to(std::string &out) const override;
2199#endif
2200
2201 protected:
2202};
2204 public:
2205 static constexpr uint8_t MESSAGE_TYPE = 87;
2206 static constexpr uint8_t ESTIMATED_SIZE = 0;
2207#ifdef HAS_PROTO_MESSAGE_DUMP
2208 const char *message_name() const override { return "unsubscribe_bluetooth_le_advertisements_request"; }
2209#endif
2210#ifdef HAS_PROTO_MESSAGE_DUMP
2211 void dump_to(std::string &out) const override;
2212#endif
2213
2214 protected:
2215};
2217 public:
2218 static constexpr uint8_t MESSAGE_TYPE = 88;
2219 static constexpr uint8_t ESTIMATED_SIZE = 10;
2220#ifdef HAS_PROTO_MESSAGE_DUMP
2221 const char *message_name() const override { return "bluetooth_device_clear_cache_response"; }
2222#endif
2223 uint64_t address{0};
2224 bool success{false};
2225 int32_t error{0};
2226 void encode(ProtoWriteBuffer buffer) const override;
2227 void calculate_size(ProtoSize &size) const override;
2228#ifdef HAS_PROTO_MESSAGE_DUMP
2229 void dump_to(std::string &out) const override;
2230#endif
2231
2232 protected:
2233};
2235 public:
2236 static constexpr uint8_t MESSAGE_TYPE = 126;
2237 static constexpr uint8_t ESTIMATED_SIZE = 6;
2238#ifdef HAS_PROTO_MESSAGE_DUMP
2239 const char *message_name() const override { return "bluetooth_scanner_state_response"; }
2240#endif
2244 void encode(ProtoWriteBuffer buffer) const override;
2245 void calculate_size(ProtoSize &size) const override;
2246#ifdef HAS_PROTO_MESSAGE_DUMP
2247 void dump_to(std::string &out) const override;
2248#endif
2249
2250 protected:
2251};
2253 public:
2254 static constexpr uint8_t MESSAGE_TYPE = 127;
2255 static constexpr uint8_t ESTIMATED_SIZE = 2;
2256#ifdef HAS_PROTO_MESSAGE_DUMP
2257 const char *message_name() const override { return "bluetooth_scanner_set_mode_request"; }
2258#endif
2260#ifdef HAS_PROTO_MESSAGE_DUMP
2261 void dump_to(std::string &out) const override;
2262#endif
2263
2264 protected:
2265 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2266};
2267#endif
2268#ifdef USE_VOICE_ASSISTANT
2270 public:
2271 static constexpr uint8_t MESSAGE_TYPE = 89;
2272 static constexpr uint8_t ESTIMATED_SIZE = 6;
2273#ifdef HAS_PROTO_MESSAGE_DUMP
2274 const char *message_name() const override { return "subscribe_voice_assistant_request"; }
2275#endif
2276 bool subscribe{false};
2277 uint32_t flags{0};
2278#ifdef HAS_PROTO_MESSAGE_DUMP
2279 void dump_to(std::string &out) const override;
2280#endif
2281
2282 protected:
2283 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2284};
2286 public:
2288 uint32_t auto_gain{0};
2290 void encode(ProtoWriteBuffer buffer) const override;
2291 void calculate_size(ProtoSize &size) const override;
2292#ifdef HAS_PROTO_MESSAGE_DUMP
2293 void dump_to(std::string &out) const override;
2294#endif
2295
2296 protected:
2297};
2299 public:
2300 static constexpr uint8_t MESSAGE_TYPE = 90;
2301 static constexpr uint8_t ESTIMATED_SIZE = 41;
2302#ifdef HAS_PROTO_MESSAGE_DUMP
2303 const char *message_name() const override { return "voice_assistant_request"; }
2304#endif
2305 bool start{false};
2307 void set_conversation_id(const StringRef &ref) { this->conversation_id_ref_ = ref; }
2308 uint32_t flags{0};
2311 void set_wake_word_phrase(const StringRef &ref) { this->wake_word_phrase_ref_ = ref; }
2312 void encode(ProtoWriteBuffer buffer) const override;
2313 void calculate_size(ProtoSize &size) const override;
2314#ifdef HAS_PROTO_MESSAGE_DUMP
2315 void dump_to(std::string &out) const override;
2316#endif
2317
2318 protected:
2319};
2321 public:
2322 static constexpr uint8_t MESSAGE_TYPE = 91;
2323 static constexpr uint8_t ESTIMATED_SIZE = 6;
2324#ifdef HAS_PROTO_MESSAGE_DUMP
2325 const char *message_name() const override { return "voice_assistant_response"; }
2326#endif
2327 uint32_t port{0};
2328 bool error{false};
2329#ifdef HAS_PROTO_MESSAGE_DUMP
2330 void dump_to(std::string &out) const override;
2331#endif
2332
2333 protected:
2334 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2335};
2337 public:
2338 std::string name{};
2339 std::string value{};
2340#ifdef HAS_PROTO_MESSAGE_DUMP
2341 void dump_to(std::string &out) const override;
2342#endif
2343
2344 protected:
2345 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2346};
2348 public:
2349 static constexpr uint8_t MESSAGE_TYPE = 92;
2350 static constexpr uint8_t ESTIMATED_SIZE = 36;
2351#ifdef HAS_PROTO_MESSAGE_DUMP
2352 const char *message_name() const override { return "voice_assistant_event_response"; }
2353#endif
2355 std::vector<VoiceAssistantEventData> data{};
2356#ifdef HAS_PROTO_MESSAGE_DUMP
2357 void dump_to(std::string &out) const override;
2358#endif
2359
2360 protected:
2361 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2362 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2363};
2365 public:
2366 static constexpr uint8_t MESSAGE_TYPE = 106;
2367 static constexpr uint8_t ESTIMATED_SIZE = 11;
2368#ifdef HAS_PROTO_MESSAGE_DUMP
2369 const char *message_name() const override { return "voice_assistant_audio"; }
2370#endif
2371 std::string data{};
2372 const uint8_t *data_ptr_{nullptr};
2373 size_t data_len_{0};
2374 void set_data(const uint8_t *data, size_t len) {
2375 this->data_ptr_ = data;
2376 this->data_len_ = len;
2377 }
2378 bool end{false};
2379 void encode(ProtoWriteBuffer buffer) const override;
2380 void calculate_size(ProtoSize &size) const override;
2381#ifdef HAS_PROTO_MESSAGE_DUMP
2382 void dump_to(std::string &out) const override;
2383#endif
2384
2385 protected:
2386 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2387 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2388};
2390 public:
2391 static constexpr uint8_t MESSAGE_TYPE = 115;
2392 static constexpr uint8_t ESTIMATED_SIZE = 30;
2393#ifdef HAS_PROTO_MESSAGE_DUMP
2394 const char *message_name() const override { return "voice_assistant_timer_event_response"; }
2395#endif
2397 std::string timer_id{};
2398 std::string name{};
2399 uint32_t total_seconds{0};
2400 uint32_t seconds_left{0};
2401 bool is_active{false};
2402#ifdef HAS_PROTO_MESSAGE_DUMP
2403 void dump_to(std::string &out) const override;
2404#endif
2405
2406 protected:
2407 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2408 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2409};
2411 public:
2412 static constexpr uint8_t MESSAGE_TYPE = 119;
2413 static constexpr uint8_t ESTIMATED_SIZE = 29;
2414#ifdef HAS_PROTO_MESSAGE_DUMP
2415 const char *message_name() const override { return "voice_assistant_announce_request"; }
2416#endif
2417 std::string media_id{};
2418 std::string text{};
2421#ifdef HAS_PROTO_MESSAGE_DUMP
2422 void dump_to(std::string &out) const override;
2423#endif
2424
2425 protected:
2426 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2427 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2428};
2430 public:
2431 static constexpr uint8_t MESSAGE_TYPE = 120;
2432 static constexpr uint8_t ESTIMATED_SIZE = 2;
2433#ifdef HAS_PROTO_MESSAGE_DUMP
2434 const char *message_name() const override { return "voice_assistant_announce_finished"; }
2435#endif
2436 bool success{false};
2437 void encode(ProtoWriteBuffer buffer) const override;
2438 void calculate_size(ProtoSize &size) const override;
2439#ifdef HAS_PROTO_MESSAGE_DUMP
2440 void dump_to(std::string &out) const override;
2441#endif
2442
2443 protected:
2444};
2446 public:
2448 void set_id(const StringRef &ref) { this->id_ref_ = ref; }
2450 void set_wake_word(const StringRef &ref) { this->wake_word_ref_ = ref; }
2451 std::vector<std::string> trained_languages{};
2452 void encode(ProtoWriteBuffer buffer) const override;
2453 void calculate_size(ProtoSize &size) const override;
2454#ifdef HAS_PROTO_MESSAGE_DUMP
2455 void dump_to(std::string &out) const override;
2456#endif
2457
2458 protected:
2459};
2461 public:
2462 std::string id{};
2463 std::string wake_word{};
2464 std::vector<std::string> trained_languages{};
2465 std::string model_type{};
2466 uint32_t model_size{0};
2467 std::string model_hash{};
2468 std::string url{};
2469#ifdef HAS_PROTO_MESSAGE_DUMP
2470 void dump_to(std::string &out) const override;
2471#endif
2472
2473 protected:
2474 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2475 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2476};
2478 public:
2479 static constexpr uint8_t MESSAGE_TYPE = 121;
2480 static constexpr uint8_t ESTIMATED_SIZE = 34;
2481#ifdef HAS_PROTO_MESSAGE_DUMP
2482 const char *message_name() const override { return "voice_assistant_configuration_request"; }
2483#endif
2484 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
2485#ifdef HAS_PROTO_MESSAGE_DUMP
2486 void dump_to(std::string &out) const override;
2487#endif
2488
2489 protected:
2490 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2491};
2493 public:
2494 static constexpr uint8_t MESSAGE_TYPE = 122;
2495 static constexpr uint8_t ESTIMATED_SIZE = 56;
2496#ifdef HAS_PROTO_MESSAGE_DUMP
2497 const char *message_name() const override { return "voice_assistant_configuration_response"; }
2498#endif
2499 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2500 const std::vector<std::string> *active_wake_words{};
2502 void encode(ProtoWriteBuffer buffer) const override;
2503 void calculate_size(ProtoSize &size) const override;
2504#ifdef HAS_PROTO_MESSAGE_DUMP
2505 void dump_to(std::string &out) const override;
2506#endif
2507
2508 protected:
2509};
2511 public:
2512 static constexpr uint8_t MESSAGE_TYPE = 123;
2513 static constexpr uint8_t ESTIMATED_SIZE = 18;
2514#ifdef HAS_PROTO_MESSAGE_DUMP
2515 const char *message_name() const override { return "voice_assistant_set_configuration"; }
2516#endif
2517 std::vector<std::string> active_wake_words{};
2518#ifdef HAS_PROTO_MESSAGE_DUMP
2519 void dump_to(std::string &out) const override;
2520#endif
2521
2522 protected:
2523 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2524};
2525#endif
2526#ifdef USE_ALARM_CONTROL_PANEL
2528 public:
2529 static constexpr uint8_t MESSAGE_TYPE = 94;
2530 static constexpr uint8_t ESTIMATED_SIZE = 48;
2531#ifdef HAS_PROTO_MESSAGE_DUMP
2532 const char *message_name() const override { return "list_entities_alarm_control_panel_response"; }
2533#endif
2535 bool requires_code{false};
2537 void encode(ProtoWriteBuffer buffer) const override;
2538 void calculate_size(ProtoSize &size) const override;
2539#ifdef HAS_PROTO_MESSAGE_DUMP
2540 void dump_to(std::string &out) const override;
2541#endif
2542
2543 protected:
2544};
2546 public:
2547 static constexpr uint8_t MESSAGE_TYPE = 95;
2548 static constexpr uint8_t ESTIMATED_SIZE = 11;
2549#ifdef HAS_PROTO_MESSAGE_DUMP
2550 const char *message_name() const override { return "alarm_control_panel_state_response"; }
2551#endif
2553 void encode(ProtoWriteBuffer buffer) const override;
2554 void calculate_size(ProtoSize &size) const override;
2555#ifdef HAS_PROTO_MESSAGE_DUMP
2556 void dump_to(std::string &out) const override;
2557#endif
2558
2559 protected:
2560};
2562 public:
2563 static constexpr uint8_t MESSAGE_TYPE = 96;
2564 static constexpr uint8_t ESTIMATED_SIZE = 20;
2565#ifdef HAS_PROTO_MESSAGE_DUMP
2566 const char *message_name() const override { return "alarm_control_panel_command_request"; }
2567#endif
2569 std::string code{};
2570#ifdef HAS_PROTO_MESSAGE_DUMP
2571 void dump_to(std::string &out) const override;
2572#endif
2573
2574 protected:
2575 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2576 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2577 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2578};
2579#endif
2580#ifdef USE_TEXT
2582 public:
2583 static constexpr uint8_t MESSAGE_TYPE = 97;
2584 static constexpr uint8_t ESTIMATED_SIZE = 59;
2585#ifdef HAS_PROTO_MESSAGE_DUMP
2586 const char *message_name() const override { return "list_entities_text_response"; }
2587#endif
2588 uint32_t min_length{0};
2589 uint32_t max_length{0};
2591 void set_pattern(const StringRef &ref) { this->pattern_ref_ = ref; }
2593 void encode(ProtoWriteBuffer buffer) const override;
2594 void calculate_size(ProtoSize &size) const override;
2595#ifdef HAS_PROTO_MESSAGE_DUMP
2596 void dump_to(std::string &out) const override;
2597#endif
2598
2599 protected:
2600};
2602 public:
2603 static constexpr uint8_t MESSAGE_TYPE = 98;
2604 static constexpr uint8_t ESTIMATED_SIZE = 20;
2605#ifdef HAS_PROTO_MESSAGE_DUMP
2606 const char *message_name() const override { return "text_state_response"; }
2607#endif
2609 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
2610 bool missing_state{false};
2611 void encode(ProtoWriteBuffer buffer) const override;
2612 void calculate_size(ProtoSize &size) const override;
2613#ifdef HAS_PROTO_MESSAGE_DUMP
2614 void dump_to(std::string &out) const override;
2615#endif
2616
2617 protected:
2618};
2620 public:
2621 static constexpr uint8_t MESSAGE_TYPE = 99;
2622 static constexpr uint8_t ESTIMATED_SIZE = 18;
2623#ifdef HAS_PROTO_MESSAGE_DUMP
2624 const char *message_name() const override { return "text_command_request"; }
2625#endif
2626 std::string state{};
2627#ifdef HAS_PROTO_MESSAGE_DUMP
2628 void dump_to(std::string &out) const override;
2629#endif
2630
2631 protected:
2632 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2633 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2634 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2635};
2636#endif
2637#ifdef USE_DATETIME_DATE
2639 public:
2640 static constexpr uint8_t MESSAGE_TYPE = 100;
2641 static constexpr uint8_t ESTIMATED_SIZE = 40;
2642#ifdef HAS_PROTO_MESSAGE_DUMP
2643 const char *message_name() const override { return "list_entities_date_response"; }
2644#endif
2645 void encode(ProtoWriteBuffer buffer) const override;
2646 void calculate_size(ProtoSize &size) const override;
2647#ifdef HAS_PROTO_MESSAGE_DUMP
2648 void dump_to(std::string &out) const override;
2649#endif
2650
2651 protected:
2652};
2654 public:
2655 static constexpr uint8_t MESSAGE_TYPE = 101;
2656 static constexpr uint8_t ESTIMATED_SIZE = 23;
2657#ifdef HAS_PROTO_MESSAGE_DUMP
2658 const char *message_name() const override { return "date_state_response"; }
2659#endif
2660 bool missing_state{false};
2661 uint32_t year{0};
2662 uint32_t month{0};
2663 uint32_t day{0};
2664 void encode(ProtoWriteBuffer buffer) const override;
2665 void calculate_size(ProtoSize &size) const override;
2666#ifdef HAS_PROTO_MESSAGE_DUMP
2667 void dump_to(std::string &out) const override;
2668#endif
2669
2670 protected:
2671};
2673 public:
2674 static constexpr uint8_t MESSAGE_TYPE = 102;
2675 static constexpr uint8_t ESTIMATED_SIZE = 21;
2676#ifdef HAS_PROTO_MESSAGE_DUMP
2677 const char *message_name() const override { return "date_command_request"; }
2678#endif
2679 uint32_t year{0};
2680 uint32_t month{0};
2681 uint32_t day{0};
2682#ifdef HAS_PROTO_MESSAGE_DUMP
2683 void dump_to(std::string &out) const override;
2684#endif
2685
2686 protected:
2687 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2688 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2689};
2690#endif
2691#ifdef USE_DATETIME_TIME
2693 public:
2694 static constexpr uint8_t MESSAGE_TYPE = 103;
2695 static constexpr uint8_t ESTIMATED_SIZE = 40;
2696#ifdef HAS_PROTO_MESSAGE_DUMP
2697 const char *message_name() const override { return "list_entities_time_response"; }
2698#endif
2699 void encode(ProtoWriteBuffer buffer) const override;
2700 void calculate_size(ProtoSize &size) const override;
2701#ifdef HAS_PROTO_MESSAGE_DUMP
2702 void dump_to(std::string &out) const override;
2703#endif
2704
2705 protected:
2706};
2708 public:
2709 static constexpr uint8_t MESSAGE_TYPE = 104;
2710 static constexpr uint8_t ESTIMATED_SIZE = 23;
2711#ifdef HAS_PROTO_MESSAGE_DUMP
2712 const char *message_name() const override { return "time_state_response"; }
2713#endif
2714 bool missing_state{false};
2715 uint32_t hour{0};
2716 uint32_t minute{0};
2717 uint32_t second{0};
2718 void encode(ProtoWriteBuffer buffer) const override;
2719 void calculate_size(ProtoSize &size) const override;
2720#ifdef HAS_PROTO_MESSAGE_DUMP
2721 void dump_to(std::string &out) const override;
2722#endif
2723
2724 protected:
2725};
2727 public:
2728 static constexpr uint8_t MESSAGE_TYPE = 105;
2729 static constexpr uint8_t ESTIMATED_SIZE = 21;
2730#ifdef HAS_PROTO_MESSAGE_DUMP
2731 const char *message_name() const override { return "time_command_request"; }
2732#endif
2733 uint32_t hour{0};
2734 uint32_t minute{0};
2735 uint32_t second{0};
2736#ifdef HAS_PROTO_MESSAGE_DUMP
2737 void dump_to(std::string &out) const override;
2738#endif
2739
2740 protected:
2741 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2742 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2743};
2744#endif
2745#ifdef USE_EVENT
2747 public:
2748 static constexpr uint8_t MESSAGE_TYPE = 107;
2749 static constexpr uint8_t ESTIMATED_SIZE = 67;
2750#ifdef HAS_PROTO_MESSAGE_DUMP
2751 const char *message_name() const override { return "list_entities_event_response"; }
2752#endif
2754 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2755 std::vector<std::string> event_types{};
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 = 108;
2767 static constexpr uint8_t ESTIMATED_SIZE = 18;
2768#ifdef HAS_PROTO_MESSAGE_DUMP
2769 const char *message_name() const override { return "event_response"; }
2770#endif
2772 void set_event_type(const StringRef &ref) { this->event_type_ref_ = ref; }
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};
2781#endif
2782#ifdef USE_VALVE
2784 public:
2785 static constexpr uint8_t MESSAGE_TYPE = 109;
2786 static constexpr uint8_t ESTIMATED_SIZE = 55;
2787#ifdef HAS_PROTO_MESSAGE_DUMP
2788 const char *message_name() const override { return "list_entities_valve_response"; }
2789#endif
2791 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2792 bool assumed_state{false};
2794 bool supports_stop{false};
2795 void encode(ProtoWriteBuffer buffer) const override;
2796 void calculate_size(ProtoSize &size) const override;
2797#ifdef HAS_PROTO_MESSAGE_DUMP
2798 void dump_to(std::string &out) const override;
2799#endif
2800
2801 protected:
2802};
2804 public:
2805 static constexpr uint8_t MESSAGE_TYPE = 110;
2806 static constexpr uint8_t ESTIMATED_SIZE = 16;
2807#ifdef HAS_PROTO_MESSAGE_DUMP
2808 const char *message_name() const override { return "valve_state_response"; }
2809#endif
2810 float position{0.0f};
2812 void encode(ProtoWriteBuffer buffer) const override;
2813 void calculate_size(ProtoSize &size) const override;
2814#ifdef HAS_PROTO_MESSAGE_DUMP
2815 void dump_to(std::string &out) const override;
2816#endif
2817
2818 protected:
2819};
2821 public:
2822 static constexpr uint8_t MESSAGE_TYPE = 111;
2823 static constexpr uint8_t ESTIMATED_SIZE = 18;
2824#ifdef HAS_PROTO_MESSAGE_DUMP
2825 const char *message_name() const override { return "valve_command_request"; }
2826#endif
2827 bool has_position{false};
2828 float position{0.0f};
2829 bool stop{false};
2830#ifdef HAS_PROTO_MESSAGE_DUMP
2831 void dump_to(std::string &out) const override;
2832#endif
2833
2834 protected:
2835 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2836 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2837};
2838#endif
2839#ifdef USE_DATETIME_DATETIME
2841 public:
2842 static constexpr uint8_t MESSAGE_TYPE = 112;
2843 static constexpr uint8_t ESTIMATED_SIZE = 40;
2844#ifdef HAS_PROTO_MESSAGE_DUMP
2845 const char *message_name() const override { return "list_entities_date_time_response"; }
2846#endif
2847 void encode(ProtoWriteBuffer buffer) const override;
2848 void calculate_size(ProtoSize &size) const override;
2849#ifdef HAS_PROTO_MESSAGE_DUMP
2850 void dump_to(std::string &out) const override;
2851#endif
2852
2853 protected:
2854};
2856 public:
2857 static constexpr uint8_t MESSAGE_TYPE = 113;
2858 static constexpr uint8_t ESTIMATED_SIZE = 16;
2859#ifdef HAS_PROTO_MESSAGE_DUMP
2860 const char *message_name() const override { return "date_time_state_response"; }
2861#endif
2862 bool missing_state{false};
2863 uint32_t epoch_seconds{0};
2864 void encode(ProtoWriteBuffer buffer) const override;
2865 void calculate_size(ProtoSize &size) const override;
2866#ifdef HAS_PROTO_MESSAGE_DUMP
2867 void dump_to(std::string &out) const override;
2868#endif
2869
2870 protected:
2871};
2873 public:
2874 static constexpr uint8_t MESSAGE_TYPE = 114;
2875 static constexpr uint8_t ESTIMATED_SIZE = 14;
2876#ifdef HAS_PROTO_MESSAGE_DUMP
2877 const char *message_name() const override { return "date_time_command_request"; }
2878#endif
2879 uint32_t epoch_seconds{0};
2880#ifdef HAS_PROTO_MESSAGE_DUMP
2881 void dump_to(std::string &out) const override;
2882#endif
2883
2884 protected:
2885 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2886 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2887};
2888#endif
2889#ifdef USE_UPDATE
2891 public:
2892 static constexpr uint8_t MESSAGE_TYPE = 116;
2893 static constexpr uint8_t ESTIMATED_SIZE = 49;
2894#ifdef HAS_PROTO_MESSAGE_DUMP
2895 const char *message_name() const override { return "list_entities_update_response"; }
2896#endif
2898 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2899 void encode(ProtoWriteBuffer buffer) const override;
2900 void calculate_size(ProtoSize &size) const override;
2901#ifdef HAS_PROTO_MESSAGE_DUMP
2902 void dump_to(std::string &out) const override;
2903#endif
2904
2905 protected:
2906};
2908 public:
2909 static constexpr uint8_t MESSAGE_TYPE = 117;
2910 static constexpr uint8_t ESTIMATED_SIZE = 65;
2911#ifdef HAS_PROTO_MESSAGE_DUMP
2912 const char *message_name() const override { return "update_state_response"; }
2913#endif
2914 bool missing_state{false};
2915 bool in_progress{false};
2916 bool has_progress{false};
2917 float progress{0.0f};
2919 void set_current_version(const StringRef &ref) { this->current_version_ref_ = ref; }
2921 void set_latest_version(const StringRef &ref) { this->latest_version_ref_ = ref; }
2923 void set_title(const StringRef &ref) { this->title_ref_ = ref; }
2925 void set_release_summary(const StringRef &ref) { this->release_summary_ref_ = ref; }
2927 void set_release_url(const StringRef &ref) { this->release_url_ref_ = ref; }
2928 void encode(ProtoWriteBuffer buffer) const override;
2929 void calculate_size(ProtoSize &size) const override;
2930#ifdef HAS_PROTO_MESSAGE_DUMP
2931 void dump_to(std::string &out) const override;
2932#endif
2933
2934 protected:
2935};
2937 public:
2938 static constexpr uint8_t MESSAGE_TYPE = 118;
2939 static constexpr uint8_t ESTIMATED_SIZE = 11;
2940#ifdef HAS_PROTO_MESSAGE_DUMP
2941 const char *message_name() const override { return "update_command_request"; }
2942#endif
2944#ifdef HAS_PROTO_MESSAGE_DUMP
2945 void dump_to(std::string &out) const override;
2946#endif
2947
2948 protected:
2949 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2950 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2951};
2952#endif
2953#ifdef USE_ZWAVE_PROXY
2955 public:
2956 static constexpr uint8_t MESSAGE_TYPE = 128;
2957 static constexpr uint8_t ESTIMATED_SIZE = 19;
2958#ifdef HAS_PROTO_MESSAGE_DUMP
2959 const char *message_name() const override { return "z_wave_proxy_frame"; }
2960#endif
2961 const uint8_t *data{nullptr};
2962 uint16_t data_len{0};
2963 void encode(ProtoWriteBuffer buffer) const override;
2964 void calculate_size(ProtoSize &size) const override;
2965#ifdef HAS_PROTO_MESSAGE_DUMP
2966 void dump_to(std::string &out) const override;
2967#endif
2968
2969 protected:
2970 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2971};
2973 public:
2974 static constexpr uint8_t MESSAGE_TYPE = 129;
2975 static constexpr uint8_t ESTIMATED_SIZE = 21;
2976#ifdef HAS_PROTO_MESSAGE_DUMP
2977 const char *message_name() const override { return "z_wave_proxy_request"; }
2978#endif
2980 const uint8_t *data{nullptr};
2981 uint16_t data_len{0};
2982 void encode(ProtoWriteBuffer buffer) const override;
2983 void calculate_size(ProtoSize &size) const override;
2984#ifdef HAS_PROTO_MESSAGE_DUMP
2985 void dump_to(std::string &out) const override;
2986#endif
2987
2988 protected:
2989 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2990 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2991};
2992#endif
2993
2994} // 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:2547
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2522
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2566
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2568
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2537
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2564
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2548
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2515
enums::AlarmControlPanelState state
Definition api_pb2.h:2552
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2547
const char * message_name() const override
Definition api_pb2.h:2550
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2508
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:66
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:70
void set_name(const StringRef &ref)
Definition api_pb2.h:475
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:49
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:374
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:375
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:377
const char * message_name() const override
Definition api_pb2.h:393
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:62
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:391
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:390
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:63
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:234
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:639
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:640
const char * message_name() const override
Definition api_pb2.h:642
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:242
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2106
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2116
const char * message_name() const override
Definition api_pb2.h:2102
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2125
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2185
const char * message_name() const override
Definition api_pb2.h:2221
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2180
const char * message_name() const override
Definition api_pb2.h:1846
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1905
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1911
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:2165
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2170
const char * message_name() const override
Definition api_pb2.h:2172
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2169
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2160
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1825
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1831
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1828
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1826
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1886
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2170
const char * message_name() const override
Definition api_pb2.h:2190
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2175
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1943
std::vector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:1893
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1955
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1890
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1935
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1877
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1927
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2134
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2118
const char * message_name() const override
Definition api_pb2.h:2120
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2139
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2117
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1995
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1939
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1998
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1865
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1863
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1917
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1991
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1922
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1985
std::vector< BluetoothGATTService > services
Definition api_pb2.h:1925
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2106
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2072
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2111
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2064
const char * message_name() const override
Definition api_pb2.h:2066
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2047
const char * message_name() const override
Definition api_pb2.h:2049
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2046
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2090
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2152
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2153
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:2155
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2152
const char * message_name() const override
Definition api_pb2.h:2014
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt 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:1999
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1952
const char * message_name() const override
Definition api_pb2.h:1955
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1953
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2012
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1968
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1977
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1969
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2017
const char * message_name() const override
Definition api_pb2.h:1971
std::vector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:1907
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1976
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1965
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1905
const char * message_name() const override
Definition api_pb2.h:2030
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2077
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2064
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2038
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1992
const char * message_name() const override
Definition api_pb2.h:1994
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2022
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1991
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2148
const char * message_name() const override
Definition api_pb2.h:2138
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2136
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2144
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2135
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1870
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1864
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1813
const char * message_name() const override
Definition api_pb2.h:1811
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1876
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1881
const char * message_name() const override
Definition api_pb2.h:2257
enums::BluetoothScannerMode mode
Definition api_pb2.h:2259
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2254
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2200
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2255
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2190
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2237
enums::BluetoothScannerMode mode
Definition api_pb2.h:2242
void dump_to(std::string &out) const override
enums::BluetoothScannerState state
Definition api_pb2.h:2241
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2236
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2243
const char * message_name() const override
Definition api_pb2.h:2239
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2195
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1683
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1709
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1686
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1721
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1684
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1323
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1321
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1320
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1081
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1305
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1073
const char * message_name() const override
Definition api_pb2.h:1301
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1299
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1298
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1065
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1297
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1400
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1401
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1416
const char * message_name() const override
Definition api_pb2.h:1403
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1414
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1230
enums::ClimatePreset preset
Definition api_pb2.h:1420
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1284
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1381
void dump_to(std::string &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1382
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1370
void set_custom_fan_mode(const StringRef &ref)
Definition api_pb2.h:1384
void set_custom_preset(const StringRef &ref)
Definition api_pb2.h:1387
const char * message_name() const override
Definition api_pb2.h:1373
enums::ClimateAction action
Definition api_pb2.h:1380
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1192
enums::ClimatePreset preset
Definition api_pb2.h:1385
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1211
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1371
~CommandProtoMessage() override=default
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:327
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:697
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:306
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:698
const char * message_name() const override
Definition api_pb2.h:700
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:680
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:288
const char * message_name() const override
Definition api_pb2.h:682
enums::CoverOperation current_operation
Definition api_pb2.h:686
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:297
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:679
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2710
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2674
const char * message_name() const override
Definition api_pb2.h:2677
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2689
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2675
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2669
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2655
const char * message_name() const override
Definition api_pb2.h:2658
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2679
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2656
const char * message_name() const override
Definition api_pb2.h:2877
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2875
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2874
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2990
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2978
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2970
const char * message_name() const override
Definition api_pb2.h:2860
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2857
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2858
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2962
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:81
void set_name(const StringRef &ref)
Definition api_pb2.h:490
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:76
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:459
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:460
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:462
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:87
void set_friendly_name(const StringRef &ref)
Definition api_pb2.h:541
void set_model(const StringRef &ref)
Definition api_pb2.h:520
void set_project_name(const StringRef &ref)
Definition api_pb2.h:526
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:503
void set_project_version(const StringRef &ref)
Definition api_pb2.h:530
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:145
void set_esphome_version(const StringRef &ref)
Definition api_pb2.h:516
static constexpr uint16_t ESTIMATED_SIZE
Definition api_pb2.h:504
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:560
void set_compilation_time(const StringRef &ref)
Definition api_pb2.h:518
const char * message_name() const override
Definition api_pb2.h:506
void set_name(const StringRef &ref)
Definition api_pb2.h:512
void set_mac_address(const StringRef &ref)
Definition api_pb2.h:514
void set_bluetooth_mac_address(const StringRef &ref)
Definition api_pb2.h:551
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:557
void set_suggested_area(const StringRef &ref)
Definition api_pb2.h:547
void set_manufacturer(const StringRef &ref)
Definition api_pb2.h:539
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:407
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:408
const char * message_name() const override
Definition api_pb2.h:410
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:420
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:421
const char * message_name() const override
Definition api_pb2.h:423
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2844
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2837
const char * message_name() const override
Definition api_pb2.h:2769
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2766
void set_event_type(const StringRef &ref)
Definition api_pb2.h:2772
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2767
std::vector< int32_t > int_array
Definition api_pb2.h:1250
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:990
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:968
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1003
std::vector< std::string > string_array
Definition api_pb2.h:1252
std::vector< float > float_array
Definition api_pb2.h:1251
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1264
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1265
void dump_to(std::string &out) const override
std::vector< ExecuteServiceArgument > args
Definition api_pb2.h:1270
const char * message_name() const override
Definition api_pb2.h:1267
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1027
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1016
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:760
const char * message_name() const override
Definition api_pb2.h:763
enums::FanDirection direction
Definition api_pb2.h:770
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:409
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:448
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:761
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:458
void dump_to(std::string &out) const override
enums::FanDirection direction
Definition api_pb2.h:746
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:387
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:740
const char * message_name() const override
Definition api_pb2.h:742
void set_preset_mode(const StringRef &ref)
Definition api_pb2.h:749
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:398
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:739
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1180
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1183
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1181
const char * message_name() const override
Definition api_pb2.h:1196
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:937
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:924
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1194
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1193
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:10
void dump_to(std::string &out) const override
const uint8_t * client_info
Definition api_pb2.h:338
const char * message_name() const override
Definition api_pb2.h:336
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:334
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:333
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:352
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:42
void set_name(const StringRef &ref)
Definition api_pb2.h:362
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:36
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:353
const char * message_name() const override
Definition api_pb2.h:355
void set_server_info(const StringRef &ref)
Definition api_pb2.h:360
const char * message_name() const override
Definition api_pb2.h:1165
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1162
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1163
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:907
void dump_to(std::string &out) const override
std::vector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1114
std::vector< HomeassistantServiceMap > data
Definition api_pb2.h:1113
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1107
std::vector< HomeassistantServiceMap > variables
Definition api_pb2.h:1115
void set_service(const StringRef &ref)
Definition api_pb2.h:1112
const char * message_name() const override
Definition api_pb2.h:1109
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:888
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:875
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1106
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:867
void dump_to(std::string &out) const override
void set_key(const StringRef &ref)
Definition api_pb2.h:1094
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:871
void set_object_id(const StringRef &ref)
Definition api_pb2.h:293
~InfoResponseProtoMessage() override=default
enums::EntityCategory entity_category
Definition api_pb2.h:302
void set_icon(const StringRef &ref)
Definition api_pb2.h:300
void set_name(const StringRef &ref)
Definition api_pb2.h:296
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:612
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:622
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:552
const char * message_name() const override
Definition api_pb2.h:838
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:835
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:836
void dump_to(std::string &out) const override
void set_effect(const StringRef &ref)
Definition api_pb2.h:824
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:516
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:808
enums::ColorMode color_mode
Definition api_pb2.h:814
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:807
const char * message_name() const override
Definition api_pb2.h:810
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:534
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2492
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2476
const char * message_name() const override
Definition api_pb2.h:2532
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:204
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:219
void set_device_class(const StringRef &ref)
Definition api_pb2.h:627
const char * message_name() const override
Definition api_pb2.h:624
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:622
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1667
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1666
void set_device_class(const StringRef &ref)
Definition api_pb2.h:1672
const char * message_name() const override
Definition api_pb2.h:1669
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1695
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1681
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1286
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1283
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1052
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1039
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1284
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1339
const std::set< std::string > * supported_custom_presets
Definition api_pb2.h:1354
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1338
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1138
const std::set< climate::ClimateSwingMode > * supported_swing_modes
Definition api_pb2.h:1351
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1096
const std::set< std::string > * supported_custom_fan_modes
Definition api_pb2.h:1352
const char * message_name() const override
Definition api_pb2.h:1341
const std::set< climate::ClimateFanMode > * supported_fan_modes
Definition api_pb2.h:1350
const std::set< climate::ClimatePreset > * supported_presets
Definition api_pb2.h:1353
const std::set< climate::ClimateMode > * supported_modes
Definition api_pb2.h:1345
const char * message_name() const override
Definition api_pb2.h:661
void set_device_class(const StringRef &ref)
Definition api_pb2.h:667
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:659
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:270
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:658
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:252
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2641
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2643
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2656
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2640
const char * message_name() const override
Definition api_pb2.h:2643
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2949
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2842
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2843
const char * message_name() const override
Definition api_pb2.h:2845
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2936
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:594
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:595
const char * message_name() const override
Definition api_pb2.h:597
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2751
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2818
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2801
std::vector< std::string > event_types
Definition api_pb2.h:2755
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2749
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2748
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2754
const char * message_name() const override
Definition api_pb2.h:722
const std::set< std::string > * supported_preset_modes
Definition api_pb2.h:728
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:720
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:719
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:345
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:365
const std::set< light::ColorMode > * supported_color_modes
Definition api_pb2.h:793
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:789
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:491
const char * message_name() const override
Definition api_pb2.h:791
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:788
std::vector< std::string > effects
Definition api_pb2.h:796
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:470
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1593
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1609
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1610
void set_code_format(const StringRef &ref)
Definition api_pb2.h:1618
const char * message_name() const override
Definition api_pb2.h:1612
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1610
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1717
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1747
const char * message_name() const override
Definition api_pb2.h:1719
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1765
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1722
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1441
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1340
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1439
void set_unit_of_measurement(const StringRef &ref)
Definition api_pb2.h:1447
void set_device_class(const StringRef &ref)
Definition api_pb2.h:1450
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1438
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1321
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:582
const char * message_name() const override
Definition api_pb2.h:584
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:581
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1496
const std::vector< std::string > * options
Definition api_pb2.h:1501
const char * message_name() const override
Definition api_pb2.h:1499
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1418
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1402
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1497
const char * message_name() const override
Definition api_pb2.h:882
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:661
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:679
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:880
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:879
void set_unit_of_measurement(const StringRef &ref)
Definition api_pb2.h:885
void dump_to(std::string &out) const override
void set_device_class(const StringRef &ref)
Definition api_pb2.h:889
enums::SensorStateClass state_class
Definition api_pb2.h:890
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:952
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:948
void dump_to(std::string &out) const override
void set_name(const StringRef &ref)
Definition api_pb2.h:1213
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:963
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:956
const char * message_name() const override
Definition api_pb2.h:1228
std::vector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1233
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1225
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1226
void set_name(const StringRef &ref)
Definition api_pb2.h:1231
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1486
const char * message_name() const override
Definition api_pb2.h:1552
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1504
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1549
void dump_to(std::string &out) const override
std::vector< std::string > tones
Definition api_pb2.h:1554
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1550
const char * message_name() const override
Definition api_pb2.h:923
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:715
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:921
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:920
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:730
void set_device_class(const StringRef &ref)
Definition api_pb2.h:927
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2583
void set_pattern(const StringRef &ref)
Definition api_pb2.h:2591
const char * message_name() const override
Definition api_pb2.h:2586
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2576
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2584
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2559
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:800
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:786
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:972
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:973
const char * message_name() const override
Definition api_pb2.h:975
void set_device_class(const StringRef &ref)
Definition api_pb2.h:978
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2722
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2735
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2695
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2697
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2694
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2895
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3019
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2892
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2893
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3005
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2898
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2785
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2791
const char * message_name() const override
Definition api_pb2.h:2788
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2786
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2870
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2853
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1645
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1641
const char * message_name() const override
Definition api_pb2.h:1648
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1669
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1646
enums::LockCommand command
Definition api_pb2.h:1650
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1659
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1630
const char * message_name() const override
Definition api_pb2.h:1632
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1629
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1634
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1627
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1753
enums::MediaPlayerCommand command
Definition api_pb2.h:1758
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1839
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1799
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1829
const char * message_name() const override
Definition api_pb2.h:1755
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1752
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1790
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1734
void dump_to(std::string &out) const override
enums::MediaPlayerState state
Definition api_pb2.h:1739
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1781
const char * message_name() const override
Definition api_pb2.h:1737
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1735
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1740
void set_format(const StringRef &ref)
Definition api_pb2.h:1701
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1704
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1733
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1047
const char * message_name() const override
Definition api_pb2.h:1050
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:853
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1048
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1065
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:863
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:864
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1063
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1062
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1478
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1387
const char * message_name() const override
Definition api_pb2.h:1481
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1479
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1375
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1359
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1464
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1462
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1461
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1367
const char * message_name() const override
Definition api_pb2.h:436
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:433
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:434
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:446
const char * message_name() const override
Definition api_pb2.h:449
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:447
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:1464
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1452
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1531
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1530
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1474
const char * message_name() const override
Definition api_pb2.h:1533
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1513
const char * message_name() const override
Definition api_pb2.h:1515
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1436
void set_state(const StringRef &ref)
Definition api_pb2.h:1518
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1444
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1512
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:705
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:697
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:902
const char * message_name() const override
Definition api_pb2.h:904
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:901
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1568
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1538
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1584
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1578
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1583
const char * message_name() const override
Definition api_pb2.h:1586
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1531
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1568
const char * message_name() const override
Definition api_pb2.h:1570
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1567
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1524
~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:1854
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:902
const char * message_name() const override
Definition api_pb2.h:1145
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:897
const char * message_name() const override
Definition api_pb2.h:1132
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:1083
const char * message_name() const override
Definition api_pb2.h:1011
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1009
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1008
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:831
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1024
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:848
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1025
void set_message(const uint8_t *data, size_t len)
Definition api_pb2.h:1032
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:844
const char * message_name() const override
Definition api_pb2.h:1027
const char * message_name() const override
Definition api_pb2.h:610
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:608
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:607
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2274
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2271
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2212
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2272
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:774
const char * message_name() const override
Definition api_pb2.h:957
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:759
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:954
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:955
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:941
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:745
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:939
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:752
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:938
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2621
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2622
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2631
const char * message_name() const override
Definition api_pb2.h:2624
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2609
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2621
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:822
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:814
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:989
void set_state(const StringRef &ref)
Definition api_pb2.h:995
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:990
const char * message_name() const override
Definition api_pb2.h:992
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2604
void set_state(const StringRef &ref)
Definition api_pb2.h:2609
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2603
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2601
const char * message_name() const override
Definition api_pb2.h:2606
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2593
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2789
const char * message_name() const override
Definition api_pb2.h:2731
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2728
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2768
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2729
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2709
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2710
const char * message_name() const override
Definition api_pb2.h:2712
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2758
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2748
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2939
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3078
enums::UpdateCommand command
Definition api_pb2.h:2943
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3063
const char * message_name() const override
Definition api_pb2.h:2941
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2938
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2910
void set_current_version(const StringRef &ref)
Definition api_pb2.h:2919
void set_latest_version(const StringRef &ref)
Definition api_pb2.h:2921
void set_release_summary(const StringRef &ref)
Definition api_pb2.h:2925
void set_title(const StringRef &ref)
Definition api_pb2.h:2923
const char * message_name() const override
Definition api_pb2.h:2912
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3048
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3033
void set_release_url(const StringRef &ref)
Definition api_pb2.h:2927
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2909
const char * message_name() const override
Definition api_pb2.h:2825
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2822
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2903
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2823
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2921
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2887
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2806
const char * message_name() const override
Definition api_pb2.h:2808
void dump_to(std::string &out) const override
enums::ValveOperation current_operation
Definition api_pb2.h:2811
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2805
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2895
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2383
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2432
const char * message_name() const override
Definition api_pb2.h:2434
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2431
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2382
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2366
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2413
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2412
const char * message_name() const override
Definition api_pb2.h:2415
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2356
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2374
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2316
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2320
const char * message_name() const override
Definition api_pb2.h:2369
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2306
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2367
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2366
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2296
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2225
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2230
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2482
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2435
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2484
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2455
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2499
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2497
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2500
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2446
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2262
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2285
const char * message_name() const override
Definition api_pb2.h:2352
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2350
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2349
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2354
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2275
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2355
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2410
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2400
std::vector< std::string > trained_languages
Definition api_pb2.h:2464
void set_wake_word_phrase(const StringRef &ref)
Definition api_pb2.h:2311
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2242
const char * message_name() const override
Definition api_pb2.h:2303
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2300
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2309
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2301
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2235
void dump_to(std::string &out) const override
void set_conversation_id(const StringRef &ref)
Definition api_pb2.h:2307
const char * message_name() const override
Definition api_pb2.h:2325
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2323
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2322
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2249
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2513
std::vector< std::string > active_wake_words
Definition api_pb2.h:2517
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2512
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2464
const char * message_name() const override
Definition api_pb2.h:2515
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2396
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2343
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2324
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2394
void set_id(const StringRef &ref)
Definition api_pb2.h:2448
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2384
void set_wake_word(const StringRef &ref)
Definition api_pb2.h:2450
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2391
std::vector< std::string > trained_languages
Definition api_pb2.h:2451
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2957
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3090
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3103
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3104
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2956
const char * message_name() const override
Definition api_pb2.h:2959
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2975
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3132
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3115
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3105
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2974
const char * message_name() const override
Definition api_pb2.h:2977
enums::ZWaveProxyRequestType type
Definition api_pb2.h:2979
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3128
@ 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
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:281
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:282
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:283
@ 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:291