Class: Google::Apis::CloudsearchV1::DynamiteMessagesScoringInfo

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 message 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) ⇒ DynamiteMessagesScoringInfo

Returns a new instance of DynamiteMessagesScoringInfo.



8256
8257
8258
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8256

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

Instance Attribute Details

#common_contact_countFixnum

Corresponds to the JSON property commonContactCount

Returns:

  • (Fixnum)


8173
8174
8175
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8173

def common_contact_count
  @common_contact_count
end

#common_count_to_contact_list_count_ratioFloat

Corresponds to the JSON property commonCountToContactListCountRatio

Returns:

  • (Float)


8178
8179
8180
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8178

def common_count_to_contact_list_count_ratio
  @common_count_to_contact_list_count_ratio
end

#common_count_to_membership_count_ratioFloat

Corresponds to the JSON property commonCountToMembershipCountRatio

Returns:

  • (Float)


8183
8184
8185
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8183

def common_count_to_membership_count_ratio
  @common_count_to_membership_count_ratio
end

#creator_gaia_idFixnum

Corresponds to the JSON property creatorGaiaId

Returns:

  • (Fixnum)


8188
8189
8190
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8188

def creator_gaia_id
  @creator_gaia_id
end

#creator_in_searcher_contact_listBoolean Also known as: creator_in_searcher_contact_list?

Corresponds to the JSON property creatorInSearcherContactList

Returns:

  • (Boolean)


8193
8194
8195
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8193

def creator_in_searcher_contact_list
  @creator_in_searcher_contact_list
end

#crowding_multiplierFloat

Corresponds to the JSON property crowdingMultiplier

Returns:

  • (Float)


8199
8200
8201
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8199

def crowding_multiplier
  @crowding_multiplier
end

#das_contact_countFixnum

Corresponds to the JSON property dasContactCount

Returns:

  • (Fixnum)


8204
8205
8206
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8204

def das_contact_count
  @das_contact_count
end

#final_scoreFloat

Corresponds to the JSON property finalScore

Returns:

  • (Float)


8209
8210
8211
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8209

def final_score
  @final_score
end

#freshness_scoreFloat

Corresponds to the JSON property freshnessScore

Returns:

  • (Float)


8214
8215
8216
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8214

def freshness_score
  @freshness_score
end

#joined_space_affinity_scoreFloat

Corresponds to the JSON property joinedSpaceAffinityScore

Returns:

  • (Float)


8219
8220
8221
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8219

def joined_space_affinity_score
  @joined_space_affinity_score
end

#last_read_timestamp_age_in_daysFloat

Corresponds to the JSON property lastReadTimestampAgeInDays

Returns:

  • (Float)


8224
8225
8226
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8224

def last_read_timestamp_age_in_days
  @last_read_timestamp_age_in_days
end

#message_age_in_daysFloat

Corresponds to the JSON property messageAgeInDays

Returns:

  • (Float)


8229
8230
8231
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8229

def message_age_in_days
  @message_age_in_days
end

#message_sender_affinity_scoreFloat

Corresponds to the JSON property messageSenderAffinityScore

Returns:

  • (Float)


8234
8235
8236
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8234

def message_sender_affinity_score
  @message_sender_affinity_score
end

#space_idFixnum

Corresponds to the JSON property spaceId

Returns:

  • (Fixnum)


8239
8240
8241
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8239

def space_id
  @space_id
end

#space_membership_countFixnum

Corresponds to the JSON property spaceMembershipCount

Returns:

  • (Fixnum)


8244
8245
8246
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8244

def space_membership_count
  @space_membership_count
end

#topicality_scoreFloat

Corresponds to the JSON property topicalityScore

Returns:

  • (Float)


8249
8250
8251
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8249

def topicality_score
  @topicality_score
end

#unjoined_space_affinity_scoreFloat

Corresponds to the JSON property unjoinedSpaceAffinityScore

Returns:

  • (Float)


8254
8255
8256
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8254

def unjoined_space_affinity_score
  @unjoined_space_affinity_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8261

def update!(**args)
  @common_contact_count = args[:common_contact_count] if args.key?(:common_contact_count)
  @common_count_to_contact_list_count_ratio = args[:common_count_to_contact_list_count_ratio] if args.key?(:common_count_to_contact_list_count_ratio)
  @common_count_to_membership_count_ratio = args[:common_count_to_membership_count_ratio] if args.key?(:common_count_to_membership_count_ratio)
  @creator_gaia_id = args[:creator_gaia_id] if args.key?(:creator_gaia_id)
  @creator_in_searcher_contact_list = args[:creator_in_searcher_contact_list] if args.key?(:creator_in_searcher_contact_list)
  @crowding_multiplier = args[:crowding_multiplier] if args.key?(:crowding_multiplier)
  @das_contact_count = args[:das_contact_count] if args.key?(:das_contact_count)
  @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)
  @last_read_timestamp_age_in_days = args[:last_read_timestamp_age_in_days] if args.key?(:last_read_timestamp_age_in_days)
  @message_age_in_days = args[:message_age_in_days] if args.key?(:message_age_in_days)
  @message_sender_affinity_score = args[:message_sender_affinity_score] if args.key?(:message_sender_affinity_score)
  @space_id = args[:space_id] if args.key?(:space_id)
  @space_membership_count = args[:space_membership_count] if args.key?(:space_membership_count)
  @topicality_score = args[:topicality_score] if args.key?(:topicality_score)
  @unjoined_space_affinity_score = args[:unjoined_space_affinity_score] if args.key?(:unjoined_space_affinity_score)
end