52 size.add_uint32(1, this->
area_id);
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
124 size.add_length(1, this->
name.
size());
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
186#ifdef USE_ENTITY_ICON
201#ifdef USE_ENTITY_ICON
218 size.add_fixed32(1, this->
key);
236#ifdef USE_ENTITY_ICON
254#ifdef USE_ENTITY_ICON
273 size.add_fixed32(1, this->
key);
329#ifdef USE_ENTITY_ICON
349#ifdef USE_ENTITY_ICON
374 size.add_fixed32(1, 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
511 size.add_fixed32(1, this->
key);
642#ifdef USE_ENTITY_ICON
660#ifdef USE_ENTITY_ICON
683 size.add_fixed32(1, this->
key);
696#ifdef USE_ENTITY_ICON
711#ifdef USE_ENTITY_ICON
730 size.add_fixed32(1, this->
key);
762#ifdef USE_TEXT_SENSOR
767#ifdef USE_ENTITY_ICON
781#ifdef USE_ENTITY_ICON
800 size.add_fixed32(1, this->
key);
826 size.add_uint32(1,
static_cast<uint32_t
>(this->
level));
845#ifdef USE_API_HOMEASSISTANT_SERVICES
851 size.add_length(1, this->
key.
size());
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
978#ifdef USE_API_USER_DEFINED_ACTIONS
984 size.add_length(1, this->
name.
size());
990 for (
auto &it : this->
args) {
996 size.add_length(1, this->
name.
size());
1063#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1068#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1081 this->
args.emplace_back();
1101 this->
args.init(count_args);
1105#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1110#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1115 size.add_uint32(1, this->
call_id);
1118#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1129#ifdef USE_ENTITY_ICON
1142#ifdef USE_ENTITY_ICON
1159 size.add_fixed32(1, this->
key);
1210#ifdef USE_ENTITY_ICON
1265#ifdef USE_ENTITY_ICON
1299 size.add_fixed32(1, this->
key);
1409#ifdef USE_WATER_HEATER
1414#ifdef USE_ENTITY_ICON
1434#ifdef USE_ENTITY_ICON
1465 size.add_fixed32(1, this->
key);
1522#ifdef USE_ENTITY_ICON
1541#ifdef USE_ENTITY_ICON
1565 size.add_fixed32(1, this->
key);
1603#ifdef USE_ENTITY_ICON
1606 for (
const char *it : *this->
options) {
1619#ifdef USE_ENTITY_ICON
1623 for (
const char *it : *this->
options) {
1642 size.add_fixed32(1, this->
key);
1688#ifdef USE_ENTITY_ICON
1692 for (
const char *it : *this->
tones) {
1706#ifdef USE_ENTITY_ICON
1711 for (
const char *it : *this->
tones) {
1730 size.add_fixed32(1, this->
key);
1796#ifdef USE_ENTITY_ICON
1813#ifdef USE_ENTITY_ICON
1834 size.add_fixed32(1, this->
key);
1885#ifdef USE_ENTITY_ICON
1899#ifdef USE_ENTITY_ICON
1932#ifdef USE_MEDIA_PLAYER
1951#ifdef USE_ENTITY_ICON
1969#ifdef USE_ENTITY_ICON
1991 size.add_fixed32(1, this->
key);
2054#ifdef USE_BLUETOOTH_PROXY
2072 size.add_uint64(1, this->
address);
2113 size.add_uint64(1, this->
address);
2129 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2137 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2145 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2157 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2167 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2178 if (this->
uuid[0] != 0 || this->
uuid[1] != 0) {
2193 size.add_uint64(1, this->
address);
2219 size.add_uint64(1, this->
address);
2311 size.add_uint64(1, this->
address);
2318 for (
const auto &it : this->
allocated) {
2325 size.add_uint32(1, this->
free);
2327 for (
const auto &it : this->
allocated) {
2329 size.add_uint64_force(1, it);
2339 size.add_uint64(1, this->
address);
2348 size.add_uint64(1, this->
address);
2356 size.add_uint64(1, this->
address);
2365 size.add_uint64(1, this->
address);
2375 size.add_uint64(1, this->
address);
2385 size.add_uint64(1, this->
address);
2395 size.add_uint32(1,
static_cast<uint32_t
>(this->
state));
2410#ifdef USE_VOICE_ASSISTANT
2442 size.add_bool(1, this->
start);
2489 this->
data.emplace_back();
2524 size.add_length(1, this->
data_len);
2600 size.add_length(1, this->
id.size());
2621 this->
id =
StringRef(
reinterpret_cast<const char *
>(value.
data()), value.
size());
2688#ifdef USE_ALARM_CONTROL_PANEL
2693#ifdef USE_ENTITY_ICON
2709#ifdef USE_ENTITY_ICON
2729 size.add_fixed32(1, this->
key);
2777#ifdef USE_ENTITY_ICON
2794#ifdef USE_ENTITY_ICON
2816 size.add_fixed32(1, this->
key);
2857#ifdef USE_DATETIME_DATE
2862#ifdef USE_ENTITY_ICON
2875#ifdef USE_ENTITY_ICON
2895 size.add_fixed32(1, this->
key);
2936#ifdef USE_DATETIME_TIME
2941#ifdef USE_ENTITY_ICON
2954#ifdef USE_ENTITY_ICON
2974 size.add_fixed32(1, this->
key);
3020#ifdef USE_ENTITY_ICON
3037#ifdef USE_ENTITY_ICON
3060 size.add_fixed32(1, this->
key);
3072#ifdef USE_ENTITY_ICON
3089#ifdef USE_ENTITY_ICON
3111 size.add_fixed32(1, this->
key);
3150#ifdef USE_DATETIME_DATETIME
3155#ifdef USE_ENTITY_ICON
3168#ifdef USE_ENTITY_ICON
3186 size.add_fixed32(1, this->
key);
3224#ifdef USE_ENTITY_ICON
3238#ifdef USE_ENTITY_ICON
3264 size.add_fixed32(1, this->
key);
3304#ifdef USE_ZWAVE_PROXY
3346 size.add_uint32(1,
static_cast<uint32_t
>(this->
type));
3355#ifdef USE_ENTITY_ICON
3369#ifdef USE_ENTITY_ICON
3427 for (
const auto &it : *this->
timings) {
3436 if (!this->
timings->empty()) {
3437 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 calculate_size(ProtoSize &size) const override
enums::AlarmControlPanelState state
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
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
void encode(ProtoWriteBuffer buffer) const override
FixedVector< BluetoothGATTDescriptor > descriptors
void calculate_size(ProtoSize &size) const override
std::array< uint64_t, 2 > uuid
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
void encode(ProtoWriteBuffer buffer) const override
std::array< uint64_t, 2 > uuid
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 calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer buffer) const override
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
void encode(ProtoWriteBuffer buffer) const override
void calculate_size(ProtoSize &size) const override
uint16_t advertisements_len
enums::BluetoothScannerMode mode
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
enums::BluetoothScannerMode mode
enums::BluetoothScannerState state
enums::BluetoothScannerMode configured_mode
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
void encode(ProtoWriteBuffer buffer) const override
enums::ClimatePreset preset
StringRef custom_fan_mode
float current_temperature
void calculate_size(ProtoSize &size) const override
float target_temperature_high
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
enums::CoverOperation current_operation
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
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
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
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
void encode(ProtoWriteBuffer buffer) const override
uint16_t response_data_len
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
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
FixedVector< HomeassistantServiceMap > variables
FixedVector< HomeassistantServiceMap > data
StringRef response_template
FixedVector< HomeassistantServiceMap > data_template
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_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
void encode(ProtoWriteBuffer buffer) const override
enums::ColorMode color_mode
void calculate_size(ProtoSize &size) const override
bool requires_code_to_arm
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer buffer) const override
uint32_t supported_features
void encode(ProtoWriteBuffer buffer) const override
void calculate_size(ProtoSize &size) const override
bool is_status_binary_sensor
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
void encode(ProtoWriteBuffer buffer) const override
const climate::ClimateModeMask * supported_modes
float visual_min_temperature
float visual_current_temperature_step
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
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 encode(ProtoWriteBuffer buffer) const override
void calculate_size(ProtoSize &size) 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
const light::ColorModeMask * supported_color_modes
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
StringRef unit_of_measurement
void encode(ProtoWriteBuffer buffer) const override
void calculate_size(ProtoSize &size) const override
const FixedVector< const char * > * options
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void calculate_size(ProtoSize &size) const override
int32_t accuracy_decimals
StringRef unit_of_measurement
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 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 calculate_size(ProtoSize &size) 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
void encode(ProtoWriteBuffer buffer) 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 calculate_size(ProtoSize &size) const override
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
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
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_float(uint32_t field_id, float value, bool force=false)
void encode_int32(uint32_t field_id, int32_t value, bool force=false)
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_sint32(uint32_t field_id, int32_t value, bool force=false)
void encode_message(uint32_t field_id, const ProtoMessage &value)
void encode_bytes(uint32_t field_id, const uint8_t *data, size_t len, bool force=false)
void encode_fixed32(uint32_t field_id, uint32_t value, bool force=false)
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 calculate_size(ProtoSize &size) const override
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_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 calculate_size(ProtoSize &size) const override
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
void calculate_size(ProtoSize &size) const override
void encode(ProtoWriteBuffer buffer) 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
StringRef release_summary
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
void encode(ProtoWriteBuffer buffer) const override
enums::ValveOperation current_operation
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 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
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
StringRef wake_word_phrase
VoiceAssistantAudioSettings audio_settings
void encode(ProtoWriteBuffer buffer) const override
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
enums::ZWaveProxyRequestType type
void encode(ProtoWriteBuffer buffer) const override
BluetoothDeviceRequestType
AlarmControlPanelStateCommand
uint16_t count_packed_varints(const uint8_t *data, size_t len)
Count number of varints in a packed buffer.