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

namespace Google\Cloud\Dlp\V2;

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

/**
 * A related resource.
 * Examples:
 * * The source BigQuery table for a Vertex AI dataset.
 * * The source Cloud Storage bucket for a Vertex AI dataset.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.RelatedResource</code>
 */
class RelatedResource extends \Google\Protobuf\Internal\Message
{
    /**
     * The full resource name of the related resource.
     *
     * Generated from protobuf field <code>string full_resource = 1;</code>
     */
    protected $full_resource = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $full_resource
     *           The full resource name of the related resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * The full resource name of the related resource.
     *
     * Generated from protobuf field <code>string full_resource = 1;</code>
     * @return string
     */
    public function getFullResource()
    {
        return $this->full_resource;
    }

    /**
     * The full resource name of the related resource.
     *
     * Generated from protobuf field <code>string full_resource = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setFullResource($var)
    {
        GPBUtil::checkString($var, True);
        $this->full_resource = $var;

        return $this;
    }

}

