<?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.WallpaperSettings</code>
 */
class WallpaperSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string filename = 1;</code>
     */
    protected $filename = null;
    /**
     * Generated from protobuf field <code>optional uint32 opacity = 2;</code>
     */
    protected $opacity = null;

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

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

    public function hasFilename()
    {
        return isset($this->filename);
    }

    public function clearFilename()
    {
        unset($this->filename);
    }

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

        return $this;
    }

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

    public function hasOpacity()
    {
        return isset($this->opacity);
    }

    public function clearOpacity()
    {
        unset($this->opacity);
    }

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

        return $this;
    }

}

