Struct google_api_proto::google::cloud::speech::v2::RecognizeRequest
source · pub struct RecognizeRequest {
pub recognizer: String,
pub config: Option<RecognitionConfig>,
pub config_mask: Option<FieldMask>,
pub audio_source: Option<AudioSource>,
}
Expand description
Request message for the
[Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
content
or uri
must be supplied. Supplying both or neither returns
[INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See content
limits.
Fields§
§recognizer: String
Required. The name of the Recognizer to use during recognition. The
expected format is
projects/{project}/locations/{location}/recognizers/{recognizer}
. The
{recognizer} segment may be set to _
to use an empty implicit Recognizer.
config: Option<RecognitionConfig>
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.RecognizeRequest.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.RecognizeRequest.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.RecognizeRequest.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.RecognizeRequest.config] completely
overrides and replaces the config in the recognizer for this recognition
request.
audio_source: Option<AudioSource>
The audio source, which is either inline content or a Google Cloud Storage URI.
Trait Implementations§
source§impl Clone for RecognizeRequest
impl Clone for RecognizeRequest
source§fn clone(&self) -> RecognizeRequest
fn clone(&self) -> RecognizeRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecognizeRequest
impl Debug for RecognizeRequest
source§impl Default for RecognizeRequest
impl Default for RecognizeRequest
source§impl Message for RecognizeRequest
impl Message for RecognizeRequest
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 RecognizeRequest
impl PartialEq for RecognizeRequest
source§fn eq(&self, other: &RecognizeRequest) -> bool
fn eq(&self, other: &RecognizeRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecognizeRequest
Auto Trait Implementations§
impl !Freeze for RecognizeRequest
impl RefUnwindSafe for RecognizeRequest
impl Send for RecognizeRequest
impl Sync for RecognizeRequest
impl Unpin for RecognizeRequest
impl UnwindSafe for RecognizeRequest
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