Class GoogleCloudRetailV2betaRule
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.
Implements
Inherited Members
Namespace: Google.Apis.CloudRetail.v2beta.Data
Assembly: Google.Apis.CloudRetail.v2beta.dll
Syntax
public class GoogleCloudRetailV2betaRule : IDirectResponseSchema
Properties
BoostAction
A boost action.
Declaration
[JsonProperty("boostAction")]
public virtual GoogleCloudRetailV2betaRuleBoostAction BoostAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleBoostAction |
Condition
Required. The condition that triggers the rule. If the condition is empty, the rule will always apply.
Declaration
[JsonProperty("condition")]
public virtual GoogleCloudRetailV2betaCondition Condition { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaCondition |
DoNotAssociateAction
Prevents term from being associated with other terms.
Declaration
[JsonProperty("doNotAssociateAction")]
public virtual GoogleCloudRetailV2betaRuleDoNotAssociateAction DoNotAssociateAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleDoNotAssociateAction |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
FilterAction
Filters results.
Declaration
[JsonProperty("filterAction")]
public virtual GoogleCloudRetailV2betaRuleFilterAction FilterAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleFilterAction |
ForceReturnFacetAction
Force returns an attribute as a facet in the request.
Declaration
[JsonProperty("forceReturnFacetAction")]
public virtual GoogleCloudRetailV2betaRuleForceReturnFacetAction ForceReturnFacetAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleForceReturnFacetAction |
IgnoreAction
Ignores specific terms from query during search.
Declaration
[JsonProperty("ignoreAction")]
public virtual GoogleCloudRetailV2betaRuleIgnoreAction IgnoreAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleIgnoreAction |
OnewaySynonymsAction
Treats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term.
Declaration
[JsonProperty("onewaySynonymsAction")]
public virtual GoogleCloudRetailV2betaRuleOnewaySynonymsAction OnewaySynonymsAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleOnewaySynonymsAction |
RedirectAction
Redirects a shopper to a specific page.
Declaration
[JsonProperty("redirectAction")]
public virtual GoogleCloudRetailV2betaRuleRedirectAction RedirectAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleRedirectAction |
RemoveFacetAction
Remove an attribute as a facet in the request (if present).
Declaration
[JsonProperty("removeFacetAction")]
public virtual GoogleCloudRetailV2betaRuleRemoveFacetAction RemoveFacetAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleRemoveFacetAction |
ReplacementAction
Replaces specific terms in the query.
Declaration
[JsonProperty("replacementAction")]
public virtual GoogleCloudRetailV2betaRuleReplacementAction ReplacementAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleReplacementAction |
TwowaySynonymsAction
Treats a set of terms as synonyms of one another.
Declaration
[JsonProperty("twowaySynonymsAction")]
public virtual GoogleCloudRetailV2betaRuleTwowaySynonymsAction TwowaySynonymsAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2betaRuleTwowaySynonymsAction |