Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig

Returns a new instance of GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig.



6791
6792
6793
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6791

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

Instance Attribute Details

#content_freshness_cutoff_daysFixnum

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

Returns:

  • (Fixnum)


6764
6765
6766
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6764

def content_freshness_cutoff_days
  @content_freshness_cutoff_days
end

#content_watched_minutes_thresholdFloat

Specifies the content watched minutes threshold for demotion. Corresponds to the JSON property contentWatchedMinutesThreshold

Returns:

  • (Float)


6769
6770
6771
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6769

def content_watched_minutes_threshold
  @content_watched_minutes_threshold
end

#content_watched_percentage_thresholdFloat

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

Returns:

  • (Float)


6775
6776
6777
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6775

def content_watched_percentage_threshold
  @content_watched_percentage_threshold
end

#content_watched_seconds_thresholdFloat

Specifies the content watched minutes threshold for demotion. Corresponds to the JSON property contentWatchedSecondsThreshold

Returns:

  • (Float)


6780
6781
6782
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6780

def content_watched_seconds_threshold
  @content_watched_seconds_threshold
end

#demotion_event_typeString

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. Corresponds to the JSON property demotionEventType

Returns:

  • (String)


6789
6790
6791
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6789

def demotion_event_type
  @demotion_event_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6796
6797
6798
6799
6800
6801
6802
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6796

def update!(**args)
  @content_freshness_cutoff_days = args[:content_freshness_cutoff_days] if args.key?(:content_freshness_cutoff_days)
  @content_watched_minutes_threshold = args[:content_watched_minutes_threshold] if args.key?(:content_watched_minutes_threshold)
  @content_watched_percentage_threshold = args[:content_watched_percentage_threshold] if args.key?(:content_watched_percentage_threshold)
  @content_watched_seconds_threshold = args[:content_watched_seconds_threshold] if args.key?(:content_watched_seconds_threshold)
  @demotion_event_type = args[:demotion_event_type] if args.key?(:demotion_event_type)
end