<?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;

/**
 * A VPN gateway interface.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.VpnGatewayVpnGatewayInterface</code>
 */
class VpnGatewayVpnGatewayInterface extends \Google\Protobuf\Internal\Message
{
    /**
     * The numeric ID of this VPN gateway interface.
     *
     * Generated from protobuf field <code>uint32 id = 3355;</code>
     */
    private $id = null;
    /**
     * URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
     * Not currently available in all Interconnect locations.
     *
     * Generated from protobuf field <code>string interconnect_attachment = 308135284;</code>
     */
    private $interconnect_attachment = null;
    /**
     * [Output Only] The external IP address for this VPN gateway interface.
     *
     * Generated from protobuf field <code>string ip_address = 406272220;</code>
     */
    private $ip_address = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           The numeric ID of this VPN gateway interface.
     *     @type string $interconnect_attachment
     *           URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
     *           Not currently available in all Interconnect locations.
     *     @type string $ip_address
     *           [Output Only] The external IP address for this VPN gateway interface.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The numeric ID of this VPN gateway interface.
     *
     * Generated from protobuf field <code>uint32 id = 3355;</code>
     * @return int
     */
    public function getId()
    {
        return isset($this->id) ? $this->id : 0;
    }

    public function hasId()
    {
        return isset($this->id);
    }

    public function clearId()
    {
        unset($this->id);
    }

    /**
     * The numeric ID of this VPN gateway interface.
     *
     * Generated from protobuf field <code>uint32 id = 3355;</code>
     * @param int $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkUint32($var);
        $this->id = $var;

        return $this;
    }

    /**
     * URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
     * Not currently available in all Interconnect locations.
     *
     * Generated from protobuf field <code>string interconnect_attachment = 308135284;</code>
     * @return string
     */
    public function getInterconnectAttachment()
    {
        return isset($this->interconnect_attachment) ? $this->interconnect_attachment : '';
    }

    public function hasInterconnectAttachment()
    {
        return isset($this->interconnect_attachment);
    }

    public function clearInterconnectAttachment()
    {
        unset($this->interconnect_attachment);
    }

    /**
     * URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
     * Not currently available in all Interconnect locations.
     *
     * Generated from protobuf field <code>string interconnect_attachment = 308135284;</code>
     * @param string $var
     * @return $this
     */
    public function setInterconnectAttachment($var)
    {
        GPBUtil::checkString($var, True);
        $this->interconnect_attachment = $var;

        return $this;
    }

    /**
     * [Output Only] The external IP address for this VPN gateway interface.
     *
     * Generated from protobuf field <code>string ip_address = 406272220;</code>
     * @return string
     */
    public function getIpAddress()
    {
        return isset($this->ip_address) ? $this->ip_address : '';
    }

    public function hasIpAddress()
    {
        return isset($this->ip_address);
    }

    public function clearIpAddress()
    {
        unset($this->ip_address);
    }

    /**
     * [Output Only] The external IP address for this VPN gateway interface.
     *
     * Generated from protobuf field <code>string ip_address = 406272220;</code>
     * @param string $var
     * @return $this
     */
    public function setIpAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->ip_address = $var;

        return $this;
    }

}

