<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/resources/asset_group.proto

namespace Google\Ads\GoogleAds\V25\Resources;

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

/**
 * Local services info for the asset group.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.GoogleLocalServicesInfo</code>
 */
class GoogleLocalServicesInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Immutable. The local services category associated with this asset group.
     * That is, XCAT format - xcat:service_area_business_plumber. See
     * https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
     * This field cannot be modified after the AssetGroup has been created.
     *
     * Generated from protobuf field <code>optional string category_id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $category_id = null;
    /**
     * Callouts selected by the advertiser to show.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.resources.LocalServicesCallout callouts = 2;</code>
     */
    private $callouts;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $category_id
     *           Immutable. The local services category associated with this asset group.
     *           That is, XCAT format - xcat:service_area_business_plumber. See
     *           https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
     *           This field cannot be modified after the AssetGroup has been created.
     *     @type \Google\Ads\GoogleAds\V25\Resources\LocalServicesCallout[] $callouts
     *           Callouts selected by the advertiser to show.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\AssetGroup::initOnce();
        parent::__construct($data);
    }

    /**
     * Immutable. The local services category associated with this asset group.
     * That is, XCAT format - xcat:service_area_business_plumber. See
     * https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
     * This field cannot be modified after the AssetGroup has been created.
     *
     * Generated from protobuf field <code>optional string category_id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getCategoryId()
    {
        return isset($this->category_id) ? $this->category_id : '';
    }

    public function hasCategoryId()
    {
        return isset($this->category_id);
    }

    public function clearCategoryId()
    {
        unset($this->category_id);
    }

    /**
     * Immutable. The local services category associated with this asset group.
     * That is, XCAT format - xcat:service_area_business_plumber. See
     * https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
     * This field cannot be modified after the AssetGroup has been created.
     *
     * Generated from protobuf field <code>optional string category_id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setCategoryId($var)
    {
        GPBUtil::checkString($var, True);
        $this->category_id = $var;

        return $this;
    }

    /**
     * Callouts selected by the advertiser to show.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.resources.LocalServicesCallout callouts = 2;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Resources\LocalServicesCallout>
     */
    public function getCallouts()
    {
        return $this->callouts;
    }

    /**
     * Callouts selected by the advertiser to show.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.resources.LocalServicesCallout callouts = 2;</code>
     * @param \Google\Ads\GoogleAds\V25\Resources\LocalServicesCallout[] $var
     * @return $this
     */
    public function setCallouts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Resources\LocalServicesCallout::class);
        $this->callouts = $arr;

        return $this;
    }

}

