<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




class PhotoChange extends \Google\Protobuf\Internal\Message
{
    


    protected $oldPhoto = null;
    


    protected $newPhoto = null;
    


    protected $newPhotoId = null;

    










    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getOldPhoto()
    {
        return isset($this->oldPhoto) ? $this->oldPhoto : '';
    }

    public function hasOldPhoto()
    {
        return isset($this->oldPhoto);
    }

    public function clearOldPhoto()
    {
        unset($this->oldPhoto);
    }

    




    public function setOldPhoto($var)
    {
        GPBUtil::checkString($var, False);
        $this->oldPhoto = $var;

        return $this;
    }

    



    public function getNewPhoto()
    {
        return isset($this->newPhoto) ? $this->newPhoto : '';
    }

    public function hasNewPhoto()
    {
        return isset($this->newPhoto);
    }

    public function clearNewPhoto()
    {
        unset($this->newPhoto);
    }

    




    public function setNewPhoto($var)
    {
        GPBUtil::checkString($var, False);
        $this->newPhoto = $var;

        return $this;
    }

    



    public function getNewPhotoId()
    {
        return isset($this->newPhotoId) ? $this->newPhotoId : 0;
    }

    public function hasNewPhotoId()
    {
        return isset($this->newPhotoId);
    }

    public function clearNewPhotoId()
    {
        unset($this->newPhotoId);
    }

    




    public function setNewPhotoId($var)
    {
        GPBUtil::checkUint32($var);
        $this->newPhotoId = $var;

        return $this;
    }

}

