class Google::Apis::YoutubePartnerV1::Conditions
Attributes
This match condition specifies whether the user- or partner-uploaded content needs to match the audio, video or audiovisual content of a reference file for the rule to apply. Corresponds to the JSON property `contentMatchType` @return [Array<String>]
This match condition specifies an amount of time that the user- or partner- uploaded content needs to match a reference file for the rule to apply. Corresponds to the JSON property `matchDuration` @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]
This match condition specifies a percentage of the user- or partner-uploaded content that needs to match a reference file for the rule to apply. Corresponds to the JSON property `matchPercent` @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]
This match condition indicates that the reference must be a certain duration for the rule to apply. Corresponds to the JSON property `referenceDuration` @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]
This match condition indicates that the specified percentage of a reference file must match the user- or partner-uploaded content for the rule to apply. Corresponds to the JSON property `referencePercent` @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]
This watch condition specifies where users are (or or not) allowed to watch ( or listen to) an asset. YouTube determines whether the condition is satisfied based on the user's location. Corresponds to the JSON property `requiredTerritories` @return [Google::Apis::YoutubePartnerV1::TerritoryCondition]
Public Class Methods
# File generated/google/apis/youtube_partner_v1/classes.rb, line 1396 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/youtube_partner_v1/classes.rb, line 1401 def update!(**args) @content_match_type = args[:content_match_type] if args.key?(:content_match_type) @match_duration = args[:match_duration] if args.key?(:match_duration) @match_percent = args[:match_percent] if args.key?(:match_percent) @reference_duration = args[:reference_duration] if args.key?(:reference_duration) @reference_percent = args[:reference_percent] if args.key?(:reference_percent) @required_territories = args[:required_territories] if args.key?(:required_territories) end