<?php
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v24/services/benchmarks_service.proto

namespace Google\Ads\GoogleAds\V24\Services;

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

/**
 * Metrics for a given breakdown.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.services.BreakdownMetrics</code>
 */
class BreakdownMetrics extends \Google\Protobuf\Internal\Message
{
    /**
     * Dimensions by which the breakdown metrics are grouped by.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.services.BreakdownKey breakdown_key = 1;</code>
     */
    protected $breakdown_key = null;
    /**
     * Metrics belonging to the customer.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.services.Metrics customer_metrics = 2;</code>
     */
    protected $customer_metrics = null;
    /**
     * Metrics for the selected benchmarks source.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.services.Metrics average_benchmarks_metrics = 3;</code>
     */
    protected $average_benchmarks_metrics = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V24\Services\BreakdownKey $breakdown_key
     *           Dimensions by which the breakdown metrics are grouped by.
     * @type \Google\Ads\GoogleAds\V24\Services\Metrics $customer_metrics
     *           Metrics belonging to the customer.
     * @type \Google\Ads\GoogleAds\V24\Services\Metrics $average_benchmarks_metrics
     *           Metrics for the selected benchmarks source.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Services\BenchmarksService::initOnce();
        parent::__construct($data);
    }

    /**
     * Dimensions by which the breakdown metrics are grouped by.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.services.BreakdownKey breakdown_key = 1;</code>
     *
     * @return \Google\Ads\GoogleAds\V24\Services\BreakdownKey|null
     */
    public function getBreakdownKey()
    {
        return $this->breakdown_key;
    }

    public function hasBreakdownKey()
    {
        return isset($this->breakdown_key);
    }

    public function clearBreakdownKey()
    {
        unset($this->breakdown_key);
    }

    /**
     * Dimensions by which the breakdown metrics are grouped by.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.services.BreakdownKey breakdown_key = 1;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Services\BreakdownKey $var
     * @return $this
     */
    public function setBreakdownKey($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V24\Services\BreakdownKey::class);
        $this->breakdown_key = $var;

        return $this;
    }

    /**
     * Metrics belonging to the customer.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.services.Metrics customer_metrics = 2;</code>
     *
     * @return \Google\Ads\GoogleAds\V24\Services\Metrics|null
     */
    public function getCustomerMetrics()
    {
        return $this->customer_metrics;
    }

    public function hasCustomerMetrics()
    {
        return isset($this->customer_metrics);
    }

    public function clearCustomerMetrics()
    {
        unset($this->customer_metrics);
    }

    /**
     * Metrics belonging to the customer.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.services.Metrics customer_metrics = 2;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Services\Metrics $var
     * @return $this
     */
    public function setCustomerMetrics($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V24\Services\Metrics::class);
        $this->customer_metrics = $var;

        return $this;
    }

    /**
     * Metrics for the selected benchmarks source.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.services.Metrics average_benchmarks_metrics = 3;</code>
     *
     * @return \Google\Ads\GoogleAds\V24\Services\Metrics|null
     */
    public function getAverageBenchmarksMetrics()
    {
        return $this->average_benchmarks_metrics;
    }

    public function hasAverageBenchmarksMetrics()
    {
        return isset($this->average_benchmarks_metrics);
    }

    public function clearAverageBenchmarksMetrics()
    {
        unset($this->average_benchmarks_metrics);
    }

    /**
     * Metrics for the selected benchmarks source.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.services.Metrics average_benchmarks_metrics = 3;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Services\Metrics $var
     * @return $this
     */
    public function setAverageBenchmarksMetrics($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V24\Services\Metrics::class);
        $this->average_benchmarks_metrics = $var;

        return $this;
    }

}

