Class: Google::Apis::ToolresultsV1beta3::SuggestionClusterProto

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

Overview

A set of similar suggestions that we suspect are closely related. This proto and most of the nested protos are branched from foxandcrown.prelaunchreport. service.SuggestionClusterProto, replacing PLR's dependencies with FTL's.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SuggestionClusterProto

Returns a new instance of SuggestionClusterProto.



3002
3003
3004
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 3002

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

Instance Attribute Details

#categoryString

Category in which these types of suggestions should appear. Always set. Corresponds to the JSON property category

Returns:

  • (String)


2993
2994
2995
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2993

def category
  @category
end

#suggestionsArray<Google::Apis::ToolresultsV1beta3::SuggestionProto>

A sequence of suggestions. All of the suggestions within a cluster must have the same SuggestionPriority and belong to the same SuggestionCategory. Suggestions with the same screenshot URL should be adjacent. Corresponds to the JSON property suggestions



3000
3001
3002
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 3000

def suggestions
  @suggestions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3007
3008
3009
3010
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 3007

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @suggestions = args[:suggestions] if args.key?(:suggestions)
end