ESPHome  2023.11.6
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 };
168 enum VoiceAssistantRequestFlag : uint32_t {
172 };
173 enum VoiceAssistantEvent : uint32_t {
189 };
190 enum AlarmControlPanelState : uint32_t {
201 };
210 };
211 enum TextMode : uint32_t {
214 };
215 
216 } // namespace enums
217 
218 class HelloRequest : public ProtoMessage {
219  public:
220  std::string client_info{};
221  uint32_t api_version_major{0};
222  uint32_t api_version_minor{0};
223  void encode(ProtoWriteBuffer buffer) const override;
224 #ifdef HAS_PROTO_MESSAGE_DUMP
225  void dump_to(std::string &out) const override;
226 #endif
227 
228  protected:
229  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
230  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
231 };
232 class HelloResponse : public ProtoMessage {
233  public:
234  uint32_t api_version_major{0};
235  uint32_t api_version_minor{0};
236  std::string server_info{};
237  std::string name{};
238  void encode(ProtoWriteBuffer buffer) const override;
239 #ifdef HAS_PROTO_MESSAGE_DUMP
240  void dump_to(std::string &out) const override;
241 #endif
242 
243  protected:
244  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
245  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
246 };
247 class ConnectRequest : public ProtoMessage {
248  public:
249  std::string password{};
250  void encode(ProtoWriteBuffer buffer) const override;
251 #ifdef HAS_PROTO_MESSAGE_DUMP
252  void dump_to(std::string &out) const override;
253 #endif
254 
255  protected:
256  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
257 };
259  public:
260  bool invalid_password{false};
261  void encode(ProtoWriteBuffer buffer) const override;
262 #ifdef HAS_PROTO_MESSAGE_DUMP
263  void dump_to(std::string &out) const override;
264 #endif
265 
266  protected:
267  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
268 };
270  public:
271  void encode(ProtoWriteBuffer buffer) const override;
272 #ifdef HAS_PROTO_MESSAGE_DUMP
273  void dump_to(std::string &out) const override;
274 #endif
275 
276  protected:
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 };
287 class PingRequest : public ProtoMessage {
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 PingResponse : 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 };
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  bool uses_password{false};
317  std::string name{};
318  std::string mac_address{};
319  std::string esphome_version{};
320  std::string compilation_time{};
321  std::string model{};
322  bool has_deep_sleep{false};
323  std::string project_name{};
324  std::string project_version{};
325  uint32_t webserver_port{0};
326  uint32_t legacy_bluetooth_proxy_version{0};
327  uint32_t bluetooth_proxy_feature_flags{0};
328  std::string manufacturer{};
329  std::string friendly_name{};
330  uint32_t voice_assistant_version{0};
331  std::string suggested_area{};
332  void encode(ProtoWriteBuffer buffer) const override;
333 #ifdef HAS_PROTO_MESSAGE_DUMP
334  void dump_to(std::string &out) const override;
335 #endif
336 
337  protected:
338  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
339  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
340 };
342  public:
343  void encode(ProtoWriteBuffer buffer) const override;
344 #ifdef HAS_PROTO_MESSAGE_DUMP
345  void dump_to(std::string &out) const override;
346 #endif
347 
348  protected:
349 };
351  public:
352  void encode(ProtoWriteBuffer buffer) const override;
353 #ifdef HAS_PROTO_MESSAGE_DUMP
354  void dump_to(std::string &out) const override;
355 #endif
356 
357  protected:
358 };
360  public:
361  void encode(ProtoWriteBuffer buffer) const override;
362 #ifdef HAS_PROTO_MESSAGE_DUMP
363  void dump_to(std::string &out) const override;
364 #endif
365 
366  protected:
367 };
369  public:
370  std::string object_id{};
371  uint32_t key{0};
372  std::string name{};
373  std::string unique_id{};
374  std::string device_class{};
375  bool is_status_binary_sensor{false};
376  bool disabled_by_default{false};
377  std::string icon{};
378  enums::EntityCategory entity_category{};
379  void encode(ProtoWriteBuffer buffer) const override;
380 #ifdef HAS_PROTO_MESSAGE_DUMP
381  void dump_to(std::string &out) const override;
382 #endif
383 
384  protected:
385  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
386  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
387  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
388 };
390  public:
391  uint32_t key{0};
392  bool state{false};
393  bool missing_state{false};
394  void encode(ProtoWriteBuffer buffer) const override;
395 #ifdef HAS_PROTO_MESSAGE_DUMP
396  void dump_to(std::string &out) const override;
397 #endif
398 
399  protected:
400  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
401  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
402 };
404  public:
405  std::string object_id{};
406  uint32_t key{0};
407  std::string name{};
408  std::string unique_id{};
409  bool assumed_state{false};
410  bool supports_position{false};
411  bool supports_tilt{false};
412  std::string device_class{};
413  bool disabled_by_default{false};
414  std::string icon{};
415  enums::EntityCategory entity_category{};
416  bool supports_stop{false};
417  void encode(ProtoWriteBuffer buffer) const override;
418 #ifdef HAS_PROTO_MESSAGE_DUMP
419  void dump_to(std::string &out) const override;
420 #endif
421 
422  protected:
423  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
424  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
425  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
426 };
428  public:
429  uint32_t key{0};
430  enums::LegacyCoverState legacy_state{};
431  float position{0.0f};
432  float tilt{0.0f};
433  enums::CoverOperation current_operation{};
434  void encode(ProtoWriteBuffer buffer) const override;
435 #ifdef HAS_PROTO_MESSAGE_DUMP
436  void dump_to(std::string &out) const override;
437 #endif
438 
439  protected:
440  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
441  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
442 };
444  public:
445  uint32_t key{0};
446  bool has_legacy_command{false};
447  enums::LegacyCoverCommand legacy_command{};
448  bool has_position{false};
449  float position{0.0f};
450  bool has_tilt{false};
451  float tilt{0.0f};
452  bool stop{false};
453  void encode(ProtoWriteBuffer buffer) const override;
454 #ifdef HAS_PROTO_MESSAGE_DUMP
455  void dump_to(std::string &out) const override;
456 #endif
457 
458  protected:
459  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
460  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
461 };
463  public:
464  std::string object_id{};
465  uint32_t key{0};
466  std::string name{};
467  std::string unique_id{};
468  bool supports_oscillation{false};
469  bool supports_speed{false};
470  bool supports_direction{false};
471  int32_t supported_speed_count{0};
472  bool disabled_by_default{false};
473  std::string icon{};
474  enums::EntityCategory entity_category{};
475  void encode(ProtoWriteBuffer buffer) const override;
476 #ifdef HAS_PROTO_MESSAGE_DUMP
477  void dump_to(std::string &out) const override;
478 #endif
479 
480  protected:
481  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
482  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
483  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
484 };
486  public:
487  uint32_t key{0};
488  bool state{false};
489  bool oscillating{false};
492  int32_t speed_level{0};
493  void encode(ProtoWriteBuffer buffer) const override;
494 #ifdef HAS_PROTO_MESSAGE_DUMP
495  void dump_to(std::string &out) const override;
496 #endif
497 
498  protected:
499  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
500  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
501 };
503  public:
504  uint32_t key{0};
505  bool has_state{false};
506  bool state{false};
507  bool has_speed{false};
509  bool has_oscillating{false};
510  bool oscillating{false};
511  bool has_direction{false};
513  bool has_speed_level{false};
514  int32_t speed_level{0};
515  void encode(ProtoWriteBuffer buffer) const override;
516 #ifdef HAS_PROTO_MESSAGE_DUMP
517  void dump_to(std::string &out) const override;
518 #endif
519 
520  protected:
521  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
522  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
523 };
525  public:
526  std::string object_id{};
527  uint32_t key{0};
528  std::string name{};
529  std::string unique_id{};
530  std::vector<enums::ColorMode> supported_color_modes{};
531  bool legacy_supports_brightness{false};
532  bool legacy_supports_rgb{false};
533  bool legacy_supports_white_value{false};
534  bool legacy_supports_color_temperature{false};
535  float min_mireds{0.0f};
536  float max_mireds{0.0f};
537  std::vector<std::string> effects{};
538  bool disabled_by_default{false};
539  std::string icon{};
540  enums::EntityCategory entity_category{};
541  void encode(ProtoWriteBuffer buffer) const override;
542 #ifdef HAS_PROTO_MESSAGE_DUMP
543  void dump_to(std::string &out) const override;
544 #endif
545 
546  protected:
547  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
548  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
549  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
550 };
552  public:
553  uint32_t key{0};
554  bool state{false};
555  float brightness{0.0f};
556  enums::ColorMode color_mode{};
557  float color_brightness{0.0f};
558  float red{0.0f};
559  float green{0.0f};
560  float blue{0.0f};
561  float white{0.0f};
562  float color_temperature{0.0f};
563  float cold_white{0.0f};
564  float warm_white{0.0f};
565  std::string effect{};
566  void encode(ProtoWriteBuffer buffer) const override;
567 #ifdef HAS_PROTO_MESSAGE_DUMP
568  void dump_to(std::string &out) const override;
569 #endif
570 
571  protected:
572  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
573  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
574  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
575 };
577  public:
578  uint32_t key{0};
579  bool has_state{false};
580  bool state{false};
581  bool has_brightness{false};
582  float brightness{0.0f};
583  bool has_color_mode{false};
584  enums::ColorMode color_mode{};
585  bool has_color_brightness{false};
586  float color_brightness{0.0f};
587  bool has_rgb{false};
588  float red{0.0f};
589  float green{0.0f};
590  float blue{0.0f};
591  bool has_white{false};
592  float white{0.0f};
593  bool has_color_temperature{false};
594  float color_temperature{0.0f};
595  bool has_cold_white{false};
596  float cold_white{0.0f};
597  bool has_warm_white{false};
598  float warm_white{0.0f};
599  bool has_transition_length{false};
600  uint32_t transition_length{0};
601  bool has_flash_length{false};
602  uint32_t flash_length{0};
603  bool has_effect{false};
604  std::string effect{};
605  void encode(ProtoWriteBuffer buffer) const override;
606 #ifdef HAS_PROTO_MESSAGE_DUMP
607  void dump_to(std::string &out) const override;
608 #endif
609 
610  protected:
611  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
612  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
613  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
614 };
616  public:
617  std::string object_id{};
618  uint32_t key{0};
619  std::string name{};
620  std::string unique_id{};
621  std::string icon{};
622  std::string unit_of_measurement{};
623  int32_t accuracy_decimals{0};
624  bool force_update{false};
625  std::string device_class{};
626  enums::SensorStateClass state_class{};
627  enums::SensorLastResetType legacy_last_reset_type{};
628  bool disabled_by_default{false};
629  enums::EntityCategory entity_category{};
630  void encode(ProtoWriteBuffer buffer) const override;
631 #ifdef HAS_PROTO_MESSAGE_DUMP
632  void dump_to(std::string &out) const override;
633 #endif
634 
635  protected:
636  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
637  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
638  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
639 };
641  public:
642  uint32_t key{0};
643  float state{0.0f};
644  bool missing_state{false};
645  void encode(ProtoWriteBuffer buffer) const override;
646 #ifdef HAS_PROTO_MESSAGE_DUMP
647  void dump_to(std::string &out) const override;
648 #endif
649 
650  protected:
651  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
652  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
653 };
655  public:
656  std::string object_id{};
657  uint32_t key{0};
658  std::string name{};
659  std::string unique_id{};
660  std::string icon{};
661  bool assumed_state{false};
662  bool disabled_by_default{false};
663  enums::EntityCategory entity_category{};
664  std::string device_class{};
665  void encode(ProtoWriteBuffer buffer) const override;
666 #ifdef HAS_PROTO_MESSAGE_DUMP
667  void dump_to(std::string &out) const override;
668 #endif
669 
670  protected:
671  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
672  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
673  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
674 };
676  public:
677  uint32_t key{0};
678  bool state{false};
679  void encode(ProtoWriteBuffer buffer) const override;
680 #ifdef HAS_PROTO_MESSAGE_DUMP
681  void dump_to(std::string &out) const override;
682 #endif
683 
684  protected:
685  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
686  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
687 };
689  public:
690  uint32_t key{0};
691  bool state{false};
692  void encode(ProtoWriteBuffer buffer) const override;
693 #ifdef HAS_PROTO_MESSAGE_DUMP
694  void dump_to(std::string &out) const override;
695 #endif
696 
697  protected:
698  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
699  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
700 };
702  public:
703  std::string object_id{};
704  uint32_t key{0};
705  std::string name{};
706  std::string unique_id{};
707  std::string icon{};
708  bool disabled_by_default{false};
709  enums::EntityCategory entity_category{};
710  void encode(ProtoWriteBuffer buffer) const override;
711 #ifdef HAS_PROTO_MESSAGE_DUMP
712  void dump_to(std::string &out) const override;
713 #endif
714 
715  protected:
716  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
717  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
718  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
719 };
721  public:
722  uint32_t key{0};
723  std::string state{};
724  bool missing_state{false};
725  void encode(ProtoWriteBuffer buffer) const override;
726 #ifdef HAS_PROTO_MESSAGE_DUMP
727  void dump_to(std::string &out) const override;
728 #endif
729 
730  protected:
731  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
732  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
733  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
734 };
736  public:
738  bool dump_config{false};
739  void encode(ProtoWriteBuffer buffer) const override;
740 #ifdef HAS_PROTO_MESSAGE_DUMP
741  void dump_to(std::string &out) const override;
742 #endif
743 
744  protected:
745  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
746 };
748  public:
750  std::string message{};
751  bool send_failed{false};
752  void encode(ProtoWriteBuffer buffer) const override;
753 #ifdef HAS_PROTO_MESSAGE_DUMP
754  void dump_to(std::string &out) const override;
755 #endif
756 
757  protected:
758  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
759  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
760 };
762  public:
763  void encode(ProtoWriteBuffer buffer) const override;
764 #ifdef HAS_PROTO_MESSAGE_DUMP
765  void dump_to(std::string &out) const override;
766 #endif
767 
768  protected:
769 };
771  public:
772  std::string key{};
773  std::string value{};
774  void encode(ProtoWriteBuffer buffer) const override;
775 #ifdef HAS_PROTO_MESSAGE_DUMP
776  void dump_to(std::string &out) const override;
777 #endif
778 
779  protected:
780  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
781 };
783  public:
784  std::string service{};
785  std::vector<HomeassistantServiceMap> data{};
786  std::vector<HomeassistantServiceMap> data_template{};
787  std::vector<HomeassistantServiceMap> variables{};
788  bool is_event{false};
789  void encode(ProtoWriteBuffer buffer) const override;
790 #ifdef HAS_PROTO_MESSAGE_DUMP
791  void dump_to(std::string &out) const override;
792 #endif
793 
794  protected:
795  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
796  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
797 };
799  public:
800  void encode(ProtoWriteBuffer buffer) const override;
801 #ifdef HAS_PROTO_MESSAGE_DUMP
802  void dump_to(std::string &out) const override;
803 #endif
804 
805  protected:
806 };
808  public:
809  std::string entity_id{};
810  std::string attribute{};
811  void encode(ProtoWriteBuffer buffer) const override;
812 #ifdef HAS_PROTO_MESSAGE_DUMP
813  void dump_to(std::string &out) const override;
814 #endif
815 
816  protected:
817  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
818 };
820  public:
821  std::string entity_id{};
822  std::string state{};
823  std::string attribute{};
824  void encode(ProtoWriteBuffer buffer) const override;
825 #ifdef HAS_PROTO_MESSAGE_DUMP
826  void dump_to(std::string &out) const override;
827 #endif
828 
829  protected:
830  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
831 };
832 class GetTimeRequest : public ProtoMessage {
833  public:
834  void encode(ProtoWriteBuffer buffer) const override;
835 #ifdef HAS_PROTO_MESSAGE_DUMP
836  void dump_to(std::string &out) const override;
837 #endif
838 
839  protected:
840 };
842  public:
843  uint32_t epoch_seconds{0};
844  void encode(ProtoWriteBuffer buffer) const override;
845 #ifdef HAS_PROTO_MESSAGE_DUMP
846  void dump_to(std::string &out) const override;
847 #endif
848 
849  protected:
850  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
851 };
853  public:
854  std::string name{};
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_length(uint32_t field_id, ProtoLengthDelimited value) override;
863  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
864 };
866  public:
867  std::string name{};
868  uint32_t key{0};
869  std::vector<ListEntitiesServicesArgument> args{};
870  void encode(ProtoWriteBuffer buffer) const override;
871 #ifdef HAS_PROTO_MESSAGE_DUMP
872  void dump_to(std::string &out) const override;
873 #endif
874 
875  protected:
876  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
877  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
878 };
880  public:
881  bool bool_{false};
882  int32_t legacy_int{0};
883  float float_{0.0f};
884  std::string string_{};
885  int32_t int_{0};
886  std::vector<bool> bool_array{};
887  std::vector<int32_t> int_array{};
888  std::vector<float> float_array{};
889  std::vector<std::string> string_array{};
890  void encode(ProtoWriteBuffer buffer) const override;
891 #ifdef HAS_PROTO_MESSAGE_DUMP
892  void dump_to(std::string &out) const override;
893 #endif
894 
895  protected:
896  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
897  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
898  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
899 };
901  public:
902  uint32_t key{0};
903  std::vector<ExecuteServiceArgument> args{};
904  void encode(ProtoWriteBuffer buffer) const override;
905 #ifdef HAS_PROTO_MESSAGE_DUMP
906  void dump_to(std::string &out) const override;
907 #endif
908 
909  protected:
910  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
911  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
912 };
914  public:
915  std::string object_id{};
916  uint32_t key{0};
917  std::string name{};
918  std::string unique_id{};
919  bool disabled_by_default{false};
920  std::string icon{};
921  enums::EntityCategory entity_category{};
922  void encode(ProtoWriteBuffer buffer) const override;
923 #ifdef HAS_PROTO_MESSAGE_DUMP
924  void dump_to(std::string &out) const override;
925 #endif
926 
927  protected:
928  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
929  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
930  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
931 };
933  public:
934  uint32_t key{0};
935  std::string data{};
936  bool done{false};
937  void encode(ProtoWriteBuffer buffer) const override;
938 #ifdef HAS_PROTO_MESSAGE_DUMP
939  void dump_to(std::string &out) const override;
940 #endif
941 
942  protected:
943  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
944  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
945  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
946 };
948  public:
949  bool single{false};
950  bool stream{false};
951  void encode(ProtoWriteBuffer buffer) const override;
952 #ifdef HAS_PROTO_MESSAGE_DUMP
953  void dump_to(std::string &out) const override;
954 #endif
955 
956  protected:
957  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
958 };
960  public:
961  std::string object_id{};
962  uint32_t key{0};
963  std::string name{};
964  std::string unique_id{};
965  bool supports_current_temperature{false};
966  bool supports_two_point_target_temperature{false};
967  std::vector<enums::ClimateMode> supported_modes{};
968  float visual_min_temperature{0.0f};
969  float visual_max_temperature{0.0f};
970  float visual_target_temperature_step{0.0f};
971  bool legacy_supports_away{false};
972  bool supports_action{false};
973  std::vector<enums::ClimateFanMode> supported_fan_modes{};
974  std::vector<enums::ClimateSwingMode> supported_swing_modes{};
975  std::vector<std::string> supported_custom_fan_modes{};
976  std::vector<enums::ClimatePreset> supported_presets{};
977  std::vector<std::string> supported_custom_presets{};
978  bool disabled_by_default{false};
979  std::string icon{};
980  enums::EntityCategory entity_category{};
981  float visual_current_temperature_step{0.0f};
982  void encode(ProtoWriteBuffer buffer) const override;
983 #ifdef HAS_PROTO_MESSAGE_DUMP
984  void dump_to(std::string &out) const override;
985 #endif
986 
987  protected:
988  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
989  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
990  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
991 };
993  public:
994  uint32_t key{0};
996  float current_temperature{0.0f};
997  float target_temperature{0.0f};
1000  bool unused_legacy_away{false};
1004  std::string custom_fan_mode{};
1006  std::string custom_preset{};
1007  void encode(ProtoWriteBuffer buffer) const override;
1008 #ifdef HAS_PROTO_MESSAGE_DUMP
1009  void dump_to(std::string &out) const override;
1010 #endif
1011 
1012  protected:
1013  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1014  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1015  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1016 };
1018  public:
1019  uint32_t key{0};
1020  bool has_mode{false};
1022  bool has_target_temperature{false};
1023  float target_temperature{0.0f};
1024  bool has_target_temperature_low{false};
1026  bool has_target_temperature_high{false};
1028  bool unused_has_legacy_away{false};
1029  bool unused_legacy_away{false};
1030  bool has_fan_mode{false};
1032  bool has_swing_mode{false};
1034  bool has_custom_fan_mode{false};
1035  std::string custom_fan_mode{};
1036  bool has_preset{false};
1038  bool has_custom_preset{false};
1039  std::string custom_preset{};
1040  void encode(ProtoWriteBuffer buffer) const override;
1041 #ifdef HAS_PROTO_MESSAGE_DUMP
1042  void dump_to(std::string &out) const override;
1043 #endif
1044 
1045  protected:
1046  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1047  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1048  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1049 };
1051  public:
1052  std::string object_id{};
1053  uint32_t key{0};
1054  std::string name{};
1055  std::string unique_id{};
1056  std::string icon{};
1057  float min_value{0.0f};
1058  float max_value{0.0f};
1059  float step{0.0f};
1060  bool disabled_by_default{false};
1061  enums::EntityCategory entity_category{};
1062  std::string unit_of_measurement{};
1064  std::string device_class{};
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  uint32_t key{0};
1078  float state{0.0f};
1079  bool missing_state{false};
1080  void encode(ProtoWriteBuffer buffer) const override;
1081 #ifdef HAS_PROTO_MESSAGE_DUMP
1082  void dump_to(std::string &out) const override;
1083 #endif
1084 
1085  protected:
1086  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1087  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1088 };
1090  public:
1091  uint32_t key{0};
1092  float state{0.0f};
1093  void encode(ProtoWriteBuffer buffer) const override;
1094 #ifdef HAS_PROTO_MESSAGE_DUMP
1095  void dump_to(std::string &out) const override;
1096 #endif
1097 
1098  protected:
1099  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1100 };
1102  public:
1103  std::string object_id{};
1104  uint32_t key{0};
1105  std::string name{};
1106  std::string unique_id{};
1107  std::string icon{};
1108  std::vector<std::string> options{};
1109  bool disabled_by_default{false};
1110  enums::EntityCategory entity_category{};
1111  void encode(ProtoWriteBuffer buffer) const override;
1112 #ifdef HAS_PROTO_MESSAGE_DUMP
1113  void dump_to(std::string &out) const override;
1114 #endif
1115 
1116  protected:
1117  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1118  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1119  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1120 };
1122  public:
1123  uint32_t key{0};
1124  std::string state{};
1125  bool missing_state{false};
1126  void encode(ProtoWriteBuffer buffer) const override;
1127 #ifdef HAS_PROTO_MESSAGE_DUMP
1128  void dump_to(std::string &out) const override;
1129 #endif
1130 
1131  protected:
1132  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1133  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1134  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1135 };
1137  public:
1138  uint32_t key{0};
1139  std::string state{};
1140  void encode(ProtoWriteBuffer buffer) const override;
1141 #ifdef HAS_PROTO_MESSAGE_DUMP
1142  void dump_to(std::string &out) const override;
1143 #endif
1144 
1145  protected:
1146  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1147  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1148 };
1150  public:
1151  std::string object_id{};
1152  uint32_t key{0};
1153  std::string name{};
1154  std::string unique_id{};
1155  std::string icon{};
1156  bool disabled_by_default{false};
1157  enums::EntityCategory entity_category{};
1158  bool assumed_state{false};
1159  bool supports_open{false};
1160  bool requires_code{false};
1161  std::string code_format{};
1162  void encode(ProtoWriteBuffer buffer) const override;
1163 #ifdef HAS_PROTO_MESSAGE_DUMP
1164  void dump_to(std::string &out) const override;
1165 #endif
1166 
1167  protected:
1168  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1169  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1170  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1171 };
1173  public:
1174  uint32_t key{0};
1176  void encode(ProtoWriteBuffer buffer) const override;
1177 #ifdef HAS_PROTO_MESSAGE_DUMP
1178  void dump_to(std::string &out) const override;
1179 #endif
1180 
1181  protected:
1182  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1183  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1184 };
1186  public:
1187  uint32_t key{0};
1189  bool has_code{false};
1190  std::string code{};
1191  void encode(ProtoWriteBuffer buffer) const override;
1192 #ifdef HAS_PROTO_MESSAGE_DUMP
1193  void dump_to(std::string &out) const override;
1194 #endif
1195 
1196  protected:
1197  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1198  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1199  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1200 };
1202  public:
1203  std::string object_id{};
1204  uint32_t key{0};
1205  std::string name{};
1206  std::string unique_id{};
1207  std::string icon{};
1208  bool disabled_by_default{false};
1209  enums::EntityCategory entity_category{};
1210  std::string device_class{};
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  uint32_t key{0};
1224  void encode(ProtoWriteBuffer buffer) const override;
1225 #ifdef HAS_PROTO_MESSAGE_DUMP
1226  void dump_to(std::string &out) const override;
1227 #endif
1228 
1229  protected:
1230  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1231 };
1233  public:
1234  std::string object_id{};
1235  uint32_t key{0};
1236  std::string name{};
1237  std::string unique_id{};
1238  std::string icon{};
1239  bool disabled_by_default{false};
1240  enums::EntityCategory entity_category{};
1241  bool supports_pause{false};
1242  void encode(ProtoWriteBuffer buffer) const override;
1243 #ifdef HAS_PROTO_MESSAGE_DUMP
1244  void dump_to(std::string &out) const override;
1245 #endif
1246 
1247  protected:
1248  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1249  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1250  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1251 };
1253  public:
1254  uint32_t key{0};
1256  float volume{0.0f};
1257  bool muted{false};
1258  void encode(ProtoWriteBuffer buffer) const override;
1259 #ifdef HAS_PROTO_MESSAGE_DUMP
1260  void dump_to(std::string &out) const override;
1261 #endif
1262 
1263  protected:
1264  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1265  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1266 };
1268  public:
1269  uint32_t key{0};
1270  bool has_command{false};
1272  bool has_volume{false};
1273  float volume{0.0f};
1274  bool has_media_url{false};
1275  std::string media_url{};
1276  void encode(ProtoWriteBuffer buffer) const override;
1277 #ifdef HAS_PROTO_MESSAGE_DUMP
1278  void dump_to(std::string &out) const override;
1279 #endif
1280 
1281  protected:
1282  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1283  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1284  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1285 };
1287  public:
1288  uint32_t flags{0};
1289  void encode(ProtoWriteBuffer buffer) const override;
1290 #ifdef HAS_PROTO_MESSAGE_DUMP
1291  void dump_to(std::string &out) const override;
1292 #endif
1293 
1294  protected:
1295  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1296 };
1298  public:
1299  std::string uuid{};
1300  std::vector<uint32_t> legacy_data{};
1301  std::string data{};
1302  void encode(ProtoWriteBuffer buffer) const override;
1303 #ifdef HAS_PROTO_MESSAGE_DUMP
1304  void dump_to(std::string &out) const override;
1305 #endif
1306 
1307  protected:
1308  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1309  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1310 };
1312  public:
1313  uint64_t address{0};
1314  std::string name{};
1315  int32_t rssi{0};
1316  std::vector<std::string> service_uuids{};
1317  std::vector<BluetoothServiceData> service_data{};
1318  std::vector<BluetoothServiceData> manufacturer_data{};
1319  uint32_t address_type{0};
1320  void encode(ProtoWriteBuffer buffer) const override;
1321 #ifdef HAS_PROTO_MESSAGE_DUMP
1322  void dump_to(std::string &out) const override;
1323 #endif
1324 
1325  protected:
1326  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1327  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1328 };
1330  public:
1331  uint64_t address{0};
1332  int32_t rssi{0};
1333  uint32_t address_type{0};
1334  std::string data{};
1335  void encode(ProtoWriteBuffer buffer) const override;
1336 #ifdef HAS_PROTO_MESSAGE_DUMP
1337  void dump_to(std::string &out) const override;
1338 #endif
1339 
1340  protected:
1341  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1342  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1343 };
1345  public:
1346  std::vector<BluetoothLERawAdvertisement> advertisements{};
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 };
1356  public:
1357  uint64_t address{0};
1359  bool has_address_type{false};
1360  uint32_t address_type{0};
1361  void encode(ProtoWriteBuffer buffer) const override;
1362 #ifdef HAS_PROTO_MESSAGE_DUMP
1363  void dump_to(std::string &out) const override;
1364 #endif
1365 
1366  protected:
1367  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1368 };
1370  public:
1371  uint64_t address{0};
1372  bool connected{false};
1373  uint32_t mtu{0};
1374  int32_t error{0};
1375  void encode(ProtoWriteBuffer buffer) const override;
1376 #ifdef HAS_PROTO_MESSAGE_DUMP
1377  void dump_to(std::string &out) const override;
1378 #endif
1379 
1380  protected:
1381  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1382 };
1384  public:
1385  uint64_t address{0};
1386  void encode(ProtoWriteBuffer buffer) const override;
1387 #ifdef HAS_PROTO_MESSAGE_DUMP
1388  void dump_to(std::string &out) const override;
1389 #endif
1390 
1391  protected:
1392  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1393 };
1395  public:
1396  std::vector<uint64_t> uuid{};
1397  uint32_t handle{0};
1398  void encode(ProtoWriteBuffer buffer) const override;
1399 #ifdef HAS_PROTO_MESSAGE_DUMP
1400  void dump_to(std::string &out) const override;
1401 #endif
1402 
1403  protected:
1404  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1405 };
1407  public:
1408  std::vector<uint64_t> uuid{};
1409  uint32_t handle{0};
1410  uint32_t properties{0};
1411  std::vector<BluetoothGATTDescriptor> descriptors{};
1412  void encode(ProtoWriteBuffer buffer) const override;
1413 #ifdef HAS_PROTO_MESSAGE_DUMP
1414  void dump_to(std::string &out) const override;
1415 #endif
1416 
1417  protected:
1418  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
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  std::vector<BluetoothGATTCharacteristic> characteristics{};
1426  void encode(ProtoWriteBuffer buffer) const override;
1427 #ifdef HAS_PROTO_MESSAGE_DUMP
1428  void dump_to(std::string &out) const override;
1429 #endif
1430 
1431  protected:
1432  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1433  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1434 };
1436  public:
1437  uint64_t address{0};
1438  std::vector<BluetoothGATTService> services{};
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  uint64_t address{0};
1451  void encode(ProtoWriteBuffer buffer) const override;
1452 #ifdef HAS_PROTO_MESSAGE_DUMP
1453  void dump_to(std::string &out) const override;
1454 #endif
1455 
1456  protected:
1457  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1458 };
1460  public:
1461  uint64_t address{0};
1462  uint32_t handle{0};
1463  void encode(ProtoWriteBuffer buffer) const override;
1464 #ifdef HAS_PROTO_MESSAGE_DUMP
1465  void dump_to(std::string &out) const override;
1466 #endif
1467 
1468  protected:
1469  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1470 };
1472  public:
1473  uint64_t address{0};
1474  uint32_t handle{0};
1475  std::string data{};
1476  void encode(ProtoWriteBuffer buffer) const override;
1477 #ifdef HAS_PROTO_MESSAGE_DUMP
1478  void dump_to(std::string &out) const override;
1479 #endif
1480 
1481  protected:
1482  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1483  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1484 };
1486  public:
1487  uint64_t address{0};
1488  uint32_t handle{0};
1489  bool response{false};
1490  std::string data{};
1491  void encode(ProtoWriteBuffer buffer) const override;
1492 #ifdef HAS_PROTO_MESSAGE_DUMP
1493  void dump_to(std::string &out) const override;
1494 #endif
1495 
1496  protected:
1497  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1498  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1499 };
1501  public:
1502  uint64_t address{0};
1503  uint32_t handle{0};
1504  void encode(ProtoWriteBuffer buffer) const override;
1505 #ifdef HAS_PROTO_MESSAGE_DUMP
1506  void dump_to(std::string &out) const override;
1507 #endif
1508 
1509  protected:
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  std::string data{};
1517  void encode(ProtoWriteBuffer buffer) const override;
1518 #ifdef HAS_PROTO_MESSAGE_DUMP
1519  void dump_to(std::string &out) const override;
1520 #endif
1521 
1522  protected:
1523  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1524  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1525 };
1527  public:
1528  uint64_t address{0};
1529  uint32_t handle{0};
1530  bool enable{false};
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  void encode(ProtoWriteBuffer buffer) const override;
1556 #ifdef HAS_PROTO_MESSAGE_DUMP
1557  void dump_to(std::string &out) const override;
1558 #endif
1559 
1560  protected:
1561 };
1563  public:
1564  uint32_t free{0};
1565  uint32_t limit{0};
1566  void encode(ProtoWriteBuffer buffer) const override;
1567 #ifdef HAS_PROTO_MESSAGE_DUMP
1568  void dump_to(std::string &out) const override;
1569 #endif
1570 
1571  protected:
1572  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1573 };
1575  public:
1576  uint64_t address{0};
1577  uint32_t handle{0};
1578  int32_t error{0};
1579  void encode(ProtoWriteBuffer buffer) const override;
1580 #ifdef HAS_PROTO_MESSAGE_DUMP
1581  void dump_to(std::string &out) const override;
1582 #endif
1583 
1584  protected:
1585  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1586 };
1588  public:
1589  uint64_t address{0};
1590  uint32_t handle{0};
1591  void encode(ProtoWriteBuffer buffer) const override;
1592 #ifdef HAS_PROTO_MESSAGE_DUMP
1593  void dump_to(std::string &out) const override;
1594 #endif
1595 
1596  protected:
1597  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1598 };
1600  public:
1601  uint64_t address{0};
1602  uint32_t handle{0};
1603  void encode(ProtoWriteBuffer buffer) const override;
1604 #ifdef HAS_PROTO_MESSAGE_DUMP
1605  void dump_to(std::string &out) const override;
1606 #endif
1607 
1608  protected:
1609  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1610 };
1612  public:
1613  uint64_t address{0};
1614  bool paired{false};
1615  int32_t error{0};
1616  void encode(ProtoWriteBuffer buffer) const override;
1617 #ifdef HAS_PROTO_MESSAGE_DUMP
1618  void dump_to(std::string &out) const override;
1619 #endif
1620 
1621  protected:
1622  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1623 };
1625  public:
1626  uint64_t address{0};
1627  bool success{false};
1628  int32_t error{0};
1629  void encode(ProtoWriteBuffer buffer) const override;
1630 #ifdef HAS_PROTO_MESSAGE_DUMP
1631  void dump_to(std::string &out) const override;
1632 #endif
1633 
1634  protected:
1635  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1636 };
1638  public:
1639  void encode(ProtoWriteBuffer buffer) const override;
1640 #ifdef HAS_PROTO_MESSAGE_DUMP
1641  void dump_to(std::string &out) const override;
1642 #endif
1643 
1644  protected:
1645 };
1647  public:
1648  uint64_t address{0};
1649  bool success{false};
1650  int32_t error{0};
1651  void encode(ProtoWriteBuffer buffer) const override;
1652 #ifdef HAS_PROTO_MESSAGE_DUMP
1653  void dump_to(std::string &out) const override;
1654 #endif
1655 
1656  protected:
1657  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1658 };
1660  public:
1661  bool subscribe{false};
1662  void encode(ProtoWriteBuffer buffer) const override;
1663 #ifdef HAS_PROTO_MESSAGE_DUMP
1664  void dump_to(std::string &out) const override;
1665 #endif
1666 
1667  protected:
1668  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1669 };
1671  public:
1672  uint32_t noise_suppression_level{0};
1673  uint32_t auto_gain{0};
1674  float volume_multiplier{0.0f};
1675  void encode(ProtoWriteBuffer buffer) const override;
1676 #ifdef HAS_PROTO_MESSAGE_DUMP
1677  void dump_to(std::string &out) const override;
1678 #endif
1679 
1680  protected:
1681  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1682  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1683 };
1685  public:
1686  bool start{false};
1687  std::string conversation_id{};
1688  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_length(uint32_t field_id, ProtoLengthDelimited value) override;
1697  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1698 };
1700  public:
1701  uint32_t port{0};
1702  bool error{false};
1703  void encode(ProtoWriteBuffer buffer) const override;
1704 #ifdef HAS_PROTO_MESSAGE_DUMP
1705  void dump_to(std::string &out) const override;
1706 #endif
1707 
1708  protected:
1709  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1710 };
1712  public:
1713  std::string name{};
1714  std::string value{};
1715  void encode(ProtoWriteBuffer buffer) const override;
1716 #ifdef HAS_PROTO_MESSAGE_DUMP
1717  void dump_to(std::string &out) const override;
1718 #endif
1719 
1720  protected:
1721  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1722 };
1724  public:
1726  std::vector<VoiceAssistantEventData> data{};
1727  void encode(ProtoWriteBuffer buffer) const override;
1728 #ifdef HAS_PROTO_MESSAGE_DUMP
1729  void dump_to(std::string &out) const override;
1730 #endif
1731 
1732  protected:
1733  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1734  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1735 };
1737  public:
1738  std::string object_id{};
1739  uint32_t key{0};
1740  std::string name{};
1741  std::string unique_id{};
1742  std::string icon{};
1743  bool disabled_by_default{false};
1744  enums::EntityCategory entity_category{};
1745  uint32_t supported_features{0};
1746  bool requires_code{false};
1747  bool requires_code_to_arm{false};
1748  void encode(ProtoWriteBuffer buffer) const override;
1749 #ifdef HAS_PROTO_MESSAGE_DUMP
1750  void dump_to(std::string &out) const override;
1751 #endif
1752 
1753  protected:
1754  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
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  uint32_t key{0};
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_32bit(uint32_t field_id, Proto32Bit value) override;
1769  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1770 };
1772  public:
1773  uint32_t key{0};
1775  std::string code{};
1776  void encode(ProtoWriteBuffer buffer) const override;
1777 #ifdef HAS_PROTO_MESSAGE_DUMP
1778  void dump_to(std::string &out) const override;
1779 #endif
1780 
1781  protected:
1782  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1783  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1784  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1785 };
1787  public:
1788  std::string object_id{};
1789  uint32_t key{0};
1790  std::string name{};
1791  std::string unique_id{};
1792  std::string icon{};
1793  bool disabled_by_default{false};
1794  enums::EntityCategory entity_category{};
1795  uint32_t min_length{0};
1796  uint32_t max_length{0};
1797  std::string pattern{};
1799  void encode(ProtoWriteBuffer buffer) const override;
1800 #ifdef HAS_PROTO_MESSAGE_DUMP
1801  void dump_to(std::string &out) const override;
1802 #endif
1803 
1804  protected:
1805  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1806  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1807  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1808 };
1810  public:
1811  uint32_t key{0};
1812  std::string state{};
1813  bool missing_state{false};
1814  void encode(ProtoWriteBuffer buffer) const override;
1815 #ifdef HAS_PROTO_MESSAGE_DUMP
1816  void dump_to(std::string &out) const override;
1817 #endif
1818 
1819  protected:
1820  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1821  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1822  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1823 };
1825  public:
1826  uint32_t key{0};
1827  std::string state{};
1828  void encode(ProtoWriteBuffer buffer) const override;
1829 #ifdef HAS_PROTO_MESSAGE_DUMP
1830  void dump_to(std::string &out) const override;
1831 #endif
1832 
1833  protected:
1834  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1835  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1836 };
1837 
1838 } // namespace api
1839 } // namespace esphome
float target_temperature_low
Definition: climate.h:545
const char * name
Definition: stm32flash.h:78
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:546
ClimateSwingMode swing_mode
Definition: climate.h:541
FanDirection direction
Definition: fan.h:37
uint8_t custom_preset
Definition: climate.h:539
BedjetMode mode
BedJet operating mode.
Definition: bedjet_codec.h:151
uint8_t type
const uint32_t flags
Definition: stm32flash.h:85
uint8_t options
ClimateFanMode fan_mode
Definition: climate.h:533
bool oscillating
Definition: fan.h:36
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
float position
Definition: cover.h:14
uint8_t custom_fan_mode
Definition: climate.h:534
float target_temperature
Definition: climate.h:543
ClimatePreset preset
Definition: climate.h:538
bool state
Definition: fan.h:34