<?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;

/**
 * This is a direct map to the Kubernetes GroupKind type
 * [GroupKind](https://godoc.org/k8s.io/apimachinery/pkg/runtime/schema#GroupKind)
 * and is used for identifying specific "types" of resources to restore.
 *
 * Generated from protobuf message <code>google.cloud.gkebackup.v1.RestoreConfig.GroupKind</code>
 */
class GroupKind extends \Google\Protobuf\Internal\Message
{
    /**
     * API group string of a Kubernetes resource, e.g.
     * "apiextensions.k8s.io", "storage.k8s.io", etc.
     * Note: use empty string for core API group
     *
     * Generated from protobuf field <code>string resource_group = 1;</code>
     */
    private $resource_group = '';
    /**
     * Kind of a Kubernetes resource, e.g.
     * "CustomResourceDefinition", "StorageClass", etc.
     *
     * Generated from protobuf field <code>string resource_kind = 2;</code>
     */
    private $resource_kind = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_group
     *           API group string of a Kubernetes resource, e.g.
     *           "apiextensions.k8s.io", "storage.k8s.io", etc.
     *           Note: use empty string for core API group
     *     @type string $resource_kind
     *           Kind of a Kubernetes resource, e.g.
     *           "CustomResourceDefinition", "StorageClass", etc.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
        parent::__construct($data);
    }

    /**
     * API group string of a Kubernetes resource, e.g.
     * "apiextensions.k8s.io", "storage.k8s.io", etc.
     * Note: use empty string for core API group
     *
     * Generated from protobuf field <code>string resource_group = 1;</code>
     * @return string
     */
    public function getResourceGroup()
    {
        return $this->resource_group;
    }

    /**
     * API group string of a Kubernetes resource, e.g.
     * "apiextensions.k8s.io", "storage.k8s.io", etc.
     * Note: use empty string for core API group
     *
     * Generated from protobuf field <code>string resource_group = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setResourceGroup($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_group = $var;

        return $this;
    }

    /**
     * Kind of a Kubernetes resource, e.g.
     * "CustomResourceDefinition", "StorageClass", etc.
     *
     * Generated from protobuf field <code>string resource_kind = 2;</code>
     * @return string
     */
    public function getResourceKind()
    {
        return $this->resource_kind;
    }

    /**
     * Kind of a Kubernetes resource, e.g.
     * "CustomResourceDefinition", "StorageClass", etc.
     *
     * Generated from protobuf field <code>string resource_kind = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setResourceKind($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_kind = $var;

        return $this;
    }

}


