<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\ButtonsMessage;

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




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


    protected $buttonId = null;
    


    protected $buttonText = null;
    


    protected $type = null;
    


    protected $nativeFlowInfo = null;

    











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

    



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

    public function hasButtonId()
    {
        return isset($this->buttonId);
    }

    public function clearButtonId()
    {
        unset($this->buttonId);
    }

    




    public function setButtonId($var)
    {
        GPBUtil::checkString($var, True);
        $this->buttonId = $var;

        return $this;
    }

    



    public function getButtonText()
    {
        return $this->buttonText;
    }

    public function hasButtonText()
    {
        return isset($this->buttonText);
    }

    public function clearButtonText()
    {
        unset($this->buttonText);
    }

    




    public function setButtonText($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\ButtonsMessage\Button\ButtonText::class);
        $this->buttonText = $var;

        return $this;
    }

    



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

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

    




    public function setType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ButtonsMessage\Button\Type::class);
        $this->type = $var;

        return $this;
    }

    



    public function getNativeFlowInfo()
    {
        return $this->nativeFlowInfo;
    }

    public function hasNativeFlowInfo()
    {
        return isset($this->nativeFlowInfo);
    }

    public function clearNativeFlowInfo()
    {
        unset($this->nativeFlowInfo);
    }

    




    public function setNativeFlowInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\ButtonsMessage\Button\NativeFlowInfo::class);
        $this->nativeFlowInfo = $var;

        return $this;
    }

}

