public static enum SearchRequest.DisplaySpec.MatchHighlightingCondition extends Enum<SearchRequest.DisplaySpec.MatchHighlightingCondition> implements com.google.protobuf.ProtocolMessageEnum
Enum describing under which condition match highlighting should occur.Protobuf enum
google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition| Enum Constant and Description |
|---|
MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED
Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
|
MATCH_HIGHLIGHTING_DISABLED
Disables match highlighting on all documents.
|
MATCH_HIGHLIGHTING_ENABLED
Enables match highlighting on all documents.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED_VALUE
Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
|
static int |
MATCH_HIGHLIGHTING_DISABLED_VALUE
Disables match highlighting on all documents.
|
static int |
MATCH_HIGHLIGHTING_ENABLED_VALUE
Enables match highlighting on all documents.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchRequest.DisplaySpec.MatchHighlightingCondition |
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.DisplaySpec.MatchHighlightingCondition> |
internalGetValueMap() |
static SearchRequest.DisplaySpec.MatchHighlightingCondition |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SearchRequest.DisplaySpec.MatchHighlightingCondition |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SearchRequest.DisplaySpec.MatchHighlightingCondition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchRequest.DisplaySpec.MatchHighlightingCondition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchRequest.DisplaySpec.MatchHighlightingCondition MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED
Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED = 0;public static final SearchRequest.DisplaySpec.MatchHighlightingCondition MATCH_HIGHLIGHTING_DISABLED
Disables match highlighting on all documents.
MATCH_HIGHLIGHTING_DISABLED = 1;public static final SearchRequest.DisplaySpec.MatchHighlightingCondition MATCH_HIGHLIGHTING_ENABLED
Enables match highlighting on all documents.
MATCH_HIGHLIGHTING_ENABLED = 2;public static final SearchRequest.DisplaySpec.MatchHighlightingCondition UNRECOGNIZED
public static final int MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED_VALUE
Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED = 0;public static final int MATCH_HIGHLIGHTING_DISABLED_VALUE
Disables match highlighting on all documents.
MATCH_HIGHLIGHTING_DISABLED = 1;public static final int MATCH_HIGHLIGHTING_ENABLED_VALUE
Enables match highlighting on all documents.
MATCH_HIGHLIGHTING_ENABLED = 2;public static SearchRequest.DisplaySpec.MatchHighlightingCondition[] values()
for (SearchRequest.DisplaySpec.MatchHighlightingCondition c : SearchRequest.DisplaySpec.MatchHighlightingCondition.values()) System.out.println(c);
public static SearchRequest.DisplaySpec.MatchHighlightingCondition 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.DisplaySpec.MatchHighlightingCondition valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchRequest.DisplaySpec.MatchHighlightingCondition forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchRequest.DisplaySpec.MatchHighlightingCondition> 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 SearchRequest.DisplaySpec.MatchHighlightingCondition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2026 Google LLC. All rights reserved.