<?php
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v23/errors/errors.proto

namespace Google\Ads\GoogleAds\V23\Errors;

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

/**
 * Error returned as part of a mutate response.
 * This error indicates one or more policy findings in the fields of a
 * resource.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.errors.PolicyFindingDetails</code>
 */
class PolicyFindingDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of policy topics for the resource. Contains the PROHIBITED or
     * FULLY_LIMITED policy topic entries that prevented the resource from being
     * saved (among any other entries the resource may also have).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.PolicyTopicEntry policy_topic_entries = 1;</code>
     */
    private $policy_topic_entries;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V23\Common\PolicyTopicEntry[] $policy_topic_entries
     *           The list of policy topics for the resource. Contains the PROHIBITED or
     *           FULLY_LIMITED policy topic entries that prevented the resource from being
     *           saved (among any other entries the resource may also have).
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Errors\Errors::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of policy topics for the resource. Contains the PROHIBITED or
     * FULLY_LIMITED policy topic entries that prevented the resource from being
     * saved (among any other entries the resource may also have).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.PolicyTopicEntry policy_topic_entries = 1;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V23\Common\PolicyTopicEntry>
     */
    public function getPolicyTopicEntries()
    {
        return $this->policy_topic_entries;
    }

    /**
     * The list of policy topics for the resource. Contains the PROHIBITED or
     * FULLY_LIMITED policy topic entries that prevented the resource from being
     * saved (among any other entries the resource may also have).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.PolicyTopicEntry policy_topic_entries = 1;</code>
     *
     * @param  \Google\Ads\GoogleAds\V23\Common\PolicyTopicEntry[] $var
     * @return $this
     */
    public function setPolicyTopicEntries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Common\PolicyTopicEntry::class);
        $this->policy_topic_entries = $arr;

        return $this;
    }

}

