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

namespace Google\Cloud\Redis\Cluster\V1;

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

/**
 * Generated from protobuf message <code>google.cloud.redis.cluster.v1.PscConfig</code>
 */
class PscConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The network where the IP address of the discovery endpoint will
     * be reserved, in the form of
     * projects/{network_project}/global/networks/{network_id}.
     *
     * Generated from protobuf field <code>string network = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $network = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $network
     *           Required. The network where the IP address of the discovery endpoint will
     *           be reserved, in the form of
     *           projects/{network_project}/global/networks/{network_id}.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Redis\Cluster\V1\CloudRedisCluster::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The network where the IP address of the discovery endpoint will
     * be reserved, in the form of
     * projects/{network_project}/global/networks/{network_id}.
     *
     * Generated from protobuf field <code>string network = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getNetwork()
    {
        return $this->network;
    }

    /**
     * Required. The network where the IP address of the discovery endpoint will
     * be reserved, in the form of
     * projects/{network_project}/global/networks/{network_id}.
     *
     * Generated from protobuf field <code>string network = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setNetwork($var)
    {
        GPBUtil::checkString($var, True);
        $this->network = $var;

        return $this;
    }

}

