Enum google_api_proto::google::assistant::embedded::v1alpha1::converse_response::ConverseResponse
source · pub enum ConverseResponse {
Error(Status),
EventType(i32),
AudioOut(AudioOut),
Result(ConverseResult),
}
Expand description
Exactly one of these fields will be populated in each ConverseResponse
.
Variants§
Error(Status)
Output-only If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation. If an error occurs during processing, this message will be set and there will be no further messages sent.
EventType(i32)
Output-only Indicates the type of event.
AudioOut(AudioOut)
Output-only The audio containing the assistant’s response to the query.
Result(ConverseResult)
Output-only The semantic result for the user’s spoken query.
Implementations§
source§impl ConverseResponse
impl ConverseResponse
sourcepub fn merge(
field: &mut Option<ConverseResponse>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<ConverseResponse>, 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 ConverseResponse
impl Clone for ConverseResponse
source§fn clone(&self) -> ConverseResponse
fn clone(&self) -> ConverseResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConverseResponse
impl Debug for ConverseResponse
source§impl PartialEq for ConverseResponse
impl PartialEq for ConverseResponse
source§fn eq(&self, other: &ConverseResponse) -> bool
fn eq(&self, other: &ConverseResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConverseResponse
Auto Trait Implementations§
impl !Freeze for ConverseResponse
impl RefUnwindSafe for ConverseResponse
impl Send for ConverseResponse
impl Sync for ConverseResponse
impl Unpin for ConverseResponse
impl UnwindSafe for ConverseResponse
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request