ESPHome  2023.8.3
api_pb2.h
Go to the documentation of this file.
1 // This file was automatically generated with a tool.
2 // See scripts/api_protobuf/api_protobuf.py
3 #pragma once
4 
5 #include "proto.h"
6 
7 namespace esphome {
8 namespace api {
9 
10 namespace enums {
11 
12 enum EntityCategory : uint32_t {
16 };
17 enum LegacyCoverState : uint32_t {
20 };
21 enum CoverOperation : uint32_t {
25 };
26 enum LegacyCoverCommand : uint32_t {
30 };
31 enum FanSpeed : uint32_t {
35 };
36 enum FanDirection : uint32_t {
39 };
40 enum ColorMode : uint32_t {
51 };
52 enum SensorStateClass : uint32_t {
57 };
58 enum SensorLastResetType : uint32_t {
62 };
63 enum LogLevel : uint32_t {
72 };
73 enum ServiceArgType : uint32_t {
82 };
83 enum ClimateMode : uint32_t {
91 };
92 enum ClimateFanMode : uint32_t {
103 };
104 enum ClimateSwingMode : uint32_t {
109 };
110 enum ClimateAction : uint32_t {
117 };
118 enum ClimatePreset : uint32_t {
127 };
128 enum NumberMode : uint32_t {
132 };
133 enum LockState : uint32_t {
140 };
141 enum LockCommand : uint32_t {
145 };
146 enum MediaPlayerState : uint32_t {
151 };
152 enum MediaPlayerCommand : uint32_t {
158 };
159 enum BluetoothDeviceRequestType : uint32_t {
167 };
168 enum VoiceAssistantEvent : uint32_t {
178 };
179 enum AlarmControlPanelState : uint32_t {
190 };
199 };
200 
201 } // namespace enums
202 
203 class HelloRequest : public ProtoMessage {
204  public:
205  std::string client_info{};
206  uint32_t api_version_major{0};
207  uint32_t api_version_minor{0};
208  void encode(ProtoWriteBuffer buffer) const override;
209 #ifdef HAS_PROTO_MESSAGE_DUMP
210  void dump_to(std::string &out) const override;
211 #endif
212 
213  protected:
214  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
215  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
216 };
217 class HelloResponse : public ProtoMessage {
218  public:
219  uint32_t api_version_major{0};
220  uint32_t api_version_minor{0};
221  std::string server_info{};
222  std::string name{};
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 ConnectRequest : public ProtoMessage {
233  public:
234  std::string password{};
235  void encode(ProtoWriteBuffer buffer) const override;
236 #ifdef HAS_PROTO_MESSAGE_DUMP
237  void dump_to(std::string &out) const override;
238 #endif
239 
240  protected:
241  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
242 };
244  public:
245  bool invalid_password{false};
246  void encode(ProtoWriteBuffer buffer) const override;
247 #ifdef HAS_PROTO_MESSAGE_DUMP
248  void dump_to(std::string &out) const override;
249 #endif
250 
251  protected:
252  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
253 };
255  public:
256  void encode(ProtoWriteBuffer buffer) const override;
257 #ifdef HAS_PROTO_MESSAGE_DUMP
258  void dump_to(std::string &out) const override;
259 #endif
260 
261  protected:
262 };
264  public:
265  void encode(ProtoWriteBuffer buffer) const override;
266 #ifdef HAS_PROTO_MESSAGE_DUMP
267  void dump_to(std::string &out) const override;
268 #endif
269 
270  protected:
271 };
272 class PingRequest : public ProtoMessage {
273  public:
274  void encode(ProtoWriteBuffer buffer) const override;
275 #ifdef HAS_PROTO_MESSAGE_DUMP
276  void dump_to(std::string &out) const override;
277 #endif
278 
279  protected:
280 };
281 class PingResponse : public ProtoMessage {
282  public:
283  void encode(ProtoWriteBuffer buffer) const override;
284 #ifdef HAS_PROTO_MESSAGE_DUMP
285  void dump_to(std::string &out) const override;
286 #endif
287 
288  protected:
289 };
291  public:
292  void encode(ProtoWriteBuffer buffer) const override;
293 #ifdef HAS_PROTO_MESSAGE_DUMP
294  void dump_to(std::string &out) const override;
295 #endif
296 
297  protected:
298 };
300  public:
301  bool uses_password{false};
302  std::string name{};
303  std::string mac_address{};
304  std::string esphome_version{};
305  std::string compilation_time{};
306  std::string model{};
307  bool has_deep_sleep{false};
308  std::string project_name{};
309  std::string project_version{};
310  uint32_t webserver_port{0};
311  uint32_t legacy_bluetooth_proxy_version{0};
312  uint32_t bluetooth_proxy_feature_flags{0};
313  std::string manufacturer{};
314  std::string friendly_name{};
315  uint32_t voice_assistant_version{0};
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  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
323  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
324 };
326  public:
327  void encode(ProtoWriteBuffer buffer) const override;
328 #ifdef HAS_PROTO_MESSAGE_DUMP
329  void dump_to(std::string &out) const override;
330 #endif
331 
332  protected:
333 };
335  public:
336  void encode(ProtoWriteBuffer buffer) const override;
337 #ifdef HAS_PROTO_MESSAGE_DUMP
338  void dump_to(std::string &out) const override;
339 #endif
340 
341  protected:
342 };
344  public:
345  void encode(ProtoWriteBuffer buffer) const override;
346 #ifdef HAS_PROTO_MESSAGE_DUMP
347  void dump_to(std::string &out) const override;
348 #endif
349 
350  protected:
351 };
353  public:
354  std::string object_id{};
355  uint32_t key{0};
356  std::string name{};
357  std::string unique_id{};
358  std::string device_class{};
359  bool is_status_binary_sensor{false};
360  bool disabled_by_default{false};
361  std::string icon{};
362  enums::EntityCategory entity_category{};
363  void encode(ProtoWriteBuffer buffer) const override;
364 #ifdef HAS_PROTO_MESSAGE_DUMP
365  void dump_to(std::string &out) const override;
366 #endif
367 
368  protected:
369  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
370  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
371  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
372 };
374  public:
375  uint32_t key{0};
376  bool state{false};
377  bool missing_state{false};
378  void encode(ProtoWriteBuffer buffer) const override;
379 #ifdef HAS_PROTO_MESSAGE_DUMP
380  void dump_to(std::string &out) const override;
381 #endif
382 
383  protected:
384  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
385  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
386 };
388  public:
389  std::string object_id{};
390  uint32_t key{0};
391  std::string name{};
392  std::string unique_id{};
393  bool assumed_state{false};
394  bool supports_position{false};
395  bool supports_tilt{false};
396  std::string device_class{};
397  bool disabled_by_default{false};
398  std::string icon{};
399  enums::EntityCategory entity_category{};
400  bool supports_stop{false};
401  void encode(ProtoWriteBuffer buffer) const override;
402 #ifdef HAS_PROTO_MESSAGE_DUMP
403  void dump_to(std::string &out) const override;
404 #endif
405 
406  protected:
407  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
408  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
409  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
410 };
412  public:
413  uint32_t key{0};
414  enums::LegacyCoverState legacy_state{};
415  float position{0.0f};
416  float tilt{0.0f};
417  enums::CoverOperation current_operation{};
418  void encode(ProtoWriteBuffer buffer) const override;
419 #ifdef HAS_PROTO_MESSAGE_DUMP
420  void dump_to(std::string &out) const override;
421 #endif
422 
423  protected:
424  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
425  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
426 };
428  public:
429  uint32_t key{0};
430  bool has_legacy_command{false};
431  enums::LegacyCoverCommand legacy_command{};
432  bool has_position{false};
433  float position{0.0f};
434  bool has_tilt{false};
435  float tilt{0.0f};
436  bool stop{false};
437  void encode(ProtoWriteBuffer buffer) const override;
438 #ifdef HAS_PROTO_MESSAGE_DUMP
439  void dump_to(std::string &out) const override;
440 #endif
441 
442  protected:
443  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
444  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
445 };
447  public:
448  std::string object_id{};
449  uint32_t key{0};
450  std::string name{};
451  std::string unique_id{};
452  bool supports_oscillation{false};
453  bool supports_speed{false};
454  bool supports_direction{false};
455  int32_t supported_speed_count{0};
456  bool disabled_by_default{false};
457  std::string icon{};
458  enums::EntityCategory entity_category{};
459  void encode(ProtoWriteBuffer buffer) const override;
460 #ifdef HAS_PROTO_MESSAGE_DUMP
461  void dump_to(std::string &out) const override;
462 #endif
463 
464  protected:
465  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
466  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
467  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
468 };
470  public:
471  uint32_t key{0};
472  bool state{false};
473  bool oscillating{false};
476  int32_t speed_level{0};
477  void encode(ProtoWriteBuffer buffer) const override;
478 #ifdef HAS_PROTO_MESSAGE_DUMP
479  void dump_to(std::string &out) const override;
480 #endif
481 
482  protected:
483  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
484  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
485 };
487  public:
488  uint32_t key{0};
489  bool has_state{false};
490  bool state{false};
491  bool has_speed{false};
493  bool has_oscillating{false};
494  bool oscillating{false};
495  bool has_direction{false};
497  bool has_speed_level{false};
498  int32_t speed_level{0};
499  void encode(ProtoWriteBuffer buffer) const override;
500 #ifdef HAS_PROTO_MESSAGE_DUMP
501  void dump_to(std::string &out) const override;
502 #endif
503 
504  protected:
505  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
506  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
507 };
509  public:
510  std::string object_id{};
511  uint32_t key{0};
512  std::string name{};
513  std::string unique_id{};
514  std::vector<enums::ColorMode> supported_color_modes{};
515  bool legacy_supports_brightness{false};
516  bool legacy_supports_rgb{false};
517  bool legacy_supports_white_value{false};
518  bool legacy_supports_color_temperature{false};
519  float min_mireds{0.0f};
520  float max_mireds{0.0f};
521  std::vector<std::string> effects{};
522  bool disabled_by_default{false};
523  std::string icon{};
524  enums::EntityCategory entity_category{};
525  void encode(ProtoWriteBuffer buffer) const override;
526 #ifdef HAS_PROTO_MESSAGE_DUMP
527  void dump_to(std::string &out) const override;
528 #endif
529 
530  protected:
531  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
532  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
533  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
534 };
536  public:
537  uint32_t key{0};
538  bool state{false};
539  float brightness{0.0f};
540  enums::ColorMode color_mode{};
541  float color_brightness{0.0f};
542  float red{0.0f};
543  float green{0.0f};
544  float blue{0.0f};
545  float white{0.0f};
546  float color_temperature{0.0f};
547  float cold_white{0.0f};
548  float warm_white{0.0f};
549  std::string effect{};
550  void encode(ProtoWriteBuffer buffer) const override;
551 #ifdef HAS_PROTO_MESSAGE_DUMP
552  void dump_to(std::string &out) const override;
553 #endif
554 
555  protected:
556  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
557  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
558  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
559 };
561  public:
562  uint32_t key{0};
563  bool has_state{false};
564  bool state{false};
565  bool has_brightness{false};
566  float brightness{0.0f};
567  bool has_color_mode{false};
568  enums::ColorMode color_mode{};
569  bool has_color_brightness{false};
570  float color_brightness{0.0f};
571  bool has_rgb{false};
572  float red{0.0f};
573  float green{0.0f};
574  float blue{0.0f};
575  bool has_white{false};
576  float white{0.0f};
577  bool has_color_temperature{false};
578  float color_temperature{0.0f};
579  bool has_cold_white{false};
580  float cold_white{0.0f};
581  bool has_warm_white{false};
582  float warm_white{0.0f};
583  bool has_transition_length{false};
584  uint32_t transition_length{0};
585  bool has_flash_length{false};
586  uint32_t flash_length{0};
587  bool has_effect{false};
588  std::string effect{};
589  void encode(ProtoWriteBuffer buffer) const override;
590 #ifdef HAS_PROTO_MESSAGE_DUMP
591  void dump_to(std::string &out) const override;
592 #endif
593 
594  protected:
595  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
596  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
597  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
598 };
600  public:
601  std::string object_id{};
602  uint32_t key{0};
603  std::string name{};
604  std::string unique_id{};
605  std::string icon{};
606  std::string unit_of_measurement{};
607  int32_t accuracy_decimals{0};
608  bool force_update{false};
609  std::string device_class{};
610  enums::SensorStateClass state_class{};
611  enums::SensorLastResetType legacy_last_reset_type{};
612  bool disabled_by_default{false};
613  enums::EntityCategory entity_category{};
614  void encode(ProtoWriteBuffer buffer) const override;
615 #ifdef HAS_PROTO_MESSAGE_DUMP
616  void dump_to(std::string &out) const override;
617 #endif
618 
619  protected:
620  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
621  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
622  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
623 };
625  public:
626  uint32_t key{0};
627  float state{0.0f};
628  bool missing_state{false};
629  void encode(ProtoWriteBuffer buffer) const override;
630 #ifdef HAS_PROTO_MESSAGE_DUMP
631  void dump_to(std::string &out) const override;
632 #endif
633 
634  protected:
635  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
636  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
637 };
639  public:
640  std::string object_id{};
641  uint32_t key{0};
642  std::string name{};
643  std::string unique_id{};
644  std::string icon{};
645  bool assumed_state{false};
646  bool disabled_by_default{false};
647  enums::EntityCategory entity_category{};
648  std::string device_class{};
649  void encode(ProtoWriteBuffer buffer) const override;
650 #ifdef HAS_PROTO_MESSAGE_DUMP
651  void dump_to(std::string &out) const override;
652 #endif
653 
654  protected:
655  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
656  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
657  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
658 };
660  public:
661  uint32_t key{0};
662  bool state{false};
663  void encode(ProtoWriteBuffer buffer) const override;
664 #ifdef HAS_PROTO_MESSAGE_DUMP
665  void dump_to(std::string &out) const override;
666 #endif
667 
668  protected:
669  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
670  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
671 };
673  public:
674  uint32_t key{0};
675  bool state{false};
676  void encode(ProtoWriteBuffer buffer) const override;
677 #ifdef HAS_PROTO_MESSAGE_DUMP
678  void dump_to(std::string &out) const override;
679 #endif
680 
681  protected:
682  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
683  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
684 };
686  public:
687  std::string object_id{};
688  uint32_t key{0};
689  std::string name{};
690  std::string unique_id{};
691  std::string icon{};
692  bool disabled_by_default{false};
693  enums::EntityCategory entity_category{};
694  void encode(ProtoWriteBuffer buffer) const override;
695 #ifdef HAS_PROTO_MESSAGE_DUMP
696  void dump_to(std::string &out) const override;
697 #endif
698 
699  protected:
700  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
701  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
702  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
703 };
705  public:
706  uint32_t key{0};
707  std::string state{};
708  bool missing_state{false};
709  void encode(ProtoWriteBuffer buffer) const override;
710 #ifdef HAS_PROTO_MESSAGE_DUMP
711  void dump_to(std::string &out) const override;
712 #endif
713 
714  protected:
715  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
716  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
717  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
718 };
720  public:
722  bool dump_config{false};
723  void encode(ProtoWriteBuffer buffer) const override;
724 #ifdef HAS_PROTO_MESSAGE_DUMP
725  void dump_to(std::string &out) const override;
726 #endif
727 
728  protected:
729  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
730 };
732  public:
734  std::string message{};
735  bool send_failed{false};
736  void encode(ProtoWriteBuffer buffer) const override;
737 #ifdef HAS_PROTO_MESSAGE_DUMP
738  void dump_to(std::string &out) const override;
739 #endif
740 
741  protected:
742  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
743  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
744 };
746  public:
747  void encode(ProtoWriteBuffer buffer) const override;
748 #ifdef HAS_PROTO_MESSAGE_DUMP
749  void dump_to(std::string &out) const override;
750 #endif
751 
752  protected:
753 };
755  public:
756  std::string key{};
757  std::string value{};
758  void encode(ProtoWriteBuffer buffer) const override;
759 #ifdef HAS_PROTO_MESSAGE_DUMP
760  void dump_to(std::string &out) const override;
761 #endif
762 
763  protected:
764  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
765 };
767  public:
768  std::string service{};
769  std::vector<HomeassistantServiceMap> data{};
770  std::vector<HomeassistantServiceMap> data_template{};
771  std::vector<HomeassistantServiceMap> variables{};
772  bool is_event{false};
773  void encode(ProtoWriteBuffer buffer) const override;
774 #ifdef HAS_PROTO_MESSAGE_DUMP
775  void dump_to(std::string &out) const override;
776 #endif
777 
778  protected:
779  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
780  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
781 };
783  public:
784  void encode(ProtoWriteBuffer buffer) const override;
785 #ifdef HAS_PROTO_MESSAGE_DUMP
786  void dump_to(std::string &out) const override;
787 #endif
788 
789  protected:
790 };
792  public:
793  std::string entity_id{};
794  std::string attribute{};
795  void encode(ProtoWriteBuffer buffer) const override;
796 #ifdef HAS_PROTO_MESSAGE_DUMP
797  void dump_to(std::string &out) const override;
798 #endif
799 
800  protected:
801  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
802 };
804  public:
805  std::string entity_id{};
806  std::string state{};
807  std::string attribute{};
808  void encode(ProtoWriteBuffer buffer) const override;
809 #ifdef HAS_PROTO_MESSAGE_DUMP
810  void dump_to(std::string &out) const override;
811 #endif
812 
813  protected:
814  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
815 };
816 class GetTimeRequest : public ProtoMessage {
817  public:
818  void encode(ProtoWriteBuffer buffer) const override;
819 #ifdef HAS_PROTO_MESSAGE_DUMP
820  void dump_to(std::string &out) const override;
821 #endif
822 
823  protected:
824 };
826  public:
827  uint32_t epoch_seconds{0};
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_32bit(uint32_t field_id, Proto32Bit value) override;
835 };
837  public:
838  std::string name{};
840  void encode(ProtoWriteBuffer buffer) const override;
841 #ifdef HAS_PROTO_MESSAGE_DUMP
842  void dump_to(std::string &out) const override;
843 #endif
844 
845  protected:
846  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
847  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
848 };
850  public:
851  std::string name{};
852  uint32_t key{0};
853  std::vector<ListEntitiesServicesArgument> args{};
854  void encode(ProtoWriteBuffer buffer) const override;
855 #ifdef HAS_PROTO_MESSAGE_DUMP
856  void dump_to(std::string &out) const override;
857 #endif
858 
859  protected:
860  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
861  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
862 };
864  public:
865  bool bool_{false};
866  int32_t legacy_int{0};
867  float float_{0.0f};
868  std::string string_{};
869  int32_t int_{0};
870  std::vector<bool> bool_array{};
871  std::vector<int32_t> int_array{};
872  std::vector<float> float_array{};
873  std::vector<std::string> string_array{};
874  void encode(ProtoWriteBuffer buffer) const override;
875 #ifdef HAS_PROTO_MESSAGE_DUMP
876  void dump_to(std::string &out) const override;
877 #endif
878 
879  protected:
880  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
881  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
882  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
883 };
885  public:
886  uint32_t key{0};
887  std::vector<ExecuteServiceArgument> args{};
888  void encode(ProtoWriteBuffer buffer) const override;
889 #ifdef HAS_PROTO_MESSAGE_DUMP
890  void dump_to(std::string &out) const override;
891 #endif
892 
893  protected:
894  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
895  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
896 };
898  public:
899  std::string object_id{};
900  uint32_t key{0};
901  std::string name{};
902  std::string unique_id{};
903  bool disabled_by_default{false};
904  std::string icon{};
905  enums::EntityCategory entity_category{};
906  void encode(ProtoWriteBuffer buffer) const override;
907 #ifdef HAS_PROTO_MESSAGE_DUMP
908  void dump_to(std::string &out) const override;
909 #endif
910 
911  protected:
912  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
913  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
914  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
915 };
917  public:
918  uint32_t key{0};
919  std::string data{};
920  bool done{false};
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  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
930 };
932  public:
933  bool single{false};
934  bool stream{false};
935  void encode(ProtoWriteBuffer buffer) const override;
936 #ifdef HAS_PROTO_MESSAGE_DUMP
937  void dump_to(std::string &out) const override;
938 #endif
939 
940  protected:
941  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
942 };
944  public:
945  std::string object_id{};
946  uint32_t key{0};
947  std::string name{};
948  std::string unique_id{};
949  bool supports_current_temperature{false};
950  bool supports_two_point_target_temperature{false};
951  std::vector<enums::ClimateMode> supported_modes{};
952  float visual_min_temperature{0.0f};
953  float visual_max_temperature{0.0f};
954  float visual_target_temperature_step{0.0f};
955  bool legacy_supports_away{false};
956  bool supports_action{false};
957  std::vector<enums::ClimateFanMode> supported_fan_modes{};
958  std::vector<enums::ClimateSwingMode> supported_swing_modes{};
959  std::vector<std::string> supported_custom_fan_modes{};
960  std::vector<enums::ClimatePreset> supported_presets{};
961  std::vector<std::string> supported_custom_presets{};
962  bool disabled_by_default{false};
963  std::string icon{};
964  enums::EntityCategory entity_category{};
965  float visual_current_temperature_step{0.0f};
966  void encode(ProtoWriteBuffer buffer) const override;
967 #ifdef HAS_PROTO_MESSAGE_DUMP
968  void dump_to(std::string &out) const override;
969 #endif
970 
971  protected:
972  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
973  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
974  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
975 };
977  public:
978  uint32_t key{0};
980  float current_temperature{0.0f};
981  float target_temperature{0.0f};
984  bool unused_legacy_away{false};
988  std::string custom_fan_mode{};
990  std::string custom_preset{};
991  void encode(ProtoWriteBuffer buffer) const override;
992 #ifdef HAS_PROTO_MESSAGE_DUMP
993  void dump_to(std::string &out) const override;
994 #endif
995 
996  protected:
997  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
998  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
999  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1000 };
1002  public:
1003  uint32_t key{0};
1004  bool has_mode{false};
1006  bool has_target_temperature{false};
1007  float target_temperature{0.0f};
1008  bool has_target_temperature_low{false};
1010  bool has_target_temperature_high{false};
1012  bool unused_has_legacy_away{false};
1013  bool unused_legacy_away{false};
1014  bool has_fan_mode{false};
1016  bool has_swing_mode{false};
1018  bool has_custom_fan_mode{false};
1019  std::string custom_fan_mode{};
1020  bool has_preset{false};
1022  bool has_custom_preset{false};
1023  std::string custom_preset{};
1024  void encode(ProtoWriteBuffer buffer) const override;
1025 #ifdef HAS_PROTO_MESSAGE_DUMP
1026  void dump_to(std::string &out) const override;
1027 #endif
1028 
1029  protected:
1030  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1031  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1032  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1033 };
1035  public:
1036  std::string object_id{};
1037  uint32_t key{0};
1038  std::string name{};
1039  std::string unique_id{};
1040  std::string icon{};
1041  float min_value{0.0f};
1042  float max_value{0.0f};
1043  float step{0.0f};
1044  bool disabled_by_default{false};
1045  enums::EntityCategory entity_category{};
1046  std::string unit_of_measurement{};
1048  std::string device_class{};
1049  void encode(ProtoWriteBuffer buffer) const override;
1050 #ifdef HAS_PROTO_MESSAGE_DUMP
1051  void dump_to(std::string &out) const override;
1052 #endif
1053 
1054  protected:
1055  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1056  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1057  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1058 };
1060  public:
1061  uint32_t key{0};
1062  float state{0.0f};
1063  bool missing_state{false};
1064  void encode(ProtoWriteBuffer buffer) const override;
1065 #ifdef HAS_PROTO_MESSAGE_DUMP
1066  void dump_to(std::string &out) const override;
1067 #endif
1068 
1069  protected:
1070  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1071  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1072 };
1074  public:
1075  uint32_t key{0};
1076  float state{0.0f};
1077  void encode(ProtoWriteBuffer buffer) const override;
1078 #ifdef HAS_PROTO_MESSAGE_DUMP
1079  void dump_to(std::string &out) const override;
1080 #endif
1081 
1082  protected:
1083  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1084 };
1086  public:
1087  std::string object_id{};
1088  uint32_t key{0};
1089  std::string name{};
1090  std::string unique_id{};
1091  std::string icon{};
1092  std::vector<std::string> options{};
1093  bool disabled_by_default{false};
1094  enums::EntityCategory entity_category{};
1095  void encode(ProtoWriteBuffer buffer) const override;
1096 #ifdef HAS_PROTO_MESSAGE_DUMP
1097  void dump_to(std::string &out) const override;
1098 #endif
1099 
1100  protected:
1101  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1102  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1103  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1104 };
1106  public:
1107  uint32_t key{0};
1108  std::string state{};
1109  bool missing_state{false};
1110  void encode(ProtoWriteBuffer buffer) const override;
1111 #ifdef HAS_PROTO_MESSAGE_DUMP
1112  void dump_to(std::string &out) const override;
1113 #endif
1114 
1115  protected:
1116  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1117  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1118  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1119 };
1121  public:
1122  uint32_t key{0};
1123  std::string state{};
1124  void encode(ProtoWriteBuffer buffer) const override;
1125 #ifdef HAS_PROTO_MESSAGE_DUMP
1126  void dump_to(std::string &out) const override;
1127 #endif
1128 
1129  protected:
1130  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1131  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1132 };
1134  public:
1135  std::string object_id{};
1136  uint32_t key{0};
1137  std::string name{};
1138  std::string unique_id{};
1139  std::string icon{};
1140  bool disabled_by_default{false};
1141  enums::EntityCategory entity_category{};
1142  bool assumed_state{false};
1143  bool supports_open{false};
1144  bool requires_code{false};
1145  std::string code_format{};
1146  void encode(ProtoWriteBuffer buffer) const override;
1147 #ifdef HAS_PROTO_MESSAGE_DUMP
1148  void dump_to(std::string &out) const override;
1149 #endif
1150 
1151  protected:
1152  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1153  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1154  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1155 };
1157  public:
1158  uint32_t key{0};
1160  void encode(ProtoWriteBuffer buffer) const override;
1161 #ifdef HAS_PROTO_MESSAGE_DUMP
1162  void dump_to(std::string &out) const override;
1163 #endif
1164 
1165  protected:
1166  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1167  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1168 };
1170  public:
1171  uint32_t key{0};
1173  bool has_code{false};
1174  std::string code{};
1175  void encode(ProtoWriteBuffer buffer) const override;
1176 #ifdef HAS_PROTO_MESSAGE_DUMP
1177  void dump_to(std::string &out) const override;
1178 #endif
1179 
1180  protected:
1181  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1182  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1183  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1184 };
1186  public:
1187  std::string object_id{};
1188  uint32_t key{0};
1189  std::string name{};
1190  std::string unique_id{};
1191  std::string icon{};
1192  bool disabled_by_default{false};
1193  enums::EntityCategory entity_category{};
1194  std::string device_class{};
1195  void encode(ProtoWriteBuffer buffer) const override;
1196 #ifdef HAS_PROTO_MESSAGE_DUMP
1197  void dump_to(std::string &out) const override;
1198 #endif
1199 
1200  protected:
1201  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1202  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1203  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1204 };
1206  public:
1207  uint32_t key{0};
1208  void encode(ProtoWriteBuffer buffer) const override;
1209 #ifdef HAS_PROTO_MESSAGE_DUMP
1210  void dump_to(std::string &out) const override;
1211 #endif
1212 
1213  protected:
1214  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1215 };
1217  public:
1218  std::string object_id{};
1219  uint32_t key{0};
1220  std::string name{};
1221  std::string unique_id{};
1222  std::string icon{};
1223  bool disabled_by_default{false};
1224  enums::EntityCategory entity_category{};
1225  bool supports_pause{false};
1226  void encode(ProtoWriteBuffer buffer) const override;
1227 #ifdef HAS_PROTO_MESSAGE_DUMP
1228  void dump_to(std::string &out) const override;
1229 #endif
1230 
1231  protected:
1232  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1233  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1234  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1235 };
1237  public:
1238  uint32_t key{0};
1240  float volume{0.0f};
1241  bool muted{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_varint(uint32_t field_id, ProtoVarInt value) override;
1250 };
1252  public:
1253  uint32_t key{0};
1254  bool has_command{false};
1256  bool has_volume{false};
1257  float volume{0.0f};
1258  bool has_media_url{false};
1259  std::string media_url{};
1260  void encode(ProtoWriteBuffer buffer) const override;
1261 #ifdef HAS_PROTO_MESSAGE_DUMP
1262  void dump_to(std::string &out) const override;
1263 #endif
1264 
1265  protected:
1266  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1267  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1268  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1269 };
1271  public:
1272  uint32_t flags{0};
1273  void encode(ProtoWriteBuffer buffer) const override;
1274 #ifdef HAS_PROTO_MESSAGE_DUMP
1275  void dump_to(std::string &out) const override;
1276 #endif
1277 
1278  protected:
1279  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1280 };
1282  public:
1283  std::string uuid{};
1284  std::vector<uint32_t> legacy_data{};
1285  std::string data{};
1286  void encode(ProtoWriteBuffer buffer) const override;
1287 #ifdef HAS_PROTO_MESSAGE_DUMP
1288  void dump_to(std::string &out) const override;
1289 #endif
1290 
1291  protected:
1292  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1293  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1294 };
1296  public:
1297  uint64_t address{0};
1298  std::string name{};
1299  int32_t rssi{0};
1300  std::vector<std::string> service_uuids{};
1301  std::vector<BluetoothServiceData> service_data{};
1302  std::vector<BluetoothServiceData> manufacturer_data{};
1303  uint32_t address_type{0};
1304  void encode(ProtoWriteBuffer buffer) const override;
1305 #ifdef HAS_PROTO_MESSAGE_DUMP
1306  void dump_to(std::string &out) const override;
1307 #endif
1308 
1309  protected:
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  uint64_t address{0};
1316  int32_t rssi{0};
1317  uint32_t address_type{0};
1318  std::string data{};
1319  void encode(ProtoWriteBuffer buffer) const override;
1320 #ifdef HAS_PROTO_MESSAGE_DUMP
1321  void dump_to(std::string &out) const override;
1322 #endif
1323 
1324  protected:
1325  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1326  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1327 };
1329  public:
1330  std::vector<BluetoothLERawAdvertisement> advertisements{};
1331  void encode(ProtoWriteBuffer buffer) const override;
1332 #ifdef HAS_PROTO_MESSAGE_DUMP
1333  void dump_to(std::string &out) const override;
1334 #endif
1335 
1336  protected:
1337  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1338 };
1340  public:
1341  uint64_t address{0};
1343  bool has_address_type{false};
1344  uint32_t address_type{0};
1345  void encode(ProtoWriteBuffer buffer) const override;
1346 #ifdef HAS_PROTO_MESSAGE_DUMP
1347  void dump_to(std::string &out) const override;
1348 #endif
1349 
1350  protected:
1351  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1352 };
1354  public:
1355  uint64_t address{0};
1356  bool connected{false};
1357  uint32_t mtu{0};
1358  int32_t error{0};
1359  void encode(ProtoWriteBuffer buffer) const override;
1360 #ifdef HAS_PROTO_MESSAGE_DUMP
1361  void dump_to(std::string &out) const override;
1362 #endif
1363 
1364  protected:
1365  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1366 };
1368  public:
1369  uint64_t address{0};
1370  void encode(ProtoWriteBuffer buffer) const override;
1371 #ifdef HAS_PROTO_MESSAGE_DUMP
1372  void dump_to(std::string &out) const override;
1373 #endif
1374 
1375  protected:
1376  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1377 };
1379  public:
1380  std::vector<uint64_t> uuid{};
1381  uint32_t handle{0};
1382  void encode(ProtoWriteBuffer buffer) const override;
1383 #ifdef HAS_PROTO_MESSAGE_DUMP
1384  void dump_to(std::string &out) const override;
1385 #endif
1386 
1387  protected:
1388  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1389 };
1391  public:
1392  std::vector<uint64_t> uuid{};
1393  uint32_t handle{0};
1394  uint32_t properties{0};
1395  std::vector<BluetoothGATTDescriptor> descriptors{};
1396  void encode(ProtoWriteBuffer buffer) const override;
1397 #ifdef HAS_PROTO_MESSAGE_DUMP
1398  void dump_to(std::string &out) const override;
1399 #endif
1400 
1401  protected:
1402  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1403  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1404 };
1406  public:
1407  std::vector<uint64_t> uuid{};
1408  uint32_t handle{0};
1409  std::vector<BluetoothGATTCharacteristic> characteristics{};
1410  void encode(ProtoWriteBuffer buffer) const override;
1411 #ifdef HAS_PROTO_MESSAGE_DUMP
1412  void dump_to(std::string &out) const override;
1413 #endif
1414 
1415  protected:
1416  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1417  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1418 };
1420  public:
1421  uint64_t address{0};
1422  std::vector<BluetoothGATTService> services{};
1423  void encode(ProtoWriteBuffer buffer) const override;
1424 #ifdef HAS_PROTO_MESSAGE_DUMP
1425  void dump_to(std::string &out) const override;
1426 #endif
1427 
1428  protected:
1429  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1430  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1431 };
1433  public:
1434  uint64_t address{0};
1435  void encode(ProtoWriteBuffer buffer) const override;
1436 #ifdef HAS_PROTO_MESSAGE_DUMP
1437  void dump_to(std::string &out) const override;
1438 #endif
1439 
1440  protected:
1441  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1442 };
1444  public:
1445  uint64_t address{0};
1446  uint32_t handle{0};
1447  void encode(ProtoWriteBuffer buffer) const override;
1448 #ifdef HAS_PROTO_MESSAGE_DUMP
1449  void dump_to(std::string &out) const override;
1450 #endif
1451 
1452  protected:
1453  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1454 };
1456  public:
1457  uint64_t address{0};
1458  uint32_t handle{0};
1459  std::string data{};
1460  void encode(ProtoWriteBuffer buffer) const override;
1461 #ifdef HAS_PROTO_MESSAGE_DUMP
1462  void dump_to(std::string &out) const override;
1463 #endif
1464 
1465  protected:
1466  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1467  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1468 };
1470  public:
1471  uint64_t address{0};
1472  uint32_t handle{0};
1473  bool response{false};
1474  std::string data{};
1475  void encode(ProtoWriteBuffer buffer) const override;
1476 #ifdef HAS_PROTO_MESSAGE_DUMP
1477  void dump_to(std::string &out) const override;
1478 #endif
1479 
1480  protected:
1481  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1482  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1483 };
1485  public:
1486  uint64_t address{0};
1487  uint32_t handle{0};
1488  void encode(ProtoWriteBuffer buffer) const override;
1489 #ifdef HAS_PROTO_MESSAGE_DUMP
1490  void dump_to(std::string &out) const override;
1491 #endif
1492 
1493  protected:
1494  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1495 };
1497  public:
1498  uint64_t address{0};
1499  uint32_t handle{0};
1500  std::string data{};
1501  void encode(ProtoWriteBuffer buffer) const override;
1502 #ifdef HAS_PROTO_MESSAGE_DUMP
1503  void dump_to(std::string &out) const override;
1504 #endif
1505 
1506  protected:
1507  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1508  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1509 };
1511  public:
1512  uint64_t address{0};
1513  uint32_t handle{0};
1514  bool enable{false};
1515  void encode(ProtoWriteBuffer buffer) const override;
1516 #ifdef HAS_PROTO_MESSAGE_DUMP
1517  void dump_to(std::string &out) const override;
1518 #endif
1519 
1520  protected:
1521  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1522 };
1524  public:
1525  uint64_t address{0};
1526  uint32_t handle{0};
1527  std::string data{};
1528  void encode(ProtoWriteBuffer buffer) const override;
1529 #ifdef HAS_PROTO_MESSAGE_DUMP
1530  void dump_to(std::string &out) const override;
1531 #endif
1532 
1533  protected:
1534  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1535  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1536 };
1538  public:
1539  void encode(ProtoWriteBuffer buffer) const override;
1540 #ifdef HAS_PROTO_MESSAGE_DUMP
1541  void dump_to(std::string &out) const override;
1542 #endif
1543 
1544  protected:
1545 };
1547  public:
1548  uint32_t free{0};
1549  uint32_t limit{0};
1550  void encode(ProtoWriteBuffer buffer) const override;
1551 #ifdef HAS_PROTO_MESSAGE_DUMP
1552  void dump_to(std::string &out) const override;
1553 #endif
1554 
1555  protected:
1556  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1557 };
1559  public:
1560  uint64_t address{0};
1561  uint32_t handle{0};
1562  int32_t error{0};
1563  void encode(ProtoWriteBuffer buffer) const override;
1564 #ifdef HAS_PROTO_MESSAGE_DUMP
1565  void dump_to(std::string &out) const override;
1566 #endif
1567 
1568  protected:
1569  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1570 };
1572  public:
1573  uint64_t address{0};
1574  uint32_t handle{0};
1575  void encode(ProtoWriteBuffer buffer) const override;
1576 #ifdef HAS_PROTO_MESSAGE_DUMP
1577  void dump_to(std::string &out) const override;
1578 #endif
1579 
1580  protected:
1581  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1582 };
1584  public:
1585  uint64_t address{0};
1586  uint32_t handle{0};
1587  void encode(ProtoWriteBuffer buffer) const override;
1588 #ifdef HAS_PROTO_MESSAGE_DUMP
1589  void dump_to(std::string &out) const override;
1590 #endif
1591 
1592  protected:
1593  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1594 };
1596  public:
1597  uint64_t address{0};
1598  bool paired{false};
1599  int32_t error{0};
1600  void encode(ProtoWriteBuffer buffer) const override;
1601 #ifdef HAS_PROTO_MESSAGE_DUMP
1602  void dump_to(std::string &out) const override;
1603 #endif
1604 
1605  protected:
1606  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1607 };
1609  public:
1610  uint64_t address{0};
1611  bool success{false};
1612  int32_t error{0};
1613  void encode(ProtoWriteBuffer buffer) const override;
1614 #ifdef HAS_PROTO_MESSAGE_DUMP
1615  void dump_to(std::string &out) const override;
1616 #endif
1617 
1618  protected:
1619  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1620 };
1622  public:
1623  void encode(ProtoWriteBuffer buffer) const override;
1624 #ifdef HAS_PROTO_MESSAGE_DUMP
1625  void dump_to(std::string &out) const override;
1626 #endif
1627 
1628  protected:
1629 };
1631  public:
1632  uint64_t address{0};
1633  bool success{false};
1634  int32_t error{0};
1635  void encode(ProtoWriteBuffer buffer) const override;
1636 #ifdef HAS_PROTO_MESSAGE_DUMP
1637  void dump_to(std::string &out) const override;
1638 #endif
1639 
1640  protected:
1641  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1642 };
1644  public:
1645  bool subscribe{false};
1646  void encode(ProtoWriteBuffer buffer) const override;
1647 #ifdef HAS_PROTO_MESSAGE_DUMP
1648  void dump_to(std::string &out) const override;
1649 #endif
1650 
1651  protected:
1652  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1653 };
1655  public:
1656  bool start{false};
1657  std::string conversation_id{};
1658  bool use_vad{false};
1659  void encode(ProtoWriteBuffer buffer) const override;
1660 #ifdef HAS_PROTO_MESSAGE_DUMP
1661  void dump_to(std::string &out) const override;
1662 #endif
1663 
1664  protected:
1665  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1666  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1667 };
1669  public:
1670  uint32_t port{0};
1671  bool error{false};
1672  void encode(ProtoWriteBuffer buffer) const override;
1673 #ifdef HAS_PROTO_MESSAGE_DUMP
1674  void dump_to(std::string &out) const override;
1675 #endif
1676 
1677  protected:
1678  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1679 };
1681  public:
1682  std::string name{};
1683  std::string value{};
1684  void encode(ProtoWriteBuffer buffer) const override;
1685 #ifdef HAS_PROTO_MESSAGE_DUMP
1686  void dump_to(std::string &out) const override;
1687 #endif
1688 
1689  protected:
1690  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1691 };
1693  public:
1695  std::vector<VoiceAssistantEventData> data{};
1696  void encode(ProtoWriteBuffer buffer) const override;
1697 #ifdef HAS_PROTO_MESSAGE_DUMP
1698  void dump_to(std::string &out) const override;
1699 #endif
1700 
1701  protected:
1702  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1703  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1704 };
1706  public:
1707  std::string object_id{};
1708  uint32_t key{0};
1709  std::string name{};
1710  std::string unique_id{};
1711  std::string icon{};
1712  bool disabled_by_default{false};
1713  enums::EntityCategory entity_category{};
1714  uint32_t supported_features{0};
1715  bool requires_code{false};
1716  bool requires_code_to_arm{false};
1717  void encode(ProtoWriteBuffer buffer) const override;
1718 #ifdef HAS_PROTO_MESSAGE_DUMP
1719  void dump_to(std::string &out) const override;
1720 #endif
1721 
1722  protected:
1723  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1724  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1725  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1726 };
1728  public:
1729  uint32_t key{0};
1731  void encode(ProtoWriteBuffer buffer) const override;
1732 #ifdef HAS_PROTO_MESSAGE_DUMP
1733  void dump_to(std::string &out) const override;
1734 #endif
1735 
1736  protected:
1737  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1738  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1739 };
1741  public:
1742  uint32_t key{0};
1744  std::string code{};
1745  void encode(ProtoWriteBuffer buffer) const override;
1746 #ifdef HAS_PROTO_MESSAGE_DUMP
1747  void dump_to(std::string &out) const override;
1748 #endif
1749 
1750  protected:
1751  bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
1752  bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
1753  bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
1754 };
1755 
1756 } // namespace api
1757 } // namespace esphome
float target_temperature_low
Definition: climate.h:543
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:544
ClimateSwingMode swing_mode
Definition: climate.h:539
FanDirection direction
Definition: fan.h:37
uint8_t custom_preset
Definition: climate.h:537
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:531
bool oscillating
Definition: fan.h:36
float position
Definition: cover.h:14
uint8_t custom_fan_mode
Definition: climate.h:532
float target_temperature
Definition: climate.h:541
ClimatePreset preset
Definition: climate.h:536
bool state
Definition: fan.h:34