ESPHome 2025.12.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::vector<const char *> *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
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 = 128;
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; }
1116 bool is_event{false};
1117#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1118 uint32_t call_id{0};
1119#endif
1120#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1121 bool wants_response{false};
1122#endif
1123#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1124 std::string response_template{};
1125#endif
1126 void encode(ProtoWriteBuffer buffer) const override;
1127 void calculate_size(ProtoSize &size) const override;
1128#ifdef HAS_PROTO_MESSAGE_DUMP
1129 void dump_to(std::string &out) const override;
1130#endif
1131
1132 protected:
1133};
1134#endif
1135#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1137 public:
1138 static constexpr uint8_t MESSAGE_TYPE = 130;
1139 static constexpr uint8_t ESTIMATED_SIZE = 34;
1140#ifdef HAS_PROTO_MESSAGE_DUMP
1141 const char *message_name() const override { return "homeassistant_action_response"; }
1142#endif
1143 uint32_t call_id{0};
1144 bool success{false};
1145 std::string error_message{};
1146#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1147 const uint8_t *response_data{nullptr};
1149#endif
1150#ifdef HAS_PROTO_MESSAGE_DUMP
1151 void dump_to(std::string &out) const override;
1152#endif
1153
1154 protected:
1155 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1156 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1157};
1158#endif
1159#ifdef USE_API_HOMEASSISTANT_STATES
1161 public:
1162 static constexpr uint8_t MESSAGE_TYPE = 38;
1163 static constexpr uint8_t ESTIMATED_SIZE = 0;
1164#ifdef HAS_PROTO_MESSAGE_DUMP
1165 const char *message_name() const override { return "subscribe_home_assistant_states_request"; }
1166#endif
1167#ifdef HAS_PROTO_MESSAGE_DUMP
1168 void dump_to(std::string &out) const override;
1169#endif
1170
1171 protected:
1172};
1174 public:
1175 static constexpr uint8_t MESSAGE_TYPE = 39;
1176 static constexpr uint8_t ESTIMATED_SIZE = 20;
1177#ifdef HAS_PROTO_MESSAGE_DUMP
1178 const char *message_name() const override { return "subscribe_home_assistant_state_response"; }
1179#endif
1181 void set_entity_id(const StringRef &ref) { this->entity_id_ref_ = ref; }
1183 void set_attribute(const StringRef &ref) { this->attribute_ref_ = ref; }
1184 bool once{false};
1185 void encode(ProtoWriteBuffer buffer) const override;
1186 void calculate_size(ProtoSize &size) const override;
1187#ifdef HAS_PROTO_MESSAGE_DUMP
1188 void dump_to(std::string &out) const override;
1189#endif
1190
1191 protected:
1192};
1194 public:
1195 static constexpr uint8_t MESSAGE_TYPE = 40;
1196 static constexpr uint8_t ESTIMATED_SIZE = 27;
1197#ifdef HAS_PROTO_MESSAGE_DUMP
1198 const char *message_name() const override { return "home_assistant_state_response"; }
1199#endif
1200 std::string entity_id{};
1201 std::string state{};
1202 std::string attribute{};
1203#ifdef HAS_PROTO_MESSAGE_DUMP
1204 void dump_to(std::string &out) const override;
1205#endif
1206
1207 protected:
1208 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1209};
1210#endif
1211class GetTimeRequest final : public ProtoMessage {
1212 public:
1213 static constexpr uint8_t MESSAGE_TYPE = 36;
1214 static constexpr uint8_t ESTIMATED_SIZE = 0;
1215#ifdef HAS_PROTO_MESSAGE_DUMP
1216 const char *message_name() const override { return "get_time_request"; }
1217#endif
1218#ifdef HAS_PROTO_MESSAGE_DUMP
1219 void dump_to(std::string &out) const override;
1220#endif
1221
1222 protected:
1223};
1225 public:
1226 static constexpr uint8_t MESSAGE_TYPE = 37;
1227 static constexpr uint8_t ESTIMATED_SIZE = 24;
1228#ifdef HAS_PROTO_MESSAGE_DUMP
1229 const char *message_name() const override { return "get_time_response"; }
1230#endif
1231 uint32_t epoch_seconds{0};
1232 const uint8_t *timezone{nullptr};
1233 uint16_t timezone_len{0};
1234#ifdef HAS_PROTO_MESSAGE_DUMP
1235 void dump_to(std::string &out) const override;
1236#endif
1237
1238 protected:
1239 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1240 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1241};
1242#ifdef USE_API_SERVICES
1244 public:
1246 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
1248 void encode(ProtoWriteBuffer buffer) const override;
1249 void calculate_size(ProtoSize &size) const override;
1250#ifdef HAS_PROTO_MESSAGE_DUMP
1251 void dump_to(std::string &out) const override;
1252#endif
1253
1254 protected:
1255};
1257 public:
1258 static constexpr uint8_t MESSAGE_TYPE = 41;
1259 static constexpr uint8_t ESTIMATED_SIZE = 48;
1260#ifdef HAS_PROTO_MESSAGE_DUMP
1261 const char *message_name() const override { return "list_entities_services_response"; }
1262#endif
1264 void set_name(const StringRef &ref) { this->name_ref_ = ref; }
1265 uint32_t key{0};
1267 void encode(ProtoWriteBuffer buffer) const override;
1268 void calculate_size(ProtoSize &size) const override;
1269#ifdef HAS_PROTO_MESSAGE_DUMP
1270 void dump_to(std::string &out) const override;
1271#endif
1272
1273 protected:
1274};
1276 public:
1277 bool bool_{false};
1278 int32_t legacy_int{0};
1279 float float_{0.0f};
1280 std::string string_{};
1281 int32_t int_{0};
1286 void decode(const uint8_t *buffer, size_t length) override;
1287#ifdef HAS_PROTO_MESSAGE_DUMP
1288 void dump_to(std::string &out) const override;
1289#endif
1290
1291 protected:
1292 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1293 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1294 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1295};
1297 public:
1298 static constexpr uint8_t MESSAGE_TYPE = 42;
1299 static constexpr uint8_t ESTIMATED_SIZE = 39;
1300#ifdef HAS_PROTO_MESSAGE_DUMP
1301 const char *message_name() const override { return "execute_service_request"; }
1302#endif
1303 uint32_t key{0};
1305 void decode(const uint8_t *buffer, size_t length) override;
1306#ifdef HAS_PROTO_MESSAGE_DUMP
1307 void dump_to(std::string &out) const override;
1308#endif
1309
1310 protected:
1311 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1312 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1313};
1314#endif
1315#ifdef USE_CAMERA
1317 public:
1318 static constexpr uint8_t MESSAGE_TYPE = 43;
1319 static constexpr uint8_t ESTIMATED_SIZE = 40;
1320#ifdef HAS_PROTO_MESSAGE_DUMP
1321 const char *message_name() const override { return "list_entities_camera_response"; }
1322#endif
1323 void encode(ProtoWriteBuffer buffer) const override;
1324 void calculate_size(ProtoSize &size) const override;
1325#ifdef HAS_PROTO_MESSAGE_DUMP
1326 void dump_to(std::string &out) const override;
1327#endif
1328
1329 protected:
1330};
1332 public:
1333 static constexpr uint8_t MESSAGE_TYPE = 44;
1334 static constexpr uint8_t ESTIMATED_SIZE = 20;
1335#ifdef HAS_PROTO_MESSAGE_DUMP
1336 const char *message_name() const override { return "camera_image_response"; }
1337#endif
1338 const uint8_t *data_ptr_{nullptr};
1339 size_t data_len_{0};
1340 void set_data(const uint8_t *data, size_t len) {
1341 this->data_ptr_ = data;
1342 this->data_len_ = len;
1343 }
1344 bool done{false};
1345 void encode(ProtoWriteBuffer buffer) const override;
1346 void calculate_size(ProtoSize &size) const override;
1347#ifdef HAS_PROTO_MESSAGE_DUMP
1348 void dump_to(std::string &out) const override;
1349#endif
1350
1351 protected:
1352};
1354 public:
1355 static constexpr uint8_t MESSAGE_TYPE = 45;
1356 static constexpr uint8_t ESTIMATED_SIZE = 4;
1357#ifdef HAS_PROTO_MESSAGE_DUMP
1358 const char *message_name() const override { return "camera_image_request"; }
1359#endif
1360 bool single{false};
1361 bool stream{false};
1362#ifdef HAS_PROTO_MESSAGE_DUMP
1363 void dump_to(std::string &out) const override;
1364#endif
1365
1366 protected:
1367 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1368};
1369#endif
1370#ifdef USE_CLIMATE
1372 public:
1373 static constexpr uint8_t MESSAGE_TYPE = 46;
1374 static constexpr uint8_t ESTIMATED_SIZE = 150;
1375#ifdef HAS_PROTO_MESSAGE_DUMP
1376 const char *message_name() const override { return "list_entities_climate_response"; }
1377#endif
1384 bool supports_action{false};
1387 const std::vector<const char *> *supported_custom_fan_modes{};
1389 const std::vector<const char *> *supported_custom_presets{};
1395 uint32_t feature_flags{0};
1396 void encode(ProtoWriteBuffer buffer) const override;
1397 void calculate_size(ProtoSize &size) const override;
1398#ifdef HAS_PROTO_MESSAGE_DUMP
1399 void dump_to(std::string &out) const override;
1400#endif
1401
1402 protected:
1403};
1405 public:
1406 static constexpr uint8_t MESSAGE_TYPE = 47;
1407 static constexpr uint8_t ESTIMATED_SIZE = 68;
1408#ifdef HAS_PROTO_MESSAGE_DUMP
1409 const char *message_name() const override { return "climate_state_response"; }
1410#endif
1420 void set_custom_fan_mode(const StringRef &ref) { this->custom_fan_mode_ref_ = ref; }
1423 void set_custom_preset(const StringRef &ref) { this->custom_preset_ref_ = ref; }
1424 float current_humidity{0.0f};
1425 float target_humidity{0.0f};
1426 void encode(ProtoWriteBuffer buffer) const override;
1427 void calculate_size(ProtoSize &size) const override;
1428#ifdef HAS_PROTO_MESSAGE_DUMP
1429 void dump_to(std::string &out) const override;
1430#endif
1431
1432 protected:
1433};
1435 public:
1436 static constexpr uint8_t MESSAGE_TYPE = 48;
1437 static constexpr uint8_t ESTIMATED_SIZE = 84;
1438#ifdef HAS_PROTO_MESSAGE_DUMP
1439 const char *message_name() const override { return "climate_command_request"; }
1440#endif
1441 bool has_mode{false};
1449 bool has_fan_mode{false};
1451 bool has_swing_mode{false};
1454 std::string custom_fan_mode{};
1455 bool has_preset{false};
1458 std::string custom_preset{};
1460 float target_humidity{0.0f};
1461#ifdef HAS_PROTO_MESSAGE_DUMP
1462 void dump_to(std::string &out) const override;
1463#endif
1464
1465 protected:
1466 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1467 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1468 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1469};
1470#endif
1471#ifdef USE_NUMBER
1473 public:
1474 static constexpr uint8_t MESSAGE_TYPE = 49;
1475 static constexpr uint8_t ESTIMATED_SIZE = 75;
1476#ifdef HAS_PROTO_MESSAGE_DUMP
1477 const char *message_name() const override { return "list_entities_number_response"; }
1478#endif
1479 float min_value{0.0f};
1480 float max_value{0.0f};
1481 float step{0.0f};
1486 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
1487 void encode(ProtoWriteBuffer buffer) const override;
1488 void calculate_size(ProtoSize &size) const override;
1489#ifdef HAS_PROTO_MESSAGE_DUMP
1490 void dump_to(std::string &out) const override;
1491#endif
1492
1493 protected:
1494};
1496 public:
1497 static constexpr uint8_t MESSAGE_TYPE = 50;
1498 static constexpr uint8_t ESTIMATED_SIZE = 16;
1499#ifdef HAS_PROTO_MESSAGE_DUMP
1500 const char *message_name() const override { return "number_state_response"; }
1501#endif
1502 float state{0.0f};
1503 bool missing_state{false};
1504 void encode(ProtoWriteBuffer buffer) const override;
1505 void calculate_size(ProtoSize &size) const override;
1506#ifdef HAS_PROTO_MESSAGE_DUMP
1507 void dump_to(std::string &out) const override;
1508#endif
1509
1510 protected:
1511};
1513 public:
1514 static constexpr uint8_t MESSAGE_TYPE = 51;
1515 static constexpr uint8_t ESTIMATED_SIZE = 14;
1516#ifdef HAS_PROTO_MESSAGE_DUMP
1517 const char *message_name() const override { return "number_command_request"; }
1518#endif
1519 float state{0.0f};
1520#ifdef HAS_PROTO_MESSAGE_DUMP
1521 void dump_to(std::string &out) const override;
1522#endif
1523
1524 protected:
1525 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1526 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1527};
1528#endif
1529#ifdef USE_SELECT
1531 public:
1532 static constexpr uint8_t MESSAGE_TYPE = 52;
1533 static constexpr uint8_t ESTIMATED_SIZE = 58;
1534#ifdef HAS_PROTO_MESSAGE_DUMP
1535 const char *message_name() const override { return "list_entities_select_response"; }
1536#endif
1538 void encode(ProtoWriteBuffer buffer) const override;
1539 void calculate_size(ProtoSize &size) const override;
1540#ifdef HAS_PROTO_MESSAGE_DUMP
1541 void dump_to(std::string &out) const override;
1542#endif
1543
1544 protected:
1545};
1547 public:
1548 static constexpr uint8_t MESSAGE_TYPE = 53;
1549 static constexpr uint8_t ESTIMATED_SIZE = 20;
1550#ifdef HAS_PROTO_MESSAGE_DUMP
1551 const char *message_name() const override { return "select_state_response"; }
1552#endif
1554 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
1555 bool missing_state{false};
1556 void encode(ProtoWriteBuffer buffer) const override;
1557 void calculate_size(ProtoSize &size) const override;
1558#ifdef HAS_PROTO_MESSAGE_DUMP
1559 void dump_to(std::string &out) const override;
1560#endif
1561
1562 protected:
1563};
1565 public:
1566 static constexpr uint8_t MESSAGE_TYPE = 54;
1567 static constexpr uint8_t ESTIMATED_SIZE = 18;
1568#ifdef HAS_PROTO_MESSAGE_DUMP
1569 const char *message_name() const override { return "select_command_request"; }
1570#endif
1571 std::string state{};
1572#ifdef HAS_PROTO_MESSAGE_DUMP
1573 void dump_to(std::string &out) const override;
1574#endif
1575
1576 protected:
1577 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1578 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1579 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1580};
1581#endif
1582#ifdef USE_SIREN
1584 public:
1585 static constexpr uint8_t MESSAGE_TYPE = 55;
1586 static constexpr uint8_t ESTIMATED_SIZE = 62;
1587#ifdef HAS_PROTO_MESSAGE_DUMP
1588 const char *message_name() const override { return "list_entities_siren_response"; }
1589#endif
1590 std::vector<std::string> tones{};
1592 bool supports_volume{false};
1593 void encode(ProtoWriteBuffer buffer) const override;
1594 void calculate_size(ProtoSize &size) const override;
1595#ifdef HAS_PROTO_MESSAGE_DUMP
1596 void dump_to(std::string &out) const override;
1597#endif
1598
1599 protected:
1600};
1602 public:
1603 static constexpr uint8_t MESSAGE_TYPE = 56;
1604 static constexpr uint8_t ESTIMATED_SIZE = 11;
1605#ifdef HAS_PROTO_MESSAGE_DUMP
1606 const char *message_name() const override { return "siren_state_response"; }
1607#endif
1608 bool state{false};
1609 void encode(ProtoWriteBuffer buffer) const override;
1610 void calculate_size(ProtoSize &size) const override;
1611#ifdef HAS_PROTO_MESSAGE_DUMP
1612 void dump_to(std::string &out) const override;
1613#endif
1614
1615 protected:
1616};
1618 public:
1619 static constexpr uint8_t MESSAGE_TYPE = 57;
1620 static constexpr uint8_t ESTIMATED_SIZE = 37;
1621#ifdef HAS_PROTO_MESSAGE_DUMP
1622 const char *message_name() const override { return "siren_command_request"; }
1623#endif
1624 bool has_state{false};
1625 bool state{false};
1626 bool has_tone{false};
1627 std::string tone{};
1628 bool has_duration{false};
1629 uint32_t duration{0};
1630 bool has_volume{false};
1631 float volume{0.0f};
1632#ifdef HAS_PROTO_MESSAGE_DUMP
1633 void dump_to(std::string &out) const override;
1634#endif
1635
1636 protected:
1637 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1638 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1639 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1640};
1641#endif
1642#ifdef USE_LOCK
1644 public:
1645 static constexpr uint8_t MESSAGE_TYPE = 58;
1646 static constexpr uint8_t ESTIMATED_SIZE = 55;
1647#ifdef HAS_PROTO_MESSAGE_DUMP
1648 const char *message_name() const override { return "list_entities_lock_response"; }
1649#endif
1650 bool assumed_state{false};
1651 bool supports_open{false};
1652 bool requires_code{false};
1654 void set_code_format(const StringRef &ref) { this->code_format_ref_ = ref; }
1655 void encode(ProtoWriteBuffer buffer) const override;
1656 void calculate_size(ProtoSize &size) const override;
1657#ifdef HAS_PROTO_MESSAGE_DUMP
1658 void dump_to(std::string &out) const override;
1659#endif
1660
1661 protected:
1662};
1664 public:
1665 static constexpr uint8_t MESSAGE_TYPE = 59;
1666 static constexpr uint8_t ESTIMATED_SIZE = 11;
1667#ifdef HAS_PROTO_MESSAGE_DUMP
1668 const char *message_name() const override { return "lock_state_response"; }
1669#endif
1671 void encode(ProtoWriteBuffer buffer) const override;
1672 void calculate_size(ProtoSize &size) const override;
1673#ifdef HAS_PROTO_MESSAGE_DUMP
1674 void dump_to(std::string &out) const override;
1675#endif
1676
1677 protected:
1678};
1680 public:
1681 static constexpr uint8_t MESSAGE_TYPE = 60;
1682 static constexpr uint8_t ESTIMATED_SIZE = 22;
1683#ifdef HAS_PROTO_MESSAGE_DUMP
1684 const char *message_name() const override { return "lock_command_request"; }
1685#endif
1687 bool has_code{false};
1688 std::string code{};
1689#ifdef HAS_PROTO_MESSAGE_DUMP
1690 void dump_to(std::string &out) const override;
1691#endif
1692
1693 protected:
1694 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1695 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1696 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1697};
1698#endif
1699#ifdef USE_BUTTON
1701 public:
1702 static constexpr uint8_t MESSAGE_TYPE = 61;
1703 static constexpr uint8_t ESTIMATED_SIZE = 49;
1704#ifdef HAS_PROTO_MESSAGE_DUMP
1705 const char *message_name() const override { return "list_entities_button_response"; }
1706#endif
1708 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
1709 void encode(ProtoWriteBuffer buffer) const override;
1710 void calculate_size(ProtoSize &size) const override;
1711#ifdef HAS_PROTO_MESSAGE_DUMP
1712 void dump_to(std::string &out) const override;
1713#endif
1714
1715 protected:
1716};
1718 public:
1719 static constexpr uint8_t MESSAGE_TYPE = 62;
1720 static constexpr uint8_t ESTIMATED_SIZE = 9;
1721#ifdef HAS_PROTO_MESSAGE_DUMP
1722 const char *message_name() const override { return "button_command_request"; }
1723#endif
1724#ifdef HAS_PROTO_MESSAGE_DUMP
1725 void dump_to(std::string &out) const override;
1726#endif
1727
1728 protected:
1729 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1730 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1731};
1732#endif
1733#ifdef USE_MEDIA_PLAYER
1735 public:
1737 void set_format(const StringRef &ref) { this->format_ref_ = ref; }
1738 uint32_t sample_rate{0};
1739 uint32_t num_channels{0};
1741 uint32_t sample_bytes{0};
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 = 63;
1753 static constexpr uint8_t ESTIMATED_SIZE = 80;
1754#ifdef HAS_PROTO_MESSAGE_DUMP
1755 const char *message_name() const override { return "list_entities_media_player_response"; }
1756#endif
1757 bool supports_pause{false};
1758 std::vector<MediaPlayerSupportedFormat> supported_formats{};
1759 uint32_t feature_flags{0};
1760 void encode(ProtoWriteBuffer buffer) const override;
1761 void calculate_size(ProtoSize &size) const override;
1762#ifdef HAS_PROTO_MESSAGE_DUMP
1763 void dump_to(std::string &out) const override;
1764#endif
1765
1766 protected:
1767};
1769 public:
1770 static constexpr uint8_t MESSAGE_TYPE = 64;
1771 static constexpr uint8_t ESTIMATED_SIZE = 18;
1772#ifdef HAS_PROTO_MESSAGE_DUMP
1773 const char *message_name() const override { return "media_player_state_response"; }
1774#endif
1776 float volume{0.0f};
1777 bool muted{false};
1778 void encode(ProtoWriteBuffer buffer) const override;
1779 void calculate_size(ProtoSize &size) const override;
1780#ifdef HAS_PROTO_MESSAGE_DUMP
1781 void dump_to(std::string &out) const override;
1782#endif
1783
1784 protected:
1785};
1787 public:
1788 static constexpr uint8_t MESSAGE_TYPE = 65;
1789 static constexpr uint8_t ESTIMATED_SIZE = 35;
1790#ifdef HAS_PROTO_MESSAGE_DUMP
1791 const char *message_name() const override { return "media_player_command_request"; }
1792#endif
1793 bool has_command{false};
1795 bool has_volume{false};
1796 float volume{0.0f};
1797 bool has_media_url{false};
1798 std::string media_url{};
1799 bool has_announcement{false};
1800 bool announcement{false};
1801#ifdef HAS_PROTO_MESSAGE_DUMP
1802 void dump_to(std::string &out) const override;
1803#endif
1804
1805 protected:
1806 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1807 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1808 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1809};
1810#endif
1811#ifdef USE_BLUETOOTH_PROXY
1813 public:
1814 static constexpr uint8_t MESSAGE_TYPE = 66;
1815 static constexpr uint8_t ESTIMATED_SIZE = 4;
1816#ifdef HAS_PROTO_MESSAGE_DUMP
1817 const char *message_name() const override { return "subscribe_bluetooth_le_advertisements_request"; }
1818#endif
1819 uint32_t flags{0};
1820#ifdef HAS_PROTO_MESSAGE_DUMP
1821 void dump_to(std::string &out) const override;
1822#endif
1823
1824 protected:
1825 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1826};
1828 public:
1829 uint64_t address{0};
1830 int32_t rssi{0};
1831 uint32_t address_type{0};
1832 uint8_t data[62]{};
1833 uint8_t data_len{0};
1834 void encode(ProtoWriteBuffer buffer) const override;
1835 void calculate_size(ProtoSize &size) const override;
1836#ifdef HAS_PROTO_MESSAGE_DUMP
1837 void dump_to(std::string &out) const override;
1838#endif
1839
1840 protected:
1841};
1843 public:
1844 static constexpr uint8_t MESSAGE_TYPE = 93;
1845 static constexpr uint8_t ESTIMATED_SIZE = 136;
1846#ifdef HAS_PROTO_MESSAGE_DUMP
1847 const char *message_name() const override { return "bluetooth_le_raw_advertisements_response"; }
1848#endif
1849 std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
1851 void encode(ProtoWriteBuffer buffer) const override;
1852 void calculate_size(ProtoSize &size) const override;
1853#ifdef HAS_PROTO_MESSAGE_DUMP
1854 void dump_to(std::string &out) const override;
1855#endif
1856
1857 protected:
1858};
1860 public:
1861 static constexpr uint8_t MESSAGE_TYPE = 68;
1862 static constexpr uint8_t ESTIMATED_SIZE = 12;
1863#ifdef HAS_PROTO_MESSAGE_DUMP
1864 const char *message_name() const override { return "bluetooth_device_request"; }
1865#endif
1866 uint64_t address{0};
1868 bool has_address_type{false};
1869 uint32_t address_type{0};
1870#ifdef HAS_PROTO_MESSAGE_DUMP
1871 void dump_to(std::string &out) const override;
1872#endif
1873
1874 protected:
1875 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1876};
1878 public:
1879 static constexpr uint8_t MESSAGE_TYPE = 69;
1880 static constexpr uint8_t ESTIMATED_SIZE = 14;
1881#ifdef HAS_PROTO_MESSAGE_DUMP
1882 const char *message_name() const override { return "bluetooth_device_connection_response"; }
1883#endif
1884 uint64_t address{0};
1885 bool connected{false};
1886 uint32_t mtu{0};
1887 int32_t error{0};
1888 void encode(ProtoWriteBuffer buffer) const override;
1889 void calculate_size(ProtoSize &size) const override;
1890#ifdef HAS_PROTO_MESSAGE_DUMP
1891 void dump_to(std::string &out) const override;
1892#endif
1893
1894 protected:
1895};
1897 public:
1898 static constexpr uint8_t MESSAGE_TYPE = 70;
1899 static constexpr uint8_t ESTIMATED_SIZE = 4;
1900#ifdef HAS_PROTO_MESSAGE_DUMP
1901 const char *message_name() const override { return "bluetooth_gatt_get_services_request"; }
1902#endif
1903 uint64_t address{0};
1904#ifdef HAS_PROTO_MESSAGE_DUMP
1905 void dump_to(std::string &out) const override;
1906#endif
1907
1908 protected:
1909 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1910};
1912 public:
1913 std::array<uint64_t, 2> uuid{};
1914 uint32_t handle{0};
1915 uint32_t short_uuid{0};
1916 void encode(ProtoWriteBuffer buffer) const override;
1917 void calculate_size(ProtoSize &size) const override;
1918#ifdef HAS_PROTO_MESSAGE_DUMP
1919 void dump_to(std::string &out) const override;
1920#endif
1921
1922 protected:
1923};
1925 public:
1926 std::array<uint64_t, 2> uuid{};
1927 uint32_t handle{0};
1928 uint32_t properties{0};
1930 uint32_t short_uuid{0};
1931 void encode(ProtoWriteBuffer buffer) const override;
1932 void calculate_size(ProtoSize &size) const override;
1933#ifdef HAS_PROTO_MESSAGE_DUMP
1934 void dump_to(std::string &out) const override;
1935#endif
1936
1937 protected:
1938};
1940 public:
1941 std::array<uint64_t, 2> uuid{};
1942 uint32_t handle{0};
1944 uint32_t short_uuid{0};
1945 void encode(ProtoWriteBuffer buffer) const override;
1946 void calculate_size(ProtoSize &size) const override;
1947#ifdef HAS_PROTO_MESSAGE_DUMP
1948 void dump_to(std::string &out) const override;
1949#endif
1950
1951 protected:
1952};
1954 public:
1955 static constexpr uint8_t MESSAGE_TYPE = 71;
1956 static constexpr uint8_t ESTIMATED_SIZE = 38;
1957#ifdef HAS_PROTO_MESSAGE_DUMP
1958 const char *message_name() const override { return "bluetooth_gatt_get_services_response"; }
1959#endif
1960 uint64_t address{0};
1961 std::vector<BluetoothGATTService> services{};
1962 void encode(ProtoWriteBuffer buffer) const override;
1963 void calculate_size(ProtoSize &size) const override;
1964#ifdef HAS_PROTO_MESSAGE_DUMP
1965 void dump_to(std::string &out) const override;
1966#endif
1967
1968 protected:
1969};
1971 public:
1972 static constexpr uint8_t MESSAGE_TYPE = 72;
1973 static constexpr uint8_t ESTIMATED_SIZE = 4;
1974#ifdef HAS_PROTO_MESSAGE_DUMP
1975 const char *message_name() const override { return "bluetooth_gatt_get_services_done_response"; }
1976#endif
1977 uint64_t address{0};
1978 void encode(ProtoWriteBuffer buffer) const override;
1979 void calculate_size(ProtoSize &size) const override;
1980#ifdef HAS_PROTO_MESSAGE_DUMP
1981 void dump_to(std::string &out) const override;
1982#endif
1983
1984 protected:
1985};
1987 public:
1988 static constexpr uint8_t MESSAGE_TYPE = 73;
1989 static constexpr uint8_t ESTIMATED_SIZE = 8;
1990#ifdef HAS_PROTO_MESSAGE_DUMP
1991 const char *message_name() const override { return "bluetooth_gatt_read_request"; }
1992#endif
1993 uint64_t address{0};
1994 uint32_t handle{0};
1995#ifdef HAS_PROTO_MESSAGE_DUMP
1996 void dump_to(std::string &out) const override;
1997#endif
1998
1999 protected:
2000 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2001};
2003 public:
2004 static constexpr uint8_t MESSAGE_TYPE = 74;
2005 static constexpr uint8_t ESTIMATED_SIZE = 17;
2006#ifdef HAS_PROTO_MESSAGE_DUMP
2007 const char *message_name() const override { return "bluetooth_gatt_read_response"; }
2008#endif
2009 uint64_t address{0};
2010 uint32_t handle{0};
2011 const uint8_t *data_ptr_{nullptr};
2012 size_t data_len_{0};
2013 void set_data(const uint8_t *data, size_t len) {
2014 this->data_ptr_ = data;
2015 this->data_len_ = len;
2016 }
2017 void encode(ProtoWriteBuffer buffer) const override;
2018 void calculate_size(ProtoSize &size) const override;
2019#ifdef HAS_PROTO_MESSAGE_DUMP
2020 void dump_to(std::string &out) const override;
2021#endif
2022
2023 protected:
2024};
2026 public:
2027 static constexpr uint8_t MESSAGE_TYPE = 75;
2028 static constexpr uint8_t ESTIMATED_SIZE = 29;
2029#ifdef HAS_PROTO_MESSAGE_DUMP
2030 const char *message_name() const override { return "bluetooth_gatt_write_request"; }
2031#endif
2032 uint64_t address{0};
2033 uint32_t handle{0};
2034 bool response{false};
2035 const uint8_t *data{nullptr};
2036 uint16_t data_len{0};
2037#ifdef HAS_PROTO_MESSAGE_DUMP
2038 void dump_to(std::string &out) const override;
2039#endif
2040
2041 protected:
2042 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2043 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2044};
2046 public:
2047 static constexpr uint8_t MESSAGE_TYPE = 76;
2048 static constexpr uint8_t ESTIMATED_SIZE = 8;
2049#ifdef HAS_PROTO_MESSAGE_DUMP
2050 const char *message_name() const override { return "bluetooth_gatt_read_descriptor_request"; }
2051#endif
2052 uint64_t address{0};
2053 uint32_t handle{0};
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 = 77;
2064 static constexpr uint8_t ESTIMATED_SIZE = 27;
2065#ifdef HAS_PROTO_MESSAGE_DUMP
2066 const char *message_name() const override { return "bluetooth_gatt_write_descriptor_request"; }
2067#endif
2068 uint64_t address{0};
2069 uint32_t handle{0};
2070 const uint8_t *data{nullptr};
2071 uint16_t data_len{0};
2072#ifdef HAS_PROTO_MESSAGE_DUMP
2073 void dump_to(std::string &out) const override;
2074#endif
2075
2076 protected:
2077 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2078 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2079};
2081 public:
2082 static constexpr uint8_t MESSAGE_TYPE = 78;
2083 static constexpr uint8_t ESTIMATED_SIZE = 10;
2084#ifdef HAS_PROTO_MESSAGE_DUMP
2085 const char *message_name() const override { return "bluetooth_gatt_notify_request"; }
2086#endif
2087 uint64_t address{0};
2088 uint32_t handle{0};
2089 bool enable{false};
2090#ifdef HAS_PROTO_MESSAGE_DUMP
2091 void dump_to(std::string &out) const override;
2092#endif
2093
2094 protected:
2095 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2096};
2098 public:
2099 static constexpr uint8_t MESSAGE_TYPE = 79;
2100 static constexpr uint8_t ESTIMATED_SIZE = 17;
2101#ifdef HAS_PROTO_MESSAGE_DUMP
2102 const char *message_name() const override { return "bluetooth_gatt_notify_data_response"; }
2103#endif
2104 uint64_t address{0};
2105 uint32_t handle{0};
2106 const uint8_t *data_ptr_{nullptr};
2107 size_t data_len_{0};
2108 void set_data(const uint8_t *data, size_t len) {
2109 this->data_ptr_ = data;
2110 this->data_len_ = len;
2111 }
2112 void encode(ProtoWriteBuffer buffer) const override;
2113 void calculate_size(ProtoSize &size) const override;
2114#ifdef HAS_PROTO_MESSAGE_DUMP
2115 void dump_to(std::string &out) const override;
2116#endif
2117
2118 protected:
2119};
2121 public:
2122 static constexpr uint8_t MESSAGE_TYPE = 80;
2123 static constexpr uint8_t ESTIMATED_SIZE = 0;
2124#ifdef HAS_PROTO_MESSAGE_DUMP
2125 const char *message_name() const override { return "subscribe_bluetooth_connections_free_request"; }
2126#endif
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 = 81;
2136 static constexpr uint8_t ESTIMATED_SIZE = 20;
2137#ifdef HAS_PROTO_MESSAGE_DUMP
2138 const char *message_name() const override { return "bluetooth_connections_free_response"; }
2139#endif
2140 uint32_t free{0};
2141 uint32_t limit{0};
2142 std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
2143 void encode(ProtoWriteBuffer buffer) const override;
2144 void calculate_size(ProtoSize &size) const override;
2145#ifdef HAS_PROTO_MESSAGE_DUMP
2146 void dump_to(std::string &out) const override;
2147#endif
2148
2149 protected:
2150};
2152 public:
2153 static constexpr uint8_t MESSAGE_TYPE = 82;
2154 static constexpr uint8_t ESTIMATED_SIZE = 12;
2155#ifdef HAS_PROTO_MESSAGE_DUMP
2156 const char *message_name() const override { return "bluetooth_gatt_error_response"; }
2157#endif
2158 uint64_t address{0};
2159 uint32_t handle{0};
2160 int32_t error{0};
2161 void encode(ProtoWriteBuffer buffer) const override;
2162 void calculate_size(ProtoSize &size) const override;
2163#ifdef HAS_PROTO_MESSAGE_DUMP
2164 void dump_to(std::string &out) const override;
2165#endif
2166
2167 protected:
2168};
2170 public:
2171 static constexpr uint8_t MESSAGE_TYPE = 83;
2172 static constexpr uint8_t ESTIMATED_SIZE = 8;
2173#ifdef HAS_PROTO_MESSAGE_DUMP
2174 const char *message_name() const override { return "bluetooth_gatt_write_response"; }
2175#endif
2176 uint64_t address{0};
2177 uint32_t handle{0};
2178 void encode(ProtoWriteBuffer buffer) const override;
2179 void calculate_size(ProtoSize &size) const override;
2180#ifdef HAS_PROTO_MESSAGE_DUMP
2181 void dump_to(std::string &out) const override;
2182#endif
2183
2184 protected:
2185};
2187 public:
2188 static constexpr uint8_t MESSAGE_TYPE = 84;
2189 static constexpr uint8_t ESTIMATED_SIZE = 8;
2190#ifdef HAS_PROTO_MESSAGE_DUMP
2191 const char *message_name() const override { return "bluetooth_gatt_notify_response"; }
2192#endif
2193 uint64_t address{0};
2194 uint32_t handle{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 = 85;
2206 static constexpr uint8_t ESTIMATED_SIZE = 10;
2207#ifdef HAS_PROTO_MESSAGE_DUMP
2208 const char *message_name() const override { return "bluetooth_device_pairing_response"; }
2209#endif
2210 uint64_t address{0};
2211 bool paired{false};
2212 int32_t error{0};
2213 void encode(ProtoWriteBuffer buffer) const override;
2214 void calculate_size(ProtoSize &size) const override;
2215#ifdef HAS_PROTO_MESSAGE_DUMP
2216 void dump_to(std::string &out) const override;
2217#endif
2218
2219 protected:
2220};
2222 public:
2223 static constexpr uint8_t MESSAGE_TYPE = 86;
2224 static constexpr uint8_t ESTIMATED_SIZE = 10;
2225#ifdef HAS_PROTO_MESSAGE_DUMP
2226 const char *message_name() const override { return "bluetooth_device_unpairing_response"; }
2227#endif
2228 uint64_t address{0};
2229 bool success{false};
2230 int32_t error{0};
2231 void encode(ProtoWriteBuffer buffer) const override;
2232 void calculate_size(ProtoSize &size) const override;
2233#ifdef HAS_PROTO_MESSAGE_DUMP
2234 void dump_to(std::string &out) const override;
2235#endif
2236
2237 protected:
2238};
2240 public:
2241 static constexpr uint8_t MESSAGE_TYPE = 87;
2242 static constexpr uint8_t ESTIMATED_SIZE = 0;
2243#ifdef HAS_PROTO_MESSAGE_DUMP
2244 const char *message_name() const override { return "unsubscribe_bluetooth_le_advertisements_request"; }
2245#endif
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 = 88;
2255 static constexpr uint8_t ESTIMATED_SIZE = 10;
2256#ifdef HAS_PROTO_MESSAGE_DUMP
2257 const char *message_name() const override { return "bluetooth_device_clear_cache_response"; }
2258#endif
2259 uint64_t address{0};
2260 bool success{false};
2261 int32_t error{0};
2262 void encode(ProtoWriteBuffer buffer) const override;
2263 void calculate_size(ProtoSize &size) const override;
2264#ifdef HAS_PROTO_MESSAGE_DUMP
2265 void dump_to(std::string &out) const override;
2266#endif
2267
2268 protected:
2269};
2271 public:
2272 static constexpr uint8_t MESSAGE_TYPE = 126;
2273 static constexpr uint8_t ESTIMATED_SIZE = 6;
2274#ifdef HAS_PROTO_MESSAGE_DUMP
2275 const char *message_name() const override { return "bluetooth_scanner_state_response"; }
2276#endif
2280 void encode(ProtoWriteBuffer buffer) const override;
2281 void calculate_size(ProtoSize &size) const override;
2282#ifdef HAS_PROTO_MESSAGE_DUMP
2283 void dump_to(std::string &out) const override;
2284#endif
2285
2286 protected:
2287};
2289 public:
2290 static constexpr uint8_t MESSAGE_TYPE = 127;
2291 static constexpr uint8_t ESTIMATED_SIZE = 2;
2292#ifdef HAS_PROTO_MESSAGE_DUMP
2293 const char *message_name() const override { return "bluetooth_scanner_set_mode_request"; }
2294#endif
2296#ifdef HAS_PROTO_MESSAGE_DUMP
2297 void dump_to(std::string &out) const override;
2298#endif
2299
2300 protected:
2301 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2302};
2303#endif
2304#ifdef USE_VOICE_ASSISTANT
2306 public:
2307 static constexpr uint8_t MESSAGE_TYPE = 89;
2308 static constexpr uint8_t ESTIMATED_SIZE = 6;
2309#ifdef HAS_PROTO_MESSAGE_DUMP
2310 const char *message_name() const override { return "subscribe_voice_assistant_request"; }
2311#endif
2312 bool subscribe{false};
2313 uint32_t flags{0};
2314#ifdef HAS_PROTO_MESSAGE_DUMP
2315 void dump_to(std::string &out) const override;
2316#endif
2317
2318 protected:
2319 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2320};
2322 public:
2324 uint32_t auto_gain{0};
2326 void encode(ProtoWriteBuffer buffer) const override;
2327 void calculate_size(ProtoSize &size) const override;
2328#ifdef HAS_PROTO_MESSAGE_DUMP
2329 void dump_to(std::string &out) const override;
2330#endif
2331
2332 protected:
2333};
2335 public:
2336 static constexpr uint8_t MESSAGE_TYPE = 90;
2337 static constexpr uint8_t ESTIMATED_SIZE = 41;
2338#ifdef HAS_PROTO_MESSAGE_DUMP
2339 const char *message_name() const override { return "voice_assistant_request"; }
2340#endif
2341 bool start{false};
2343 void set_conversation_id(const StringRef &ref) { this->conversation_id_ref_ = ref; }
2344 uint32_t flags{0};
2347 void set_wake_word_phrase(const StringRef &ref) { this->wake_word_phrase_ref_ = ref; }
2348 void encode(ProtoWriteBuffer buffer) const override;
2349 void calculate_size(ProtoSize &size) const override;
2350#ifdef HAS_PROTO_MESSAGE_DUMP
2351 void dump_to(std::string &out) const override;
2352#endif
2353
2354 protected:
2355};
2357 public:
2358 static constexpr uint8_t MESSAGE_TYPE = 91;
2359 static constexpr uint8_t ESTIMATED_SIZE = 6;
2360#ifdef HAS_PROTO_MESSAGE_DUMP
2361 const char *message_name() const override { return "voice_assistant_response"; }
2362#endif
2363 uint32_t port{0};
2364 bool error{false};
2365#ifdef HAS_PROTO_MESSAGE_DUMP
2366 void dump_to(std::string &out) const override;
2367#endif
2368
2369 protected:
2370 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2371};
2373 public:
2374 std::string name{};
2375 std::string value{};
2376#ifdef HAS_PROTO_MESSAGE_DUMP
2377 void dump_to(std::string &out) const override;
2378#endif
2379
2380 protected:
2381 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2382};
2384 public:
2385 static constexpr uint8_t MESSAGE_TYPE = 92;
2386 static constexpr uint8_t ESTIMATED_SIZE = 36;
2387#ifdef HAS_PROTO_MESSAGE_DUMP
2388 const char *message_name() const override { return "voice_assistant_event_response"; }
2389#endif
2391 std::vector<VoiceAssistantEventData> data{};
2392#ifdef HAS_PROTO_MESSAGE_DUMP
2393 void dump_to(std::string &out) const override;
2394#endif
2395
2396 protected:
2397 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2398 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2399};
2401 public:
2402 static constexpr uint8_t MESSAGE_TYPE = 106;
2403 static constexpr uint8_t ESTIMATED_SIZE = 11;
2404#ifdef HAS_PROTO_MESSAGE_DUMP
2405 const char *message_name() const override { return "voice_assistant_audio"; }
2406#endif
2407 std::string data{};
2408 const uint8_t *data_ptr_{nullptr};
2409 size_t data_len_{0};
2410 void set_data(const uint8_t *data, size_t len) {
2411 this->data_ptr_ = data;
2412 this->data_len_ = len;
2413 }
2414 bool end{false};
2415 void encode(ProtoWriteBuffer buffer) const override;
2416 void calculate_size(ProtoSize &size) const override;
2417#ifdef HAS_PROTO_MESSAGE_DUMP
2418 void dump_to(std::string &out) const override;
2419#endif
2420
2421 protected:
2422 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2423 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2424};
2426 public:
2427 static constexpr uint8_t MESSAGE_TYPE = 115;
2428 static constexpr uint8_t ESTIMATED_SIZE = 30;
2429#ifdef HAS_PROTO_MESSAGE_DUMP
2430 const char *message_name() const override { return "voice_assistant_timer_event_response"; }
2431#endif
2433 std::string timer_id{};
2434 std::string name{};
2435 uint32_t total_seconds{0};
2436 uint32_t seconds_left{0};
2437 bool is_active{false};
2438#ifdef HAS_PROTO_MESSAGE_DUMP
2439 void dump_to(std::string &out) const override;
2440#endif
2441
2442 protected:
2443 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2444 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2445};
2447 public:
2448 static constexpr uint8_t MESSAGE_TYPE = 119;
2449 static constexpr uint8_t ESTIMATED_SIZE = 29;
2450#ifdef HAS_PROTO_MESSAGE_DUMP
2451 const char *message_name() const override { return "voice_assistant_announce_request"; }
2452#endif
2453 std::string media_id{};
2454 std::string text{};
2457#ifdef HAS_PROTO_MESSAGE_DUMP
2458 void dump_to(std::string &out) const override;
2459#endif
2460
2461 protected:
2462 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2463 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2464};
2466 public:
2467 static constexpr uint8_t MESSAGE_TYPE = 120;
2468 static constexpr uint8_t ESTIMATED_SIZE = 2;
2469#ifdef HAS_PROTO_MESSAGE_DUMP
2470 const char *message_name() const override { return "voice_assistant_announce_finished"; }
2471#endif
2472 bool success{false};
2473 void encode(ProtoWriteBuffer buffer) const override;
2474 void calculate_size(ProtoSize &size) const override;
2475#ifdef HAS_PROTO_MESSAGE_DUMP
2476 void dump_to(std::string &out) const override;
2477#endif
2478
2479 protected:
2480};
2482 public:
2484 void set_id(const StringRef &ref) { this->id_ref_ = ref; }
2486 void set_wake_word(const StringRef &ref) { this->wake_word_ref_ = ref; }
2487 std::vector<std::string> trained_languages{};
2488 void encode(ProtoWriteBuffer buffer) const override;
2489 void calculate_size(ProtoSize &size) const override;
2490#ifdef HAS_PROTO_MESSAGE_DUMP
2491 void dump_to(std::string &out) const override;
2492#endif
2493
2494 protected:
2495};
2497 public:
2498 std::string id{};
2499 std::string wake_word{};
2500 std::vector<std::string> trained_languages{};
2501 std::string model_type{};
2502 uint32_t model_size{0};
2503 std::string model_hash{};
2504 std::string url{};
2505#ifdef HAS_PROTO_MESSAGE_DUMP
2506 void dump_to(std::string &out) const override;
2507#endif
2508
2509 protected:
2510 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2511 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2512};
2514 public:
2515 static constexpr uint8_t MESSAGE_TYPE = 121;
2516 static constexpr uint8_t ESTIMATED_SIZE = 34;
2517#ifdef HAS_PROTO_MESSAGE_DUMP
2518 const char *message_name() const override { return "voice_assistant_configuration_request"; }
2519#endif
2520 std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
2521#ifdef HAS_PROTO_MESSAGE_DUMP
2522 void dump_to(std::string &out) const override;
2523#endif
2524
2525 protected:
2526 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2527};
2529 public:
2530 static constexpr uint8_t MESSAGE_TYPE = 122;
2531 static constexpr uint8_t ESTIMATED_SIZE = 56;
2532#ifdef HAS_PROTO_MESSAGE_DUMP
2533 const char *message_name() const override { return "voice_assistant_configuration_response"; }
2534#endif
2535 std::vector<VoiceAssistantWakeWord> available_wake_words{};
2536 const std::vector<std::string> *active_wake_words{};
2538 void encode(ProtoWriteBuffer buffer) const override;
2539 void calculate_size(ProtoSize &size) const override;
2540#ifdef HAS_PROTO_MESSAGE_DUMP
2541 void dump_to(std::string &out) const override;
2542#endif
2543
2544 protected:
2545};
2547 public:
2548 static constexpr uint8_t MESSAGE_TYPE = 123;
2549 static constexpr uint8_t ESTIMATED_SIZE = 18;
2550#ifdef HAS_PROTO_MESSAGE_DUMP
2551 const char *message_name() const override { return "voice_assistant_set_configuration"; }
2552#endif
2553 std::vector<std::string> active_wake_words{};
2554#ifdef HAS_PROTO_MESSAGE_DUMP
2555 void dump_to(std::string &out) const override;
2556#endif
2557
2558 protected:
2559 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2560};
2561#endif
2562#ifdef USE_ALARM_CONTROL_PANEL
2564 public:
2565 static constexpr uint8_t MESSAGE_TYPE = 94;
2566 static constexpr uint8_t ESTIMATED_SIZE = 48;
2567#ifdef HAS_PROTO_MESSAGE_DUMP
2568 const char *message_name() const override { return "list_entities_alarm_control_panel_response"; }
2569#endif
2571 bool requires_code{false};
2573 void encode(ProtoWriteBuffer buffer) const override;
2574 void calculate_size(ProtoSize &size) const override;
2575#ifdef HAS_PROTO_MESSAGE_DUMP
2576 void dump_to(std::string &out) const override;
2577#endif
2578
2579 protected:
2580};
2582 public:
2583 static constexpr uint8_t MESSAGE_TYPE = 95;
2584 static constexpr uint8_t ESTIMATED_SIZE = 11;
2585#ifdef HAS_PROTO_MESSAGE_DUMP
2586 const char *message_name() const override { return "alarm_control_panel_state_response"; }
2587#endif
2589 void encode(ProtoWriteBuffer buffer) const override;
2590 void calculate_size(ProtoSize &size) const override;
2591#ifdef HAS_PROTO_MESSAGE_DUMP
2592 void dump_to(std::string &out) const override;
2593#endif
2594
2595 protected:
2596};
2598 public:
2599 static constexpr uint8_t MESSAGE_TYPE = 96;
2600 static constexpr uint8_t ESTIMATED_SIZE = 20;
2601#ifdef HAS_PROTO_MESSAGE_DUMP
2602 const char *message_name() const override { return "alarm_control_panel_command_request"; }
2603#endif
2605 std::string code{};
2606#ifdef HAS_PROTO_MESSAGE_DUMP
2607 void dump_to(std::string &out) const override;
2608#endif
2609
2610 protected:
2611 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2612 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2613 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2614};
2615#endif
2616#ifdef USE_TEXT
2618 public:
2619 static constexpr uint8_t MESSAGE_TYPE = 97;
2620 static constexpr uint8_t ESTIMATED_SIZE = 59;
2621#ifdef HAS_PROTO_MESSAGE_DUMP
2622 const char *message_name() const override { return "list_entities_text_response"; }
2623#endif
2624 uint32_t min_length{0};
2625 uint32_t max_length{0};
2627 void set_pattern(const StringRef &ref) { this->pattern_ref_ = ref; }
2629 void encode(ProtoWriteBuffer buffer) const override;
2630 void calculate_size(ProtoSize &size) const override;
2631#ifdef HAS_PROTO_MESSAGE_DUMP
2632 void dump_to(std::string &out) const override;
2633#endif
2634
2635 protected:
2636};
2638 public:
2639 static constexpr uint8_t MESSAGE_TYPE = 98;
2640 static constexpr uint8_t ESTIMATED_SIZE = 20;
2641#ifdef HAS_PROTO_MESSAGE_DUMP
2642 const char *message_name() const override { return "text_state_response"; }
2643#endif
2645 void set_state(const StringRef &ref) { this->state_ref_ = ref; }
2646 bool missing_state{false};
2647 void encode(ProtoWriteBuffer buffer) const override;
2648 void calculate_size(ProtoSize &size) const override;
2649#ifdef HAS_PROTO_MESSAGE_DUMP
2650 void dump_to(std::string &out) const override;
2651#endif
2652
2653 protected:
2654};
2656 public:
2657 static constexpr uint8_t MESSAGE_TYPE = 99;
2658 static constexpr uint8_t ESTIMATED_SIZE = 18;
2659#ifdef HAS_PROTO_MESSAGE_DUMP
2660 const char *message_name() const override { return "text_command_request"; }
2661#endif
2662 std::string state{};
2663#ifdef HAS_PROTO_MESSAGE_DUMP
2664 void dump_to(std::string &out) const override;
2665#endif
2666
2667 protected:
2668 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2669 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2670 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2671};
2672#endif
2673#ifdef USE_DATETIME_DATE
2675 public:
2676 static constexpr uint8_t MESSAGE_TYPE = 100;
2677 static constexpr uint8_t ESTIMATED_SIZE = 40;
2678#ifdef HAS_PROTO_MESSAGE_DUMP
2679 const char *message_name() const override { return "list_entities_date_response"; }
2680#endif
2681 void encode(ProtoWriteBuffer buffer) const override;
2682 void calculate_size(ProtoSize &size) const override;
2683#ifdef HAS_PROTO_MESSAGE_DUMP
2684 void dump_to(std::string &out) const override;
2685#endif
2686
2687 protected:
2688};
2690 public:
2691 static constexpr uint8_t MESSAGE_TYPE = 101;
2692 static constexpr uint8_t ESTIMATED_SIZE = 23;
2693#ifdef HAS_PROTO_MESSAGE_DUMP
2694 const char *message_name() const override { return "date_state_response"; }
2695#endif
2696 bool missing_state{false};
2697 uint32_t year{0};
2698 uint32_t month{0};
2699 uint32_t day{0};
2700 void encode(ProtoWriteBuffer buffer) const override;
2701 void calculate_size(ProtoSize &size) const override;
2702#ifdef HAS_PROTO_MESSAGE_DUMP
2703 void dump_to(std::string &out) const override;
2704#endif
2705
2706 protected:
2707};
2709 public:
2710 static constexpr uint8_t MESSAGE_TYPE = 102;
2711 static constexpr uint8_t ESTIMATED_SIZE = 21;
2712#ifdef HAS_PROTO_MESSAGE_DUMP
2713 const char *message_name() const override { return "date_command_request"; }
2714#endif
2715 uint32_t year{0};
2716 uint32_t month{0};
2717 uint32_t day{0};
2718#ifdef HAS_PROTO_MESSAGE_DUMP
2719 void dump_to(std::string &out) const override;
2720#endif
2721
2722 protected:
2723 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2724 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2725};
2726#endif
2727#ifdef USE_DATETIME_TIME
2729 public:
2730 static constexpr uint8_t MESSAGE_TYPE = 103;
2731 static constexpr uint8_t ESTIMATED_SIZE = 40;
2732#ifdef HAS_PROTO_MESSAGE_DUMP
2733 const char *message_name() const override { return "list_entities_time_response"; }
2734#endif
2735 void encode(ProtoWriteBuffer buffer) const override;
2736 void calculate_size(ProtoSize &size) const override;
2737#ifdef HAS_PROTO_MESSAGE_DUMP
2738 void dump_to(std::string &out) const override;
2739#endif
2740
2741 protected:
2742};
2744 public:
2745 static constexpr uint8_t MESSAGE_TYPE = 104;
2746 static constexpr uint8_t ESTIMATED_SIZE = 23;
2747#ifdef HAS_PROTO_MESSAGE_DUMP
2748 const char *message_name() const override { return "time_state_response"; }
2749#endif
2750 bool missing_state{false};
2751 uint32_t hour{0};
2752 uint32_t minute{0};
2753 uint32_t second{0};
2754 void encode(ProtoWriteBuffer buffer) const override;
2755 void calculate_size(ProtoSize &size) const override;
2756#ifdef HAS_PROTO_MESSAGE_DUMP
2757 void dump_to(std::string &out) const override;
2758#endif
2759
2760 protected:
2761};
2763 public:
2764 static constexpr uint8_t MESSAGE_TYPE = 105;
2765 static constexpr uint8_t ESTIMATED_SIZE = 21;
2766#ifdef HAS_PROTO_MESSAGE_DUMP
2767 const char *message_name() const override { return "time_command_request"; }
2768#endif
2769 uint32_t hour{0};
2770 uint32_t minute{0};
2771 uint32_t second{0};
2772#ifdef HAS_PROTO_MESSAGE_DUMP
2773 void dump_to(std::string &out) const override;
2774#endif
2775
2776 protected:
2777 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2778 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2779};
2780#endif
2781#ifdef USE_EVENT
2783 public:
2784 static constexpr uint8_t MESSAGE_TYPE = 107;
2785 static constexpr uint8_t ESTIMATED_SIZE = 67;
2786#ifdef HAS_PROTO_MESSAGE_DUMP
2787 const char *message_name() const override { return "list_entities_event_response"; }
2788#endif
2790 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2792 void encode(ProtoWriteBuffer buffer) const override;
2793 void calculate_size(ProtoSize &size) const override;
2794#ifdef HAS_PROTO_MESSAGE_DUMP
2795 void dump_to(std::string &out) const override;
2796#endif
2797
2798 protected:
2799};
2801 public:
2802 static constexpr uint8_t MESSAGE_TYPE = 108;
2803 static constexpr uint8_t ESTIMATED_SIZE = 18;
2804#ifdef HAS_PROTO_MESSAGE_DUMP
2805 const char *message_name() const override { return "event_response"; }
2806#endif
2808 void set_event_type(const StringRef &ref) { this->event_type_ref_ = ref; }
2809 void encode(ProtoWriteBuffer buffer) const override;
2810 void calculate_size(ProtoSize &size) const override;
2811#ifdef HAS_PROTO_MESSAGE_DUMP
2812 void dump_to(std::string &out) const override;
2813#endif
2814
2815 protected:
2816};
2817#endif
2818#ifdef USE_VALVE
2820 public:
2821 static constexpr uint8_t MESSAGE_TYPE = 109;
2822 static constexpr uint8_t ESTIMATED_SIZE = 55;
2823#ifdef HAS_PROTO_MESSAGE_DUMP
2824 const char *message_name() const override { return "list_entities_valve_response"; }
2825#endif
2827 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2828 bool assumed_state{false};
2830 bool supports_stop{false};
2831 void encode(ProtoWriteBuffer buffer) const override;
2832 void calculate_size(ProtoSize &size) const override;
2833#ifdef HAS_PROTO_MESSAGE_DUMP
2834 void dump_to(std::string &out) const override;
2835#endif
2836
2837 protected:
2838};
2840 public:
2841 static constexpr uint8_t MESSAGE_TYPE = 110;
2842 static constexpr uint8_t ESTIMATED_SIZE = 16;
2843#ifdef HAS_PROTO_MESSAGE_DUMP
2844 const char *message_name() const override { return "valve_state_response"; }
2845#endif
2846 float position{0.0f};
2848 void encode(ProtoWriteBuffer buffer) const override;
2849 void calculate_size(ProtoSize &size) const override;
2850#ifdef HAS_PROTO_MESSAGE_DUMP
2851 void dump_to(std::string &out) const override;
2852#endif
2853
2854 protected:
2855};
2857 public:
2858 static constexpr uint8_t MESSAGE_TYPE = 111;
2859 static constexpr uint8_t ESTIMATED_SIZE = 18;
2860#ifdef HAS_PROTO_MESSAGE_DUMP
2861 const char *message_name() const override { return "valve_command_request"; }
2862#endif
2863 bool has_position{false};
2864 float position{0.0f};
2865 bool stop{false};
2866#ifdef HAS_PROTO_MESSAGE_DUMP
2867 void dump_to(std::string &out) const override;
2868#endif
2869
2870 protected:
2871 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2872 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2873};
2874#endif
2875#ifdef USE_DATETIME_DATETIME
2877 public:
2878 static constexpr uint8_t MESSAGE_TYPE = 112;
2879 static constexpr uint8_t ESTIMATED_SIZE = 40;
2880#ifdef HAS_PROTO_MESSAGE_DUMP
2881 const char *message_name() const override { return "list_entities_date_time_response"; }
2882#endif
2883 void encode(ProtoWriteBuffer buffer) const override;
2884 void calculate_size(ProtoSize &size) const override;
2885#ifdef HAS_PROTO_MESSAGE_DUMP
2886 void dump_to(std::string &out) const override;
2887#endif
2888
2889 protected:
2890};
2892 public:
2893 static constexpr uint8_t MESSAGE_TYPE = 113;
2894 static constexpr uint8_t ESTIMATED_SIZE = 16;
2895#ifdef HAS_PROTO_MESSAGE_DUMP
2896 const char *message_name() const override { return "date_time_state_response"; }
2897#endif
2898 bool missing_state{false};
2899 uint32_t epoch_seconds{0};
2900 void encode(ProtoWriteBuffer buffer) const override;
2901 void calculate_size(ProtoSize &size) const override;
2902#ifdef HAS_PROTO_MESSAGE_DUMP
2903 void dump_to(std::string &out) const override;
2904#endif
2905
2906 protected:
2907};
2909 public:
2910 static constexpr uint8_t MESSAGE_TYPE = 114;
2911 static constexpr uint8_t ESTIMATED_SIZE = 14;
2912#ifdef HAS_PROTO_MESSAGE_DUMP
2913 const char *message_name() const override { return "date_time_command_request"; }
2914#endif
2915 uint32_t epoch_seconds{0};
2916#ifdef HAS_PROTO_MESSAGE_DUMP
2917 void dump_to(std::string &out) const override;
2918#endif
2919
2920 protected:
2921 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2922 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2923};
2924#endif
2925#ifdef USE_UPDATE
2927 public:
2928 static constexpr uint8_t MESSAGE_TYPE = 116;
2929 static constexpr uint8_t ESTIMATED_SIZE = 49;
2930#ifdef HAS_PROTO_MESSAGE_DUMP
2931 const char *message_name() const override { return "list_entities_update_response"; }
2932#endif
2934 void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
2935 void encode(ProtoWriteBuffer buffer) const override;
2936 void calculate_size(ProtoSize &size) const override;
2937#ifdef HAS_PROTO_MESSAGE_DUMP
2938 void dump_to(std::string &out) const override;
2939#endif
2940
2941 protected:
2942};
2944 public:
2945 static constexpr uint8_t MESSAGE_TYPE = 117;
2946 static constexpr uint8_t ESTIMATED_SIZE = 65;
2947#ifdef HAS_PROTO_MESSAGE_DUMP
2948 const char *message_name() const override { return "update_state_response"; }
2949#endif
2950 bool missing_state{false};
2951 bool in_progress{false};
2952 bool has_progress{false};
2953 float progress{0.0f};
2955 void set_current_version(const StringRef &ref) { this->current_version_ref_ = ref; }
2957 void set_latest_version(const StringRef &ref) { this->latest_version_ref_ = ref; }
2959 void set_title(const StringRef &ref) { this->title_ref_ = ref; }
2961 void set_release_summary(const StringRef &ref) { this->release_summary_ref_ = ref; }
2963 void set_release_url(const StringRef &ref) { this->release_url_ref_ = ref; }
2964 void encode(ProtoWriteBuffer buffer) const override;
2965 void calculate_size(ProtoSize &size) const override;
2966#ifdef HAS_PROTO_MESSAGE_DUMP
2967 void dump_to(std::string &out) const override;
2968#endif
2969
2970 protected:
2971};
2973 public:
2974 static constexpr uint8_t MESSAGE_TYPE = 118;
2975 static constexpr uint8_t ESTIMATED_SIZE = 11;
2976#ifdef HAS_PROTO_MESSAGE_DUMP
2977 const char *message_name() const override { return "update_command_request"; }
2978#endif
2980#ifdef HAS_PROTO_MESSAGE_DUMP
2981 void dump_to(std::string &out) const override;
2982#endif
2983
2984 protected:
2985 bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2986 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2987};
2988#endif
2989#ifdef USE_ZWAVE_PROXY
2991 public:
2992 static constexpr uint8_t MESSAGE_TYPE = 128;
2993 static constexpr uint8_t ESTIMATED_SIZE = 19;
2994#ifdef HAS_PROTO_MESSAGE_DUMP
2995 const char *message_name() const override { return "z_wave_proxy_frame"; }
2996#endif
2997 const uint8_t *data{nullptr};
2998 uint16_t data_len{0};
2999 void encode(ProtoWriteBuffer buffer) const override;
3000 void calculate_size(ProtoSize &size) const override;
3001#ifdef HAS_PROTO_MESSAGE_DUMP
3002 void dump_to(std::string &out) const override;
3003#endif
3004
3005 protected:
3006 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3007};
3009 public:
3010 static constexpr uint8_t MESSAGE_TYPE = 129;
3011 static constexpr uint8_t ESTIMATED_SIZE = 21;
3012#ifdef HAS_PROTO_MESSAGE_DUMP
3013 const char *message_name() const override { return "z_wave_proxy_request"; }
3014#endif
3016 const uint8_t *data{nullptr};
3017 uint16_t data_len{0};
3018 void encode(ProtoWriteBuffer buffer) const override;
3019 void calculate_size(ProtoSize &size) const override;
3020#ifdef HAS_PROTO_MESSAGE_DUMP
3021 void dump_to(std::string &out) const override;
3022#endif
3023
3024 protected:
3025 bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
3026 bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
3027};
3028#endif
3029
3030} // namespace esphome::api
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
Definition helpers.h:184
StringRef is a reference to a string owned by something else.
Definition string_ref.h:22
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2616
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2591
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2602
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2604
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2606
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2600
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2584
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2584
enums::AlarmControlPanelState state
Definition api_pb2.h:2588
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2583
const char * message_name() const override
Definition api_pb2.h:2586
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2577
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:2142
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2185
const char * message_name() const override
Definition api_pb2.h:2138
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2194
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2254
const char * message_name() const override
Definition api_pb2.h:2257
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2249
const char * message_name() const override
Definition api_pb2.h:1882
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1974
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1980
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:2234
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2206
const char * message_name() const override
Definition api_pb2.h:2208
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2205
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2229
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1861
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1867
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1864
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1862
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1955
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2239
const char * message_name() const override
Definition api_pb2.h:2226
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2244
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2012
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:1929
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2024
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1926
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2004
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1913
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1996
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2203
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2154
const char * message_name() const override
Definition api_pb2.h:2156
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2208
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2153
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2064
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1975
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2067
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1901
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1899
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1986
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2060
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1958
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2054
std::vector< BluetoothGATTService > services
Definition api_pb2.h:1961
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2175
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2108
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2180
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2100
const char * message_name() const override
Definition api_pb2.h:2102
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2083
const char * message_name() const override
Definition api_pb2.h:2085
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2082
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2159
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2188
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2189
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2225
const char * message_name() const override
Definition api_pb2.h:2191
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2221
const char * message_name() const override
Definition api_pb2.h:2050
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2120
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2068
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1988
const char * message_name() const override
Definition api_pb2.h:1991
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1989
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2081
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2004
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2013
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2005
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2086
const char * message_name() const override
Definition api_pb2.h:2007
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:1943
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2045
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2034
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1941
const char * message_name() const override
Definition api_pb2.h:2066
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2146
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2133
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2107
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2028
const char * message_name() const override
Definition api_pb2.h:2030
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2091
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2027
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2217
const char * message_name() const override
Definition api_pb2.h:2174
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2172
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2213
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2171
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1939
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1933
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1849
const char * message_name() const override
Definition api_pb2.h:1847
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1945
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1950
const char * message_name() const override
Definition api_pb2.h:2293
enums::BluetoothScannerMode mode
Definition api_pb2.h:2295
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2290
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2269
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2291
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2259
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2273
enums::BluetoothScannerMode mode
Definition api_pb2.h:2278
void dump_to(std::string &out) const override
enums::BluetoothScannerState state
Definition api_pb2.h:2277
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2272
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2279
const char * message_name() const override
Definition api_pb2.h:2275
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2264
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1719
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1778
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1722
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1790
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1720
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1358
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1356
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1355
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1148
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:1340
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1140
const char * message_name() const override
Definition api_pb2.h:1336
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1334
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1333
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1132
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1366
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1436
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1437
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1452
const char * message_name() const override
Definition api_pb2.h:1439
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1450
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1299
enums::ClimatePreset preset
Definition api_pb2.h:1456
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1353
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1417
void dump_to(std::string &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1418
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1406
void set_custom_fan_mode(const StringRef &ref)
Definition api_pb2.h:1420
void set_custom_preset(const StringRef &ref)
Definition api_pb2.h:1423
const char * message_name() const override
Definition api_pb2.h:1409
enums::ClimateAction action
Definition api_pb2.h:1416
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1261
enums::ClimatePreset preset
Definition api_pb2.h:1421
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1280
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1407
~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:2779
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2710
const char * message_name() const override
Definition api_pb2.h:2713
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2758
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2711
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2738
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2691
const char * message_name() const override
Definition api_pb2.h:2694
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2748
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2692
const char * message_name() const override
Definition api_pb2.h:2913
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2911
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2910
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3059
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3047
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3039
const char * message_name() const override
Definition api_pb2.h:2896
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2893
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2894
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3031
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:2913
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2906
const char * message_name() const override
Definition api_pb2.h:2805
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2802
void set_event_type(const StringRef &ref)
Definition api_pb2.h:2808
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2803
void decode(const uint8_t *buffer, size_t length) override
Definition api_pb2.cpp:1067
FixedVector< float > float_array
Definition api_pb2.h:1284
FixedVector< std::string > string_array
Definition api_pb2.h:1285
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1041
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1019
FixedVector< int32_t > int_array
Definition api_pb2.h:1283
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1054
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1298
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1304
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1299
void dump_to(std::string &out) const override
void decode(const uint8_t *buffer, size_t length) override
Definition api_pb2.cpp:1099
const char * message_name() const override
Definition api_pb2.h:1301
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1089
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1078
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:1213
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1216
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1214
const char * message_name() const override
Definition api_pb2.h:1229
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:988
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:975
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1227
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1226
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:1198
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1195
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1196
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:958
void dump_to(std::string &out) const override
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1115
FixedVector< HomeassistantServiceMap > data
Definition api_pb2.h:1113
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1107
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1114
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:897
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
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:915
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:928
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1141
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1139
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1138
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:2561
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2545
const char * message_name() const override
Definition api_pb2.h:2568
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:1703
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1702
void set_device_class(const StringRef &ref)
Definition api_pb2.h:1708
const char * message_name() const override
Definition api_pb2.h:1705
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1764
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1750
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1321
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1318
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1119
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1106
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1319
const std::vector< const char * > * supported_custom_presets
Definition api_pb2.h:1389
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1386
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1374
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1387
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1373
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1206
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1388
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1385
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1163
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1380
const char * message_name() const override
Definition api_pb2.h:1376
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:2677
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2712
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2725
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2676
const char * message_name() const override
Definition api_pb2.h:2679
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3018
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2878
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2879
const char * message_name() const override
Definition api_pb2.h:2881
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3005
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 FixedVector< const char * > * event_types
Definition api_pb2.h:2791
const char * message_name() const override
Definition api_pb2.h:2787
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2887
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2870
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2785
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2784
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2790
const char * message_name() const override
Definition api_pb2.h:722
const std::vector< const char * > * 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
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
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:793
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:1662
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1645
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1679
void set_code_format(const StringRef &ref)
Definition api_pb2.h:1654
const char * message_name() const override
Definition api_pb2.h:1648
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1646
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1753
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1816
const char * message_name() const override
Definition api_pb2.h:1755
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1834
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1758
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1477
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1409
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1475
void set_unit_of_measurement(const StringRef &ref)
Definition api_pb2.h:1483
void set_device_class(const StringRef &ref)
Definition api_pb2.h:1486
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1474
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1390
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:1532
const char * message_name() const override
Definition api_pb2.h:1535
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1487
const FixedVector< const char * > * options
Definition api_pb2.h:1537
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1471
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1533
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:1003
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:999
void dump_to(std::string &out) const override
void set_name(const StringRef &ref)
Definition api_pb2.h:1246
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1014
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1007
const char * message_name() const override
Definition api_pb2.h:1261
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1258
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1259
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1266
void set_name(const StringRef &ref)
Definition api_pb2.h:1264
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1555
const char * message_name() const override
Definition api_pb2.h:1588
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1573
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1585
void dump_to(std::string &out) const override
std::vector< std::string > tones
Definition api_pb2.h:1590
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1586
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:2619
void set_pattern(const StringRef &ref)
Definition api_pb2.h:2627
const char * message_name() const override
Definition api_pb2.h:2622
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2645
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2620
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2628
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:2791
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2804
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2731
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2733
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2730
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2931
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3088
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2928
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2929
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3074
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2934
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2821
void set_device_class(const StringRef &ref)
Definition api_pb2.h:2827
const char * message_name() const override
Definition api_pb2.h:2824
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2822
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2939
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2922
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1681
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1710
const char * message_name() const override
Definition api_pb2.h:1684
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1738
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1682
enums::LockCommand command
Definition api_pb2.h:1686
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1728
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1666
const char * message_name() const override
Definition api_pb2.h:1668
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1665
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1703
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1696
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1789
enums::MediaPlayerCommand command
Definition api_pb2.h:1794
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1908
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1868
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1898
const char * message_name() const override
Definition api_pb2.h:1791
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1788
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1859
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1770
void dump_to(std::string &out) const override
enums::MediaPlayerState state
Definition api_pb2.h:1775
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1850
const char * message_name() const override
Definition api_pb2.h:1773
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1771
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1809
void set_format(const StringRef &ref)
Definition api_pb2.h:1737
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1740
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1802
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:1514
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1456
const char * message_name() const override
Definition api_pb2.h:1517
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1515
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1444
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1428
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:1500
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1498
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1497
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1436
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:73
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:1533
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1521
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1567
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1566
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1543
const char * message_name() const override
Definition api_pb2.h:1569
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1549
const char * message_name() const override
Definition api_pb2.h:1551
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1505
void set_state(const StringRef &ref)
Definition api_pb2.h:1554
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1513
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1548
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:1637
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:1607
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1620
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:1647
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1619
const char * message_name() const override
Definition api_pb2.h:1622
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:1600
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:1604
const char * message_name() const override
Definition api_pb2.h:1606
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1603
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:1593
~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:1923
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:953
const char * message_name() const override
Definition api_pb2.h:1178
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:948
const char * message_name() const override
Definition api_pb2.h:1165
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:2310
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2307
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2281
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2308
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:2690
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2658
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2700
const char * message_name() const override
Definition api_pb2.h:2660
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2678
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2657
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:2640
void set_state(const StringRef &ref)
Definition api_pb2.h:2645
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2639
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2670
const char * message_name() const override
Definition api_pb2.h:2642
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2662
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2858
const char * message_name() const override
Definition api_pb2.h:2767
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2764
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2837
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2765
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2745
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2746
const char * message_name() const override
Definition api_pb2.h:2748
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2827
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2817
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2975
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:3147
enums::UpdateCommand command
Definition api_pb2.h:2979
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3132
const char * message_name() const override
Definition api_pb2.h:2977
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2974
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2946
void set_current_version(const StringRef &ref)
Definition api_pb2.h:2955
void set_latest_version(const StringRef &ref)
Definition api_pb2.h:2957
void set_release_summary(const StringRef &ref)
Definition api_pb2.h:2961
void set_title(const StringRef &ref)
Definition api_pb2.h:2959
const char * message_name() const override
Definition api_pb2.h:2948
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3117
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3102
void set_release_url(const StringRef &ref)
Definition api_pb2.h:2963
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2945
const char * message_name() const override
Definition api_pb2.h:2861
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2858
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2972
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2859
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
Definition api_pb2.cpp:2990
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2956
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2842
const char * message_name() const override
Definition api_pb2.h:2844
void dump_to(std::string &out) const override
enums::ValveOperation current_operation
Definition api_pb2.h:2847
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2841
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2964
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2452
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2468
const char * message_name() const override
Definition api_pb2.h:2470
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2467
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2451
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2435
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2449
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2448
const char * message_name() const override
Definition api_pb2.h:2451
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2425
void set_data(const uint8_t *data, size_t len)
Definition api_pb2.h:2410
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2385
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2389
const char * message_name() const override
Definition api_pb2.h:2405
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2375
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2403
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2402
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2365
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2294
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2299
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2518
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2504
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2520
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2524
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2535
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2533
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2536
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2515
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2331
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2354
const char * message_name() const override
Definition api_pb2.h:2388
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2386
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2385
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2390
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2344
std::vector< VoiceAssistantEventData > data
Definition api_pb2.h:2391
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2479
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2469
std::vector< std::string > trained_languages
Definition api_pb2.h:2500
void set_wake_word_phrase(const StringRef &ref)
Definition api_pb2.h:2347
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2311
const char * message_name() const override
Definition api_pb2.h:2339
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2336
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2345
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2337
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2304
void dump_to(std::string &out) const override
void set_conversation_id(const StringRef &ref)
Definition api_pb2.h:2343
const char * message_name() const override
Definition api_pb2.h:2361
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2359
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2358
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2318
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2549
std::vector< std::string > active_wake_words
Definition api_pb2.h:2553
void dump_to(std::string &out) const override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2548
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2533
const char * message_name() const override
Definition api_pb2.h:2551
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2432
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:2412
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:2393
void dump_to(std::string &out) const override
const char * message_name() const override
Definition api_pb2.h:2430
void set_id(const StringRef &ref)
Definition api_pb2.h:2484
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:2453
void set_wake_word(const StringRef &ref)
Definition api_pb2.h:2486
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:2460
std::vector< std::string > trained_languages
Definition api_pb2.h:2487
void dump_to(std::string &out) const override
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:2993
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3159
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3172
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3173
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2992
const char * message_name() const override
Definition api_pb2.h:2995
static constexpr uint8_t ESTIMATED_SIZE
Definition api_pb2.h:3011
void dump_to(std::string &out) const override
void calculate_size(ProtoSize &size) const override
Definition api_pb2.cpp:3201
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
Definition api_pb2.cpp:3184
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
Definition api_pb2.cpp:3174
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3010
const char * message_name() const override
Definition api_pb2.h:3013
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3015
void encode(ProtoWriteBuffer buffer) const override
Definition api_pb2.cpp:3197
@ 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:500
uint16_t length
Definition tt21100.cpp:0