<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/asset/v1/asset_service.proto

namespace Google\Cloud\Asset\V1\AnalyzerOrgPolicy\Rule;

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

/**
 * The string values for the list constraints.
 *
 * Generated from protobuf message <code>google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues</code>
 */
class StringValues extends \Google\Protobuf\Internal\Message
{
    /**
     * List of values allowed at this resource.
     *
     * Generated from protobuf field <code>repeated string allowed_values = 1;</code>
     */
    private $allowed_values;
    /**
     * List of values denied at this resource.
     *
     * Generated from protobuf field <code>repeated string denied_values = 2;</code>
     */
    private $denied_values;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_values
     *           List of values allowed at this resource.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $denied_values
     *           List of values denied at this resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce();
        parent::__construct($data);
    }

    /**
     * List of values allowed at this resource.
     *
     * Generated from protobuf field <code>repeated string allowed_values = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAllowedValues()
    {
        return $this->allowed_values;
    }

    /**
     * List of values allowed at this resource.
     *
     * Generated from protobuf field <code>repeated string allowed_values = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAllowedValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->allowed_values = $arr;

        return $this;
    }

    /**
     * List of values denied at this resource.
     *
     * Generated from protobuf field <code>repeated string denied_values = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeniedValues()
    {
        return $this->denied_values;
    }

    /**
     * List of values denied at this resource.
     *
     * Generated from protobuf field <code>repeated string denied_values = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDeniedValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->denied_values = $arr;

        return $this;
    }

}


