Package com.google.cloud.retail.v2alpha
Interface RuleOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Rule,Rule.Builder
public interface RuleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rule.ActionCasegetActionCase()Rule.BoostActiongetBoostAction()A boost action.Rule.BoostActionOrBuildergetBoostActionOrBuilder()A boost action.ConditiongetCondition()Required.ConditionOrBuildergetConditionOrBuilder()Required.Rule.DoNotAssociateActiongetDoNotAssociateAction()Prevents term from being associated with other terms.Rule.DoNotAssociateActionOrBuildergetDoNotAssociateActionOrBuilder()Prevents term from being associated with other terms.Rule.FilterActiongetFilterAction()Filters results.Rule.FilterActionOrBuildergetFilterActionOrBuilder()Filters results.Rule.IgnoreActiongetIgnoreAction()Ignores specific terms from query during search.Rule.IgnoreActionOrBuildergetIgnoreActionOrBuilder()Ignores specific terms from query during search.Rule.OnewaySynonymsActiongetOnewaySynonymsAction()Treats specific term as a synonym with a group of terms.Rule.OnewaySynonymsActionOrBuildergetOnewaySynonymsActionOrBuilder()Treats specific term as a synonym with a group of terms.Rule.RedirectActiongetRedirectAction()Redirects a shopper to a specific page.Rule.RedirectActionOrBuildergetRedirectActionOrBuilder()Redirects a shopper to a specific page.Rule.ReplacementActiongetReplacementAction()Replaces specific terms in the query.Rule.ReplacementActionOrBuildergetReplacementActionOrBuilder()Replaces specific terms in the query.Rule.TwowaySynonymsActiongetTwowaySynonymsAction()Treats a set of terms as synonyms of one another.Rule.TwowaySynonymsActionOrBuildergetTwowaySynonymsActionOrBuilder()Treats a set of terms as synonyms of one another.booleanhasBoostAction()A boost action.booleanhasCondition()Required.booleanhasDoNotAssociateAction()Prevents term from being associated with other terms.booleanhasFilterAction()Filters results.booleanhasIgnoreAction()Ignores specific terms from query during search.booleanhasOnewaySynonymsAction()Treats specific term as a synonym with a group of terms.booleanhasRedirectAction()Redirects a shopper to a specific page.booleanhasReplacementAction()Replaces specific terms in the query.booleanhasTwowaySynonymsAction()Treats a set of terms as synonyms of one another.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasBoostAction
boolean hasBoostAction()
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;- Returns:
- Whether the boostAction field is set.
-
getBoostAction
Rule.BoostAction getBoostAction()
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;- Returns:
- The boostAction.
-
getBoostActionOrBuilder
Rule.BoostActionOrBuilder getBoostActionOrBuilder()
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
-
hasRedirectAction
boolean hasRedirectAction()
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;- Returns:
- Whether the redirectAction field is set.
-
getRedirectAction
Rule.RedirectAction getRedirectAction()
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;- Returns:
- The redirectAction.
-
getRedirectActionOrBuilder
Rule.RedirectActionOrBuilder getRedirectActionOrBuilder()
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
-
hasOnewaySynonymsAction
boolean hasOnewaySynonymsAction()
Treats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term.
.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;- Returns:
- Whether the onewaySynonymsAction field is set.
-
getOnewaySynonymsAction
Rule.OnewaySynonymsAction getOnewaySynonymsAction()
Treats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term.
.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;- Returns:
- The onewaySynonymsAction.
-
getOnewaySynonymsActionOrBuilder
Rule.OnewaySynonymsActionOrBuilder getOnewaySynonymsActionOrBuilder()
Treats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term.
.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
-
hasDoNotAssociateAction
boolean hasDoNotAssociateAction()
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;- Returns:
- Whether the doNotAssociateAction field is set.
-
getDoNotAssociateAction
Rule.DoNotAssociateAction getDoNotAssociateAction()
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;- Returns:
- The doNotAssociateAction.
-
getDoNotAssociateActionOrBuilder
Rule.DoNotAssociateActionOrBuilder getDoNotAssociateActionOrBuilder()
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
-
hasReplacementAction
boolean hasReplacementAction()
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;- Returns:
- Whether the replacementAction field is set.
-
getReplacementAction
Rule.ReplacementAction getReplacementAction()
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;- Returns:
- The replacementAction.
-
getReplacementActionOrBuilder
Rule.ReplacementActionOrBuilder getReplacementActionOrBuilder()
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
-
hasIgnoreAction
boolean hasIgnoreAction()
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;- Returns:
- Whether the ignoreAction field is set.
-
getIgnoreAction
Rule.IgnoreAction getIgnoreAction()
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;- Returns:
- The ignoreAction.
-
getIgnoreActionOrBuilder
Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder()
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
-
hasFilterAction
boolean hasFilterAction()
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;- Returns:
- Whether the filterAction field is set.
-
getFilterAction
Rule.FilterAction getFilterAction()
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;- Returns:
- The filterAction.
-
getFilterActionOrBuilder
Rule.FilterActionOrBuilder getFilterActionOrBuilder()
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
-
hasTwowaySynonymsAction
boolean hasTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;- Returns:
- Whether the twowaySynonymsAction field is set.
-
getTwowaySynonymsAction
Rule.TwowaySynonymsAction getTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;- Returns:
- The twowaySynonymsAction.
-
getTwowaySynonymsActionOrBuilder
Rule.TwowaySynonymsActionOrBuilder getTwowaySynonymsActionOrBuilder()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
-
hasCondition
boolean hasCondition()
Required. The condition that triggers the rule. If the condition is empty, the rule will always apply.
.google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the condition field is set.
-
getCondition
Condition getCondition()
Required. The condition that triggers the rule. If the condition is empty, the rule will always apply.
.google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The condition.
-
getConditionOrBuilder
ConditionOrBuilder getConditionOrBuilder()
Required. The condition that triggers the rule. If the condition is empty, the rule will always apply.
.google.cloud.retail.v2alpha.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
-
getActionCase
Rule.ActionCase getActionCase()
-
-