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 ConstantDescriptionThe `Part` contains audio.The `Part` contains a document, such as a PDF.The `Part` contains an image.When a modality is not specified, it is treated as `TEXT`.The `Part` contains plain text.The `Part` contains a video. -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaModality.KnownReturns 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
When a modality is not specified, it is treated as `TEXT`. -
TEXT
The `Part` contains plain text. -
IMAGE
The `Part` contains an image. -
VIDEO
The `Part` contains a video. -
AUDIO
The `Part` contains audio. -
DOCUMENT
The `Part` contains a document, such as a 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
-