Class BatchRecognizeRequest.Builder (4.22.0)

public static final class BatchRecognizeRequest.Builder extends GeneratedMessageV3.Builder<BatchRecognizeRequest.Builder> implements BatchRecognizeRequestOrBuilder

Request message for the BatchRecognize method.

Protobuf type google.cloud.speech.v2.BatchRecognizeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllFiles(Iterable<? extends BatchRecognizeFileMetadata> values)

public BatchRecognizeRequest.Builder addAllFiles(Iterable<? extends BatchRecognizeFileMetadata> values)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.speech.v2.BatchRecognizeFileMetadata>
Returns
TypeDescription
BatchRecognizeRequest.Builder

addFiles(BatchRecognizeFileMetadata value)

public BatchRecognizeRequest.Builder addFiles(BatchRecognizeFileMetadata value)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameter
NameDescription
valueBatchRecognizeFileMetadata
Returns
TypeDescription
BatchRecognizeRequest.Builder

addFiles(BatchRecognizeFileMetadata.Builder builderForValue)

public BatchRecognizeRequest.Builder addFiles(BatchRecognizeFileMetadata.Builder builderForValue)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameter
NameDescription
builderForValueBatchRecognizeFileMetadata.Builder
Returns
TypeDescription
BatchRecognizeRequest.Builder

addFiles(int index, BatchRecognizeFileMetadata value)

public BatchRecognizeRequest.Builder addFiles(int index, BatchRecognizeFileMetadata value)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameters
NameDescription
indexint
valueBatchRecognizeFileMetadata
Returns
TypeDescription
BatchRecognizeRequest.Builder

addFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)

public BatchRecognizeRequest.Builder addFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameters
NameDescription
indexint
builderForValueBatchRecognizeFileMetadata.Builder
Returns
TypeDescription
BatchRecognizeRequest.Builder

addFilesBuilder()

public BatchRecognizeFileMetadata.Builder addFilesBuilder()

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Returns
TypeDescription
BatchRecognizeFileMetadata.Builder

addFilesBuilder(int index)

public BatchRecognizeFileMetadata.Builder addFilesBuilder(int index)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchRecognizeFileMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides

build()

public BatchRecognizeRequest build()
Returns
TypeDescription
BatchRecognizeRequest

buildPartial()

public BatchRecognizeRequest buildPartial()
Returns
TypeDescription
BatchRecognizeRequest

clear()

public BatchRecognizeRequest.Builder clear()
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides

clearConfig()

public BatchRecognizeRequest.Builder clearConfig()

Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 4;

Returns
TypeDescription
BatchRecognizeRequest.Builder

clearConfigMask()

public BatchRecognizeRequest.Builder clearConfigMask()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all given fields in 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 completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 5;

Returns
TypeDescription
BatchRecognizeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides

clearFiles()

public BatchRecognizeRequest.Builder clearFiles()

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Returns
TypeDescription
BatchRecognizeRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides

clearProcessingStrategy()

public BatchRecognizeRequest.Builder clearProcessingStrategy()

Processing strategy to use for this request.

.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;

Returns
TypeDescription
BatchRecognizeRequest.Builder

This builder for chaining.

clearRecognitionOutputConfig()

public BatchRecognizeRequest.Builder clearRecognitionOutputConfig()

Configuration options for where to output the transcripts of each file.

.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;

Returns
TypeDescription
BatchRecognizeRequest.Builder

clearRecognizer()

public BatchRecognizeRequest.Builder clearRecognizer()

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
TypeDescription
BatchRecognizeRequest.Builder

This builder for chaining.

clone()

public BatchRecognizeRequest.Builder clone()
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides

getConfig()

public RecognitionConfig getConfig()

Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 4;

Returns
TypeDescription
RecognitionConfig

The config.

getConfigBuilder()

public RecognitionConfig.Builder getConfigBuilder()

Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 4;

Returns
TypeDescription
RecognitionConfig.Builder

getConfigMask()

public FieldMask getConfigMask()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all given fields in 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 completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 5;

Returns
TypeDescription
FieldMask

The configMask.

getConfigMaskBuilder()

public FieldMask.Builder getConfigMaskBuilder()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all given fields in 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 completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 5;

Returns
TypeDescription
Builder

getConfigMaskOrBuilder()

public FieldMaskOrBuilder getConfigMaskOrBuilder()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all given fields in 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 completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 5;

Returns
TypeDescription
FieldMaskOrBuilder

getConfigOrBuilder()

public RecognitionConfigOrBuilder getConfigOrBuilder()

Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 4;

Returns
TypeDescription
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public BatchRecognizeRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFiles(int index)

public BatchRecognizeFileMetadata getFiles(int index)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchRecognizeFileMetadata

getFilesBuilder(int index)

public BatchRecognizeFileMetadata.Builder getFilesBuilder(int index)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchRecognizeFileMetadata.Builder

getFilesBuilderList()

public List<BatchRecognizeFileMetadata.Builder> getFilesBuilderList()

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Returns
TypeDescription
List<Builder>

getFilesCount()

public int getFilesCount()

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Returns
TypeDescription
int

getFilesList()

public List<BatchRecognizeFileMetadata> getFilesList()

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Returns
TypeDescription
List<BatchRecognizeFileMetadata>

getFilesOrBuilder(int index)

public BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder(int index)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchRecognizeFileMetadataOrBuilder

getFilesOrBuilderList()

public List<? extends BatchRecognizeFileMetadataOrBuilder> getFilesOrBuilderList()

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Returns
TypeDescription
List<? extends com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>

getProcessingStrategy()

public BatchRecognizeRequest.ProcessingStrategy getProcessingStrategy()

Processing strategy to use for this request.

.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;

Returns
TypeDescription
BatchRecognizeRequest.ProcessingStrategy

The processingStrategy.

getProcessingStrategyValue()

public int getProcessingStrategyValue()

Processing strategy to use for this request.

.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for processingStrategy.

getRecognitionOutputConfig()

public RecognitionOutputConfig getRecognitionOutputConfig()

Configuration options for where to output the transcripts of each file.

.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;

Returns
TypeDescription
RecognitionOutputConfig

The recognitionOutputConfig.

getRecognitionOutputConfigBuilder()

public RecognitionOutputConfig.Builder getRecognitionOutputConfigBuilder()

Configuration options for where to output the transcripts of each file.

.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;

Returns
TypeDescription
RecognitionOutputConfig.Builder

getRecognitionOutputConfigOrBuilder()

public RecognitionOutputConfigOrBuilder getRecognitionOutputConfigOrBuilder()

Configuration options for where to output the transcripts of each file.

.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;

Returns
TypeDescription
RecognitionOutputConfigOrBuilder

getRecognizer()

public 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
TypeDescription
String

The recognizer.

getRecognizerBytes()

public 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
TypeDescription
ByteString

The bytes for recognizer.

hasConfig()

public boolean hasConfig()

Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 4;

Returns
TypeDescription
boolean

Whether the config field is set.

hasConfigMask()

public boolean hasConfigMask()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all given fields in 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 completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 5;

Returns
TypeDescription
boolean

Whether the configMask field is set.

hasRecognitionOutputConfig()

public boolean hasRecognitionOutputConfig()

Configuration options for where to output the transcripts of each file.

.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;

Returns
TypeDescription
boolean

Whether the recognitionOutputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConfig(RecognitionConfig value)

public BatchRecognizeRequest.Builder mergeConfig(RecognitionConfig value)

Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 4;

Parameter
NameDescription
valueRecognitionConfig
Returns
TypeDescription
BatchRecognizeRequest.Builder

mergeConfigMask(FieldMask value)

public BatchRecognizeRequest.Builder mergeConfigMask(FieldMask value)

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all given fields in 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 completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 5;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
BatchRecognizeRequest.Builder

mergeFrom(BatchRecognizeRequest other)

public BatchRecognizeRequest.Builder mergeFrom(BatchRecognizeRequest other)
Parameter
NameDescription
otherBatchRecognizeRequest
Returns
TypeDescription
BatchRecognizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchRecognizeRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides

mergeRecognitionOutputConfig(RecognitionOutputConfig value)

public BatchRecognizeRequest.Builder mergeRecognitionOutputConfig(RecognitionOutputConfig value)

Configuration options for where to output the transcripts of each file.

.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;

Parameter
NameDescription
valueRecognitionOutputConfig
Returns
TypeDescription
BatchRecognizeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides

removeFiles(int index)

public BatchRecognizeRequest.Builder removeFiles(int index)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchRecognizeRequest.Builder

setConfig(RecognitionConfig value)

public BatchRecognizeRequest.Builder setConfig(RecognitionConfig value)

Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 4;

Parameter
NameDescription
valueRecognitionConfig
Returns
TypeDescription
BatchRecognizeRequest.Builder

setConfig(RecognitionConfig.Builder builderForValue)

public BatchRecognizeRequest.Builder setConfig(RecognitionConfig.Builder builderForValue)

Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 4;

Parameter
NameDescription
builderForValueRecognitionConfig.Builder
Returns
TypeDescription
BatchRecognizeRequest.Builder

setConfigMask(FieldMask value)

public BatchRecognizeRequest.Builder setConfigMask(FieldMask value)

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all given fields in 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 completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 5;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
BatchRecognizeRequest.Builder

setConfigMask(FieldMask.Builder builderForValue)

public BatchRecognizeRequest.Builder setConfigMask(FieldMask.Builder builderForValue)

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all given fields in 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 completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BatchRecognizeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides

setFiles(int index, BatchRecognizeFileMetadata value)

public BatchRecognizeRequest.Builder setFiles(int index, BatchRecognizeFileMetadata value)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameters
NameDescription
indexint
valueBatchRecognizeFileMetadata
Returns
TypeDescription
BatchRecognizeRequest.Builder

setFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)

public BatchRecognizeRequest.Builder setFiles(int index, BatchRecognizeFileMetadata.Builder builderForValue)

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3;

Parameters
NameDescription
indexint
builderForValueBatchRecognizeFileMetadata.Builder
Returns
TypeDescription
BatchRecognizeRequest.Builder

setProcessingStrategy(BatchRecognizeRequest.ProcessingStrategy value)

public BatchRecognizeRequest.Builder setProcessingStrategy(BatchRecognizeRequest.ProcessingStrategy value)

Processing strategy to use for this request.

.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;

Parameter
NameDescription
valueBatchRecognizeRequest.ProcessingStrategy

The processingStrategy to set.

Returns
TypeDescription
BatchRecognizeRequest.Builder

This builder for chaining.

setProcessingStrategyValue(int value)

public BatchRecognizeRequest.Builder setProcessingStrategyValue(int value)

Processing strategy to use for this request.

.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy processing_strategy = 7;

Parameter
NameDescription
valueint

The enum numeric value on the wire for processingStrategy to set.

Returns
TypeDescription
BatchRecognizeRequest.Builder

This builder for chaining.

setRecognitionOutputConfig(RecognitionOutputConfig value)

public BatchRecognizeRequest.Builder setRecognitionOutputConfig(RecognitionOutputConfig value)

Configuration options for where to output the transcripts of each file.

.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;

Parameter
NameDescription
valueRecognitionOutputConfig
Returns
TypeDescription
BatchRecognizeRequest.Builder

setRecognitionOutputConfig(RecognitionOutputConfig.Builder builderForValue)

public BatchRecognizeRequest.Builder setRecognitionOutputConfig(RecognitionOutputConfig.Builder builderForValue)

Configuration options for where to output the transcripts of each file.

.google.cloud.speech.v2.RecognitionOutputConfig recognition_output_config = 6;

Parameter
NameDescription
builderForValueRecognitionOutputConfig.Builder
Returns
TypeDescription
BatchRecognizeRequest.Builder

setRecognizer(String value)

public BatchRecognizeRequest.Builder setRecognizer(String value)

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) = { ... }

Parameter
NameDescription
valueString

The recognizer to set.

Returns
TypeDescription
BatchRecognizeRequest.Builder

This builder for chaining.

setRecognizerBytes(ByteString value)

public BatchRecognizeRequest.Builder setRecognizerBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for recognizer to set.

Returns
TypeDescription
BatchRecognizeRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchRecognizeRequest.Builder
Overrides