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 Details

    • getResultsList

       A list of matched documents. The order represents the ranking.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;
    • getResults

      SearchResponse.SearchResult getResults(int index)
       A list of matched documents. The order represents the ranking.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;
    • getResultsCount

      int getResultsCount()
       A list of matched documents. The order represents the ranking.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;
    • getResultsOrBuilderList

      List<? extends SearchResponse.SearchResultOrBuilder> getResultsOrBuilderList()
       A list of matched documents. The order represents the ranking.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;
    • getResultsOrBuilder

      SearchResponse.SearchResultOrBuilder getResultsOrBuilder(int index)
       A list of matched documents. The order represents the ranking.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;
    • getFacetsList

      List<SearchResponse.Facet> getFacetsList()
       Results of facets requested by user.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;
    • getFacets

      SearchResponse.Facet getFacets(int index)
       Results of facets requested by user.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;
    • getFacetsCount

      int getFacetsCount()
       Results of facets requested by user.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;
    • getFacetsOrBuilderList

      List<? extends SearchResponse.FacetOrBuilder> getFacetsOrBuilderList()
       Results of facets requested by user.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;
    • getFacetsOrBuilder

      SearchResponse.FacetOrBuilder getFacetsOrBuilder(int index)
       Results of facets requested by user.
       
      repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;
    • getTotalSize

      int getTotalSize()
       The estimated total count of matched items irrespective of pagination. The
       count of [results][google.cloud.discoveryengine.v1.SearchResponse.results]
       returned by pagination may be less than the
       [total_size][google.cloud.discoveryengine.v1.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.v1.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.v1.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.v1.SearchResponse.redirect_uri]
       and
       [attribution_token][google.cloud.discoveryengine.v1.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.v1.SearchResponse.redirect_uri]
       and
       [attribution_token][google.cloud.discoveryengine.v1.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.v1.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.v1.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.v1.SearchRequest.ContentSearchSpec.summary_spec]
       is set.
       
      .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9;
      Returns:
      Whether the summary field is set.
    • getSummary

       A summary as part of the search results.
       This field is only returned if
       [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec]
       is set.
       
      .google.cloud.discoveryengine.v1.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.v1.SearchRequest.ContentSearchSpec.summary_spec]
       is set.
       
      .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9;
    • hasQueryExpansionInfo

      boolean hasQueryExpansionInfo()
       Query expansion information for the returned results.
       
      .google.cloud.discoveryengine.v1.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.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14;
      Returns:
      The queryExpansionInfo.
    • getQueryExpansionInfoOrBuilder

      SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder()
       Query expansion information for the returned results.
       
      .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14;
    • hasNaturalLanguageQueryUnderstandingInfo

      boolean hasNaturalLanguageQueryUnderstandingInfo()
       Output only. Natural language query understanding information for the
       returned results.
       
      .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the naturalLanguageQueryUnderstandingInfo field is set.
    • getNaturalLanguageQueryUnderstandingInfo

      SearchResponse.NaturalLanguageQueryUnderstandingInfo getNaturalLanguageQueryUnderstandingInfo()
       Output only. Natural language query understanding information for the
       returned results.
       
      .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The naturalLanguageQueryUnderstandingInfo.
    • getNaturalLanguageQueryUnderstandingInfoOrBuilder

      SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilder getNaturalLanguageQueryUnderstandingInfoOrBuilder()
       Output only. Natural language query understanding information for the
       returned results.
       
      .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasSessionInfo

      boolean hasSessionInfo()
       Session information.
      
       Only set if
       [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session]
       is provided. See its description for more details.
       
      .google.cloud.discoveryengine.v1.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.v1.SearchRequest.session]
       is provided. See its description for more details.
       
      .google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19;
      Returns:
      The sessionInfo.
    • getSessionInfoOrBuilder

      SearchResponse.SessionInfoOrBuilder getSessionInfoOrBuilder()
       Session information.
      
       Only set if
       [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session]
       is provided. See its description for more details.
       
      .google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19;
    • getSearchLinkPromotionsList

      List<SearchLinkPromotion> getSearchLinkPromotionsList()
       Promotions for site search.
       
      repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;
    • getSearchLinkPromotions

      SearchLinkPromotion getSearchLinkPromotions(int index)
       Promotions for site search.
       
      repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;
    • getSearchLinkPromotionsCount

      int getSearchLinkPromotionsCount()
       Promotions for site search.
       
      repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;
    • getSearchLinkPromotionsOrBuilderList

      List<? extends SearchLinkPromotionOrBuilder> getSearchLinkPromotionsOrBuilderList()
       Promotions for site search.
       
      repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;
    • getSearchLinkPromotionsOrBuilder

      SearchLinkPromotionOrBuilder getSearchLinkPromotionsOrBuilder(int index)
       Promotions for site search.
       
      repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;
    • getSemanticStateValue

      int getSemanticStateValue()
       Output only. Indicates the semantic state of the search response.
       
      .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The enum numeric value on the wire for semanticState.
    • getSemanticState

      SearchResponse.SemanticState getSemanticState()
       Output only. Indicates the semantic state of the search response.
       
      .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The semanticState.