Interface SearchResponse.SearchResultOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchResponse.SearchResult,SearchResponse.SearchResult.Builder
- Enclosing class:
- SearchResponse
public static interface SearchResponse.SearchResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGoogle provided available scores.getChunk()The chunk data in the search response if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].The chunk data in the search response if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].The document data snippet in the search response.The document data snippet in the search response.getId()[Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the searched [Document][google.cloud.discoveryengine.v1beta.Document].com.google.protobuf.ByteString[Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the searched [Document][google.cloud.discoveryengine.v1beta.Document].Deprecated.intGoogle provided available scores.Google provided available scores.getModelScoresOrDefault(String key, DoubleList defaultValue) Google provided available scores.Google provided available scores.A set of ranking signals associated with the result.A set of ranking signals associated with the result.booleanhasChunk()The chunk data in the search response if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].booleanThe document data snippet in the search response.booleanA set of ranking signals associated with the result.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getId
String getId()[Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the searched [Document][google.cloud.discoveryengine.v1beta.Document].
string id = 1;- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()[Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the searched [Document][google.cloud.discoveryengine.v1beta.Document].
string id = 1;- Returns:
- The bytes for id.
-
hasDocument
boolean hasDocument()The document data snippet in the search response. Only fields that are marked as `retrievable` are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;- Returns:
- Whether the document field is set.
-
getDocument
Document getDocument()The document data snippet in the search response. Only fields that are marked as `retrievable` are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;- Returns:
- The document.
-
getDocumentOrBuilder
DocumentOrBuilder getDocumentOrBuilder()The document data snippet in the search response. Only fields that are marked as `retrievable` are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2; -
hasChunk
boolean hasChunk()The chunk data in the search response if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
.google.cloud.discoveryengine.v1beta.Chunk chunk = 18;- Returns:
- Whether the chunk field is set.
-
getChunk
Chunk getChunk()The chunk data in the search response if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
.google.cloud.discoveryengine.v1beta.Chunk chunk = 18;- Returns:
- The chunk.
-
getChunkOrBuilder
ChunkOrBuilder getChunkOrBuilder()The chunk data in the search response if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
.google.cloud.discoveryengine.v1beta.Chunk chunk = 18; -
getModelScoresCount
int getModelScoresCount()Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; -
containsModelScores
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; -
getModelScores
Deprecated.UsegetModelScoresMap()instead. -
getModelScoresMap
Map<String,DoubleList> getModelScoresMap()Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; -
getModelScoresOrDefault
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; -
getModelScoresOrThrow
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; -
hasRankSignals
boolean hasRankSignals()A set of ranking signals associated with the result.
.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.RankSignals rank_signals = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the rankSignals field is set.
-
getRankSignals
SearchResponse.SearchResult.RankSignals getRankSignals()A set of ranking signals associated with the result.
.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.RankSignals rank_signals = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The rankSignals.
-
getRankSignalsOrBuilder
SearchResponse.SearchResult.RankSignalsOrBuilder getRankSignalsOrBuilder()A set of ranking signals associated with the result.
.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.RankSignals rank_signals = 7 [(.google.api.field_behavior) = OPTIONAL];
-