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

namespace Google\Cloud\MigrationCenter\V1\ReportSummary;

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

/**
 * Summary Findings for a specific Group.
 *
 * Generated from protobuf message <code>google.cloud.migrationcenter.v1.ReportSummary.GroupFinding</code>
 */
class GroupFinding extends \Google\Protobuf\Internal\Message
{
    /**
     * Display Name for the Group.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     */
    protected $display_name = '';
    /**
     * Description for the Group.
     *
     * Generated from protobuf field <code>string description = 2;</code>
     */
    protected $description = '';
    /**
     * Summary statistics for all the assets in this group.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.ReportSummary.AssetAggregateStats asset_aggregate_stats = 3;</code>
     */
    protected $asset_aggregate_stats = null;
    /**
     * This field is deprecated, do not rely on it having a value.
     *
     * Generated from protobuf field <code>int64 overlapping_asset_count = 4 [deprecated = true];</code>
     * @deprecated
     */
    protected $overlapping_asset_count = 0;
    /**
     * Findings for each of the PreferenceSets for this group.
     *
     * Generated from protobuf field <code>repeated .google.cloud.migrationcenter.v1.ReportSummary.GroupPreferenceSetFinding preference_set_findings = 5;</code>
     */
    private $preference_set_findings;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $display_name
     *           Display Name for the Group.
     *     @type string $description
     *           Description for the Group.
     *     @type \Google\Cloud\MigrationCenter\V1\ReportSummary\AssetAggregateStats $asset_aggregate_stats
     *           Summary statistics for all the assets in this group.
     *     @type int|string $overlapping_asset_count
     *           This field is deprecated, do not rely on it having a value.
     *     @type array<\Google\Cloud\MigrationCenter\V1\ReportSummary\GroupPreferenceSetFinding>|\Google\Protobuf\Internal\RepeatedField $preference_set_findings
     *           Findings for each of the PreferenceSets for this group.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Migrationcenter\V1\Migrationcenter::initOnce();
        parent::__construct($data);
    }

    /**
     * Display Name for the Group.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Display Name for the Group.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * Description for the Group.
     *
     * Generated from protobuf field <code>string description = 2;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Description for the Group.
     *
     * Generated from protobuf field <code>string description = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Summary statistics for all the assets in this group.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.ReportSummary.AssetAggregateStats asset_aggregate_stats = 3;</code>
     * @return \Google\Cloud\MigrationCenter\V1\ReportSummary\AssetAggregateStats|null
     */
    public function getAssetAggregateStats()
    {
        return $this->asset_aggregate_stats;
    }

    public function hasAssetAggregateStats()
    {
        return isset($this->asset_aggregate_stats);
    }

    public function clearAssetAggregateStats()
    {
        unset($this->asset_aggregate_stats);
    }

    /**
     * Summary statistics for all the assets in this group.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.ReportSummary.AssetAggregateStats asset_aggregate_stats = 3;</code>
     * @param \Google\Cloud\MigrationCenter\V1\ReportSummary\AssetAggregateStats $var
     * @return $this
     */
    public function setAssetAggregateStats($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\MigrationCenter\V1\ReportSummary\AssetAggregateStats::class);
        $this->asset_aggregate_stats = $var;

        return $this;
    }

    /**
     * This field is deprecated, do not rely on it having a value.
     *
     * Generated from protobuf field <code>int64 overlapping_asset_count = 4 [deprecated = true];</code>
     * @return int|string
     * @deprecated
     */
    public function getOverlappingAssetCount()
    {
        @trigger_error('overlapping_asset_count is deprecated.', E_USER_DEPRECATED);
        return $this->overlapping_asset_count;
    }

    /**
     * This field is deprecated, do not rely on it having a value.
     *
     * Generated from protobuf field <code>int64 overlapping_asset_count = 4 [deprecated = true];</code>
     * @param int|string $var
     * @return $this
     * @deprecated
     */
    public function setOverlappingAssetCount($var)
    {
        @trigger_error('overlapping_asset_count is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkInt64($var);
        $this->overlapping_asset_count = $var;

        return $this;
    }

    /**
     * Findings for each of the PreferenceSets for this group.
     *
     * Generated from protobuf field <code>repeated .google.cloud.migrationcenter.v1.ReportSummary.GroupPreferenceSetFinding preference_set_findings = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPreferenceSetFindings()
    {
        return $this->preference_set_findings;
    }

    /**
     * Findings for each of the PreferenceSets for this group.
     *
     * Generated from protobuf field <code>repeated .google.cloud.migrationcenter.v1.ReportSummary.GroupPreferenceSetFinding preference_set_findings = 5;</code>
     * @param array<\Google\Cloud\MigrationCenter\V1\ReportSummary\GroupPreferenceSetFinding>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPreferenceSetFindings($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\MigrationCenter\V1\ReportSummary\GroupPreferenceSetFinding::class);
        $this->preference_set_findings = $arr;

        return $this;
    }

}


