public static final class BatchRecognizeFileMetadata.Builder extends GeneratedMessage.Builder<BatchRecognizeFileMetadata.Builder> implements BatchRecognizeFileMetadataOrBuilderMetadata about a single file in a batch for BatchRecognize.
Protobuf type google.cloud.speech.v2.BatchRecognizeFileMetadata
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BatchRecognizeFileMetadata.BuilderImplements
BatchRecognizeFileMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
clearUri()
public BatchRecognizeFileMetadata.Builder clearUri()Cloud Storage URI for the audio file.
string uri = 1;
| Returns | |
|---|---|
| Type | Description |
BatchRecognizeFileMetadata.Builder |
This builder for chaining. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BatchRecognizeFileMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BatchRecognizeFileMetadata.Builder |
|
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 |
|
setUri(String value)
public BatchRecognizeFileMetadata.Builder setUri(String value)Cloud Storage URI for the audio file.
string uri = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
BatchRecognizeFileMetadata.Builder |
This builder for chaining. |