<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/common/audience_insights_attribute.proto

namespace Google\Ads\GoogleAds\V25\Common;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Metadata for a YouTube video attribute.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.common.YouTubeVideoAttributeMetadata</code>
 */
class YouTubeVideoAttributeMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The URL of the video thumbnail, prefixed by "https://img.youtube.com/".
     *
     * Generated from protobuf field <code>string thumbnail_url = 1;</code>
     */
    protected $thumbnail_url = '';
    /**
     * The URL of the video, prefixed by "https://www.youtube.com/".
     *
     * Generated from protobuf field <code>string video_url = 2;</code>
     */
    protected $video_url = '';
    /**
     * The total number of views.
     *
     * Generated from protobuf field <code>int64 views_count = 3;</code>
     */
    protected $views_count = 0;
    /**
     * The total number of likes.
     *
     * Generated from protobuf field <code>int64 likes_count = 4;</code>
     */
    protected $likes_count = 0;
    /**
     * The total number of comments.
     *
     * Generated from protobuf field <code>int64 comments_count = 5;</code>
     */
    protected $comments_count = 0;
    /**
     * The properties of this video (such as shorts, live stream).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.enums.YouTubeVideoPropertyEnum.YouTubeVideoProperty video_properties = 6;</code>
     */
    private $video_properties;
    /**
     * The date that the video was created. Formatted as "yyyy-mm-dd".
     *
     * Generated from protobuf field <code>string publish_date = 7;</code>
     */
    protected $publish_date = '';
    /**
     * The ID of the YouTube channel that published the video.
     *
     * Generated from protobuf field <code>string channel_id = 8;</code>
     */
    protected $channel_id = '';
    /**
     * The name of the YouTube channel that published the video.
     *
     * Generated from protobuf field <code>string channel_name = 9;</code>
     */
    protected $channel_name = '';
    /**
     * The URL of the YouTube channel that published the video.
     *
     * Generated from protobuf field <code>string channel_url = 10;</code>
     */
    protected $channel_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $thumbnail_url
     *           The URL of the video thumbnail, prefixed by "https://img.youtube.com/".
     *     @type string $video_url
     *           The URL of the video, prefixed by "https://www.youtube.com/".
     *     @type int|string $views_count
     *           The total number of views.
     *     @type int|string $likes_count
     *           The total number of likes.
     *     @type int|string $comments_count
     *           The total number of comments.
     *     @type int[] $video_properties
     *           The properties of this video (such as shorts, live stream).
     *     @type string $publish_date
     *           The date that the video was created. Formatted as "yyyy-mm-dd".
     *     @type string $channel_id
     *           The ID of the YouTube channel that published the video.
     *     @type string $channel_name
     *           The name of the YouTube channel that published the video.
     *     @type string $channel_url
     *           The URL of the YouTube channel that published the video.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Common\AudienceInsightsAttribute::initOnce();
        parent::__construct($data);
    }

    /**
     * The URL of the video thumbnail, prefixed by "https://img.youtube.com/".
     *
     * Generated from protobuf field <code>string thumbnail_url = 1;</code>
     * @return string
     */
    public function getThumbnailUrl()
    {
        return $this->thumbnail_url;
    }

    /**
     * The URL of the video thumbnail, prefixed by "https://img.youtube.com/".
     *
     * Generated from protobuf field <code>string thumbnail_url = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setThumbnailUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->thumbnail_url = $var;

        return $this;
    }

    /**
     * The URL of the video, prefixed by "https://www.youtube.com/".
     *
     * Generated from protobuf field <code>string video_url = 2;</code>
     * @return string
     */
    public function getVideoUrl()
    {
        return $this->video_url;
    }

    /**
     * The URL of the video, prefixed by "https://www.youtube.com/".
     *
     * Generated from protobuf field <code>string video_url = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setVideoUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->video_url = $var;

        return $this;
    }

    /**
     * The total number of views.
     *
     * Generated from protobuf field <code>int64 views_count = 3;</code>
     * @return int|string
     */
    public function getViewsCount()
    {
        return $this->views_count;
    }

    /**
     * The total number of views.
     *
     * Generated from protobuf field <code>int64 views_count = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setViewsCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->views_count = $var;

        return $this;
    }

    /**
     * The total number of likes.
     *
     * Generated from protobuf field <code>int64 likes_count = 4;</code>
     * @return int|string
     */
    public function getLikesCount()
    {
        return $this->likes_count;
    }

    /**
     * The total number of likes.
     *
     * Generated from protobuf field <code>int64 likes_count = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLikesCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->likes_count = $var;

        return $this;
    }

    /**
     * The total number of comments.
     *
     * Generated from protobuf field <code>int64 comments_count = 5;</code>
     * @return int|string
     */
    public function getCommentsCount()
    {
        return $this->comments_count;
    }

    /**
     * The total number of comments.
     *
     * Generated from protobuf field <code>int64 comments_count = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCommentsCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->comments_count = $var;

        return $this;
    }

    /**
     * The properties of this video (such as shorts, live stream).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.enums.YouTubeVideoPropertyEnum.YouTubeVideoProperty video_properties = 6;</code>
     * @return RepeatedField<int>
     */
    public function getVideoProperties()
    {
        return $this->video_properties;
    }

    /**
     * The properties of this video (such as shorts, live stream).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.enums.YouTubeVideoPropertyEnum.YouTubeVideoProperty video_properties = 6;</code>
     * @param int[] $var
     * @return $this
     */
    public function setVideoProperties($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\GoogleAds\V25\Enums\YouTubeVideoPropertyEnum\YouTubeVideoProperty::class);
        $this->video_properties = $arr;

        return $this;
    }

    /**
     * The date that the video was created. Formatted as "yyyy-mm-dd".
     *
     * Generated from protobuf field <code>string publish_date = 7;</code>
     * @return string
     */
    public function getPublishDate()
    {
        return $this->publish_date;
    }

    /**
     * The date that the video was created. Formatted as "yyyy-mm-dd".
     *
     * Generated from protobuf field <code>string publish_date = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setPublishDate($var)
    {
        GPBUtil::checkString($var, True);
        $this->publish_date = $var;

        return $this;
    }

    /**
     * The ID of the YouTube channel that published the video.
     *
     * Generated from protobuf field <code>string channel_id = 8;</code>
     * @return string
     */
    public function getChannelId()
    {
        return $this->channel_id;
    }

    /**
     * The ID of the YouTube channel that published the video.
     *
     * Generated from protobuf field <code>string channel_id = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setChannelId($var)
    {
        GPBUtil::checkString($var, True);
        $this->channel_id = $var;

        return $this;
    }

    /**
     * The name of the YouTube channel that published the video.
     *
     * Generated from protobuf field <code>string channel_name = 9;</code>
     * @return string
     */
    public function getChannelName()
    {
        return $this->channel_name;
    }

    /**
     * The name of the YouTube channel that published the video.
     *
     * Generated from protobuf field <code>string channel_name = 9;</code>
     * @param string $var
     * @return $this
     */
    public function setChannelName($var)
    {
        GPBUtil::checkString($var, True);
        $this->channel_name = $var;

        return $this;
    }

    /**
     * The URL of the YouTube channel that published the video.
     *
     * Generated from protobuf field <code>string channel_url = 10;</code>
     * @return string
     */
    public function getChannelUrl()
    {
        return $this->channel_url;
    }

    /**
     * The URL of the YouTube channel that published the video.
     *
     * Generated from protobuf field <code>string channel_url = 10;</code>
     * @param string $var
     * @return $this
     */
    public function setChannelUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->channel_url = $var;

        return $this;
    }

}

