public static interface SearchResponse.SearchResult.RetrievalSignalsOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getRetrievalSources(int index)
public abstract SearchResponse.SearchResult.RetrievalSignals.RetrievalSource getRetrievalSources(int index)Optional. Indicates how the result was retrieved.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RetrievalSignals.RetrievalSource retrieval_sources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
SearchResponse.SearchResult.RetrievalSignals.RetrievalSource |
The retrievalSources at the given index. |
getRetrievalSourcesCount()
public abstract int getRetrievalSourcesCount()Optional. Indicates how the result was retrieved.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RetrievalSignals.RetrievalSource retrieval_sources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of retrievalSources. |
getRetrievalSourcesList()
public abstract List<SearchResponse.SearchResult.RetrievalSignals.RetrievalSource> getRetrievalSourcesList()Optional. Indicates how the result was retrieved.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RetrievalSignals.RetrievalSource retrieval_sources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<RetrievalSource> |
A list containing the retrievalSources. |
getRetrievalSourcesValue(int index)
public abstract int getRetrievalSourcesValue(int index)Optional. Indicates how the result was retrieved.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RetrievalSignals.RetrievalSource retrieval_sources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of retrievalSources at the given index. |
getRetrievalSourcesValueList()
public abstract List<Integer> getRetrievalSourcesValueList()Optional. Indicates how the result was retrieved.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RetrievalSignals.RetrievalSource retrieval_sources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for retrievalSources. |
getSemanticRelevanceScore()
public abstract float getSemanticRelevanceScore()Optional. Relevance score used by the filter when semantic_relevance_threshold is set.
float semantic_relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
float |
The semanticRelevanceScore. |