Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfo

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

Information describing what natural language understanding was done on the input query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfo

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfo.



16140
16141
16142
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16140

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

Instance Attribute Details

#extracted_filtersString

The filters that were extracted from the input query. Corresponds to the JSON property extractedFilters

Returns:

  • (String)


16127
16128
16129
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16127

def extracted_filters
  @extracted_filters
end

#rewritten_queryString

Rewritten input query minus the extracted filters. Corresponds to the JSON property rewrittenQuery

Returns:

  • (String)


16132
16133
16134
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16132

def rewritten_query
  @rewritten_query
end

#structured_extracted_filterGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter

The filters that were extracted from the input query represented in a structured form. Corresponds to the JSON property structuredExtractedFilter



16138
16139
16140
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16138

def structured_extracted_filter
  @structured_extracted_filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16145
16146
16147
16148
16149
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16145

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