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

namespace Google\Cloud\LifeSciences\V2beta;

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

/**
 * Carries information about a particular disk mount inside a container.
 *
 * Generated from protobuf message <code>google.cloud.lifesciences.v2beta.Mount</code>
 */
class Mount extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the disk to mount, as specified in the resources section.
     *
     * Generated from protobuf field <code>string disk = 1;</code>
     */
    private $disk = '';
    /**
     * The path to mount the disk inside the container.
     *
     * Generated from protobuf field <code>string path = 2;</code>
     */
    private $path = '';
    /**
     * If true, the disk is mounted read-only inside the container.
     *
     * Generated from protobuf field <code>bool read_only = 3;</code>
     */
    private $read_only = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $disk
     *           The name of the disk to mount, as specified in the resources section.
     *     @type string $path
     *           The path to mount the disk inside the container.
     *     @type bool $read_only
     *           If true, the disk is mounted read-only inside the container.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Lifesciences\V2Beta\Workflows::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the disk to mount, as specified in the resources section.
     *
     * Generated from protobuf field <code>string disk = 1;</code>
     * @return string
     */
    public function getDisk()
    {
        return $this->disk;
    }

    /**
     * The name of the disk to mount, as specified in the resources section.
     *
     * Generated from protobuf field <code>string disk = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDisk($var)
    {
        GPBUtil::checkString($var, True);
        $this->disk = $var;

        return $this;
    }

    /**
     * The path to mount the disk inside the container.
     *
     * Generated from protobuf field <code>string path = 2;</code>
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * The path to mount the disk inside the container.
     *
     * Generated from protobuf field <code>string path = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->path = $var;

        return $this;
    }

    /**
     * If true, the disk is mounted read-only inside the container.
     *
     * Generated from protobuf field <code>bool read_only = 3;</code>
     * @return bool
     */
    public function getReadOnly()
    {
        return $this->read_only;
    }

    /**
     * If true, the disk is mounted read-only inside the container.
     *
     * Generated from protobuf field <code>bool read_only = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setReadOnly($var)
    {
        GPBUtil::checkBool($var);
        $this->read_only = $var;

        return $this;
    }

}

