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

namespace Google\Cloud\CapacityPlanner\V1beta;

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

/**
 * Response for capacity plan insights.
 *
 * Generated from protobuf message <code>google.cloud.capacityplanner.v1beta.QueryCapacityPlanInsightsResponse</code>
 */
class QueryCapacityPlanInsightsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The aggregated capacity plan view. This is the aggregated view of
     * all the capacity plans that match the filters.
     *
     * Generated from protobuf field <code>.google.cloud.capacityplanner.v1beta.CapacityPlanView aggregated_capacity_plan_view = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $aggregated_capacity_plan_view = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\CapacityPlanner\V1beta\CapacityPlanView $aggregated_capacity_plan_view
     *           Optional. The aggregated capacity plan view. This is the aggregated view of
     *           all the capacity plans that match the filters.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Capacityplanner\V1Beta\CapacityPlanningService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The aggregated capacity plan view. This is the aggregated view of
     * all the capacity plans that match the filters.
     *
     * Generated from protobuf field <code>.google.cloud.capacityplanner.v1beta.CapacityPlanView aggregated_capacity_plan_view = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\CapacityPlanner\V1beta\CapacityPlanView|null
     */
    public function getAggregatedCapacityPlanView()
    {
        return $this->aggregated_capacity_plan_view;
    }

    public function hasAggregatedCapacityPlanView()
    {
        return isset($this->aggregated_capacity_plan_view);
    }

    public function clearAggregatedCapacityPlanView()
    {
        unset($this->aggregated_capacity_plan_view);
    }

    /**
     * Optional. The aggregated capacity plan view. This is the aggregated view of
     * all the capacity plans that match the filters.
     *
     * Generated from protobuf field <code>.google.cloud.capacityplanner.v1beta.CapacityPlanView aggregated_capacity_plan_view = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\CapacityPlanner\V1beta\CapacityPlanView $var
     * @return $this
     */
    public function setAggregatedCapacityPlanView($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\CapacityPlanner\V1beta\CapacityPlanView::class);
        $this->aggregated_capacity_plan_view = $var;

        return $this;
    }

}

