<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/intent.proto

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * The button object that appears at the bottom of a card.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button</code>
 */
class Intent_Message_BasicCard_Button extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The title of the button.
     *
     * Generated from protobuf field <code>string title = 1;</code>
     */
    private $title = '';
    /**
     * Required. Action to take when a user taps on the button.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;</code>
     */
    private $open_uri_action = null;

    public function __construct() {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce();
        parent::__construct();
    }

    /**
     * Required. The title of the button.
     *
     * Generated from protobuf field <code>string title = 1;</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Required. The title of the button.
     *
     * Generated from protobuf field <code>string title = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Required. Action to take when a user taps on the button.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;</code>
     * @return \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard_Button_OpenUriAction
     */
    public function getOpenUriAction()
    {
        return $this->open_uri_action;
    }

    /**
     * Required. Action to take when a user taps on the button.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;</code>
     * @param \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard_Button_OpenUriAction $var
     * @return $this
     */
    public function setOpenUriAction($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Intent_Message_BasicCard_Button_OpenUriAction::class);
        $this->open_uri_action = $var;

        return $this;
    }

}

