Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaControlFilterAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Specified which products may be included in results. Uses same filter as boost.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaControlFilterAction

Returns a new instance of GoogleCloudDiscoveryengineV1alphaControlFilterAction.



450
451
452
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 450

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#filterString

Required. A filter to apply on the matching condition results. Required Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown. Corresponds to the JSON property filter

Returns:

  • (String)


448
449
450
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 448

def filter
  @filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



455
456
457
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 455

def update!(**args)
  @filter = args[:filter] if args.key?(:filter)
end