<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.Call</code>
 */
class Call extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes callKey = 1;</code>
     */
    protected $callKey = null;
    /**
     * Generated from protobuf field <code>optional string conversionSource = 2;</code>
     */
    protected $conversionSource = null;
    /**
     * Generated from protobuf field <code>optional bytes conversionData = 3;</code>
     */
    protected $conversionData = null;
    /**
     * Generated from protobuf field <code>optional uint32 conversionDelaySeconds = 4;</code>
     */
    protected $conversionDelaySeconds = null;
    /**
     * Generated from protobuf field <code>optional string ctwaSignals = 5;</code>
     */
    protected $ctwaSignals = null;
    /**
     * Generated from protobuf field <code>optional bytes ctwaPayload = 6;</code>
     */
    protected $ctwaPayload = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 7;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional string nativeFlowCallButtonPayload = 8;</code>
     */
    protected $nativeFlowCallButtonPayload = null;
    /**
     * Generated from protobuf field <code>optional string deeplinkPayload = 9;</code>
     */
    protected $deeplinkPayload = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $callKey
     *     @type string $conversionSource
     *     @type string $conversionData
     *     @type int $conversionDelaySeconds
     *     @type string $ctwaSignals
     *     @type string $ctwaPayload
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type string $nativeFlowCallButtonPayload
     *     @type string $deeplinkPayload
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional bytes callKey = 1;</code>
     * @return string
     */
    public function getCallKey()
    {
        return isset($this->callKey) ? $this->callKey : '';
    }

    public function hasCallKey()
    {
        return isset($this->callKey);
    }

    public function clearCallKey()
    {
        unset($this->callKey);
    }

    /**
     * Generated from protobuf field <code>optional bytes callKey = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCallKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->callKey = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string conversionSource = 2;</code>
     * @return string
     */
    public function getConversionSource()
    {
        return isset($this->conversionSource) ? $this->conversionSource : '';
    }

    public function hasConversionSource()
    {
        return isset($this->conversionSource);
    }

    public function clearConversionSource()
    {
        unset($this->conversionSource);
    }

    /**
     * Generated from protobuf field <code>optional string conversionSource = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setConversionSource($var)
    {
        GPBUtil::checkString($var, True);
        $this->conversionSource = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes conversionData = 3;</code>
     * @return string
     */
    public function getConversionData()
    {
        return isset($this->conversionData) ? $this->conversionData : '';
    }

    public function hasConversionData()
    {
        return isset($this->conversionData);
    }

    public function clearConversionData()
    {
        unset($this->conversionData);
    }

    /**
     * Generated from protobuf field <code>optional bytes conversionData = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setConversionData($var)
    {
        GPBUtil::checkString($var, False);
        $this->conversionData = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 conversionDelaySeconds = 4;</code>
     * @return int
     */
    public function getConversionDelaySeconds()
    {
        return isset($this->conversionDelaySeconds) ? $this->conversionDelaySeconds : 0;
    }

    public function hasConversionDelaySeconds()
    {
        return isset($this->conversionDelaySeconds);
    }

    public function clearConversionDelaySeconds()
    {
        unset($this->conversionDelaySeconds);
    }

    /**
     * Generated from protobuf field <code>optional uint32 conversionDelaySeconds = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setConversionDelaySeconds($var)
    {
        GPBUtil::checkUint32($var);
        $this->conversionDelaySeconds = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string ctwaSignals = 5;</code>
     * @return string
     */
    public function getCtwaSignals()
    {
        return isset($this->ctwaSignals) ? $this->ctwaSignals : '';
    }

    public function hasCtwaSignals()
    {
        return isset($this->ctwaSignals);
    }

    public function clearCtwaSignals()
    {
        unset($this->ctwaSignals);
    }

    /**
     * Generated from protobuf field <code>optional string ctwaSignals = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setCtwaSignals($var)
    {
        GPBUtil::checkString($var, True);
        $this->ctwaSignals = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes ctwaPayload = 6;</code>
     * @return string
     */
    public function getCtwaPayload()
    {
        return isset($this->ctwaPayload) ? $this->ctwaPayload : '';
    }

    public function hasCtwaPayload()
    {
        return isset($this->ctwaPayload);
    }

    public function clearCtwaPayload()
    {
        unset($this->ctwaPayload);
    }

    /**
     * Generated from protobuf field <code>optional bytes ctwaPayload = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setCtwaPayload($var)
    {
        GPBUtil::checkString($var, False);
        $this->ctwaPayload = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 7;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 7;</code>
     * @param \PhpWA\Protocol\Proto\ContextInfo $var
     * @return $this
     */
    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string nativeFlowCallButtonPayload = 8;</code>
     * @return string
     */
    public function getNativeFlowCallButtonPayload()
    {
        return isset($this->nativeFlowCallButtonPayload) ? $this->nativeFlowCallButtonPayload : '';
    }

    public function hasNativeFlowCallButtonPayload()
    {
        return isset($this->nativeFlowCallButtonPayload);
    }

    public function clearNativeFlowCallButtonPayload()
    {
        unset($this->nativeFlowCallButtonPayload);
    }

    /**
     * Generated from protobuf field <code>optional string nativeFlowCallButtonPayload = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setNativeFlowCallButtonPayload($var)
    {
        GPBUtil::checkString($var, True);
        $this->nativeFlowCallButtonPayload = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string deeplinkPayload = 9;</code>
     * @return string
     */
    public function getDeeplinkPayload()
    {
        return isset($this->deeplinkPayload) ? $this->deeplinkPayload : '';
    }

    public function hasDeeplinkPayload()
    {
        return isset($this->deeplinkPayload);
    }

    public function clearDeeplinkPayload()
    {
        unset($this->deeplinkPayload);
    }

    /**
     * Generated from protobuf field <code>optional string deeplinkPayload = 9;</code>
     * @param string $var
     * @return $this
     */
    public function setDeeplinkPayload($var)
    {
        GPBUtil::checkString($var, True);
        $this->deeplinkPayload = $var;

        return $this;
    }

}

