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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.NetworkProfileNetworkFeaturesPredefinedSubnetworkRange</code>
 */
class NetworkProfileNetworkFeaturesPredefinedSubnetworkRange extends \Google\Protobuf\Internal\Message
{
    /**
     * The IPv6 range of the predefined subnetwork.
     *
     * Generated from protobuf field <code>optional string ipv6_range = 50053349;</code>
     */
    protected $ipv6_range = null;
    /**
     * The naming prefix of the predefined subnetwork.
     *
     * Generated from protobuf field <code>optional string name_prefix = 236409542;</code>
     */
    protected $name_prefix = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ipv6_range
     *           The IPv6 range of the predefined subnetwork.
     *     @type string $name_prefix
     *           The naming prefix of the predefined subnetwork.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The IPv6 range of the predefined subnetwork.
     *
     * Generated from protobuf field <code>optional string ipv6_range = 50053349;</code>
     * @return string
     */
    public function getIpv6Range()
    {
        return isset($this->ipv6_range) ? $this->ipv6_range : '';
    }

    public function hasIpv6Range()
    {
        return isset($this->ipv6_range);
    }

    public function clearIpv6Range()
    {
        unset($this->ipv6_range);
    }

    /**
     * The IPv6 range of the predefined subnetwork.
     *
     * Generated from protobuf field <code>optional string ipv6_range = 50053349;</code>
     * @param string $var
     * @return $this
     */
    public function setIpv6Range($var)
    {
        GPBUtil::checkString($var, True);
        $this->ipv6_range = $var;

        return $this;
    }

    /**
     * The naming prefix of the predefined subnetwork.
     *
     * Generated from protobuf field <code>optional string name_prefix = 236409542;</code>
     * @return string
     */
    public function getNamePrefix()
    {
        return isset($this->name_prefix) ? $this->name_prefix : '';
    }

    public function hasNamePrefix()
    {
        return isset($this->name_prefix);
    }

    public function clearNamePrefix()
    {
        unset($this->name_prefix);
    }

    /**
     * The naming prefix of the predefined subnetwork.
     *
     * Generated from protobuf field <code>optional string name_prefix = 236409542;</code>
     * @param string $var
     * @return $this
     */
    public function setNamePrefix($var)
    {
        GPBUtil::checkString($var, True);
        $this->name_prefix = $var;

        return $this;
    }

}

