<?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 server and remote path: <server>:<remote_path>
 *
 * Generated from protobuf message <code>google.cloud.batch.v1.NFS</code>
 */
class NFS extends \Google\Protobuf\Internal\Message
{
    /**
     * URI of the NFS server, e.g. an IP address.
     *
     * Generated from protobuf field <code>string server = 1;</code>
     */
    private $server = '';
    /**
     * Remote source path exported from 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
     *           URI of the NFS server, e.g. an IP address.
     *     @type string $remote_path
     *           Remote source path exported from NFS, e.g., "/share".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Batch\V1\Volume::initOnce();
        parent::__construct($data);
    }

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

    /**
     * URI of the NFS server, e.g. an IP address.
     *
     * 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 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 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;
    }

}

