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

namespace Google\Cloud\Container\V1;

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

/**
 * PrivilegedAdmissionConfig stores the list of authorized allowlist
 * paths for the cluster.
 *
 * Generated from protobuf message <code>google.container.v1.PrivilegedAdmissionConfig</code>
 */
class PrivilegedAdmissionConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The customer allowlist Cloud Storage paths for the cluster. These paths are
     * used with the `--autopilot-privileged-admission` flag to authorize
     * privileged workloads in Autopilot clusters.
     * Paths can be GKE-owned, in the format
     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
     * the format `gs://<bucket_name>/<allowlist_path>`.
     * Wildcards (`*`) are supported to authorize all allowlists under specific
     * paths or directories. Example: `gs://my-bucket/&#42;` will authorize all
     * allowlists under the `my-bucket` bucket.
     *
     * Generated from protobuf field <code>repeated string allowlist_paths = 1;</code>
     */
    private $allowlist_paths;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowlist_paths
     *           The customer allowlist Cloud Storage paths for the cluster. These paths are
     *           used with the `--autopilot-privileged-admission` flag to authorize
     *           privileged workloads in Autopilot clusters.
     *           Paths can be GKE-owned, in the format
     *           `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
     *           the format `gs://<bucket_name>/<allowlist_path>`.
     *           Wildcards (`*`) are supported to authorize all allowlists under specific
     *           paths or directories. Example: `gs://my-bucket/&#42;` will authorize all
     *           allowlists under the `my-bucket` bucket.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * The customer allowlist Cloud Storage paths for the cluster. These paths are
     * used with the `--autopilot-privileged-admission` flag to authorize
     * privileged workloads in Autopilot clusters.
     * Paths can be GKE-owned, in the format
     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
     * the format `gs://<bucket_name>/<allowlist_path>`.
     * Wildcards (`*`) are supported to authorize all allowlists under specific
     * paths or directories. Example: `gs://my-bucket/&#42;` will authorize all
     * allowlists under the `my-bucket` bucket.
     *
     * Generated from protobuf field <code>repeated string allowlist_paths = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAllowlistPaths()
    {
        return $this->allowlist_paths;
    }

    /**
     * The customer allowlist Cloud Storage paths for the cluster. These paths are
     * used with the `--autopilot-privileged-admission` flag to authorize
     * privileged workloads in Autopilot clusters.
     * Paths can be GKE-owned, in the format
     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
     * the format `gs://<bucket_name>/<allowlist_path>`.
     * Wildcards (`*`) are supported to authorize all allowlists under specific
     * paths or directories. Example: `gs://my-bucket/&#42;` will authorize all
     * allowlists under the `my-bucket` bucket.
     *
     * Generated from protobuf field <code>repeated string allowlist_paths = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAllowlistPaths($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->allowlist_paths = $arr;

        return $this;
    }

}

