Package com.google.cloud.retail.v2alpha
Class Rule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Rule.Builder>
com.google.cloud.retail.v2alpha.Rule.Builder
- All Implemented Interfaces:
RuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Rule
public static final class Rule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Rule.Builder>
implements RuleOrBuilder
A rule is a condition-action pair * A condition defines when a rule is to be triggered. * An action specifies what occurs on that trigger. Currently rules only work for [controls][google.cloud.retail.v2alpha.Control] with [SOLUTION_TYPE_SEARCH][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH].Protobuf type
google.cloud.retail.v2alpha.Rule-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A boost action.Required.Prevents term from being associated with other terms.Filters results.Force returns an attribute as a facet in the request.Ignores specific terms from query during search.Treats specific term as a synonym with a group of terms.Pins one or more specified products to a specific position in the results.Redirects a shopper to a specific page.Remove an attribute as a facet in the request (if present).Replaces specific terms in the query.Treats a set of terms as synonyms of one another.A boost action.A boost action.A boost action.Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorPrevents term from being associated with other terms.Prevents term from being associated with other terms.Prevents term from being associated with other terms.Filters results.Filters results.Filters results.Force returns an attribute as a facet in the request.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.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.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.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.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).Remove an attribute as a facet in the request (if present).Replaces specific terms in the query.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.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoostAction(Rule.BoostAction value) A boost action.mergeCondition(Condition value) Required.Prevents term from being associated with other terms.Filters results.Force returns an attribute as a facet in the request.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Ignores specific terms from query during search.Treats specific term as a synonym with a group of terms.mergePinAction(Rule.PinAction value) Pins one or more specified products to a specific position in the results.Redirects a shopper to a specific page.Remove an attribute as a facet in the request (if present).Replaces specific terms in the query.Treats a set of terms as synonyms of one another.setBoostAction(Rule.BoostAction value) A boost action.setBoostAction(Rule.BoostAction.Builder builderForValue) A boost action.setCondition(Condition value) Required.setCondition(Condition.Builder builderForValue) Required.Prevents term from being associated with other terms.setDoNotAssociateAction(Rule.DoNotAssociateAction.Builder builderForValue) Prevents term from being associated with other terms.setFilterAction(Rule.FilterAction value) Filters results.setFilterAction(Rule.FilterAction.Builder builderForValue) Filters results.Force returns an attribute as a facet in the request.setForceReturnFacetAction(Rule.ForceReturnFacetAction.Builder builderForValue) Force returns an attribute as a facet in the request.setIgnoreAction(Rule.IgnoreAction value) Ignores specific terms from query during search.setIgnoreAction(Rule.IgnoreAction.Builder builderForValue) Ignores specific terms from query during search.Treats specific term as a synonym with a group of terms.setOnewaySynonymsAction(Rule.OnewaySynonymsAction.Builder builderForValue) Treats specific term as a synonym with a group of terms.setPinAction(Rule.PinAction value) Pins one or more specified products to a specific position in the results.setPinAction(Rule.PinAction.Builder builderForValue) Pins one or more specified products to a specific position in the results.Redirects a shopper to a specific page.setRedirectAction(Rule.RedirectAction.Builder builderForValue) Redirects a shopper to a specific page.Remove an attribute as a facet in the request (if present).setRemoveFacetAction(Rule.RemoveFacetAction.Builder builderForValue) Remove an attribute as a facet in the request (if present).Replaces specific terms in the query.setReplacementAction(Rule.ReplacementAction.Builder builderForValue) Replaces specific terms in the query.Treats a set of terms as synonyms of one another.setTwowaySynonymsAction(Rule.TwowaySynonymsAction.Builder builderForValue) Treats a set of terms as synonyms of one another.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Rule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Rule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Rule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Rule.Builder>
-
mergeFrom
public Rule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rule.Builder>- Throws:
IOException
-
getActionCase
- Specified by:
getActionCasein interfaceRuleOrBuilder
-
clearAction
-
hasBoostAction
public boolean hasBoostAction()A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;- Specified by:
hasBoostActionin interfaceRuleOrBuilder- Returns:
- Whether the boostAction field is set.
-
getBoostAction
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;- Specified by:
getBoostActionin interfaceRuleOrBuilder- Returns:
- The boostAction.
-
setBoostAction
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; -
setBoostAction
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; -
mergeBoostAction
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; -
clearBoostAction
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; -
getBoostActionBuilder
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; -
getBoostActionOrBuilder
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;- Specified by:
getBoostActionOrBuilderin interfaceRuleOrBuilder
-
hasRedirectAction
public boolean hasRedirectAction()Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;- Specified by:
hasRedirectActionin interfaceRuleOrBuilder- Returns:
- Whether the redirectAction field is set.
-
getRedirectAction
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;- Specified by:
getRedirectActionin interfaceRuleOrBuilder- Returns:
- The redirectAction.
-
setRedirectAction
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; -
setRedirectAction
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; -
mergeRedirectAction
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; -
clearRedirectAction
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; -
getRedirectActionBuilder
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; -
getRedirectActionOrBuilder
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;- Specified by:
getRedirectActionOrBuilderin interfaceRuleOrBuilder
-
hasOnewaySynonymsAction
public 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;- Specified by:
hasOnewaySynonymsActionin interfaceRuleOrBuilder- Returns:
- Whether the onewaySynonymsAction field is set.
-
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;- Specified by:
getOnewaySynonymsActionin interfaceRuleOrBuilder- Returns:
- The onewaySynonymsAction.
-
setOnewaySynonymsAction
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; -
setOnewaySynonymsAction
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; -
mergeOnewaySynonymsAction
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; -
clearOnewaySynonymsAction
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; -
getOnewaySynonymsActionBuilder
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; -
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;- Specified by:
getOnewaySynonymsActionOrBuilderin interfaceRuleOrBuilder
-
hasDoNotAssociateAction
public boolean hasDoNotAssociateAction()Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;- Specified by:
hasDoNotAssociateActionin interfaceRuleOrBuilder- Returns:
- Whether the doNotAssociateAction field is set.
-
getDoNotAssociateAction
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;- Specified by:
getDoNotAssociateActionin interfaceRuleOrBuilder- Returns:
- The doNotAssociateAction.
-
setDoNotAssociateAction
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; -
setDoNotAssociateAction
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; -
mergeDoNotAssociateAction
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; -
clearDoNotAssociateAction
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; -
getDoNotAssociateActionBuilder
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; -
getDoNotAssociateActionOrBuilder
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;- Specified by:
getDoNotAssociateActionOrBuilderin interfaceRuleOrBuilder
-
hasReplacementAction
public boolean hasReplacementAction()Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;- Specified by:
hasReplacementActionin interfaceRuleOrBuilder- Returns:
- Whether the replacementAction field is set.
-
getReplacementAction
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;- Specified by:
getReplacementActionin interfaceRuleOrBuilder- Returns:
- The replacementAction.
-
setReplacementAction
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; -
setReplacementAction
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; -
mergeReplacementAction
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; -
clearReplacementAction
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; -
getReplacementActionBuilder
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; -
getReplacementActionOrBuilder
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;- Specified by:
getReplacementActionOrBuilderin interfaceRuleOrBuilder
-
hasIgnoreAction
public boolean hasIgnoreAction()Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;- Specified by:
hasIgnoreActionin interfaceRuleOrBuilder- Returns:
- Whether the ignoreAction field is set.
-
getIgnoreAction
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;- Specified by:
getIgnoreActionin interfaceRuleOrBuilder- Returns:
- The ignoreAction.
-
setIgnoreAction
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; -
setIgnoreAction
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; -
mergeIgnoreAction
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; -
clearIgnoreAction
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; -
getIgnoreActionBuilder
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; -
getIgnoreActionOrBuilder
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;- Specified by:
getIgnoreActionOrBuilderin interfaceRuleOrBuilder
-
hasFilterAction
public boolean hasFilterAction()Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;- Specified by:
hasFilterActionin interfaceRuleOrBuilder- Returns:
- Whether the filterAction field is set.
-
getFilterAction
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;- Specified by:
getFilterActionin interfaceRuleOrBuilder- Returns:
- The filterAction.
-
setFilterAction
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; -
setFilterAction
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; -
mergeFilterAction
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; -
clearFilterAction
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; -
getFilterActionBuilder
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; -
getFilterActionOrBuilder
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;- Specified by:
getFilterActionOrBuilderin interfaceRuleOrBuilder
-
hasTwowaySynonymsAction
public boolean hasTwowaySynonymsAction()Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;- Specified by:
hasTwowaySynonymsActionin interfaceRuleOrBuilder- Returns:
- Whether the twowaySynonymsAction field is set.
-
getTwowaySynonymsAction
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;- Specified by:
getTwowaySynonymsActionin interfaceRuleOrBuilder- Returns:
- The twowaySynonymsAction.
-
setTwowaySynonymsAction
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; -
setTwowaySynonymsAction
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; -
mergeTwowaySynonymsAction
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; -
clearTwowaySynonymsAction
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; -
getTwowaySynonymsActionBuilder
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; -
getTwowaySynonymsActionOrBuilder
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;- Specified by:
getTwowaySynonymsActionOrBuilderin interfaceRuleOrBuilder
-
hasForceReturnFacetAction
public boolean hasForceReturnFacetAction()Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;- Specified by:
hasForceReturnFacetActionin interfaceRuleOrBuilder- Returns:
- Whether the forceReturnFacetAction field is set.
-
getForceReturnFacetAction
Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;- Specified by:
getForceReturnFacetActionin interfaceRuleOrBuilder- Returns:
- The forceReturnFacetAction.
-
setForceReturnFacetAction
Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; -
setForceReturnFacetAction
Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; -
mergeForceReturnFacetAction
Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; -
clearForceReturnFacetAction
Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; -
getForceReturnFacetActionBuilder
Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; -
getForceReturnFacetActionOrBuilder
Force returns an attribute as a facet in the request.
.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12;- Specified by:
getForceReturnFacetActionOrBuilderin interfaceRuleOrBuilder
-
hasRemoveFacetAction
public boolean hasRemoveFacetAction()Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;- Specified by:
hasRemoveFacetActionin interfaceRuleOrBuilder- Returns:
- Whether the removeFacetAction field is set.
-
getRemoveFacetAction
Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;- Specified by:
getRemoveFacetActionin interfaceRuleOrBuilder- Returns:
- The removeFacetAction.
-
setRemoveFacetAction
Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; -
setRemoveFacetAction
Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; -
mergeRemoveFacetAction
Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; -
clearRemoveFacetAction
Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; -
getRemoveFacetActionBuilder
Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; -
getRemoveFacetActionOrBuilder
Remove an attribute as a facet in the request (if present).
.google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13;- Specified by:
getRemoveFacetActionOrBuilderin interfaceRuleOrBuilder
-
hasPinAction
public boolean hasPinAction()Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;- Specified by:
hasPinActionin interfaceRuleOrBuilder- Returns:
- Whether the pinAction field is set.
-
getPinAction
Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;- Specified by:
getPinActionin interfaceRuleOrBuilder- Returns:
- The pinAction.
-
setPinAction
Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14; -
setPinAction
Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14; -
mergePinAction
Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14; -
clearPinAction
Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14; -
getPinActionBuilder
Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14; -
getPinActionOrBuilder
Pins one or more specified products to a specific position in the results.
.google.cloud.retail.v2alpha.Rule.PinAction pin_action = 14;- Specified by:
getPinActionOrBuilderin interfaceRuleOrBuilder
-
hasCondition
public 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];- Specified by:
hasConditionin interfaceRuleOrBuilder- Returns:
- Whether the condition field is set.
-
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];- Specified by:
getConditionin interfaceRuleOrBuilder- Returns:
- The condition.
-
setCondition
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]; -
setCondition
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]; -
mergeCondition
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]; -
clearCondition
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]; -
getConditionBuilder
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]; -
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];- Specified by:
getConditionOrBuilderin interfaceRuleOrBuilder
-