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.



8436
8437
8438
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8436

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

Instance Attribute Details

#affinity_scoreFloat

Corresponds to the JSON property affinityScore

Returns:

  • (Float)


8354
8355
8356
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8354

def affinity_score
  @affinity_score
end

#common_contact_count_affinity_scoreFloat

Corresponds to the JSON property commonContactCountAffinityScore

Returns:

  • (Float)


8359
8360
8361
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8359

def common_contact_count_affinity_score
  @common_contact_count_affinity_score
end

#contacts_intersection_countFloat

Corresponds to the JSON property contactsIntersectionCount

Returns:

  • (Float)


8364
8365
8366
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8364

def contacts_intersection_count
  @contacts_intersection_count
end

#final_scoreFloat

Corresponds to the JSON property finalScore

Returns:

  • (Float)


8369
8370
8371
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8369

def final_score
  @final_score
end

#freshness_scoreFloat

Corresponds to the JSON property freshnessScore

Returns:

  • (Float)


8374
8375
8376
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8374

def freshness_score
  @freshness_score
end

#joined_spaces_affinity_scoreFloat

Corresponds to the JSON property joinedSpacesAffinityScore

Returns:

  • (Float)


8379
8380
8381
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8379

def joined_spaces_affinity_score
  @joined_spaces_affinity_score
end

#last_message_posted_timestamp_secsFixnum

Corresponds to the JSON property lastMessagePostedTimestampSecs

Returns:

  • (Fixnum)


8384
8385
8386
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8384

def last_message_posted_timestamp_secs
  @last_message_posted_timestamp_secs
end

#last_read_timestamp_secsFixnum

Corresponds to the JSON property lastReadTimestampSecs

Returns:

  • (Fixnum)


8389
8390
8391
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8389

def last_read_timestamp_secs
  @last_read_timestamp_secs
end

#member_count_scoreFloat

Corresponds to the JSON property memberCountScore

Returns:

  • (Float)


8394
8395
8396
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8394

def member_count_score
  @member_count_score
end

#member_metadata_countFloat

Corresponds to the JSON property memberMetadataCount

Returns:

  • (Float)


8399
8400
8401
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8399

def 
  @member_metadata_count
end

#message_scoreFloat

Corresponds to the JSON property messageScore

Returns:

  • (Float)


8404
8405
8406
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8404

def message_score
  @message_score
end

#num_auc_contactsFixnum

Corresponds to the JSON property numAucContacts

Returns:

  • (Fixnum)


8409
8410
8411
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8409

def num_auc_contacts
  @num_auc_contacts
end

#small_contact_list_affinity_scoreFloat

Corresponds to the JSON property smallContactListAffinityScore

Returns:

  • (Float)


8414
8415
8416
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8414

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)


8419
8420
8421
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8419

def small_unjoined_spaces_affinity_score
  @small_unjoined_spaces_affinity_score
end

#space_age_in_daysFloat

Corresponds to the JSON property spaceAgeInDays

Returns:

  • (Float)


8424
8425
8426
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8424

def space_age_in_days
  @space_age_in_days
end

#space_creation_timestamp_secsFixnum

Corresponds to the JSON property spaceCreationTimestampSecs

Returns:

  • (Fixnum)


8429
8430
8431
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8429

def space_creation_timestamp_secs
  @space_creation_timestamp_secs
end

#topicality_scoreFloat

Corresponds to the JSON property topicalityScore

Returns:

  • (Float)


8434
8435
8436
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8434

def topicality_score
  @topicality_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8441

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_secs = args[:last_message_posted_timestamp_secs] if args.key?(:last_message_posted_timestamp_secs)
  @last_read_timestamp_secs = args[:last_read_timestamp_secs] if args.key?(:last_read_timestamp_secs)
  @member_count_score = args[:member_count_score] if args.key?(:member_count_score)
  @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_secs = args[:space_creation_timestamp_secs] if args.key?(:space_creation_timestamp_secs)
  @topicality_score = args[:topicality_score] if args.key?(:topicality_score)
end