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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public BatchRecognizeFileMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchRecognizeFileMetadata build()
Returns
public BatchRecognizeFileMetadata buildPartial()
Returns
public BatchRecognizeFileMetadata.Builder clear()
Returns
Overrides
public BatchRecognizeFileMetadata.Builder clearAudioSource()
Returns
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
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
public BatchRecognizeFileMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public BatchRecognizeFileMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public BatchRecognizeFileMetadata.Builder clearUri()
Cloud Storage URI for the audio file.
string uri = 1;
Returns
public BatchRecognizeFileMetadata.Builder clone()
Returns
Overrides
public BatchRecognizeFileMetadata.AudioSourceCase getAudioSourceCase()
Returns
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
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
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
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
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
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
public BatchRecognizeFileMetadata getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
Cloud Storage URI for the audio file.
string uri = 1;
Returns
public ByteString getUriBytes()
Cloud Storage URI for the audio file.
string uri = 1;
Returns
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.
|
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.
|
Cloud Storage URI for the audio file.
string uri = 1;
Returns
Type | Description |
boolean | Whether the uri field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
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
Returns
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
Returns
public BatchRecognizeFileMetadata.Builder mergeFrom(BatchRecognizeFileMetadata other)
Parameter
Returns
public BatchRecognizeFileMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public BatchRecognizeFileMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final BatchRecognizeFileMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns
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
Returns
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
public BatchRecognizeFileMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchRecognizeFileMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final BatchRecognizeFileMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
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