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

namespace PhpWA\Protocol\Proto\AIHomeState;

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

/**
 * Generated from protobuf message <code>proto.AIHomeState.AIHomeOption</code>
 */
class AIHomeOption extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.AIHomeState.AIHomeOption.AIHomeActionType type = 1;</code>
     */
    protected $type = null;
    /**
     * Generated from protobuf field <code>optional string title = 2;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional string promptText = 3;</code>
     */
    protected $promptText = null;
    /**
     * Generated from protobuf field <code>optional string sessionId = 4;</code>
     */
    protected $sessionId = null;
    /**
     * Generated from protobuf field <code>optional string imageWdsIdentifier = 5;</code>
     */
    protected $imageWdsIdentifier = null;
    /**
     * Generated from protobuf field <code>optional string imageTintColor = 6;</code>
     */
    protected $imageTintColor = null;
    /**
     * Generated from protobuf field <code>optional string imageBackgroundColor = 7;</code>
     */
    protected $imageBackgroundColor = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $type
     *     @type string $title
     *     @type string $promptText
     *     @type string $sessionId
     *     @type string $imageWdsIdentifier
     *     @type string $imageTintColor
     *     @type string $imageBackgroundColor
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIHomeState.AIHomeOption.AIHomeActionType type = 1;</code>
     * @return int
     */
    public function getType()
    {
        return isset($this->type) ? $this->type : 0;
    }

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIHomeState.AIHomeOption.AIHomeActionType type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\AIHomeState\AIHomeOption\AIHomeActionType::class);
        $this->type = $var;

        return $this;
    }

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

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

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

        return $this;
    }

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

    public function hasPromptText()
    {
        return isset($this->promptText);
    }

    public function clearPromptText()
    {
        unset($this->promptText);
    }

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

        return $this;
    }

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

    public function hasSessionId()
    {
        return isset($this->sessionId);
    }

    public function clearSessionId()
    {
        unset($this->sessionId);
    }

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

        return $this;
    }

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

    public function hasImageWdsIdentifier()
    {
        return isset($this->imageWdsIdentifier);
    }

    public function clearImageWdsIdentifier()
    {
        unset($this->imageWdsIdentifier);
    }

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

        return $this;
    }

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

    public function hasImageTintColor()
    {
        return isset($this->imageTintColor);
    }

    public function clearImageTintColor()
    {
        unset($this->imageTintColor);
    }

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

        return $this;
    }

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

    public function hasImageBackgroundColor()
    {
        return isset($this->imageBackgroundColor);
    }

    public function clearImageBackgroundColor()
    {
        unset($this->imageBackgroundColor);
    }

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

        return $this;
    }

}

