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

namespace Google\Cloud\SecurityCenter\V1;

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

/**
 * Resource that has been exfiltrated or exfiltrated_to.
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v1.ExfilResource</code>
 */
class ExfilResource extends \Google\Protobuf\Internal\Message
{
    /**
     * Resource's URI (https://google.aip.dev/122#full-resource-names)
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * Subcomponents of the asset that is exfiltrated - these could be
     * URIs used during exfiltration, table names, databases, filenames, etc.
     * For example, multiple tables may be exfiltrated from the same CloudSQL
     * instance, or multiple files from the same Cloud Storage bucket.
     *
     * Generated from protobuf field <code>repeated string components = 2;</code>
     */
    private $components;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Resource's URI (https://google.aip.dev/122#full-resource-names)
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $components
     *           Subcomponents of the asset that is exfiltrated - these could be
     *           URIs used during exfiltration, table names, databases, filenames, etc.
     *           For example, multiple tables may be exfiltrated from the same CloudSQL
     *           instance, or multiple files from the same Cloud Storage bucket.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V1\Exfiltration::initOnce();
        parent::__construct($data);
    }

    /**
     * Resource's URI (https://google.aip.dev/122#full-resource-names)
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Resource's URI (https://google.aip.dev/122#full-resource-names)
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Subcomponents of the asset that is exfiltrated - these could be
     * URIs used during exfiltration, table names, databases, filenames, etc.
     * For example, multiple tables may be exfiltrated from the same CloudSQL
     * instance, or multiple files from the same Cloud Storage bucket.
     *
     * Generated from protobuf field <code>repeated string components = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getComponents()
    {
        return $this->components;
    }

    /**
     * Subcomponents of the asset that is exfiltrated - these could be
     * URIs used during exfiltration, table names, databases, filenames, etc.
     * For example, multiple tables may be exfiltrated from the same CloudSQL
     * instance, or multiple files from the same Cloud Storage bucket.
     *
     * Generated from protobuf field <code>repeated string components = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setComponents($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->components = $arr;

        return $this;
    }

}

