<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/baremetalsolution/v2/network.proto

namespace Google\Cloud\BareMetalSolution\V2;

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

/**
 * A reservation of one or more addresses in a network.
 *
 * Generated from protobuf message <code>google.cloud.baremetalsolution.v2.NetworkAddressReservation</code>
 */
class NetworkAddressReservation extends \Google\Protobuf\Internal\Message
{
    /**
     * The first address of this reservation block.
     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
     *
     * Generated from protobuf field <code>string start_address = 1;</code>
     */
    private $start_address = '';
    /**
     * The last address of this reservation block, inclusive. I.e., for cases when
     * reservations are only single addresses, end_address and start_address will
     * be the same.
     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
     *
     * Generated from protobuf field <code>string end_address = 2;</code>
     */
    private $end_address = '';
    /**
     * A note about this reservation, intended for human consumption.
     *
     * Generated from protobuf field <code>string note = 3;</code>
     */
    private $note = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $start_address
     *           The first address of this reservation block.
     *           Must be specified as a single IPv4 address, e.g. 10.1.2.2.
     *     @type string $end_address
     *           The last address of this reservation block, inclusive. I.e., for cases when
     *           reservations are only single addresses, end_address and start_address will
     *           be the same.
     *           Must be specified as a single IPv4 address, e.g. 10.1.2.2.
     *     @type string $note
     *           A note about this reservation, intended for human consumption.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Network::initOnce();
        parent::__construct($data);
    }

    /**
     * The first address of this reservation block.
     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
     *
     * Generated from protobuf field <code>string start_address = 1;</code>
     * @return string
     */
    public function getStartAddress()
    {
        return $this->start_address;
    }

    /**
     * The first address of this reservation block.
     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
     *
     * Generated from protobuf field <code>string start_address = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setStartAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->start_address = $var;

        return $this;
    }

    /**
     * The last address of this reservation block, inclusive. I.e., for cases when
     * reservations are only single addresses, end_address and start_address will
     * be the same.
     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
     *
     * Generated from protobuf field <code>string end_address = 2;</code>
     * @return string
     */
    public function getEndAddress()
    {
        return $this->end_address;
    }

    /**
     * The last address of this reservation block, inclusive. I.e., for cases when
     * reservations are only single addresses, end_address and start_address will
     * be the same.
     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
     *
     * Generated from protobuf field <code>string end_address = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setEndAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->end_address = $var;

        return $this;
    }

    /**
     * A note about this reservation, intended for human consumption.
     *
     * Generated from protobuf field <code>string note = 3;</code>
     * @return string
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * A note about this reservation, intended for human consumption.
     *
     * Generated from protobuf field <code>string note = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setNote($var)
    {
        GPBUtil::checkString($var, True);
        $this->note = $var;

        return $this;
    }

}

