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

namespace Google\Cloud\GkeHub\RbacRoleBindingActuation\V1;

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

/**
 * **RBAC RoleBinding Actuation**: The Hub-wide input for the
 * RBACRoleBindingActuation feature.
 *
 * Generated from protobuf message <code>google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec</code>
 */
class FeatureSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
     * ClusterRole in this list is in use, it cannot be removed from the list.
     *
     * Generated from protobuf field <code>repeated string allowed_custom_roles = 2;</code>
     */
    private $allowed_custom_roles;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $allowed_custom_roles
     *           The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
     *           part of this list, it cannot be used in a Scope RBACRoleBinding. If a
     *           ClusterRole in this list is in use, it cannot be removed from the list.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkehub\V1\Rbacrolebindingactuation\Rbacrolebindingactuation::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
     * ClusterRole in this list is in use, it cannot be removed from the list.
     *
     * Generated from protobuf field <code>repeated string allowed_custom_roles = 2;</code>
     * @return RepeatedField<string>
     */
    public function getAllowedCustomRoles()
    {
        return $this->allowed_custom_roles;
    }

    /**
     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
     * ClusterRole in this list is in use, it cannot be removed from the list.
     *
     * Generated from protobuf field <code>repeated string allowed_custom_roles = 2;</code>
     * @param string[] $var
     * @return $this
     */
    public function setAllowedCustomRoles($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->allowed_custom_roles = $arr;

        return $this;
    }

}

