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

namespace Google\Cloud\GkeBackup\V1\RestoreConfig;

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

/**
 * Identifies the cluster-scoped resources to restore from the Backup.
 *
 * Generated from protobuf message <code>google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope</code>
 */
class ClusterResourceRestoreScope extends \Google\Protobuf\Internal\Message
{
    /**
     * A list of "types" of cluster-scoped resources to be restored from the
     * Backup.  An empty list means that NO cluster-scoped resources will be
     * restored. Note that Namespaces and PersistentVolume restoration is
     * handled separately and is not governed by this field.
     *
     * Generated from protobuf field <code>repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;</code>
     */
    private $selected_group_kinds;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $selected_group_kinds
     *           A list of "types" of cluster-scoped resources to be restored from the
     *           Backup.  An empty list means that NO cluster-scoped resources will be
     *           restored. Note that Namespaces and PersistentVolume restoration is
     *           handled separately and is not governed by this field.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
        parent::__construct($data);
    }

    /**
     * A list of "types" of cluster-scoped resources to be restored from the
     * Backup.  An empty list means that NO cluster-scoped resources will be
     * restored. Note that Namespaces and PersistentVolume restoration is
     * handled separately and is not governed by this field.
     *
     * Generated from protobuf field <code>repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSelectedGroupKinds()
    {
        return $this->selected_group_kinds;
    }

    /**
     * A list of "types" of cluster-scoped resources to be restored from the
     * Backup.  An empty list means that NO cluster-scoped resources will be
     * restored. Note that Namespaces and PersistentVolume restoration is
     * handled separately and is not governed by this field.
     *
     * Generated from protobuf field <code>repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;</code>
     * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSelectedGroupKinds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind::class);
        $this->selected_group_kinds = $arr;

        return $this;
    }

}


