Interface SearchResponse.SearchResultOrBuilder (0.36.0)

public static interface SearchResponse.SearchResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsModelScores(String key)

public abstract boolean containsModelScores(String key)

Google provided available scores.

map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getChunk()

public abstract Chunk getChunk()

The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.

.google.cloud.discoveryengine.v1alpha.Chunk chunk = 18;

Returns
TypeDescription
Chunk

The chunk.

getChunkOrBuilder()

public abstract ChunkOrBuilder getChunkOrBuilder()

The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.

.google.cloud.discoveryengine.v1alpha.Chunk chunk = 18;

Returns
TypeDescription
ChunkOrBuilder

getDocument()

public abstract Document getDocument()

The document data snippet in the search response. Only fields that are marked as retrievable are populated.

.google.cloud.discoveryengine.v1alpha.Document document = 2;

Returns
TypeDescription
Document

The document.

getDocumentOrBuilder()

public abstract DocumentOrBuilder getDocumentOrBuilder()

The document data snippet in the search response. Only fields that are marked as retrievable are populated.

.google.cloud.discoveryengine.v1alpha.Document document = 2;

Returns
TypeDescription
DocumentOrBuilder

getId()

public abstract String getId()

Document.id of the searched Document.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

Document.id of the searched Document.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getModelScores() (deprecated)

public abstract Map<String,DoubleList> getModelScores()

Use #getModelScoresMap() instead.

Returns
TypeDescription
Map<String,DoubleList>

getModelScoresCount()

public abstract int getModelScoresCount()

Google provided available scores.

map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4;

Returns
TypeDescription
int

getModelScoresMap()

public abstract Map<String,DoubleList> getModelScoresMap()

Google provided available scores.

map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4;

Returns
TypeDescription
Map<String,DoubleList>

getModelScoresOrDefault(String key, DoubleList defaultValue)

public abstract DoubleList getModelScoresOrDefault(String key, DoubleList defaultValue)

Google provided available scores.

map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4;

Parameters
NameDescription
keyString
defaultValueDoubleList
Returns
TypeDescription
DoubleList

getModelScoresOrThrow(String key)

public abstract DoubleList getModelScoresOrThrow(String key)

Google provided available scores.

map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
DoubleList

hasChunk()

public abstract boolean hasChunk()

The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.

.google.cloud.discoveryengine.v1alpha.Chunk chunk = 18;

Returns
TypeDescription
boolean

Whether the chunk field is set.

hasDocument()

public abstract boolean hasDocument()

The document data snippet in the search response. Only fields that are marked as retrievable are populated.

.google.cloud.discoveryengine.v1alpha.Document document = 2;

Returns
TypeDescription
boolean

Whether the document field is set.