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.



8320
8321
8322
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8320

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

Instance Attribute Details

#common_contact_countFixnum

Corresponds to the JSON property commonContactCount

Returns:

  • (Fixnum)


8237
8238
8239
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8237

def common_contact_count
  @common_contact_count
end

#common_count_to_contact_list_count_ratioFloat

Corresponds to the JSON property commonCountToContactListCountRatio

Returns:

  • (Float)


8242
8243
8244
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8242

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)


8247
8248
8249
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8247

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)


8252
8253
8254
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8252

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)


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

def creator_in_searcher_contact_list
  @creator_in_searcher_contact_list
end

#crowding_multiplierFloat

Corresponds to the JSON property crowdingMultiplier

Returns:

  • (Float)


8263
8264
8265
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8263

def crowding_multiplier
  @crowding_multiplier
end

#das_contact_countFixnum

Corresponds to the JSON property dasContactCount

Returns:

  • (Fixnum)


8268
8269
8270
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8268

def das_contact_count
  @das_contact_count
end

#final_scoreFloat

Corresponds to the JSON property finalScore

Returns:

  • (Float)


8273
8274
8275
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8273

def final_score
  @final_score
end

#freshness_scoreFloat

Corresponds to the JSON property freshnessScore

Returns:

  • (Float)


8278
8279
8280
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8278

def freshness_score
  @freshness_score
end

#joined_space_affinity_scoreFloat

Corresponds to the JSON property joinedSpaceAffinityScore

Returns:

  • (Float)


8283
8284
8285
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8283

def joined_space_affinity_score
  @joined_space_affinity_score
end

#last_read_timestamp_age_in_daysFloat

Corresponds to the JSON property lastReadTimestampAgeInDays

Returns:

  • (Float)


8288
8289
8290
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8288

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)


8293
8294
8295
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8293

def message_age_in_days
  @message_age_in_days
end

#message_sender_affinity_scoreFloat

Corresponds to the JSON property messageSenderAffinityScore

Returns:

  • (Float)


8298
8299
8300
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8298

def message_sender_affinity_score
  @message_sender_affinity_score
end

#space_idFixnum

Corresponds to the JSON property spaceId

Returns:

  • (Fixnum)


8303
8304
8305
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8303

def space_id
  @space_id
end

#space_membership_countFixnum

Corresponds to the JSON property spaceMembershipCount

Returns:

  • (Fixnum)


8308
8309
8310
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8308

def space_membership_count
  @space_membership_count
end

#topicality_scoreFloat

Corresponds to the JSON property topicalityScore

Returns:

  • (Float)


8313
8314
8315
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8313

def topicality_score
  @topicality_score
end

#unjoined_space_affinity_scoreFloat

Corresponds to the JSON property unjoinedSpaceAffinityScore

Returns:

  • (Float)


8318
8319
8320
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8318

def unjoined_space_affinity_score
  @unjoined_space_affinity_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8325

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