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

namespace Google\Cloud\VMMigration\V1;

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

/**
 * NetworkInterface represents a NIC of a VM.
 *
 * Generated from protobuf message <code>google.cloud.vmmigration.v1.NetworkInterface</code>
 */
class NetworkInterface extends \Google\Protobuf\Internal\Message
{
    /**
     * The network to connect the NIC to.
     *
     * Generated from protobuf field <code>string network = 1;</code>
     */
    private $network = '';
    /**
     * The subnetwork to connect the NIC to.
     *
     * Generated from protobuf field <code>string subnetwork = 2;</code>
     */
    private $subnetwork = '';
    /**
     * The internal IP to define in the NIC.
     * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
     * resource full path.
     *
     * Generated from protobuf field <code>string internal_ip = 3;</code>
     */
    private $internal_ip = '';
    /**
     * The external IP to define in the NIC.
     *
     * Generated from protobuf field <code>string external_ip = 4;</code>
     */
    private $external_ip = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $network
     *           The network to connect the NIC to.
     *     @type string $subnetwork
     *           The subnetwork to connect the NIC to.
     *     @type string $internal_ip
     *           The internal IP to define in the NIC.
     *           The formats accepted are: `ephemeral` \ ipv4 address \ a named address
     *           resource full path.
     *     @type string $external_ip
     *           The external IP to define in the NIC.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Vmmigration\V1\Vmmigration::initOnce();
        parent::__construct($data);
    }

    /**
     * The network to connect the NIC to.
     *
     * Generated from protobuf field <code>string network = 1;</code>
     * @return string
     */
    public function getNetwork()
    {
        return $this->network;
    }

    /**
     * The network to connect the NIC to.
     *
     * Generated from protobuf field <code>string network = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setNetwork($var)
    {
        GPBUtil::checkString($var, True);
        $this->network = $var;

        return $this;
    }

    /**
     * The subnetwork to connect the NIC to.
     *
     * Generated from protobuf field <code>string subnetwork = 2;</code>
     * @return string
     */
    public function getSubnetwork()
    {
        return $this->subnetwork;
    }

    /**
     * The subnetwork to connect the NIC to.
     *
     * Generated from protobuf field <code>string subnetwork = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSubnetwork($var)
    {
        GPBUtil::checkString($var, True);
        $this->subnetwork = $var;

        return $this;
    }

    /**
     * The internal IP to define in the NIC.
     * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
     * resource full path.
     *
     * Generated from protobuf field <code>string internal_ip = 3;</code>
     * @return string
     */
    public function getInternalIp()
    {
        return $this->internal_ip;
    }

    /**
     * The internal IP to define in the NIC.
     * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
     * resource full path.
     *
     * Generated from protobuf field <code>string internal_ip = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setInternalIp($var)
    {
        GPBUtil::checkString($var, True);
        $this->internal_ip = $var;

        return $this;
    }

    /**
     * The external IP to define in the NIC.
     *
     * Generated from protobuf field <code>string external_ip = 4;</code>
     * @return string
     */
    public function getExternalIp()
    {
        return $this->external_ip;
    }

    /**
     * The external IP to define in the NIC.
     *
     * Generated from protobuf field <code>string external_ip = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setExternalIp($var)
    {
        GPBUtil::checkString($var, True);
        $this->external_ip = $var;

        return $this;
    }

}

