<?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.BotAvatarMetadata</code>
 */
class BotAvatarMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint32 sentiment = 1;</code>
     */
    protected $sentiment = null;
    /**
     * Generated from protobuf field <code>optional string behaviorGraph = 2;</code>
     */
    protected $behaviorGraph = null;
    /**
     * Generated from protobuf field <code>optional uint32 action = 3;</code>
     */
    protected $action = null;
    /**
     * Generated from protobuf field <code>optional uint32 intensity = 4;</code>
     */
    protected $intensity = null;
    /**
     * Generated from protobuf field <code>optional uint32 wordCount = 5;</code>
     */
    protected $wordCount = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $sentiment
     *     @type string $behaviorGraph
     *     @type int $action
     *     @type int $intensity
     *     @type int $wordCount
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasSentiment()
    {
        return isset($this->sentiment);
    }

    public function clearSentiment()
    {
        unset($this->sentiment);
    }

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

        return $this;
    }

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

    public function hasBehaviorGraph()
    {
        return isset($this->behaviorGraph);
    }

    public function clearBehaviorGraph()
    {
        unset($this->behaviorGraph);
    }

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

        return $this;
    }

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

    public function hasAction()
    {
        return isset($this->action);
    }

    public function clearAction()
    {
        unset($this->action);
    }

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

        return $this;
    }

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

    public function hasIntensity()
    {
        return isset($this->intensity);
    }

    public function clearIntensity()
    {
        unset($this->intensity);
    }

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

        return $this;
    }

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

    public function hasWordCount()
    {
        return isset($this->wordCount);
    }

    public function clearWordCount()
    {
        unset($this->wordCount);
    }

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

        return $this;
    }

}

