<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $version = null;
    


    protected $useCase = null;
    


    protected $signature = null;
    


    private $certificateChain;

    











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

    



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

    public function hasVersion()
    {
        return isset($this->version);
    }

    public function clearVersion()
    {
        unset($this->version);
    }

    




    public function setVersion($var)
    {
        GPBUtil::checkInt32($var);
        $this->version = $var;

        return $this;
    }

    



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

    public function hasUseCase()
    {
        return isset($this->useCase);
    }

    public function clearUseCase()
    {
        unset($this->useCase);
    }

    




    public function setUseCase($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotSignatureVerificationUseCaseProof\BotSignatureUseCase::class);
        $this->useCase = $var;

        return $this;
    }

    



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

    public function hasSignature()
    {
        return isset($this->signature);
    }

    public function clearSignature()
    {
        unset($this->signature);
    }

    




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

        return $this;
    }

    



    public function getCertificateChain()
    {
        return $this->certificateChain;
    }

    




    public function setCertificateChain($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES);
        $this->certificateChain = $arr;

        return $this;
    }

}

