Class GoogleCloudRetailV2Rule
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.v2.Data
Assembly: Google.Apis.CloudRetail.v2.dll
Syntax
public class GoogleCloudRetailV2Rule : IDirectResponseSchema
Properties
BoostAction
A boost action.
Declaration
[JsonProperty("boostAction")]
public virtual GoogleCloudRetailV2RuleBoostAction BoostAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleBoostAction |
Condition
Required. The condition that triggers the rule. If the condition is empty, the rule will always apply.
Declaration
[JsonProperty("condition")]
public virtual GoogleCloudRetailV2Condition Condition { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2Condition |
DoNotAssociateAction
Prevents term from being associated with other terms.
Declaration
[JsonProperty("doNotAssociateAction")]
public virtual GoogleCloudRetailV2RuleDoNotAssociateAction DoNotAssociateAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleDoNotAssociateAction |
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 GoogleCloudRetailV2RuleFilterAction FilterAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleFilterAction |
ForceReturnFacetAction
Force returns an attribute as a facet in the request.
Declaration
[JsonProperty("forceReturnFacetAction")]
public virtual GoogleCloudRetailV2RuleForceReturnFacetAction ForceReturnFacetAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleForceReturnFacetAction |
IgnoreAction
Ignores specific terms from query during search.
Declaration
[JsonProperty("ignoreAction")]
public virtual GoogleCloudRetailV2RuleIgnoreAction IgnoreAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleIgnoreAction |
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 GoogleCloudRetailV2RuleOnewaySynonymsAction OnewaySynonymsAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleOnewaySynonymsAction |
RedirectAction
Redirects a shopper to a specific page.
Declaration
[JsonProperty("redirectAction")]
public virtual GoogleCloudRetailV2RuleRedirectAction RedirectAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleRedirectAction |
RemoveFacetAction
Remove an attribute as a facet in the request (if present).
Declaration
[JsonProperty("removeFacetAction")]
public virtual GoogleCloudRetailV2RuleRemoveFacetAction RemoveFacetAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleRemoveFacetAction |
ReplacementAction
Replaces specific terms in the query.
Declaration
[JsonProperty("replacementAction")]
public virtual GoogleCloudRetailV2RuleReplacementAction ReplacementAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleReplacementAction |
TwowaySynonymsAction
Treats a set of terms as synonyms of one another.
Declaration
[JsonProperty("twowaySynonymsAction")]
public virtual GoogleCloudRetailV2RuleTwowaySynonymsAction TwowaySynonymsAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRetailV2RuleTwowaySynonymsAction |