ESPHome  2024.9.2
Public Member Functions | Data Fields | Protected Member Functions
esphome::api::MediaPlayerCommandRequest Class Reference

#include <api_pb2.h>

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

Public Member Functions

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

Data Fields

uint32_t key {0}
 
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}
 

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 1326 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 5416 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 5406 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 5376 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 5442 of file api_pb2.cpp.

◆ encode()

void esphome::api::MediaPlayerCommandRequest::encode ( ProtoWriteBuffer  buffer) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 5430 of file api_pb2.cpp.

Field Documentation

◆ announcement

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

Definition at line 1336 of file api_pb2.h.

◆ command

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

Definition at line 1330 of file api_pb2.h.

◆ has_announcement

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

Definition at line 1335 of file api_pb2.h.

◆ has_command

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

Definition at line 1329 of file api_pb2.h.

◆ has_media_url

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

Definition at line 1333 of file api_pb2.h.

◆ has_volume

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

Definition at line 1331 of file api_pb2.h.

◆ key

uint32_t esphome::api::MediaPlayerCommandRequest::key {0}

Definition at line 1328 of file api_pb2.h.

◆ media_url

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

Definition at line 1334 of file api_pb2.h.

◆ volume

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

Definition at line 1332 of file api_pb2.h.


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