Class: Google::Apis::YoutubePartnerV1::MatchSegment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MatchSegment

Returns a new instance of MatchSegment.


1839
1840
1841
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1839

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

Instance Attribute Details

#channelString

Identifies the manner in which the claimed video matches the reference video. Corresponds to the JSON property channel

Returns:

  • (String)

1825
1826
1827
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1825

def channel
  @channel
end

#reference_segmentGoogle::Apis::YoutubePartnerV1::Segment

The reference_segment object contains information about the matched portion of the reference content. Corresponds to the JSON property reference_segment


1831
1832
1833
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1831

def reference_segment
  @reference_segment
end

#video_segmentGoogle::Apis::YoutubePartnerV1::Segment

The video_segment object contains information about the matched portion of the claimed video. Corresponds to the JSON property video_segment


1837
1838
1839
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1837

def video_segment
  @video_segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1844
1845
1846
1847
1848
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1844

def update!(**args)
  @channel = args[:channel] if args.key?(:channel)
  @reference_segment = args[:reference_segment] if args.key?(:reference_segment)
  @video_segment = args[:video_segment] if args.key?(:video_segment)
end