GoogleCloudRetailV2alphaRuleResponse class
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.
Constructors
-
GoogleCloudRetailV2alphaRuleResponse({required Input<
GoogleCloudRetailV2alphaRuleBoostActionResponse> boostAction, required Input<GoogleCloudRetailV2alphaConditionResponse> condition, required Input<GoogleCloudRetailV2alphaRuleDoNotAssociateActionResponse> doNotAssociateAction, required Input<GoogleCloudRetailV2alphaRuleFilterActionResponse> filterAction, required Input<GoogleCloudRetailV2alphaRuleForceReturnFacetActionResponse> forceReturnFacetAction, required Input<GoogleCloudRetailV2alphaRuleIgnoreActionResponse> ignoreAction, required Input<GoogleCloudRetailV2alphaRuleOnewaySynonymsActionResponse> onewaySynonymsAction, required Input<GoogleCloudRetailV2alphaRuleRedirectActionResponse> redirectAction, required Input<GoogleCloudRetailV2alphaRuleRemoveFacetActionResponse> removeFacetAction, required Input<GoogleCloudRetailV2alphaRuleReplacementActionResponse> replacementAction, required Input<GoogleCloudRetailV2alphaRuleTwowaySynonymsActionResponse> twowaySynonymsAction}) -
Creates a new GoogleCloudRetailV2alphaRuleResponse.
boostActionA boost action.conditionThe condition that triggers the rule. If the condition is empty, the rule will always apply.doNotAssociateActionPrevents term from being associated with other terms.filterActionFilters results.forceReturnFacetActionForce returns an attribute as a facet in the request.ignoreActionIgnores specific terms from query during search.onewaySynonymsActionTreats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term.redirectActionRedirects a shopper to a specific page.removeFacetActionRemove an attribute as a facet in the request (if present).replacementActionReplaces specific terms in the query.twowaySynonymsActionTreats a set of terms as synonyms of one another.const -
GoogleCloudRetailV2alphaRuleResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
boostAction
→ Input<
GoogleCloudRetailV2alphaRuleBoostActionResponse> -
A boost action.
final
-
condition
→ Input<
GoogleCloudRetailV2alphaConditionResponse> -
The condition that triggers the rule. If the condition is empty, the rule will always apply.
final
-
doNotAssociateAction
→ Input<
GoogleCloudRetailV2alphaRuleDoNotAssociateActionResponse> -
Prevents term from being associated with other terms.
final
-
filterAction
→ Input<
GoogleCloudRetailV2alphaRuleFilterActionResponse> -
Filters results.
final
-
forceReturnFacetAction
→ Input<
GoogleCloudRetailV2alphaRuleForceReturnFacetActionResponse> -
Force returns an attribute as a facet in the request.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ignoreAction
→ Input<
GoogleCloudRetailV2alphaRuleIgnoreActionResponse> -
Ignores specific terms from query during search.
final
-
onewaySynonymsAction
→ Input<
GoogleCloudRetailV2alphaRuleOnewaySynonymsActionResponse> -
Treats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term.
final
-
redirectAction
→ Input<
GoogleCloudRetailV2alphaRuleRedirectActionResponse> -
Redirects a shopper to a specific page.
final
-
removeFacetAction
→ Input<
GoogleCloudRetailV2alphaRuleRemoveFacetActionResponse> -
Remove an attribute as a facet in the request (if present).
final
-
replacementAction
→ Input<
GoogleCloudRetailV2alphaRuleReplacementActionResponse> -
Replaces specific terms in the query.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
twowaySynonymsAction
→ Input<
GoogleCloudRetailV2alphaRuleTwowaySynonymsActionResponse> -
Treats a set of terms as synonyms of one another.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited