<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $senderKeyHash = null;
    


    protected $senderTimestamp = null;
    


    private $senderKeyIndexes;
    


    protected $senderAccountType = null;
    


    protected $receiverAccountType = null;
    


    protected $recipientKeyHash = null;
    


    protected $recipientTimestamp = null;
    


    private $recipientKeyIndexes;

    















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

    



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

    public function hasSenderKeyHash()
    {
        return isset($this->senderKeyHash);
    }

    public function clearSenderKeyHash()
    {
        unset($this->senderKeyHash);
    }

    




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

        return $this;
    }

    



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

    public function hasSenderTimestamp()
    {
        return isset($this->senderTimestamp);
    }

    public function clearSenderTimestamp()
    {
        unset($this->senderTimestamp);
    }

    




    public function setSenderTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->senderTimestamp = $var;

        return $this;
    }

    



    public function getSenderKeyIndexes()
    {
        return $this->senderKeyIndexes;
    }

    




    public function setSenderKeyIndexes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->senderKeyIndexes = $arr;

        return $this;
    }

    



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

    public function hasSenderAccountType()
    {
        return isset($this->senderAccountType);
    }

    public function clearSenderAccountType()
    {
        unset($this->senderAccountType);
    }

    




    public function setSenderAccountType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\ADVEncryptionType::class);
        $this->senderAccountType = $var;

        return $this;
    }

    



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

    public function hasReceiverAccountType()
    {
        return isset($this->receiverAccountType);
    }

    public function clearReceiverAccountType()
    {
        unset($this->receiverAccountType);
    }

    




    public function setReceiverAccountType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\ADVEncryptionType::class);
        $this->receiverAccountType = $var;

        return $this;
    }

    



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

    public function hasRecipientKeyHash()
    {
        return isset($this->recipientKeyHash);
    }

    public function clearRecipientKeyHash()
    {
        unset($this->recipientKeyHash);
    }

    




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

        return $this;
    }

    



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

    public function hasRecipientTimestamp()
    {
        return isset($this->recipientTimestamp);
    }

    public function clearRecipientTimestamp()
    {
        unset($this->recipientTimestamp);
    }

    




    public function setRecipientTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->recipientTimestamp = $var;

        return $this;
    }

    



    public function getRecipientKeyIndexes()
    {
        return $this->recipientKeyIndexes;
    }

    




    public function setRecipientKeyIndexes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->recipientKeyIndexes = $arr;

        return $this;
    }

}

