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

namespace Google\Cloud\Datastream\V1;

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

/**
 * Private Connectivity
 *
 * Generated from protobuf message <code>google.cloud.datastream.v1.PrivateConnectivity</code>
 */
class PrivateConnectivity extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A reference to a private connection resource.
     * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
     *
     * Generated from protobuf field <code>string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $private_connection = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $private_connection
     *           Required. A reference to a private connection resource.
     *           Format: `projects/{project}/locations/{location}/privateConnections/{name}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datastream\V1\DatastreamResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A reference to a private connection resource.
     * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
     *
     * Generated from protobuf field <code>string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getPrivateConnection()
    {
        return $this->private_connection;
    }

    /**
     * Required. A reference to a private connection resource.
     * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
     *
     * Generated from protobuf field <code>string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setPrivateConnection($var)
    {
        GPBUtil::checkString($var, True);
        $this->private_connection = $var;

        return $this;
    }

}

