- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.1
- 2.4.0
- 2.3.0
- 2.2.3
- 2.1.0
- 2.0.19
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 only boost rules are supported. Currently only supported by the search endpoint.
Protobuf type google.cloud.retail.v2beta.Rule
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Rule.BuilderImplements
RuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Rule.Builder |
build()
public Rule build()
Type | Description |
Rule |
buildPartial()
public Rule buildPartial()
Type | Description |
Rule |
clear()
public Rule.Builder clear()
Type | Description |
Rule.Builder |
clearAction()
public Rule.Builder clearAction()
Type | Description |
Rule.Builder |
clearBoostAction()
public Rule.Builder clearBoostAction()
A boost action.
.google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2;
Type | Description |
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.v2beta.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Rule.Builder |
clearDoNotAssociateAction()
public Rule.Builder clearDoNotAssociateAction()
Prevents term from being associated with other terms.
.google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7;
Type | Description |
Rule.Builder |
clearField(Descriptors.FieldDescriptor field)
public Rule.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Rule.Builder |
clearFilterAction()
public Rule.Builder clearFilterAction()
Filters results.
.google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10;
Type | Description |
Rule.Builder |
clearIgnoreAction()
public Rule.Builder clearIgnoreAction()
Ignores specific terms from query during search.
.google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9;
Type | Description |
Rule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Rule.Builder |
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.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
Type | Description |
Rule.Builder |
clearRedirectAction()
public Rule.Builder clearRedirectAction()
Redirects a shopper to a specific page.
.google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3;
Type | Description |
Rule.Builder |
clearReplacementAction()
public Rule.Builder clearReplacementAction()
Replaces specific terms in the query.
.google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8;
Type | Description |
Rule.Builder |
clearTwowaySynonymsAction()
public Rule.Builder clearTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
Type | Description |
Rule.Builder |
clone()
public Rule.Builder clone()
Type | Description |
Rule.Builder |
getActionCase()
public Rule.ActionCase getActionCase()
Type | Description |
Rule.ActionCase |
getBoostAction()
public Rule.BoostAction getBoostAction()
A boost action.
.google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2;
Type | Description |
Rule.BoostAction | The boostAction. |
getBoostActionBuilder()
public Rule.BoostAction.Builder getBoostActionBuilder()
A boost action.
.google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2;
Type | Description |
Rule.BoostAction.Builder |
getBoostActionOrBuilder()
public Rule.BoostActionOrBuilder getBoostActionOrBuilder()
A boost action.
.google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2;
Type | Description |
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.v2beta.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
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.v2beta.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
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.v2beta.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ConditionOrBuilder |
getDefaultInstanceForType()
public Rule getDefaultInstanceForType()
Type | Description |
Rule |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDoNotAssociateAction()
public Rule.DoNotAssociateAction getDoNotAssociateAction()
Prevents term from being associated with other terms.
.google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7;
Type | Description |
Rule.DoNotAssociateAction | The doNotAssociateAction. |
getDoNotAssociateActionBuilder()
public Rule.DoNotAssociateAction.Builder getDoNotAssociateActionBuilder()
Prevents term from being associated with other terms.
.google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7;
Type | Description |
Rule.DoNotAssociateAction.Builder |
getDoNotAssociateActionOrBuilder()
public Rule.DoNotAssociateActionOrBuilder getDoNotAssociateActionOrBuilder()
Prevents term from being associated with other terms.
.google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7;
Type | Description |
Rule.DoNotAssociateActionOrBuilder |
getFilterAction()
public Rule.FilterAction getFilterAction()
Filters results.
.google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10;
Type | Description |
Rule.FilterAction | The filterAction. |
getFilterActionBuilder()
public Rule.FilterAction.Builder getFilterActionBuilder()
Filters results.
.google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10;
Type | Description |
Rule.FilterAction.Builder |
getFilterActionOrBuilder()
public Rule.FilterActionOrBuilder getFilterActionOrBuilder()
Filters results.
.google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10;
Type | Description |
Rule.FilterActionOrBuilder |
getIgnoreAction()
public Rule.IgnoreAction getIgnoreAction()
Ignores specific terms from query during search.
.google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9;
Type | Description |
Rule.IgnoreAction | The ignoreAction. |
getIgnoreActionBuilder()
public Rule.IgnoreAction.Builder getIgnoreActionBuilder()
Ignores specific terms from query during search.
.google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9;
Type | Description |
Rule.IgnoreAction.Builder |
getIgnoreActionOrBuilder()
public Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder()
Ignores specific terms from query during search.
.google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9;
Type | Description |
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.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
Type | Description |
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.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
Type | Description |
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.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
Type | Description |
Rule.OnewaySynonymsActionOrBuilder |
getRedirectAction()
public Rule.RedirectAction getRedirectAction()
Redirects a shopper to a specific page.
.google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3;
Type | Description |
Rule.RedirectAction | The redirectAction. |
getRedirectActionBuilder()
public Rule.RedirectAction.Builder getRedirectActionBuilder()
Redirects a shopper to a specific page.
.google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3;
Type | Description |
Rule.RedirectAction.Builder |
getRedirectActionOrBuilder()
public Rule.RedirectActionOrBuilder getRedirectActionOrBuilder()
Redirects a shopper to a specific page.
.google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3;
Type | Description |
Rule.RedirectActionOrBuilder |
getReplacementAction()
public Rule.ReplacementAction getReplacementAction()
Replaces specific terms in the query.
.google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8;
Type | Description |
Rule.ReplacementAction | The replacementAction. |
getReplacementActionBuilder()
public Rule.ReplacementAction.Builder getReplacementActionBuilder()
Replaces specific terms in the query.
.google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8;
Type | Description |
Rule.ReplacementAction.Builder |
getReplacementActionOrBuilder()
public Rule.ReplacementActionOrBuilder getReplacementActionOrBuilder()
Replaces specific terms in the query.
.google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8;
Type | Description |
Rule.ReplacementActionOrBuilder |
getTwowaySynonymsAction()
public Rule.TwowaySynonymsAction getTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
Type | Description |
Rule.TwowaySynonymsAction | The twowaySynonymsAction. |
getTwowaySynonymsActionBuilder()
public Rule.TwowaySynonymsAction.Builder getTwowaySynonymsActionBuilder()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
Type | Description |
Rule.TwowaySynonymsAction.Builder |
getTwowaySynonymsActionOrBuilder()
public Rule.TwowaySynonymsActionOrBuilder getTwowaySynonymsActionOrBuilder()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
Type | Description |
Rule.TwowaySynonymsActionOrBuilder |
hasBoostAction()
public boolean hasBoostAction()
A boost action.
.google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2;
Type | Description |
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.v2beta.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the condition field is set. |
hasDoNotAssociateAction()
public boolean hasDoNotAssociateAction()
Prevents term from being associated with other terms.
.google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7;
Type | Description |
boolean | Whether the doNotAssociateAction field is set. |
hasFilterAction()
public boolean hasFilterAction()
Filters results.
.google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10;
Type | Description |
boolean | Whether the filterAction field is set. |
hasIgnoreAction()
public boolean hasIgnoreAction()
Ignores specific terms from query during search.
.google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9;
Type | Description |
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.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
Type | Description |
boolean | Whether the onewaySynonymsAction field is set. |
hasRedirectAction()
public boolean hasRedirectAction()
Redirects a shopper to a specific page.
.google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3;
Type | Description |
boolean | Whether the redirectAction field is set. |
hasReplacementAction()
public boolean hasReplacementAction()
Replaces specific terms in the query.
.google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8;
Type | Description |
boolean | Whether the replacementAction field is set. |
hasTwowaySynonymsAction()
public boolean hasTwowaySynonymsAction()
Treats a set of terms as synonyms of one another.
.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
Type | Description |
boolean | Whether the twowaySynonymsAction field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBoostAction(Rule.BoostAction value)
public Rule.Builder mergeBoostAction(Rule.BoostAction value)
A boost action.
.google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2;
Name | Description |
value | Rule.BoostAction |
Type | Description |
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.v2beta.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Condition |
Type | Description |
Rule.Builder |
mergeDoNotAssociateAction(Rule.DoNotAssociateAction value)
public Rule.Builder mergeDoNotAssociateAction(Rule.DoNotAssociateAction value)
Prevents term from being associated with other terms.
.google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7;
Name | Description |
value | Rule.DoNotAssociateAction |
Type | Description |
Rule.Builder |
mergeFilterAction(Rule.FilterAction value)
public Rule.Builder mergeFilterAction(Rule.FilterAction value)
Filters results.
.google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10;
Name | Description |
value | Rule.FilterAction |
Type | Description |
Rule.Builder |
mergeFrom(Rule other)
public Rule.Builder mergeFrom(Rule other)
Name | Description |
other | Rule |
Type | Description |
Rule.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Rule.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Rule.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Rule.Builder |
mergeIgnoreAction(Rule.IgnoreAction value)
public Rule.Builder mergeIgnoreAction(Rule.IgnoreAction value)
Ignores specific terms from query during search.
.google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9;
Name | Description |
value | Rule.IgnoreAction |
Type | Description |
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.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
Name | Description |
value | Rule.OnewaySynonymsAction |
Type | Description |
Rule.Builder |
mergeRedirectAction(Rule.RedirectAction value)
public Rule.Builder mergeRedirectAction(Rule.RedirectAction value)
Redirects a shopper to a specific page.
.google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3;
Name | Description |
value | Rule.RedirectAction |
Type | Description |
Rule.Builder |
mergeReplacementAction(Rule.ReplacementAction value)
public Rule.Builder mergeReplacementAction(Rule.ReplacementAction value)
Replaces specific terms in the query.
.google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8;
Name | Description |
value | Rule.ReplacementAction |
Type | Description |
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.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
Name | Description |
value | Rule.TwowaySynonymsAction |
Type | Description |
Rule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Rule.Builder |
setBoostAction(Rule.BoostAction value)
public Rule.Builder setBoostAction(Rule.BoostAction value)
A boost action.
.google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2;
Name | Description |
value | Rule.BoostAction |
Type | Description |
Rule.Builder |
setBoostAction(Rule.BoostAction.Builder builderForValue)
public Rule.Builder setBoostAction(Rule.BoostAction.Builder builderForValue)
A boost action.
.google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2;
Name | Description |
builderForValue | Rule.BoostAction.Builder |
Type | Description |
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.v2beta.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Condition |
Type | Description |
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.v2beta.Condition condition = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | Condition.Builder |
Type | Description |
Rule.Builder |
setDoNotAssociateAction(Rule.DoNotAssociateAction value)
public Rule.Builder setDoNotAssociateAction(Rule.DoNotAssociateAction value)
Prevents term from being associated with other terms.
.google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7;
Name | Description |
value | Rule.DoNotAssociateAction |
Type | Description |
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.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7;
Name | Description |
builderForValue | Rule.DoNotAssociateAction.Builder |
Type | Description |
Rule.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Rule.Builder |
setFilterAction(Rule.FilterAction value)
public Rule.Builder setFilterAction(Rule.FilterAction value)
Filters results.
.google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10;
Name | Description |
value | Rule.FilterAction |
Type | Description |
Rule.Builder |
setFilterAction(Rule.FilterAction.Builder builderForValue)
public Rule.Builder setFilterAction(Rule.FilterAction.Builder builderForValue)
Filters results.
.google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10;
Name | Description |
builderForValue | Rule.FilterAction.Builder |
Type | Description |
Rule.Builder |
setIgnoreAction(Rule.IgnoreAction value)
public Rule.Builder setIgnoreAction(Rule.IgnoreAction value)
Ignores specific terms from query during search.
.google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9;
Name | Description |
value | Rule.IgnoreAction |
Type | Description |
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.v2beta.Rule.IgnoreAction ignore_action = 9;
Name | Description |
builderForValue | Rule.IgnoreAction.Builder |
Type | Description |
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.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
Name | Description |
value | Rule.OnewaySynonymsAction |
Type | Description |
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.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6;
Name | Description |
builderForValue | Rule.OnewaySynonymsAction.Builder |
Type | Description |
Rule.Builder |
setRedirectAction(Rule.RedirectAction value)
public Rule.Builder setRedirectAction(Rule.RedirectAction value)
Redirects a shopper to a specific page.
.google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3;
Name | Description |
value | Rule.RedirectAction |
Type | Description |
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.v2beta.Rule.RedirectAction redirect_action = 3;
Name | Description |
builderForValue | Rule.RedirectAction.Builder |
Type | Description |
Rule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Rule.Builder |
setReplacementAction(Rule.ReplacementAction value)
public Rule.Builder setReplacementAction(Rule.ReplacementAction value)
Replaces specific terms in the query.
.google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8;
Name | Description |
value | Rule.ReplacementAction |
Type | Description |
Rule.Builder |
setReplacementAction(Rule.ReplacementAction.Builder builderForValue)
public Rule.Builder setReplacementAction(Rule.ReplacementAction.Builder builderForValue)
Replaces specific terms in the query.
.google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8;
Name | Description |
builderForValue | Rule.ReplacementAction.Builder |
Type | Description |
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.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
Name | Description |
value | Rule.TwowaySynonymsAction |
Type | Description |
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.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11;
Name | Description |
builderForValue | Rule.TwowaySynonymsAction.Builder |
Type | Description |
Rule.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Rule.Builder |