[][src]Enum gcp_client::google::cloud::mediatranslation::v1beta1::streaming_translate_speech_response::SpeechEventType

#[repr(i32)]pub enum SpeechEventType {
    Unspecified,
    EndOfSingleUtterance,
}

Indicates the type of speech event.

Variants

Unspecified

No speech event specified.

EndOfSingleUtterance

This event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). When the client receives 'END_OF_SINGLE_UTTERANCE' event, the client should stop sending the requests. However, clients should keep receiving remaining responses until the stream is terminated. To construct the complete sentence in a streaming way, one should override (if 'is_final' of previous response is false), or append (if 'is_final' of previous response is true). This event is only sent if single_utterance was set to true, and is not used otherwise.

Implementations

impl SpeechEventType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of SpeechEventType.

pub fn from_i32(value: i32) -> Option<SpeechEventType>[src]

Converts an i32 to a SpeechEventType, or None if value is not a valid variant.

Trait Implementations

impl Clone for SpeechEventType[src]

impl Copy for SpeechEventType[src]

impl Debug for SpeechEventType[src]

impl Default for SpeechEventType[src]

impl Eq for SpeechEventType[src]

impl From<SpeechEventType> for i32[src]

impl Hash for SpeechEventType[src]

impl Ord for SpeechEventType[src]

impl PartialEq<SpeechEventType> for SpeechEventType[src]

impl PartialOrd<SpeechEventType> for SpeechEventType[src]

impl StructuralEq for SpeechEventType[src]

impl StructuralPartialEq for SpeechEventType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]