Interface SearchRequest.QueryExpansionSpecOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      SearchRequest.QueryExpansionSpec.Condition getCondition()
      The condition under which query expansion should occur.
      int getConditionValue()
      The condition under which query expansion should occur.
      boolean getPinUnexpandedResults()
      Whether to pin unexpanded 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

      • getConditionValue

        int getConditionValue()
         The condition under which query expansion should occur. Default to
         [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
         
        .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1;
        Returns:
        The enum numeric value on the wire for condition.
      • getCondition

        SearchRequest.QueryExpansionSpec.Condition getCondition()
         The condition under which query expansion should occur. Default to
         [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
         
        .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1;
        Returns:
        The condition.
      • getPinUnexpandedResults

        boolean getPinUnexpandedResults()
         Whether to pin unexpanded results. If this field is set to true,
         unexpanded products are always at the top of the search results, followed
         by the expanded results.
         
        bool pin_unexpanded_results = 2;
        Returns:
        The pinUnexpandedResults.