<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $threadType = null;
    


    protected $threadKey = null;

    









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

    



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

    public function hasThreadType()
    {
        return isset($this->threadType);
    }

    public function clearThreadType()
    {
        unset($this->threadType);
    }

    




    public function setThreadType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\ThreadID\ThreadType::class);
        $this->threadType = $var;

        return $this;
    }

    



    public function getThreadKey()
    {
        return $this->threadKey;
    }

    public function hasThreadKey()
    {
        return isset($this->threadKey);
    }

    public function clearThreadKey()
    {
        unset($this->threadKey);
    }

    




    public function setThreadKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->threadKey = $var;

        return $this;
    }

}

