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

namespace Google\Cloud\GkeHub\V1beta1;

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

/**
 * The request to validate the existing state of the membership CR in the
 * cluster.
 *
 * Generated from protobuf message <code>google.cloud.gkehub.v1beta1.ValidateExclusivityRequest</code>
 */
class ValidateExclusivityRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The parent (project and location) where the Memberships will be created.
     * Specified in the format `projects/&#42;&#47;locations/&#42;`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $parent = '';
    /**
     * Optional. The YAML of the membership CR in the cluster. Empty if the membership
     * CR does not exist.
     *
     * Generated from protobuf field <code>string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $cr_manifest = '';
    /**
     * Required. The intended membership name under the `parent`. This method only does
     * validation in anticipation of a CreateMembership call with the same name.
     *
     * Generated from protobuf field <code>string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $intended_membership = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The parent (project and location) where the Memberships will be created.
     *           Specified in the format `projects/&#42;&#47;locations/&#42;`.
     *     @type string $cr_manifest
     *           Optional. The YAML of the membership CR in the cluster. Empty if the membership
     *           CR does not exist.
     *     @type string $intended_membership
     *           Required. The intended membership name under the `parent`. This method only does
     *           validation in anticipation of a CreateMembership call with the same name.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkehub\V1Beta1\Membership::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The parent (project and location) where the Memberships will be created.
     * Specified in the format `projects/&#42;&#47;locations/&#42;`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. The parent (project and location) where the Memberships will be created.
     * Specified in the format `projects/&#42;&#47;locations/&#42;`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Optional. The YAML of the membership CR in the cluster. Empty if the membership
     * CR does not exist.
     *
     * Generated from protobuf field <code>string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getCrManifest()
    {
        return $this->cr_manifest;
    }

    /**
     * Optional. The YAML of the membership CR in the cluster. Empty if the membership
     * CR does not exist.
     *
     * Generated from protobuf field <code>string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setCrManifest($var)
    {
        GPBUtil::checkString($var, True);
        $this->cr_manifest = $var;

        return $this;
    }

    /**
     * Required. The intended membership name under the `parent`. This method only does
     * validation in anticipation of a CreateMembership call with the same name.
     *
     * Generated from protobuf field <code>string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getIntendedMembership()
    {
        return $this->intended_membership;
    }

    /**
     * Required. The intended membership name under the `parent`. This method only does
     * validation in anticipation of a CreateMembership call with the same name.
     *
     * Generated from protobuf field <code>string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setIntendedMembership($var)
    {
        GPBUtil::checkString($var, True);
        $this->intended_membership = $var;

        return $this;
    }

}

