Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::ServingConfig::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 is SOLUTION_TYPE_RECOMMENDATION.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#content_freshness_cutoff_days
def content_freshness_cutoff_days() -> ::Integer
- (::Integer) — Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days.
#content_freshness_cutoff_days=
def content_freshness_cutoff_days=(value) -> ::Integer
- value (::Integer) — Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days.
- (::Integer) — Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days.
#content_watched_percentage_threshold
def content_watched_percentage_threshold() -> ::Float
- (::Float) — Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive.
#content_watched_percentage_threshold=
def content_watched_percentage_threshold=(value) -> ::Float
- value (::Float) — Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive.
- (::Float) — Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive.
#content_watched_seconds_threshold
def content_watched_seconds_threshold() -> ::Float
- (::Float) — Specifies the content watched minutes threshold for demotion.
#content_watched_seconds_threshold=
def content_watched_seconds_threshold=(value) -> ::Float
- value (::Float) — Specifies the content watched minutes threshold for demotion.
- (::Float) — Specifies the content watched minutes threshold for demotion.
#demote_content_watched_past_days
def demote_content_watched_past_days() -> ::Integer
- (::Integer) — Optional. Specifies the number of days to look back for demoting watched content. If set to zero or unset, defaults to the maximum of 365 days.
#demote_content_watched_past_days=
def demote_content_watched_past_days=(value) -> ::Integer
- value (::Integer) — Optional. Specifies the number of days to look back for demoting watched content. If set to zero or unset, defaults to the maximum of 365 days.
- (::Integer) — Optional. Specifies the number of days to look back for demoting watched content. If set to zero or unset, defaults to the maximum of 365 days.
#demotion_event_type
def demotion_event_type() -> ::String
-
(::String) — 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.
#demotion_event_type=
def demotion_event_type=(value) -> ::String
-
value (::String) — 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.
-
(::String) — 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.