Retail V2 API - Class Google::Cloud::Retail::V2::Rule (v0.12.0)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::Rule.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#boost_action

def boost_action() -> ::Google::Cloud::Retail::V2::Rule::BoostAction
Returns

#boost_action=

def boost_action=(value) -> ::Google::Cloud::Retail::V2::Rule::BoostAction
Parameter
Returns

#condition

def condition() -> ::Google::Cloud::Retail::V2::Condition
Returns

#condition=

def condition=(value) -> ::Google::Cloud::Retail::V2::Condition
Parameter
Returns

#do_not_associate_action

def do_not_associate_action() -> ::Google::Cloud::Retail::V2::Rule::DoNotAssociateAction
Returns

#do_not_associate_action=

def do_not_associate_action=(value) -> ::Google::Cloud::Retail::V2::Rule::DoNotAssociateAction
Parameter
Returns

#filter_action

def filter_action() -> ::Google::Cloud::Retail::V2::Rule::FilterAction
Returns

#filter_action=

def filter_action=(value) -> ::Google::Cloud::Retail::V2::Rule::FilterAction
Parameter
Returns

#ignore_action

def ignore_action() -> ::Google::Cloud::Retail::V2::Rule::IgnoreAction
Returns

#ignore_action=

def ignore_action=(value) -> ::Google::Cloud::Retail::V2::Rule::IgnoreAction
Parameter
Returns

#oneway_synonyms_action

def oneway_synonyms_action() -> ::Google::Cloud::Retail::V2::Rule::OnewaySynonymsAction
Returns

#oneway_synonyms_action=

def oneway_synonyms_action=(value) -> ::Google::Cloud::Retail::V2::Rule::OnewaySynonymsAction
Parameter
Returns

#redirect_action

def redirect_action() -> ::Google::Cloud::Retail::V2::Rule::RedirectAction
Returns

#redirect_action=

def redirect_action=(value) -> ::Google::Cloud::Retail::V2::Rule::RedirectAction
Parameter
Returns

#replacement_action

def replacement_action() -> ::Google::Cloud::Retail::V2::Rule::ReplacementAction
Returns

#replacement_action=

def replacement_action=(value) -> ::Google::Cloud::Retail::V2::Rule::ReplacementAction
Parameter
Returns

#twoway_synonyms_action

def twoway_synonyms_action() -> ::Google::Cloud::Retail::V2::Rule::TwowaySynonymsAction
Returns

#twoway_synonyms_action=

def twoway_synonyms_action=(value) -> ::Google::Cloud::Retail::V2::Rule::TwowaySynonymsAction
Parameter
Returns