<?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.AutoDownloadSettings</code>
 */
class AutoDownloadSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool downloadImages = 1;</code>
     */
    protected $downloadImages = null;
    /**
     * Generated from protobuf field <code>optional bool downloadAudio = 2;</code>
     */
    protected $downloadAudio = null;
    /**
     * Generated from protobuf field <code>optional bool downloadVideo = 3;</code>
     */
    protected $downloadVideo = null;
    /**
     * Generated from protobuf field <code>optional bool downloadDocuments = 4;</code>
     */
    protected $downloadDocuments = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $downloadImages
     *     @type bool $downloadAudio
     *     @type bool $downloadVideo
     *     @type bool $downloadDocuments
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional bool downloadImages = 1;</code>
     * @return bool
     */
    public function getDownloadImages()
    {
        return isset($this->downloadImages) ? $this->downloadImages : false;
    }

    public function hasDownloadImages()
    {
        return isset($this->downloadImages);
    }

    public function clearDownloadImages()
    {
        unset($this->downloadImages);
    }

    /**
     * Generated from protobuf field <code>optional bool downloadImages = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setDownloadImages($var)
    {
        GPBUtil::checkBool($var);
        $this->downloadImages = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool downloadAudio = 2;</code>
     * @return bool
     */
    public function getDownloadAudio()
    {
        return isset($this->downloadAudio) ? $this->downloadAudio : false;
    }

    public function hasDownloadAudio()
    {
        return isset($this->downloadAudio);
    }

    public function clearDownloadAudio()
    {
        unset($this->downloadAudio);
    }

    /**
     * Generated from protobuf field <code>optional bool downloadAudio = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setDownloadAudio($var)
    {
        GPBUtil::checkBool($var);
        $this->downloadAudio = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool downloadVideo = 3;</code>
     * @return bool
     */
    public function getDownloadVideo()
    {
        return isset($this->downloadVideo) ? $this->downloadVideo : false;
    }

    public function hasDownloadVideo()
    {
        return isset($this->downloadVideo);
    }

    public function clearDownloadVideo()
    {
        unset($this->downloadVideo);
    }

    /**
     * Generated from protobuf field <code>optional bool downloadVideo = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setDownloadVideo($var)
    {
        GPBUtil::checkBool($var);
        $this->downloadVideo = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool downloadDocuments = 4;</code>
     * @return bool
     */
    public function getDownloadDocuments()
    {
        return isset($this->downloadDocuments) ? $this->downloadDocuments : false;
    }

    public function hasDownloadDocuments()
    {
        return isset($this->downloadDocuments);
    }

    public function clearDownloadDocuments()
    {
        unset($this->downloadDocuments);
    }

    /**
     * Generated from protobuf field <code>optional bool downloadDocuments = 4;</code>
     * @param bool $var
     * @return $this
     */
    public function setDownloadDocuments($var)
    {
        GPBUtil::checkBool($var);
        $this->downloadDocuments = $var;

        return $this;
    }

}

