<?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.BotPromotionMessageMetadata</code>
 */
class BotPromotionMessageMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.BotPromotionMessageMetadata.BotPromotionType promotionType = 1;</code>
     */
    protected $promotionType = null;
    /**
     * Generated from protobuf field <code>optional string buttonTitle = 2;</code>
     */
    protected $buttonTitle = null;

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

    /**
     * Generated from protobuf field <code>optional .proto.BotPromotionMessageMetadata.BotPromotionType promotionType = 1;</code>
     * @return int
     */
    public function getPromotionType()
    {
        return isset($this->promotionType) ? $this->promotionType : 0;
    }

    public function hasPromotionType()
    {
        return isset($this->promotionType);
    }

    public function clearPromotionType()
    {
        unset($this->promotionType);
    }

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

        return $this;
    }

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

    public function hasButtonTitle()
    {
        return isset($this->buttonTitle);
    }

    public function clearButtonTitle()
    {
        unset($this->buttonTitle);
    }

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

        return $this;
    }

}

