ESPHome  2024.4.1
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 AlarmControlPanelState : uint32_t {
205 };
214 };
215 enum TextMode : uint32_t {
218 };
219 
220 } // namespace enums
221 
222 class HelloRequest : public ProtoMessage {
223  public:
224  std::string client_info{};
225  uint32_t api_version_major{0};
226  uint32_t api_version_minor{0};
227  void encode(ProtoWriteBuffer buffer) const override;
228 #ifdef HAS_PROTO_MESSAGE_DUMP
229  void dump_to(std::string &out) const override;
230 #endif
231 
232  protected:
233  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
234  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
235 };
236 class HelloResponse : public ProtoMessage {
237  public:
238  uint32_t api_version_major{0};
239  uint32_t api_version_minor{0};
240  std::string server_info{};
241  std::string name{};
242  void encode(ProtoWriteBuffer buffer) const override;
243 #ifdef HAS_PROTO_MESSAGE_DUMP
244  void dump_to(std::string &out) const override;
245 #endif
246 
247  protected:
248  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
249  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
250 };
251 class ConnectRequest : public ProtoMessage {
252  public:
253  std::string password{};
254  void encode(ProtoWriteBuffer buffer) const override;
255 #ifdef HAS_PROTO_MESSAGE_DUMP
256  void dump_to(std::string &out) const override;
257 #endif
258 
259  protected:
260  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
261 };
263  public:
264  bool invalid_password{false};
265  void encode(ProtoWriteBuffer buffer) const override;
266 #ifdef HAS_PROTO_MESSAGE_DUMP
267  void dump_to(std::string &out) const override;
268 #endif
269 
270  protected:
271  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
272 };
274  public:
275  void encode(ProtoWriteBuffer buffer) const override;
276 #ifdef HAS_PROTO_MESSAGE_DUMP
277  void dump_to(std::string &out) const override;
278 #endif
279 
280  protected:
281 };
283  public:
284  void encode(ProtoWriteBuffer buffer) const override;
285 #ifdef HAS_PROTO_MESSAGE_DUMP
286  void dump_to(std::string &out) const override;
287 #endif
288 
289  protected:
290 };
291 class PingRequest : public ProtoMessage {
292  public:
293  void encode(ProtoWriteBuffer buffer) const override;
294 #ifdef HAS_PROTO_MESSAGE_DUMP
295  void dump_to(std::string &out) const override;
296 #endif
297 
298  protected:
299 };
300 class PingResponse : public ProtoMessage {
301  public:
302  void encode(ProtoWriteBuffer buffer) const override;
303 #ifdef HAS_PROTO_MESSAGE_DUMP
304  void dump_to(std::string &out) const override;
305 #endif
306 
307  protected:
308 };
310  public:
311  void encode(ProtoWriteBuffer buffer) const override;
312 #ifdef HAS_PROTO_MESSAGE_DUMP
313  void dump_to(std::string &out) const override;
314 #endif
315 
316  protected:
317 };
319  public:
320  bool uses_password{false};
321  std::string name{};
322  std::string mac_address{};
323  std::string esphome_version{};
324  std::string compilation_time{};
325  std::string model{};
326  bool has_deep_sleep{false};
327  std::string project_name{};
328  std::string project_version{};
329  uint32_t webserver_port{0};
330  uint32_t legacy_bluetooth_proxy_version{0};
331  uint32_t bluetooth_proxy_feature_flags{0};
332  std::string manufacturer{};
333  std::string friendly_name{};
334  uint32_t legacy_voice_assistant_version{0};
335  uint32_t voice_assistant_feature_flags{0};
336  std::string suggested_area{};
337  void encode(ProtoWriteBuffer buffer) const override;
338 #ifdef HAS_PROTO_MESSAGE_DUMP
339  void dump_to(std::string &out) const override;
340 #endif
341 
342  protected:
343  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
344  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
345 };
347  public:
348  void encode(ProtoWriteBuffer buffer) const override;
349 #ifdef HAS_PROTO_MESSAGE_DUMP
350  void dump_to(std::string &out) const override;
351 #endif
352 
353  protected:
354 };
356  public:
357  void encode(ProtoWriteBuffer buffer) const override;
358 #ifdef HAS_PROTO_MESSAGE_DUMP
359  void dump_to(std::string &out) const override;
360 #endif
361 
362  protected:
363 };
365  public:
366  void encode(ProtoWriteBuffer buffer) const override;
367 #ifdef HAS_PROTO_MESSAGE_DUMP
368  void dump_to(std::string &out) const override;
369 #endif
370 
371  protected:
372 };
374  public:
375  std::string object_id{};
376  uint32_t key{0};
377  std::string name{};
378  std::string unique_id{};
379  std::string device_class{};
380  bool is_status_binary_sensor{false};
381  bool disabled_by_default{false};
382  std::string icon{};
383  enums::EntityCategory entity_category{};
384  void encode(ProtoWriteBuffer buffer) const override;
385 #ifdef HAS_PROTO_MESSAGE_DUMP
386  void dump_to(std::string &out) const override;
387 #endif
388 
389  protected:
390  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
391  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
392  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
393 };
395  public:
396  uint32_t key{0};
397  bool state{false};
398  bool missing_state{false};
399  void encode(ProtoWriteBuffer buffer) const override;
400 #ifdef HAS_PROTO_MESSAGE_DUMP
401  void dump_to(std::string &out) const override;
402 #endif
403 
404  protected:
405  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
406  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
407 };
409  public:
410  std::string object_id{};
411  uint32_t key{0};
412  std::string name{};
413  std::string unique_id{};
414  bool assumed_state{false};
415  bool supports_position{false};
416  bool supports_tilt{false};
417  std::string device_class{};
418  bool disabled_by_default{false};
419  std::string icon{};
420  enums::EntityCategory entity_category{};
421  bool supports_stop{false};
422  void encode(ProtoWriteBuffer buffer) const override;
423 #ifdef HAS_PROTO_MESSAGE_DUMP
424  void dump_to(std::string &out) const override;
425 #endif
426 
427  protected:
428  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
429  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
430  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
431 };
433  public:
434  uint32_t key{0};
435  enums::LegacyCoverState legacy_state{};
436  float position{0.0f};
437  float tilt{0.0f};
438  enums::CoverOperation current_operation{};
439  void encode(ProtoWriteBuffer buffer) const override;
440 #ifdef HAS_PROTO_MESSAGE_DUMP
441  void dump_to(std::string &out) const override;
442 #endif
443 
444  protected:
445  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
446  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
447 };
449  public:
450  uint32_t key{0};
451  bool has_legacy_command{false};
452  enums::LegacyCoverCommand legacy_command{};
453  bool has_position{false};
454  float position{0.0f};
455  bool has_tilt{false};
456  float tilt{0.0f};
457  bool stop{false};
458  void encode(ProtoWriteBuffer buffer) const override;
459 #ifdef HAS_PROTO_MESSAGE_DUMP
460  void dump_to(std::string &out) const override;
461 #endif
462 
463  protected:
464  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
465  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
466 };
468  public:
469  std::string object_id{};
470  uint32_t key{0};
471  std::string name{};
472  std::string unique_id{};
473  bool supports_oscillation{false};
474  bool supports_speed{false};
475  bool supports_direction{false};
476  int32_t supported_speed_count{0};
477  bool disabled_by_default{false};
478  std::string icon{};
479  enums::EntityCategory entity_category{};
480  std::vector<std::string> supported_preset_modes{};
481  void encode(ProtoWriteBuffer buffer) const override;
482 #ifdef HAS_PROTO_MESSAGE_DUMP
483  void dump_to(std::string &out) const override;
484 #endif
485 
486  protected:
487  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
488  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
489  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
490 };
492  public:
493  uint32_t key{0};
494  bool state{false};
495  bool oscillating{false};
498  int32_t speed_level{0};
499  std::string preset_mode{};
500  void encode(ProtoWriteBuffer buffer) const override;
501 #ifdef HAS_PROTO_MESSAGE_DUMP
502  void dump_to(std::string &out) const override;
503 #endif
504 
505  protected:
506  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
507  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
508  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
509 };
511  public:
512  uint32_t key{0};
513  bool has_state{false};
514  bool state{false};
515  bool has_speed{false};
517  bool has_oscillating{false};
518  bool oscillating{false};
519  bool has_direction{false};
521  bool has_speed_level{false};
522  int32_t speed_level{0};
523  bool has_preset_mode{false};
524  std::string preset_mode{};
525  void encode(ProtoWriteBuffer buffer) const override;
526 #ifdef HAS_PROTO_MESSAGE_DUMP
527  void dump_to(std::string &out) const override;
528 #endif
529 
530  protected:
531  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
532  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
533  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
534 };
536  public:
537  std::string object_id{};
538  uint32_t key{0};
539  std::string name{};
540  std::string unique_id{};
541  std::vector<enums::ColorMode> supported_color_modes{};
542  bool legacy_supports_brightness{false};
543  bool legacy_supports_rgb{false};
544  bool legacy_supports_white_value{false};
545  bool legacy_supports_color_temperature{false};
546  float min_mireds{0.0f};
547  float max_mireds{0.0f};
548  std::vector<std::string> effects{};
549  bool disabled_by_default{false};
550  std::string icon{};
551  enums::EntityCategory entity_category{};
552  void encode(ProtoWriteBuffer buffer) const override;
553 #ifdef HAS_PROTO_MESSAGE_DUMP
554  void dump_to(std::string &out) const override;
555 #endif
556 
557  protected:
558  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
559  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
560  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
561 };
563  public:
564  uint32_t key{0};
565  bool state{false};
566  float brightness{0.0f};
567  enums::ColorMode color_mode{};
568  float color_brightness{0.0f};
569  float red{0.0f};
570  float green{0.0f};
571  float blue{0.0f};
572  float white{0.0f};
573  float color_temperature{0.0f};
574  float cold_white{0.0f};
575  float warm_white{0.0f};
576  std::string effect{};
577  void encode(ProtoWriteBuffer buffer) const override;
578 #ifdef HAS_PROTO_MESSAGE_DUMP
579  void dump_to(std::string &out) const override;
580 #endif
581 
582  protected:
583  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
584  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
585  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
586 };
588  public:
589  uint32_t key{0};
590  bool has_state{false};
591  bool state{false};
592  bool has_brightness{false};
593  float brightness{0.0f};
594  bool has_color_mode{false};
595  enums::ColorMode color_mode{};
596  bool has_color_brightness{false};
597  float color_brightness{0.0f};
598  bool has_rgb{false};
599  float red{0.0f};
600  float green{0.0f};
601  float blue{0.0f};
602  bool has_white{false};
603  float white{0.0f};
604  bool has_color_temperature{false};
605  float color_temperature{0.0f};
606  bool has_cold_white{false};
607  float cold_white{0.0f};
608  bool has_warm_white{false};
609  float warm_white{0.0f};
610  bool has_transition_length{false};
611  uint32_t transition_length{0};
612  bool has_flash_length{false};
613  uint32_t flash_length{0};
614  bool has_effect{false};
615  std::string effect{};
616  void encode(ProtoWriteBuffer buffer) const override;
617 #ifdef HAS_PROTO_MESSAGE_DUMP
618  void dump_to(std::string &out) const override;
619 #endif
620 
621  protected:
622  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
623  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
624  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
625 };
627  public:
628  std::string object_id{};
629  uint32_t key{0};
630  std::string name{};
631  std::string unique_id{};
632  std::string icon{};
633  std::string unit_of_measurement{};
634  int32_t accuracy_decimals{0};
635  bool force_update{false};
636  std::string device_class{};
637  enums::SensorStateClass state_class{};
638  enums::SensorLastResetType legacy_last_reset_type{};
639  bool disabled_by_default{false};
640  enums::EntityCategory entity_category{};
641  void encode(ProtoWriteBuffer buffer) const override;
642 #ifdef HAS_PROTO_MESSAGE_DUMP
643  void dump_to(std::string &out) const override;
644 #endif
645 
646  protected:
647  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
648  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
649  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
650 };
652  public:
653  uint32_t key{0};
654  float state{0.0f};
655  bool missing_state{false};
656  void encode(ProtoWriteBuffer buffer) const override;
657 #ifdef HAS_PROTO_MESSAGE_DUMP
658  void dump_to(std::string &out) const override;
659 #endif
660 
661  protected:
662  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
663  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
664 };
666  public:
667  std::string object_id{};
668  uint32_t key{0};
669  std::string name{};
670  std::string unique_id{};
671  std::string icon{};
672  bool assumed_state{false};
673  bool disabled_by_default{false};
674  enums::EntityCategory entity_category{};
675  std::string device_class{};
676  void encode(ProtoWriteBuffer buffer) const override;
677 #ifdef HAS_PROTO_MESSAGE_DUMP
678  void dump_to(std::string &out) const override;
679 #endif
680 
681  protected:
682  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
683  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
684  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
685 };
687  public:
688  uint32_t key{0};
689  bool state{false};
690  void encode(ProtoWriteBuffer buffer) const override;
691 #ifdef HAS_PROTO_MESSAGE_DUMP
692  void dump_to(std::string &out) const override;
693 #endif
694 
695  protected:
696  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
697  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
698 };
700  public:
701  uint32_t key{0};
702  bool state{false};
703  void encode(ProtoWriteBuffer buffer) const override;
704 #ifdef HAS_PROTO_MESSAGE_DUMP
705  void dump_to(std::string &out) const override;
706 #endif
707 
708  protected:
709  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
710  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
711 };
713  public:
714  std::string object_id{};
715  uint32_t key{0};
716  std::string name{};
717  std::string unique_id{};
718  std::string icon{};
719  bool disabled_by_default{false};
720  enums::EntityCategory entity_category{};
721  std::string device_class{};
722  void encode(ProtoWriteBuffer buffer) const override;
723 #ifdef HAS_PROTO_MESSAGE_DUMP
724  void dump_to(std::string &out) const override;
725 #endif
726 
727  protected:
728  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
729  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
730  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
731 };
733  public:
734  uint32_t key{0};
735  std::string state{};
736  bool missing_state{false};
737  void encode(ProtoWriteBuffer buffer) const override;
738 #ifdef HAS_PROTO_MESSAGE_DUMP
739  void dump_to(std::string &out) const override;
740 #endif
741 
742  protected:
743  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
744  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
745  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
746 };
748  public:
750  bool dump_config{false};
751  void encode(ProtoWriteBuffer buffer) const override;
752 #ifdef HAS_PROTO_MESSAGE_DUMP
753  void dump_to(std::string &out) const override;
754 #endif
755 
756  protected:
757  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
758 };
760  public:
762  std::string message{};
763  bool send_failed{false};
764  void encode(ProtoWriteBuffer buffer) const override;
765 #ifdef HAS_PROTO_MESSAGE_DUMP
766  void dump_to(std::string &out) const override;
767 #endif
768 
769  protected:
770  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
771  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
772 };
774  public:
775  void encode(ProtoWriteBuffer buffer) const override;
776 #ifdef HAS_PROTO_MESSAGE_DUMP
777  void dump_to(std::string &out) const override;
778 #endif
779 
780  protected:
781 };
783  public:
784  std::string key{};
785  std::string value{};
786  void encode(ProtoWriteBuffer buffer) const override;
787 #ifdef HAS_PROTO_MESSAGE_DUMP
788  void dump_to(std::string &out) const override;
789 #endif
790 
791  protected:
792  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
793 };
795  public:
796  std::string service{};
797  std::vector<HomeassistantServiceMap> data{};
798  std::vector<HomeassistantServiceMap> data_template{};
799  std::vector<HomeassistantServiceMap> variables{};
800  bool is_event{false};
801  void encode(ProtoWriteBuffer buffer) const override;
802 #ifdef HAS_PROTO_MESSAGE_DUMP
803  void dump_to(std::string &out) const override;
804 #endif
805 
806  protected:
807  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
808  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
809 };
811  public:
812  void encode(ProtoWriteBuffer buffer) const override;
813 #ifdef HAS_PROTO_MESSAGE_DUMP
814  void dump_to(std::string &out) const override;
815 #endif
816 
817  protected:
818 };
820  public:
821  std::string entity_id{};
822  std::string attribute{};
823  void encode(ProtoWriteBuffer buffer) const override;
824 #ifdef HAS_PROTO_MESSAGE_DUMP
825  void dump_to(std::string &out) const override;
826 #endif
827 
828  protected:
829  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
830 };
832  public:
833  std::string entity_id{};
834  std::string state{};
835  std::string attribute{};
836  void encode(ProtoWriteBuffer buffer) const override;
837 #ifdef HAS_PROTO_MESSAGE_DUMP
838  void dump_to(std::string &out) const override;
839 #endif
840 
841  protected:
842  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
843 };
844 class GetTimeRequest : public ProtoMessage {
845  public:
846  void encode(ProtoWriteBuffer buffer) const override;
847 #ifdef HAS_PROTO_MESSAGE_DUMP
848  void dump_to(std::string &out) const override;
849 #endif
850 
851  protected:
852 };
854  public:
855  uint32_t epoch_seconds{0};
856  void encode(ProtoWriteBuffer buffer) const override;
857 #ifdef HAS_PROTO_MESSAGE_DUMP
858  void dump_to(std::string &out) const override;
859 #endif
860 
861  protected:
862  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
863 };
865  public:
866  std::string name{};
868  void encode(ProtoWriteBuffer buffer) const override;
869 #ifdef HAS_PROTO_MESSAGE_DUMP
870  void dump_to(std::string &out) const override;
871 #endif
872 
873  protected:
874  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
875  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
876 };
878  public:
879  std::string name{};
880  uint32_t key{0};
881  std::vector<ListEntitiesServicesArgument> args{};
882  void encode(ProtoWriteBuffer buffer) const override;
883 #ifdef HAS_PROTO_MESSAGE_DUMP
884  void dump_to(std::string &out) const override;
885 #endif
886 
887  protected:
888  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
889  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
890 };
892  public:
893  bool bool_{false};
894  int32_t legacy_int{0};
895  float float_{0.0f};
896  std::string string_{};
897  int32_t int_{0};
898  std::vector<bool> bool_array{};
899  std::vector<int32_t> int_array{};
900  std::vector<float> float_array{};
901  std::vector<std::string> string_array{};
902  void encode(ProtoWriteBuffer buffer) const override;
903 #ifdef HAS_PROTO_MESSAGE_DUMP
904  void dump_to(std::string &out) const override;
905 #endif
906 
907  protected:
908  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
909  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
910  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
911 };
913  public:
914  uint32_t key{0};
915  std::vector<ExecuteServiceArgument> args{};
916  void encode(ProtoWriteBuffer buffer) const override;
917 #ifdef HAS_PROTO_MESSAGE_DUMP
918  void dump_to(std::string &out) const override;
919 #endif
920 
921  protected:
922  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
923  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
924 };
926  public:
927  std::string object_id{};
928  uint32_t key{0};
929  std::string name{};
930  std::string unique_id{};
931  bool disabled_by_default{false};
932  std::string icon{};
933  enums::EntityCategory entity_category{};
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  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
943 };
945  public:
946  uint32_t key{0};
947  std::string data{};
948  bool done{false};
949  void encode(ProtoWriteBuffer buffer) const override;
950 #ifdef HAS_PROTO_MESSAGE_DUMP
951  void dump_to(std::string &out) const override;
952 #endif
953 
954  protected:
955  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
956  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
957  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
958 };
960  public:
961  bool single{false};
962  bool stream{false};
963  void encode(ProtoWriteBuffer buffer) const override;
964 #ifdef HAS_PROTO_MESSAGE_DUMP
965  void dump_to(std::string &out) const override;
966 #endif
967 
968  protected:
969  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
970 };
972  public:
973  std::string object_id{};
974  uint32_t key{0};
975  std::string name{};
976  std::string unique_id{};
977  bool supports_current_temperature{false};
978  bool supports_two_point_target_temperature{false};
979  std::vector<enums::ClimateMode> supported_modes{};
980  float visual_min_temperature{0.0f};
981  float visual_max_temperature{0.0f};
982  float visual_target_temperature_step{0.0f};
983  bool legacy_supports_away{false};
984  bool supports_action{false};
985  std::vector<enums::ClimateFanMode> supported_fan_modes{};
986  std::vector<enums::ClimateSwingMode> supported_swing_modes{};
987  std::vector<std::string> supported_custom_fan_modes{};
988  std::vector<enums::ClimatePreset> supported_presets{};
989  std::vector<std::string> supported_custom_presets{};
990  bool disabled_by_default{false};
991  std::string icon{};
992  enums::EntityCategory entity_category{};
993  float visual_current_temperature_step{0.0f};
994  bool supports_current_humidity{false};
995  bool supports_target_humidity{false};
996  float visual_min_humidity{0.0f};
997  float visual_max_humidity{0.0f};
998  void encode(ProtoWriteBuffer buffer) const override;
999 #ifdef HAS_PROTO_MESSAGE_DUMP
1000  void dump_to(std::string &out) const override;
1001 #endif
1002 
1003  protected:
1004  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1005  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1006  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1007 };
1009  public:
1010  uint32_t key{0};
1012  float current_temperature{0.0f};
1013  float target_temperature{0.0f};
1016  bool unused_legacy_away{false};
1020  std::string custom_fan_mode{};
1022  std::string custom_preset{};
1023  float current_humidity{0.0f};
1024  float target_humidity{0.0f};
1025  void encode(ProtoWriteBuffer buffer) const override;
1026 #ifdef HAS_PROTO_MESSAGE_DUMP
1027  void dump_to(std::string &out) const override;
1028 #endif
1029 
1030  protected:
1031  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1032  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1033  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1034 };
1036  public:
1037  uint32_t key{0};
1038  bool has_mode{false};
1040  bool has_target_temperature{false};
1041  float target_temperature{0.0f};
1042  bool has_target_temperature_low{false};
1044  bool has_target_temperature_high{false};
1046  bool unused_has_legacy_away{false};
1047  bool unused_legacy_away{false};
1048  bool has_fan_mode{false};
1050  bool has_swing_mode{false};
1052  bool has_custom_fan_mode{false};
1053  std::string custom_fan_mode{};
1054  bool has_preset{false};
1056  bool has_custom_preset{false};
1057  std::string custom_preset{};
1058  bool has_target_humidity{false};
1059  float target_humidity{0.0f};
1060  void encode(ProtoWriteBuffer buffer) const override;
1061 #ifdef HAS_PROTO_MESSAGE_DUMP
1062  void dump_to(std::string &out) const override;
1063 #endif
1064 
1065  protected:
1066  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1067  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1068  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1069 };
1071  public:
1072  std::string object_id{};
1073  uint32_t key{0};
1074  std::string name{};
1075  std::string unique_id{};
1076  std::string icon{};
1077  float min_value{0.0f};
1078  float max_value{0.0f};
1079  float step{0.0f};
1080  bool disabled_by_default{false};
1081  enums::EntityCategory entity_category{};
1082  std::string unit_of_measurement{};
1084  std::string device_class{};
1085  void encode(ProtoWriteBuffer buffer) const override;
1086 #ifdef HAS_PROTO_MESSAGE_DUMP
1087  void dump_to(std::string &out) const override;
1088 #endif
1089 
1090  protected:
1091  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1092  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1093  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1094 };
1096  public:
1097  uint32_t key{0};
1098  float state{0.0f};
1099  bool missing_state{false};
1100  void encode(ProtoWriteBuffer buffer) const override;
1101 #ifdef HAS_PROTO_MESSAGE_DUMP
1102  void dump_to(std::string &out) const override;
1103 #endif
1104 
1105  protected:
1106  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1107  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1108 };
1110  public:
1111  uint32_t key{0};
1112  float state{0.0f};
1113  void encode(ProtoWriteBuffer buffer) const override;
1114 #ifdef HAS_PROTO_MESSAGE_DUMP
1115  void dump_to(std::string &out) const override;
1116 #endif
1117 
1118  protected:
1119  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1120 };
1122  public:
1123  std::string object_id{};
1124  uint32_t key{0};
1125  std::string name{};
1126  std::string unique_id{};
1127  std::string icon{};
1128  std::vector<std::string> options{};
1129  bool disabled_by_default{false};
1130  enums::EntityCategory entity_category{};
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  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1139  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1140 };
1142  public:
1143  uint32_t key{0};
1144  std::string state{};
1145  bool missing_state{false};
1146  void encode(ProtoWriteBuffer buffer) const override;
1147 #ifdef HAS_PROTO_MESSAGE_DUMP
1148  void dump_to(std::string &out) const override;
1149 #endif
1150 
1151  protected:
1152  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1153  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1154  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1155 };
1157  public:
1158  uint32_t key{0};
1159  std::string state{};
1160  void encode(ProtoWriteBuffer buffer) const override;
1161 #ifdef HAS_PROTO_MESSAGE_DUMP
1162  void dump_to(std::string &out) const override;
1163 #endif
1164 
1165  protected:
1166  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1167  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1168 };
1170  public:
1171  std::string object_id{};
1172  uint32_t key{0};
1173  std::string name{};
1174  std::string unique_id{};
1175  std::string icon{};
1176  bool disabled_by_default{false};
1177  enums::EntityCategory entity_category{};
1178  bool assumed_state{false};
1179  bool supports_open{false};
1180  bool requires_code{false};
1181  std::string code_format{};
1182  void encode(ProtoWriteBuffer buffer) const override;
1183 #ifdef HAS_PROTO_MESSAGE_DUMP
1184  void dump_to(std::string &out) const override;
1185 #endif
1186 
1187  protected:
1188  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1189  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1190  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1191 };
1193  public:
1194  uint32_t key{0};
1196  void encode(ProtoWriteBuffer buffer) const override;
1197 #ifdef HAS_PROTO_MESSAGE_DUMP
1198  void dump_to(std::string &out) const override;
1199 #endif
1200 
1201  protected:
1202  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1203  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1204 };
1206  public:
1207  uint32_t key{0};
1209  bool has_code{false};
1210  std::string code{};
1211  void encode(ProtoWriteBuffer buffer) const override;
1212 #ifdef HAS_PROTO_MESSAGE_DUMP
1213  void dump_to(std::string &out) const override;
1214 #endif
1215 
1216  protected:
1217  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1218  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1219  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1220 };
1222  public:
1223  std::string object_id{};
1224  uint32_t key{0};
1225  std::string name{};
1226  std::string unique_id{};
1227  std::string icon{};
1228  bool disabled_by_default{false};
1229  enums::EntityCategory entity_category{};
1230  std::string device_class{};
1231  void encode(ProtoWriteBuffer buffer) const override;
1232 #ifdef HAS_PROTO_MESSAGE_DUMP
1233  void dump_to(std::string &out) const override;
1234 #endif
1235 
1236  protected:
1237  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1238  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1239  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1240 };
1242  public:
1243  uint32_t key{0};
1244  void encode(ProtoWriteBuffer buffer) const override;
1245 #ifdef HAS_PROTO_MESSAGE_DUMP
1246  void dump_to(std::string &out) const override;
1247 #endif
1248 
1249  protected:
1250  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1251 };
1253  public:
1254  std::string object_id{};
1255  uint32_t key{0};
1256  std::string name{};
1257  std::string unique_id{};
1258  std::string icon{};
1259  bool disabled_by_default{false};
1260  enums::EntityCategory entity_category{};
1261  bool supports_pause{false};
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  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1270  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1271 };
1273  public:
1274  uint32_t key{0};
1276  float volume{0.0f};
1277  bool muted{false};
1278  void encode(ProtoWriteBuffer buffer) const override;
1279 #ifdef HAS_PROTO_MESSAGE_DUMP
1280  void dump_to(std::string &out) const override;
1281 #endif
1282 
1283  protected:
1284  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1285  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1286 };
1288  public:
1289  uint32_t key{0};
1290  bool has_command{false};
1292  bool has_volume{false};
1293  float volume{0.0f};
1294  bool has_media_url{false};
1295  std::string media_url{};
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_length(uint32_t field_id, ProtoLengthDelimited value) override;
1304  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1305 };
1307  public:
1308  uint32_t flags{0};
1309  void encode(ProtoWriteBuffer buffer) const override;
1310 #ifdef HAS_PROTO_MESSAGE_DUMP
1311  void dump_to(std::string &out) const override;
1312 #endif
1313 
1314  protected:
1315  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1316 };
1318  public:
1319  std::string uuid{};
1320  std::vector<uint32_t> legacy_data{};
1321  std::string data{};
1322  void encode(ProtoWriteBuffer buffer) const override;
1323 #ifdef HAS_PROTO_MESSAGE_DUMP
1324  void dump_to(std::string &out) const override;
1325 #endif
1326 
1327  protected:
1328  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1329  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1330 };
1332  public:
1333  uint64_t address{0};
1334  std::string name{};
1335  int32_t rssi{0};
1336  std::vector<std::string> service_uuids{};
1337  std::vector<BluetoothServiceData> service_data{};
1338  std::vector<BluetoothServiceData> manufacturer_data{};
1339  uint32_t address_type{0};
1340  void encode(ProtoWriteBuffer buffer) const override;
1341 #ifdef HAS_PROTO_MESSAGE_DUMP
1342  void dump_to(std::string &out) const override;
1343 #endif
1344 
1345  protected:
1346  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1347  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1348 };
1350  public:
1351  uint64_t address{0};
1352  int32_t rssi{0};
1353  uint32_t address_type{0};
1354  std::string data{};
1355  void encode(ProtoWriteBuffer buffer) const override;
1356 #ifdef HAS_PROTO_MESSAGE_DUMP
1357  void dump_to(std::string &out) const override;
1358 #endif
1359 
1360  protected:
1361  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1362  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1363 };
1365  public:
1366  std::vector<BluetoothLERawAdvertisement> advertisements{};
1367  void encode(ProtoWriteBuffer buffer) const override;
1368 #ifdef HAS_PROTO_MESSAGE_DUMP
1369  void dump_to(std::string &out) const override;
1370 #endif
1371 
1372  protected:
1373  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1374 };
1376  public:
1377  uint64_t address{0};
1379  bool has_address_type{false};
1380  uint32_t address_type{0};
1381  void encode(ProtoWriteBuffer buffer) const override;
1382 #ifdef HAS_PROTO_MESSAGE_DUMP
1383  void dump_to(std::string &out) const override;
1384 #endif
1385 
1386  protected:
1387  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1388 };
1390  public:
1391  uint64_t address{0};
1392  bool connected{false};
1393  uint32_t mtu{0};
1394  int32_t error{0};
1395  void encode(ProtoWriteBuffer buffer) const override;
1396 #ifdef HAS_PROTO_MESSAGE_DUMP
1397  void dump_to(std::string &out) const override;
1398 #endif
1399 
1400  protected:
1401  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1402 };
1404  public:
1405  uint64_t address{0};
1406  void encode(ProtoWriteBuffer buffer) const override;
1407 #ifdef HAS_PROTO_MESSAGE_DUMP
1408  void dump_to(std::string &out) const override;
1409 #endif
1410 
1411  protected:
1412  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1413 };
1415  public:
1416  std::vector<uint64_t> uuid{};
1417  uint32_t handle{0};
1418  void encode(ProtoWriteBuffer buffer) const override;
1419 #ifdef HAS_PROTO_MESSAGE_DUMP
1420  void dump_to(std::string &out) const override;
1421 #endif
1422 
1423  protected:
1424  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1425 };
1427  public:
1428  std::vector<uint64_t> uuid{};
1429  uint32_t handle{0};
1430  uint32_t properties{0};
1431  std::vector<BluetoothGATTDescriptor> descriptors{};
1432  void encode(ProtoWriteBuffer buffer) const override;
1433 #ifdef HAS_PROTO_MESSAGE_DUMP
1434  void dump_to(std::string &out) const override;
1435 #endif
1436 
1437  protected:
1438  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1439  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1440 };
1442  public:
1443  std::vector<uint64_t> uuid{};
1444  uint32_t handle{0};
1445  std::vector<BluetoothGATTCharacteristic> characteristics{};
1446  void encode(ProtoWriteBuffer buffer) const override;
1447 #ifdef HAS_PROTO_MESSAGE_DUMP
1448  void dump_to(std::string &out) const override;
1449 #endif
1450 
1451  protected:
1452  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1453  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1454 };
1456  public:
1457  uint64_t address{0};
1458  std::vector<BluetoothGATTService> services{};
1459  void encode(ProtoWriteBuffer buffer) const override;
1460 #ifdef HAS_PROTO_MESSAGE_DUMP
1461  void dump_to(std::string &out) const override;
1462 #endif
1463 
1464  protected:
1465  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1466  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1467 };
1469  public:
1470  uint64_t address{0};
1471  void encode(ProtoWriteBuffer buffer) const override;
1472 #ifdef HAS_PROTO_MESSAGE_DUMP
1473  void dump_to(std::string &out) const override;
1474 #endif
1475 
1476  protected:
1477  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1478 };
1480  public:
1481  uint64_t address{0};
1482  uint32_t handle{0};
1483  void encode(ProtoWriteBuffer buffer) const override;
1484 #ifdef HAS_PROTO_MESSAGE_DUMP
1485  void dump_to(std::string &out) const override;
1486 #endif
1487 
1488  protected:
1489  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1490 };
1492  public:
1493  uint64_t address{0};
1494  uint32_t handle{0};
1495  std::string data{};
1496  void encode(ProtoWriteBuffer buffer) const override;
1497 #ifdef HAS_PROTO_MESSAGE_DUMP
1498  void dump_to(std::string &out) const override;
1499 #endif
1500 
1501  protected:
1502  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1503  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1504 };
1506  public:
1507  uint64_t address{0};
1508  uint32_t handle{0};
1509  bool response{false};
1510  std::string data{};
1511  void encode(ProtoWriteBuffer buffer) const override;
1512 #ifdef HAS_PROTO_MESSAGE_DUMP
1513  void dump_to(std::string &out) const override;
1514 #endif
1515 
1516  protected:
1517  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1518  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1519 };
1521  public:
1522  uint64_t address{0};
1523  uint32_t handle{0};
1524  void encode(ProtoWriteBuffer buffer) const override;
1525 #ifdef HAS_PROTO_MESSAGE_DUMP
1526  void dump_to(std::string &out) const override;
1527 #endif
1528 
1529  protected:
1530  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1531 };
1533  public:
1534  uint64_t address{0};
1535  uint32_t handle{0};
1536  std::string data{};
1537  void encode(ProtoWriteBuffer buffer) const override;
1538 #ifdef HAS_PROTO_MESSAGE_DUMP
1539  void dump_to(std::string &out) const override;
1540 #endif
1541 
1542  protected:
1543  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1544  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1545 };
1547  public:
1548  uint64_t address{0};
1549  uint32_t handle{0};
1550  bool enable{false};
1551  void encode(ProtoWriteBuffer buffer) const override;
1552 #ifdef HAS_PROTO_MESSAGE_DUMP
1553  void dump_to(std::string &out) const override;
1554 #endif
1555 
1556  protected:
1557  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1558 };
1560  public:
1561  uint64_t address{0};
1562  uint32_t handle{0};
1563  std::string data{};
1564  void encode(ProtoWriteBuffer buffer) const override;
1565 #ifdef HAS_PROTO_MESSAGE_DUMP
1566  void dump_to(std::string &out) const override;
1567 #endif
1568 
1569  protected:
1570  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1571  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1572 };
1574  public:
1575  void encode(ProtoWriteBuffer buffer) const override;
1576 #ifdef HAS_PROTO_MESSAGE_DUMP
1577  void dump_to(std::string &out) const override;
1578 #endif
1579 
1580  protected:
1581 };
1583  public:
1584  uint32_t free{0};
1585  uint32_t limit{0};
1586  void encode(ProtoWriteBuffer buffer) const override;
1587 #ifdef HAS_PROTO_MESSAGE_DUMP
1588  void dump_to(std::string &out) const override;
1589 #endif
1590 
1591  protected:
1592  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1593 };
1595  public:
1596  uint64_t address{0};
1597  uint32_t handle{0};
1598  int32_t error{0};
1599  void encode(ProtoWriteBuffer buffer) const override;
1600 #ifdef HAS_PROTO_MESSAGE_DUMP
1601  void dump_to(std::string &out) const override;
1602 #endif
1603 
1604  protected:
1605  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1606 };
1608  public:
1609  uint64_t address{0};
1610  uint32_t handle{0};
1611  void encode(ProtoWriteBuffer buffer) const override;
1612 #ifdef HAS_PROTO_MESSAGE_DUMP
1613  void dump_to(std::string &out) const override;
1614 #endif
1615 
1616  protected:
1617  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1618 };
1620  public:
1621  uint64_t address{0};
1622  uint32_t handle{0};
1623  void encode(ProtoWriteBuffer buffer) const override;
1624 #ifdef HAS_PROTO_MESSAGE_DUMP
1625  void dump_to(std::string &out) const override;
1626 #endif
1627 
1628  protected:
1629  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1630 };
1632  public:
1633  uint64_t address{0};
1634  bool paired{false};
1635  int32_t error{0};
1636  void encode(ProtoWriteBuffer buffer) const override;
1637 #ifdef HAS_PROTO_MESSAGE_DUMP
1638  void dump_to(std::string &out) const override;
1639 #endif
1640 
1641  protected:
1642  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1643 };
1645  public:
1646  uint64_t address{0};
1647  bool success{false};
1648  int32_t error{0};
1649  void encode(ProtoWriteBuffer buffer) const override;
1650 #ifdef HAS_PROTO_MESSAGE_DUMP
1651  void dump_to(std::string &out) const override;
1652 #endif
1653 
1654  protected:
1655  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1656 };
1658  public:
1659  void encode(ProtoWriteBuffer buffer) const override;
1660 #ifdef HAS_PROTO_MESSAGE_DUMP
1661  void dump_to(std::string &out) const override;
1662 #endif
1663 
1664  protected:
1665 };
1667  public:
1668  uint64_t address{0};
1669  bool success{false};
1670  int32_t error{0};
1671  void encode(ProtoWriteBuffer buffer) const override;
1672 #ifdef HAS_PROTO_MESSAGE_DUMP
1673  void dump_to(std::string &out) const override;
1674 #endif
1675 
1676  protected:
1677  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1678 };
1680  public:
1681  bool subscribe{false};
1682  uint32_t flags{0};
1683  void encode(ProtoWriteBuffer buffer) const override;
1684 #ifdef HAS_PROTO_MESSAGE_DUMP
1685  void dump_to(std::string &out) const override;
1686 #endif
1687 
1688  protected:
1689  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1690 };
1692  public:
1693  uint32_t noise_suppression_level{0};
1694  uint32_t auto_gain{0};
1695  float volume_multiplier{0.0f};
1696  void encode(ProtoWriteBuffer buffer) const override;
1697 #ifdef HAS_PROTO_MESSAGE_DUMP
1698  void dump_to(std::string &out) const override;
1699 #endif
1700 
1701  protected:
1702  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1703  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1704 };
1706  public:
1707  bool start{false};
1708  std::string conversation_id{};
1709  uint32_t flags{0};
1711  std::string wake_word_phrase{};
1712  void encode(ProtoWriteBuffer buffer) const override;
1713 #ifdef HAS_PROTO_MESSAGE_DUMP
1714  void dump_to(std::string &out) const override;
1715 #endif
1716 
1717  protected:
1718  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1719  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1720 };
1722  public:
1723  uint32_t port{0};
1724  bool error{false};
1725  void encode(ProtoWriteBuffer buffer) const override;
1726 #ifdef HAS_PROTO_MESSAGE_DUMP
1727  void dump_to(std::string &out) const override;
1728 #endif
1729 
1730  protected:
1731  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1732 };
1734  public:
1735  std::string name{};
1736  std::string value{};
1737  void encode(ProtoWriteBuffer buffer) const override;
1738 #ifdef HAS_PROTO_MESSAGE_DUMP
1739  void dump_to(std::string &out) const override;
1740 #endif
1741 
1742  protected:
1743  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1744 };
1746  public:
1748  std::vector<VoiceAssistantEventData> data{};
1749  void encode(ProtoWriteBuffer buffer) const override;
1750 #ifdef HAS_PROTO_MESSAGE_DUMP
1751  void dump_to(std::string &out) const override;
1752 #endif
1753 
1754  protected:
1755  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1756  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1757 };
1759  public:
1760  std::string data{};
1761  bool end{false};
1762  void encode(ProtoWriteBuffer buffer) const override;
1763 #ifdef HAS_PROTO_MESSAGE_DUMP
1764  void dump_to(std::string &out) const override;
1765 #endif
1766 
1767  protected:
1768  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1769  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1770 };
1772  public:
1773  std::string object_id{};
1774  uint32_t key{0};
1775  std::string name{};
1776  std::string unique_id{};
1777  std::string icon{};
1778  bool disabled_by_default{false};
1779  enums::EntityCategory entity_category{};
1780  uint32_t supported_features{0};
1781  bool requires_code{false};
1782  bool requires_code_to_arm{false};
1783  void encode(ProtoWriteBuffer buffer) const override;
1784 #ifdef HAS_PROTO_MESSAGE_DUMP
1785  void dump_to(std::string &out) const override;
1786 #endif
1787 
1788  protected:
1789  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1790  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1791  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1792 };
1794  public:
1795  uint32_t key{0};
1797  void encode(ProtoWriteBuffer buffer) const override;
1798 #ifdef HAS_PROTO_MESSAGE_DUMP
1799  void dump_to(std::string &out) const override;
1800 #endif
1801 
1802  protected:
1803  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1804  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1805 };
1807  public:
1808  uint32_t key{0};
1810  std::string code{};
1811  void encode(ProtoWriteBuffer buffer) const override;
1812 #ifdef HAS_PROTO_MESSAGE_DUMP
1813  void dump_to(std::string &out) const override;
1814 #endif
1815 
1816  protected:
1817  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1818  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1819  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1820 };
1822  public:
1823  std::string object_id{};
1824  uint32_t key{0};
1825  std::string name{};
1826  std::string unique_id{};
1827  std::string icon{};
1828  bool disabled_by_default{false};
1829  enums::EntityCategory entity_category{};
1830  uint32_t min_length{0};
1831  uint32_t max_length{0};
1832  std::string pattern{};
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_length(uint32_t field_id, ProtoLengthDelimited value) override;
1842  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1843 };
1845  public:
1846  uint32_t key{0};
1847  std::string state{};
1848  bool missing_state{false};
1849  void encode(ProtoWriteBuffer buffer) const override;
1850 #ifdef HAS_PROTO_MESSAGE_DUMP
1851  void dump_to(std::string &out) const override;
1852 #endif
1853 
1854  protected:
1855  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1856  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1857  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1858 };
1860  public:
1861  uint32_t key{0};
1862  std::string state{};
1863  void encode(ProtoWriteBuffer buffer) const override;
1864 #ifdef HAS_PROTO_MESSAGE_DUMP
1865  void dump_to(std::string &out) const override;
1866 #endif
1867 
1868  protected:
1869  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1870  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1871 };
1873  public:
1874  std::string object_id{};
1875  uint32_t key{0};
1876  std::string name{};
1877  std::string unique_id{};
1878  std::string icon{};
1879  bool disabled_by_default{false};
1880  enums::EntityCategory entity_category{};
1881  void encode(ProtoWriteBuffer buffer) const override;
1882 #ifdef HAS_PROTO_MESSAGE_DUMP
1883  void dump_to(std::string &out) const override;
1884 #endif
1885 
1886  protected:
1887  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1888  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1889  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1890 };
1892  public:
1893  uint32_t key{0};
1894  bool missing_state{false};
1895  uint32_t year{0};
1896  uint32_t month{0};
1897  uint32_t day{0};
1898  void encode(ProtoWriteBuffer buffer) const override;
1899 #ifdef HAS_PROTO_MESSAGE_DUMP
1900  void dump_to(std::string &out) const override;
1901 #endif
1902 
1903  protected:
1904  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1905  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1906 };
1908  public:
1909  uint32_t key{0};
1910  uint32_t year{0};
1911  uint32_t month{0};
1912  uint32_t day{0};
1913  void encode(ProtoWriteBuffer buffer) const override;
1914 #ifdef HAS_PROTO_MESSAGE_DUMP
1915  void dump_to(std::string &out) const override;
1916 #endif
1917 
1918  protected:
1919  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1920  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1921 };
1923  public:
1924  std::string object_id{};
1925  uint32_t key{0};
1926  std::string name{};
1927  std::string unique_id{};
1928  std::string icon{};
1929  bool disabled_by_default{false};
1930  enums::EntityCategory entity_category{};
1931  void encode(ProtoWriteBuffer buffer) const override;
1932 #ifdef HAS_PROTO_MESSAGE_DUMP
1933  void dump_to(std::string &out) const override;
1934 #endif
1935 
1936  protected:
1937  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1938  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1939  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1940 };
1942  public:
1943  uint32_t key{0};
1944  bool missing_state{false};
1945  uint32_t hour{0};
1946  uint32_t minute{0};
1947  uint32_t second{0};
1948  void encode(ProtoWriteBuffer buffer) const override;
1949 #ifdef HAS_PROTO_MESSAGE_DUMP
1950  void dump_to(std::string &out) const override;
1951 #endif
1952 
1953  protected:
1954  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1955  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1956 };
1958  public:
1959  uint32_t key{0};
1960  uint32_t hour{0};
1961  uint32_t minute{0};
1962  uint32_t second{0};
1963  void encode(ProtoWriteBuffer buffer) const override;
1964 #ifdef HAS_PROTO_MESSAGE_DUMP
1965  void dump_to(std::string &out) const override;
1966 #endif
1967 
1968  protected:
1969  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1970  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1971 };
1972 
1973 } // namespace api
1974 } // namespace esphome
float target_temperature_low
Definition: climate.h:585
const char * name
Definition: stm32flash.h:78
uint16_t year
Definition: date_entity.h:108
Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
Definition: proto.h:17
uint8_t minute
Definition: time_entity.h:148
int speed
Definition: fan.h:35
float tilt
Definition: cover.h:15
float target_temperature_high
Definition: climate.h:586
float target_humidity
Definition: climate.h:589
ClimateSwingMode swing_mode
Definition: climate.h:581
uint8_t day
Definition: date_entity.h:110
FanDirection direction
Definition: fan.h:37
uint8_t custom_preset
Definition: climate.h:579
BedjetMode mode
BedJet operating mode.
Definition: bedjet_codec.h:151
uint8_t type
const uint32_t flags
Definition: stm32flash.h:85
uint8_t options
uint8_t second
Definition: time_entity.h:149
ClimateFanMode fan_mode
Definition: climate.h:573
uint8_t hour
Definition: time_entity.h:147
bool oscillating
Definition: fan.h:36
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
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:583
uint8_t month
Definition: date_entity.h:109
ClimatePreset preset
Definition: climate.h:578
bool state
Definition: fan.h:34