Struct google_api_proto::google::cloud::speech::v2::BatchRecognizeRequest
source · pub struct BatchRecognizeRequest {
pub recognizer: String,
pub config: Option<RecognitionConfig>,
pub config_mask: Option<FieldMask>,
pub files: Vec<BatchRecognizeFileMetadata>,
pub recognition_output_config: Option<RecognitionOutputConfig>,
pub processing_strategy: i32,
}
Expand description
Request message for the [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] method.
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.BatchRecognizeRequest.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.BatchRecognizeRequest.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 given fields in
[config][google.cloud.speech.v2.BatchRecognizeRequest.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.BatchRecognizeRequest.config] completely
overrides and replaces the config in the recognizer for this recognition
request.
files: Vec<BatchRecognizeFileMetadata>
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 15.
recognition_output_config: Option<RecognitionOutputConfig>
Configuration options for where to output the transcripts of each file.
processing_strategy: i32
Processing strategy to use for this request.
Implementations§
source§impl BatchRecognizeRequest
impl BatchRecognizeRequest
sourcepub fn processing_strategy(&self) -> ProcessingStrategy
pub fn processing_strategy(&self) -> ProcessingStrategy
Returns the enum value of processing_strategy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_processing_strategy(&mut self, value: ProcessingStrategy)
pub fn set_processing_strategy(&mut self, value: ProcessingStrategy)
Sets processing_strategy
to the provided enum value.
Trait Implementations§
source§impl Clone for BatchRecognizeRequest
impl Clone for BatchRecognizeRequest
source§fn clone(&self) -> BatchRecognizeRequest
fn clone(&self) -> BatchRecognizeRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatchRecognizeRequest
impl Debug for BatchRecognizeRequest
source§impl Default for BatchRecognizeRequest
impl Default for BatchRecognizeRequest
source§impl Message for BatchRecognizeRequest
impl Message for BatchRecognizeRequest
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 BatchRecognizeRequest
impl PartialEq for BatchRecognizeRequest
source§fn eq(&self, other: &BatchRecognizeRequest) -> bool
fn eq(&self, other: &BatchRecognizeRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BatchRecognizeRequest
Auto Trait Implementations§
impl Freeze for BatchRecognizeRequest
impl RefUnwindSafe for BatchRecognizeRequest
impl Send for BatchRecognizeRequest
impl Sync for BatchRecognizeRequest
impl Unpin for BatchRecognizeRequest
impl UnwindSafe for BatchRecognizeRequest
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