public static enum SearchResponse.SemanticState extends Enum<SearchResponse.SemanticState> implements com.google.protobuf.ProtocolMessageEnum
Semantic state of the search response.Protobuf enum
google.cloud.discoveryengine.v1.SearchResponse.SemanticState| Enum Constant and Description |
|---|
DISABLED
Semantic search was disabled for this search response.
|
ENABLED
Semantic search was enabled for this search response.
|
SEMANTIC_STATE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DISABLED_VALUE
Semantic search was disabled for this search response.
|
static int |
ENABLED_VALUE
Semantic search was enabled for this search response.
|
static int |
SEMANTIC_STATE_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchResponse.SemanticState |
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<SearchResponse.SemanticState> |
internalGetValueMap() |
static SearchResponse.SemanticState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SearchResponse.SemanticState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SearchResponse.SemanticState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchResponse.SemanticState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchResponse.SemanticState SEMANTIC_STATE_UNSPECIFIED
Default value. Should not be used.
SEMANTIC_STATE_UNSPECIFIED = 0;public static final SearchResponse.SemanticState DISABLED
Semantic search was disabled for this search response.
DISABLED = 1;public static final SearchResponse.SemanticState ENABLED
Semantic search was enabled for this search response.
ENABLED = 2;public static final SearchResponse.SemanticState UNRECOGNIZED
public static final int SEMANTIC_STATE_UNSPECIFIED_VALUE
Default value. Should not be used.
SEMANTIC_STATE_UNSPECIFIED = 0;public static final int DISABLED_VALUE
Semantic search was disabled for this search response.
DISABLED = 1;public static final int ENABLED_VALUE
Semantic search was enabled for this search response.
ENABLED = 2;public static SearchResponse.SemanticState[] values()
for (SearchResponse.SemanticState c : SearchResponse.SemanticState.values()) System.out.println(c);
public static SearchResponse.SemanticState 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 SearchResponse.SemanticState valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchResponse.SemanticState forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchResponse.SemanticState> 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 SearchResponse.SemanticState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2026 Google LLC. All rights reserved.