Enum SearchRequest.ContentSearchSpec.SearchResultMode (0.35.0)

public enum SearchRequest.ContentSearchSpec.SearchResultMode extends Enum<SearchRequest.ContentSearchSpec.SearchResultMode> implements ProtocolMessageEnum

Specifies the search result mode. If unspecified, the search result mode is based on [DataStore.DocumentProcessingConfig.chunking_config][]:

  • If [DataStore.DocumentProcessingConfig.chunking_config][] is specified, it defaults to CHUNKS.
  • Otherwise, it defaults to DOCUMENTS.

Protobuf enum google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
CHUNKS

Returns chunks in the search result. Only available if the [DataStore.DocumentProcessingConfig.chunking_config][] is specified.

CHUNKS = 2;

CHUNKS_VALUE

Returns chunks in the search result. Only available if the [DataStore.DocumentProcessingConfig.chunking_config][] is specified.

CHUNKS = 2;

DOCUMENTS

Returns documents in the search result.

DOCUMENTS = 1;

DOCUMENTS_VALUE

Returns documents in the search result.

DOCUMENTS = 1;

SEARCH_RESULT_MODE_UNSPECIFIED

Default value.

SEARCH_RESULT_MODE_UNSPECIFIED = 0;

SEARCH_RESULT_MODE_UNSPECIFIED_VALUE

Default value.

SEARCH_RESULT_MODE_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()