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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * Metadata for a YouTube video attribute.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.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.v23.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 = '';

    /**
     * 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 array<int>|\Google\Protobuf\Internal\RepeatedField $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".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\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.v23.enums.YouTubeVideoPropertyEnum.YouTubeVideoProperty video_properties = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    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.v23.enums.YouTubeVideoPropertyEnum.YouTubeVideoProperty video_properties = 6;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setVideoProperties($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\GoogleAds\V23\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;
    }

}

