Class Rule.Builder (2.38.0)

public static final class Rule.Builder extends 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 with SOLUTION_TYPE_SEARCH.

Protobuf type google.cloud.retail.v2alpha.Rule

Implements

RuleOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Rule.Builder
Overrides

build()

public Rule build()
Returns
TypeDescription
Rule

buildPartial()

public Rule buildPartial()
Returns
TypeDescription
Rule

clear()

public Rule.Builder clear()
Returns
TypeDescription
Rule.Builder
Overrides

clearAction()

public Rule.Builder clearAction()
Returns
TypeDescription
Rule.Builder

clearBoostAction()

public Rule.Builder clearBoostAction()

A boost action.

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

Returns
TypeDescription
Rule.Builder

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

Returns
TypeDescription
Rule.Builder

clearDoNotAssociateAction()

public Rule.Builder clearDoNotAssociateAction()

Prevents term from being associated with other terms.

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

Returns
TypeDescription
Rule.Builder

clearField(Descriptors.FieldDescriptor field)

public Rule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Rule.Builder
Overrides

clearFilterAction()

public Rule.Builder clearFilterAction()

Filters results.

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

Returns
TypeDescription
Rule.Builder

clearIgnoreAction()

public Rule.Builder clearIgnoreAction()

Ignores specific terms from query during search.

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

Returns
TypeDescription
Rule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Rule.Builder
Overrides

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;

Returns
TypeDescription
Rule.Builder

clearRedirectAction()

public Rule.Builder clearRedirectAction()

Redirects a shopper to a specific page.

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

Returns
TypeDescription
Rule.Builder

clearReplacementAction()

public Rule.Builder clearReplacementAction()

Replaces specific terms in the query.

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

Returns
TypeDescription
Rule.Builder

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;

Returns
TypeDescription
Rule.Builder

clone()

public Rule.Builder clone()
Returns
TypeDescription
Rule.Builder
Overrides

getActionCase()

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

getBoostAction()

public Rule.BoostAction getBoostAction()

A boost action.

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

Returns
TypeDescription
Rule.BoostAction

The boostAction.

getBoostActionBuilder()

public Rule.BoostAction.Builder getBoostActionBuilder()

A boost action.

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

Returns
TypeDescription
Rule.BoostAction.Builder

getBoostActionOrBuilder()

public Rule.BoostActionOrBuilder getBoostActionOrBuilder()

A boost action.

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

Returns
TypeDescription
Rule.BoostActionOrBuilder

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

Returns
TypeDescription
Condition

The condition.

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

Returns
TypeDescription
Condition.Builder

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

Returns
TypeDescription
ConditionOrBuilder

getDefaultInstanceForType()

public Rule getDefaultInstanceForType()
Returns
TypeDescription
Rule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDoNotAssociateAction()

public 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.

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;

Returns
TypeDescription
Rule.DoNotAssociateAction.Builder

getDoNotAssociateActionOrBuilder()

public 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 Rule.FilterAction getFilterAction()

Filters results.

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

Returns
TypeDescription
Rule.FilterAction

The filterAction.

getFilterActionBuilder()

public Rule.FilterAction.Builder getFilterActionBuilder()

Filters results.

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

Returns
TypeDescription
Rule.FilterAction.Builder

getFilterActionOrBuilder()

public Rule.FilterActionOrBuilder getFilterActionOrBuilder()

Filters results.

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

Returns
TypeDescription
Rule.FilterActionOrBuilder

getIgnoreAction()

public 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.

getIgnoreActionBuilder()

public Rule.IgnoreAction.Builder getIgnoreActionBuilder()

Ignores specific terms from query during search.

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

Returns
TypeDescription
Rule.IgnoreAction.Builder

getIgnoreActionOrBuilder()

public 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 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.

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;

Returns
TypeDescription
Rule.OnewaySynonymsAction.Builder

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;

Returns
TypeDescription
Rule.OnewaySynonymsActionOrBuilder

getRedirectAction()

public 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.

getRedirectActionBuilder()

public Rule.RedirectAction.Builder getRedirectActionBuilder()

Redirects a shopper to a specific page.

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

Returns
TypeDescription
Rule.RedirectAction.Builder

getRedirectActionOrBuilder()

public 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 Rule.ReplacementAction getReplacementAction()

Replaces specific terms in the query.

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

Returns
TypeDescription
Rule.ReplacementAction

The replacementAction.

getReplacementActionBuilder()

public Rule.ReplacementAction.Builder getReplacementActionBuilder()

Replaces specific terms in the query.

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

Returns
TypeDescription
Rule.ReplacementAction.Builder

getReplacementActionOrBuilder()

public Rule.ReplacementActionOrBuilder getReplacementActionOrBuilder()

Replaces specific terms in the query.

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

Returns
TypeDescription
Rule.ReplacementActionOrBuilder

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;

Returns
TypeDescription
Rule.TwowaySynonymsAction

The twowaySynonymsAction.

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;

Returns
TypeDescription
Rule.TwowaySynonymsAction.Builder

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;

Returns
TypeDescription
Rule.TwowaySynonymsActionOrBuilder

hasBoostAction()

public 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 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 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 boolean hasFilterAction()

Filters results.

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

Returns
TypeDescription
boolean

Whether the filterAction field is set.

hasIgnoreAction()

public 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 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 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBoostAction(Rule.BoostAction value)

public Rule.Builder mergeBoostAction(Rule.BoostAction value)

A boost action.

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

Parameter
NameDescription
valueRule.BoostAction
Returns
TypeDescription
Rule.Builder

mergeCondition(Condition value)

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

Parameter
NameDescription
valueCondition
Returns
TypeDescription
Rule.Builder

mergeDoNotAssociateAction(Rule.DoNotAssociateAction value)

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;

Parameter
NameDescription
valueRule.DoNotAssociateAction
Returns
TypeDescription
Rule.Builder

mergeFilterAction(Rule.FilterAction value)

public Rule.Builder mergeFilterAction(Rule.FilterAction value)

Filters results.

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

Parameter
NameDescription
valueRule.FilterAction
Returns
TypeDescription
Rule.Builder

mergeFrom(Rule other)

public Rule.Builder mergeFrom(Rule other)
Parameter
NameDescription
otherRule
Returns
TypeDescription
Rule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Rule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Rule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Rule.Builder
Overrides

mergeIgnoreAction(Rule.IgnoreAction value)

public Rule.Builder mergeIgnoreAction(Rule.IgnoreAction value)

Ignores specific terms from query during search.

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

Parameter
NameDescription
valueRule.IgnoreAction
Returns
TypeDescription
Rule.Builder

mergeOnewaySynonymsAction(Rule.OnewaySynonymsAction value)

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;

Parameter
NameDescription
valueRule.OnewaySynonymsAction
Returns
TypeDescription
Rule.Builder

mergeRedirectAction(Rule.RedirectAction value)

public Rule.Builder mergeRedirectAction(Rule.RedirectAction value)

Redirects a shopper to a specific page.

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

Parameter
NameDescription
valueRule.RedirectAction
Returns
TypeDescription
Rule.Builder

mergeReplacementAction(Rule.ReplacementAction value)

public Rule.Builder mergeReplacementAction(Rule.ReplacementAction value)

Replaces specific terms in the query.

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

Parameter
NameDescription
valueRule.ReplacementAction
Returns
TypeDescription
Rule.Builder

mergeTwowaySynonymsAction(Rule.TwowaySynonymsAction value)

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;

Parameter
NameDescription
valueRule.TwowaySynonymsAction
Returns
TypeDescription
Rule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Rule.Builder
Overrides

setBoostAction(Rule.BoostAction value)

public Rule.Builder setBoostAction(Rule.BoostAction value)

A boost action.

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

Parameter
NameDescription
valueRule.BoostAction
Returns
TypeDescription
Rule.Builder

setBoostAction(Rule.BoostAction.Builder builderForValue)

public Rule.Builder setBoostAction(Rule.BoostAction.Builder builderForValue)

A boost action.

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

Parameter
NameDescription
builderForValueRule.BoostAction.Builder
Returns
TypeDescription
Rule.Builder

setCondition(Condition value)

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

Parameter
NameDescription
valueCondition
Returns
TypeDescription
Rule.Builder

setCondition(Condition.Builder builderForValue)

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

Parameter
NameDescription
builderForValueCondition.Builder
Returns
TypeDescription
Rule.Builder

setDoNotAssociateAction(Rule.DoNotAssociateAction value)

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;

Parameter
NameDescription
valueRule.DoNotAssociateAction
Returns
TypeDescription
Rule.Builder

setDoNotAssociateAction(Rule.DoNotAssociateAction.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueRule.DoNotAssociateAction.Builder
Returns
TypeDescription
Rule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Rule.Builder
Overrides

setFilterAction(Rule.FilterAction value)

public Rule.Builder setFilterAction(Rule.FilterAction value)

Filters results.

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

Parameter
NameDescription
valueRule.FilterAction
Returns
TypeDescription
Rule.Builder

setFilterAction(Rule.FilterAction.Builder builderForValue)

public Rule.Builder setFilterAction(Rule.FilterAction.Builder builderForValue)

Filters results.

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

Parameter
NameDescription
builderForValueRule.FilterAction.Builder
Returns
TypeDescription
Rule.Builder

setIgnoreAction(Rule.IgnoreAction value)

public Rule.Builder setIgnoreAction(Rule.IgnoreAction value)

Ignores specific terms from query during search.

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

Parameter
NameDescription
valueRule.IgnoreAction
Returns
TypeDescription
Rule.Builder

setIgnoreAction(Rule.IgnoreAction.Builder builderForValue)

public Rule.Builder setIgnoreAction(Rule.IgnoreAction.Builder builderForValue)

Ignores specific terms from query during search.

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

Parameter
NameDescription
builderForValueRule.IgnoreAction.Builder
Returns
TypeDescription
Rule.Builder

setOnewaySynonymsAction(Rule.OnewaySynonymsAction value)

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;

Parameter
NameDescription
valueRule.OnewaySynonymsAction
Returns
TypeDescription
Rule.Builder

setOnewaySynonymsAction(Rule.OnewaySynonymsAction.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueRule.OnewaySynonymsAction.Builder
Returns
TypeDescription
Rule.Builder

setRedirectAction(Rule.RedirectAction value)

public Rule.Builder setRedirectAction(Rule.RedirectAction value)

Redirects a shopper to a specific page.

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

Parameter
NameDescription
valueRule.RedirectAction
Returns
TypeDescription
Rule.Builder

setRedirectAction(Rule.RedirectAction.Builder builderForValue)

public Rule.Builder setRedirectAction(Rule.RedirectAction.Builder builderForValue)

Redirects a shopper to a specific page.

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

Parameter
NameDescription
builderForValueRule.RedirectAction.Builder
Returns
TypeDescription
Rule.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Rule.Builder
Overrides

setReplacementAction(Rule.ReplacementAction value)

public Rule.Builder setReplacementAction(Rule.ReplacementAction value)

Replaces specific terms in the query.

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

Parameter
NameDescription
valueRule.ReplacementAction
Returns
TypeDescription
Rule.Builder

setReplacementAction(Rule.ReplacementAction.Builder builderForValue)

public Rule.Builder setReplacementAction(Rule.ReplacementAction.Builder builderForValue)

Replaces specific terms in the query.

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

Parameter
NameDescription
builderForValueRule.ReplacementAction.Builder
Returns
TypeDescription
Rule.Builder

setTwowaySynonymsAction(Rule.TwowaySynonymsAction value)

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;

Parameter
NameDescription
valueRule.TwowaySynonymsAction
Returns
TypeDescription
Rule.Builder

setTwowaySynonymsAction(Rule.TwowaySynonymsAction.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueRule.TwowaySynonymsAction.Builder
Returns
TypeDescription
Rule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Rule.Builder
Overrides