<?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.PaymentBackground</code>
 */
class PaymentBackground extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string id = 1;</code>
     */
    protected $id = null;
    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 2;</code>
     */
    protected $fileLength = null;
    /**
     * Generated from protobuf field <code>optional uint32 width = 3;</code>
     */
    protected $width = null;
    /**
     * Generated from protobuf field <code>optional uint32 height = 4;</code>
     */
    protected $height = null;
    /**
     * Generated from protobuf field <code>optional string mimetype = 5;</code>
     */
    protected $mimetype = null;
    /**
     * Generated from protobuf field <code>optional fixed32 placeholderArgb = 6;</code>
     */
    protected $placeholderArgb = null;
    /**
     * Generated from protobuf field <code>optional fixed32 textArgb = 7;</code>
     */
    protected $textArgb = null;
    /**
     * Generated from protobuf field <code>optional fixed32 subtextArgb = 8;</code>
     */
    protected $subtextArgb = null;
    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground.MediaData mediaData = 9;</code>
     */
    protected $mediaData = null;
    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground.Type type = 10;</code>
     */
    protected $type = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type int|string $fileLength
     *     @type int $width
     *     @type int $height
     *     @type string $mimetype
     *     @type int $placeholderArgb
     *     @type int $textArgb
     *     @type int $subtextArgb
     *     @type \PhpWA\Protocol\Proto\PaymentBackground\MediaData $mediaData
     *     @type int $type
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasId()
    {
        return isset($this->id);
    }

    public function clearId()
    {
        unset($this->id);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 2;</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 = 2;</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 width = 3;</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 = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->width = $var;

        return $this;
    }

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

        return $this;
    }

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

    public function hasMimetype()
    {
        return isset($this->mimetype);
    }

    public function clearMimetype()
    {
        unset($this->mimetype);
    }

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

        return $this;
    }

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

    public function hasPlaceholderArgb()
    {
        return isset($this->placeholderArgb);
    }

    public function clearPlaceholderArgb()
    {
        unset($this->placeholderArgb);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional fixed32 textArgb = 7;</code>
     * @return int
     */
    public function getTextArgb()
    {
        return isset($this->textArgb) ? $this->textArgb : 0;
    }

    public function hasTextArgb()
    {
        return isset($this->textArgb);
    }

    public function clearTextArgb()
    {
        unset($this->textArgb);
    }

    /**
     * Generated from protobuf field <code>optional fixed32 textArgb = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setTextArgb($var)
    {
        GPBUtil::checkUint32($var);
        $this->textArgb = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional fixed32 subtextArgb = 8;</code>
     * @return int
     */
    public function getSubtextArgb()
    {
        return isset($this->subtextArgb) ? $this->subtextArgb : 0;
    }

    public function hasSubtextArgb()
    {
        return isset($this->subtextArgb);
    }

    public function clearSubtextArgb()
    {
        unset($this->subtextArgb);
    }

    /**
     * Generated from protobuf field <code>optional fixed32 subtextArgb = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setSubtextArgb($var)
    {
        GPBUtil::checkUint32($var);
        $this->subtextArgb = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground.MediaData mediaData = 9;</code>
     * @return \PhpWA\Protocol\Proto\PaymentBackground\MediaData|null
     */
    public function getMediaData()
    {
        return $this->mediaData;
    }

    public function hasMediaData()
    {
        return isset($this->mediaData);
    }

    public function clearMediaData()
    {
        unset($this->mediaData);
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground.MediaData mediaData = 9;</code>
     * @param \PhpWA\Protocol\Proto\PaymentBackground\MediaData $var
     * @return $this
     */
    public function setMediaData($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\PaymentBackground\MediaData::class);
        $this->mediaData = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground.Type type = 10;</code>
     * @return int
     */
    public function getType()
    {
        return isset($this->type) ? $this->type : 0;
    }

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground.Type type = 10;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\PaymentBackground\Type::class);
        $this->type = $var;

        return $this;
    }

}

