Class BatchRecognizeFileMetadata.Builder (3.0.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchRecognizeFileMetadata build()
Returns
TypeDescription
BatchRecognizeFileMetadata

buildPartial()

public BatchRecognizeFileMetadata buildPartial()
Returns
TypeDescription
BatchRecognizeFileMetadata

clear()

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

clearAudioSource()

public BatchRecognizeFileMetadata.Builder clearAudioSource()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BatchRecognizeFileMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public BatchRecognizeFileMetadata.Builder clearUri()

Cloud Storage URI for the audio file.

string uri = 1;

Returns
TypeDescription
BatchRecognizeFileMetadata.Builder

This builder for chaining.

clone()

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

getAudioSourceCase()

public BatchRecognizeFileMetadata.AudioSourceCase getAudioSourceCase()
Returns
TypeDescription
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
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 as well as the config at the request level.

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

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

Returns
TypeDescription
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public BatchRecognizeFileMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeFileMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUri()

public String getUri()

Cloud Storage URI for the audio file.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Cloud Storage URI for the audio file.

string uri = 1;

Returns
TypeDescription
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
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 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
TypeDescription
boolean

Whether the configMask field is set.

hasUri()

public boolean hasUri()

Cloud Storage URI for the audio file.

string uri = 1;

Returns
TypeDescription
boolean

Whether the uri 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 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
NameDescription
valueRecognitionConfig
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
BatchRecognizeFileMetadata.Builder

mergeFrom(BatchRecognizeFileMetadata other)

public BatchRecognizeFileMetadata.Builder mergeFrom(BatchRecognizeFileMetadata other)
Parameter
NameDescription
otherBatchRecognizeFileMetadata
Returns
TypeDescription
BatchRecognizeFileMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeFileMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueRecognitionConfig
Returns
TypeDescription
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
NameDescription
builderForValueRecognitionConfig.Builder
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BatchRecognizeFileMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public BatchRecognizeFileMetadata.Builder setUri(String value)

Cloud Storage URI for the audio file.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
BatchRecognizeFileMetadata.Builder

This builder for chaining.