Class: Google::Apis::CloudsearchV1::DynamiteMessagesScoringInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::DynamiteMessagesScoringInfo
- 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 message 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. -
#joined_space_affinity_score ⇒ Float
Corresponds to the JSON property
joinedSpaceAffinityScore. -
#message_age_in_days ⇒ Float
Corresponds to the JSON property
messageAgeInDays. -
#topicality_score ⇒ Float
Corresponds to the JSON property
topicalityScore.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DynamiteMessagesScoringInfo
constructor
A new instance of DynamiteMessagesScoringInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DynamiteMessagesScoringInfo
Returns a new instance of DynamiteMessagesScoringInfo.
7723 7724 7725 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7723 def initialize(**args) update!(**args) end |
Instance Attribute Details
#final_score ⇒ Float
Corresponds to the JSON property finalScore
7701 7702 7703 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7701 def final_score @final_score end |
#freshness_score ⇒ Float
Corresponds to the JSON property freshnessScore
7706 7707 7708 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7706 def freshness_score @freshness_score end |
#joined_space_affinity_score ⇒ Float
Corresponds to the JSON property joinedSpaceAffinityScore
7711 7712 7713 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7711 def joined_space_affinity_score @joined_space_affinity_score end |
#message_age_in_days ⇒ Float
Corresponds to the JSON property messageAgeInDays
7716 7717 7718 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7716 def @message_age_in_days end |
#topicality_score ⇒ Float
Corresponds to the JSON property topicalityScore
7721 7722 7723 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7721 def topicality_score @topicality_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7728 7729 7730 7731 7732 7733 7734 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7728 def update!(**args) @final_score = args[:final_score] if args.key?(:final_score) @freshness_score = args[:freshness_score] if args.key?(:freshness_score) @joined_space_affinity_score = args[:joined_space_affinity_score] if args.key?(:joined_space_affinity_score) @message_age_in_days = args[:message_age_in_days] if args.key?(:message_age_in_days) @topicality_score = args[:topicality_score] if args.key?(:topicality_score) end |