Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint

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

Constraint expression of a number field. Example: price < 100.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint.



20304
20305
20306
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20304

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

Instance Attribute Details

#comparisonString

The comparison operation performed between the field value and the value specified in the constraint. Corresponds to the JSON property comparison

Returns:

  • (String)


20287
20288
20289
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20287

def comparison
  @comparison
end

#field_nameString

Name of the numerical field as defined in the schema. Corresponds to the JSON property fieldName

Returns:

  • (String)


20292
20293
20294
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20292

def field_name
  @field_name
end

#query_segmentString

Identifies the keywords within the search query that match a filter. Corresponds to the JSON property querySegment

Returns:

  • (String)


20297
20298
20299
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20297

def query_segment
  @query_segment
end

#valueFloat

The value specified in the numerical constraint. Corresponds to the JSON property value

Returns:

  • (Float)


20302
20303
20304
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20302

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20309
20310
20311
20312
20313
20314
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20309

def update!(**args)
  @comparison = args[:comparison] if args.key?(:comparison)
  @field_name = args[:field_name] if args.key?(:field_name)
  @query_segment = args[:query_segment] if args.key?(:query_segment)
  @value = args[:value] if args.key?(:value)
end