ESPHome  2024.8.3
api_pb2.h
Go to the documentation of this file.
1 // This file was automatically generated with a tool.
2 // See scripts/api_protobuf/api_protobuf.py
3 #pragma once
4 
5 #include "proto.h"
6 
7 namespace esphome {
8 namespace api {
9 
10 namespace enums {
11 
12 enum EntityCategory : uint32_t {
16 };
17 enum LegacyCoverState : uint32_t {
20 };
21 enum CoverOperation : uint32_t {
25 };
26 enum LegacyCoverCommand : uint32_t {
30 };
31 enum FanSpeed : uint32_t {
35 };
36 enum FanDirection : uint32_t {
39 };
40 enum ColorMode : uint32_t {
51 };
52 enum SensorStateClass : uint32_t {
57 };
58 enum SensorLastResetType : uint32_t {
62 };
63 enum LogLevel : uint32_t {
72 };
73 enum ServiceArgType : uint32_t {
82 };
83 enum ClimateMode : uint32_t {
91 };
92 enum ClimateFanMode : uint32_t {
103 };
104 enum ClimateSwingMode : uint32_t {
109 };
110 enum ClimateAction : uint32_t {
117 };
118 enum ClimatePreset : uint32_t {
127 };
128 enum NumberMode : uint32_t {
132 };
133 enum LockState : uint32_t {
140 };
141 enum LockCommand : uint32_t {
145 };
146 enum MediaPlayerState : uint32_t {
151 };
152 enum MediaPlayerCommand : uint32_t {
158 };
159 enum BluetoothDeviceRequestType : uint32_t {
167 };
171 };
172 enum VoiceAssistantRequestFlag : uint32_t {
176 };
177 enum VoiceAssistantEvent : uint32_t {
193 };
194 enum VoiceAssistantTimerEvent : uint32_t {
199 };
200 enum AlarmControlPanelState : uint32_t {
211 };
220 };
221 enum TextMode : uint32_t {
224 };
225 enum ValveOperation : uint32_t {
229 };
230 enum UpdateCommand : uint32_t {
234 };
235 
236 } // namespace enums
237 
238 class HelloRequest : public ProtoMessage {
239  public:
240  std::string client_info{};
241  uint32_t api_version_major{0};
242  uint32_t api_version_minor{0};
243  void encode(ProtoWriteBuffer buffer) const override;
244 #ifdef HAS_PROTO_MESSAGE_DUMP
245  void dump_to(std::string &out) const override;
246 #endif
247 
248  protected:
249  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
250  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
251 };
252 class HelloResponse : public ProtoMessage {
253  public:
254  uint32_t api_version_major{0};
255  uint32_t api_version_minor{0};
256  std::string server_info{};
257  std::string name{};
258  void encode(ProtoWriteBuffer buffer) const override;
259 #ifdef HAS_PROTO_MESSAGE_DUMP
260  void dump_to(std::string &out) const override;
261 #endif
262 
263  protected:
264  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
265  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
266 };
267 class ConnectRequest : public ProtoMessage {
268  public:
269  std::string password{};
270  void encode(ProtoWriteBuffer buffer) const override;
271 #ifdef HAS_PROTO_MESSAGE_DUMP
272  void dump_to(std::string &out) const override;
273 #endif
274 
275  protected:
276  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
277 };
279  public:
280  bool invalid_password{false};
281  void encode(ProtoWriteBuffer buffer) const override;
282 #ifdef HAS_PROTO_MESSAGE_DUMP
283  void dump_to(std::string &out) const override;
284 #endif
285 
286  protected:
287  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
288 };
290  public:
291  void encode(ProtoWriteBuffer buffer) const override;
292 #ifdef HAS_PROTO_MESSAGE_DUMP
293  void dump_to(std::string &out) const override;
294 #endif
295 
296  protected:
297 };
299  public:
300  void encode(ProtoWriteBuffer buffer) const override;
301 #ifdef HAS_PROTO_MESSAGE_DUMP
302  void dump_to(std::string &out) const override;
303 #endif
304 
305  protected:
306 };
307 class PingRequest : public ProtoMessage {
308  public:
309  void encode(ProtoWriteBuffer buffer) const override;
310 #ifdef HAS_PROTO_MESSAGE_DUMP
311  void dump_to(std::string &out) const override;
312 #endif
313 
314  protected:
315 };
316 class PingResponse : public ProtoMessage {
317  public:
318  void encode(ProtoWriteBuffer buffer) const override;
319 #ifdef HAS_PROTO_MESSAGE_DUMP
320  void dump_to(std::string &out) const override;
321 #endif
322 
323  protected:
324 };
326  public:
327  void encode(ProtoWriteBuffer buffer) const override;
328 #ifdef HAS_PROTO_MESSAGE_DUMP
329  void dump_to(std::string &out) const override;
330 #endif
331 
332  protected:
333 };
335  public:
336  bool uses_password{false};
337  std::string name{};
338  std::string mac_address{};
339  std::string esphome_version{};
340  std::string compilation_time{};
341  std::string model{};
342  bool has_deep_sleep{false};
343  std::string project_name{};
344  std::string project_version{};
345  uint32_t webserver_port{0};
346  uint32_t legacy_bluetooth_proxy_version{0};
347  uint32_t bluetooth_proxy_feature_flags{0};
348  std::string manufacturer{};
349  std::string friendly_name{};
350  uint32_t legacy_voice_assistant_version{0};
351  uint32_t voice_assistant_feature_flags{0};
352  std::string suggested_area{};
353  void encode(ProtoWriteBuffer buffer) const override;
354 #ifdef HAS_PROTO_MESSAGE_DUMP
355  void dump_to(std::string &out) const override;
356 #endif
357 
358  protected:
359  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
360  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
361 };
363  public:
364  void encode(ProtoWriteBuffer buffer) const override;
365 #ifdef HAS_PROTO_MESSAGE_DUMP
366  void dump_to(std::string &out) const override;
367 #endif
368 
369  protected:
370 };
372  public:
373  void encode(ProtoWriteBuffer buffer) const override;
374 #ifdef HAS_PROTO_MESSAGE_DUMP
375  void dump_to(std::string &out) const override;
376 #endif
377 
378  protected:
379 };
381  public:
382  void encode(ProtoWriteBuffer buffer) const override;
383 #ifdef HAS_PROTO_MESSAGE_DUMP
384  void dump_to(std::string &out) const override;
385 #endif
386 
387  protected:
388 };
390  public:
391  std::string object_id{};
392  uint32_t key{0};
393  std::string name{};
394  std::string unique_id{};
395  std::string device_class{};
396  bool is_status_binary_sensor{false};
397  bool disabled_by_default{false};
398  std::string icon{};
399  enums::EntityCategory entity_category{};
400  void encode(ProtoWriteBuffer buffer) const override;
401 #ifdef HAS_PROTO_MESSAGE_DUMP
402  void dump_to(std::string &out) const override;
403 #endif
404 
405  protected:
406  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
407  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
408  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
409 };
411  public:
412  uint32_t key{0};
413  bool state{false};
414  bool missing_state{false};
415  void encode(ProtoWriteBuffer buffer) const override;
416 #ifdef HAS_PROTO_MESSAGE_DUMP
417  void dump_to(std::string &out) const override;
418 #endif
419 
420  protected:
421  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
422  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
423 };
425  public:
426  std::string object_id{};
427  uint32_t key{0};
428  std::string name{};
429  std::string unique_id{};
430  bool assumed_state{false};
431  bool supports_position{false};
432  bool supports_tilt{false};
433  std::string device_class{};
434  bool disabled_by_default{false};
435  std::string icon{};
436  enums::EntityCategory entity_category{};
437  bool supports_stop{false};
438  void encode(ProtoWriteBuffer buffer) const override;
439 #ifdef HAS_PROTO_MESSAGE_DUMP
440  void dump_to(std::string &out) const override;
441 #endif
442 
443  protected:
444  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
445  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
446  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
447 };
449  public:
450  uint32_t key{0};
451  enums::LegacyCoverState legacy_state{};
452  float position{0.0f};
453  float tilt{0.0f};
454  enums::CoverOperation current_operation{};
455  void encode(ProtoWriteBuffer buffer) const override;
456 #ifdef HAS_PROTO_MESSAGE_DUMP
457  void dump_to(std::string &out) const override;
458 #endif
459 
460  protected:
461  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
462  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
463 };
465  public:
466  uint32_t key{0};
467  bool has_legacy_command{false};
468  enums::LegacyCoverCommand legacy_command{};
469  bool has_position{false};
470  float position{0.0f};
471  bool has_tilt{false};
472  float tilt{0.0f};
473  bool stop{false};
474  void encode(ProtoWriteBuffer buffer) const override;
475 #ifdef HAS_PROTO_MESSAGE_DUMP
476  void dump_to(std::string &out) const override;
477 #endif
478 
479  protected:
480  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
481  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
482 };
484  public:
485  std::string object_id{};
486  uint32_t key{0};
487  std::string name{};
488  std::string unique_id{};
489  bool supports_oscillation{false};
490  bool supports_speed{false};
491  bool supports_direction{false};
492  int32_t supported_speed_count{0};
493  bool disabled_by_default{false};
494  std::string icon{};
495  enums::EntityCategory entity_category{};
496  std::vector<std::string> supported_preset_modes{};
497  void encode(ProtoWriteBuffer buffer) const override;
498 #ifdef HAS_PROTO_MESSAGE_DUMP
499  void dump_to(std::string &out) const override;
500 #endif
501 
502  protected:
503  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
504  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
505  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
506 };
508  public:
509  uint32_t key{0};
510  bool state{false};
511  bool oscillating{false};
514  int32_t speed_level{0};
515  std::string preset_mode{};
516  void encode(ProtoWriteBuffer buffer) const override;
517 #ifdef HAS_PROTO_MESSAGE_DUMP
518  void dump_to(std::string &out) const override;
519 #endif
520 
521  protected:
522  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
523  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
524  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
525 };
527  public:
528  uint32_t key{0};
529  bool has_state{false};
530  bool state{false};
531  bool has_speed{false};
533  bool has_oscillating{false};
534  bool oscillating{false};
535  bool has_direction{false};
537  bool has_speed_level{false};
538  int32_t speed_level{0};
539  bool has_preset_mode{false};
540  std::string preset_mode{};
541  void encode(ProtoWriteBuffer buffer) const override;
542 #ifdef HAS_PROTO_MESSAGE_DUMP
543  void dump_to(std::string &out) const override;
544 #endif
545 
546  protected:
547  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
548  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
549  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
550 };
552  public:
553  std::string object_id{};
554  uint32_t key{0};
555  std::string name{};
556  std::string unique_id{};
557  std::vector<enums::ColorMode> supported_color_modes{};
558  bool legacy_supports_brightness{false};
559  bool legacy_supports_rgb{false};
560  bool legacy_supports_white_value{false};
561  bool legacy_supports_color_temperature{false};
562  float min_mireds{0.0f};
563  float max_mireds{0.0f};
564  std::vector<std::string> effects{};
565  bool disabled_by_default{false};
566  std::string icon{};
567  enums::EntityCategory entity_category{};
568  void encode(ProtoWriteBuffer buffer) const override;
569 #ifdef HAS_PROTO_MESSAGE_DUMP
570  void dump_to(std::string &out) const override;
571 #endif
572 
573  protected:
574  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
575  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
576  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
577 };
579  public:
580  uint32_t key{0};
581  bool state{false};
582  float brightness{0.0f};
583  enums::ColorMode color_mode{};
584  float color_brightness{0.0f};
585  float red{0.0f};
586  float green{0.0f};
587  float blue{0.0f};
588  float white{0.0f};
589  float color_temperature{0.0f};
590  float cold_white{0.0f};
591  float warm_white{0.0f};
592  std::string effect{};
593  void encode(ProtoWriteBuffer buffer) const override;
594 #ifdef HAS_PROTO_MESSAGE_DUMP
595  void dump_to(std::string &out) const override;
596 #endif
597 
598  protected:
599  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
600  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
601  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
602 };
604  public:
605  uint32_t key{0};
606  bool has_state{false};
607  bool state{false};
608  bool has_brightness{false};
609  float brightness{0.0f};
610  bool has_color_mode{false};
611  enums::ColorMode color_mode{};
612  bool has_color_brightness{false};
613  float color_brightness{0.0f};
614  bool has_rgb{false};
615  float red{0.0f};
616  float green{0.0f};
617  float blue{0.0f};
618  bool has_white{false};
619  float white{0.0f};
620  bool has_color_temperature{false};
621  float color_temperature{0.0f};
622  bool has_cold_white{false};
623  float cold_white{0.0f};
624  bool has_warm_white{false};
625  float warm_white{0.0f};
626  bool has_transition_length{false};
627  uint32_t transition_length{0};
628  bool has_flash_length{false};
629  uint32_t flash_length{0};
630  bool has_effect{false};
631  std::string effect{};
632  void encode(ProtoWriteBuffer buffer) const override;
633 #ifdef HAS_PROTO_MESSAGE_DUMP
634  void dump_to(std::string &out) const override;
635 #endif
636 
637  protected:
638  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
639  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
640  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
641 };
643  public:
644  std::string object_id{};
645  uint32_t key{0};
646  std::string name{};
647  std::string unique_id{};
648  std::string icon{};
649  std::string unit_of_measurement{};
650  int32_t accuracy_decimals{0};
651  bool force_update{false};
652  std::string device_class{};
653  enums::SensorStateClass state_class{};
654  enums::SensorLastResetType legacy_last_reset_type{};
655  bool disabled_by_default{false};
656  enums::EntityCategory entity_category{};
657  void encode(ProtoWriteBuffer buffer) const override;
658 #ifdef HAS_PROTO_MESSAGE_DUMP
659  void dump_to(std::string &out) const override;
660 #endif
661 
662  protected:
663  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
664  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
665  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
666 };
668  public:
669  uint32_t key{0};
670  float state{0.0f};
671  bool missing_state{false};
672  void encode(ProtoWriteBuffer buffer) const override;
673 #ifdef HAS_PROTO_MESSAGE_DUMP
674  void dump_to(std::string &out) const override;
675 #endif
676 
677  protected:
678  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
679  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
680 };
682  public:
683  std::string object_id{};
684  uint32_t key{0};
685  std::string name{};
686  std::string unique_id{};
687  std::string icon{};
688  bool assumed_state{false};
689  bool disabled_by_default{false};
690  enums::EntityCategory entity_category{};
691  std::string device_class{};
692  void encode(ProtoWriteBuffer buffer) const override;
693 #ifdef HAS_PROTO_MESSAGE_DUMP
694  void dump_to(std::string &out) const override;
695 #endif
696 
697  protected:
698  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
699  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
700  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
701 };
703  public:
704  uint32_t key{0};
705  bool state{false};
706  void encode(ProtoWriteBuffer buffer) const override;
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 };
716  public:
717  uint32_t key{0};
718  bool state{false};
719  void encode(ProtoWriteBuffer buffer) const override;
720 #ifdef HAS_PROTO_MESSAGE_DUMP
721  void dump_to(std::string &out) const override;
722 #endif
723 
724  protected:
725  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
726  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
727 };
729  public:
730  std::string object_id{};
731  uint32_t key{0};
732  std::string name{};
733  std::string unique_id{};
734  std::string icon{};
735  bool disabled_by_default{false};
736  enums::EntityCategory entity_category{};
737  std::string device_class{};
738  void encode(ProtoWriteBuffer buffer) const override;
739 #ifdef HAS_PROTO_MESSAGE_DUMP
740  void dump_to(std::string &out) const override;
741 #endif
742 
743  protected:
744  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
745  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
746  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
747 };
749  public:
750  uint32_t key{0};
751  std::string state{};
752  bool missing_state{false};
753  void encode(ProtoWriteBuffer buffer) const override;
754 #ifdef HAS_PROTO_MESSAGE_DUMP
755  void dump_to(std::string &out) const override;
756 #endif
757 
758  protected:
759  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
760  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
761  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
762 };
764  public:
766  bool dump_config{false};
767  void encode(ProtoWriteBuffer buffer) const override;
768 #ifdef HAS_PROTO_MESSAGE_DUMP
769  void dump_to(std::string &out) const override;
770 #endif
771 
772  protected:
773  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
774 };
776  public:
778  std::string message{};
779  bool send_failed{false};
780  void encode(ProtoWriteBuffer buffer) const override;
781 #ifdef HAS_PROTO_MESSAGE_DUMP
782  void dump_to(std::string &out) const override;
783 #endif
784 
785  protected:
786  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
787  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
788 };
790  public:
791  void encode(ProtoWriteBuffer buffer) const override;
792 #ifdef HAS_PROTO_MESSAGE_DUMP
793  void dump_to(std::string &out) const override;
794 #endif
795 
796  protected:
797 };
799  public:
800  std::string key{};
801  std::string value{};
802  void encode(ProtoWriteBuffer buffer) const override;
803 #ifdef HAS_PROTO_MESSAGE_DUMP
804  void dump_to(std::string &out) const override;
805 #endif
806 
807  protected:
808  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
809 };
811  public:
812  std::string service{};
813  std::vector<HomeassistantServiceMap> data{};
814  std::vector<HomeassistantServiceMap> data_template{};
815  std::vector<HomeassistantServiceMap> variables{};
816  bool is_event{false};
817  void encode(ProtoWriteBuffer buffer) const override;
818 #ifdef HAS_PROTO_MESSAGE_DUMP
819  void dump_to(std::string &out) const override;
820 #endif
821 
822  protected:
823  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
824  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
825 };
827  public:
828  void encode(ProtoWriteBuffer buffer) const override;
829 #ifdef HAS_PROTO_MESSAGE_DUMP
830  void dump_to(std::string &out) const override;
831 #endif
832 
833  protected:
834 };
836  public:
837  std::string entity_id{};
838  std::string attribute{};
839  bool once{false};
840  void encode(ProtoWriteBuffer buffer) const override;
841 #ifdef HAS_PROTO_MESSAGE_DUMP
842  void dump_to(std::string &out) const override;
843 #endif
844 
845  protected:
846  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
847  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
848 };
850  public:
851  std::string entity_id{};
852  std::string state{};
853  std::string attribute{};
854  void encode(ProtoWriteBuffer buffer) const override;
855 #ifdef HAS_PROTO_MESSAGE_DUMP
856  void dump_to(std::string &out) const override;
857 #endif
858 
859  protected:
860  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
861 };
862 class GetTimeRequest : public ProtoMessage {
863  public:
864  void encode(ProtoWriteBuffer buffer) const override;
865 #ifdef HAS_PROTO_MESSAGE_DUMP
866  void dump_to(std::string &out) const override;
867 #endif
868 
869  protected:
870 };
872  public:
873  uint32_t epoch_seconds{0};
874  void encode(ProtoWriteBuffer buffer) const override;
875 #ifdef HAS_PROTO_MESSAGE_DUMP
876  void dump_to(std::string &out) const override;
877 #endif
878 
879  protected:
880  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
881 };
883  public:
884  std::string name{};
886  void encode(ProtoWriteBuffer buffer) const override;
887 #ifdef HAS_PROTO_MESSAGE_DUMP
888  void dump_to(std::string &out) const override;
889 #endif
890 
891  protected:
892  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
893  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
894 };
896  public:
897  std::string name{};
898  uint32_t key{0};
899  std::vector<ListEntitiesServicesArgument> args{};
900  void encode(ProtoWriteBuffer buffer) const override;
901 #ifdef HAS_PROTO_MESSAGE_DUMP
902  void dump_to(std::string &out) const override;
903 #endif
904 
905  protected:
906  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
907  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
908 };
910  public:
911  bool bool_{false};
912  int32_t legacy_int{0};
913  float float_{0.0f};
914  std::string string_{};
915  int32_t int_{0};
916  std::vector<bool> bool_array{};
917  std::vector<int32_t> int_array{};
918  std::vector<float> float_array{};
919  std::vector<std::string> string_array{};
920  void encode(ProtoWriteBuffer buffer) const override;
921 #ifdef HAS_PROTO_MESSAGE_DUMP
922  void dump_to(std::string &out) const override;
923 #endif
924 
925  protected:
926  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
927  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
928  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
929 };
931  public:
932  uint32_t key{0};
933  std::vector<ExecuteServiceArgument> args{};
934  void encode(ProtoWriteBuffer buffer) const override;
935 #ifdef HAS_PROTO_MESSAGE_DUMP
936  void dump_to(std::string &out) const override;
937 #endif
938 
939  protected:
940  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
941  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
942 };
944  public:
945  std::string object_id{};
946  uint32_t key{0};
947  std::string name{};
948  std::string unique_id{};
949  bool disabled_by_default{false};
950  std::string icon{};
951  enums::EntityCategory entity_category{};
952  void encode(ProtoWriteBuffer buffer) const override;
953 #ifdef HAS_PROTO_MESSAGE_DUMP
954  void dump_to(std::string &out) const override;
955 #endif
956 
957  protected:
958  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
959  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
960  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
961 };
963  public:
964  uint32_t key{0};
965  std::string data{};
966  bool done{false};
967  void encode(ProtoWriteBuffer buffer) const override;
968 #ifdef HAS_PROTO_MESSAGE_DUMP
969  void dump_to(std::string &out) const override;
970 #endif
971 
972  protected:
973  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
974  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
975  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
976 };
978  public:
979  bool single{false};
980  bool stream{false};
981  void encode(ProtoWriteBuffer buffer) const override;
982 #ifdef HAS_PROTO_MESSAGE_DUMP
983  void dump_to(std::string &out) const override;
984 #endif
985 
986  protected:
987  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
988 };
990  public:
991  std::string object_id{};
992  uint32_t key{0};
993  std::string name{};
994  std::string unique_id{};
995  bool supports_current_temperature{false};
996  bool supports_two_point_target_temperature{false};
997  std::vector<enums::ClimateMode> supported_modes{};
998  float visual_min_temperature{0.0f};
999  float visual_max_temperature{0.0f};
1000  float visual_target_temperature_step{0.0f};
1001  bool legacy_supports_away{false};
1002  bool supports_action{false};
1003  std::vector<enums::ClimateFanMode> supported_fan_modes{};
1004  std::vector<enums::ClimateSwingMode> supported_swing_modes{};
1005  std::vector<std::string> supported_custom_fan_modes{};
1006  std::vector<enums::ClimatePreset> supported_presets{};
1007  std::vector<std::string> supported_custom_presets{};
1008  bool disabled_by_default{false};
1009  std::string icon{};
1010  enums::EntityCategory entity_category{};
1011  float visual_current_temperature_step{0.0f};
1012  bool supports_current_humidity{false};
1013  bool supports_target_humidity{false};
1014  float visual_min_humidity{0.0f};
1015  float visual_max_humidity{0.0f};
1016  void encode(ProtoWriteBuffer buffer) const override;
1017 #ifdef HAS_PROTO_MESSAGE_DUMP
1018  void dump_to(std::string &out) const override;
1019 #endif
1020 
1021  protected:
1022  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1023  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1024  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1025 };
1027  public:
1028  uint32_t key{0};
1030  float current_temperature{0.0f};
1031  float target_temperature{0.0f};
1034  bool unused_legacy_away{false};
1038  std::string custom_fan_mode{};
1040  std::string custom_preset{};
1041  float current_humidity{0.0f};
1042  float target_humidity{0.0f};
1043  void encode(ProtoWriteBuffer buffer) const override;
1044 #ifdef HAS_PROTO_MESSAGE_DUMP
1045  void dump_to(std::string &out) const override;
1046 #endif
1047 
1048  protected:
1049  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1050  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1051  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1052 };
1054  public:
1055  uint32_t key{0};
1056  bool has_mode{false};
1058  bool has_target_temperature{false};
1059  float target_temperature{0.0f};
1060  bool has_target_temperature_low{false};
1062  bool has_target_temperature_high{false};
1064  bool unused_has_legacy_away{false};
1065  bool unused_legacy_away{false};
1066  bool has_fan_mode{false};
1068  bool has_swing_mode{false};
1070  bool has_custom_fan_mode{false};
1071  std::string custom_fan_mode{};
1072  bool has_preset{false};
1074  bool has_custom_preset{false};
1075  std::string custom_preset{};
1076  bool has_target_humidity{false};
1077  float target_humidity{0.0f};
1078  void encode(ProtoWriteBuffer buffer) const override;
1079 #ifdef HAS_PROTO_MESSAGE_DUMP
1080  void dump_to(std::string &out) const override;
1081 #endif
1082 
1083  protected:
1084  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1085  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1086  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1087 };
1089  public:
1090  std::string object_id{};
1091  uint32_t key{0};
1092  std::string name{};
1093  std::string unique_id{};
1094  std::string icon{};
1095  float min_value{0.0f};
1096  float max_value{0.0f};
1097  float step{0.0f};
1098  bool disabled_by_default{false};
1099  enums::EntityCategory entity_category{};
1100  std::string unit_of_measurement{};
1102  std::string device_class{};
1103  void encode(ProtoWriteBuffer buffer) const override;
1104 #ifdef HAS_PROTO_MESSAGE_DUMP
1105  void dump_to(std::string &out) const override;
1106 #endif
1107 
1108  protected:
1109  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1110  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1111  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1112 };
1114  public:
1115  uint32_t key{0};
1116  float state{0.0f};
1117  bool missing_state{false};
1118  void encode(ProtoWriteBuffer buffer) const override;
1119 #ifdef HAS_PROTO_MESSAGE_DUMP
1120  void dump_to(std::string &out) const override;
1121 #endif
1122 
1123  protected:
1124  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1125  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1126 };
1128  public:
1129  uint32_t key{0};
1130  float state{0.0f};
1131  void encode(ProtoWriteBuffer buffer) const override;
1132 #ifdef HAS_PROTO_MESSAGE_DUMP
1133  void dump_to(std::string &out) const override;
1134 #endif
1135 
1136  protected:
1137  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1138 };
1140  public:
1141  std::string object_id{};
1142  uint32_t key{0};
1143  std::string name{};
1144  std::string unique_id{};
1145  std::string icon{};
1146  std::vector<std::string> options{};
1147  bool disabled_by_default{false};
1148  enums::EntityCategory entity_category{};
1149  void encode(ProtoWriteBuffer buffer) const override;
1150 #ifdef HAS_PROTO_MESSAGE_DUMP
1151  void dump_to(std::string &out) const override;
1152 #endif
1153 
1154  protected:
1155  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1156  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1157  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1158 };
1160  public:
1161  uint32_t key{0};
1162  std::string state{};
1163  bool missing_state{false};
1164  void encode(ProtoWriteBuffer buffer) const override;
1165 #ifdef HAS_PROTO_MESSAGE_DUMP
1166  void dump_to(std::string &out) const override;
1167 #endif
1168 
1169  protected:
1170  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1171  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1172  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1173 };
1175  public:
1176  uint32_t key{0};
1177  std::string state{};
1178  void encode(ProtoWriteBuffer buffer) const override;
1179 #ifdef HAS_PROTO_MESSAGE_DUMP
1180  void dump_to(std::string &out) const override;
1181 #endif
1182 
1183  protected:
1184  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1185  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1186 };
1188  public:
1189  std::string object_id{};
1190  uint32_t key{0};
1191  std::string name{};
1192  std::string unique_id{};
1193  std::string icon{};
1194  bool disabled_by_default{false};
1195  enums::EntityCategory entity_category{};
1196  bool assumed_state{false};
1197  bool supports_open{false};
1198  bool requires_code{false};
1199  std::string code_format{};
1200  void encode(ProtoWriteBuffer buffer) const override;
1201 #ifdef HAS_PROTO_MESSAGE_DUMP
1202  void dump_to(std::string &out) const override;
1203 #endif
1204 
1205  protected:
1206  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1207  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1208  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1209 };
1211  public:
1212  uint32_t key{0};
1214  void encode(ProtoWriteBuffer buffer) const override;
1215 #ifdef HAS_PROTO_MESSAGE_DUMP
1216  void dump_to(std::string &out) const override;
1217 #endif
1218 
1219  protected:
1220  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1221  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1222 };
1224  public:
1225  uint32_t key{0};
1227  bool has_code{false};
1228  std::string code{};
1229  void encode(ProtoWriteBuffer buffer) const override;
1230 #ifdef HAS_PROTO_MESSAGE_DUMP
1231  void dump_to(std::string &out) const override;
1232 #endif
1233 
1234  protected:
1235  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1236  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1237  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1238 };
1240  public:
1241  std::string object_id{};
1242  uint32_t key{0};
1243  std::string name{};
1244  std::string unique_id{};
1245  std::string icon{};
1246  bool disabled_by_default{false};
1247  enums::EntityCategory entity_category{};
1248  std::string device_class{};
1249  void encode(ProtoWriteBuffer buffer) const override;
1250 #ifdef HAS_PROTO_MESSAGE_DUMP
1251  void dump_to(std::string &out) const override;
1252 #endif
1253 
1254  protected:
1255  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1256  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1257  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1258 };
1260  public:
1261  uint32_t key{0};
1262  void encode(ProtoWriteBuffer buffer) const override;
1263 #ifdef HAS_PROTO_MESSAGE_DUMP
1264  void dump_to(std::string &out) const override;
1265 #endif
1266 
1267  protected:
1268  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1269 };
1271  public:
1272  std::string object_id{};
1273  uint32_t key{0};
1274  std::string name{};
1275  std::string unique_id{};
1276  std::string icon{};
1277  bool disabled_by_default{false};
1278  enums::EntityCategory entity_category{};
1279  bool supports_pause{false};
1280  void encode(ProtoWriteBuffer buffer) const override;
1281 #ifdef HAS_PROTO_MESSAGE_DUMP
1282  void dump_to(std::string &out) const override;
1283 #endif
1284 
1285  protected:
1286  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1287  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1288  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1289 };
1291  public:
1292  uint32_t key{0};
1294  float volume{0.0f};
1295  bool muted{false};
1296  void encode(ProtoWriteBuffer buffer) const override;
1297 #ifdef HAS_PROTO_MESSAGE_DUMP
1298  void dump_to(std::string &out) const override;
1299 #endif
1300 
1301  protected:
1302  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1303  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1304 };
1306  public:
1307  uint32_t key{0};
1308  bool has_command{false};
1310  bool has_volume{false};
1311  float volume{0.0f};
1312  bool has_media_url{false};
1313  std::string media_url{};
1314  bool has_announcement{false};
1315  bool announcement{false};
1316  void encode(ProtoWriteBuffer buffer) const override;
1317 #ifdef HAS_PROTO_MESSAGE_DUMP
1318  void dump_to(std::string &out) const override;
1319 #endif
1320 
1321  protected:
1322  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1323  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1324  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1325 };
1327  public:
1328  uint32_t flags{0};
1329  void encode(ProtoWriteBuffer buffer) const override;
1330 #ifdef HAS_PROTO_MESSAGE_DUMP
1331  void dump_to(std::string &out) const override;
1332 #endif
1333 
1334  protected:
1335  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1336 };
1338  public:
1339  std::string uuid{};
1340  std::vector<uint32_t> legacy_data{};
1341  std::string data{};
1342  void encode(ProtoWriteBuffer buffer) const override;
1343 #ifdef HAS_PROTO_MESSAGE_DUMP
1344  void dump_to(std::string &out) const override;
1345 #endif
1346 
1347  protected:
1348  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1349  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1350 };
1352  public:
1353  uint64_t address{0};
1354  std::string name{};
1355  int32_t rssi{0};
1356  std::vector<std::string> service_uuids{};
1357  std::vector<BluetoothServiceData> service_data{};
1358  std::vector<BluetoothServiceData> manufacturer_data{};
1359  uint32_t address_type{0};
1360  void encode(ProtoWriteBuffer buffer) const override;
1361 #ifdef HAS_PROTO_MESSAGE_DUMP
1362  void dump_to(std::string &out) const override;
1363 #endif
1364 
1365  protected:
1366  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1367  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1368 };
1370  public:
1371  uint64_t address{0};
1372  int32_t rssi{0};
1373  uint32_t address_type{0};
1374  std::string data{};
1375  void encode(ProtoWriteBuffer buffer) const override;
1376 #ifdef HAS_PROTO_MESSAGE_DUMP
1377  void dump_to(std::string &out) const override;
1378 #endif
1379 
1380  protected:
1381  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1382  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1383 };
1385  public:
1386  std::vector<BluetoothLERawAdvertisement> advertisements{};
1387  void encode(ProtoWriteBuffer buffer) const override;
1388 #ifdef HAS_PROTO_MESSAGE_DUMP
1389  void dump_to(std::string &out) const override;
1390 #endif
1391 
1392  protected:
1393  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1394 };
1396  public:
1397  uint64_t address{0};
1399  bool has_address_type{false};
1400  uint32_t address_type{0};
1401  void encode(ProtoWriteBuffer buffer) const override;
1402 #ifdef HAS_PROTO_MESSAGE_DUMP
1403  void dump_to(std::string &out) const override;
1404 #endif
1405 
1406  protected:
1407  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1408 };
1410  public:
1411  uint64_t address{0};
1412  bool connected{false};
1413  uint32_t mtu{0};
1414  int32_t error{0};
1415  void encode(ProtoWriteBuffer buffer) const override;
1416 #ifdef HAS_PROTO_MESSAGE_DUMP
1417  void dump_to(std::string &out) const override;
1418 #endif
1419 
1420  protected:
1421  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1422 };
1424  public:
1425  uint64_t address{0};
1426  void encode(ProtoWriteBuffer buffer) const override;
1427 #ifdef HAS_PROTO_MESSAGE_DUMP
1428  void dump_to(std::string &out) const override;
1429 #endif
1430 
1431  protected:
1432  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1433 };
1435  public:
1436  std::vector<uint64_t> uuid{};
1437  uint32_t handle{0};
1438  void encode(ProtoWriteBuffer buffer) const override;
1439 #ifdef HAS_PROTO_MESSAGE_DUMP
1440  void dump_to(std::string &out) const override;
1441 #endif
1442 
1443  protected:
1444  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1445 };
1447  public:
1448  std::vector<uint64_t> uuid{};
1449  uint32_t handle{0};
1450  uint32_t properties{0};
1451  std::vector<BluetoothGATTDescriptor> descriptors{};
1452  void encode(ProtoWriteBuffer buffer) const override;
1453 #ifdef HAS_PROTO_MESSAGE_DUMP
1454  void dump_to(std::string &out) const override;
1455 #endif
1456 
1457  protected:
1458  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1459  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1460 };
1462  public:
1463  std::vector<uint64_t> uuid{};
1464  uint32_t handle{0};
1465  std::vector<BluetoothGATTCharacteristic> characteristics{};
1466  void encode(ProtoWriteBuffer buffer) const override;
1467 #ifdef HAS_PROTO_MESSAGE_DUMP
1468  void dump_to(std::string &out) const override;
1469 #endif
1470 
1471  protected:
1472  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1473  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1474 };
1476  public:
1477  uint64_t address{0};
1478  std::vector<BluetoothGATTService> services{};
1479  void encode(ProtoWriteBuffer buffer) const override;
1480 #ifdef HAS_PROTO_MESSAGE_DUMP
1481  void dump_to(std::string &out) const override;
1482 #endif
1483 
1484  protected:
1485  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1486  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1487 };
1489  public:
1490  uint64_t address{0};
1491  void encode(ProtoWriteBuffer buffer) const override;
1492 #ifdef HAS_PROTO_MESSAGE_DUMP
1493  void dump_to(std::string &out) const override;
1494 #endif
1495 
1496  protected:
1497  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1498 };
1500  public:
1501  uint64_t address{0};
1502  uint32_t handle{0};
1503  void encode(ProtoWriteBuffer buffer) const override;
1504 #ifdef HAS_PROTO_MESSAGE_DUMP
1505  void dump_to(std::string &out) const override;
1506 #endif
1507 
1508  protected:
1509  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1510 };
1512  public:
1513  uint64_t address{0};
1514  uint32_t handle{0};
1515  std::string data{};
1516  void encode(ProtoWriteBuffer buffer) const override;
1517 #ifdef HAS_PROTO_MESSAGE_DUMP
1518  void dump_to(std::string &out) const override;
1519 #endif
1520 
1521  protected:
1522  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1523  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1524 };
1526  public:
1527  uint64_t address{0};
1528  uint32_t handle{0};
1529  bool response{false};
1530  std::string data{};
1531  void encode(ProtoWriteBuffer buffer) const override;
1532 #ifdef HAS_PROTO_MESSAGE_DUMP
1533  void dump_to(std::string &out) const override;
1534 #endif
1535 
1536  protected:
1537  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1538  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1539 };
1541  public:
1542  uint64_t address{0};
1543  uint32_t handle{0};
1544  void encode(ProtoWriteBuffer buffer) const override;
1545 #ifdef HAS_PROTO_MESSAGE_DUMP
1546  void dump_to(std::string &out) const override;
1547 #endif
1548 
1549  protected:
1550  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1551 };
1553  public:
1554  uint64_t address{0};
1555  uint32_t handle{0};
1556  std::string data{};
1557  void encode(ProtoWriteBuffer buffer) const override;
1558 #ifdef HAS_PROTO_MESSAGE_DUMP
1559  void dump_to(std::string &out) const override;
1560 #endif
1561 
1562  protected:
1563  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1564  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1565 };
1567  public:
1568  uint64_t address{0};
1569  uint32_t handle{0};
1570  bool enable{false};
1571  void encode(ProtoWriteBuffer buffer) const override;
1572 #ifdef HAS_PROTO_MESSAGE_DUMP
1573  void dump_to(std::string &out) const override;
1574 #endif
1575 
1576  protected:
1577  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1578 };
1580  public:
1581  uint64_t address{0};
1582  uint32_t handle{0};
1583  std::string data{};
1584  void encode(ProtoWriteBuffer buffer) const override;
1585 #ifdef HAS_PROTO_MESSAGE_DUMP
1586  void dump_to(std::string &out) const override;
1587 #endif
1588 
1589  protected:
1590  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1591  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1592 };
1594  public:
1595  void encode(ProtoWriteBuffer buffer) const override;
1596 #ifdef HAS_PROTO_MESSAGE_DUMP
1597  void dump_to(std::string &out) const override;
1598 #endif
1599 
1600  protected:
1601 };
1603  public:
1604  uint32_t free{0};
1605  uint32_t limit{0};
1606  void encode(ProtoWriteBuffer buffer) const override;
1607 #ifdef HAS_PROTO_MESSAGE_DUMP
1608  void dump_to(std::string &out) const override;
1609 #endif
1610 
1611  protected:
1612  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1613 };
1615  public:
1616  uint64_t address{0};
1617  uint32_t handle{0};
1618  int32_t error{0};
1619  void encode(ProtoWriteBuffer buffer) const override;
1620 #ifdef HAS_PROTO_MESSAGE_DUMP
1621  void dump_to(std::string &out) const override;
1622 #endif
1623 
1624  protected:
1625  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1626 };
1628  public:
1629  uint64_t address{0};
1630  uint32_t handle{0};
1631  void encode(ProtoWriteBuffer buffer) const override;
1632 #ifdef HAS_PROTO_MESSAGE_DUMP
1633  void dump_to(std::string &out) const override;
1634 #endif
1635 
1636  protected:
1637  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1638 };
1640  public:
1641  uint64_t address{0};
1642  uint32_t handle{0};
1643  void encode(ProtoWriteBuffer buffer) const override;
1644 #ifdef HAS_PROTO_MESSAGE_DUMP
1645  void dump_to(std::string &out) const override;
1646 #endif
1647 
1648  protected:
1649  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1650 };
1652  public:
1653  uint64_t address{0};
1654  bool paired{false};
1655  int32_t error{0};
1656  void encode(ProtoWriteBuffer buffer) const override;
1657 #ifdef HAS_PROTO_MESSAGE_DUMP
1658  void dump_to(std::string &out) const override;
1659 #endif
1660 
1661  protected:
1662  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1663 };
1665  public:
1666  uint64_t address{0};
1667  bool success{false};
1668  int32_t error{0};
1669  void encode(ProtoWriteBuffer buffer) const override;
1670 #ifdef HAS_PROTO_MESSAGE_DUMP
1671  void dump_to(std::string &out) const override;
1672 #endif
1673 
1674  protected:
1675  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1676 };
1678  public:
1679  void encode(ProtoWriteBuffer buffer) const override;
1680 #ifdef HAS_PROTO_MESSAGE_DUMP
1681  void dump_to(std::string &out) const override;
1682 #endif
1683 
1684  protected:
1685 };
1687  public:
1688  uint64_t address{0};
1689  bool success{false};
1690  int32_t error{0};
1691  void encode(ProtoWriteBuffer buffer) const override;
1692 #ifdef HAS_PROTO_MESSAGE_DUMP
1693  void dump_to(std::string &out) const override;
1694 #endif
1695 
1696  protected:
1697  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1698 };
1700  public:
1701  bool subscribe{false};
1702  uint32_t flags{0};
1703  void encode(ProtoWriteBuffer buffer) const override;
1704 #ifdef HAS_PROTO_MESSAGE_DUMP
1705  void dump_to(std::string &out) const override;
1706 #endif
1707 
1708  protected:
1709  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1710 };
1712  public:
1713  uint32_t noise_suppression_level{0};
1714  uint32_t auto_gain{0};
1715  float volume_multiplier{0.0f};
1716  void encode(ProtoWriteBuffer buffer) const override;
1717 #ifdef HAS_PROTO_MESSAGE_DUMP
1718  void dump_to(std::string &out) const override;
1719 #endif
1720 
1721  protected:
1722  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1723  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1724 };
1726  public:
1727  bool start{false};
1728  std::string conversation_id{};
1729  uint32_t flags{0};
1731  std::string wake_word_phrase{};
1732  void encode(ProtoWriteBuffer buffer) const override;
1733 #ifdef HAS_PROTO_MESSAGE_DUMP
1734  void dump_to(std::string &out) const override;
1735 #endif
1736 
1737  protected:
1738  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1739  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1740 };
1742  public:
1743  uint32_t port{0};
1744  bool error{false};
1745  void encode(ProtoWriteBuffer buffer) const override;
1746 #ifdef HAS_PROTO_MESSAGE_DUMP
1747  void dump_to(std::string &out) const override;
1748 #endif
1749 
1750  protected:
1751  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1752 };
1754  public:
1755  std::string name{};
1756  std::string value{};
1757  void encode(ProtoWriteBuffer buffer) const override;
1758 #ifdef HAS_PROTO_MESSAGE_DUMP
1759  void dump_to(std::string &out) const override;
1760 #endif
1761 
1762  protected:
1763  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1764 };
1766  public:
1768  std::vector<VoiceAssistantEventData> data{};
1769  void encode(ProtoWriteBuffer buffer) const override;
1770 #ifdef HAS_PROTO_MESSAGE_DUMP
1771  void dump_to(std::string &out) const override;
1772 #endif
1773 
1774  protected:
1775  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1776  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1777 };
1779  public:
1780  std::string data{};
1781  bool end{false};
1782  void encode(ProtoWriteBuffer buffer) const override;
1783 #ifdef HAS_PROTO_MESSAGE_DUMP
1784  void dump_to(std::string &out) const override;
1785 #endif
1786 
1787  protected:
1788  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1789  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1790 };
1792  public:
1794  std::string timer_id{};
1795  std::string name{};
1796  uint32_t total_seconds{0};
1797  uint32_t seconds_left{0};
1798  bool is_active{false};
1799  void encode(ProtoWriteBuffer buffer) const override;
1800 #ifdef HAS_PROTO_MESSAGE_DUMP
1801  void dump_to(std::string &out) const override;
1802 #endif
1803 
1804  protected:
1805  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1806  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1807 };
1809  public:
1810  std::string object_id{};
1811  uint32_t key{0};
1812  std::string name{};
1813  std::string unique_id{};
1814  std::string icon{};
1815  bool disabled_by_default{false};
1816  enums::EntityCategory entity_category{};
1817  uint32_t supported_features{0};
1818  bool requires_code{false};
1819  bool requires_code_to_arm{false};
1820  void encode(ProtoWriteBuffer buffer) const override;
1821 #ifdef HAS_PROTO_MESSAGE_DUMP
1822  void dump_to(std::string &out) const override;
1823 #endif
1824 
1825  protected:
1826  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1827  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1828  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1829 };
1831  public:
1832  uint32_t key{0};
1834  void encode(ProtoWriteBuffer buffer) const override;
1835 #ifdef HAS_PROTO_MESSAGE_DUMP
1836  void dump_to(std::string &out) const override;
1837 #endif
1838 
1839  protected:
1840  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1841  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1842 };
1844  public:
1845  uint32_t key{0};
1847  std::string code{};
1848  void encode(ProtoWriteBuffer buffer) const override;
1849 #ifdef HAS_PROTO_MESSAGE_DUMP
1850  void dump_to(std::string &out) const override;
1851 #endif
1852 
1853  protected:
1854  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1855  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1856  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1857 };
1859  public:
1860  std::string object_id{};
1861  uint32_t key{0};
1862  std::string name{};
1863  std::string unique_id{};
1864  std::string icon{};
1865  bool disabled_by_default{false};
1866  enums::EntityCategory entity_category{};
1867  uint32_t min_length{0};
1868  uint32_t max_length{0};
1869  std::string pattern{};
1871  void encode(ProtoWriteBuffer buffer) const override;
1872 #ifdef HAS_PROTO_MESSAGE_DUMP
1873  void dump_to(std::string &out) const override;
1874 #endif
1875 
1876  protected:
1877  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1878  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1879  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1880 };
1882  public:
1883  uint32_t key{0};
1884  std::string state{};
1885  bool missing_state{false};
1886  void encode(ProtoWriteBuffer buffer) const override;
1887 #ifdef HAS_PROTO_MESSAGE_DUMP
1888  void dump_to(std::string &out) const override;
1889 #endif
1890 
1891  protected:
1892  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1893  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1894  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1895 };
1897  public:
1898  uint32_t key{0};
1899  std::string state{};
1900  void encode(ProtoWriteBuffer buffer) const override;
1901 #ifdef HAS_PROTO_MESSAGE_DUMP
1902  void dump_to(std::string &out) const override;
1903 #endif
1904 
1905  protected:
1906  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1907  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1908 };
1910  public:
1911  std::string object_id{};
1912  uint32_t key{0};
1913  std::string name{};
1914  std::string unique_id{};
1915  std::string icon{};
1916  bool disabled_by_default{false};
1917  enums::EntityCategory entity_category{};
1918  void encode(ProtoWriteBuffer buffer) const override;
1919 #ifdef HAS_PROTO_MESSAGE_DUMP
1920  void dump_to(std::string &out) const override;
1921 #endif
1922 
1923  protected:
1924  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1925  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1926  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1927 };
1929  public:
1930  uint32_t key{0};
1931  bool missing_state{false};
1932  uint32_t year{0};
1933  uint32_t month{0};
1934  uint32_t day{0};
1935  void encode(ProtoWriteBuffer buffer) const override;
1936 #ifdef HAS_PROTO_MESSAGE_DUMP
1937  void dump_to(std::string &out) const override;
1938 #endif
1939 
1940  protected:
1941  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1942  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1943 };
1945  public:
1946  uint32_t key{0};
1947  uint32_t year{0};
1948  uint32_t month{0};
1949  uint32_t day{0};
1950  void encode(ProtoWriteBuffer buffer) const override;
1951 #ifdef HAS_PROTO_MESSAGE_DUMP
1952  void dump_to(std::string &out) const override;
1953 #endif
1954 
1955  protected:
1956  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1957  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1958 };
1960  public:
1961  std::string object_id{};
1962  uint32_t key{0};
1963  std::string name{};
1964  std::string unique_id{};
1965  std::string icon{};
1966  bool disabled_by_default{false};
1967  enums::EntityCategory entity_category{};
1968  void encode(ProtoWriteBuffer buffer) const override;
1969 #ifdef HAS_PROTO_MESSAGE_DUMP
1970  void dump_to(std::string &out) const override;
1971 #endif
1972 
1973  protected:
1974  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1975  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1976  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1977 };
1979  public:
1980  uint32_t key{0};
1981  bool missing_state{false};
1982  uint32_t hour{0};
1983  uint32_t minute{0};
1984  uint32_t second{0};
1985  void encode(ProtoWriteBuffer buffer) const override;
1986 #ifdef HAS_PROTO_MESSAGE_DUMP
1987  void dump_to(std::string &out) const override;
1988 #endif
1989 
1990  protected:
1991  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1992  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1993 };
1995  public:
1996  uint32_t key{0};
1997  uint32_t hour{0};
1998  uint32_t minute{0};
1999  uint32_t second{0};
2000  void encode(ProtoWriteBuffer buffer) const override;
2001 #ifdef HAS_PROTO_MESSAGE_DUMP
2002  void dump_to(std::string &out) const override;
2003 #endif
2004 
2005  protected:
2006  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2007  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2008 };
2010  public:
2011  std::string object_id{};
2012  uint32_t key{0};
2013  std::string name{};
2014  std::string unique_id{};
2015  std::string icon{};
2016  bool disabled_by_default{false};
2017  enums::EntityCategory entity_category{};
2018  std::string device_class{};
2019  std::vector<std::string> event_types{};
2020  void encode(ProtoWriteBuffer buffer) const override;
2021 #ifdef HAS_PROTO_MESSAGE_DUMP
2022  void dump_to(std::string &out) const override;
2023 #endif
2024 
2025  protected:
2026  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2027  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2028  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2029 };
2030 class EventResponse : public ProtoMessage {
2031  public:
2032  uint32_t key{0};
2033  std::string event_type{};
2034  void encode(ProtoWriteBuffer buffer) const override;
2035 #ifdef HAS_PROTO_MESSAGE_DUMP
2036  void dump_to(std::string &out) const override;
2037 #endif
2038 
2039  protected:
2040  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2041  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2042 };
2044  public:
2045  std::string object_id{};
2046  uint32_t key{0};
2047  std::string name{};
2048  std::string unique_id{};
2049  std::string icon{};
2050  bool disabled_by_default{false};
2051  enums::EntityCategory entity_category{};
2052  std::string device_class{};
2053  bool assumed_state{false};
2054  bool supports_position{false};
2055  bool supports_stop{false};
2056  void encode(ProtoWriteBuffer buffer) const override;
2057 #ifdef HAS_PROTO_MESSAGE_DUMP
2058  void dump_to(std::string &out) const override;
2059 #endif
2060 
2061  protected:
2062  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2063  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2064  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2065 };
2067  public:
2068  uint32_t key{0};
2069  float position{0.0f};
2070  enums::ValveOperation current_operation{};
2071  void encode(ProtoWriteBuffer buffer) const override;
2072 #ifdef HAS_PROTO_MESSAGE_DUMP
2073  void dump_to(std::string &out) const override;
2074 #endif
2075 
2076  protected:
2077  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2078  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2079 };
2081  public:
2082  uint32_t key{0};
2083  bool has_position{false};
2084  float position{0.0f};
2085  bool stop{false};
2086  void encode(ProtoWriteBuffer buffer) const override;
2087 #ifdef HAS_PROTO_MESSAGE_DUMP
2088  void dump_to(std::string &out) const override;
2089 #endif
2090 
2091  protected:
2092  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2093  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2094 };
2096  public:
2097  std::string object_id{};
2098  uint32_t key{0};
2099  std::string name{};
2100  std::string unique_id{};
2101  std::string icon{};
2102  bool disabled_by_default{false};
2103  enums::EntityCategory entity_category{};
2104  void encode(ProtoWriteBuffer buffer) const override;
2105 #ifdef HAS_PROTO_MESSAGE_DUMP
2106  void dump_to(std::string &out) const override;
2107 #endif
2108 
2109  protected:
2110  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2111  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2112  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2113 };
2115  public:
2116  uint32_t key{0};
2117  bool missing_state{false};
2118  uint32_t epoch_seconds{0};
2119  void encode(ProtoWriteBuffer buffer) const override;
2120 #ifdef HAS_PROTO_MESSAGE_DUMP
2121  void dump_to(std::string &out) const override;
2122 #endif
2123 
2124  protected:
2125  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2126  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2127 };
2129  public:
2130  uint32_t key{0};
2131  uint32_t epoch_seconds{0};
2132  void encode(ProtoWriteBuffer buffer) const override;
2133 #ifdef HAS_PROTO_MESSAGE_DUMP
2134  void dump_to(std::string &out) const override;
2135 #endif
2136 
2137  protected:
2138  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2139 };
2141  public:
2142  std::string object_id{};
2143  uint32_t key{0};
2144  std::string name{};
2145  std::string unique_id{};
2146  std::string icon{};
2147  bool disabled_by_default{false};
2148  enums::EntityCategory entity_category{};
2149  std::string device_class{};
2150  void encode(ProtoWriteBuffer buffer) const override;
2151 #ifdef HAS_PROTO_MESSAGE_DUMP
2152  void dump_to(std::string &out) const override;
2153 #endif
2154 
2155  protected:
2156  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2157  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2158  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2159 };
2161  public:
2162  uint32_t key{0};
2163  bool missing_state{false};
2164  bool in_progress{false};
2165  bool has_progress{false};
2166  float progress{0.0f};
2167  std::string current_version{};
2168  std::string latest_version{};
2169  std::string title{};
2170  std::string release_summary{};
2171  std::string release_url{};
2172  void encode(ProtoWriteBuffer buffer) const override;
2173 #ifdef HAS_PROTO_MESSAGE_DUMP
2174  void dump_to(std::string &out) const override;
2175 #endif
2176 
2177  protected:
2178  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2179  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2180  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2181 };
2183  public:
2184  uint32_t key{0};
2186  void encode(ProtoWriteBuffer buffer) const override;
2187 #ifdef HAS_PROTO_MESSAGE_DUMP
2188  void dump_to(std::string &out) const override;
2189 #endif
2190 
2191  protected:
2192  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2193  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2194 };
2195 
2196 } // namespace api
2197 } // namespace esphome
float target_temperature_low
Definition: climate.h:140
const char * name
Definition: stm32flash.h:78
uint16_t year
Definition: date_entity.h:122
Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
Definition: proto.h:17
int speed
Definition: fan.h:35
float tilt
Definition: cover.h:15
float target_temperature_high
Definition: climate.h:141
float target_humidity
Definition: climate.h:589
uint8_t minute
ClimateSwingMode swing_mode
Definition: climate.h:581
uint8_t day
Definition: date_entity.h:124
FanDirection direction
Definition: fan.h:37
uint8_t custom_preset
Definition: climate.h:579
uint8_t hour
BedjetMode mode
BedJet operating mode.
Definition: bedjet_codec.h:181
uint8_t second
uint8_t type
const uint32_t flags
Definition: stm32flash.h:85
uint8_t options
ClimateFanMode fan_mode
Definition: climate.h:573
bool oscillating
Definition: fan.h:36
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
uint8_t preset_mode
Definition: fan.h:38
float position
Definition: cover.h:14
uint8_t end[39]
Definition: sun_gtil2.cpp:31
uint8_t custom_fan_mode
Definition: climate.h:574
float target_temperature
Definition: climate.h:138
uint8_t month
Definition: date_entity.h:123
ClimatePreset preset
Definition: climate.h:578
bool state
Definition: fan.h:34