Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression

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

Overview

The expression denoting the filter that was extracted from the input query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression.



12056
12057
12058
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12056

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

Instance Attribute Details

#geolocation_constraintGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterGeolocationConstraint

Constraint of a geolocation field. Name of the geolocation field as defined in the schema. Corresponds to the JSON property geolocationConstraint



12039
12040
12041
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12039

def geolocation_constraint
  @geolocation_constraint
end

#number_constraintGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint

Constraint expression of a number field. Example: price < 100. Corresponds to the JSON property numberConstraint



12044
12045
12046
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12044

def number_constraint
  @number_constraint
end

#string_constraintGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint

Constraint expression of a string field. Corresponds to the JSON property stringConstraint



12054
12055
12056
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12054

def string_constraint
  @string_constraint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12061
12062
12063
12064
12065
12066
12067
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12061

def update!(**args)
  @and_expr = args[:and_expr] if args.key?(:and_expr)
  @geolocation_constraint = args[:geolocation_constraint] if args.key?(:geolocation_constraint)
  @number_constraint = args[:number_constraint] if args.key?(:number_constraint)
  @or_expr = args[:or_expr] if args.key?(:or_expr)
  @string_constraint = args[:string_constraint] if args.key?(:string_constraint)
end