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

namespace Google\Cloud\GkeMultiCloud\V1;

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

/**
 * Workload Identity settings.
 *
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.WorkloadIdentityConfig</code>
 */
class WorkloadIdentityConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The OIDC issuer URL for this cluster.
     *
     * Generated from protobuf field <code>string issuer_uri = 1;</code>
     */
    private $issuer_uri = '';
    /**
     * The Workload Identity Pool associated to the cluster.
     *
     * Generated from protobuf field <code>string workload_pool = 2;</code>
     */
    private $workload_pool = '';
    /**
     * The ID of the OIDC Identity Provider (IdP) associated to the Workload
     * Identity Pool.
     *
     * Generated from protobuf field <code>string identity_provider = 3;</code>
     */
    private $identity_provider = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $issuer_uri
     *           The OIDC issuer URL for this cluster.
     *     @type string $workload_pool
     *           The Workload Identity Pool associated to the cluster.
     *     @type string $identity_provider
     *           The ID of the OIDC Identity Provider (IdP) associated to the Workload
     *           Identity Pool.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce();
        parent::__construct($data);
    }

    /**
     * The OIDC issuer URL for this cluster.
     *
     * Generated from protobuf field <code>string issuer_uri = 1;</code>
     * @return string
     */
    public function getIssuerUri()
    {
        return $this->issuer_uri;
    }

    /**
     * The OIDC issuer URL for this cluster.
     *
     * Generated from protobuf field <code>string issuer_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setIssuerUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->issuer_uri = $var;

        return $this;
    }

    /**
     * The Workload Identity Pool associated to the cluster.
     *
     * Generated from protobuf field <code>string workload_pool = 2;</code>
     * @return string
     */
    public function getWorkloadPool()
    {
        return $this->workload_pool;
    }

    /**
     * The Workload Identity Pool associated to the cluster.
     *
     * Generated from protobuf field <code>string workload_pool = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setWorkloadPool($var)
    {
        GPBUtil::checkString($var, True);
        $this->workload_pool = $var;

        return $this;
    }

    /**
     * The ID of the OIDC Identity Provider (IdP) associated to the Workload
     * Identity Pool.
     *
     * Generated from protobuf field <code>string identity_provider = 3;</code>
     * @return string
     */
    public function getIdentityProvider()
    {
        return $this->identity_provider;
    }

    /**
     * The ID of the OIDC Identity Provider (IdP) associated to the Workload
     * Identity Pool.
     *
     * Generated from protobuf field <code>string identity_provider = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setIdentityProvider($var)
    {
        GPBUtil::checkString($var, True);
        $this->identity_provider = $var;

        return $this;
    }

}

