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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
public static final int CONFIG_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int CONFIG_MASK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int URI_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static BatchRecognizeFileMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static BatchRecognizeFileMetadata.Builder newBuilder()
public static BatchRecognizeFileMetadata.Builder newBuilder(BatchRecognizeFileMetadata prototype)
public static BatchRecognizeFileMetadata parseDelimitedFrom(InputStream input)
public static BatchRecognizeFileMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeFileMetadata parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static BatchRecognizeFileMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeFileMetadata parseFrom(ByteString data)
public static BatchRecognizeFileMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeFileMetadata parseFrom(CodedInputStream input)
public static BatchRecognizeFileMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeFileMetadata parseFrom(InputStream input)
public static BatchRecognizeFileMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeFileMetadata parseFrom(ByteBuffer data)
public static BatchRecognizeFileMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<BatchRecognizeFileMetadata> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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 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 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 Parser<BatchRecognizeFileMetadata> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public final UnknownFieldSet getUnknownFields()
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.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public BatchRecognizeFileMetadata.Builder newBuilderForType()
protected BatchRecognizeFileMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public BatchRecognizeFileMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides