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

namespace PhpWA\Protocol\Proto\Message\InteractiveMessage\NativeFlowMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.InteractiveMessage.NativeFlowMessage.NativeFlowButton</code>
 */
class NativeFlowButton extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string name = 1;</code>
     */
    protected $name = null;
    /**
     * Generated from protobuf field <code>optional string buttonParamsJson = 2;</code>
     */
    protected $buttonParamsJson = null;

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

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

    public function hasName()
    {
        return isset($this->name);
    }

    public function clearName()
    {
        unset($this->name);
    }

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

        return $this;
    }

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

    public function hasButtonParamsJson()
    {
        return isset($this->buttonParamsJson);
    }

    public function clearButtonParamsJson()
    {
        unset($this->buttonParamsJson);
    }

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

        return $this;
    }

}

