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.



1149
1150
1151
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1149

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

Instance Attribute Details

#affinity_scoreFloat

Corresponds to the JSON property affinityScore

Returns:

  • (Float)


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

def affinity_score
  @affinity_score
end

#common_contact_count_affinity_scoreFloat

Corresponds to the JSON property commonContactCountAffinityScore

Returns:

  • (Float)


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

def common_contact_count_affinity_score
  @common_contact_count_affinity_score
end

#contacts_intersection_countFloat

Corresponds to the JSON property contactsIntersectionCount

Returns:

  • (Float)


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

def contacts_intersection_count
  @contacts_intersection_count
end

#final_scoreFloat

Corresponds to the JSON property finalScore

Returns:

  • (Float)


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

def final_score
  @final_score
end

#freshness_scoreFloat

Corresponds to the JSON property freshnessScore

Returns:

  • (Float)


1097
1098
1099
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1097

def freshness_score
  @freshness_score
end

#joined_spaces_affinity_scoreFloat

Corresponds to the JSON property joinedSpacesAffinityScore

Returns:

  • (Float)


1102
1103
1104
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1102

def joined_spaces_affinity_score
  @joined_spaces_affinity_score
end

#last_message_posted_timestamp_microsFixnum

Corresponds to the JSON property lastMessagePostedTimestampMicros

Returns:

  • (Fixnum)


1107
1108
1109
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1107

def last_message_posted_timestamp_micros
  @last_message_posted_timestamp_micros
end

#member_metadata_countFloat

Corresponds to the JSON property memberMetadataCount

Returns:

  • (Float)


1112
1113
1114
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1112

def 
  @member_metadata_count
end

#message_scoreFloat

Corresponds to the JSON property messageScore

Returns:

  • (Float)


1117
1118
1119
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1117

def message_score
  @message_score
end

#num_auc_contactsFixnum

Corresponds to the JSON property numAucContacts

Returns:

  • (Fixnum)


1122
1123
1124
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1122

def num_auc_contacts
  @num_auc_contacts
end

#small_contact_list_affinity_scoreFloat

Corresponds to the JSON property smallContactListAffinityScore

Returns:

  • (Float)


1127
1128
1129
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1127

def small_contact_list_affinity_score
  @small_contact_list_affinity_score
end

#small_unjoined_spaces_affinity_scoreFloat

Corresponds to the JSON property smallUnjoinedSpacesAffinityScore

Returns:

  • (Float)


1132
1133
1134
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1132

def small_unjoined_spaces_affinity_score
  @small_unjoined_spaces_affinity_score
end

#space_age_in_daysFloat

Corresponds to the JSON property spaceAgeInDays

Returns:

  • (Float)


1137
1138
1139
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1137

def space_age_in_days
  @space_age_in_days
end

#space_creation_timestamp_microsFixnum

Corresponds to the JSON property spaceCreationTimestampMicros

Returns:

  • (Fixnum)


1142
1143
1144
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1142

def space_creation_timestamp_micros
  @space_creation_timestamp_micros
end

#topicality_scoreFloat

Corresponds to the JSON property topicalityScore

Returns:

  • (Float)


1147
1148
1149
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1147

def topicality_score
  @topicality_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1154

def update!(**args)
  @affinity_score = args[:affinity_score] if args.key?(:affinity_score)
  @common_contact_count_affinity_score = args[:common_contact_count_affinity_score] if args.key?(:common_contact_count_affinity_score)
  @contacts_intersection_count = args[:contacts_intersection_count] if args.key?(:contacts_intersection_count)
  @final_score = args[:final_score] if args.key?(:final_score)
  @freshness_score = args[:freshness_score] if args.key?(:freshness_score)
  @joined_spaces_affinity_score = args[:joined_spaces_affinity_score] if args.key?(:joined_spaces_affinity_score)
  @last_message_posted_timestamp_micros = args[:last_message_posted_timestamp_micros] if args.key?(:last_message_posted_timestamp_micros)
  @member_metadata_count = args[:member_metadata_count] if args.key?(:member_metadata_count)
  @message_score = args[:message_score] if args.key?(:message_score)
  @num_auc_contacts = args[:num_auc_contacts] if args.key?(:num_auc_contacts)
  @small_contact_list_affinity_score = args[:small_contact_list_affinity_score] if args.key?(:small_contact_list_affinity_score)
  @small_unjoined_spaces_affinity_score = args[:small_unjoined_spaces_affinity_score] if args.key?(:small_unjoined_spaces_affinity_score)
  @space_age_in_days = args[:space_age_in_days] if args.key?(:space_age_in_days)
  @space_creation_timestamp_micros = args[:space_creation_timestamp_micros] if args.key?(:space_creation_timestamp_micros)
  @topicality_score = args[:topicality_score] if args.key?(:topicality_score)
end