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

namespace Google\Cloud\NetworkManagement\V1;

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

/**
 * For display only. Metadata associated with a Compute Engine VPN tunnel.
 *
 * Generated from protobuf message <code>google.cloud.networkmanagement.v1.VpnTunnelInfo</code>
 */
class VpnTunnelInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of a VPN tunnel.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     */
    protected $display_name = '';
    /**
     * URI of a VPN tunnel.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     */
    protected $uri = '';
    /**
     * URI of the VPN gateway at local end of the tunnel.
     *
     * Generated from protobuf field <code>string source_gateway = 3;</code>
     */
    protected $source_gateway = '';
    /**
     * URI of a VPN gateway at remote end of the tunnel.
     *
     * Generated from protobuf field <code>string remote_gateway = 4;</code>
     */
    protected $remote_gateway = '';
    /**
     * Remote VPN gateway's IP address.
     *
     * Generated from protobuf field <code>string remote_gateway_ip = 5;</code>
     */
    protected $remote_gateway_ip = '';
    /**
     * Local VPN gateway's IP address.
     *
     * Generated from protobuf field <code>string source_gateway_ip = 6;</code>
     */
    protected $source_gateway_ip = '';
    /**
     * URI of a Compute Engine network where the VPN tunnel is configured.
     *
     * Generated from protobuf field <code>string network_uri = 7;</code>
     */
    protected $network_uri = '';
    /**
     * Name of a Google Cloud region where this VPN tunnel is configured.
     *
     * Generated from protobuf field <code>string region = 8;</code>
     */
    protected $region = '';
    /**
     * Type of the routing policy.
     *
     * Generated from protobuf field <code>.google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType routing_type = 9;</code>
     */
    protected $routing_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $display_name
     *           Name of a VPN tunnel.
     *     @type string $uri
     *           URI of a VPN tunnel.
     *     @type string $source_gateway
     *           URI of the VPN gateway at local end of the tunnel.
     *     @type string $remote_gateway
     *           URI of a VPN gateway at remote end of the tunnel.
     *     @type string $remote_gateway_ip
     *           Remote VPN gateway's IP address.
     *     @type string $source_gateway_ip
     *           Local VPN gateway's IP address.
     *     @type string $network_uri
     *           URI of a Compute Engine network where the VPN tunnel is configured.
     *     @type string $region
     *           Name of a Google Cloud region where this VPN tunnel is configured.
     *     @type int $routing_type
     *           Type of the routing policy.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of a VPN tunnel.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Name of a VPN tunnel.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * URI of a VPN tunnel.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * URI of a VPN tunnel.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->uri = $var;

        return $this;
    }

    /**
     * URI of the VPN gateway at local end of the tunnel.
     *
     * Generated from protobuf field <code>string source_gateway = 3;</code>
     * @return string
     */
    public function getSourceGateway()
    {
        return $this->source_gateway;
    }

    /**
     * URI of the VPN gateway at local end of the tunnel.
     *
     * Generated from protobuf field <code>string source_gateway = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setSourceGateway($var)
    {
        GPBUtil::checkString($var, True);
        $this->source_gateway = $var;

        return $this;
    }

    /**
     * URI of a VPN gateway at remote end of the tunnel.
     *
     * Generated from protobuf field <code>string remote_gateway = 4;</code>
     * @return string
     */
    public function getRemoteGateway()
    {
        return $this->remote_gateway;
    }

    /**
     * URI of a VPN gateway at remote end of the tunnel.
     *
     * Generated from protobuf field <code>string remote_gateway = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setRemoteGateway($var)
    {
        GPBUtil::checkString($var, True);
        $this->remote_gateway = $var;

        return $this;
    }

    /**
     * Remote VPN gateway's IP address.
     *
     * Generated from protobuf field <code>string remote_gateway_ip = 5;</code>
     * @return string
     */
    public function getRemoteGatewayIp()
    {
        return $this->remote_gateway_ip;
    }

    /**
     * Remote VPN gateway's IP address.
     *
     * Generated from protobuf field <code>string remote_gateway_ip = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setRemoteGatewayIp($var)
    {
        GPBUtil::checkString($var, True);
        $this->remote_gateway_ip = $var;

        return $this;
    }

    /**
     * Local VPN gateway's IP address.
     *
     * Generated from protobuf field <code>string source_gateway_ip = 6;</code>
     * @return string
     */
    public function getSourceGatewayIp()
    {
        return $this->source_gateway_ip;
    }

    /**
     * Local VPN gateway's IP address.
     *
     * Generated from protobuf field <code>string source_gateway_ip = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setSourceGatewayIp($var)
    {
        GPBUtil::checkString($var, True);
        $this->source_gateway_ip = $var;

        return $this;
    }

    /**
     * URI of a Compute Engine network where the VPN tunnel is configured.
     *
     * Generated from protobuf field <code>string network_uri = 7;</code>
     * @return string
     */
    public function getNetworkUri()
    {
        return $this->network_uri;
    }

    /**
     * URI of a Compute Engine network where the VPN tunnel is configured.
     *
     * Generated from protobuf field <code>string network_uri = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setNetworkUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->network_uri = $var;

        return $this;
    }

    /**
     * Name of a Google Cloud region where this VPN tunnel is configured.
     *
     * Generated from protobuf field <code>string region = 8;</code>
     * @return string
     */
    public function getRegion()
    {
        return $this->region;
    }

    /**
     * Name of a Google Cloud region where this VPN tunnel is configured.
     *
     * Generated from protobuf field <code>string region = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setRegion($var)
    {
        GPBUtil::checkString($var, True);
        $this->region = $var;

        return $this;
    }

    /**
     * Type of the routing policy.
     *
     * Generated from protobuf field <code>.google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType routing_type = 9;</code>
     * @return int
     */
    public function getRoutingType()
    {
        return $this->routing_type;
    }

    /**
     * Type of the routing policy.
     *
     * Generated from protobuf field <code>.google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType routing_type = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setRoutingType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\NetworkManagement\V1\VpnTunnelInfo\RoutingType::class);
        $this->routing_type = $var;

        return $this;
    }

}

