public enum Modality extends Enum<Modality> implements com.google.protobuf.ProtocolMessageEnum
Content Part modalityProtobuf enum
google.cloud.aiplatform.v1.Modality| Enum Constant and Description |
|---|
AUDIO
Audio.
|
DOCUMENT
Document, e.g.
|
IMAGE
Image.
|
MODALITY_UNSPECIFIED
Unspecified modality.
|
TEXT
Plain text.
|
UNRECOGNIZED |
VIDEO
Video.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
AUDIO_VALUE
Audio.
|
static int |
DOCUMENT_VALUE
Document, e.g.
|
static int |
IMAGE_VALUE
Image.
|
static int |
MODALITY_UNSPECIFIED_VALUE
Unspecified modality.
|
static int |
TEXT_VALUE
Plain text.
|
static int |
VIDEO_VALUE
Video.
|
| Modifier and Type | Method and Description |
|---|---|
static Modality |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Modality> |
internalGetValueMap() |
static Modality |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Modality |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Modality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Modality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Modality MODALITY_UNSPECIFIED
Unspecified modality.
MODALITY_UNSPECIFIED = 0;public static final Modality TEXT
Plain text.
TEXT = 1;public static final Modality IMAGE
Image.
IMAGE = 2;public static final Modality VIDEO
Video.
VIDEO = 3;public static final Modality AUDIO
Audio.
AUDIO = 4;public static final Modality DOCUMENT
Document, e.g. PDF.
DOCUMENT = 5;public static final Modality UNRECOGNIZED
public static final int MODALITY_UNSPECIFIED_VALUE
Unspecified modality.
MODALITY_UNSPECIFIED = 0;public static final int TEXT_VALUE
Plain text.
TEXT = 1;public static final int IMAGE_VALUE
Image.
IMAGE = 2;public static final int VIDEO_VALUE
Video.
VIDEO = 3;public static final int AUDIO_VALUE
Audio.
AUDIO = 4;public static final int DOCUMENT_VALUE
Document, e.g. PDF.
DOCUMENT = 5;public static Modality[] values()
for (Modality c : Modality.values()) System.out.println(c);
public static Modality valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Modality valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Modality forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Modality> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Modality valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.