<?php
 
 
 

namespace PhpWA\Protocol\Proto\ContextInfo\DataSharingContext;

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




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


    protected $key = null;
    


    protected $stringData = null;
    


    protected $intData = null;
    


    protected $floatData = null;
    


    protected $contents = null;

    












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

    



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

    public function hasKey()
    {
        return isset($this->key);
    }

    public function clearKey()
    {
        unset($this->key);
    }

    




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

        return $this;
    }

    



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

    public function hasStringData()
    {
        return isset($this->stringData);
    }

    public function clearStringData()
    {
        unset($this->stringData);
    }

    




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

        return $this;
    }

    



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

    public function hasIntData()
    {
        return isset($this->intData);
    }

    public function clearIntData()
    {
        unset($this->intData);
    }

    




    public function setIntData($var)
    {
        GPBUtil::checkInt64($var);
        $this->intData = $var;

        return $this;
    }

    



    public function getFloatData()
    {
        return isset($this->floatData) ? $this->floatData : 0.0;
    }

    public function hasFloatData()
    {
        return isset($this->floatData);
    }

    public function clearFloatData()
    {
        unset($this->floatData);
    }

    




    public function setFloatData($var)
    {
        GPBUtil::checkFloat($var);
        $this->floatData = $var;

        return $this;
    }

    



    public function getContents()
    {
        return $this->contents;
    }

    public function hasContents()
    {
        return isset($this->contents);
    }

    public function clearContents()
    {
        unset($this->contents);
    }

    




    public function setContents($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo\DataSharingContext\Parameters::class);
        $this->contents = $var;

        return $this;
    }

}

