<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.VideoEndCard</code>
 */
class VideoEndCard extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string username = 1;</code>
     */
    protected $username = null;
    /**
     * Generated from protobuf field <code>optional string caption = 2;</code>
     */
    protected $caption = null;
    /**
     * Generated from protobuf field <code>optional string thumbnailImageUrl = 3;</code>
     */
    protected $thumbnailImageUrl = null;
    /**
     * Generated from protobuf field <code>optional string profilePictureUrl = 4;</code>
     */
    protected $profilePictureUrl = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $username
     *     @type string $caption
     *     @type string $thumbnailImageUrl
     *     @type string $profilePictureUrl
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string username = 1;</code>
     * @return string
     */
    public function getUsername()
    {
        return isset($this->username) ? $this->username : '';
    }

    public function hasUsername()
    {
        return isset($this->username);
    }

    public function clearUsername()
    {
        unset($this->username);
    }

    /**
     * Generated from protobuf field <code>optional string username = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setUsername($var)
    {
        GPBUtil::checkString($var, True);
        $this->username = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string caption = 2;</code>
     * @return string
     */
    public function getCaption()
    {
        return isset($this->caption) ? $this->caption : '';
    }

    public function hasCaption()
    {
        return isset($this->caption);
    }

    public function clearCaption()
    {
        unset($this->caption);
    }

    /**
     * Generated from protobuf field <code>optional string caption = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCaption($var)
    {
        GPBUtil::checkString($var, True);
        $this->caption = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string thumbnailImageUrl = 3;</code>
     * @return string
     */
    public function getThumbnailImageUrl()
    {
        return isset($this->thumbnailImageUrl) ? $this->thumbnailImageUrl : '';
    }

    public function hasThumbnailImageUrl()
    {
        return isset($this->thumbnailImageUrl);
    }

    public function clearThumbnailImageUrl()
    {
        unset($this->thumbnailImageUrl);
    }

    /**
     * Generated from protobuf field <code>optional string thumbnailImageUrl = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setThumbnailImageUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->thumbnailImageUrl = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string profilePictureUrl = 4;</code>
     * @return string
     */
    public function getProfilePictureUrl()
    {
        return isset($this->profilePictureUrl) ? $this->profilePictureUrl : '';
    }

    public function hasProfilePictureUrl()
    {
        return isset($this->profilePictureUrl);
    }

    public function clearProfilePictureUrl()
    {
        unset($this->profilePictureUrl);
    }

    /**
     * Generated from protobuf field <code>optional string profilePictureUrl = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setProfilePictureUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->profilePictureUrl = $var;

        return $this;
    }

}

