Interface SearchResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchResponse,SearchResponse.Builder
@Generated
public interface SearchResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAppliedControls(int index) Controls applied as part of the Control service.com.google.protobuf.ByteStringgetAppliedControlsBytes(int index) Controls applied as part of the Control service.intControls applied as part of the Control service.Controls applied as part of the Control service.A unique search token.com.google.protobuf.ByteStringA unique search token.Contains the spell corrected query, if found.com.google.protobuf.ByteStringContains the spell corrected query, if found.getFacets(int index) Results of facets requested by user.intResults of facets requested by user.Results of facets requested by user.getFacetsOrBuilder(int index) Results of facets requested by user.List<? extends SearchResponse.FacetOrBuilder>Results of facets requested by user.getGeoSearchDebugInfo(int index) repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;intrepeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;getGeoSearchDebugInfoOrBuilder(int index) repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;List<? extends SearchResponse.GeoSearchDebugInfoOrBuilder>repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;Guided search result.Guided search result.Natural language query understanding information for the returned results.Natural language query understanding information for the returned results.A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token] to retrieve the next page.com.google.protobuf.ByteStringA token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token] to retrieve the next page.getOneBoxResults(int index) A list of One Box results.intA list of One Box results.A list of One Box results.getOneBoxResultsOrBuilder(int index) A list of One Box results.List<? extends SearchResponse.OneBoxResultOrBuilder>A list of One Box results.Query expansion information for the returned results.Query expansion information for the returned results.The URI of a customer-defined redirect page.com.google.protobuf.ByteStringThe URI of a customer-defined redirect page.getResults(int index) A list of matched documents.intA list of matched documents.A list of matched documents.getResultsOrBuilder(int index) A list of matched documents.List<? extends SearchResponse.SearchResultOrBuilder>A list of matched documents.Session information.Session information.A summary as part of the search results.A summary as part of the search results.intThe estimated total count of matched items irrespective of pagination.booleanGuided search result.booleanNatural language query understanding information for the returned results.booleanQuery expansion information for the returned results.booleanSession information.booleanA summary as part of the search results.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
-
getResultsList
List<SearchResponse.SearchResult> getResultsList()A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; -
getResults
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; -
getResultsCount
int getResultsCount()A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; -
getResultsOrBuilderList
List<? extends SearchResponse.SearchResultOrBuilder> getResultsOrBuilderList()A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; -
getResultsOrBuilder
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; -
getFacetsList
List<SearchResponse.Facet> getFacetsList()Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; -
getFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; -
getFacetsCount
int getFacetsCount()Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; -
getFacetsOrBuilderList
List<? extends SearchResponse.FacetOrBuilder> getFacetsOrBuilderList()Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; -
getFacetsOrBuilder
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; -
hasGuidedSearchResult
boolean hasGuidedSearchResult()Guided search result.
.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8;- Returns:
- Whether the guidedSearchResult field is set.
-
getGuidedSearchResult
SearchResponse.GuidedSearchResult getGuidedSearchResult()Guided search result.
.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8;- Returns:
- The guidedSearchResult.
-
getGuidedSearchResultOrBuilder
SearchResponse.GuidedSearchResultOrBuilder getGuidedSearchResultOrBuilder()Guided search result.
.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; -
getTotalSize
int getTotalSize()The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.discoveryengine.v1beta.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.discoveryengine.v1beta.SearchResponse.total_size] that matches.
int32 total_size = 3;- Returns:
- The totalSize.
-
getAttributionToken
String getAttributionToken()A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance. This also helps to identify a request during the customer support scenarios.
string attribution_token = 4;- Returns:
- The attributionToken.
-
getAttributionTokenBytes
com.google.protobuf.ByteString getAttributionTokenBytes()A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance. This also helps to identify a request during the customer support scenarios.
string attribution_token = 4;- Returns:
- The bytes for attributionToken.
-
getRedirectUri
String getRedirectUri()The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 12;- Returns:
- The redirectUri.
-
getRedirectUriBytes
com.google.protobuf.ByteString getRedirectUriBytes()The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 12;- Returns:
- The bytes for redirectUri.
-
getNextPageToken
String getNextPageToken()A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 5;- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
com.google.protobuf.ByteString getNextPageTokenBytes()A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 5;- Returns:
- The bytes for nextPageToken.
-
getCorrectedQuery
String getCorrectedQuery()Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
string corrected_query = 7;- Returns:
- The correctedQuery.
-
getCorrectedQueryBytes
com.google.protobuf.ByteString getCorrectedQueryBytes()Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
string corrected_query = 7;- Returns:
- The bytes for correctedQuery.
-
hasSummary
boolean hasSummary()A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;- Returns:
- Whether the summary field is set.
-
getSummary
SearchResponse.Summary getSummary()A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;- Returns:
- The summary.
-
getSummaryOrBuilder
SearchResponse.SummaryOrBuilder getSummaryOrBuilder()A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9; -
getAppliedControlsList
Controls applied as part of the Control service.
repeated string applied_controls = 10;- Returns:
- A list containing the appliedControls.
-
getAppliedControlsCount
int getAppliedControlsCount()Controls applied as part of the Control service.
repeated string applied_controls = 10;- Returns:
- The count of appliedControls.
-
getAppliedControls
Controls applied as part of the Control service.
repeated string applied_controls = 10;- Parameters:
index- The index of the element to return.- Returns:
- The appliedControls at the given index.
-
getAppliedControlsBytes
com.google.protobuf.ByteString getAppliedControlsBytes(int index) Controls applied as part of the Control service.
repeated string applied_controls = 10;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the appliedControls at the given index.
-
getGeoSearchDebugInfoList
List<SearchResponse.GeoSearchDebugInfo> getGeoSearchDebugInfoList()repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; -
getGeoSearchDebugInfo
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; -
getGeoSearchDebugInfoCount
int getGeoSearchDebugInfoCount()repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; -
getGeoSearchDebugInfoOrBuilderList
List<? extends SearchResponse.GeoSearchDebugInfoOrBuilder> getGeoSearchDebugInfoOrBuilderList()repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; -
getGeoSearchDebugInfoOrBuilder
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; -
hasQueryExpansionInfo
boolean hasQueryExpansionInfo()Query expansion information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14;- Returns:
- Whether the queryExpansionInfo field is set.
-
getQueryExpansionInfo
SearchResponse.QueryExpansionInfo getQueryExpansionInfo()Query expansion information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14;- Returns:
- The queryExpansionInfo.
-
getQueryExpansionInfoOrBuilder
SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder()Query expansion information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; -
hasNaturalLanguageQueryUnderstandingInfo
boolean hasNaturalLanguageQueryUnderstandingInfo()Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15;- Returns:
- Whether the naturalLanguageQueryUnderstandingInfo field is set.
-
getNaturalLanguageQueryUnderstandingInfo
SearchResponse.NaturalLanguageQueryUnderstandingInfo getNaturalLanguageQueryUnderstandingInfo()Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15;- Returns:
- The naturalLanguageQueryUnderstandingInfo.
-
getNaturalLanguageQueryUnderstandingInfoOrBuilder
SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilder getNaturalLanguageQueryUnderstandingInfoOrBuilder()Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; -
hasSessionInfo
boolean hasSessionInfo()Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19;- Returns:
- Whether the sessionInfo field is set.
-
getSessionInfo
SearchResponse.SessionInfo getSessionInfo()Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19;- Returns:
- The sessionInfo.
-
getSessionInfoOrBuilder
SearchResponse.SessionInfoOrBuilder getSessionInfoOrBuilder()Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; -
getOneBoxResultsList
List<SearchResponse.OneBoxResult> getOneBoxResultsList()A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20; -
getOneBoxResults
A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20; -
getOneBoxResultsCount
int getOneBoxResultsCount()A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20; -
getOneBoxResultsOrBuilderList
List<? extends SearchResponse.OneBoxResultOrBuilder> getOneBoxResultsOrBuilderList()A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20; -
getOneBoxResultsOrBuilder
A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20;
-