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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.retail.v2alpha.Rule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Rule
build()
Rule
buildPartial()
Rule.Builder
clear()
Rule.Builder
clearAction()
Rule.Builder
clearBoostAction()
A boost action.Rule.Builder
clearCondition()
Required.Rule.Builder
clearDoNotAssociateAction()
Prevents term from being associated with other terms.Rule.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Rule.Builder
clearFilterAction()
Filters results.Rule.Builder
clearIgnoreAction()
Ignores specific terms from query during search.Rule.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Rule.Builder
clearOnewaySynonymsAction()
Treats specific term as a synonym with a group of terms.Rule.Builder
clearRedirectAction()
Redirects a shopper to a specific page.Rule.Builder
clearReplacementAction()
Replaces specific terms in the query.Rule.Builder
clearTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.Rule.Builder
clone()
Rule.ActionCase
getActionCase()
Rule.BoostAction
getBoostAction()
A boost action.Rule.BoostAction.Builder
getBoostActionBuilder()
A boost action.Rule.BoostActionOrBuilder
getBoostActionOrBuilder()
A boost action.Condition
getCondition()
Required.Condition.Builder
getConditionBuilder()
Required.ConditionOrBuilder
getConditionOrBuilder()
Required.Rule
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Rule.DoNotAssociateAction
getDoNotAssociateAction()
Prevents term from being associated with other terms.Rule.DoNotAssociateAction.Builder
getDoNotAssociateActionBuilder()
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.FilterAction.Builder
getFilterActionBuilder()
Filters results.Rule.FilterActionOrBuilder
getFilterActionOrBuilder()
Filters results.Rule.IgnoreAction
getIgnoreAction()
Ignores specific terms from query during search.Rule.IgnoreAction.Builder
getIgnoreActionBuilder()
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.OnewaySynonymsAction.Builder
getOnewaySynonymsActionBuilder()
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.RedirectAction.Builder
getRedirectActionBuilder()
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.ReplacementAction.Builder
getReplacementActionBuilder()
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.TwowaySynonymsAction.Builder
getTwowaySynonymsActionBuilder()
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Rule.Builder
mergeBoostAction(Rule.BoostAction value)
A boost action.Rule.Builder
mergeCondition(Condition value)
Required.Rule.Builder
mergeDoNotAssociateAction(Rule.DoNotAssociateAction value)
Prevents term from being associated with other terms.Rule.Builder
mergeFilterAction(Rule.FilterAction value)
Filters results.Rule.Builder
mergeFrom(Rule other)
Rule.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Rule.Builder
mergeFrom(com.google.protobuf.Message other)
Rule.Builder
mergeIgnoreAction(Rule.IgnoreAction value)
Ignores specific terms from query during search.Rule.Builder
mergeOnewaySynonymsAction(Rule.OnewaySynonymsAction value)
Treats specific term as a synonym with a group of terms.Rule.Builder
mergeRedirectAction(Rule.RedirectAction value)
Redirects a shopper to a specific page.Rule.Builder
mergeReplacementAction(Rule.ReplacementAction value)
Replaces specific terms in the query.Rule.Builder
mergeTwowaySynonymsAction(Rule.TwowaySynonymsAction value)
Treats a set of terms as synonyms of one another.Rule.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Rule.Builder
setBoostAction(Rule.BoostAction value)
A boost action.Rule.Builder
setBoostAction(Rule.BoostAction.Builder builderForValue)
A boost action.Rule.Builder
setCondition(Condition value)
Required.Rule.Builder
setCondition(Condition.Builder builderForValue)
Required.Rule.Builder
setDoNotAssociateAction(Rule.DoNotAssociateAction value)
Prevents term from being associated with other terms.Rule.Builder
setDoNotAssociateAction(Rule.DoNotAssociateAction.Builder builderForValue)
Prevents term from being associated with other terms.Rule.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Rule.Builder
setFilterAction(Rule.FilterAction value)
Filters results.Rule.Builder
setFilterAction(Rule.FilterAction.Builder builderForValue)
Filters results.Rule.Builder
setIgnoreAction(Rule.IgnoreAction value)
Ignores specific terms from query during search.Rule.Builder
setIgnoreAction(Rule.IgnoreAction.Builder builderForValue)
Ignores specific terms from query during search.Rule.Builder
setOnewaySynonymsAction(Rule.OnewaySynonymsAction value)
Treats specific term as a synonym with a group of terms.Rule.Builder
setOnewaySynonymsAction(Rule.OnewaySynonymsAction.Builder builderForValue)
Treats specific term as a synonym with a group of terms.Rule.Builder
setRedirectAction(Rule.RedirectAction value)
Redirects a shopper to a specific page.Rule.Builder
setRedirectAction(Rule.RedirectAction.Builder builderForValue)
Redirects a shopper to a specific page.Rule.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Rule.Builder
setReplacementAction(Rule.ReplacementAction value)
Replaces specific terms in the query.Rule.Builder
setReplacementAction(Rule.ReplacementAction.Builder builderForValue)
Replaces specific terms in the query.Rule.Builder
setTwowaySynonymsAction(Rule.TwowaySynonymsAction value)
Treats a set of terms as synonyms of one another.Rule.Builder
setTwowaySynonymsAction(Rule.TwowaySynonymsAction.Builder builderForValue)
Treats a set of terms as synonyms of one another.Rule.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
clear
public Rule.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
getDefaultInstanceForType
public Rule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Rule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Rule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Rule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
setField
public Rule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
clearField
public Rule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
clearOneof
public Rule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
setRepeatedField
public Rule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
addRepeatedField
public Rule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
mergeFrom
public Rule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Rule.Builder>
-
mergeFrom
public Rule.Builder mergeFrom(Rule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
mergeFrom
public Rule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Rule.Builder>
- Throws:
IOException
-
getActionCase
public Rule.ActionCase getActionCase()
- Specified by:
getActionCase
in interfaceRuleOrBuilder
-
clearAction
public Rule.Builder clearAction()
-
hasBoostAction
public boolean hasBoostAction()
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
- Specified by:
hasBoostAction
in interfaceRuleOrBuilder
- Returns:
- Whether the boostAction field is set.
-
getBoostAction
public Rule.BoostAction getBoostAction()
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
- Specified by:
getBoostAction
in interfaceRuleOrBuilder
- Returns:
- The boostAction.
-
setBoostAction
public Rule.Builder setBoostAction(Rule.BoostAction value)
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
-
setBoostAction
public Rule.Builder setBoostAction(Rule.BoostAction.Builder builderForValue)
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
-
mergeBoostAction
public Rule.Builder mergeBoostAction(Rule.BoostAction value)
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
-
clearBoostAction
public Rule.Builder clearBoostAction()
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
-
getBoostActionBuilder
public Rule.BoostAction.Builder getBoostActionBuilder()
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
-
getBoostActionOrBuilder
public Rule.BoostActionOrBuilder getBoostActionOrBuilder()
A boost action.
.google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2;
- Specified by:
getBoostActionOrBuilder
in interfaceRuleOrBuilder
-
hasRedirectAction
public boolean hasRedirectAction()
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
- Specified by:
hasRedirectAction
in interfaceRuleOrBuilder
- Returns:
- Whether the redirectAction field is set.
-
getRedirectAction
public Rule.RedirectAction getRedirectAction()
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
- Specified by:
getRedirectAction
in interfaceRuleOrBuilder
- Returns:
- The redirectAction.
-
setRedirectAction
public Rule.Builder setRedirectAction(Rule.RedirectAction value)
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
-
setRedirectAction
public Rule.Builder setRedirectAction(Rule.RedirectAction.Builder builderForValue)
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
-
mergeRedirectAction
public Rule.Builder mergeRedirectAction(Rule.RedirectAction value)
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
-
clearRedirectAction
public Rule.Builder clearRedirectAction()
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
-
getRedirectActionBuilder
public Rule.RedirectAction.Builder getRedirectActionBuilder()
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
-
getRedirectActionOrBuilder
public Rule.RedirectActionOrBuilder getRedirectActionOrBuilder()
Redirects a shopper to a specific page.
.google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3;
- Specified by:
getRedirectActionOrBuilder
in 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:
hasOnewaySynonymsAction
in interfaceRuleOrBuilder
- Returns:
- Whether the onewaySynonymsAction field is set.
-
getOnewaySynonymsAction
public 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;
- Specified by:
getOnewaySynonymsAction
in interfaceRuleOrBuilder
- Returns:
- The onewaySynonymsAction.
-
setOnewaySynonymsAction
public Rule.Builder setOnewaySynonymsAction(Rule.OnewaySynonymsAction value)
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
public Rule.Builder setOnewaySynonymsAction(Rule.OnewaySynonymsAction.Builder builderForValue)
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
public Rule.Builder mergeOnewaySynonymsAction(Rule.OnewaySynonymsAction value)
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
public Rule.Builder 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
public Rule.OnewaySynonymsAction.Builder 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
public 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;
- Specified by:
getOnewaySynonymsActionOrBuilder
in 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:
hasDoNotAssociateAction
in interfaceRuleOrBuilder
- Returns:
- Whether the doNotAssociateAction field is set.
-
getDoNotAssociateAction
public Rule.DoNotAssociateAction getDoNotAssociateAction()
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
- Specified by:
getDoNotAssociateAction
in interfaceRuleOrBuilder
- Returns:
- The doNotAssociateAction.
-
setDoNotAssociateAction
public Rule.Builder setDoNotAssociateAction(Rule.DoNotAssociateAction value)
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
-
setDoNotAssociateAction
public Rule.Builder setDoNotAssociateAction(Rule.DoNotAssociateAction.Builder builderForValue)
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
-
mergeDoNotAssociateAction
public Rule.Builder mergeDoNotAssociateAction(Rule.DoNotAssociateAction value)
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
-
clearDoNotAssociateAction
public Rule.Builder clearDoNotAssociateAction()
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
-
getDoNotAssociateActionBuilder
public Rule.DoNotAssociateAction.Builder getDoNotAssociateActionBuilder()
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
-
getDoNotAssociateActionOrBuilder
public Rule.DoNotAssociateActionOrBuilder getDoNotAssociateActionOrBuilder()
Prevents term from being associated with other terms.
.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7;
- Specified by:
getDoNotAssociateActionOrBuilder
in interfaceRuleOrBuilder
-
hasReplacementAction
public boolean hasReplacementAction()
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
- Specified by:
hasReplacementAction
in interfaceRuleOrBuilder
- Returns:
- Whether the replacementAction field is set.
-
getReplacementAction
public Rule.ReplacementAction getReplacementAction()
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
- Specified by:
getReplacementAction
in interfaceRuleOrBuilder
- Returns:
- The replacementAction.
-
setReplacementAction
public Rule.Builder setReplacementAction(Rule.ReplacementAction value)
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
-
setReplacementAction
public Rule.Builder setReplacementAction(Rule.ReplacementAction.Builder builderForValue)
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
-
mergeReplacementAction
public Rule.Builder mergeReplacementAction(Rule.ReplacementAction value)
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
-
clearReplacementAction
public Rule.Builder clearReplacementAction()
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
-
getReplacementActionBuilder
public Rule.ReplacementAction.Builder getReplacementActionBuilder()
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
-
getReplacementActionOrBuilder
public Rule.ReplacementActionOrBuilder getReplacementActionOrBuilder()
Replaces specific terms in the query.
.google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8;
- Specified by:
getReplacementActionOrBuilder
in interfaceRuleOrBuilder
-
hasIgnoreAction
public boolean hasIgnoreAction()
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
- Specified by:
hasIgnoreAction
in interfaceRuleOrBuilder
- Returns:
- Whether the ignoreAction field is set.
-
getIgnoreAction
public Rule.IgnoreAction getIgnoreAction()
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
- Specified by:
getIgnoreAction
in interfaceRuleOrBuilder
- Returns:
- The ignoreAction.
-
setIgnoreAction
public Rule.Builder setIgnoreAction(Rule.IgnoreAction value)
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
-
setIgnoreAction
public Rule.Builder setIgnoreAction(Rule.IgnoreAction.Builder builderForValue)
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
-
mergeIgnoreAction
public Rule.Builder mergeIgnoreAction(Rule.IgnoreAction value)
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
-
clearIgnoreAction
public Rule.Builder clearIgnoreAction()
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
-
getIgnoreActionBuilder
public Rule.IgnoreAction.Builder getIgnoreActionBuilder()
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
-
getIgnoreActionOrBuilder
public Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder()
Ignores specific terms from query during search.
.google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9;
- Specified by:
getIgnoreActionOrBuilder
in interfaceRuleOrBuilder
-
hasFilterAction
public boolean hasFilterAction()
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
- Specified by:
hasFilterAction
in interfaceRuleOrBuilder
- Returns:
- Whether the filterAction field is set.
-
getFilterAction
public Rule.FilterAction getFilterAction()
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
- Specified by:
getFilterAction
in interfaceRuleOrBuilder
- Returns:
- The filterAction.
-
setFilterAction
public Rule.Builder setFilterAction(Rule.FilterAction value)
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
-
setFilterAction
public Rule.Builder setFilterAction(Rule.FilterAction.Builder builderForValue)
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
-
mergeFilterAction
public Rule.Builder mergeFilterAction(Rule.FilterAction value)
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
-
clearFilterAction
public Rule.Builder clearFilterAction()
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
-
getFilterActionBuilder
public Rule.FilterAction.Builder getFilterActionBuilder()
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
-
getFilterActionOrBuilder
public Rule.FilterActionOrBuilder getFilterActionOrBuilder()
Filters results.
.google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10;
- Specified by:
getFilterActionOrBuilder
in 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:
hasTwowaySynonymsAction
in interfaceRuleOrBuilder
- Returns:
- Whether the twowaySynonymsAction field is set.
-
getTwowaySynonymsAction
public Rule.TwowaySynonymsAction getTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
- Specified by:
getTwowaySynonymsAction
in interfaceRuleOrBuilder
- Returns:
- The twowaySynonymsAction.
-
setTwowaySynonymsAction
public Rule.Builder setTwowaySynonymsAction(Rule.TwowaySynonymsAction value)
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
-
setTwowaySynonymsAction
public Rule.Builder setTwowaySynonymsAction(Rule.TwowaySynonymsAction.Builder builderForValue)
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
-
mergeTwowaySynonymsAction
public Rule.Builder mergeTwowaySynonymsAction(Rule.TwowaySynonymsAction value)
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
-
clearTwowaySynonymsAction
public Rule.Builder clearTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
-
getTwowaySynonymsActionBuilder
public Rule.TwowaySynonymsAction.Builder getTwowaySynonymsActionBuilder()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
-
getTwowaySynonymsActionOrBuilder
public Rule.TwowaySynonymsActionOrBuilder getTwowaySynonymsActionOrBuilder()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
- Specified by:
getTwowaySynonymsActionOrBuilder
in 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:
hasCondition
in interfaceRuleOrBuilder
- Returns:
- Whether the condition field is set.
-
getCondition
public 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];
- Specified by:
getCondition
in interfaceRuleOrBuilder
- Returns:
- The condition.
-
setCondition
public Rule.Builder setCondition(Condition value)
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
public Rule.Builder setCondition(Condition.Builder builderForValue)
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
public Rule.Builder mergeCondition(Condition value)
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
public Rule.Builder 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
public Condition.Builder 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
public 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];
- Specified by:
getConditionOrBuilder
in interfaceRuleOrBuilder
-
setUnknownFields
public final Rule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
mergeUnknownFields
public final Rule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
-