Package com.google.genai.types
Enum MediaModality.Known
- All Implemented Interfaces:
Serializable
,Comparable<MediaModality.Known>
- Enclosing class:
- MediaModality
Enum representing the known values for MediaModality.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAudio.Document, e.g.Images.The modality is unspecified.Plain text.Video. -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaModality.Known
Returns the enum constant of this type with the specified name.static MediaModality.Known[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MODALITY_UNSPECIFIED
The modality is unspecified. -
TEXT
Plain text. -
IMAGE
Images. -
VIDEO
Video. -
AUDIO
Audio. -
DOCUMENT
Document, e.g. PDF. -
MEDIA_MODALITY_UNSPECIFIED
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-