Class BatchRecognizeFileMetadata.Builder (4.46.0)

public static final class BatchRecognizeFileMetadata.Builder extends GeneratedMessageV3.Builder<BatchRecognizeFileMetadata.Builder> implements BatchRecognizeFileMetadataOrBuilder

Metadata about a single file in a batch for BatchRecognize.

Protobuf type google.cloud.speech.v2.BatchRecognizeFileMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchRecognizeFileMetadata build()
Returns
Type Description
BatchRecognizeFileMetadata

buildPartial()

public BatchRecognizeFileMetadata buildPartial()
Returns
Type Description
BatchRecognizeFileMetadata

clear()

public BatchRecognizeFileMetadata.Builder clear()
Returns
Type Description
BatchRecognizeFileMetadata.Builder
Overrides

clearAudioSource()

public BatchRecognizeFileMetadata.Builder clearAudioSource()
Returns
Type Description
BatchRecognizeFileMetadata.Builder

clearConfig()

public BatchRecognizeFileMetadata.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 as well as the config at the request level.

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

Returns
Type Description
BatchRecognizeFileMetadata.Builder

clearConfigMask()

public BatchRecognizeFileMetadata.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 non-default valued 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
BatchRecognizeFileMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchRecognizeFileMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchRecognizeFileMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchRecognizeFileMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchRecognizeFileMetadata.Builder
Overrides

clearUri()

public BatchRecognizeFileMetadata.Builder clearUri()

Cloud Storage URI for the audio file.

string uri = 1;

Returns
Type Description
BatchRecognizeFileMetadata.Builder

This builder for chaining.

clone()

public BatchRecognizeFileMetadata.Builder clone()
Returns
Type Description
BatchRecognizeFileMetadata.Builder
Overrides

getAudioSourceCase()

public BatchRecognizeFileMetadata.AudioSourceCase getAudioSourceCase()
Returns
Type Description
BatchRecognizeFileMetadata.AudioSourceCase

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 as well as the config at the request level.

.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 as well as the config at the request level.

.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 non-default valued 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 non-default valued 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 non-default valued 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 as well as the config at the request level.

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

Returns
Type Description
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public BatchRecognizeFileMetadata getDefaultInstanceForType()
Returns
Type Description
BatchRecognizeFileMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUri()

public String getUri()

Cloud Storage URI for the audio file.

string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Cloud Storage URI for the audio file.

string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

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 as well as the config at the request level.

.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 non-default valued 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.

hasUri()

public boolean hasUri()

Cloud Storage URI for the audio file.

string uri = 1;

Returns
Type Description
boolean

Whether the uri 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 BatchRecognizeFileMetadata.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 as well as the config at the request level.

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

Parameter
Name Description
value RecognitionConfig
Returns
Type Description
BatchRecognizeFileMetadata.Builder

mergeConfigMask(FieldMask value)

public BatchRecognizeFileMetadata.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 non-default valued 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
BatchRecognizeFileMetadata.Builder

mergeFrom(BatchRecognizeFileMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BatchRecognizeFileMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchRecognizeFileMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeFileMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchRecognizeFileMetadata.Builder
Overrides

setConfig(RecognitionConfig value)

public BatchRecognizeFileMetadata.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 as well as the config at the request level.

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

Parameter
Name Description
value RecognitionConfig
Returns
Type Description
BatchRecognizeFileMetadata.Builder

setConfig(RecognitionConfig.Builder builderForValue)

public BatchRecognizeFileMetadata.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 as well as the config at the request level.

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

Parameter
Name Description
builderForValue RecognitionConfig.Builder
Returns
Type Description
BatchRecognizeFileMetadata.Builder

setConfigMask(FieldMask value)

public BatchRecognizeFileMetadata.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 non-default valued 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
BatchRecognizeFileMetadata.Builder

setConfigMask(FieldMask.Builder builderForValue)

public BatchRecognizeFileMetadata.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 non-default valued 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
BatchRecognizeFileMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchRecognizeFileMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchRecognizeFileMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public BatchRecognizeFileMetadata.Builder setUri(String value)

Cloud Storage URI for the audio file.

string uri = 1;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
BatchRecognizeFileMetadata.Builder

This builder for chaining.

setUriBytes(ByteString value)

public BatchRecognizeFileMetadata.Builder setUriBytes(ByteString value)

Cloud Storage URI for the audio file.

string uri = 1;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
BatchRecognizeFileMetadata.Builder

This builder for chaining.