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

namespace Google\Cloud\SecurityCenterManagement\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.securitycentermanagement.v1.CustomConfig.CustomOutputSpec</code>
 */
class CustomOutputSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. A list of custom output properties to add to the finding.
     *
     * Generated from protobuf field <code>repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $properties;

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

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

    /**
     * Optional. A list of custom output properties to add to the finding.
     *
     * Generated from protobuf field <code>repeated .google.cloud.securitycentermanagement.v1.CustomConfig.CustomOutputSpec.Property properties = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<\Google\Cloud\SecurityCenterManagement\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\SecurityCenterManagement\V1\CustomConfig\CustomOutputSpec\Property::class);
        $this->properties = $arr;

        return $this;
    }

}


