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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Represents a mount configuration for Network File System (NFS) to mount.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.NfsMount</code>
 */
class NfsMount extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. IP address of the NFS server.
     *
     * Generated from protobuf field <code>string server = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $server = '';
    /**
     * Required. Source path exported from NFS server.
     * Has to start with '/', and combined with the ip address, it indicates
     * the source mount path in the form of `server:path`
     *
     * Generated from protobuf field <code>string path = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $path = '';
    /**
     * Required. Destination mount path. The NFS will be mounted for the user under
     * /mnt/nfs/<mount_point>
     *
     * Generated from protobuf field <code>string mount_point = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $mount_point = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $server
     *           Required. IP address of the NFS server.
     *     @type string $path
     *           Required. Source path exported from NFS server.
     *           Has to start with '/', and combined with the ip address, it indicates
     *           the source mount path in the form of `server:path`
     *     @type string $mount_point
     *           Required. Destination mount path. The NFS will be mounted for the user under
     *           /mnt/nfs/<mount_point>
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\MachineResources::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Required. Source path exported from NFS server.
     * Has to start with '/', and combined with the ip address, it indicates
     * the source mount path in the form of `server:path`
     *
     * Generated from protobuf field <code>string path = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * Required. Source path exported from NFS server.
     * Has to start with '/', and combined with the ip address, it indicates
     * the source mount path in the form of `server:path`
     *
     * Generated from protobuf field <code>string path = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->path = $var;

        return $this;
    }

    /**
     * Required. Destination mount path. The NFS will be mounted for the user under
     * /mnt/nfs/<mount_point>
     *
     * Generated from protobuf field <code>string mount_point = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getMountPoint()
    {
        return $this->mount_point;
    }

    /**
     * Required. Destination mount path. The NFS will be mounted for the user under
     * /mnt/nfs/<mount_point>
     *
     * Generated from protobuf field <code>string mount_point = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setMountPoint($var)
    {
        GPBUtil::checkString($var, True);
        $this->mount_point = $var;

        return $this;
    }

}

