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

namespace PhpWA\Protocol\Proto\SyncActionValue;

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

/**
 * Generated from protobuf message <code>proto.SyncActionValue.QuickReplyAction</code>
 */
class QuickReplyAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string shortcut = 1;</code>
     */
    protected $shortcut = null;
    /**
     * Generated from protobuf field <code>optional string message = 2;</code>
     */
    protected $message = null;
    /**
     * Generated from protobuf field <code>repeated string keywords = 3;</code>
     */
    private $keywords;
    /**
     * Generated from protobuf field <code>optional int32 count = 4;</code>
     */
    protected $count = null;
    /**
     * Generated from protobuf field <code>optional bool deleted = 5;</code>
     */
    protected $deleted = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $shortcut
     *     @type string $message
     *     @type string[] $keywords
     *     @type int $count
     *     @type bool $deleted
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasShortcut()
    {
        return isset($this->shortcut);
    }

    public function clearShortcut()
    {
        unset($this->shortcut);
    }

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

        return $this;
    }

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

    public function hasMessage()
    {
        return isset($this->message);
    }

    public function clearMessage()
    {
        unset($this->message);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string keywords = 3;</code>
     * @return RepeatedField<string>
     */
    public function getKeywords()
    {
        return $this->keywords;
    }

    /**
     * Generated from protobuf field <code>repeated string keywords = 3;</code>
     * @param string[] $var
     * @return $this
     */
    public function setKeywords($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->keywords = $arr;

        return $this;
    }

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

    public function hasCount()
    {
        return isset($this->count);
    }

    public function clearCount()
    {
        unset($this->count);
    }

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

        return $this;
    }

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

    public function hasDeleted()
    {
        return isset($this->deleted);
    }

    public function clearDeleted()
    {
        unset($this->deleted);
    }

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

        return $this;
    }

}

