Struct google_api_proto::google::cloud::speech::v2::StreamingRecognitionConfig
source · pub struct StreamingRecognitionConfig {
pub config: Option<RecognitionConfig>,
pub config_mask: Option<FieldMask>,
pub streaming_features: Option<StreamingRecognitionFeatures>,
}
Expand description
Provides configuration information for the StreamingRecognize request.
Fields§
§config: Option<RecognitionConfig>
Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.StreamingRecognitionConfig.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.
config_mask: Option<FieldMask>
The list of fields in
[config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
override the values in the
[default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config]
of the recognizer during this recognition request. If no mask is provided,
all non-default valued fields in
[config][google.cloud.speech.v2.StreamingRecognitionConfig.config] override
the values in the Recognizer for this recognition request. If a mask is
provided, only the fields listed in the mask override the config in the
Recognizer for this recognition request. If a wildcard (*
) is provided,
[config][google.cloud.speech.v2.StreamingRecognitionConfig.config]
completely overrides and replaces the config in the recognizer for this
recognition request.
streaming_features: Option<StreamingRecognitionFeatures>
Speech recognition features to enable specific to streaming audio recognition requests.
Trait Implementations§
source§impl Clone for StreamingRecognitionConfig
impl Clone for StreamingRecognitionConfig
source§fn clone(&self) -> StreamingRecognitionConfig
fn clone(&self) -> StreamingRecognitionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StreamingRecognitionConfig
impl Debug for StreamingRecognitionConfig
source§impl Default for StreamingRecognitionConfig
impl Default for StreamingRecognitionConfig
source§impl Message for StreamingRecognitionConfig
impl Message for StreamingRecognitionConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for StreamingRecognitionConfig
impl PartialEq for StreamingRecognitionConfig
source§fn eq(&self, other: &StreamingRecognitionConfig) -> bool
fn eq(&self, other: &StreamingRecognitionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StreamingRecognitionConfig
Auto Trait Implementations§
impl Freeze for StreamingRecognitionConfig
impl RefUnwindSafe for StreamingRecognitionConfig
impl Send for StreamingRecognitionConfig
impl Sync for StreamingRecognitionConfig
impl Unpin for StreamingRecognitionConfig
impl UnwindSafe for StreamingRecognitionConfig
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<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