<?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 network.
 * Next ID: 7
 *
 * Generated from protobuf message <code>google.cloud.networkmanagement.v1.NetworkInfo</code>
 */
class NetworkInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of a Compute Engine network.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     */
    protected $display_name = '';
    /**
     * URI of a Compute Engine network.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     */
    protected $uri = '';
    /**
     * URI of the subnet matching the source IP address of the test.
     *
     * Generated from protobuf field <code>string matched_subnet_uri = 5;</code>
     */
    protected $matched_subnet_uri = '';
    /**
     * The IP range of the subnet matching the source IP address of the test.
     *
     * Generated from protobuf field <code>string matched_ip_range = 4;</code>
     */
    protected $matched_ip_range = '';
    /**
     * The region of the subnet matching the source IP address of the test.
     *
     * Generated from protobuf field <code>string region = 6;</code>
     */
    protected $region = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $display_name
     *           Name of a Compute Engine network.
     *     @type string $uri
     *           URI of a Compute Engine network.
     *     @type string $matched_subnet_uri
     *           URI of the subnet matching the source IP address of the test.
     *     @type string $matched_ip_range
     *           The IP range of the subnet matching the source IP address of the test.
     *     @type string $region
     *           The region of the subnet matching the source IP address of the test.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Name of a Compute Engine network.
     *
     * 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 Compute Engine network.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * URI of a Compute Engine network.
     *
     * 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 subnet matching the source IP address of the test.
     *
     * Generated from protobuf field <code>string matched_subnet_uri = 5;</code>
     * @return string
     */
    public function getMatchedSubnetUri()
    {
        return $this->matched_subnet_uri;
    }

    /**
     * URI of the subnet matching the source IP address of the test.
     *
     * Generated from protobuf field <code>string matched_subnet_uri = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setMatchedSubnetUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->matched_subnet_uri = $var;

        return $this;
    }

    /**
     * The IP range of the subnet matching the source IP address of the test.
     *
     * Generated from protobuf field <code>string matched_ip_range = 4;</code>
     * @return string
     */
    public function getMatchedIpRange()
    {
        return $this->matched_ip_range;
    }

    /**
     * The IP range of the subnet matching the source IP address of the test.
     *
     * Generated from protobuf field <code>string matched_ip_range = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setMatchedIpRange($var)
    {
        GPBUtil::checkString($var, True);
        $this->matched_ip_range = $var;

        return $this;
    }

    /**
     * The region of the subnet matching the source IP address of the test.
     *
     * Generated from protobuf field <code>string region = 6;</code>
     * @return string
     */
    public function getRegion()
    {
        return $this->region;
    }

    /**
     * The region of the subnet matching the source IP address of the test.
     *
     * Generated from protobuf field <code>string region = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setRegion($var)
    {
        GPBUtil::checkString($var, True);
        $this->region = $var;

        return $this;
    }

}

