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

namespace Google\Cloud\Compute\V1;

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

/**
 * An Interconnect in this InterconnectGroup.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InterconnectGroupInterconnect</code>
 */
class InterconnectGroupInterconnect extends \Google\Protobuf\Internal\Message
{
    /**
     * The URL of an Interconnect in this group. All Interconnects in the group are unique.
     *
     * Generated from protobuf field <code>optional string interconnect = 224601230;</code>
     */
    protected $interconnect = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $interconnect
     *           The URL of an Interconnect in this group. All Interconnects in the group are unique.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The URL of an Interconnect in this group. All Interconnects in the group are unique.
     *
     * Generated from protobuf field <code>optional string interconnect = 224601230;</code>
     * @return string
     */
    public function getInterconnect()
    {
        return isset($this->interconnect) ? $this->interconnect : '';
    }

    public function hasInterconnect()
    {
        return isset($this->interconnect);
    }

    public function clearInterconnect()
    {
        unset($this->interconnect);
    }

    /**
     * The URL of an Interconnect in this group. All Interconnects in the group are unique.
     *
     * Generated from protobuf field <code>optional string interconnect = 224601230;</code>
     * @param string $var
     * @return $this
     */
    public function setInterconnect($var)
    {
        GPBUtil::checkString($var, True);
        $this->interconnect = $var;

        return $this;
    }

}

