<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/alloydb/v1alpha/resources.proto

namespace Google\Cloud\AlloyDb\V1alpha\Cluster;

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

/**
 * PscConfig contains PSC related configuration at a cluster level.
 *
 * Generated from protobuf message <code>google.cloud.alloydb.v1alpha.Cluster.PscConfig</code>
 */
class PscConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Create an instance that allows connections from Private Service
     * Connect endpoints to the instance.
     *
     * Generated from protobuf field <code>bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $psc_enabled = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $psc_enabled
     *           Optional. Create an instance that allows connections from Private Service
     *           Connect endpoints to the instance.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Alloydb\V1Alpha\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Create an instance that allows connections from Private Service
     * Connect endpoints to the instance.
     *
     * Generated from protobuf field <code>bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getPscEnabled()
    {
        return $this->psc_enabled;
    }

    /**
     * Optional. Create an instance that allows connections from Private Service
     * Connect endpoints to the instance.
     *
     * Generated from protobuf field <code>bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setPscEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->psc_enabled = $var;

        return $this;
    }

}


