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
@Generated
public interface RuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionA boost action.A boost action.Required.Required.Prevents term from being associated with other terms.Prevents term from being associated with other terms.Filters results.Filters results.Force returns an attribute as a facet in the request.Force returns an attribute as a facet in the request.Ignores specific terms from query during search.Ignores specific terms from query during search.Treats specific term as a synonym with a group of terms.Treats specific term as a synonym with a group of terms.Pins one or more specified products to a specific position in the results.Pins one or more specified products to a specific position in the results.Redirects a shopper to a specific page.Redirects a shopper to a specific page.Remove an attribute as a facet in the request (if present).Remove an attribute as a facet in the request (if present).Replaces specific terms in the query.Replaces specific terms in the query.Treats a set of terms as synonyms of one another.Treats a set of terms as synonyms of one another.booleanA boost action.booleanRequired.booleanPrevents term from being associated with other terms.booleanFilters results.booleanForce returns an attribute as a facet in the request.booleanIgnores specific terms from query during search.booleanTreats specific term as a synonym with a group of terms.booleanPins one or more specified products to a specific position in the results.booleanRedirects a shopper to a specific page.booleanRemove an attribute as a facet in the request (if present).booleanReplaces specific terms in the query.booleanTreats a set of terms as synonyms of one another.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
-
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; -
hasForceReturnFacetAction
boolean hasForceReturnFacetAction()Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;- Returns:
- Whether the forceReturnFacetAction field is set.
-
getForceReturnFacetAction
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:
- The forceReturnFacetAction.
-
getForceReturnFacetActionOrBuilder
Rule.ForceReturnFacetActionOrBuilder getForceReturnFacetActionOrBuilder()Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; -
hasRemoveFacetAction
boolean hasRemoveFacetAction()Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;- Returns:
- Whether the removeFacetAction field is set.
-
getRemoveFacetAction
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:
- The removeFacetAction.
-
getRemoveFacetActionOrBuilder
Rule.RemoveFacetActionOrBuilder getRemoveFacetActionOrBuilder()Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; -
hasPinAction
boolean hasPinAction()Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;- Returns:
- Whether the pinAction field is set.
-
getPinAction
Rule.PinAction getPinAction()Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;- Returns:
- The pinAction.
-
getPinActionOrBuilder
Rule.PinActionOrBuilder getPinActionOrBuilder()Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14; -
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()
-