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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * The metadata associated with a benchmarks source.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.BenchmarksSourceMetadata</code>
 */
class BenchmarksSourceMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The type of benchmarks source.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.BenchmarksSourceTypeEnum.BenchmarksSourceType benchmarks_source_type = 1;</code>
     */
    protected $benchmarks_source_type = 0;
    protected $benchmarks_source_info;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $benchmarks_source_type
     *           The type of benchmarks source.
     *     @type \Google\Ads\GoogleAds\V23\Services\IndustryVerticalInfo $industry_vertical_info
     *           Information on the Industry Vertical.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\BenchmarksService::initOnce();
        parent::__construct($data);
    }

    /**
     * The type of benchmarks source.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.BenchmarksSourceTypeEnum.BenchmarksSourceType benchmarks_source_type = 1;</code>
     * @return int
     */
    public function getBenchmarksSourceType()
    {
        return $this->benchmarks_source_type;
    }

    /**
     * The type of benchmarks source.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.BenchmarksSourceTypeEnum.BenchmarksSourceType benchmarks_source_type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setBenchmarksSourceType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\BenchmarksSourceTypeEnum\BenchmarksSourceType::class);
        $this->benchmarks_source_type = $var;

        return $this;
    }

    /**
     * Information on the Industry Vertical.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.IndustryVerticalInfo industry_vertical_info = 2;</code>
     * @return \Google\Ads\GoogleAds\V23\Services\IndustryVerticalInfo|null
     */
    public function getIndustryVerticalInfo()
    {
        return $this->readOneof(2);
    }

    public function hasIndustryVerticalInfo()
    {
        return $this->hasOneof(2);
    }

    /**
     * Information on the Industry Vertical.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.IndustryVerticalInfo industry_vertical_info = 2;</code>
     * @param \Google\Ads\GoogleAds\V23\Services\IndustryVerticalInfo $var
     * @return $this
     */
    public function setIndustryVerticalInfo($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Services\IndustryVerticalInfo::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getBenchmarksSourceInfo()
    {
        return $this->whichOneof("benchmarks_source_info");
    }

}

