<?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;

/**
 * Publisher provided identifiers data holding the ppids. At least one ppid is
 * required.
 * This feature is only available to data partners.
 *
 * Generated from protobuf message <code>google.ads.datamanager.v1.PpidData</code>
 */
class PpidData extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The list of publisher provided identifiers for a user.
     *
     * Generated from protobuf field <code>repeated string ppids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $ppids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $ppids
     *           Required. The list of publisher provided identifiers for a user.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Datamanager\V1\Audience::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The list of publisher provided identifiers for a user.
     *
     * Generated from protobuf field <code>repeated string ppids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPpids()
    {
        return $this->ppids;
    }

    /**
     * Required. The list of publisher provided identifiers for a user.
     *
     * Generated from protobuf field <code>repeated string ppids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPpids($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->ppids = $arr;

        return $this;
    }

}

