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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.MessageContextInfo</code>
 */
class MessageContextInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.DeviceListMetadata deviceListMetadata = 1;</code>
     */
    protected $deviceListMetadata = null;
    /**
     * Generated from protobuf field <code>optional int32 deviceListMetadataVersion = 2;</code>
     */
    protected $deviceListMetadataVersion = null;
    /**
     * Generated from protobuf field <code>optional bytes messageSecret = 3;</code>
     */
    protected $messageSecret = null;
    /**
     * Generated from protobuf field <code>optional bytes paddingBytes = 4;</code>
     */
    protected $paddingBytes = null;
    /**
     * Generated from protobuf field <code>optional uint32 messageAddOnDurationInSecs = 5;</code>
     */
    protected $messageAddOnDurationInSecs = null;
    /**
     * Generated from protobuf field <code>optional bytes botMessageSecret = 6;</code>
     */
    protected $botMessageSecret = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotMetadata botMetadata = 7;</code>
     */
    protected $botMetadata = null;
    /**
     * Generated from protobuf field <code>optional int32 reportingTokenVersion = 8;</code>
     */
    protected $reportingTokenVersion = null;
    /**
     * Generated from protobuf field <code>optional .proto.MessageContextInfo.MessageAddonExpiryType messageAddOnExpiryType = 9;</code>
     */
    protected $messageAddOnExpiryType = null;
    /**
     * Generated from protobuf field <code>optional .proto.MessageAssociation messageAssociation = 10;</code>
     */
    protected $messageAssociation = null;
    /**
     * Generated from protobuf field <code>optional bool capiCreatedGroup = 11;</code>
     */
    protected $capiCreatedGroup = null;
    /**
     * Generated from protobuf field <code>optional string supportPayload = 12;</code>
     */
    protected $supportPayload = null;
    /**
     * Generated from protobuf field <code>optional .proto.LimitSharing limitSharing = 13;</code>
     */
    protected $limitSharing = null;
    /**
     * Generated from protobuf field <code>optional .proto.LimitSharing limitSharingV2 = 14;</code>
     */
    protected $limitSharingV2 = null;
    /**
     * Generated from protobuf field <code>repeated .proto.ThreadID threadId = 15;</code>
     */
    private $threadId;
    /**
     * Generated from protobuf field <code>optional .proto.WebLinkRenderConfig weblinkRenderConfig = 16;</code>
     */
    protected $weblinkRenderConfig = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\DeviceListMetadata $deviceListMetadata
     *     @type int $deviceListMetadataVersion
     *     @type string $messageSecret
     *     @type string $paddingBytes
     *     @type int $messageAddOnDurationInSecs
     *     @type string $botMessageSecret
     *     @type \PhpWA\Protocol\Proto\BotMetadata $botMetadata
     *     @type int $reportingTokenVersion
     *     @type int $messageAddOnExpiryType
     *     @type \PhpWA\Protocol\Proto\MessageAssociation $messageAssociation
     *     @type bool $capiCreatedGroup
     *     @type string $supportPayload
     *     @type \PhpWA\Protocol\Proto\LimitSharing $limitSharing
     *     @type \PhpWA\Protocol\Proto\LimitSharing $limitSharingV2
     *     @type \PhpWA\Protocol\Proto\ThreadID[] $threadId
     *     @type int $weblinkRenderConfig
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.DeviceListMetadata deviceListMetadata = 1;</code>
     * @return \PhpWA\Protocol\Proto\DeviceListMetadata|null
     */
    public function getDeviceListMetadata()
    {
        return $this->deviceListMetadata;
    }

    public function hasDeviceListMetadata()
    {
        return isset($this->deviceListMetadata);
    }

    public function clearDeviceListMetadata()
    {
        unset($this->deviceListMetadata);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int32 deviceListMetadataVersion = 2;</code>
     * @return int
     */
    public function getDeviceListMetadataVersion()
    {
        return isset($this->deviceListMetadataVersion) ? $this->deviceListMetadataVersion : 0;
    }

    public function hasDeviceListMetadataVersion()
    {
        return isset($this->deviceListMetadataVersion);
    }

    public function clearDeviceListMetadataVersion()
    {
        unset($this->deviceListMetadataVersion);
    }

    /**
     * Generated from protobuf field <code>optional int32 deviceListMetadataVersion = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setDeviceListMetadataVersion($var)
    {
        GPBUtil::checkInt32($var);
        $this->deviceListMetadataVersion = $var;

        return $this;
    }

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

    public function hasMessageSecret()
    {
        return isset($this->messageSecret);
    }

    public function clearMessageSecret()
    {
        unset($this->messageSecret);
    }

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

        return $this;
    }

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

    public function hasPaddingBytes()
    {
        return isset($this->paddingBytes);
    }

    public function clearPaddingBytes()
    {
        unset($this->paddingBytes);
    }

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

        return $this;
    }

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

    public function hasMessageAddOnDurationInSecs()
    {
        return isset($this->messageAddOnDurationInSecs);
    }

    public function clearMessageAddOnDurationInSecs()
    {
        unset($this->messageAddOnDurationInSecs);
    }

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

        return $this;
    }

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

    public function hasBotMessageSecret()
    {
        return isset($this->botMessageSecret);
    }

    public function clearBotMessageSecret()
    {
        unset($this->botMessageSecret);
    }

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

        return $this;
    }

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

    public function hasBotMetadata()
    {
        return isset($this->botMetadata);
    }

    public function clearBotMetadata()
    {
        unset($this->botMetadata);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int32 reportingTokenVersion = 8;</code>
     * @return int
     */
    public function getReportingTokenVersion()
    {
        return isset($this->reportingTokenVersion) ? $this->reportingTokenVersion : 0;
    }

    public function hasReportingTokenVersion()
    {
        return isset($this->reportingTokenVersion);
    }

    public function clearReportingTokenVersion()
    {
        unset($this->reportingTokenVersion);
    }

    /**
     * Generated from protobuf field <code>optional int32 reportingTokenVersion = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setReportingTokenVersion($var)
    {
        GPBUtil::checkInt32($var);
        $this->reportingTokenVersion = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageContextInfo.MessageAddonExpiryType messageAddOnExpiryType = 9;</code>
     * @return int
     */
    public function getMessageAddOnExpiryType()
    {
        return isset($this->messageAddOnExpiryType) ? $this->messageAddOnExpiryType : 0;
    }

    public function hasMessageAddOnExpiryType()
    {
        return isset($this->messageAddOnExpiryType);
    }

    public function clearMessageAddOnExpiryType()
    {
        unset($this->messageAddOnExpiryType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageContextInfo.MessageAddonExpiryType messageAddOnExpiryType = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setMessageAddOnExpiryType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\MessageContextInfo\MessageAddonExpiryType::class);
        $this->messageAddOnExpiryType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageAssociation messageAssociation = 10;</code>
     * @return \PhpWA\Protocol\Proto\MessageAssociation|null
     */
    public function getMessageAssociation()
    {
        return $this->messageAssociation;
    }

    public function hasMessageAssociation()
    {
        return isset($this->messageAssociation);
    }

    public function clearMessageAssociation()
    {
        unset($this->messageAssociation);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool capiCreatedGroup = 11;</code>
     * @return bool
     */
    public function getCapiCreatedGroup()
    {
        return isset($this->capiCreatedGroup) ? $this->capiCreatedGroup : false;
    }

    public function hasCapiCreatedGroup()
    {
        return isset($this->capiCreatedGroup);
    }

    public function clearCapiCreatedGroup()
    {
        unset($this->capiCreatedGroup);
    }

    /**
     * Generated from protobuf field <code>optional bool capiCreatedGroup = 11;</code>
     * @param bool $var
     * @return $this
     */
    public function setCapiCreatedGroup($var)
    {
        GPBUtil::checkBool($var);
        $this->capiCreatedGroup = $var;

        return $this;
    }

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

    public function hasSupportPayload()
    {
        return isset($this->supportPayload);
    }

    public function clearSupportPayload()
    {
        unset($this->supportPayload);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.LimitSharing limitSharing = 13;</code>
     * @return \PhpWA\Protocol\Proto\LimitSharing|null
     */
    public function getLimitSharing()
    {
        return $this->limitSharing;
    }

    public function hasLimitSharing()
    {
        return isset($this->limitSharing);
    }

    public function clearLimitSharing()
    {
        unset($this->limitSharing);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.LimitSharing limitSharingV2 = 14;</code>
     * @return \PhpWA\Protocol\Proto\LimitSharing|null
     */
    public function getLimitSharingV2()
    {
        return $this->limitSharingV2;
    }

    public function hasLimitSharingV2()
    {
        return isset($this->limitSharingV2);
    }

    public function clearLimitSharingV2()
    {
        unset($this->limitSharingV2);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.ThreadID threadId = 15;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\ThreadID>
     */
    public function getThreadId()
    {
        return $this->threadId;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.ThreadID threadId = 15;</code>
     * @param \PhpWA\Protocol\Proto\ThreadID[] $var
     * @return $this
     */
    public function setThreadId($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\ThreadID::class);
        $this->threadId = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.WebLinkRenderConfig weblinkRenderConfig = 16;</code>
     * @return int
     */
    public function getWeblinkRenderConfig()
    {
        return isset($this->weblinkRenderConfig) ? $this->weblinkRenderConfig : 0;
    }

    public function hasWeblinkRenderConfig()
    {
        return isset($this->weblinkRenderConfig);
    }

    public function clearWeblinkRenderConfig()
    {
        unset($this->weblinkRenderConfig);
    }

    /**
     * Generated from protobuf field <code>optional .proto.WebLinkRenderConfig weblinkRenderConfig = 16;</code>
     * @param int $var
     * @return $this
     */
    public function setWeblinkRenderConfig($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\WebLinkRenderConfig::class);
        $this->weblinkRenderConfig = $var;

        return $this;
    }

}

