<?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.AIThreadInfo</code>
 */
class AIThreadInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.AIThreadInfo.AIThreadServerInfo serverInfo = 1;</code>
     */
    protected $serverInfo = null;
    /**
     * Generated from protobuf field <code>optional .proto.AIThreadInfo.AIThreadClientInfo clientInfo = 2;</code>
     */
    protected $clientInfo = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\AIThreadInfo\AIThreadServerInfo $serverInfo
     *     @type \PhpWA\Protocol\Proto\AIThreadInfo\AIThreadClientInfo $clientInfo
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasServerInfo()
    {
        return isset($this->serverInfo);
    }

    public function clearServerInfo()
    {
        unset($this->serverInfo);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIThreadInfo.AIThreadClientInfo clientInfo = 2;</code>
     * @return \PhpWA\Protocol\Proto\AIThreadInfo\AIThreadClientInfo|null
     */
    public function getClientInfo()
    {
        return $this->clientInfo;
    }

    public function hasClientInfo()
    {
        return isset($this->clientInfo);
    }

    public function clearClientInfo()
    {
        unset($this->clientInfo);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIThreadInfo.AIThreadClientInfo clientInfo = 2;</code>
     * @param \PhpWA\Protocol\Proto\AIThreadInfo\AIThreadClientInfo $var
     * @return $this
     */
    public function setClientInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIThreadInfo\AIThreadClientInfo::class);
        $this->clientInfo = $var;

        return $this;
    }

}

