Interface RuleOrBuilder (2.49.0)

public interface RuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getActionCase()

public abstract Rule.ActionCase getActionCase()
Returns
Type Description
Rule.ActionCase

getBoostAction()

public abstract Rule.BoostAction getBoostAction()

A boost action.

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

Returns
Type Description
Rule.BoostAction

The boostAction.

getBoostActionOrBuilder()

public abstract Rule.BoostActionOrBuilder getBoostActionOrBuilder()

A boost action.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Rule.DoNotAssociateActionOrBuilder

getFilterAction()

public abstract Rule.FilterAction getFilterAction()

Filters results.

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

Returns
Type Description
Rule.FilterAction

The filterAction.

getFilterActionOrBuilder()

public abstract Rule.FilterActionOrBuilder getFilterActionOrBuilder()

Filters results.

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

Returns
Type Description
Rule.FilterActionOrBuilder

getForceReturnFacetAction()

public abstract Rule.ForceReturnFacetAction getForceReturnFacetAction()

Force returns an attribute as a facet in the request.

.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;

Returns
Type Description
Rule.ForceReturnFacetAction

The forceReturnFacetAction.

getForceReturnFacetActionOrBuilder()

public abstract Rule.ForceReturnFacetActionOrBuilder getForceReturnFacetActionOrBuilder()

Force returns an attribute as a facet in the request.

.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;

Returns
Type Description
Rule.ForceReturnFacetActionOrBuilder

getIgnoreAction()

public abstract Rule.IgnoreAction getIgnoreAction()

Ignores specific terms from query during search.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Rule.RedirectActionOrBuilder

getRemoveFacetAction()

public abstract Rule.RemoveFacetAction getRemoveFacetAction()

Remove an attribute as a facet in the request (if present).

.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;

Returns
Type Description
Rule.RemoveFacetAction

The removeFacetAction.

getRemoveFacetActionOrBuilder()

public abstract Rule.RemoveFacetActionOrBuilder getRemoveFacetActionOrBuilder()

Remove an attribute as a facet in the request (if present).

.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;

Returns
Type Description
Rule.RemoveFacetActionOrBuilder

getReplacementAction()

public abstract Rule.ReplacementAction getReplacementAction()

Replaces specific terms in the query.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Rule.TwowaySynonymsActionOrBuilder

hasBoostAction()

public abstract boolean hasBoostAction()

A boost action.

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

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the doNotAssociateAction field is set.

hasFilterAction()

public abstract boolean hasFilterAction()

Filters results.

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

Returns
Type Description
boolean

Whether the filterAction field is set.

hasForceReturnFacetAction()

public abstract boolean hasForceReturnFacetAction()

Force returns an attribute as a facet in the request.

.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;

Returns
Type Description
boolean

Whether the forceReturnFacetAction 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
Type Description
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
Type Description
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
Type Description
boolean

Whether the redirectAction field is set.

hasRemoveFacetAction()

public abstract boolean hasRemoveFacetAction()

Remove an attribute as a facet in the request (if present).

.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;

Returns
Type Description
boolean

Whether the removeFacetAction field is set.

hasReplacementAction()

public abstract boolean hasReplacementAction()

Replaces specific terms in the query.

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

Returns
Type Description
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
Type Description
boolean

Whether the twowaySynonymsAction field is set.