<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Wire endpoints are specific Interconnect connections.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.WireEndpoint</code>
 */
class WireEndpoint extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string interconnect = 224601230;</code>
     */
    protected $interconnect = null;
    /**
     * Generated from protobuf field <code>optional int32 vlan_tag = 514640574;</code>
     */
    protected $vlan_tag = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $interconnect
     *     @type int $vlan_tag
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * 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);
    }

    /**
     * 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;
    }

    /**
     * Generated from protobuf field <code>optional int32 vlan_tag = 514640574;</code>
     * @return int
     */
    public function getVlanTag()
    {
        return isset($this->vlan_tag) ? $this->vlan_tag : 0;
    }

    public function hasVlanTag()
    {
        return isset($this->vlan_tag);
    }

    public function clearVlanTag()
    {
        unset($this->vlan_tag);
    }

    /**
     * Generated from protobuf field <code>optional int32 vlan_tag = 514640574;</code>
     * @param int $var
     * @return $this
     */
    public function setVlanTag($var)
    {
        GPBUtil::checkInt32($var);
        $this->vlan_tag = $var;

        return $this;
    }

}

