Enum google_api_proto::google::assistant::embedded::v1alpha2::assist_request::Type
source · pub enum Type {
Config(AssistConfig),
AudioIn(Bytes),
}
Expand description
Exactly one of these fields must be specified in each AssistRequest
.
Variants§
Config(AssistConfig)
The config
message provides information to the recognizer that
specifies how to process the request.
The first AssistRequest
message must contain a config
message.
AudioIn(Bytes)
The audio data to be recognized. Sequential chunks of audio data are sent
in sequential AssistRequest
messages. The first AssistRequest
message must not contain audio_in
data and all subsequent
AssistRequest
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 Type
impl Type
sourcepub fn merge<B>(
field: &mut Option<Type>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Type>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
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 PartialEq for Type
impl PartialEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl !Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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