<?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 source used to generate benchmarks metrics for. The ID of the source can
 * be obtained from
 * [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v23.services.BenchmarksService.ListBenchmarksSources].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.BenchmarksSource</code>
 */
class BenchmarksSource extends \Google\Protobuf\Internal\Message
{
    protected $benchmarks_source_id;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $industry_vertical_id
     *           The ID of the Industry Vertical.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\BenchmarksService::initOnce();
        parent::__construct($data);
    }

    /**
     * The ID of the Industry Vertical.
     *
     * Generated from protobuf field <code>int64 industry_vertical_id = 1;</code>
     * @return int|string
     */
    public function getIndustryVerticalId()
    {
        return $this->readOneof(1);
    }

    public function hasIndustryVerticalId()
    {
        return $this->hasOneof(1);
    }

    /**
     * The ID of the Industry Vertical.
     *
     * Generated from protobuf field <code>int64 industry_vertical_id = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setIndustryVerticalId($var)
    {
        GPBUtil::checkInt64($var);
        $this->writeOneof(1, $var);

        return $this;
    }

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

}

