Class: Google::Cloud::Retail::V2::Rule::ReplacementAction

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/retail/v2/common.rb

Overview

Replaces a term in the query. Multiple replacement candidates can be specified. All query_terms will be replaced with the replacement term. Example: Replace "gShoe" with "google shoe".

Instance Attribute Summary collapse

Instance Attribute Details

#query_terms::Array<::String>

Returns Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.

Returns:

  • (::Array<::String>)

    Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.



291
292
293
294
# File 'proto_docs/google/cloud/retail/v2/common.rb', line 291

class ReplacementAction
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#replacement_term::String

Returns Term that will be used for replacement.

Returns:

  • (::String)

    Term that will be used for replacement.



291
292
293
294
# File 'proto_docs/google/cloud/retail/v2/common.rb', line 291

class ReplacementAction
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#term::String

Returns Will be [deprecated = true] post migration;.

Returns:

  • (::String)

    Will be [deprecated = true] post migration;



291
292
293
294
# File 'proto_docs/google/cloud/retail/v2/common.rb', line 291

class ReplacementAction
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end