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

namespace Google\Cloud\Asset\V1;

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

/**
 * An analysis result including blockers and warnings.
 *
 * Generated from protobuf message <code>google.cloud.asset.v1.MoveAnalysisResult</code>
 */
class MoveAnalysisResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Blocking information that would prevent the target resource from moving
     * to the specified destination at runtime.
     *
     * Generated from protobuf field <code>repeated .google.cloud.asset.v1.MoveImpact blockers = 1;</code>
     */
    private $blockers;
    /**
     * Warning information indicating that moving the target resource to the
     * specified destination might be unsafe. This can include important policy
     * information and configuration changes, but will not block moves at runtime.
     *
     * Generated from protobuf field <code>repeated .google.cloud.asset.v1.MoveImpact warnings = 2;</code>
     */
    private $warnings;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Asset\V1\MoveImpact>|\Google\Protobuf\Internal\RepeatedField $blockers
     *           Blocking information that would prevent the target resource from moving
     *           to the specified destination at runtime.
     *     @type array<\Google\Cloud\Asset\V1\MoveImpact>|\Google\Protobuf\Internal\RepeatedField $warnings
     *           Warning information indicating that moving the target resource to the
     *           specified destination might be unsafe. This can include important policy
     *           information and configuration changes, but will not block moves at runtime.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce();
        parent::__construct($data);
    }

    /**
     * Blocking information that would prevent the target resource from moving
     * to the specified destination at runtime.
     *
     * Generated from protobuf field <code>repeated .google.cloud.asset.v1.MoveImpact blockers = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBlockers()
    {
        return $this->blockers;
    }

    /**
     * Blocking information that would prevent the target resource from moving
     * to the specified destination at runtime.
     *
     * Generated from protobuf field <code>repeated .google.cloud.asset.v1.MoveImpact blockers = 1;</code>
     * @param array<\Google\Cloud\Asset\V1\MoveImpact>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBlockers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\MoveImpact::class);
        $this->blockers = $arr;

        return $this;
    }

    /**
     * Warning information indicating that moving the target resource to the
     * specified destination might be unsafe. This can include important policy
     * information and configuration changes, but will not block moves at runtime.
     *
     * Generated from protobuf field <code>repeated .google.cloud.asset.v1.MoveImpact warnings = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getWarnings()
    {
        return $this->warnings;
    }

    /**
     * Warning information indicating that moving the target resource to the
     * specified destination might be unsafe. This can include important policy
     * information and configuration changes, but will not block moves at runtime.
     *
     * Generated from protobuf field <code>repeated .google.cloud.asset.v1.MoveImpact warnings = 2;</code>
     * @param array<\Google\Cloud\Asset\V1\MoveImpact>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setWarnings($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\MoveImpact::class);
        $this->warnings = $arr;

        return $this;
    }

}

