Enum RevAiFailureType
- java.lang.Object
-
- java.lang.Enum<RevAiFailureType>
-
- ai.rev.speechtotext.models.asynchronous.RevAiFailureType
-
- All Implemented Interfaces:
Serializable,Comparable<RevAiFailureType>
public enum RevAiFailureType extends Enum<RevAiFailureType>
Specifies constants that define Rev.ai failure types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOWNLOAD_FAILUREThe failure used when the media provided in the submission request fails to download.EMPTY_MEDIAThe failure used when the media provided doesn't contain any audio.INSUFFICIENT_BALANCEThe failure used when the account does not have enough credits remaining.INTERNAL_PROCESSINGThe failure used when there is a processing error.INVALID_MEDIAThe failure used when the file submitted is not a valid or supported media file.INVOICING_LIMIT_EXCEEDEDThe failure used when the account has reached or exceeded its invoicing limit.TRANSCRIPTIONThe failure used when an error occurs during transcription and prevents job completion.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFailureType()Returns the String value of the enumeration.StringtoString()static RevAiFailureTypevalueOf(String name)Returns the enum constant of this type with the specified name.static RevAiFailureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOWNLOAD_FAILURE
@SerializedName("download_failure") public static final RevAiFailureType DOWNLOAD_FAILUREThe failure used when the media provided in the submission request fails to download.
-
EMPTY_MEDIA
@SerializedName("empty_media") public static final RevAiFailureType EMPTY_MEDIAThe failure used when the media provided doesn't contain any audio.
-
INSUFFICIENT_BALANCE
@SerializedName("insufficient_balance") public static final RevAiFailureType INSUFFICIENT_BALANCEThe failure used when the account does not have enough credits remaining.
-
INTERNAL_PROCESSING
@SerializedName("internal_processing") public static final RevAiFailureType INTERNAL_PROCESSINGThe failure used when there is a processing error.
-
INVALID_MEDIA
@SerializedName("invalid_media") public static final RevAiFailureType INVALID_MEDIAThe failure used when the file submitted is not a valid or supported media file.
-
INVOICING_LIMIT_EXCEEDED
@SerializedName("invoicing_limit_exceeded") public static final RevAiFailureType INVOICING_LIMIT_EXCEEDEDThe failure used when the account has reached or exceeded its invoicing limit.
-
TRANSCRIPTION
@SerializedName("transcription") public static final RevAiFailureType TRANSCRIPTIONThe failure used when an error occurs during transcription and prevents job completion.
-
-
Method Detail
-
values
public static RevAiFailureType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RevAiFailureType c : RevAiFailureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RevAiFailureType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getFailureType
public String getFailureType()
Returns the String value of the enumeration.- Returns:
- The String value of the enumeration.
-
toString
public String toString()
- Overrides:
toStringin classEnum<RevAiFailureType>
-
-