<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v20/common/audience_insights_attribute.proto

namespace Google\Ads\GoogleAds\V20\Common;

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

/**
 * A Product and Service category.
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.common.AudienceInsightsCategory</code>
 */
class AudienceInsightsCategory extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The criterion ID of the category.
     *
     * Generated from protobuf field <code>string category_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $category_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $category_id
     *           Required. The criterion ID of the category.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Common\AudienceInsightsAttribute::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The criterion ID of the category.
     *
     * Generated from protobuf field <code>string category_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCategoryId()
    {
        return $this->category_id;
    }

    /**
     * Required. The criterion ID of the category.
     *
     * Generated from protobuf field <code>string category_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCategoryId($var)
    {
        GPBUtil::checkString($var, True);
        $this->category_id = $var;

        return $this;
    }

}

