ESPHome  2022.9.1
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 {}
 

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 1199 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 4807 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 4797 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 4775 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 4831 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 4821 of file api_pb2.cpp.

Field Documentation

◆ command

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

Definition at line 1203 of file api_pb2.h.

◆ has_command

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

Definition at line 1202 of file api_pb2.h.

◆ has_media_url

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

Definition at line 1206 of file api_pb2.h.

◆ has_volume

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

Definition at line 1204 of file api_pb2.h.

◆ key

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

Definition at line 1201 of file api_pb2.h.

◆ media_url

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

Definition at line 1207 of file api_pb2.h.

◆ volume

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

Definition at line 1205 of file api_pb2.h.


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