Enum google_api_proto::google::cloud::dialogflow::v2::streaming_recognition_result::MessageType
source · #[repr(i32)]pub enum MessageType {
Unspecified = 0,
Transcript = 1,
EndOfSingleUtterance = 2,
}
Expand description
Type of the response message.
Variants§
Unspecified = 0
Not specified. Should never be used.
Transcript = 1
Message contains a (possibly partial) transcript.
EndOfSingleUtterance = 2
This event indicates that the server has detected the end of the user’s
speech utterance and expects no additional inputs.
Therefore, the server will not process additional audio (although it may
subsequently return additional results). The client should stop sending
additional audio data, half-close the gRPC connection, and wait for any
additional results until the server closes the gRPC connection. This
message is only sent if single_utterance
was set to true
, and is not
used otherwise.
Implementations§
source§impl MessageType
impl MessageType
source§impl MessageType
impl MessageType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for MessageType
impl Clone for MessageType
source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageType
impl Debug for MessageType
source§impl Default for MessageType
impl Default for MessageType
source§fn default() -> MessageType
fn default() -> MessageType
source§impl From<MessageType> for i32
impl From<MessageType> for i32
source§fn from(value: MessageType) -> i32
fn from(value: MessageType) -> i32
source§impl Hash for MessageType
impl Hash for MessageType
source§impl Ord for MessageType
impl Ord for MessageType
source§fn cmp(&self, other: &MessageType) -> Ordering
fn cmp(&self, other: &MessageType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for MessageType
impl PartialEq for MessageType
source§fn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MessageType
impl PartialOrd for MessageType
source§fn partial_cmp(&self, other: &MessageType) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for MessageType
impl TryFrom<i32> for MessageType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<MessageType, DecodeError>
fn try_from(value: i32) -> Result<MessageType, DecodeError>
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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