ESPHome 2025.7.4
Loading...
Searching...
No Matches
esphome::api::MediaPlayerCommandRequest Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::MediaPlayerCommandRequest:
esphome::api::CommandProtoMessage esphome::api::ProtoMessage

Public Member Functions

const char * message_name () const override
 
void dump_to (std::string &out) const override
 
- Public Member Functions inherited from esphome::api::CommandProtoMessage
 ~CommandProtoMessage () override=default
 
- Public Member Functions inherited from esphome::api::ProtoMessage
virtual ~ProtoMessage ()=default
 
virtual void encode (ProtoWriteBuffer buffer) const
 
void decode (const uint8_t *buffer, size_t length)
 
virtual void calculate_size (uint32_t &total_size) const
 
std::string dump () const
 

Data Fields

bool has_command {false}
 
enums::MediaPlayerCommand command {}
 
bool has_volume {false}
 
float volume {0.0f}
 
bool has_media_url {false}
 
std::string media_url {}
 
bool has_announcement {false}
 
bool announcement {false}
 
- Data Fields inherited from esphome::api::CommandProtoMessage
uint32_t key {0}
 
uint32_t device_id {0}
 

Static Public Attributes

static constexpr uint8_t MESSAGE_TYPE = 65
 
static constexpr uint8_t ESTIMATED_SIZE = 35
 

Protected Member Functions

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
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
virtual bool decode_64bit (uint32_t field_id, Proto64Bit value)
 

Detailed Description

Definition at line 1674 of file api_pb2.h.

Member Function Documentation

◆ decode_32bit()

bool esphome::api::MediaPlayerCommandRequest::decode_32bit ( uint32_t field_id,
Proto32Bit value )
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1868 of file api_pb2.cpp.

◆ decode_length()

bool esphome::api::MediaPlayerCommandRequest::decode_length ( uint32_t field_id,
ProtoLengthDelimited value )
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1858 of file api_pb2.cpp.

◆ decode_varint()

bool esphome::api::MediaPlayerCommandRequest::decode_varint ( uint32_t field_id,
ProtoVarInt value )
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1824 of file api_pb2.cpp.

◆ dump_to()

void esphome::api::MediaPlayerCommandRequest::dump_to ( std::string & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 2879 of file api_pb2_dump.cpp.

◆ message_name()

const char * esphome::api::MediaPlayerCommandRequest::message_name ( ) const
inlineoverridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1679 of file api_pb2.h.

Field Documentation

◆ announcement

bool esphome::api::MediaPlayerCommandRequest::announcement {false}

Definition at line 1688 of file api_pb2.h.

◆ command

enums::MediaPlayerCommand esphome::api::MediaPlayerCommandRequest::command {}

Definition at line 1682 of file api_pb2.h.

◆ ESTIMATED_SIZE

uint8_t esphome::api::MediaPlayerCommandRequest::ESTIMATED_SIZE = 35
staticconstexpr

Definition at line 1677 of file api_pb2.h.

◆ has_announcement

bool esphome::api::MediaPlayerCommandRequest::has_announcement {false}

Definition at line 1687 of file api_pb2.h.

◆ has_command

bool esphome::api::MediaPlayerCommandRequest::has_command {false}

Definition at line 1681 of file api_pb2.h.

◆ has_media_url

bool esphome::api::MediaPlayerCommandRequest::has_media_url {false}

Definition at line 1685 of file api_pb2.h.

◆ has_volume

bool esphome::api::MediaPlayerCommandRequest::has_volume {false}

Definition at line 1683 of file api_pb2.h.

◆ media_url

std::string esphome::api::MediaPlayerCommandRequest::media_url {}

Definition at line 1686 of file api_pb2.h.

◆ MESSAGE_TYPE

uint8_t esphome::api::MediaPlayerCommandRequest::MESSAGE_TYPE = 65
staticconstexpr

Definition at line 1676 of file api_pb2.h.

◆ volume

float esphome::api::MediaPlayerCommandRequest::volume {0.0f}

Definition at line 1684 of file api_pb2.h.


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