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

/**
 * Network Layer Reachability Information (NLRI) for a route.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation</code>
 */
class BgpRouteNetworkLayerReachabilityInformation extends \Google\Protobuf\Internal\Message
{
    /**
     * If the BGP session supports multiple paths (RFC 7911), the path
     * identifier for this route.
     *
     * Generated from protobuf field <code>optional uint32 path_id = 282287989;</code>
     */
    protected $path_id = null;
    /**
     * Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16.
     *
     * Generated from protobuf field <code>optional string prefix = 93631122;</code>
     */
    protected $prefix = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $path_id
     *           If the BGP session supports multiple paths (RFC 7911), the path
     *           identifier for this route.
     *     @type string $prefix
     *           Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * If the BGP session supports multiple paths (RFC 7911), the path
     * identifier for this route.
     *
     * Generated from protobuf field <code>optional uint32 path_id = 282287989;</code>
     * @return int
     */
    public function getPathId()
    {
        return isset($this->path_id) ? $this->path_id : 0;
    }

    public function hasPathId()
    {
        return isset($this->path_id);
    }

    public function clearPathId()
    {
        unset($this->path_id);
    }

    /**
     * If the BGP session supports multiple paths (RFC 7911), the path
     * identifier for this route.
     *
     * Generated from protobuf field <code>optional uint32 path_id = 282287989;</code>
     * @param int $var
     * @return $this
     */
    public function setPathId($var)
    {
        GPBUtil::checkUint32($var);
        $this->path_id = $var;

        return $this;
    }

    /**
     * Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16.
     *
     * Generated from protobuf field <code>optional string prefix = 93631122;</code>
     * @return string
     */
    public function getPrefix()
    {
        return isset($this->prefix) ? $this->prefix : '';
    }

    public function hasPrefix()
    {
        return isset($this->prefix);
    }

    public function clearPrefix()
    {
        unset($this->prefix);
    }

    /**
     * Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16.
     *
     * Generated from protobuf field <code>optional string prefix = 93631122;</code>
     * @param string $var
     * @return $this
     */
    public function setPrefix($var)
    {
        GPBUtil::checkString($var, True);
        $this->prefix = $var;

        return $this;
    }

}

