Enum googapis::google::cloud::mediatranslation::v1alpha1::streaming_translate_speech_request::StreamingRequest [−][src]
pub enum StreamingRequest {
StreamingConfig(StreamingTranslateSpeechConfig),
AudioContent(Vec<u8>),
}
Expand description
The streaming request, which is either a streaming config or content.
Variants
StreamingConfig(StreamingTranslateSpeechConfig)
Provides information to the recognizer that specifies how to process the
request. The first StreamingTranslateSpeechRequest
message must contain
a streaming_config
message.
Tuple Fields of StreamingConfig
The audio data to be translated. Sequential chunks of audio data are sent
in sequential StreamingTranslateSpeechRequest
messages. The first
StreamingTranslateSpeechRequest
message must not contain
audio_content
data and all subsequent StreamingTranslateSpeechRequest
messages must contain audio_content
data. The audio bytes must be
encoded as specified in StreamingTranslateSpeechConfig
. Note: as with
all bytes fields, protobuffers use a pure binary representation (not
base64).
Implementations
pub fn merge<B>(
field: &mut Option<StreamingRequest>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StreamingRequest
impl Send for StreamingRequest
impl Sync for StreamingRequest
impl Unpin for StreamingRequest
impl UnwindSafe for StreamingRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more