<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/datamanager/v1/audience.proto

namespace Google\Ads\DataManager\V1;

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

/**
 * Mobile IDs for the audience. At least one mobile ID is required.
 *
 * Generated from protobuf message <code>google.ads.datamanager.v1.MobileData</code>
 */
class MobileData extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
     * `mobileIds` can be provided in a single
     * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
     *
     * Generated from protobuf field <code>repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $mobile_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $mobile_ids
     *           Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
     *           `mobileIds` can be provided in a single
     *           [AudienceMember][google.ads.datamanager.v1.AudienceMember].
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Datamanager\V1\Audience::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
     * `mobileIds` can be provided in a single
     * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
     *
     * Generated from protobuf field <code>repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMobileIds()
    {
        return $this->mobile_ids;
    }

    /**
     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
     * `mobileIds` can be provided in a single
     * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
     *
     * Generated from protobuf field <code>repeated string mobile_ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMobileIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->mobile_ids = $arr;

        return $this;
    }

}

