<?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 forwarding rule.
 *
 * Generated from protobuf message <code>google.cloud.networkmanagement.v1.ForwardingRuleInfo</code>
 */
class ForwardingRuleInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of a Compute Engine forwarding rule.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     */
    private $display_name = '';
    /**
     * URI of a Compute Engine forwarding rule.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     */
    private $uri = '';
    /**
     * Protocol defined in the forwarding rule that matches the test.
     *
     * Generated from protobuf field <code>string matched_protocol = 3;</code>
     */
    private $matched_protocol = '';
    /**
     * Port range defined in the forwarding rule that matches the test.
     *
     * Generated from protobuf field <code>string matched_port_range = 6;</code>
     */
    private $matched_port_range = '';
    /**
     * VIP of the forwarding rule.
     *
     * Generated from protobuf field <code>string vip = 4;</code>
     */
    private $vip = '';
    /**
     * Target type of the forwarding rule.
     *
     * Generated from protobuf field <code>string target = 5;</code>
     */
    private $target = '';
    /**
     * Network URI. Only valid for Internal Load Balancer.
     *
     * Generated from protobuf field <code>string network_uri = 7;</code>
     */
    private $network_uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $display_name
     *           Name of a Compute Engine forwarding rule.
     *     @type string $uri
     *           URI of a Compute Engine forwarding rule.
     *     @type string $matched_protocol
     *           Protocol defined in the forwarding rule that matches the test.
     *     @type string $matched_port_range
     *           Port range defined in the forwarding rule that matches the test.
     *     @type string $vip
     *           VIP of the forwarding rule.
     *     @type string $target
     *           Target type of the forwarding rule.
     *     @type string $network_uri
     *           Network URI. Only valid for Internal Load Balancer.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce();
        parent::__construct($data);
    }

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

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

    /**
     * URI of a Compute Engine forwarding rule.
     *
     * 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;
    }

    /**
     * Protocol defined in the forwarding rule that matches the test.
     *
     * Generated from protobuf field <code>string matched_protocol = 3;</code>
     * @return string
     */
    public function getMatchedProtocol()
    {
        return $this->matched_protocol;
    }

    /**
     * Protocol defined in the forwarding rule that matches the test.
     *
     * Generated from protobuf field <code>string matched_protocol = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setMatchedProtocol($var)
    {
        GPBUtil::checkString($var, True);
        $this->matched_protocol = $var;

        return $this;
    }

    /**
     * Port range defined in the forwarding rule that matches the test.
     *
     * Generated from protobuf field <code>string matched_port_range = 6;</code>
     * @return string
     */
    public function getMatchedPortRange()
    {
        return $this->matched_port_range;
    }

    /**
     * Port range defined in the forwarding rule that matches the test.
     *
     * Generated from protobuf field <code>string matched_port_range = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setMatchedPortRange($var)
    {
        GPBUtil::checkString($var, True);
        $this->matched_port_range = $var;

        return $this;
    }

    /**
     * VIP of the forwarding rule.
     *
     * Generated from protobuf field <code>string vip = 4;</code>
     * @return string
     */
    public function getVip()
    {
        return $this->vip;
    }

    /**
     * VIP of the forwarding rule.
     *
     * Generated from protobuf field <code>string vip = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setVip($var)
    {
        GPBUtil::checkString($var, True);
        $this->vip = $var;

        return $this;
    }

    /**
     * Target type of the forwarding rule.
     *
     * Generated from protobuf field <code>string target = 5;</code>
     * @return string
     */
    public function getTarget()
    {
        return $this->target;
    }

    /**
     * Target type of the forwarding rule.
     *
     * Generated from protobuf field <code>string target = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setTarget($var)
    {
        GPBUtil::checkString($var, True);
        $this->target = $var;

        return $this;
    }

    /**
     * Network URI. Only valid for Internal Load Balancer.
     *
     * Generated from protobuf field <code>string network_uri = 7;</code>
     * @return string
     */
    public function getNetworkUri()
    {
        return $this->network_uri;
    }

    /**
     * Network URI. Only valid for Internal Load Balancer.
     *
     * 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;
    }

}

