Struct gapi_grpc::google::cloud::mediatranslation::v1beta1::StreamingTranslateSpeechResponse[][src]

pub struct StreamingTranslateSpeechResponse {
    pub error: Option<Status>,
    pub result: Option<StreamingTranslateSpeechResult>,
    pub speech_event_type: i32,
}

A streaming speech translation response corresponding to a portion of the audio currently processed.

Fields

error: Option<Status>

Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.

result: Option<StreamingTranslateSpeechResult>

Output only. The translation result that is currently being processed (is_final could be true or false).

speech_event_type: i32

Output only. Indicates the type of speech event.

Implementations

impl StreamingTranslateSpeechResponse[src]

pub fn speech_event_type(&self) -> SpeechEventType[src]

Returns the enum value of speech_event_type, or the default if the field is set to an invalid enum value.

pub fn set_speech_event_type(&mut self, value: SpeechEventType)[src]

Sets speech_event_type to the provided enum value.

Trait Implementations

impl Clone for StreamingTranslateSpeechResponse[src]

impl Debug for StreamingTranslateSpeechResponse[src]

impl Default for StreamingTranslateSpeechResponse[src]

impl Message for StreamingTranslateSpeechResponse[src]

impl PartialEq<StreamingTranslateSpeechResponse> for StreamingTranslateSpeechResponse[src]

impl StructuralPartialEq for StreamingTranslateSpeechResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for StreamingTranslateSpeechResponse

impl Send for StreamingTranslateSpeechResponse

impl Sync for StreamingTranslateSpeechResponse

impl Unpin for StreamingTranslateSpeechResponse

impl UnwindSafe for StreamingTranslateSpeechResponse

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]