Enum google_api_proto::google::assistant::embedded::v1alpha1::converse_request::ConverseRequest
source · pub enum ConverseRequest {
Config(ConverseConfig),
AudioIn(Bytes),
}Expand description
Exactly one of these fields must be specified in each ConverseRequest.
Variants§
Config(ConverseConfig)
The config message provides information to the recognizer that
specifies how to process the request.
The first ConverseRequest message must contain a config message.
AudioIn(Bytes)
The audio data to be recognized. Sequential chunks of audio data are sent
in sequential ConverseRequest messages. The first ConverseRequest
message must not contain audio_in data and all subsequent
ConverseRequest messages must contain audio_in data. The audio bytes
must be encoded as specified in AudioInConfig.
Audio must be sent at approximately real-time (16000 samples per second).
An error will be returned if audio is sent significantly faster or
slower.
Implementations§
source§impl ConverseRequest
impl ConverseRequest
sourcepub fn merge(
field: &mut Option<ConverseRequest>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<ConverseRequest>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for ConverseRequest
impl Clone for ConverseRequest
source§fn clone(&self) -> ConverseRequest
fn clone(&self) -> ConverseRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ConverseRequest
impl Debug for ConverseRequest
source§impl PartialEq for ConverseRequest
impl PartialEq for ConverseRequest
source§fn eq(&self, other: &ConverseRequest) -> bool
fn eq(&self, other: &ConverseRequest) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ConverseRequest
Auto Trait Implementations§
impl !Freeze for ConverseRequest
impl RefUnwindSafe for ConverseRequest
impl Send for ConverseRequest
impl Sync for ConverseRequest
impl Unpin for ConverseRequest
impl UnwindSafe for ConverseRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request