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

namespace Google\Cloud\SecurityCenter\V1\CustomConfig;

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

/**
 * A set of optional name-value pairs that define custom source properties to
 * return with each finding that is generated by the custom module. The custom
 * source properties that are defined here are included in the finding JSON
 * under `sourceProperties`.
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec</code>
 */
class CustomOutputSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * A list of custom output properties to add to the finding.
     *
     * Generated from protobuf field <code>repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1;</code>
     */
    private $properties;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\SecurityCenter\V1\CustomConfig\CustomOutputSpec\Property>|\Google\Protobuf\Internal\RepeatedField $properties
     *           A list of custom output properties to add to the finding.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V1\SecurityHealthAnalyticsCustomConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * A list of custom output properties to add to the finding.
     *
     * Generated from protobuf field <code>repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getProperties()
    {
        return $this->properties;
    }

    /**
     * A list of custom output properties to add to the finding.
     *
     * Generated from protobuf field <code>repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1;</code>
     * @param array<\Google\Cloud\SecurityCenter\V1\CustomConfig\CustomOutputSpec\Property>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setProperties($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\SecurityCenter\V1\CustomConfig\CustomOutputSpec\Property::class);
        $this->properties = $arr;

        return $this;
    }

}


