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

namespace Google\Cloud\SecurityCenter\V2\File;

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

/**
 * Path of the file in terms of underlying disk/partition identifiers.
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v2.File.DiskPath</code>
 */
class DiskPath extends \Google\Protobuf\Internal\Message
{
    /**
     * UUID of the partition (format
     * https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
     *
     * Generated from protobuf field <code>string partition_uuid = 1;</code>
     */
    protected $partition_uuid = '';
    /**
     * Relative path of the file in the partition as a JSON encoded string.
     * Example: /home/user1/executable_file.sh
     *
     * Generated from protobuf field <code>string relative_path = 2;</code>
     */
    protected $relative_path = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $partition_uuid
     *           UUID of the partition (format
     *           https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
     *     @type string $relative_path
     *           Relative path of the file in the partition as a JSON encoded string.
     *           Example: /home/user1/executable_file.sh
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V2\File::initOnce();
        parent::__construct($data);
    }

    /**
     * UUID of the partition (format
     * https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
     *
     * Generated from protobuf field <code>string partition_uuid = 1;</code>
     * @return string
     */
    public function getPartitionUuid()
    {
        return $this->partition_uuid;
    }

    /**
     * UUID of the partition (format
     * https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
     *
     * Generated from protobuf field <code>string partition_uuid = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPartitionUuid($var)
    {
        GPBUtil::checkString($var, True);
        $this->partition_uuid = $var;

        return $this;
    }

    /**
     * Relative path of the file in the partition as a JSON encoded string.
     * Example: /home/user1/executable_file.sh
     *
     * Generated from protobuf field <code>string relative_path = 2;</code>
     * @return string
     */
    public function getRelativePath()
    {
        return $this->relative_path;
    }

    /**
     * Relative path of the file in the partition as a JSON encoded string.
     * Example: /home/user1/executable_file.sh
     *
     * Generated from protobuf field <code>string relative_path = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setRelativePath($var)
    {
        GPBUtil::checkString($var, True);
        $this->relative_path = $var;

        return $this;
    }

}


