public static enum EmbedContentRequest.EmbeddingTaskType extends Enum<EmbedContentRequest.EmbeddingTaskType> implements com.google.protobuf.ProtocolMessageEnum
Represents a downstream task the embeddings will be used for.Protobuf enum
google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType| Enum Constant and Description |
|---|
CLASSIFICATION
Specifies that the given text will be classified.
|
CLUSTERING
Specifies that the embeddings will be used for clustering.
|
CODE_RETRIEVAL_QUERY
Specifies that the embeddings will be used for code retrieval.
|
FACT_VERIFICATION
Specifies that the embeddings will be used for fact verification.
|
QUESTION_ANSWERING
Specifies that the embeddings will be used for question answering.
|
RETRIEVAL_DOCUMENT
Specifies the given text is a document from the corpus being searched.
|
RETRIEVAL_QUERY
Specifies the given text is a query in a search/retrieval setting.
|
SEMANTIC_SIMILARITY
Specifies the given text will be used for STS.
|
UNRECOGNIZED |
UNSPECIFIED
Unset value, which will default to one of the other enum values.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASSIFICATION_VALUE
Specifies that the given text will be classified.
|
static int |
CLUSTERING_VALUE
Specifies that the embeddings will be used for clustering.
|
static int |
CODE_RETRIEVAL_QUERY_VALUE
Specifies that the embeddings will be used for code retrieval.
|
static int |
FACT_VERIFICATION_VALUE
Specifies that the embeddings will be used for fact verification.
|
static int |
QUESTION_ANSWERING_VALUE
Specifies that the embeddings will be used for question answering.
|
static int |
RETRIEVAL_DOCUMENT_VALUE
Specifies the given text is a document from the corpus being searched.
|
static int |
RETRIEVAL_QUERY_VALUE
Specifies the given text is a query in a search/retrieval setting.
|
static int |
SEMANTIC_SIMILARITY_VALUE
Specifies the given text will be used for STS.
|
static int |
UNSPECIFIED_VALUE
Unset value, which will default to one of the other enum values.
|
| Modifier and Type | Method and Description |
|---|---|
static EmbedContentRequest.EmbeddingTaskType |
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<EmbedContentRequest.EmbeddingTaskType> |
internalGetValueMap() |
static EmbedContentRequest.EmbeddingTaskType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static EmbedContentRequest.EmbeddingTaskType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static EmbedContentRequest.EmbeddingTaskType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmbedContentRequest.EmbeddingTaskType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmbedContentRequest.EmbeddingTaskType UNSPECIFIED
Unset value, which will default to one of the other enum values.
UNSPECIFIED = 0;public static final EmbedContentRequest.EmbeddingTaskType RETRIEVAL_QUERY
Specifies the given text is a query in a search/retrieval setting.
RETRIEVAL_QUERY = 2;public static final EmbedContentRequest.EmbeddingTaskType RETRIEVAL_DOCUMENT
Specifies the given text is a document from the corpus being searched.
RETRIEVAL_DOCUMENT = 3;public static final EmbedContentRequest.EmbeddingTaskType SEMANTIC_SIMILARITY
Specifies the given text will be used for STS.
SEMANTIC_SIMILARITY = 4;public static final EmbedContentRequest.EmbeddingTaskType CLASSIFICATION
Specifies that the given text will be classified.
CLASSIFICATION = 5;public static final EmbedContentRequest.EmbeddingTaskType CLUSTERING
Specifies that the embeddings will be used for clustering.
CLUSTERING = 6;public static final EmbedContentRequest.EmbeddingTaskType QUESTION_ANSWERING
Specifies that the embeddings will be used for question answering.
QUESTION_ANSWERING = 7;public static final EmbedContentRequest.EmbeddingTaskType FACT_VERIFICATION
Specifies that the embeddings will be used for fact verification.
FACT_VERIFICATION = 8;public static final EmbedContentRequest.EmbeddingTaskType CODE_RETRIEVAL_QUERY
Specifies that the embeddings will be used for code retrieval.
CODE_RETRIEVAL_QUERY = 9;public static final EmbedContentRequest.EmbeddingTaskType UNRECOGNIZED
public static final int UNSPECIFIED_VALUE
Unset value, which will default to one of the other enum values.
UNSPECIFIED = 0;public static final int RETRIEVAL_QUERY_VALUE
Specifies the given text is a query in a search/retrieval setting.
RETRIEVAL_QUERY = 2;public static final int RETRIEVAL_DOCUMENT_VALUE
Specifies the given text is a document from the corpus being searched.
RETRIEVAL_DOCUMENT = 3;public static final int SEMANTIC_SIMILARITY_VALUE
Specifies the given text will be used for STS.
SEMANTIC_SIMILARITY = 4;public static final int CLASSIFICATION_VALUE
Specifies that the given text will be classified.
CLASSIFICATION = 5;public static final int CLUSTERING_VALUE
Specifies that the embeddings will be used for clustering.
CLUSTERING = 6;public static final int QUESTION_ANSWERING_VALUE
Specifies that the embeddings will be used for question answering.
QUESTION_ANSWERING = 7;public static final int FACT_VERIFICATION_VALUE
Specifies that the embeddings will be used for fact verification.
FACT_VERIFICATION = 8;public static final int CODE_RETRIEVAL_QUERY_VALUE
Specifies that the embeddings will be used for code retrieval.
CODE_RETRIEVAL_QUERY = 9;public static EmbedContentRequest.EmbeddingTaskType[] values()
for (EmbedContentRequest.EmbeddingTaskType c : EmbedContentRequest.EmbeddingTaskType.values()) System.out.println(c);
public static EmbedContentRequest.EmbeddingTaskType 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 EmbedContentRequest.EmbeddingTaskType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static EmbedContentRequest.EmbeddingTaskType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<EmbedContentRequest.EmbeddingTaskType> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static EmbedContentRequest.EmbeddingTaskType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2026 Google LLC. All rights reserved.