ESPHome 2026.10.0
Loading...
Searching...
No Matches
esphome::api::DisconnectRequest Class Referencefinal

#include <api_pb2.h>

Inheritance diagram for esphome::api::DisconnectRequest:
esphome::api::ProtoDecodableMessage esphome::api::ProtoMessage

Public Member Functions

const LogString * message_name () const override
 
void decode (const uint8_t *buffer, size_t length)
 
uint8_t * encode (ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
 
uint32_t calculate_size () const
 
const char * dump_to (DumpBuffer &out) const override
 
- Public Member Functions inherited from esphome::api::ProtoMessage
uint8_t * encode (ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
 
uint32_t calculate_size () const
 

Static Public Member Functions

static uint8_t * encode_msg (const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
 
static uint32_t calc_size_msg (const void *self)
 
- Static Public Member Functions inherited from esphome::api::ProtoDecodableMessage
static void decode_fields (void *msg, const uint8_t *buffer, size_t length, DecodeFieldFn field)
 Walk buffer and hand every field to field.
 
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.
 
- Static Public Member Functions inherited from esphome::api::ProtoMessage
static uint8_t * encode_msg (const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
 
static uint32_t calc_size_msg (const void *self)
 

Data Fields

enums::DisconnectReason reason {}
 

Static Public Attributes

static constexpr uint16_t MESSAGE_TYPE = 5
 
static constexpr uint8_t ESTIMATED_SIZE = 2
 

Static Protected Member Functions

static void decode_field (void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
 

Additional Inherited Members

- Public Types inherited from esphome::api::ProtoDecodableMessage
using DecodeFieldFn = void (*)(void *msg, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
 Stores one decoded field into msg; generated per message type.
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
 ~ProtoMessage ()=default
 

Detailed Description

Definition at line 483 of file api_pb2.h.

Member Function Documentation

◆ calc_size_msg()

uint32_t esphome::api::DisconnectRequest::calc_size_msg ( const void * self)
static

Definition at line 61 of file api_pb2.cpp.

◆ calculate_size()

uint32_t esphome::api::DisconnectRequest::calculate_size ( ) const
inline

Definition at line 499 of file api_pb2.h.

◆ decode()

void esphome::api::DisconnectRequest::decode ( const uint8_t * buffer,
size_t length )
inline

Definition at line 491 of file api_pb2.h.

◆ decode_field()

void esphome::api::DisconnectRequest::decode_field ( void * self,
uint32_t tag,
const uint8_t * data,
proto_varint_value_t scalar )
staticprotected

Definition at line 47 of file api_pb2.cpp.

◆ dump_to()

const char * esphome::api::DisconnectRequest::dump_to ( DumpBuffer & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 969 of file api_pb2_dump.cpp.

◆ encode()

uint8_t * esphome::api::DisconnectRequest::encode ( ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
inline

Definition at line 495 of file api_pb2.h.

◆ encode_msg()

uint8_t * esphome::api::DisconnectRequest::encode_msg ( const void * self,
uint8_t *pos PROTO_ENCODE_DEBUG_PARAM )
static

Definition at line 56 of file api_pb2.cpp.

◆ message_name()

const LogString * esphome::api::DisconnectRequest::message_name ( ) const
inlineoverridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 488 of file api_pb2.h.

Field Documentation

◆ ESTIMATED_SIZE

uint8_t esphome::api::DisconnectRequest::ESTIMATED_SIZE = 2
staticconstexpr

Definition at line 486 of file api_pb2.h.

◆ MESSAGE_TYPE

uint16_t esphome::api::DisconnectRequest::MESSAGE_TYPE = 5
staticconstexpr

Definition at line 485 of file api_pb2.h.

◆ reason

enums::DisconnectReason esphome::api::DisconnectRequest::reason {}

Definition at line 490 of file api_pb2.h.


The documentation for this class was generated from the following files: