Class BatchRecognizeRequest.Builder (4.47.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
Type Description
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 15.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.speech.v2.BatchRecognizeFileMetadata>
Returns
Type Description
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 15.

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

Parameter
Name Description
value BatchRecognizeFileMetadata
Returns
Type Description
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 15.

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

Parameter
Name Description
builderForValue BatchRecognizeFileMetadata.Builder
Returns
Type Description
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 15.

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

Parameters
Name Description
index int
value BatchRecognizeFileMetadata
Returns
Type Description
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 15.

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

Parameters
Name Description
index int
builderForValue BatchRecognizeFileMetadata.Builder
Returns
Type Description
BatchRecognizeRequest.Builder

addFilesBuilder()

public BatchRecognizeFileMetadata.Builder addFilesBuilder()

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;

Returns
Type Description
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 15.

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

Parameter
Name Description
index int
Returns
Type Description
BatchRecognizeFileMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchRecognizeRequest.Builder
Overrides

build()

public BatchRecognizeRequest build()
Returns
Type Description
BatchRecognizeRequest

buildPartial()

public BatchRecognizeRequest buildPartial()
Returns
Type Description
BatchRecognizeRequest

clear()

public BatchRecognizeRequest.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
BatchRecognizeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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 15.

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

Returns
Type Description
BatchRecognizeRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
BatchRecognizeRequest.Builder

This builder for chaining.

clone()

public BatchRecognizeRequest.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public BatchRecognizeRequest getDefaultInstanceForType()
Returns
Type Description
BatchRecognizeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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 15.

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

Parameter
Name Description
index int
Returns
Type Description
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 15.

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

Parameter
Name Description
index int
Returns
Type Description
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 15.

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

Returns
Type Description
List<Builder>

getFilesCount()

public 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;

Returns
Type Description
int

getFilesList()

public 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;

Returns
Type Description
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 15.

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

Parameter
Name Description
index int
Returns
Type Description
BatchRecognizeFileMetadataOrBuilder

getFilesOrBuilderList()

public 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;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the recognitionOutputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value RecognitionConfig
Returns
Type Description
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
Name Description
value FieldMask
Returns
Type Description
BatchRecognizeRequest.Builder

mergeFrom(BatchRecognizeRequest other)

public BatchRecognizeRequest.Builder mergeFrom(BatchRecognizeRequest other)
Parameter
Name Description
other BatchRecognizeRequest
Returns
Type Description
BatchRecognizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchRecognizeRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value RecognitionOutputConfig
Returns
Type Description
BatchRecognizeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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 15.

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

Parameter
Name Description
index int
Returns
Type Description
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
Name Description
value RecognitionConfig
Returns
Type Description
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
Name Description
builderForValue RecognitionConfig.Builder
Returns
Type Description
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
Name Description
value FieldMask
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
BatchRecognizeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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 15.

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

Parameters
Name Description
index int
value BatchRecognizeFileMetadata
Returns
Type Description
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 15.

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

Parameters
Name Description
index int
builderForValue BatchRecognizeFileMetadata.Builder
Returns
Type Description
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
Name Description
value BatchRecognizeRequest.ProcessingStrategy

The processingStrategy to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value RecognitionOutputConfig
Returns
Type Description
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
Name Description
builderForValue RecognitionOutputConfig.Builder
Returns
Type Description
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
Name Description
value String

The recognizer to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for recognizer to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchRecognizeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchRecognizeRequest.Builder
Overrides