77#ifdef ESPHOME_PROJECT_NAME
80#ifdef ESPHOME_PROJECT_NAME
86#ifdef USE_BLUETOOTH_PROXY
91#ifdef USE_VOICE_ASSISTANT
97#ifdef USE_BLUETOOTH_PROXY
104 for (
const auto &it : this->
devices) {
109 for (
const auto &it : this->
areas) {
116#ifdef USE_ZWAVE_PROXY
119#ifdef USE_ZWAVE_PROXY
132#ifdef ESPHOME_PROJECT_NAME
135#ifdef ESPHOME_PROJECT_NAME
141#ifdef USE_BLUETOOTH_PROXY
146#ifdef USE_VOICE_ASSISTANT
152#ifdef USE_BLUETOOTH_PROXY
159 for (
const auto &it : this->
devices) {
164 for (
const auto &it : this->
areas) {
169 size.add_message_object(2, this->
area);
171#ifdef USE_ZWAVE_PROXY
174#ifdef USE_ZWAVE_PROXY
178#ifdef USE_BINARY_SENSOR
181 buffer.encode_fixed32(2, this->
key);
186#ifdef USE_ENTITY_ICON
201#ifdef USE_ENTITY_ICON
210 buffer.encode_fixed32(1, this->
key);
218 size.add_fixed32(1, this->
key);
229 buffer.encode_fixed32(2, this->
key);
236#ifdef USE_ENTITY_ICON
254#ifdef USE_ENTITY_ICON
264 buffer.encode_fixed32(1, this->
key);
265 buffer.encode_float(3, this->
position);
266 buffer.encode_float(4, this->
tilt);
273 size.add_fixed32(1, this->
key);
322 buffer.encode_fixed32(2, this->
key);
329#ifdef USE_ENTITY_ICON
349#ifdef USE_ENTITY_ICON
363 buffer.encode_fixed32(1, this->
key);
374 size.add_fixed32(1, this->
key);
448 buffer.encode_fixed32(2, this->
key);
455 for (
const char *it : *this->
effects) {
459#ifdef USE_ENTITY_ICON
479 for (
const char *it : *this->
effects) {
484#ifdef USE_ENTITY_ICON
493 buffer.encode_fixed32(1, this->
key);
498 buffer.encode_float(4, this->
red);
499 buffer.encode_float(5, this->
green);
500 buffer.encode_float(6, this->
blue);
501 buffer.encode_float(7, this->
white);
511 size.add_fixed32(1, this->
key);
640 buffer.encode_fixed32(2, this->
key);
642#ifdef USE_ENTITY_ICON
660#ifdef USE_ENTITY_ICON
675 buffer.encode_fixed32(1, this->
key);
676 buffer.encode_float(2, this->
state);
683 size.add_fixed32(1, this->
key);
694 buffer.encode_fixed32(2, this->
key);
696#ifdef USE_ENTITY_ICON
711#ifdef USE_ENTITY_ICON
723 buffer.encode_fixed32(1, this->
key);
730 size.add_fixed32(1, this->
key);
762#ifdef USE_TEXT_SENSOR
765 buffer.encode_fixed32(2, this->
key);
767#ifdef USE_ENTITY_ICON
781#ifdef USE_ENTITY_ICON
792 buffer.encode_fixed32(1, this->
key);
800 size.add_fixed32(1, this->
key);
826 size.add_uint32(1,
static_cast<uint32_t
>(this->
level));
845#ifdef USE_API_HOMEASSISTANT_SERVICES
856 for (
auto &it : this->
data) {
866#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
869#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
872#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
882#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
885#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
888#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
893#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
913#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
926#ifdef USE_API_HOMEASSISTANT_STATES
1032#ifdef USE_API_USER_DEFINED_ACTIONS
1043 buffer.encode_fixed32(2, this->
key);
1044 for (
auto &it : this->
args) {
1117#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1122#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1135 this->
args.emplace_back();
1155 this->
args.init(count_args);
1159#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1164#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1172#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1180 buffer.encode_fixed32(2, this->
key);
1183#ifdef USE_ENTITY_ICON
1196#ifdef USE_ENTITY_ICON
1205 buffer.encode_fixed32(1, this->
key);
1213 size.add_fixed32(1, this->
key);
1237 buffer.encode_fixed32(2, this->
key);
1264#ifdef USE_ENTITY_ICON
1319#ifdef USE_ENTITY_ICON
1334 buffer.encode_fixed32(1, this->
key);
1353 size.add_fixed32(1, this->
key);
1463#ifdef USE_WATER_HEATER
1466 buffer.encode_fixed32(2, this->
key);
1468#ifdef USE_ENTITY_ICON
1488#ifdef USE_ENTITY_ICON
1507 buffer.encode_fixed32(1, this->
key);
1519 size.add_fixed32(1, this->
key);
1574 buffer.encode_fixed32(2, this->
key);
1576#ifdef USE_ENTITY_ICON
1579 buffer.encode_float(6, this->
min_value);
1580 buffer.encode_float(7, this->
max_value);
1581 buffer.encode_float(8, this->
step);
1595#ifdef USE_ENTITY_ICON
1611 buffer.encode_fixed32(1, this->
key);
1612 buffer.encode_float(2, this->
state);
1619 size.add_fixed32(1, this->
key);
1655 buffer.encode_fixed32(2, this->
key);
1657#ifdef USE_ENTITY_ICON
1660 for (
const char *it : *this->
options) {
1673#ifdef USE_ENTITY_ICON
1677 for (
const char *it : *this->
options) {
1688 buffer.encode_fixed32(1, this->
key);
1696 size.add_fixed32(1, this->
key);
1740 buffer.encode_fixed32(2, this->
key);
1742#ifdef USE_ENTITY_ICON
1746 for (
const char *it : *this->
tones) {
1760#ifdef USE_ENTITY_ICON
1765 for (
const char *it : *this->
tones) {
1777 buffer.encode_fixed32(1, this->
key);
1784 size.add_fixed32(1, this->
key);
1848 buffer.encode_fixed32(2, this->
key);
1850#ifdef USE_ENTITY_ICON
1867#ifdef USE_ENTITY_ICON
1881 buffer.encode_fixed32(1, this->
key);
1888 size.add_fixed32(1, this->
key);
1937 buffer.encode_fixed32(2, this->
key);
1939#ifdef USE_ENTITY_ICON
1953#ifdef USE_ENTITY_ICON
1986#ifdef USE_MEDIA_PLAYER
2003 buffer.encode_fixed32(2, this->
key);
2005#ifdef USE_ENTITY_ICON
2023#ifdef USE_ENTITY_ICON
2036 buffer.encode_fixed32(1, this->
key);
2038 buffer.encode_float(3, this->
volume);
2045 size.add_fixed32(1, this->
key);
2108#ifdef USE_BLUETOOTH_PROXY
2121 buffer.encode_sint32(2, this->
rssi);
2164 buffer.encode_int32(4, this->
error);
2183 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2191 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2199 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2211 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2221 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2232 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2372 for (
const auto &it : this->
allocated) {
2381 for (
const auto &it : this->
allocated) {
2383 size.add_uint64_force(1, it);
2390 buffer.encode_int32(3, this->
error);
2416 buffer.encode_int32(3, this->
error);
2426 buffer.encode_int32(3, this->
error);
2436 buffer.encode_int32(3, this->
error);
2449 size.add_uint32(1,
static_cast<uint32_t
>(this->
state));
2464#ifdef USE_VOICE_ASSISTANT
2543 this->
data.emplace_back();
2654 size.add_length(1, this->
id.
size());
2675 this->
id =
StringRef(
reinterpret_cast<const char *
>(value.
data()), value.
size());
2742#ifdef USE_ALARM_CONTROL_PANEL
2745 buffer.encode_fixed32(2, this->
key);
2747#ifdef USE_ENTITY_ICON
2763#ifdef USE_ENTITY_ICON
2776 buffer.encode_fixed32(1, this->
key);
2783 size.add_fixed32(1, this->
key);
2829 buffer.encode_fixed32(2, this->
key);
2831#ifdef USE_ENTITY_ICON
2848#ifdef USE_ENTITY_ICON
2862 buffer.encode_fixed32(1, this->
key);
2870 size.add_fixed32(1, this->
key);
2911#ifdef USE_DATETIME_DATE
2914 buffer.encode_fixed32(2, this->
key);
2916#ifdef USE_ENTITY_ICON
2929#ifdef USE_ENTITY_ICON
2939 buffer.encode_fixed32(1, this->
key);
2949 size.add_fixed32(1, this->
key);
2990#ifdef USE_DATETIME_TIME
2993 buffer.encode_fixed32(2, this->
key);
2995#ifdef USE_ENTITY_ICON
3008#ifdef USE_ENTITY_ICON
3018 buffer.encode_fixed32(1, this->
key);
3028 size.add_fixed32(1, this->
key);
3072 buffer.encode_fixed32(2, this->
key);
3074#ifdef USE_ENTITY_ICON
3091#ifdef USE_ENTITY_ICON
3107 buffer.encode_fixed32(1, this->
key);
3114 size.add_fixed32(1, this->
key);
3124 buffer.encode_fixed32(2, this->
key);
3126#ifdef USE_ENTITY_ICON
3143#ifdef USE_ENTITY_ICON
3157 buffer.encode_fixed32(1, this->
key);
3158 buffer.encode_float(2, this->
position);
3165 size.add_fixed32(1, this->
key);
3204#ifdef USE_DATETIME_DATETIME
3207 buffer.encode_fixed32(2, this->
key);
3209#ifdef USE_ENTITY_ICON
3222#ifdef USE_ENTITY_ICON
3232 buffer.encode_fixed32(1, this->
key);
3240 size.add_fixed32(1, this->
key);
3276 buffer.encode_fixed32(2, this->
key);
3278#ifdef USE_ENTITY_ICON
3292#ifdef USE_ENTITY_ICON
3303 buffer.encode_fixed32(1, this->
key);
3307 buffer.encode_float(5, this->
progress);
3318 size.add_fixed32(1, this->
key);
3358#ifdef USE_ZWAVE_PROXY
3400 size.add_uint32(1,
static_cast<uint32_t
>(this->
type));
3407 buffer.encode_fixed32(2, this->
key);
3409#ifdef USE_ENTITY_ICON
3423#ifdef USE_ENTITY_ICON
3480 buffer.encode_fixed32(2, this->
key);
3481 for (
const auto &it : *this->
timings) {
3482 buffer.encode_sint32(3, it,
true);
3490 if (!this->
timings->empty()) {
3491 for (
const auto &it : *this->
timings) {
constexpr bool empty() const
Check if the set is empty.
void push_back(const T &value)
Add element without bounds checking Caller must ensure sufficient capacity was allocated via init() S...
StringRef is a reference to a string owned by something else.
constexpr size_type size() const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
enums::AlarmControlPanelStateCommand command
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
enums::AlarmControlPanelState state
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
enums::BluetoothDeviceRequestType request_type
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
FixedVector< BluetoothGATTDescriptor > descriptors
void calculate_size(ProtoSize &size) const override
std::array< uint64_t, 2 > uuid
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
std::array< uint64_t, 2 > uuid
void encode(ProtoWriteBuffer &buffer) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
std::vector< BluetoothGATTService > services
void encode(ProtoWriteBuffer &buffer) const override
const uint8_t * data_ptr_
void calculate_size(ProtoSize &size) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer &buffer) const override
const uint8_t * data_ptr_
void calculate_size(ProtoSize &size) const override
FixedVector< BluetoothGATTCharacteristic > characteristics
void calculate_size(ProtoSize &size) const override
std::array< uint64_t, 2 > uuid
void encode(ProtoWriteBuffer &buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
uint16_t advertisements_len
enums::BluetoothScannerMode mode
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
enums::BluetoothScannerMode mode
enums::BluetoothScannerState state
enums::BluetoothScannerMode configured_mode
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void calculate_size(ProtoSize &size) const override
const uint8_t * data_ptr_
void encode(ProtoWriteBuffer &buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool has_target_temperature_high
float target_temperature_low
bool has_target_temperature_low
StringRef custom_fan_mode
float target_temperature_high
enums::ClimateSwingMode swing_mode
enums::ClimateFanMode fan_mode
bool has_target_temperature
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
enums::ClimatePreset preset
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
enums::ClimateFanMode fan_mode
float target_temperature_low
enums::ClimateSwingMode swing_mode
enums::ClimateAction action
enums::ClimatePreset preset
StringRef custom_fan_mode
float current_temperature
void calculate_size(ProtoSize &size) const override
float target_temperature_high
void encode(ProtoWriteBuffer &buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
enums::CoverOperation current_operation
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
StringRef project_version
uint32_t zwave_proxy_feature_flags
void calculate_size(ProtoSize &size) const override
StringRef esphome_version
void encode(ProtoWriteBuffer &buffer) const override
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
StringRef bluetooth_mac_address
uint32_t bluetooth_proxy_feature_flags
StringRef compilation_time
uint32_t voice_assistant_feature_flags
bool api_encryption_supported
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void decode(const uint8_t *buffer, size_t length) override
FixedVector< bool > bool_array
FixedVector< float > float_array
FixedVector< std::string > string_array
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
FixedVector< int32_t > int_array
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
FixedVector< ExecuteServiceArgument > args
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void decode(const uint8_t *buffer, size_t length) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void calculate_size(ProtoSize &size) const override
uint16_t response_data_len
void encode(ProtoWriteBuffer &buffer) const override
const uint8_t * response_data
enums::FanDirection direction
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::FanDirection direction
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
ParsedTimezone parsed_timezone
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
uint32_t api_version_major
uint32_t api_version_minor
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint32_t api_version_minor
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
uint32_t api_version_major
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer &buffer) const override
FixedVector< HomeassistantServiceMap > variables
FixedVector< HomeassistantServiceMap > data
StringRef response_template
FixedVector< HomeassistantServiceMap > data_template
void calculate_size(ProtoSize &size) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
const uint8_t * response_data
uint16_t response_data_len
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
enums::EntityCategory entity_category
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
const std::vector< int32_t > * timings
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
const uint8_t * timings_data_
uint32_t carrier_frequency
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool has_color_temperature
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::ColorMode color_mode
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool has_transition_length
uint32_t transition_length
bool has_color_brightness
enums::ColorMode color_mode
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
bool requires_code_to_arm
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
uint32_t supported_features
void calculate_size(ProtoSize &size) const override
bool is_status_binary_sensor
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
const std::vector< const char * > * supported_custom_presets
const climate::ClimateSwingModeMask * supported_swing_modes
float visual_max_humidity
const std::vector< const char * > * supported_custom_fan_modes
bool supports_current_temperature
bool supports_current_humidity
void calculate_size(ProtoSize &size) const override
bool supports_target_humidity
float visual_min_humidity
float visual_max_temperature
float visual_target_temperature_step
bool supports_two_point_target_temperature
const climate::ClimatePresetMask * supported_presets
const climate::ClimateFanModeMask * supported_fan_modes
const climate::ClimateModeMask * supported_modes
float visual_min_temperature
float visual_current_temperature_step
void encode(ProtoWriteBuffer &buffer) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
const FixedVector< const char * > * event_types
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
const std::vector< const char * > * supported_preset_modes
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
int32_t supported_speed_count
bool supports_oscillation
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
const FixedVector< const char * > * effects
void encode(ProtoWriteBuffer &buffer) const override
const light::ColorModeMask * supported_color_modes
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
StringRef unit_of_measurement
void calculate_size(ProtoSize &size) const override
const FixedVector< const char * > * options
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
int32_t accuracy_decimals
StringRef unit_of_measurement
void encode(ProtoWriteBuffer &buffer) const override
enums::SensorStateClass state_class
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
enums::ServiceArgType type
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
enums::SupportsResponseType supports_response
FixedVector< ListEntitiesServicesArgument > args
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
const FixedVector< const char * > * tones
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void encode(ProtoWriteBuffer &buffer) const override
float target_temperature_step
const water_heater::WaterHeaterModeMask * supported_modes
void calculate_size(ProtoSize &size) const override
uint32_t supported_features
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::LockCommand command
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
int32_t std_offset_seconds
int32_t dst_offset_seconds
uint32_t as_fixed32() const
virtual void decode(const uint8_t *buffer, size_t length)
static uint32_t count_repeated_field(const uint8_t *buffer, size_t length, uint32_t target_field_id)
Count occurrences of a repeated field in a protobuf buffer.
void decode_to_message(ProtoDecodableMessage &msg) const
Decode the length-delimited data into an existing ProtoDecodableMessage instance.
const uint8_t * data() const
std::string as_string() const
void add_message_object(uint32_t field_id_size, const ProtoMessage &message)
Calculates and adds the size of a nested message field to the total message size.
void add_message_object_force(uint32_t field_id_size, const ProtoMessage &message)
Calculates and adds the size of a nested message field to the total message size (force version)
void add_float(uint32_t field_id_size, float value)
Calculates and adds the size of a float field to the total message size.
void add_uint32_force(uint32_t field_id_size, uint32_t value)
Calculates and adds the size of a uint32 field to the total message size (force version)
void add_sint32(uint32_t field_id_size, int32_t value)
Calculates and adds the size of a sint32 field to the total message size.
void add_bool(uint32_t field_id_size, bool value)
Calculates and adds the size of a boolean field to the total message size.
void add_uint32(uint32_t field_id_size, uint32_t value)
Calculates and adds the size of a uint32 field to the total message size.
void add_repeated_message(uint32_t field_id_size, const std::vector< MessageType > &messages)
Calculates and adds the sizes of all messages in a repeated field to the total message size.
void add_length_force(uint32_t field_id_size, size_t len)
Calculates and adds the size of a length-delimited field (string/bytes) to the total message size (re...
void add_int32(uint32_t field_id_size, int32_t value)
Common parameters for all add_*_field methods.
void add_sint32_force(uint32_t field_id_size, int32_t value)
Calculates and adds the size of a sint32 field to the total message size (force version)
void add_uint64_force(uint32_t field_id_size, uint64_t value)
Calculates and adds the size of a uint64 field to the total message size (force version)
void add_fixed32(uint32_t field_id_size, uint32_t value)
Calculates and adds the size of a fixed32 field to the total message size.
void add_length(uint32_t field_id_size, size_t len)
Calculates and adds the size of a length-delimited field (string/bytes) to the total message size.
Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
constexpr uint64_t as_uint64() const
constexpr int32_t as_int32() const
constexpr uint32_t as_uint32() const
constexpr bool as_bool() const
constexpr int32_t as_sint32() const
void encode_string(uint32_t field_id, const char *string, size_t len, bool force=false)
void encode_bool(uint32_t field_id, bool value, bool force=false)
void encode_uint64(uint32_t field_id, uint64_t value, bool force=false)
void encode_uint32(uint32_t field_id, uint32_t value, bool force=false)
void encode_bytes(uint32_t field_id, const uint8_t *data, size_t len, bool force=false)
void encode_message(uint32_t field_id, const ProtoMessage &value, bool force=true)
Encode a nested message field (force=true for repeated, false for singular)
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void calculate_size(ProtoSize &size) const override
const uint8_t * message_ptr_
void encode(ProtoWriteBuffer &buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::UpdateCommand command
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
StringRef current_version
void encode(ProtoWriteBuffer &buffer) const override
StringRef release_summary
void calculate_size(ProtoSize &size) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::ValveOperation current_operation
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
StringRef preannounce_media_id
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void calculate_size(ProtoSize &size) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer &buffer) const override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
uint32_t noise_suppression_level
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
void calculate_size(ProtoSize &size) const override
std::vector< VoiceAssistantWakeWord > available_wake_words
uint32_t max_active_wake_words
const std::vector< std::string > * active_wake_words
void encode(ProtoWriteBuffer &buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
enums::VoiceAssistantEvent event_type
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
std::vector< VoiceAssistantEventData > data
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
std::vector< std::string > trained_languages
StringRef conversation_id
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer &buffer) const override
StringRef wake_word_phrase
VoiceAssistantAudioSettings audio_settings
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
std::vector< std::string > active_wake_words
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
enums::VoiceAssistantTimerEvent event_type
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
std::vector< std::string > trained_languages
float target_temperature_low
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enums::WaterHeaterMode mode
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
float target_temperature_high
float current_temperature
float target_temperature_low
float target_temperature_high
void calculate_size(ProtoSize &size) const override
enums::WaterHeaterMode mode
void encode(ProtoWriteBuffer &buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer &buffer) const override
void calculate_size(ProtoSize &size) const override
void calculate_size(ProtoSize &size) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer &buffer) const override
enums::ZWaveProxyRequestType type
BluetoothDeviceRequestType
AlarmControlPanelStateCommand
uint16_t count_packed_varints(const uint8_t *data, size_t len)
Count number of varints in a packed buffer.