[][src]Struct gcp_client::google::cloud::mediatranslation::v1beta1::streaming_translate_speech_result::TextTranslationResult

pub struct TextTranslationResult {
    pub translation: String,
    pub is_final: bool,
    pub detected_source_language_code: String,
}

Text translation result.

Fields

translation: String

Output only. The translated sentence.

is_final: bool

Output only. If false, this StreamingTranslateSpeechResult represents an interim result that may change. If true, this is the final time the translation service will return this particular StreamingTranslateSpeechResult, the streaming translator will not return any further hypotheses for this portion of the transcript and corresponding audio.

detected_source_language_code: String

Output only. The source language code (BCP-47) detected in the audio. Speech translation result will translate in the most likely language detected including the alternative source languages and main source_language_code.

Trait Implementations

impl Clone for TextTranslationResult[src]

impl Debug for TextTranslationResult[src]

impl Default for TextTranslationResult[src]

impl Message for TextTranslationResult[src]

impl PartialEq<TextTranslationResult> for TextTranslationResult[src]

impl StructuralPartialEq for TextTranslationResult[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<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]