Interface SearchResponse.QueryExpansionInfoOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getExpandedQuery()
      Bool describing whether query expansion has occurred.
      long getPinnedResultCount()
      Number of pinned results.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getExpandedQuery

        boolean getExpandedQuery()
         Bool describing whether query expansion has occurred.
         
        bool expanded_query = 1;
        Returns:
        The expandedQuery.
      • getPinnedResultCount

        long getPinnedResultCount()
         Number of pinned results. This field will only be set when expansion
         happens and
         [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.retail.v2.SearchRequest.QueryExpansionSpec.pin_unexpanded_results]
         is set to true.
         
        int64 pinned_result_count = 2;
        Returns:
        The pinnedResultCount.