public static enum AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType extends Enum<AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType> implements com.google.protobuf.ProtocolMessageEnum
Query rephraser types. Currently only supports single-hop (max_rephrase_steps = 1) model selections. For multi-hop (max_rephrase_steps > 1), there is only one default model.Protobuf enum
google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType| Enum Constant and Description |
|---|
LARGE
Large query rephraser model.
|
MODEL_TYPE_UNSPECIFIED
Unspecified model type.
|
SMALL
Small query rephraser model.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
LARGE_VALUE
Large query rephraser model.
|
static int |
MODEL_TYPE_UNSPECIFIED_VALUE
Unspecified model type.
|
static int |
SMALL_VALUE
Small query rephraser model.
|
public static final AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType MODEL_TYPE_UNSPECIFIED
Unspecified model type.
MODEL_TYPE_UNSPECIFIED = 0;public static final AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType SMALL
Small query rephraser model. Gemini 1.0 XS model.
SMALL = 1;public static final AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType LARGE
Large query rephraser model. Gemini 1.0 Pro model.
LARGE = 2;public static final AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType UNRECOGNIZED
public static final int MODEL_TYPE_UNSPECIFIED_VALUE
Unspecified model type.
MODEL_TYPE_UNSPECIFIED = 0;public static final int SMALL_VALUE
Small query rephraser model. Gemini 1.0 XS model.
SMALL = 1;public static final int LARGE_VALUE
Large query rephraser model. Gemini 1.0 Pro model.
LARGE = 2;public static AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType[] values()
for (AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType c : AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType.values()) System.out.println(c);
public static AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType 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 AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType> 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 AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2026 Google LLC. All rights reserved.