Class: Google::Apis::CloudsearchV1::DynamiteSpacesScoringInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::DynamiteSpacesScoringInfo
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
This is the proto for holding space level scoring information. This data is used for logging in query-api server and for testing purposes.
Instance Attribute Summary collapse
-
#final_score ⇒ Float
Corresponds to the JSON property
finalScore. -
#freshness_score ⇒ Float
Corresponds to the JSON property
freshnessScore. -
#message_score ⇒ Float
Corresponds to the JSON property
messageScore. -
#space_age_in_days ⇒ Float
Corresponds to the JSON property
spaceAgeInDays. -
#topicality_score ⇒ Float
Corresponds to the JSON property
topicalityScore.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DynamiteSpacesScoringInfo
constructor
A new instance of DynamiteSpacesScoringInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DynamiteSpacesScoringInfo
Returns a new instance of DynamiteSpacesScoringInfo.
1099 1100 1101 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1099 def initialize(**args) update!(**args) end |
Instance Attribute Details
#final_score ⇒ Float
Corresponds to the JSON property finalScore
1077 1078 1079 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1077 def final_score @final_score end |
#freshness_score ⇒ Float
Corresponds to the JSON property freshnessScore
1082 1083 1084 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1082 def freshness_score @freshness_score end |
#message_score ⇒ Float
Corresponds to the JSON property messageScore
1087 1088 1089 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1087 def @message_score end |
#space_age_in_days ⇒ Float
Corresponds to the JSON property spaceAgeInDays
1092 1093 1094 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1092 def space_age_in_days @space_age_in_days end |
#topicality_score ⇒ Float
Corresponds to the JSON property topicalityScore
1097 1098 1099 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1097 def topicality_score @topicality_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1104 1105 1106 1107 1108 1109 1110 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1104 def update!(**args) @final_score = args[:final_score] if args.key?(:final_score) @freshness_score = args[:freshness_score] if args.key?(:freshness_score) @message_score = args[:message_score] if args.key?(:message_score) @space_age_in_days = args[:space_age_in_days] if args.key?(:space_age_in_days) @topicality_score = args[:topicality_score] if args.key?(:topicality_score) end |