class Google::Apis::YoutubeV3::CommentThreadSnippet

Basic details about a comment thread.

Attributes

can_reply[RW]

Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field. Corresponds to the JSON property `canReply` @return [Boolean]

can_reply?[RW]

Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field. Corresponds to the JSON property `canReply` @return [Boolean]

channel_id[RW]

The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself. Corresponds to the JSON property `channelId` @return [String]

is_public[RW]

Whether the thread (and therefore all its comments) is visible to all YouTube users. Corresponds to the JSON property `isPublic` @return [Boolean]

is_public?[RW]

Whether the thread (and therefore all its comments) is visible to all YouTube users. Corresponds to the JSON property `isPublic` @return [Boolean]

top_level_comment[RW]

A comment represents a single YouTube comment. Corresponds to the JSON property `topLevelComment` @return [Google::Apis::YoutubeV3::Comment]

total_reply_count[RW]

The total number of replies (not including the top level comment). Corresponds to the JSON property `totalReplyCount` @return [Fixnum]

video_id[RW]

The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment. Corresponds to the JSON property `videoId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_v3/classes.rb, line 2368
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_v3/classes.rb, line 2373
def update!(**args)
  @can_reply = args[:can_reply] if args.key?(:can_reply)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @is_public = args[:is_public] if args.key?(:is_public)
  @top_level_comment = args[:top_level_comment] if args.key?(:top_level_comment)
  @total_reply_count = args[:total_reply_count] if args.key?(:total_reply_count)
  @video_id = args[:video_id] if args.key?(:video_id)
end