Interface SearchRequest.QueryExpansionSpecOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchRequest.QueryExpansionSpec,SearchRequest.QueryExpansionSpec.Builder
- Enclosing class:
- SearchRequest
public static interface SearchRequest.QueryExpansionSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe condition under which query expansion should occur.intThe condition under which query expansion should occur.booleanWhether to pin unexpanded 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
-
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.
-