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

namespace PhpWA\Protocol\Proto\ClientPayload;

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

/**
 * Generated from protobuf message <code>proto.ClientPayload.InteropData</code>
 */
class InteropData extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint64 accountId = 1;</code>
     */
    protected $accountId = null;
    /**
     * Generated from protobuf field <code>optional bytes token = 2;</code>
     */
    protected $token = null;
    /**
     * Generated from protobuf field <code>optional bool enableReadReceipts = 3;</code>
     */
    protected $enableReadReceipts = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $accountId
     *     @type string $token
     *     @type bool $enableReadReceipts
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional uint64 accountId = 1;</code>
     * @return int|string
     */
    public function getAccountId()
    {
        return isset($this->accountId) ? $this->accountId : 0;
    }

    public function hasAccountId()
    {
        return isset($this->accountId);
    }

    public function clearAccountId()
    {
        unset($this->accountId);
    }

    /**
     * Generated from protobuf field <code>optional uint64 accountId = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setAccountId($var)
    {
        GPBUtil::checkUint64($var);
        $this->accountId = $var;

        return $this;
    }

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

    public function hasToken()
    {
        return isset($this->token);
    }

    public function clearToken()
    {
        unset($this->token);
    }

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

        return $this;
    }

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

    public function hasEnableReadReceipts()
    {
        return isset($this->enableReadReceipts);
    }

    public function clearEnableReadReceipts()
    {
        unset($this->enableReadReceipts);
    }

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

        return $this;
    }

}

