Enum Modality (1.38.0)

publicenumModalityextendsEnum<Modality>implementsProtocolMessageEnum

Content Part modality

Protobuf enum google.cloud.vertexai.v1.Modality

Implements

ProtocolMessageEnum

Static Fields

Name Description
AUDIO

Audio.

AUDIO = 4;

AUDIO_VALUE

Audio.

AUDIO = 4;

DOCUMENT

Document, e.g. PDF.

DOCUMENT = 5;

DOCUMENT_VALUE

Document, e.g. PDF.

DOCUMENT = 5;

IMAGE

Image.

IMAGE = 2;

IMAGE_VALUE

Image.

IMAGE = 2;

MODALITY_UNSPECIFIED

Unspecified modality.

MODALITY_UNSPECIFIED = 0;

MODALITY_UNSPECIFIED_VALUE

Unspecified modality.

MODALITY_UNSPECIFIED = 0;

TEXT

Plain text.

TEXT = 1;

TEXT_VALUE

Plain text.

TEXT = 1;

UNRECOGNIZED
VIDEO

Video.

VIDEO = 3;

VIDEO_VALUE

Video.

VIDEO = 3;

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.