Interface RuleOrBuilder (2.25.0)

public interface RuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getActionCase()

public abstract Rule.ActionCase getActionCase()
Returns
TypeDescription
Rule.ActionCase

getBoostAction()

public abstract Rule.BoostAction getBoostAction()

A boost action.

.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;

Returns
TypeDescription
Rule.BoostAction

The boostAction.

getBoostActionOrBuilder()

public abstract Rule.BoostActionOrBuilder getBoostActionOrBuilder()

A boost action.

.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;

Returns
TypeDescription
Rule.BoostActionOrBuilder

getCondition()

public abstract 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
TypeDescription
Condition

The condition.

getConditionOrBuilder()

public abstract 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];

Returns
TypeDescription
ConditionOrBuilder

getDoNotAssociateAction()

public abstract Rule.DoNotAssociateAction getDoNotAssociateAction()

Prevents term from being associated with other terms.

.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;

Returns
TypeDescription
Rule.DoNotAssociateAction

The doNotAssociateAction.

getDoNotAssociateActionOrBuilder()

public abstract Rule.DoNotAssociateActionOrBuilder getDoNotAssociateActionOrBuilder()

Prevents term from being associated with other terms.

.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;

Returns
TypeDescription
Rule.DoNotAssociateActionOrBuilder

getFilterAction()

public abstract Rule.FilterAction getFilterAction()

Filters results.

.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;

Returns
TypeDescription
Rule.FilterAction

The filterAction.

getFilterActionOrBuilder()

public abstract Rule.FilterActionOrBuilder getFilterActionOrBuilder()

Filters results.

.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;

Returns
TypeDescription
Rule.FilterActionOrBuilder

getIgnoreAction()

public abstract Rule.IgnoreAction getIgnoreAction()

Ignores specific terms from query during search.

.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;

Returns
TypeDescription
Rule.IgnoreAction

The ignoreAction.

getIgnoreActionOrBuilder()

public abstract Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder()

Ignores specific terms from query during search.

.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;

Returns
TypeDescription
Rule.IgnoreActionOrBuilder

getOnewaySynonymsAction()

public abstract 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
TypeDescription
Rule.OnewaySynonymsAction

The onewaySynonymsAction.

getOnewaySynonymsActionOrBuilder()

public abstract 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;

Returns
TypeDescription
Rule.OnewaySynonymsActionOrBuilder

getRedirectAction()

public abstract Rule.RedirectAction getRedirectAction()

Redirects a shopper to a specific page.

.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;

Returns
TypeDescription
Rule.RedirectAction

The redirectAction.

getRedirectActionOrBuilder()

public abstract Rule.RedirectActionOrBuilder getRedirectActionOrBuilder()

Redirects a shopper to a specific page.

.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;

Returns
TypeDescription
Rule.RedirectActionOrBuilder

getReplacementAction()

public abstract Rule.ReplacementAction getReplacementAction()

Replaces specific terms in the query.

.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;

Returns
TypeDescription
Rule.ReplacementAction

The replacementAction.

getReplacementActionOrBuilder()

public abstract Rule.ReplacementActionOrBuilder getReplacementActionOrBuilder()

Replaces specific terms in the query.

.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;

Returns
TypeDescription
Rule.ReplacementActionOrBuilder

getTwowaySynonymsAction()

public abstract Rule.TwowaySynonymsAction getTwowaySynonymsAction()

Treats a set of terms as synonyms of one another.

.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;

Returns
TypeDescription
Rule.TwowaySynonymsAction

The twowaySynonymsAction.

getTwowaySynonymsActionOrBuilder()

public abstract Rule.TwowaySynonymsActionOrBuilder getTwowaySynonymsActionOrBuilder()

Treats a set of terms as synonyms of one another.

.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;

Returns
TypeDescription
Rule.TwowaySynonymsActionOrBuilder

hasBoostAction()

public abstract boolean hasBoostAction()

A boost action.

.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;

Returns
TypeDescription
boolean

Whether the boostAction field is set.

hasCondition()

public abstract 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
TypeDescription
boolean

Whether the condition field is set.

hasDoNotAssociateAction()

public abstract boolean hasDoNotAssociateAction()

Prevents term from being associated with other terms.

.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;

Returns
TypeDescription
boolean

Whether the doNotAssociateAction field is set.

hasFilterAction()

public abstract boolean hasFilterAction()

Filters results.

.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;

Returns
TypeDescription
boolean

Whether the filterAction field is set.

hasIgnoreAction()

public abstract boolean hasIgnoreAction()

Ignores specific terms from query during search.

.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;

Returns
TypeDescription
boolean

Whether the ignoreAction field is set.

hasOnewaySynonymsAction()

public abstract 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
TypeDescription
boolean

Whether the onewaySynonymsAction field is set.

hasRedirectAction()

public abstract boolean hasRedirectAction()

Redirects a shopper to a specific page.

.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;

Returns
TypeDescription
boolean

Whether the redirectAction field is set.

hasReplacementAction()

public abstract boolean hasReplacementAction()

Replaces specific terms in the query.

.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;

Returns
TypeDescription
boolean

Whether the replacementAction field is set.

hasTwowaySynonymsAction()

public abstract boolean hasTwowaySynonymsAction()

Treats a set of terms as synonyms of one another.

.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;

Returns
TypeDescription
boolean

Whether the twowaySynonymsAction field is set.