<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/modelarmor/v1beta/service.proto

namespace Google\Cloud\ModelArmor\V1beta;

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

/**
 * Message describing FloorSetting resource
 *
 * Generated from protobuf message <code>google.cloud.modelarmor.v1beta.FloorSetting</code>
 */
class FloorSetting extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The resource name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * Output only. [Output only] Create timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $create_time = null;
    /**
     * Output only. [Output only] Update timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $update_time = null;
    /**
     * Required. ModelArmor filter configuration.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.FilterConfig filter_config = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $filter_config = null;
    /**
     * Optional. Floor Settings enforcement status.
     *
     * Generated from protobuf field <code>optional bool enable_floor_setting_enforcement = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $enable_floor_setting_enforcement = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The resource name.
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Output only. [Output only] Create timestamp
     *     @type \Google\Protobuf\Timestamp $update_time
     *           Output only. [Output only] Update timestamp
     *     @type \Google\Cloud\ModelArmor\V1beta\FilterConfig $filter_config
     *           Required. ModelArmor filter configuration.
     *     @type bool $enable_floor_setting_enforcement
     *           Optional. Floor Settings enforcement status.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Modelarmor\V1Beta\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The resource name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The resource name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. [Output only] Create timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Output only. [Output only] Create timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * Output only. [Output only] Update timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getUpdateTime()
    {
        return $this->update_time;
    }

    public function hasUpdateTime()
    {
        return isset($this->update_time);
    }

    public function clearUpdateTime()
    {
        unset($this->update_time);
    }

    /**
     * Output only. [Output only] Update timestamp
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->update_time = $var;

        return $this;
    }

    /**
     * Required. ModelArmor filter configuration.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.FilterConfig filter_config = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\ModelArmor\V1beta\FilterConfig|null
     */
    public function getFilterConfig()
    {
        return $this->filter_config;
    }

    public function hasFilterConfig()
    {
        return isset($this->filter_config);
    }

    public function clearFilterConfig()
    {
        unset($this->filter_config);
    }

    /**
     * Required. ModelArmor filter configuration.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.FilterConfig filter_config = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\ModelArmor\V1beta\FilterConfig $var
     * @return $this
     */
    public function setFilterConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ModelArmor\V1beta\FilterConfig::class);
        $this->filter_config = $var;

        return $this;
    }

    /**
     * Optional. Floor Settings enforcement status.
     *
     * Generated from protobuf field <code>optional bool enable_floor_setting_enforcement = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getEnableFloorSettingEnforcement()
    {
        return isset($this->enable_floor_setting_enforcement) ? $this->enable_floor_setting_enforcement : false;
    }

    public function hasEnableFloorSettingEnforcement()
    {
        return isset($this->enable_floor_setting_enforcement);
    }

    public function clearEnableFloorSettingEnforcement()
    {
        unset($this->enable_floor_setting_enforcement);
    }

    /**
     * Optional. Floor Settings enforcement status.
     *
     * Generated from protobuf field <code>optional bool enable_floor_setting_enforcement = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableFloorSettingEnforcement($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_floor_setting_enforcement = $var;

        return $this;
    }

}

