public static enum SearchRequest.ContentSearchSpec.SearchResultMode extends Enum<SearchRequest.ContentSearchSpec.SearchResultMode> implements com.google.protobuf.ProtocolMessageEnum
Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`.Protobuf enum
google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode| Enum Constant and Description |
|---|
CHUNKS
Returns chunks in the search result.
|
DOCUMENTS
Returns documents in the search result.
|
SEARCH_RESULT_MODE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNKS_VALUE
Returns chunks in the search result.
|
static int |
DOCUMENTS_VALUE
Returns documents in the search result.
|
static int |
SEARCH_RESULT_MODE_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchRequest.ContentSearchSpec.SearchResultMode |
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.ContentSearchSpec.SearchResultMode> |
internalGetValueMap() |
static SearchRequest.ContentSearchSpec.SearchResultMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SearchRequest.ContentSearchSpec.SearchResultMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SearchRequest.ContentSearchSpec.SearchResultMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchRequest.ContentSearchSpec.SearchResultMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchRequest.ContentSearchSpec.SearchResultMode SEARCH_RESULT_MODE_UNSPECIFIED
Default value.
SEARCH_RESULT_MODE_UNSPECIFIED = 0;public static final SearchRequest.ContentSearchSpec.SearchResultMode DOCUMENTS
Returns documents in the search result.
DOCUMENTS = 1;public static final SearchRequest.ContentSearchSpec.SearchResultMode CHUNKS
Returns chunks in the search result. Only available if the [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
CHUNKS = 2;public static final SearchRequest.ContentSearchSpec.SearchResultMode UNRECOGNIZED
public static final int SEARCH_RESULT_MODE_UNSPECIFIED_VALUE
Default value.
SEARCH_RESULT_MODE_UNSPECIFIED = 0;public static final int DOCUMENTS_VALUE
Returns documents in the search result.
DOCUMENTS = 1;public static final int CHUNKS_VALUE
Returns chunks in the search result. Only available if the [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
CHUNKS = 2;public static SearchRequest.ContentSearchSpec.SearchResultMode[] values()
for (SearchRequest.ContentSearchSpec.SearchResultMode c : SearchRequest.ContentSearchSpec.SearchResultMode.values()) System.out.println(c);
public static SearchRequest.ContentSearchSpec.SearchResultMode 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.ContentSearchSpec.SearchResultMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchRequest.ContentSearchSpec.SearchResultMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchRequest.ContentSearchSpec.SearchResultMode> 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.ContentSearchSpec.SearchResultMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.