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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.ProcessedVideo</code>
 */
class ProcessedVideo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string directPath = 1;</code>
     */
    protected $directPath = null;
    /**
     * Generated from protobuf field <code>optional bytes fileSha256 = 2;</code>
     */
    protected $fileSha256 = null;
    /**
     * Generated from protobuf field <code>optional uint32 height = 3;</code>
     */
    protected $height = null;
    /**
     * Generated from protobuf field <code>optional uint32 width = 4;</code>
     */
    protected $width = null;
    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 5;</code>
     */
    protected $fileLength = null;
    /**
     * Generated from protobuf field <code>optional uint32 bitrate = 6;</code>
     */
    protected $bitrate = null;
    /**
     * Generated from protobuf field <code>optional .proto.ProcessedVideo.VideoQuality quality = 7;</code>
     */
    protected $quality = null;
    /**
     * Generated from protobuf field <code>repeated string capabilities = 8;</code>
     */
    private $capabilities;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $directPath
     *     @type string $fileSha256
     *     @type int $height
     *     @type int $width
     *     @type int|string $fileLength
     *     @type int $bitrate
     *     @type int $quality
     *     @type string[] $capabilities
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasDirectPath()
    {
        return isset($this->directPath);
    }

    public function clearDirectPath()
    {
        unset($this->directPath);
    }

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

        return $this;
    }

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

    public function hasFileSha256()
    {
        return isset($this->fileSha256);
    }

    public function clearFileSha256()
    {
        unset($this->fileSha256);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 height = 3;</code>
     * @return int
     */
    public function getHeight()
    {
        return isset($this->height) ? $this->height : 0;
    }

    public function hasHeight()
    {
        return isset($this->height);
    }

    public function clearHeight()
    {
        unset($this->height);
    }

    /**
     * Generated from protobuf field <code>optional uint32 height = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->height = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 width = 4;</code>
     * @return int
     */
    public function getWidth()
    {
        return isset($this->width) ? $this->width : 0;
    }

    public function hasWidth()
    {
        return isset($this->width);
    }

    public function clearWidth()
    {
        unset($this->width);
    }

    /**
     * Generated from protobuf field <code>optional uint32 width = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->width = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 5;</code>
     * @return int|string
     */
    public function getFileLength()
    {
        return isset($this->fileLength) ? $this->fileLength : 0;
    }

    public function hasFileLength()
    {
        return isset($this->fileLength);
    }

    public function clearFileLength()
    {
        unset($this->fileLength);
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFileLength($var)
    {
        GPBUtil::checkUint64($var);
        $this->fileLength = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 bitrate = 6;</code>
     * @return int
     */
    public function getBitrate()
    {
        return isset($this->bitrate) ? $this->bitrate : 0;
    }

    public function hasBitrate()
    {
        return isset($this->bitrate);
    }

    public function clearBitrate()
    {
        unset($this->bitrate);
    }

    /**
     * Generated from protobuf field <code>optional uint32 bitrate = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setBitrate($var)
    {
        GPBUtil::checkUint32($var);
        $this->bitrate = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ProcessedVideo.VideoQuality quality = 7;</code>
     * @return int
     */
    public function getQuality()
    {
        return isset($this->quality) ? $this->quality : 0;
    }

    public function hasQuality()
    {
        return isset($this->quality);
    }

    public function clearQuality()
    {
        unset($this->quality);
    }

    /**
     * Generated from protobuf field <code>optional .proto.ProcessedVideo.VideoQuality quality = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setQuality($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\ProcessedVideo\VideoQuality::class);
        $this->quality = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string capabilities = 8;</code>
     * @return RepeatedField<string>
     */
    public function getCapabilities()
    {
        return $this->capabilities;
    }

    /**
     * Generated from protobuf field <code>repeated string capabilities = 8;</code>
     * @param string[] $var
     * @return $this
     */
    public function setCapabilities($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->capabilities = $arr;

        return $this;
    }

}

