public static enum SearchRequest.RelevanceThreshold extends Enum<SearchRequest.RelevanceThreshold> implements com.google.protobuf.ProtocolMessageEnum
The relevance threshold of the search results. The higher relevance threshold is, the higher relevant results are shown and the less number of results are returned.Protobuf enum
google.cloud.discoveryengine.v1alpha.SearchRequest.RelevanceThreshold| Enum Constant and Description |
|---|
HIGH
High relevance threshold.
|
LOW
Low relevance threshold.
|
LOWEST
Lowest relevance threshold.
|
MEDIUM
Medium relevance threshold.
|
RELEVANCE_THRESHOLD_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
HIGH_VALUE
High relevance threshold.
|
static int |
LOW_VALUE
Low relevance threshold.
|
static int |
LOWEST_VALUE
Lowest relevance threshold.
|
static int |
MEDIUM_VALUE
Medium relevance threshold.
|
static int |
RELEVANCE_THRESHOLD_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchRequest.RelevanceThreshold |
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<SearchRequest.RelevanceThreshold> |
internalGetValueMap() |
static SearchRequest.RelevanceThreshold |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SearchRequest.RelevanceThreshold |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SearchRequest.RelevanceThreshold |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchRequest.RelevanceThreshold[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchRequest.RelevanceThreshold RELEVANCE_THRESHOLD_UNSPECIFIED
Default value. In this case, server behavior defaults to Google defined threshold.
RELEVANCE_THRESHOLD_UNSPECIFIED = 0;public static final SearchRequest.RelevanceThreshold LOWEST
Lowest relevance threshold.
LOWEST = 1;public static final SearchRequest.RelevanceThreshold LOW
Low relevance threshold.
LOW = 2;public static final SearchRequest.RelevanceThreshold MEDIUM
Medium relevance threshold.
MEDIUM = 3;public static final SearchRequest.RelevanceThreshold HIGH
High relevance threshold.
HIGH = 4;public static final SearchRequest.RelevanceThreshold UNRECOGNIZED
public static final int RELEVANCE_THRESHOLD_UNSPECIFIED_VALUE
Default value. In this case, server behavior defaults to Google defined threshold.
RELEVANCE_THRESHOLD_UNSPECIFIED = 0;public static final int LOWEST_VALUE
Lowest relevance threshold.
LOWEST = 1;public static final int LOW_VALUE
Low relevance threshold.
LOW = 2;public static final int MEDIUM_VALUE
Medium relevance threshold.
MEDIUM = 3;public static final int HIGH_VALUE
High relevance threshold.
HIGH = 4;public static SearchRequest.RelevanceThreshold[] values()
for (SearchRequest.RelevanceThreshold c : SearchRequest.RelevanceThreshold.values()) System.out.println(c);
public static SearchRequest.RelevanceThreshold 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 SearchRequest.RelevanceThreshold valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchRequest.RelevanceThreshold forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchRequest.RelevanceThreshold> 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 SearchRequest.RelevanceThreshold valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.