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

Extra context about how the entity relates to the document. Typically vertical-specific.

Attributes

  • subject (type: GoogleApi.ContentWarehouse.V1.Model.YoutubeDiscoveryLegosLegosEntity.t, default: nil) - The subject of the semantic relationship. This is set when the relationship is derived from some other entity. The exact meaning of this field depends on the ContextType.
  • type (type: String.t, default: nil) - The type of semantic relationship between the document and the entity. This allows one to retrieve vertical-specific fine-grained information about the document.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.YoutubeDiscoveryLegosLegosSemanticRelationshipContext{
    subject:
      GoogleApi.ContentWarehouse.V1.Model.YoutubeDiscoveryLegosLegosEntity.t()
      | nil,
    type: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.