<?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
{
    /**
     * Optional. 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 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $resource_group = '';
    /**
     * Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
     * (PascalCase) and singular form. E.g. "CustomResourceDefinition",
     * "StorageClass", etc.
     *
     * Generated from protobuf field <code>string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $resource_kind = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_group
     *           Optional. 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
     *           Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
     *           (PascalCase) and singular form. E.g. "CustomResourceDefinition",
     *           "StorageClass", etc.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. 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 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getResourceGroup()
    {
        return $this->resource_group;
    }

    /**
     * Optional. 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 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setResourceGroup($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_group = $var;

        return $this;
    }

    /**
     * Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
     * (PascalCase) and singular form. E.g. "CustomResourceDefinition",
     * "StorageClass", etc.
     *
     * Generated from protobuf field <code>string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getResourceKind()
    {
        return $this->resource_kind;
    }

    /**
     * Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
     * (PascalCase) and singular form. E.g. "CustomResourceDefinition",
     * "StorageClass", etc.
     *
     * Generated from protobuf field <code>string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setResourceKind($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_kind = $var;

        return $this;
    }

}


