<?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;
    /**
     * Optional. List of integrated services for which the floor setting is
     * applicable.
     *
     * Generated from protobuf field <code>repeated .google.cloud.modelarmor.v1beta.FloorSetting.IntegratedService integrated_services = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $integrated_services;
    /**
     * Optional. AI Platform floor setting.
     *
     * Generated from protobuf field <code>optional .google.cloud.modelarmor.v1beta.AiPlatformFloorSetting ai_platform_floor_setting = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $ai_platform_floor_setting = null;
    /**
     * Optional. Metadata for FloorSetting
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.FloorSetting.FloorSettingMetadata floor_setting_metadata = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $floor_setting_metadata = 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.
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $integrated_services
     *           Optional. List of integrated services for which the floor setting is
     *           applicable.
     *     @type \Google\Cloud\ModelArmor\V1beta\AiPlatformFloorSetting $ai_platform_floor_setting
     *           Optional. AI Platform floor setting.
     *     @type \Google\Cloud\ModelArmor\V1beta\FloorSetting\FloorSettingMetadata $floor_setting_metadata
     *           Optional. Metadata for FloorSetting
     * }
     */
    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;
    }

    /**
     * Optional. List of integrated services for which the floor setting is
     * applicable.
     *
     * Generated from protobuf field <code>repeated .google.cloud.modelarmor.v1beta.FloorSetting.IntegratedService integrated_services = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIntegratedServices()
    {
        return $this->integrated_services;
    }

    /**
     * Optional. List of integrated services for which the floor setting is
     * applicable.
     *
     * Generated from protobuf field <code>repeated .google.cloud.modelarmor.v1beta.FloorSetting.IntegratedService integrated_services = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIntegratedServices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\ModelArmor\V1beta\FloorSetting\IntegratedService::class);
        $this->integrated_services = $arr;

        return $this;
    }

    /**
     * Optional. AI Platform floor setting.
     *
     * Generated from protobuf field <code>optional .google.cloud.modelarmor.v1beta.AiPlatformFloorSetting ai_platform_floor_setting = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\ModelArmor\V1beta\AiPlatformFloorSetting|null
     */
    public function getAiPlatformFloorSetting()
    {
        return $this->ai_platform_floor_setting;
    }

    public function hasAiPlatformFloorSetting()
    {
        return isset($this->ai_platform_floor_setting);
    }

    public function clearAiPlatformFloorSetting()
    {
        unset($this->ai_platform_floor_setting);
    }

    /**
     * Optional. AI Platform floor setting.
     *
     * Generated from protobuf field <code>optional .google.cloud.modelarmor.v1beta.AiPlatformFloorSetting ai_platform_floor_setting = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\ModelArmor\V1beta\AiPlatformFloorSetting $var
     * @return $this
     */
    public function setAiPlatformFloorSetting($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ModelArmor\V1beta\AiPlatformFloorSetting::class);
        $this->ai_platform_floor_setting = $var;

        return $this;
    }

    /**
     * Optional. Metadata for FloorSetting
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.FloorSetting.FloorSettingMetadata floor_setting_metadata = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\ModelArmor\V1beta\FloorSetting\FloorSettingMetadata|null
     */
    public function getFloorSettingMetadata()
    {
        return $this->floor_setting_metadata;
    }

    public function hasFloorSettingMetadata()
    {
        return isset($this->floor_setting_metadata);
    }

    public function clearFloorSettingMetadata()
    {
        unset($this->floor_setting_metadata);
    }

    /**
     * Optional. Metadata for FloorSetting
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.FloorSetting.FloorSettingMetadata floor_setting_metadata = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\ModelArmor\V1beta\FloorSetting\FloorSettingMetadata $var
     * @return $this
     */
    public function setFloorSettingMetadata($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ModelArmor\V1beta\FloorSetting\FloorSettingMetadata::class);
        $this->floor_setting_metadata = $var;

        return $this;
    }

}

