<?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.PhotoChange</code>
 */
class PhotoChange extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes oldPhoto = 1;</code>
     */
    protected $oldPhoto = null;
    /**
     * Generated from protobuf field <code>optional bytes newPhoto = 2;</code>
     */
    protected $newPhoto = null;
    /**
     * Generated from protobuf field <code>optional uint32 newPhotoId = 3;</code>
     */
    protected $newPhotoId = null;

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

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

}

