Package com.google.cloud.retail.v2
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.ActionCase
getActionCase()
Rule.BoostAction
getBoostAction()
A boost action.Rule.BoostActionOrBuilder
getBoostActionOrBuilder()
A boost action.Condition
getCondition()
Required.ConditionOrBuilder
getConditionOrBuilder()
Required.Rule.DoNotAssociateAction
getDoNotAssociateAction()
Prevents term from being associated with other terms.Rule.DoNotAssociateActionOrBuilder
getDoNotAssociateActionOrBuilder()
Prevents term from being associated with other terms.Rule.FilterAction
getFilterAction()
Filters results.Rule.FilterActionOrBuilder
getFilterActionOrBuilder()
Filters results.Rule.IgnoreAction
getIgnoreAction()
Ignores specific terms from query during search.Rule.IgnoreActionOrBuilder
getIgnoreActionOrBuilder()
Ignores specific terms from query during search.Rule.OnewaySynonymsAction
getOnewaySynonymsAction()
Treats specific term as a synonym with a group of terms.Rule.OnewaySynonymsActionOrBuilder
getOnewaySynonymsActionOrBuilder()
Treats specific term as a synonym with a group of terms.Rule.RedirectAction
getRedirectAction()
Redirects a shopper to a specific page.Rule.RedirectActionOrBuilder
getRedirectActionOrBuilder()
Redirects a shopper to a specific page.Rule.ReplacementAction
getReplacementAction()
Replaces specific terms in the query.Rule.ReplacementActionOrBuilder
getReplacementActionOrBuilder()
Replaces specific terms in the query.Rule.TwowaySynonymsAction
getTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.Rule.TwowaySynonymsActionOrBuilder
getTwowaySynonymsActionOrBuilder()
Treats a set of terms as synonyms of one another.boolean
hasBoostAction()
A boost action.boolean
hasCondition()
Required.boolean
hasDoNotAssociateAction()
Prevents term from being associated with other terms.boolean
hasFilterAction()
Filters results.boolean
hasIgnoreAction()
Ignores specific terms from query during search.boolean
hasOnewaySynonymsAction()
Treats specific term as a synonym with a group of terms.boolean
hasRedirectAction()
Redirects a shopper to a specific page.boolean
hasReplacementAction()
Replaces specific terms in the query.boolean
hasTwowaySynonymsAction()
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.v2.Rule.BoostAction boost_action = 2;
- Returns:
- Whether the boostAction field is set.
-
getBoostAction
Rule.BoostAction getBoostAction()
A boost action.
.google.cloud.retail.v2.Rule.BoostAction boost_action = 2;
- Returns:
- The boostAction.
-
getBoostActionOrBuilder
Rule.BoostActionOrBuilder getBoostActionOrBuilder()
A boost action.
.google.cloud.retail.v2.Rule.BoostAction boost_action = 2;
-
hasRedirectAction
boolean hasRedirectAction()
Redirects a shopper to a specific page.
.google.cloud.retail.v2.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.v2.Rule.RedirectAction redirect_action = 3;
- Returns:
- The redirectAction.
-
getRedirectActionOrBuilder
Rule.RedirectActionOrBuilder getRedirectActionOrBuilder()
Redirects a shopper to a specific page.
.google.cloud.retail.v2.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.v2.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.v2.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.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
-
hasDoNotAssociateAction
boolean hasDoNotAssociateAction()
Prevents term from being associated with other terms.
.google.cloud.retail.v2.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.v2.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.v2.Rule.DoNotAssociateAction do_not_associate_action = 7;
-
hasReplacementAction
boolean hasReplacementAction()
Replaces specific terms in the query.
.google.cloud.retail.v2.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.v2.Rule.ReplacementAction replacement_action = 8;
- Returns:
- The replacementAction.
-
getReplacementActionOrBuilder
Rule.ReplacementActionOrBuilder getReplacementActionOrBuilder()
Replaces specific terms in the query.
.google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8;
-
hasIgnoreAction
boolean hasIgnoreAction()
Ignores specific terms from query during search.
.google.cloud.retail.v2.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.v2.Rule.IgnoreAction ignore_action = 9;
- Returns:
- The ignoreAction.
-
getIgnoreActionOrBuilder
Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder()
Ignores specific terms from query during search.
.google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9;
-
hasFilterAction
boolean hasFilterAction()
Filters results.
.google.cloud.retail.v2.Rule.FilterAction filter_action = 10;
- Returns:
- Whether the filterAction field is set.
-
getFilterAction
Rule.FilterAction getFilterAction()
Filters results.
.google.cloud.retail.v2.Rule.FilterAction filter_action = 10;
- Returns:
- The filterAction.
-
getFilterActionOrBuilder
Rule.FilterActionOrBuilder getFilterActionOrBuilder()
Filters results.
.google.cloud.retail.v2.Rule.FilterAction filter_action = 10;
-
hasTwowaySynonymsAction
boolean hasTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2.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.v2.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.v2.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.v2.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.v2.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.v2.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
-
getActionCase
Rule.ActionCase getActionCase()
-
-