📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/YouTube
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AbuseReport.php
▶ Open 📄 View Source
🐘 AbuseType.php
▶ Open 📄 View Source
🐘 AccessPolicy.php
▶ Open 📄 View Source
🐘 Activity.php
▶ Open 📄 View Source
🐘 ActivityContentDetails.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsBulletin.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsChannelItem.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsComment.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsFavorite.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsLike.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsPlaylistItem.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsPromotedItem.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsRecommendation.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsSocial.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsSubscription.php
▶ Open 📄 View Source
🐘 ActivityContentDetailsUpload.php
▶ Open 📄 View Source
🐘 ActivityListResponse.php
▶ Open 📄 View Source
🐘 ActivitySnippet.php
▶ Open 📄 View Source
🐘 BatchGetStatsResponse.php
▶ Open 📄 View Source
🐘 Caption.php
▶ Open 📄 View Source
🐘 CaptionListResponse.php
▶ Open 📄 View Source
🐘 CaptionSnippet.php
▶ Open 📄 View Source
🐘 CdnSettings.php
▶ Open 📄 View Source
🐘 Channel.php
▶ Open 📄 View Source
🐘 ChannelAuditDetails.php
▶ Open 📄 View Source
🐘 ChannelBannerResource.php
▶ Open 📄 View Source
🐘 ChannelBrandingSettings.php
▶ Open 📄 View Source
🐘 ChannelContentDetails.php
▶ Open 📄 View Source
🐘 ChannelContentDetailsRelatedPlaylists.php
▶ Open 📄 View Source
🐘 ChannelContentOwnerDetails.php
▶ Open 📄 View Source
🐘 ChannelConversionPing.php
▶ Open 📄 View Source
🐘 ChannelConversionPings.php
▶ Open 📄 View Source
🐘 ChannelListResponse.php
▶ Open 📄 View Source
🐘 ChannelLocalization.php
▶ Open 📄 View Source
🐘 ChannelProfileDetails.php
▶ Open 📄 View Source
🐘 ChannelSection.php
▶ Open 📄 View Source
🐘 ChannelSectionContentDetails.php
▶ Open 📄 View Source
🐘 ChannelSectionListResponse.php
▶ Open 📄 View Source
🐘 ChannelSectionLocalization.php
▶ Open 📄 View Source
🐘 ChannelSectionSnippet.php
▶ Open 📄 View Source
🐘 ChannelSectionTargeting.php
▶ Open 📄 View Source
🐘 ChannelSettings.php
▶ Open 📄 View Source
🐘 ChannelSnippet.php
▶ Open 📄 View Source
🐘 ChannelStatistics.php
▶ Open 📄 View Source
🐘 ChannelStatus.php
▶ Open 📄 View Source
🐘 ChannelToStoreLinkDetails.php
▶ Open 📄 View Source
🐘 ChannelToStoreLinkDetailsBillingDetails.php
▶ Open 📄 View Source
🐘 ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.php
▶ Open 📄 View Source
🐘 ChannelTopicDetails.php
▶ Open 📄 View Source
🐘 Comment.php
▶ Open 📄 View Source
🐘 CommentListResponse.php
▶ Open 📄 View Source
🐘 CommentSnippet.php
▶ Open 📄 View Source
🐘 CommentSnippetAuthorChannelId.php
▶ Open 📄 View Source
🐘 CommentThread.php
▶ Open 📄 View Source
🐘 CommentThreadListResponse.php
▶ Open 📄 View Source
🐘 CommentThreadReplies.php
▶ Open 📄 View Source
🐘 CommentThreadSnippet.php
▶ Open 📄 View Source
🐘 ContentRating.php
▶ Open 📄 View Source
🐘 Cuepoint.php
▶ Open 📄 View Source
🐘 CuepointSchedule.php
▶ Open 📄 View Source
🐘 Entity.php
▶ Open 📄 View Source
🐘 GeoPoint.php
▶ Open 📄 View Source
🐘 I18nLanguage.php
▶ Open 📄 View Source
🐘 I18nLanguageListResponse.php
▶ Open 📄 View Source
🐘 I18nLanguageSnippet.php
▶ Open 📄 View Source
🐘 I18nRegion.php
▶ Open 📄 View Source
🐘 I18nRegionListResponse.php
▶ Open 📄 View Source
🐘 I18nRegionSnippet.php
▶ Open 📄 View Source
🐘 ImageSettings.php
▶ Open 📄 View Source
🐘 IngestionInfo.php
▶ Open 📄 View Source
🐘 InvideoBranding.php
▶ Open 📄 View Source
🐘 InvideoPosition.php
▶ Open 📄 View Source
🐘 InvideoTiming.php
▶ Open 📄 View Source
🐘 LanguageTag.php
▶ Open 📄 View Source
🐘 LevelDetails.php
▶ Open 📄 View Source
🐘 LiveBroadcast.php
▶ Open 📄 View Source
🐘 LiveBroadcastContentDetails.php
▶ Open 📄 View Source
🐘 LiveBroadcastListResponse.php
▶ Open 📄 View Source
🐘 LiveBroadcastMonetizationDetails.php
▶ Open 📄 View Source
🐘 LiveBroadcastSnippet.php
▶ Open 📄 View Source
🐘 LiveBroadcastStatistics.php
▶ Open 📄 View Source
🐘 LiveBroadcastStatus.php
▶ Open 📄 View Source
🐘 LiveChatBan.php
▶ Open 📄 View Source
🐘 LiveChatBanSnippet.php
▶ Open 📄 View Source
🐘 LiveChatFanFundingEventDetails.php
▶ Open 📄 View Source
🐘 LiveChatGiftDetails.php
▶ Open 📄 View Source
🐘 LiveChatGiftMembershipReceivedDetails.php
▶ Open 📄 View Source
🐘 LiveChatMemberMilestoneChatDetails.php
▶ Open 📄 View Source
🐘 LiveChatMembershipGiftingDetails.php
▶ Open 📄 View Source
🐘 LiveChatMessage.php
▶ Open 📄 View Source
🐘 LiveChatMessageAuthorDetails.php
▶ Open 📄 View Source
🐘 LiveChatMessageDeletedDetails.php
▶ Open 📄 View Source
🐘 LiveChatMessageListResponse.php
▶ Open 📄 View Source
🐘 LiveChatMessageRetractedDetails.php
▶ Open 📄 View Source
🐘 LiveChatMessageSnippet.php
▶ Open 📄 View Source
🐘 LiveChatModerator.php
▶ Open 📄 View Source
🐘 LiveChatModeratorListResponse.php
▶ Open 📄 View Source
🐘 LiveChatModeratorSnippet.php
▶ Open 📄 View Source
🐘 LiveChatNewSponsorDetails.php
▶ Open 📄 View Source
🐘 LiveChatPollDetails.php
▶ Open 📄 View Source
🐘 LiveChatPollDetailsPollMetadata.php
▶ Open 📄 View Source
🐘 LiveChatPollDetailsPollMetadataPollOption.php
▶ Open 📄 View Source
🐘 LiveChatSuperChatDetails.php
▶ Open 📄 View Source
🐘 LiveChatSuperStickerDetails.php
▶ Open 📄 View Source
🐘 LiveChatTextMessageDetails.php
▶ Open 📄 View Source
🐘 LiveChatUserBannedMessageDetails.php
▶ Open 📄 View Source
🐘 LiveStream.php
▶ Open 📄 View Source
🐘 LiveStreamConfigurationIssue.php
▶ Open 📄 View Source
🐘 LiveStreamContentDetails.php
▶ Open 📄 View Source
🐘 LiveStreamHealthStatus.php
▶ Open 📄 View Source
🐘 LiveStreamListResponse.php
▶ Open 📄 View Source
🐘 LiveStreamSnippet.php
▶ Open 📄 View Source
🐘 LiveStreamStatus.php
▶ Open 📄 View Source
🐘 LocalizedProperty.php
▶ Open 📄 View Source
🐘 LocalizedString.php
▶ Open 📄 View Source
🐘 Member.php
▶ Open 📄 View Source
🐘 MemberListResponse.php
▶ Open 📄 View Source
🐘 MemberSnippet.php
▶ Open 📄 View Source
🐘 MembershipsDetails.php
▶ Open 📄 View Source
🐘 MembershipsDuration.php
▶ Open 📄 View Source
🐘 MembershipsDurationAtLevel.php
▶ Open 📄 View Source
🐘 MembershipsLevel.php
▶ Open 📄 View Source
🐘 MembershipsLevelListResponse.php
▶ Open 📄 View Source
🐘 MembershipsLevelSnippet.php
▶ Open 📄 View Source
🐘 MonitorStreamInfo.php
▶ Open 📄 View Source
🐘 PageInfo.php
▶ Open 📄 View Source
🐘 Playlist.php
▶ Open 📄 View Source
🐘 PlaylistContentDetails.php
▶ Open 📄 View Source
🐘 PlaylistImage.php
▶ Open 📄 View Source
🐘 PlaylistImageListResponse.php
▶ Open 📄 View Source
🐘 PlaylistImageSnippet.php
▶ Open 📄 View Source
🐘 PlaylistItem.php
▶ Open 📄 View Source
🐘 PlaylistItemContentDetails.php
▶ Open 📄 View Source
🐘 PlaylistItemListResponse.php
▶ Open 📄 View Source
🐘 PlaylistItemSnippet.php
▶ Open 📄 View Source
🐘 PlaylistItemStatus.php
▶ Open 📄 View Source
🐘 PlaylistListResponse.php
▶ Open 📄 View Source
🐘 PlaylistLocalization.php
▶ Open 📄 View Source
🐘 PlaylistPlayer.php
▶ Open 📄 View Source
🐘 PlaylistSnippet.php
▶ Open 📄 View Source
🐘 PlaylistStatus.php
▶ Open 📄 View Source
🐘 PropertyValue.php
▶ Open 📄 View Source
🐘 RelatedEntity.php
▶ Open 📄 View Source
🐘 ResourceId.php
▶ Open 📄 View Source
🐘 SearchListResponse.php
▶ Open 📄 View Source
🐘 SearchResult.php
▶ Open 📄 View Source
🐘 SearchResultSnippet.php
▶ Open 📄 View Source
🐘 Subscription.php
▶ Open 📄 View Source
🐘 SubscriptionContentDetails.php
▶ Open 📄 View Source
🐘 SubscriptionListResponse.php
▶ Open 📄 View Source
🐘 SubscriptionSnippet.php
▶ Open 📄 View Source
🐘 SubscriptionSubscriberSnippet.php
▶ Open 📄 View Source
🐘 SuperChatEvent.php
▶ Open 📄 View Source
🐘 SuperChatEventListResponse.php
▶ Open 📄 View Source
🐘 SuperChatEventSnippet.php
▶ Open 📄 View Source
🐘 SuperStickerMetadata.php
▶ Open 📄 View Source
🐘 TestItem.php
▶ Open 📄 View Source
🐘 TestItemTestItemSnippet.php
▶ Open 📄 View Source
🐘 ThirdPartyLink.php
▶ Open 📄 View Source
🐘 ThirdPartyLinkListResponse.php
▶ Open 📄 View Source
🐘 ThirdPartyLinkSnippet.php
▶ Open 📄 View Source
🐘 ThirdPartyLinkStatus.php
▶ Open 📄 View Source
🐘 Thumbnail.php
▶ Open 📄 View Source
🐘 ThumbnailDetails.php
▶ Open 📄 View Source
🐘 ThumbnailSetResponse.php
▶ Open 📄 View Source
🐘 TokenPagination.php
▶ Open 📄 View Source
🐘 Video.php
▶ Open 📄 View Source
🐘 VideoAbuseReport.php
▶ Open 📄 View Source
🐘 VideoAbuseReportReason.php
▶ Open 📄 View Source
🐘 VideoAbuseReportReasonListResponse.php
▶ Open 📄 View Source
🐘 VideoAbuseReportReasonSnippet.php
▶ Open 📄 View Source
🐘 VideoAbuseReportSecondaryReason.php
▶ Open 📄 View Source
🐘 VideoAgeGating.php
▶ Open 📄 View Source
🐘 VideoCategory.php
▶ Open 📄 View Source
🐘 VideoCategoryListResponse.php
▶ Open 📄 View Source
🐘 VideoCategorySnippet.php
▶ Open 📄 View Source
🐘 VideoContentDetails.php
▶ Open 📄 View Source
🐘 VideoContentDetailsRegionRestriction.php
▶ Open 📄 View Source
🐘 VideoFileDetails.php
▶ Open 📄 View Source
🐘 VideoFileDetailsAudioStream.php
▶ Open 📄 View Source
🐘 VideoFileDetailsVideoStream.php
▶ Open 📄 View Source
🐘 VideoGetRatingResponse.php
▶ Open 📄 View Source
🐘 VideoListResponse.php
▶ Open 📄 View Source
🐘 VideoLiveStreamingDetails.php
▶ Open 📄 View Source
🐘 VideoLocalization.php
▶ Open 📄 View Source
🐘 VideoMonetizationDetails.php
▶ Open 📄 View Source
🐘 VideoPaidProductPlacementDetails.php
▶ Open 📄 View Source
🐘 VideoPlayer.php
▶ Open 📄 View Source
🐘 VideoProcessingDetails.php
▶ Open 📄 View Source
🐘 VideoProcessingDetailsProcessingProgress.php
▶ Open 📄 View Source
🐘 VideoProjectDetails.php
▶ Open 📄 View Source
🐘 VideoRating.php
▶ Open 📄 View Source
🐘 VideoRecordingDetails.php
▶ Open 📄 View Source
🐘 VideoSnippet.php
▶ Open 📄 View Source
🐘 VideoStat.php
▶ Open 📄 View Source
🐘 VideoStatistics.php
▶ Open 📄 View Source
🐘 VideoStatsContentDetails.php
▶ Open 📄 View Source
🐘 VideoStatsSnippet.php
▶ Open 📄 View Source
🐘 VideoStatsStatistics.php
▶ Open 📄 View Source
🐘 VideoStatus.php
▶ Open 📄 View Source
🐘 VideoSuggestions.php
▶ Open 📄 View Source
🐘 VideoSuggestionsTagSuggestion.php
▶ Open 📄 View Source
🐘 VideoTopicDetails.php
▶ Open 📄 View Source
🐘 VideoTrainability.php
▶ Open 📄 View Source
🐘 WatchSettings.php
▶ Open 📄 View Source

📄 Source: CommentSnippet.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\YouTube;

class CommentSnippet extends \Google\Model
{
  /**
   * The comment is available for public display.
   */
  public const MODERATION_STATUS_published = 'published';
  /**
   * The comment is awaiting review by a moderator.
   */
  public const MODERATION_STATUS_heldForReview = 'heldForReview';
  public const MODERATION_STATUS_likelySpam = 'likelySpam';
  /**
   * The comment is unfit for display.
   */
  public const MODERATION_STATUS_rejected = 'rejected';
  public const VIEWER_RATING_none = 'none';
  /**
   * The entity is liked.
   */
  public const VIEWER_RATING_like = 'like';
  /**
   * The entity is disliked.
   */
  public const VIEWER_RATING_dislike = 'dislike';
  protected $authorChannelIdType = CommentSnippetAuthorChannelId::class;
  protected $authorChannelIdDataType = '';
  /**
   * Link to the author's YouTube channel, if any.
   *
   * @var string
   */
  public $authorChannelUrl;
  /**
   * The name of the user who posted the comment.
   *
   * @var string
   */
  public $authorDisplayName;
  /**
   * The URL for the avatar of the user who posted the comment.
   *
   * @var string
   */
  public $authorProfileImageUrl;
  /**
   * Whether the current viewer can rate this comment.
   *
   * @var bool
   */
  public $canRate;
  /**
   * The id of the corresponding YouTube channel. In case of a channel comment
   * this is the channel the comment refers to. In case of a video or post
   * comment it's the video/post's channel.
   *
   * @var string
   */
  public $channelId;
  /**
   * The total number of likes this comment has received.
   *
   * @var string
   */
  public $likeCount;
  /**
   * The comment's moderation status. Will not be set if the comments were
   * requested through the id filter.
   *
   * @var string
   */
  public $moderationStatus;
  /**
   * The unique id of the top-level comment, only set for replies.
   *
   * @var string
   */
  public $parentId;
  /**
   * The ID of the post the comment refers to, if any.
   *
   * @var string
   */
  public $postId;
  /**
   * The date and time when the comment was originally published.
   *
   * @var string
   */
  public $publishedAt;
  /**
   * The comment's text. The format is either plain text or HTML dependent on
   * what has been requested. Even the plain text representation may differ from
   * the text originally posted in that it may replace video links with video
   * titles etc.
   *
   * @var string
   */
  public $textDisplay;
  /**
   * The comment's original raw text as initially posted or last updated. The
   * original text will only be returned if it is accessible to the viewer,
   * which is only guaranteed if the viewer is the comment's author.
   *
   * @var string
   */
  public $textOriginal;
  /**
   * The date and time when the comment was last updated.
   *
   * @var string
   */
  public $updatedAt;
  /**
   * The ID of the video the comment refers to, if any.
   *
   * @var string
   */
  public $videoId;
  /**
   * The rating the viewer has given to this comment. For the time being this
   * will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This
   * may change in the future.
   *
   * @var string
   */
  public $viewerRating;

  /**
   * @param CommentSnippetAuthorChannelId $authorChannelId
   */
  public function setAuthorChannelId(CommentSnippetAuthorChannelId $authorChannelId)
  {
    $this->authorChannelId = $authorChannelId;
  }
  /**
   * @return CommentSnippetAuthorChannelId
   */
  public function getAuthorChannelId()
  {
    return $this->authorChannelId;
  }
  /**
   * Link to the author's YouTube channel, if any.
   *
   * @param string $authorChannelUrl
   */
  public function setAuthorChannelUrl($authorChannelUrl)
  {
    $this->authorChannelUrl = $authorChannelUrl;
  }
  /**
   * @return string
   */
  public function getAuthorChannelUrl()
  {
    return $this->authorChannelUrl;
  }
  /**
   * The name of the user who posted the comment.
   *
   * @param string $authorDisplayName
   */
  public function setAuthorDisplayName($authorDisplayName)
  {
    $this->authorDisplayName = $authorDisplayName;
  }
  /**
   * @return string
   */
  public function getAuthorDisplayName()
  {
    return $this->authorDisplayName;
  }
  /**
   * The URL for the avatar of the user who posted the comment.
   *
   * @param string $authorProfileImageUrl
   */
  public function setAuthorProfileImageUrl($authorProfileImageUrl)
  {
    $this->authorProfileImageUrl = $authorProfileImageUrl;
  }
  /**
   * @return string
   */
  public function getAuthorProfileImageUrl()
  {
    return $this->authorProfileImageUrl;
  }
  /**
   * Whether the current viewer can rate this comment.
   *
   * @param bool $canRate
   */
  public function setCanRate($canRate)
  {
    $this->canRate = $canRate;
  }
  /**
   * @return bool
   */
  public function getCanRate()
  {
    return $this->canRate;
  }
  /**
   * The id of the corresponding YouTube channel. In case of a channel comment
   * this is the channel the comment refers to. In case of a video or post
   * comment it's the video/post's channel.
   *
   * @param string $channelId
   */
  public function setChannelId($channelId)
  {
    $this->channelId = $channelId;
  }
  /**
   * @return string
   */
  public function getChannelId()
  {
    return $this->channelId;
  }
  /**
   * The total number of likes this comment has received.
   *
   * @param string $likeCount
   */
  public function setLikeCount($likeCount)
  {
    $this->likeCount = $likeCount;
  }
  /**
   * @return string
   */
  public function getLikeCount()
  {
    return $this->likeCount;
  }
  /**
   * The comment's moderation status. Will not be set if the comments were
   * requested through the id filter.
   *
   * Accepted values: published, heldForReview, likelySpam, rejected
   *
   * @param self::MODERATION_STATUS_* $moderationStatus
   */
  public function setModerationStatus($moderationStatus)
  {
    $this->moderationStatus = $moderationStatus;
  }
  /**
   * @return self::MODERATION_STATUS_*
   */
  public function getModerationStatus()
  {
    return $this->moderationStatus;
  }
  /**
   * The unique id of the top-level comment, only set for replies.
   *
   * @param string $parentId
   */
  public function setParentId($parentId)
  {
    $this->parentId = $parentId;
  }
  /**
   * @return string
   */
  public function getParentId()
  {
    return $this->parentId;
  }
  /**
   * The ID of the post the comment refers to, if any.
   *
   * @param string $postId
   */
  public function setPostId($postId)
  {
    $this->postId = $postId;
  }
  /**
   * @return string
   */
  public function getPostId()
  {
    return $this->postId;
  }
  /**
   * The date and time when the comment was originally published.
   *
   * @param string $publishedAt
   */
  public function setPublishedAt($publishedAt)
  {
    $this->publishedAt = $publishedAt;
  }
  /**
   * @return string
   */
  public function getPublishedAt()
  {
    return $this->publishedAt;
  }
  /**
   * The comment's text. The format is either plain text or HTML dependent on
   * what has been requested. Even the plain text representation may differ from
   * the text originally posted in that it may replace video links with video
   * titles etc.
   *
   * @param string $textDisplay
   */
  public function setTextDisplay($textDisplay)
  {
    $this->textDisplay = $textDisplay;
  }
  /**
   * @return string
   */
  public function getTextDisplay()
  {
    return $this->textDisplay;
  }
  /**
   * The comment's original raw text as initially posted or last updated. The
   * original text will only be returned if it is accessible to the viewer,
   * which is only guaranteed if the viewer is the comment's author.
   *
   * @param string $textOriginal
   */
  public function setTextOriginal($textOriginal)
  {
    $this->textOriginal = $textOriginal;
  }
  /**
   * @return string
   */
  public function getTextOriginal()
  {
    return $this->textOriginal;
  }
  /**
   * The date and time when the comment was last updated.
   *
   * @param string $updatedAt
   */
  public function setUpdatedAt($updatedAt)
  {
    $this->updatedAt = $updatedAt;
  }
  /**
   * @return string
   */
  public function getUpdatedAt()
  {
    return $this->updatedAt;
  }
  /**
   * The ID of the video the comment refers to, if any.
   *
   * @param string $videoId
   */
  public function setVideoId($videoId)
  {
    $this->videoId = $videoId;
  }
  /**
   * @return string
   */
  public function getVideoId()
  {
    return $this->videoId;
  }
  /**
   * The rating the viewer has given to this comment. For the time being this
   * will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This
   * may change in the future.
   *
   * Accepted values: none, like, dislike
   *
   * @param self::VIEWER_RATING_* $viewerRating
   */
  public function setViewerRating($viewerRating)
  {
    $this->viewerRating = $viewerRating;
  }
  /**
   * @return self::VIEWER_RATING_*
   */
  public function getViewerRating()
  {
    return $this->viewerRating;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentSnippet::class, 'Google_Service_YouTube_CommentSnippet');
← Back