Class: Google::Apis::CloudsearchV1::DynamiteSpacesScoringInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_scoreFloat

Corresponds to the JSON property finalScore

Returns:

  • (Float)


1077
1078
1079
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1077

def final_score
  @final_score
end

#freshness_scoreFloat

Corresponds to the JSON property freshnessScore

Returns:

  • (Float)


1082
1083
1084
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1082

def freshness_score
  @freshness_score
end

#message_scoreFloat

Corresponds to the JSON property messageScore

Returns:

  • (Float)


1087
1088
1089
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1087

def message_score
  @message_score
end

#space_age_in_daysFloat

Corresponds to the JSON property spaceAgeInDays

Returns:

  • (Float)


1092
1093
1094
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1092

def space_age_in_days
  @space_age_in_days
end

#topicality_scoreFloat

Corresponds to the JSON property topicalityScore

Returns:

  • (Float)


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