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