Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint
- 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
Constraint expression of a number field. Example: price < 100.
Instance Attribute Summary collapse
-
#comparison ⇒ String
The comparison operation performed between the field value and the value specified in the constraint.
-
#field_name ⇒ String
Name of the numerical field as defined in the schema.
-
#value ⇒ Float
The value specified in the numerical constraint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint.
12125 12126 12127 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12125 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comparison ⇒ String
The comparison operation performed between the field value and the value
specified in the constraint.
Corresponds to the JSON property comparison
12113 12114 12115 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12113 def comparison @comparison end |
#field_name ⇒ String
Name of the numerical field as defined in the schema.
Corresponds to the JSON property fieldName
12118 12119 12120 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12118 def field_name @field_name end |
#value ⇒ Float
The value specified in the numerical constraint.
Corresponds to the JSON property value
12123 12124 12125 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12123 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12130 12131 12132 12133 12134 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12130 def update!(**args) @comparison = args[:comparison] if args.key?(:comparison) @field_name = args[:field_name] if args.key?(:field_name) @value = args[:value] if args.key?(:value) end |