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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
public BatchRecognizeFileMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BatchRecognizeFileMetadata build()
public BatchRecognizeFileMetadata buildPartial()
public BatchRecognizeFileMetadata.Builder clear()
Overrides
public BatchRecognizeFileMetadata.Builder clearAudioSource()
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;
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;
public BatchRecognizeFileMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public BatchRecognizeFileMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public BatchRecognizeFileMetadata.Builder clearUri()
Cloud Storage URI for the audio file.
string uri = 1;
public BatchRecognizeFileMetadata.Builder clone()
Overrides
public BatchRecognizeFileMetadata.AudioSourceCase getAudioSourceCase()
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;
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;
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.
|
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;
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;
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;
public BatchRecognizeFileMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
Cloud Storage URI for the audio file.
string uri = 1;
Returns |
Type |
Description |
String |
The uri.
|
public ByteString getUriBytes()
Cloud Storage URI for the audio file.
string uri = 1;
Returns |
Type |
Description |
ByteString |
The bytes for uri.
|
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()
Overrides
public final boolean isInitialized()
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;
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;
public BatchRecognizeFileMetadata.Builder mergeFrom(BatchRecognizeFileMetadata other)
public BatchRecognizeFileMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public BatchRecognizeFileMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final BatchRecognizeFileMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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;
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
|
public BatchRecognizeFileMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BatchRecognizeFileMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final BatchRecognizeFileMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|