Discovery Engine v1beta API - Class ServingConfig.Types.MediaConfig (1.0.0-beta15)

public sealed class ServingConfig.Types.MediaConfig : IMessage<ServingConfig.Types.MediaConfig>, IEquatable<ServingConfig.Types.MediaConfig>, IDeepCloneable<ServingConfig.Types.MediaConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1beta API class ServingConfig.Types.MediaConfig.

Specifies the configurations needed for Media Discovery. Currently we support:

  • demote_content_watched: Threshold for watched content demotion. Customers can specify if using watched content demotion or use viewed detail page. Using the content watched demotion, customers need to specify the watched minutes or percentage exceeds the threshold, the content will be demoted in the recommendation result.
  • promote_fresh_content: cutoff days for fresh content promotion. Customers can specify if using content freshness promotion. If the content was published within the cutoff days, the content will be promoted in the recommendation result. Can only be set if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].

Inheritance

object > ServingConfig.Types.MediaConfig

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

MediaConfig()

public MediaConfig()

MediaConfig(MediaConfig)

public MediaConfig(ServingConfig.Types.MediaConfig other)
Parameter
Name Description
other ServingConfigTypesMediaConfig

Properties

ContentFreshnessCutoffDays

public int ContentFreshnessCutoffDays { get; set; }

Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days.

Property Value
Type Description
int

ContentWatchedPercentageThreshold

public float ContentWatchedPercentageThreshold { get; set; }

Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive.

Property Value
Type Description
float

ContentWatchedSecondsThreshold

public float ContentWatchedSecondsThreshold { get; set; }

Specifies the content watched minutes threshold for demotion.

Property Value
Type Description
float

DemoteContentWatchedCase

public ServingConfig.Types.MediaConfig.DemoteContentWatchedOneofCase DemoteContentWatchedCase { get; }
Property Value
Type Description
ServingConfigTypesMediaConfigDemoteContentWatchedOneofCase

DemotionEventType

public string DemotionEventType { get; set; }

Specifies the event type used for demoting recommendation result. Currently supported values:

  • view-item: Item viewed.
  • media-play: Start/resume watching a video, playing a song, etc.
  • media-complete: Finished or stopped midway through a video, song, etc.

If unset, watch history demotion will not be applied. Content freshness demotion will still be applied.

Property Value
Type Description
string

HasContentWatchedPercentageThreshold

public bool HasContentWatchedPercentageThreshold { get; }

Gets whether the "content_watched_percentage_threshold" field is set

Property Value
Type Description
bool

HasContentWatchedSecondsThreshold

public bool HasContentWatchedSecondsThreshold { get; }

Gets whether the "content_watched_seconds_threshold" field is set

Property Value
Type Description
bool