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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Spec of CES app that the generator can choose from.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.CesAppSpec</code>
 */
class CesAppSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
     * ID>`.
     *
     * Generated from protobuf field <code>string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    protected $ces_app = '';
    /**
     * Optional. Indicates whether the app requires human confirmation.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $confirmation_requirement = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ces_app
     *           Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
     *           ID>`.
     *     @type int $confirmation_requirement
     *           Optional. Indicates whether the app requires human confirmation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\CesApp::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
     * ID>`.
     *
     * Generated from protobuf field <code>string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getCesApp()
    {
        return $this->ces_app;
    }

    /**
     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
     * ID>`.
     *
     * Generated from protobuf field <code>string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setCesApp($var)
    {
        GPBUtil::checkString($var, True);
        $this->ces_app = $var;

        return $this;
    }

    /**
     * Optional. Indicates whether the app requires human confirmation.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getConfirmationRequirement()
    {
        return $this->confirmation_requirement;
    }

    /**
     * Optional. Indicates whether the app requires human confirmation.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setConfirmationRequirement($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Tool\ConfirmationRequirement::class);
        $this->confirmation_requirement = $var;

        return $this;
    }

}

