Interface SearchResponse.SearchResultOrBuilder (0.95.0)

public static interface SearchResponse.SearchResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsModelScores(String key)

public abstract boolean containsModelScores(String key)

Output only. Google provided available scores.

map<string, .google.cloud.discoveryengine.v1.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
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.v1.Chunk chunk = 18;

Returns
Type Description
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.v1.Chunk chunk = 18;

Returns
Type Description
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.v1.Document document = 2;

Returns
Type Description
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.v1.Document document = 2;

Returns
Type Description
DocumentOrBuilder

getId()

public abstract String getId()

Document.id of the searched Document.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

Document.id of the searched Document.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getModelScores() (deprecated)

public abstract Map<String,DoubleList> getModelScores()

Use #getModelScoresMap() instead.

Returns
Type Description
Map<String,DoubleList>

getModelScoresCount()

public abstract int getModelScoresCount()

Output only. Google provided available scores.

map<string, .google.cloud.discoveryengine.v1.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getModelScoresMap()

public abstract Map<String,DoubleList> getModelScoresMap()

Output only. Google provided available scores.

map<string, .google.cloud.discoveryengine.v1.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,DoubleList>

getModelScoresOrDefault(String key, DoubleList defaultValue)

public abstract DoubleList getModelScoresOrDefault(String key, DoubleList defaultValue)

Output only. Google provided available scores.

map<string, .google.cloud.discoveryengine.v1.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue DoubleList
Returns
Type Description
DoubleList

getModelScoresOrThrow(String key)

public abstract DoubleList getModelScoresOrThrow(String key)

Output only. Google provided available scores.

map<string, .google.cloud.discoveryengine.v1.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
DoubleList

getRankSignals()

public abstract SearchResponse.SearchResult.RankSignals getRankSignals()

Optional. A set of ranking signals associated with the result.

.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RankSignals rank_signals = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchResponse.SearchResult.RankSignals

The rankSignals.

getRankSignalsOrBuilder()

public abstract SearchResponse.SearchResult.RankSignalsOrBuilder getRankSignalsOrBuilder()

Optional. A set of ranking signals associated with the result.

.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RankSignals rank_signals = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchResponse.SearchResult.RankSignalsOrBuilder

getRetrievalSignals()

public abstract SearchResponse.SearchResult.RetrievalSignals getRetrievalSignals()

Optional. A set of signals used by the relevance filter meant for use to fine-tune the relevance filter thresholds.

.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RetrievalSignals retrieval_signals = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchResponse.SearchResult.RetrievalSignals

The retrievalSignals.

getRetrievalSignalsOrBuilder()

public abstract SearchResponse.SearchResult.RetrievalSignalsOrBuilder getRetrievalSignalsOrBuilder()

Optional. A set of signals used by the relevance filter meant for use to fine-tune the relevance filter thresholds.

.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RetrievalSignals retrieval_signals = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchResponse.SearchResult.RetrievalSignalsOrBuilder

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.v1.Chunk chunk = 18;

Returns
Type Description
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.v1.Document document = 2;

Returns
Type Description
boolean

Whether the document field is set.

hasRankSignals()

public abstract boolean hasRankSignals()

Optional. A set of ranking signals associated with the result.

.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RankSignals rank_signals = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rankSignals field is set.

hasRetrievalSignals()

public abstract boolean hasRetrievalSignals()

Optional. A set of signals used by the relevance filter meant for use to fine-tune the relevance filter thresholds.

.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RetrievalSignals retrieval_signals = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the retrievalSignals field is set.