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

namespace Google\Cloud\Batch\V1;

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

/**
 * Represents an NFS volume.
 *
 * Generated from protobuf message <code>google.cloud.batch.v1.NFS</code>
 */
class NFS extends \Google\Protobuf\Internal\Message
{
    /**
     * The IP address of the NFS.
     *
     * Generated from protobuf field <code>string server = 1;</code>
     */
    private $server = '';
    /**
     * Remote source path exported from the NFS, e.g., "/share".
     *
     * Generated from protobuf field <code>string remote_path = 2;</code>
     */
    private $remote_path = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $server
     *           The IP address of the NFS.
     *     @type string $remote_path
     *           Remote source path exported from the NFS, e.g., "/share".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Batch\V1\Volume::initOnce();
        parent::__construct($data);
    }

    /**
     * The IP address of the NFS.
     *
     * Generated from protobuf field <code>string server = 1;</code>
     * @return string
     */
    public function getServer()
    {
        return $this->server;
    }

    /**
     * The IP address of the NFS.
     *
     * Generated from protobuf field <code>string server = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setServer($var)
    {
        GPBUtil::checkString($var, True);
        $this->server = $var;

        return $this;
    }

    /**
     * Remote source path exported from the NFS, e.g., "/share".
     *
     * Generated from protobuf field <code>string remote_path = 2;</code>
     * @return string
     */
    public function getRemotePath()
    {
        return $this->remote_path;
    }

    /**
     * Remote source path exported from the NFS, e.g., "/share".
     *
     * Generated from protobuf field <code>string remote_path = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setRemotePath($var)
    {
        GPBUtil::checkString($var, True);
        $this->remote_path = $var;

        return $this;
    }

}

