ESPHome  2024.5.4
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 enum ValveOperation : uint32_t {
223 };
224 
225 } // namespace enums
226 
227 class HelloRequest : public ProtoMessage {
228  public:
229  std::string client_info{};
230  uint32_t api_version_major{0};
231  uint32_t api_version_minor{0};
232  void encode(ProtoWriteBuffer buffer) const override;
233 #ifdef HAS_PROTO_MESSAGE_DUMP
234  void dump_to(std::string &out) const override;
235 #endif
236 
237  protected:
238  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
239  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
240 };
241 class HelloResponse : public ProtoMessage {
242  public:
243  uint32_t api_version_major{0};
244  uint32_t api_version_minor{0};
245  std::string server_info{};
246  std::string name{};
247  void encode(ProtoWriteBuffer buffer) const override;
248 #ifdef HAS_PROTO_MESSAGE_DUMP
249  void dump_to(std::string &out) const override;
250 #endif
251 
252  protected:
253  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
254  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
255 };
256 class ConnectRequest : public ProtoMessage {
257  public:
258  std::string password{};
259  void encode(ProtoWriteBuffer buffer) const override;
260 #ifdef HAS_PROTO_MESSAGE_DUMP
261  void dump_to(std::string &out) const override;
262 #endif
263 
264  protected:
265  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
266 };
268  public:
269  bool invalid_password{false};
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_varint(uint32_t field_id, ProtoVarInt value) override;
277 };
279  public:
280  void encode(ProtoWriteBuffer buffer) const override;
281 #ifdef HAS_PROTO_MESSAGE_DUMP
282  void dump_to(std::string &out) const override;
283 #endif
284 
285  protected:
286 };
288  public:
289  void encode(ProtoWriteBuffer buffer) const override;
290 #ifdef HAS_PROTO_MESSAGE_DUMP
291  void dump_to(std::string &out) const override;
292 #endif
293 
294  protected:
295 };
296 class PingRequest : public ProtoMessage {
297  public:
298  void encode(ProtoWriteBuffer buffer) const override;
299 #ifdef HAS_PROTO_MESSAGE_DUMP
300  void dump_to(std::string &out) const override;
301 #endif
302 
303  protected:
304 };
305 class PingResponse : public ProtoMessage {
306  public:
307  void encode(ProtoWriteBuffer buffer) const override;
308 #ifdef HAS_PROTO_MESSAGE_DUMP
309  void dump_to(std::string &out) const override;
310 #endif
311 
312  protected:
313 };
315  public:
316  void encode(ProtoWriteBuffer buffer) const override;
317 #ifdef HAS_PROTO_MESSAGE_DUMP
318  void dump_to(std::string &out) const override;
319 #endif
320 
321  protected:
322 };
324  public:
325  bool uses_password{false};
326  std::string name{};
327  std::string mac_address{};
328  std::string esphome_version{};
329  std::string compilation_time{};
330  std::string model{};
331  bool has_deep_sleep{false};
332  std::string project_name{};
333  std::string project_version{};
334  uint32_t webserver_port{0};
335  uint32_t legacy_bluetooth_proxy_version{0};
336  uint32_t bluetooth_proxy_feature_flags{0};
337  std::string manufacturer{};
338  std::string friendly_name{};
339  uint32_t legacy_voice_assistant_version{0};
340  uint32_t voice_assistant_feature_flags{0};
341  std::string suggested_area{};
342  void encode(ProtoWriteBuffer buffer) const override;
343 #ifdef HAS_PROTO_MESSAGE_DUMP
344  void dump_to(std::string &out) const override;
345 #endif
346 
347  protected:
348  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
349  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
350 };
352  public:
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 };
361  public:
362  void encode(ProtoWriteBuffer buffer) const override;
363 #ifdef HAS_PROTO_MESSAGE_DUMP
364  void dump_to(std::string &out) const override;
365 #endif
366 
367  protected:
368 };
370  public:
371  void encode(ProtoWriteBuffer buffer) const override;
372 #ifdef HAS_PROTO_MESSAGE_DUMP
373  void dump_to(std::string &out) const override;
374 #endif
375 
376  protected:
377 };
379  public:
380  std::string object_id{};
381  uint32_t key{0};
382  std::string name{};
383  std::string unique_id{};
384  std::string device_class{};
385  bool is_status_binary_sensor{false};
386  bool disabled_by_default{false};
387  std::string icon{};
388  enums::EntityCategory entity_category{};
389  void encode(ProtoWriteBuffer buffer) const override;
390 #ifdef HAS_PROTO_MESSAGE_DUMP
391  void dump_to(std::string &out) const override;
392 #endif
393 
394  protected:
395  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
396  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
397  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
398 };
400  public:
401  uint32_t key{0};
402  bool state{false};
403  bool missing_state{false};
404  void encode(ProtoWriteBuffer buffer) const override;
405 #ifdef HAS_PROTO_MESSAGE_DUMP
406  void dump_to(std::string &out) const override;
407 #endif
408 
409  protected:
410  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
411  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
412 };
414  public:
415  std::string object_id{};
416  uint32_t key{0};
417  std::string name{};
418  std::string unique_id{};
419  bool assumed_state{false};
420  bool supports_position{false};
421  bool supports_tilt{false};
422  std::string device_class{};
423  bool disabled_by_default{false};
424  std::string icon{};
425  enums::EntityCategory entity_category{};
426  bool supports_stop{false};
427  void encode(ProtoWriteBuffer buffer) const override;
428 #ifdef HAS_PROTO_MESSAGE_DUMP
429  void dump_to(std::string &out) const override;
430 #endif
431 
432  protected:
433  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
434  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
435  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
436 };
438  public:
439  uint32_t key{0};
440  enums::LegacyCoverState legacy_state{};
441  float position{0.0f};
442  float tilt{0.0f};
443  enums::CoverOperation current_operation{};
444  void encode(ProtoWriteBuffer buffer) const override;
445 #ifdef HAS_PROTO_MESSAGE_DUMP
446  void dump_to(std::string &out) const override;
447 #endif
448 
449  protected:
450  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
451  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
452 };
454  public:
455  uint32_t key{0};
456  bool has_legacy_command{false};
457  enums::LegacyCoverCommand legacy_command{};
458  bool has_position{false};
459  float position{0.0f};
460  bool has_tilt{false};
461  float tilt{0.0f};
462  bool stop{false};
463  void encode(ProtoWriteBuffer buffer) const override;
464 #ifdef HAS_PROTO_MESSAGE_DUMP
465  void dump_to(std::string &out) const override;
466 #endif
467 
468  protected:
469  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
470  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
471 };
473  public:
474  std::string object_id{};
475  uint32_t key{0};
476  std::string name{};
477  std::string unique_id{};
478  bool supports_oscillation{false};
479  bool supports_speed{false};
480  bool supports_direction{false};
481  int32_t supported_speed_count{0};
482  bool disabled_by_default{false};
483  std::string icon{};
484  enums::EntityCategory entity_category{};
485  std::vector<std::string> supported_preset_modes{};
486  void encode(ProtoWriteBuffer buffer) const override;
487 #ifdef HAS_PROTO_MESSAGE_DUMP
488  void dump_to(std::string &out) const override;
489 #endif
490 
491  protected:
492  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
493  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
494  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
495 };
497  public:
498  uint32_t key{0};
499  bool state{false};
500  bool oscillating{false};
503  int32_t speed_level{0};
504  std::string preset_mode{};
505  void encode(ProtoWriteBuffer buffer) const override;
506 #ifdef HAS_PROTO_MESSAGE_DUMP
507  void dump_to(std::string &out) const override;
508 #endif
509 
510  protected:
511  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
512  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
513  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
514 };
516  public:
517  uint32_t key{0};
518  bool has_state{false};
519  bool state{false};
520  bool has_speed{false};
522  bool has_oscillating{false};
523  bool oscillating{false};
524  bool has_direction{false};
526  bool has_speed_level{false};
527  int32_t speed_level{0};
528  bool has_preset_mode{false};
529  std::string preset_mode{};
530  void encode(ProtoWriteBuffer buffer) const override;
531 #ifdef HAS_PROTO_MESSAGE_DUMP
532  void dump_to(std::string &out) const override;
533 #endif
534 
535  protected:
536  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
537  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
538  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
539 };
541  public:
542  std::string object_id{};
543  uint32_t key{0};
544  std::string name{};
545  std::string unique_id{};
546  std::vector<enums::ColorMode> supported_color_modes{};
547  bool legacy_supports_brightness{false};
548  bool legacy_supports_rgb{false};
549  bool legacy_supports_white_value{false};
550  bool legacy_supports_color_temperature{false};
551  float min_mireds{0.0f};
552  float max_mireds{0.0f};
553  std::vector<std::string> effects{};
554  bool disabled_by_default{false};
555  std::string icon{};
556  enums::EntityCategory entity_category{};
557  void encode(ProtoWriteBuffer buffer) const override;
558 #ifdef HAS_PROTO_MESSAGE_DUMP
559  void dump_to(std::string &out) const override;
560 #endif
561 
562  protected:
563  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
564  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
565  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
566 };
568  public:
569  uint32_t key{0};
570  bool state{false};
571  float brightness{0.0f};
572  enums::ColorMode color_mode{};
573  float color_brightness{0.0f};
574  float red{0.0f};
575  float green{0.0f};
576  float blue{0.0f};
577  float white{0.0f};
578  float color_temperature{0.0f};
579  float cold_white{0.0f};
580  float warm_white{0.0f};
581  std::string effect{};
582  void encode(ProtoWriteBuffer buffer) const override;
583 #ifdef HAS_PROTO_MESSAGE_DUMP
584  void dump_to(std::string &out) const override;
585 #endif
586 
587  protected:
588  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
589  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
590  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
591 };
593  public:
594  uint32_t key{0};
595  bool has_state{false};
596  bool state{false};
597  bool has_brightness{false};
598  float brightness{0.0f};
599  bool has_color_mode{false};
600  enums::ColorMode color_mode{};
601  bool has_color_brightness{false};
602  float color_brightness{0.0f};
603  bool has_rgb{false};
604  float red{0.0f};
605  float green{0.0f};
606  float blue{0.0f};
607  bool has_white{false};
608  float white{0.0f};
609  bool has_color_temperature{false};
610  float color_temperature{0.0f};
611  bool has_cold_white{false};
612  float cold_white{0.0f};
613  bool has_warm_white{false};
614  float warm_white{0.0f};
615  bool has_transition_length{false};
616  uint32_t transition_length{0};
617  bool has_flash_length{false};
618  uint32_t flash_length{0};
619  bool has_effect{false};
620  std::string effect{};
621  void encode(ProtoWriteBuffer buffer) const override;
622 #ifdef HAS_PROTO_MESSAGE_DUMP
623  void dump_to(std::string &out) const override;
624 #endif
625 
626  protected:
627  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
628  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
629  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
630 };
632  public:
633  std::string object_id{};
634  uint32_t key{0};
635  std::string name{};
636  std::string unique_id{};
637  std::string icon{};
638  std::string unit_of_measurement{};
639  int32_t accuracy_decimals{0};
640  bool force_update{false};
641  std::string device_class{};
642  enums::SensorStateClass state_class{};
643  enums::SensorLastResetType legacy_last_reset_type{};
644  bool disabled_by_default{false};
645  enums::EntityCategory entity_category{};
646  void encode(ProtoWriteBuffer buffer) const override;
647 #ifdef HAS_PROTO_MESSAGE_DUMP
648  void dump_to(std::string &out) const override;
649 #endif
650 
651  protected:
652  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
653  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
654  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
655 };
657  public:
658  uint32_t key{0};
659  float state{0.0f};
660  bool missing_state{false};
661  void encode(ProtoWriteBuffer buffer) const override;
662 #ifdef HAS_PROTO_MESSAGE_DUMP
663  void dump_to(std::string &out) const override;
664 #endif
665 
666  protected:
667  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
668  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
669 };
671  public:
672  std::string object_id{};
673  uint32_t key{0};
674  std::string name{};
675  std::string unique_id{};
676  std::string icon{};
677  bool assumed_state{false};
678  bool disabled_by_default{false};
679  enums::EntityCategory entity_category{};
680  std::string device_class{};
681  void encode(ProtoWriteBuffer buffer) const override;
682 #ifdef HAS_PROTO_MESSAGE_DUMP
683  void dump_to(std::string &out) const override;
684 #endif
685 
686  protected:
687  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
688  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
689  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
690 };
692  public:
693  uint32_t key{0};
694  bool state{false};
695  void encode(ProtoWriteBuffer buffer) const override;
696 #ifdef HAS_PROTO_MESSAGE_DUMP
697  void dump_to(std::string &out) const override;
698 #endif
699 
700  protected:
701  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
702  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
703 };
705  public:
706  uint32_t key{0};
707  bool state{false};
708  void encode(ProtoWriteBuffer buffer) const override;
709 #ifdef HAS_PROTO_MESSAGE_DUMP
710  void dump_to(std::string &out) const override;
711 #endif
712 
713  protected:
714  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
715  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
716 };
718  public:
719  std::string object_id{};
720  uint32_t key{0};
721  std::string name{};
722  std::string unique_id{};
723  std::string icon{};
724  bool disabled_by_default{false};
725  enums::EntityCategory entity_category{};
726  std::string device_class{};
727  void encode(ProtoWriteBuffer buffer) const override;
728 #ifdef HAS_PROTO_MESSAGE_DUMP
729  void dump_to(std::string &out) const override;
730 #endif
731 
732  protected:
733  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
734  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
735  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
736 };
738  public:
739  uint32_t key{0};
740  std::string state{};
741  bool missing_state{false};
742  void encode(ProtoWriteBuffer buffer) const override;
743 #ifdef HAS_PROTO_MESSAGE_DUMP
744  void dump_to(std::string &out) const override;
745 #endif
746 
747  protected:
748  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
749  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
750  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
751 };
753  public:
755  bool dump_config{false};
756  void encode(ProtoWriteBuffer buffer) const override;
757 #ifdef HAS_PROTO_MESSAGE_DUMP
758  void dump_to(std::string &out) const override;
759 #endif
760 
761  protected:
762  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
763 };
765  public:
767  std::string message{};
768  bool send_failed{false};
769  void encode(ProtoWriteBuffer buffer) const override;
770 #ifdef HAS_PROTO_MESSAGE_DUMP
771  void dump_to(std::string &out) const override;
772 #endif
773 
774  protected:
775  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
776  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
777 };
779  public:
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 };
788  public:
789  std::string key{};
790  std::string value{};
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  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
798 };
800  public:
801  std::string service{};
802  std::vector<HomeassistantServiceMap> data{};
803  std::vector<HomeassistantServiceMap> data_template{};
804  std::vector<HomeassistantServiceMap> variables{};
805  bool is_event{false};
806  void encode(ProtoWriteBuffer buffer) const override;
807 #ifdef HAS_PROTO_MESSAGE_DUMP
808  void dump_to(std::string &out) const override;
809 #endif
810 
811  protected:
812  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
813  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
814 };
816  public:
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 };
825  public:
826  std::string entity_id{};
827  std::string attribute{};
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  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
835 };
837  public:
838  std::string entity_id{};
839  std::string state{};
840  std::string attribute{};
841  void encode(ProtoWriteBuffer buffer) const override;
842 #ifdef HAS_PROTO_MESSAGE_DUMP
843  void dump_to(std::string &out) const override;
844 #endif
845 
846  protected:
847  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
848 };
849 class GetTimeRequest : public ProtoMessage {
850  public:
851  void encode(ProtoWriteBuffer buffer) const override;
852 #ifdef HAS_PROTO_MESSAGE_DUMP
853  void dump_to(std::string &out) const override;
854 #endif
855 
856  protected:
857 };
859  public:
860  uint32_t epoch_seconds{0};
861  void encode(ProtoWriteBuffer buffer) const override;
862 #ifdef HAS_PROTO_MESSAGE_DUMP
863  void dump_to(std::string &out) const override;
864 #endif
865 
866  protected:
867  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
868 };
870  public:
871  std::string name{};
873  void encode(ProtoWriteBuffer buffer) const override;
874 #ifdef HAS_PROTO_MESSAGE_DUMP
875  void dump_to(std::string &out) const override;
876 #endif
877 
878  protected:
879  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
880  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
881 };
883  public:
884  std::string name{};
885  uint32_t key{0};
886  std::vector<ListEntitiesServicesArgument> args{};
887  void encode(ProtoWriteBuffer buffer) const override;
888 #ifdef HAS_PROTO_MESSAGE_DUMP
889  void dump_to(std::string &out) const override;
890 #endif
891 
892  protected:
893  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
894  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
895 };
897  public:
898  bool bool_{false};
899  int32_t legacy_int{0};
900  float float_{0.0f};
901  std::string string_{};
902  int32_t int_{0};
903  std::vector<bool> bool_array{};
904  std::vector<int32_t> int_array{};
905  std::vector<float> float_array{};
906  std::vector<std::string> string_array{};
907  void encode(ProtoWriteBuffer buffer) const override;
908 #ifdef HAS_PROTO_MESSAGE_DUMP
909  void dump_to(std::string &out) const override;
910 #endif
911 
912  protected:
913  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
914  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
915  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
916 };
918  public:
919  uint32_t key{0};
920  std::vector<ExecuteServiceArgument> args{};
921  void encode(ProtoWriteBuffer buffer) const override;
922 #ifdef HAS_PROTO_MESSAGE_DUMP
923  void dump_to(std::string &out) const override;
924 #endif
925 
926  protected:
927  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
928  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
929 };
931  public:
932  std::string object_id{};
933  uint32_t key{0};
934  std::string name{};
935  std::string unique_id{};
936  bool disabled_by_default{false};
937  std::string icon{};
938  enums::EntityCategory entity_category{};
939  void encode(ProtoWriteBuffer buffer) const override;
940 #ifdef HAS_PROTO_MESSAGE_DUMP
941  void dump_to(std::string &out) const override;
942 #endif
943 
944  protected:
945  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
946  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
947  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
948 };
950  public:
951  uint32_t key{0};
952  std::string data{};
953  bool done{false};
954  void encode(ProtoWriteBuffer buffer) const override;
955 #ifdef HAS_PROTO_MESSAGE_DUMP
956  void dump_to(std::string &out) const override;
957 #endif
958 
959  protected:
960  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
961  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
962  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
963 };
965  public:
966  bool single{false};
967  bool stream{false};
968  void encode(ProtoWriteBuffer buffer) const override;
969 #ifdef HAS_PROTO_MESSAGE_DUMP
970  void dump_to(std::string &out) const override;
971 #endif
972 
973  protected:
974  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
975 };
977  public:
978  std::string object_id{};
979  uint32_t key{0};
980  std::string name{};
981  std::string unique_id{};
982  bool supports_current_temperature{false};
983  bool supports_two_point_target_temperature{false};
984  std::vector<enums::ClimateMode> supported_modes{};
985  float visual_min_temperature{0.0f};
986  float visual_max_temperature{0.0f};
987  float visual_target_temperature_step{0.0f};
988  bool legacy_supports_away{false};
989  bool supports_action{false};
990  std::vector<enums::ClimateFanMode> supported_fan_modes{};
991  std::vector<enums::ClimateSwingMode> supported_swing_modes{};
992  std::vector<std::string> supported_custom_fan_modes{};
993  std::vector<enums::ClimatePreset> supported_presets{};
994  std::vector<std::string> supported_custom_presets{};
995  bool disabled_by_default{false};
996  std::string icon{};
997  enums::EntityCategory entity_category{};
998  float visual_current_temperature_step{0.0f};
999  bool supports_current_humidity{false};
1000  bool supports_target_humidity{false};
1001  float visual_min_humidity{0.0f};
1002  float visual_max_humidity{0.0f};
1003  void encode(ProtoWriteBuffer buffer) const override;
1004 #ifdef HAS_PROTO_MESSAGE_DUMP
1005  void dump_to(std::string &out) const override;
1006 #endif
1007 
1008  protected:
1009  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1010  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1011  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1012 };
1014  public:
1015  uint32_t key{0};
1017  float current_temperature{0.0f};
1018  float target_temperature{0.0f};
1021  bool unused_legacy_away{false};
1025  std::string custom_fan_mode{};
1027  std::string custom_preset{};
1028  float current_humidity{0.0f};
1029  float target_humidity{0.0f};
1030  void encode(ProtoWriteBuffer buffer) const override;
1031 #ifdef HAS_PROTO_MESSAGE_DUMP
1032  void dump_to(std::string &out) const override;
1033 #endif
1034 
1035  protected:
1036  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1037  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1038  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1039 };
1041  public:
1042  uint32_t key{0};
1043  bool has_mode{false};
1045  bool has_target_temperature{false};
1046  float target_temperature{0.0f};
1047  bool has_target_temperature_low{false};
1049  bool has_target_temperature_high{false};
1051  bool unused_has_legacy_away{false};
1052  bool unused_legacy_away{false};
1053  bool has_fan_mode{false};
1055  bool has_swing_mode{false};
1057  bool has_custom_fan_mode{false};
1058  std::string custom_fan_mode{};
1059  bool has_preset{false};
1061  bool has_custom_preset{false};
1062  std::string custom_preset{};
1063  bool has_target_humidity{false};
1064  float target_humidity{0.0f};
1065  void encode(ProtoWriteBuffer buffer) const override;
1066 #ifdef HAS_PROTO_MESSAGE_DUMP
1067  void dump_to(std::string &out) const override;
1068 #endif
1069 
1070  protected:
1071  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1072  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1073  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1074 };
1076  public:
1077  std::string object_id{};
1078  uint32_t key{0};
1079  std::string name{};
1080  std::string unique_id{};
1081  std::string icon{};
1082  float min_value{0.0f};
1083  float max_value{0.0f};
1084  float step{0.0f};
1085  bool disabled_by_default{false};
1086  enums::EntityCategory entity_category{};
1087  std::string unit_of_measurement{};
1089  std::string device_class{};
1090  void encode(ProtoWriteBuffer buffer) const override;
1091 #ifdef HAS_PROTO_MESSAGE_DUMP
1092  void dump_to(std::string &out) const override;
1093 #endif
1094 
1095  protected:
1096  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1097  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1098  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1099 };
1101  public:
1102  uint32_t key{0};
1103  float state{0.0f};
1104  bool missing_state{false};
1105  void encode(ProtoWriteBuffer buffer) const override;
1106 #ifdef HAS_PROTO_MESSAGE_DUMP
1107  void dump_to(std::string &out) const override;
1108 #endif
1109 
1110  protected:
1111  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1112  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1113 };
1115  public:
1116  uint32_t key{0};
1117  float state{0.0f};
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 };
1127  public:
1128  std::string object_id{};
1129  uint32_t key{0};
1130  std::string name{};
1131  std::string unique_id{};
1132  std::string icon{};
1133  std::vector<std::string> options{};
1134  bool disabled_by_default{false};
1135  enums::EntityCategory entity_category{};
1136  void encode(ProtoWriteBuffer buffer) const override;
1137 #ifdef HAS_PROTO_MESSAGE_DUMP
1138  void dump_to(std::string &out) const override;
1139 #endif
1140 
1141  protected:
1142  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1143  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1144  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1145 };
1147  public:
1148  uint32_t key{0};
1149  std::string state{};
1150  bool missing_state{false};
1151  void encode(ProtoWriteBuffer buffer) const override;
1152 #ifdef HAS_PROTO_MESSAGE_DUMP
1153  void dump_to(std::string &out) const override;
1154 #endif
1155 
1156  protected:
1157  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1158  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1159  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1160 };
1162  public:
1163  uint32_t key{0};
1164  std::string state{};
1165  void encode(ProtoWriteBuffer buffer) const override;
1166 #ifdef HAS_PROTO_MESSAGE_DUMP
1167  void dump_to(std::string &out) const override;
1168 #endif
1169 
1170  protected:
1171  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1172  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1173 };
1175  public:
1176  std::string object_id{};
1177  uint32_t key{0};
1178  std::string name{};
1179  std::string unique_id{};
1180  std::string icon{};
1181  bool disabled_by_default{false};
1182  enums::EntityCategory entity_category{};
1183  bool assumed_state{false};
1184  bool supports_open{false};
1185  bool requires_code{false};
1186  std::string code_format{};
1187  void encode(ProtoWriteBuffer buffer) const override;
1188 #ifdef HAS_PROTO_MESSAGE_DUMP
1189  void dump_to(std::string &out) const override;
1190 #endif
1191 
1192  protected:
1193  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1194  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1195  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1196 };
1198  public:
1199  uint32_t key{0};
1201  void encode(ProtoWriteBuffer buffer) const override;
1202 #ifdef HAS_PROTO_MESSAGE_DUMP
1203  void dump_to(std::string &out) const override;
1204 #endif
1205 
1206  protected:
1207  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1208  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1209 };
1211  public:
1212  uint32_t key{0};
1214  bool has_code{false};
1215  std::string code{};
1216  void encode(ProtoWriteBuffer buffer) const override;
1217 #ifdef HAS_PROTO_MESSAGE_DUMP
1218  void dump_to(std::string &out) const override;
1219 #endif
1220 
1221  protected:
1222  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1223  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1224  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1225 };
1227  public:
1228  std::string object_id{};
1229  uint32_t key{0};
1230  std::string name{};
1231  std::string unique_id{};
1232  std::string icon{};
1233  bool disabled_by_default{false};
1234  enums::EntityCategory entity_category{};
1235  std::string device_class{};
1236  void encode(ProtoWriteBuffer buffer) const override;
1237 #ifdef HAS_PROTO_MESSAGE_DUMP
1238  void dump_to(std::string &out) const override;
1239 #endif
1240 
1241  protected:
1242  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1243  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1244  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1245 };
1247  public:
1248  uint32_t key{0};
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 };
1258  public:
1259  std::string object_id{};
1260  uint32_t key{0};
1261  std::string name{};
1262  std::string unique_id{};
1263  std::string icon{};
1264  bool disabled_by_default{false};
1265  enums::EntityCategory entity_category{};
1266  bool supports_pause{false};
1267  void encode(ProtoWriteBuffer buffer) const override;
1268 #ifdef HAS_PROTO_MESSAGE_DUMP
1269  void dump_to(std::string &out) const override;
1270 #endif
1271 
1272  protected:
1273  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1274  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1275  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1276 };
1278  public:
1279  uint32_t key{0};
1281  float volume{0.0f};
1282  bool muted{false};
1283  void encode(ProtoWriteBuffer buffer) const override;
1284 #ifdef HAS_PROTO_MESSAGE_DUMP
1285  void dump_to(std::string &out) const override;
1286 #endif
1287 
1288  protected:
1289  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1290  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1291 };
1293  public:
1294  uint32_t key{0};
1295  bool has_command{false};
1297  bool has_volume{false};
1298  float volume{0.0f};
1299  bool has_media_url{false};
1300  std::string media_url{};
1301  bool has_announcement{false};
1302  bool announcement{false};
1303  void encode(ProtoWriteBuffer buffer) const override;
1304 #ifdef HAS_PROTO_MESSAGE_DUMP
1305  void dump_to(std::string &out) const override;
1306 #endif
1307 
1308  protected:
1309  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1310  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1311  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1312 };
1314  public:
1315  uint32_t flags{0};
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_varint(uint32_t field_id, ProtoVarInt value) override;
1323 };
1325  public:
1326  std::string uuid{};
1327  std::vector<uint32_t> legacy_data{};
1328  std::string data{};
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_length(uint32_t field_id, ProtoLengthDelimited value) override;
1336  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1337 };
1339  public:
1340  uint64_t address{0};
1341  std::string name{};
1342  int32_t rssi{0};
1343  std::vector<std::string> service_uuids{};
1344  std::vector<BluetoothServiceData> service_data{};
1345  std::vector<BluetoothServiceData> manufacturer_data{};
1346  uint32_t address_type{0};
1347  void encode(ProtoWriteBuffer buffer) const override;
1348 #ifdef HAS_PROTO_MESSAGE_DUMP
1349  void dump_to(std::string &out) const override;
1350 #endif
1351 
1352  protected:
1353  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1354  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1355 };
1357  public:
1358  uint64_t address{0};
1359  int32_t rssi{0};
1360  uint32_t address_type{0};
1361  std::string data{};
1362  void encode(ProtoWriteBuffer buffer) const override;
1363 #ifdef HAS_PROTO_MESSAGE_DUMP
1364  void dump_to(std::string &out) const override;
1365 #endif
1366 
1367  protected:
1368  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1369  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1370 };
1372  public:
1373  std::vector<BluetoothLERawAdvertisement> advertisements{};
1374  void encode(ProtoWriteBuffer buffer) const override;
1375 #ifdef HAS_PROTO_MESSAGE_DUMP
1376  void dump_to(std::string &out) const override;
1377 #endif
1378 
1379  protected:
1380  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1381 };
1383  public:
1384  uint64_t address{0};
1386  bool has_address_type{false};
1387  uint32_t address_type{0};
1388  void encode(ProtoWriteBuffer buffer) const override;
1389 #ifdef HAS_PROTO_MESSAGE_DUMP
1390  void dump_to(std::string &out) const override;
1391 #endif
1392 
1393  protected:
1394  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1395 };
1397  public:
1398  uint64_t address{0};
1399  bool connected{false};
1400  uint32_t mtu{0};
1401  int32_t error{0};
1402  void encode(ProtoWriteBuffer buffer) const override;
1403 #ifdef HAS_PROTO_MESSAGE_DUMP
1404  void dump_to(std::string &out) const override;
1405 #endif
1406 
1407  protected:
1408  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1409 };
1411  public:
1412  uint64_t address{0};
1413  void encode(ProtoWriteBuffer buffer) const override;
1414 #ifdef HAS_PROTO_MESSAGE_DUMP
1415  void dump_to(std::string &out) const override;
1416 #endif
1417 
1418  protected:
1419  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1420 };
1422  public:
1423  std::vector<uint64_t> uuid{};
1424  uint32_t handle{0};
1425  void encode(ProtoWriteBuffer buffer) const override;
1426 #ifdef HAS_PROTO_MESSAGE_DUMP
1427  void dump_to(std::string &out) const override;
1428 #endif
1429 
1430  protected:
1431  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1432 };
1434  public:
1435  std::vector<uint64_t> uuid{};
1436  uint32_t handle{0};
1437  uint32_t properties{0};
1438  std::vector<BluetoothGATTDescriptor> descriptors{};
1439  void encode(ProtoWriteBuffer buffer) const override;
1440 #ifdef HAS_PROTO_MESSAGE_DUMP
1441  void dump_to(std::string &out) const override;
1442 #endif
1443 
1444  protected:
1445  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1446  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1447 };
1449  public:
1450  std::vector<uint64_t> uuid{};
1451  uint32_t handle{0};
1452  std::vector<BluetoothGATTCharacteristic> characteristics{};
1453  void encode(ProtoWriteBuffer buffer) const override;
1454 #ifdef HAS_PROTO_MESSAGE_DUMP
1455  void dump_to(std::string &out) const override;
1456 #endif
1457 
1458  protected:
1459  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1460  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1461 };
1463  public:
1464  uint64_t address{0};
1465  std::vector<BluetoothGATTService> services{};
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  void encode(ProtoWriteBuffer buffer) const override;
1479 #ifdef HAS_PROTO_MESSAGE_DUMP
1480  void dump_to(std::string &out) const override;
1481 #endif
1482 
1483  protected:
1484  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1485 };
1487  public:
1488  uint64_t address{0};
1489  uint32_t handle{0};
1490  void encode(ProtoWriteBuffer buffer) const override;
1491 #ifdef HAS_PROTO_MESSAGE_DUMP
1492  void dump_to(std::string &out) const override;
1493 #endif
1494 
1495  protected:
1496  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1497 };
1499  public:
1500  uint64_t address{0};
1501  uint32_t handle{0};
1502  std::string data{};
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_length(uint32_t field_id, ProtoLengthDelimited value) override;
1510  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1511 };
1513  public:
1514  uint64_t address{0};
1515  uint32_t handle{0};
1516  bool response{false};
1517  std::string data{};
1518  void encode(ProtoWriteBuffer buffer) const override;
1519 #ifdef HAS_PROTO_MESSAGE_DUMP
1520  void dump_to(std::string &out) const override;
1521 #endif
1522 
1523  protected:
1524  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1525  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1526 };
1528  public:
1529  uint64_t address{0};
1530  uint32_t handle{0};
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_varint(uint32_t field_id, ProtoVarInt value) override;
1538 };
1540  public:
1541  uint64_t address{0};
1542  uint32_t handle{0};
1543  std::string data{};
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_length(uint32_t field_id, ProtoLengthDelimited value) override;
1551  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1552 };
1554  public:
1555  uint64_t address{0};
1556  uint32_t handle{0};
1557  bool enable{false};
1558  void encode(ProtoWriteBuffer buffer) const override;
1559 #ifdef HAS_PROTO_MESSAGE_DUMP
1560  void dump_to(std::string &out) const override;
1561 #endif
1562 
1563  protected:
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  std::string data{};
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_length(uint32_t field_id, ProtoLengthDelimited value) override;
1578  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1579 };
1581  public:
1582  void encode(ProtoWriteBuffer buffer) const override;
1583 #ifdef HAS_PROTO_MESSAGE_DUMP
1584  void dump_to(std::string &out) const override;
1585 #endif
1586 
1587  protected:
1588 };
1590  public:
1591  uint32_t free{0};
1592  uint32_t limit{0};
1593  void encode(ProtoWriteBuffer buffer) const override;
1594 #ifdef HAS_PROTO_MESSAGE_DUMP
1595  void dump_to(std::string &out) const override;
1596 #endif
1597 
1598  protected:
1599  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1600 };
1602  public:
1603  uint64_t address{0};
1604  uint32_t handle{0};
1605  int32_t error{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  void encode(ProtoWriteBuffer buffer) const override;
1619 #ifdef HAS_PROTO_MESSAGE_DUMP
1620  void dump_to(std::string &out) const override;
1621 #endif
1622 
1623  protected:
1624  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1625 };
1627  public:
1628  uint64_t address{0};
1629  uint32_t handle{0};
1630  void encode(ProtoWriteBuffer buffer) const override;
1631 #ifdef HAS_PROTO_MESSAGE_DUMP
1632  void dump_to(std::string &out) const override;
1633 #endif
1634 
1635  protected:
1636  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1637 };
1639  public:
1640  uint64_t address{0};
1641  bool paired{false};
1642  int32_t error{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 success{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  void encode(ProtoWriteBuffer buffer) const override;
1667 #ifdef HAS_PROTO_MESSAGE_DUMP
1668  void dump_to(std::string &out) const override;
1669 #endif
1670 
1671  protected:
1672 };
1674  public:
1675  uint64_t address{0};
1676  bool success{false};
1677  int32_t error{0};
1678  void encode(ProtoWriteBuffer buffer) const override;
1679 #ifdef HAS_PROTO_MESSAGE_DUMP
1680  void dump_to(std::string &out) const override;
1681 #endif
1682 
1683  protected:
1684  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1685 };
1687  public:
1688  bool subscribe{false};
1689  uint32_t flags{0};
1690  void encode(ProtoWriteBuffer buffer) const override;
1691 #ifdef HAS_PROTO_MESSAGE_DUMP
1692  void dump_to(std::string &out) const override;
1693 #endif
1694 
1695  protected:
1696  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1697 };
1699  public:
1700  uint32_t noise_suppression_level{0};
1701  uint32_t auto_gain{0};
1702  float volume_multiplier{0.0f};
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_32bit(uint32_t field_id, Proto32Bit value) override;
1710  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1711 };
1713  public:
1714  bool start{false};
1715  std::string conversation_id{};
1716  uint32_t flags{0};
1718  std::string wake_word_phrase{};
1719  void encode(ProtoWriteBuffer buffer) const override;
1720 #ifdef HAS_PROTO_MESSAGE_DUMP
1721  void dump_to(std::string &out) const override;
1722 #endif
1723 
1724  protected:
1725  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1726  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1727 };
1729  public:
1730  uint32_t port{0};
1731  bool error{false};
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_varint(uint32_t field_id, ProtoVarInt value) override;
1739 };
1741  public:
1742  std::string name{};
1743  std::string value{};
1744  void encode(ProtoWriteBuffer buffer) const override;
1745 #ifdef HAS_PROTO_MESSAGE_DUMP
1746  void dump_to(std::string &out) const override;
1747 #endif
1748 
1749  protected:
1750  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1751 };
1753  public:
1755  std::vector<VoiceAssistantEventData> data{};
1756  void encode(ProtoWriteBuffer buffer) const override;
1757 #ifdef HAS_PROTO_MESSAGE_DUMP
1758  void dump_to(std::string &out) const override;
1759 #endif
1760 
1761  protected:
1762  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1763  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1764 };
1766  public:
1767  std::string data{};
1768  bool end{false};
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 object_id{};
1781  uint32_t key{0};
1782  std::string name{};
1783  std::string unique_id{};
1784  std::string icon{};
1785  bool disabled_by_default{false};
1786  enums::EntityCategory entity_category{};
1787  uint32_t supported_features{0};
1788  bool requires_code{false};
1789  bool requires_code_to_arm{false};
1790  void encode(ProtoWriteBuffer buffer) const override;
1791 #ifdef HAS_PROTO_MESSAGE_DUMP
1792  void dump_to(std::string &out) const override;
1793 #endif
1794 
1795  protected:
1796  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1797  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1798  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1799 };
1801  public:
1802  uint32_t key{0};
1804  void encode(ProtoWriteBuffer buffer) const override;
1805 #ifdef HAS_PROTO_MESSAGE_DUMP
1806  void dump_to(std::string &out) const override;
1807 #endif
1808 
1809  protected:
1810  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1811  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1812 };
1814  public:
1815  uint32_t key{0};
1817  std::string code{};
1818  void encode(ProtoWriteBuffer buffer) const override;
1819 #ifdef HAS_PROTO_MESSAGE_DUMP
1820  void dump_to(std::string &out) const override;
1821 #endif
1822 
1823  protected:
1824  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1825  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1826  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1827 };
1829  public:
1830  std::string object_id{};
1831  uint32_t key{0};
1832  std::string name{};
1833  std::string unique_id{};
1834  std::string icon{};
1835  bool disabled_by_default{false};
1836  enums::EntityCategory entity_category{};
1837  uint32_t min_length{0};
1838  uint32_t max_length{0};
1839  std::string pattern{};
1841  void encode(ProtoWriteBuffer buffer) const override;
1842 #ifdef HAS_PROTO_MESSAGE_DUMP
1843  void dump_to(std::string &out) const override;
1844 #endif
1845 
1846  protected:
1847  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1848  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1849  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1850 };
1852  public:
1853  uint32_t key{0};
1854  std::string state{};
1855  bool missing_state{false};
1856  void encode(ProtoWriteBuffer buffer) const override;
1857 #ifdef HAS_PROTO_MESSAGE_DUMP
1858  void dump_to(std::string &out) const override;
1859 #endif
1860 
1861  protected:
1862  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1863  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1864  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1865 };
1867  public:
1868  uint32_t key{0};
1869  std::string state{};
1870  void encode(ProtoWriteBuffer buffer) const override;
1871 #ifdef HAS_PROTO_MESSAGE_DUMP
1872  void dump_to(std::string &out) const override;
1873 #endif
1874 
1875  protected:
1876  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1877  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1878 };
1880  public:
1881  std::string object_id{};
1882  uint32_t key{0};
1883  std::string name{};
1884  std::string unique_id{};
1885  std::string icon{};
1886  bool disabled_by_default{false};
1887  enums::EntityCategory entity_category{};
1888  void encode(ProtoWriteBuffer buffer) const override;
1889 #ifdef HAS_PROTO_MESSAGE_DUMP
1890  void dump_to(std::string &out) const override;
1891 #endif
1892 
1893  protected:
1894  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1895  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1896  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1897 };
1899  public:
1900  uint32_t key{0};
1901  bool missing_state{false};
1902  uint32_t year{0};
1903  uint32_t month{0};
1904  uint32_t day{0};
1905  void encode(ProtoWriteBuffer buffer) const override;
1906 #ifdef HAS_PROTO_MESSAGE_DUMP
1907  void dump_to(std::string &out) const override;
1908 #endif
1909 
1910  protected:
1911  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1912  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1913 };
1915  public:
1916  uint32_t key{0};
1917  uint32_t year{0};
1918  uint32_t month{0};
1919  uint32_t day{0};
1920  void encode(ProtoWriteBuffer buffer) const override;
1921 #ifdef HAS_PROTO_MESSAGE_DUMP
1922  void dump_to(std::string &out) const override;
1923 #endif
1924 
1925  protected:
1926  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1927  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1928 };
1930  public:
1931  std::string object_id{};
1932  uint32_t key{0};
1933  std::string name{};
1934  std::string unique_id{};
1935  std::string icon{};
1936  bool disabled_by_default{false};
1937  enums::EntityCategory entity_category{};
1938  void encode(ProtoWriteBuffer buffer) const override;
1939 #ifdef HAS_PROTO_MESSAGE_DUMP
1940  void dump_to(std::string &out) const override;
1941 #endif
1942 
1943  protected:
1944  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1945  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1946  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1947 };
1949  public:
1950  uint32_t key{0};
1951  bool missing_state{false};
1952  uint32_t hour{0};
1953  uint32_t minute{0};
1954  uint32_t second{0};
1955  void encode(ProtoWriteBuffer buffer) const override;
1956 #ifdef HAS_PROTO_MESSAGE_DUMP
1957  void dump_to(std::string &out) const override;
1958 #endif
1959 
1960  protected:
1961  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1962  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1963 };
1965  public:
1966  uint32_t key{0};
1967  uint32_t hour{0};
1968  uint32_t minute{0};
1969  uint32_t second{0};
1970  void encode(ProtoWriteBuffer buffer) const override;
1971 #ifdef HAS_PROTO_MESSAGE_DUMP
1972  void dump_to(std::string &out) const override;
1973 #endif
1974 
1975  protected:
1976  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1977  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1978 };
1980  public:
1981  std::string object_id{};
1982  uint32_t key{0};
1983  std::string name{};
1984  std::string unique_id{};
1985  std::string icon{};
1986  bool disabled_by_default{false};
1987  enums::EntityCategory entity_category{};
1988  std::string device_class{};
1989  std::vector<std::string> event_types{};
1990  void encode(ProtoWriteBuffer buffer) const override;
1991 #ifdef HAS_PROTO_MESSAGE_DUMP
1992  void dump_to(std::string &out) const override;
1993 #endif
1994 
1995  protected:
1996  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1997  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1998  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1999 };
2000 class EventResponse : public ProtoMessage {
2001  public:
2002  uint32_t key{0};
2003  std::string event_type{};
2004  void encode(ProtoWriteBuffer buffer) const override;
2005 #ifdef HAS_PROTO_MESSAGE_DUMP
2006  void dump_to(std::string &out) const override;
2007 #endif
2008 
2009  protected:
2010  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2011  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2012 };
2014  public:
2015  std::string object_id{};
2016  uint32_t key{0};
2017  std::string name{};
2018  std::string unique_id{};
2019  std::string icon{};
2020  bool disabled_by_default{false};
2021  enums::EntityCategory entity_category{};
2022  std::string device_class{};
2023  bool assumed_state{false};
2024  bool supports_position{false};
2025  bool supports_stop{false};
2026  void encode(ProtoWriteBuffer buffer) const override;
2027 #ifdef HAS_PROTO_MESSAGE_DUMP
2028  void dump_to(std::string &out) const override;
2029 #endif
2030 
2031  protected:
2032  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2033  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2034  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2035 };
2037  public:
2038  uint32_t key{0};
2039  float position{0.0f};
2040  enums::ValveOperation current_operation{};
2041  void encode(ProtoWriteBuffer buffer) const override;
2042 #ifdef HAS_PROTO_MESSAGE_DUMP
2043  void dump_to(std::string &out) const override;
2044 #endif
2045 
2046  protected:
2047  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2048  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2049 };
2051  public:
2052  uint32_t key{0};
2053  bool has_position{false};
2054  float position{0.0f};
2055  bool 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_varint(uint32_t field_id, ProtoVarInt value) override;
2064 };
2066  public:
2067  std::string object_id{};
2068  uint32_t key{0};
2069  std::string name{};
2070  std::string unique_id{};
2071  std::string icon{};
2072  bool disabled_by_default{false};
2073  enums::EntityCategory entity_category{};
2074  void encode(ProtoWriteBuffer buffer) const override;
2075 #ifdef HAS_PROTO_MESSAGE_DUMP
2076  void dump_to(std::string &out) const override;
2077 #endif
2078 
2079  protected:
2080  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2081  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
2082  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2083 };
2085  public:
2086  uint32_t key{0};
2087  bool missing_state{false};
2088  uint32_t epoch_seconds{0};
2089  void encode(ProtoWriteBuffer buffer) const override;
2090 #ifdef HAS_PROTO_MESSAGE_DUMP
2091  void dump_to(std::string &out) const override;
2092 #endif
2093 
2094  protected:
2095  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2096  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
2097 };
2099  public:
2100  uint32_t key{0};
2101  uint32_t epoch_seconds{0};
2102  void encode(ProtoWriteBuffer buffer) const override;
2103 #ifdef HAS_PROTO_MESSAGE_DUMP
2104  void dump_to(std::string &out) const override;
2105 #endif
2106 
2107  protected:
2108  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
2109 };
2110 
2111 } // namespace api
2112 } // namespace esphome
float target_temperature_low
Definition: climate.h:585
const char * name
Definition: stm32flash.h:78
uint16_t year
Definition: date_entity.h:111
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:586
float target_humidity
Definition: climate.h:589
uint8_t minute
ClimateSwingMode swing_mode
Definition: climate.h:581
uint8_t day
Definition: date_entity.h:113
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:151
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
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:112
ClimatePreset preset
Definition: climate.h:578
bool state
Definition: fan.h:34