<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $operation = null;
    


    protected $record = null;

    









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

    



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

    public function hasOperation()
    {
        return isset($this->operation);
    }

    public function clearOperation()
    {
        unset($this->operation);
    }

    




    public function setOperation($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\SyncdMutation\SyncdOperation::class);
        $this->operation = $var;

        return $this;
    }

    



    public function getRecord()
    {
        return $this->record;
    }

    public function hasRecord()
    {
        return isset($this->record);
    }

    public function clearRecord()
    {
        unset($this->record);
    }

    




    public function setRecord($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\SyncdRecord::class);
        $this->record = $var;

        return $this;
    }

}

