public final class BatchRecognizeFileMetadata extends GeneratedMessageV3 implements BatchRecognizeFileMetadataOrBuilder
Metadata about a single file in a batch for BatchRecognize.
Protobuf type google.cloud.speech.v2.BatchRecognizeFileMetadata
Static Fields
public static final int CONFIG_FIELD_NUMBER
Field Value
public static final int CONFIG_MASK_FIELD_NUMBER
Field Value
public static final int URI_FIELD_NUMBER
Field Value
Static Methods
public static BatchRecognizeFileMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static BatchRecognizeFileMetadata.Builder newBuilder()
Returns
public static BatchRecognizeFileMetadata.Builder newBuilder(BatchRecognizeFileMetadata prototype)
Parameter
Returns
public static BatchRecognizeFileMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchRecognizeFileMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static BatchRecognizeFileMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<BatchRecognizeFileMetadata> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
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 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 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 Parser<BatchRecognizeFileMetadata> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public BatchRecognizeFileMetadata.Builder newBuilderForType()
Returns
protected BatchRecognizeFileMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public BatchRecognizeFileMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions