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

namespace Google\Cloud\Dialogflow\Cx\V3\SafetySettings;

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

/**
 * Settings for prompt security checks.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.SafetySettings.PromptSecuritySettings</code>
 */
class PromptSecuritySettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Enable prompt security checks.
     *
     * Generated from protobuf field <code>bool enable_prompt_security = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $enable_prompt_security = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enable_prompt_security
     *           Optional. Enable prompt security checks.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\SafetySettings::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Enable prompt security checks.
     *
     * Generated from protobuf field <code>bool enable_prompt_security = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getEnablePromptSecurity()
    {
        return $this->enable_prompt_security;
    }

    /**
     * Optional. Enable prompt security checks.
     *
     * Generated from protobuf field <code>bool enable_prompt_security = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setEnablePromptSecurity($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_prompt_security = $var;

        return $this;
    }

}

