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

namespace Google\Cloud\Recommender\V1;

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

/**
 * Contains various ways of describing the impact on Security.
 *
 * Generated from protobuf message <code>google.cloud.recommender.v1.SecurityProjection</code>
 */
class SecurityProjection extends \Google\Protobuf\Internal\Message
{
    /**
     * Additional security impact details that is provided by the recommender.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct details = 2;</code>
     */
    private $details = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Struct $details
     *           Additional security impact details that is provided by the recommender.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recommender\V1\Recommendation::initOnce();
        parent::__construct($data);
    }

    /**
     * Additional security impact details that is provided by the recommender.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct details = 2;</code>
     * @return \Google\Protobuf\Struct|null
     */
    public function getDetails()
    {
        return $this->details;
    }

    public function hasDetails()
    {
        return isset($this->details);
    }

    public function clearDetails()
    {
        unset($this->details);
    }

    /**
     * Additional security impact details that is provided by the recommender.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct details = 2;</code>
     * @param \Google\Protobuf\Struct $var
     * @return $this
     */
    public function setDetails($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
        $this->details = $var;

        return $this;
    }

}

