Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummary

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

Summary of the top N search result specified by the summary spec.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseSummary

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseSummary.



3630
3631
3632
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3630

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

Instance Attribute Details

#safety_attributesGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes

Safety Attribute categories and their associated confidence scores. Corresponds to the JSON property safetyAttributes



3617
3618
3619
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3617

def safety_attributes
  @safety_attributes
end

#summary_skipped_reasonsArray<String>

Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. Corresponds to the JSON property summarySkippedReasons

Returns:

  • (Array<String>)


3623
3624
3625
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3623

def summary_skipped_reasons
  @summary_skipped_reasons
end

#summary_textString

The summary content. Corresponds to the JSON property summaryText

Returns:

  • (String)


3628
3629
3630
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3628

def summary_text
  @summary_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3635
3636
3637
3638
3639
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3635

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