Package com.google.cloud.speech.v2
Interface BatchRecognizeRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BatchRecognizeRequest,BatchRecognizeRequest.Builder
@Generated
public interface BatchRecognizeRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionFeatures and audio metadata to use for the Automatic Speech Recognition.com.google.protobuf.FieldMaskThe 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.com.google.protobuf.FieldMaskOrBuilderThe 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.Features and audio metadata to use for the Automatic Speech Recognition.getFiles(int index) Audio files with file metadata for ASR.intAudio files with file metadata for ASR.Audio files with file metadata for ASR.getFilesOrBuilder(int index) Audio files with file metadata for ASR.List<? extends BatchRecognizeFileMetadataOrBuilder>Audio files with file metadata for ASR.Processing strategy to use for this request.intProcessing strategy to use for this request.Configuration options for where to output the transcripts of each file.Configuration options for where to output the transcripts of each file.Required.com.google.protobuf.ByteStringRequired.booleanFeatures and audio metadata to use for the Automatic Speech Recognition.booleanThe 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.booleanConfiguration options for where to output the transcripts of each file.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getRecognizer
String getRecognizer()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.string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The recognizer.
-
getRecognizerBytes
com.google.protobuf.ByteString getRecognizerBytes()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.string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for recognizer.
-
hasConfig
boolean hasConfig()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.
.google.cloud.speech.v2.RecognitionConfig config = 4;- Returns:
- Whether the config field is set.
-
getConfig
RecognitionConfig getConfig()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.
.google.cloud.speech.v2.RecognitionConfig config = 4;- Returns:
- The config.
-
getConfigOrBuilder
RecognitionConfigOrBuilder getConfigOrBuilder()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.
.google.cloud.speech.v2.RecognitionConfig config = 4; -
hasConfigMask
boolean hasConfigMask()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.
.google.protobuf.FieldMask config_mask = 5;- Returns:
- Whether the configMask field is set.
-
getConfigMask
com.google.protobuf.FieldMask getConfigMask()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.
.google.protobuf.FieldMask config_mask = 5;- Returns:
- The configMask.
-
getConfigMaskOrBuilder
com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder()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.
.google.protobuf.FieldMask config_mask = 5; -
getFilesList
List<BatchRecognizeFileMetadata> getFilesList()Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 15.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; -
getFiles
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 15.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; -
getFilesCount
int getFilesCount()Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 15.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; -
getFilesOrBuilderList
List<? extends BatchRecognizeFileMetadataOrBuilder> getFilesOrBuilderList()Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 15.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; -
getFilesOrBuilder
Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 15.
repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; -
hasRecognitionOutputConfig
boolean hasRecognitionOutputConfig()Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;- Returns:
- Whether the recognitionOutputConfig field is set.
-
getRecognitionOutputConfig
RecognitionOutputConfig getRecognitionOutputConfig()Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;- Returns:
- The recognitionOutputConfig.
-
getRecognitionOutputConfigOrBuilder
RecognitionOutputConfigOrBuilder getRecognitionOutputConfigOrBuilder()Configuration options for where to output the transcripts of each file.
.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6; -
getProcessingStrategyValue
int getProcessingStrategyValue()Processing strategy to use for this request.
.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;- Returns:
- The enum numeric value on the wire for processingStrategy.
-
getProcessingStrategy
BatchRecognizeRequest.ProcessingStrategy getProcessingStrategy()Processing strategy to use for this request.
.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;- Returns:
- The processingStrategy.
-