Package com.google.cloud.aiplatform.v1
Enum EmbedContentRequest.EmbeddingTaskType
java.lang.Object
java.lang.Enum<EmbedContentRequest.EmbeddingTaskType>
com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<EmbedContentRequest.EmbeddingTaskType>
- Enclosing class:
- EmbedContentRequest
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 Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that the given text will be classified.Specifies that the embeddings will be used for clustering.Specifies that the embeddings will be used for code retrieval.Specifies that the embeddings will be used for fact verification.Specifies that the embeddings will be used for question answering.Specifies the given text is a document from the corpus being searched.Specifies the given text is a query in a search/retrieval setting.Specifies the given text will be used for STS.Unset value, which will default to one of the other enum values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSpecifies that the given text will be classified.static final intSpecifies that the embeddings will be used for clustering.static final intSpecifies that the embeddings will be used for code retrieval.static final intSpecifies that the embeddings will be used for fact verification.static final intSpecifies that the embeddings will be used for question answering.static final intSpecifies the given text is a document from the corpus being searched.static final intSpecifies the given text is a query in a search/retrieval setting.static final intSpecifies the given text will be used for STS.static final intUnset value, which will default to one of the other enum values. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<EmbedContentRequest.EmbeddingTaskType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
Unset value, which will default to one of the other enum values.
UNSPECIFIED = 0; -
RETRIEVAL_QUERY
Specifies the given text is a query in a search/retrieval setting.
RETRIEVAL_QUERY = 2; -
RETRIEVAL_DOCUMENT
Specifies the given text is a document from the corpus being searched.
RETRIEVAL_DOCUMENT = 3; -
SEMANTIC_SIMILARITY
Specifies the given text will be used for STS.
SEMANTIC_SIMILARITY = 4; -
CLASSIFICATION
Specifies that the given text will be classified.
CLASSIFICATION = 5; -
CLUSTERING
Specifies that the embeddings will be used for clustering.
CLUSTERING = 6; -
QUESTION_ANSWERING
Specifies that the embeddings will be used for question answering.
QUESTION_ANSWERING = 7; -
FACT_VERIFICATION
Specifies that the embeddings will be used for fact verification.
FACT_VERIFICATION = 8; -
CODE_RETRIEVAL_QUERY
Specifies that the embeddings will be used for code retrieval.
CODE_RETRIEVAL_QUERY = 9; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEUnset value, which will default to one of the other enum values.
UNSPECIFIED = 0;- See Also:
-
RETRIEVAL_QUERY_VALUE
public static final int RETRIEVAL_QUERY_VALUESpecifies the given text is a query in a search/retrieval setting.
RETRIEVAL_QUERY = 2;- See Also:
-
RETRIEVAL_DOCUMENT_VALUE
public static final int RETRIEVAL_DOCUMENT_VALUESpecifies the given text is a document from the corpus being searched.
RETRIEVAL_DOCUMENT = 3;- See Also:
-
SEMANTIC_SIMILARITY_VALUE
public static final int SEMANTIC_SIMILARITY_VALUESpecifies the given text will be used for STS.
SEMANTIC_SIMILARITY = 4;- See Also:
-
CLASSIFICATION_VALUE
public static final int CLASSIFICATION_VALUESpecifies that the given text will be classified.
CLASSIFICATION = 5;- See Also:
-
CLUSTERING_VALUE
public static final int CLUSTERING_VALUESpecifies that the embeddings will be used for clustering.
CLUSTERING = 6;- See Also:
-
QUESTION_ANSWERING_VALUE
public static final int QUESTION_ANSWERING_VALUESpecifies that the embeddings will be used for question answering.
QUESTION_ANSWERING = 7;- See Also:
-
FACT_VERIFICATION_VALUE
public static final int FACT_VERIFICATION_VALUESpecifies that the embeddings will be used for fact verification.
FACT_VERIFICATION = 8;- See Also:
-
CODE_RETRIEVAL_QUERY_VALUE
public static final int CODE_RETRIEVAL_QUERY_VALUESpecifies that the embeddings will be used for code retrieval.
CODE_RETRIEVAL_QUERY = 9;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<EmbedContentRequest.EmbeddingTaskType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static EmbedContentRequest.EmbeddingTaskType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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:
desc- 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
-