View Source GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity (google_api_content_warehouse v0.4.0)

Similar to social.graph.storage.Affinity, but pared down to what the clients of the People API are interested in.

Attributes

  • affinityMetadata (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiAffinityMetadata.t, default: nil) - Contains extra ranking information returned by DAS.
  • affinityType (type: String.t, default: nil) -
  • containerId (type: String.t, default: nil) - The ID of the container
  • containerType (type: String.t, default: nil) - The type of container to which this affinity applies
  • loggingId (type: String.t, default: nil) - Used to log events for this affinity value, for disco diagnostic-purposes. See go/disco-diagnostics.
  • value (type: float(), default: nil) - Affinity value. Frequently represented as an inverse ranking, sometimes with additional data encoded. If data_formats.affinity_formats.score_format is set to RAW_SCORE then the value will be the score returned by DAS.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.AppsPeopleOzExternalMergedpeopleapiAffinity{
    affinityMetadata:
      GoogleApi.ContentWarehouse.V1.Model.SocialGraphWireProtoPeopleapiAffinityMetadata.t()
      | nil,
    affinityType: String.t() | nil,
    containerId: String.t() | nil,
    containerType: String.t() | nil,
    loggingId: String.t() | nil,
    value: float() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.