<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Metadata on content to be scanned.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.ContentMetadata</code>
 */
class ContentMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * User provided key-value pairs of content metadata.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.KeyValueMetadataProperty properties = 2;</code>
     */
    private $properties;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dlp\V2\KeyValueMetadataProperty[] $properties
     *           User provided key-value pairs of content metadata.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * User provided key-value pairs of content metadata.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.KeyValueMetadataProperty properties = 2;</code>
     * @return RepeatedField<\Google\Cloud\Dlp\V2\KeyValueMetadataProperty>
     */
    public function getProperties()
    {
        return $this->properties;
    }

    /**
     * User provided key-value pairs of content metadata.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.KeyValueMetadataProperty properties = 2;</code>
     * @param \Google\Cloud\Dlp\V2\KeyValueMetadataProperty[] $var
     * @return $this
     */
    public function setProperties($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\KeyValueMetadataProperty::class);
        $this->properties = $arr;

        return $this;
    }

}

