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

namespace Google\Ads\GoogleAds\V25\Common;

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

/**
 * Contains policy information for an asset inside an ad.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.common.AdAssetPolicySummary</code>
 */
class AdAssetPolicySummary extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of policy findings for this asset.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.PolicyTopicEntry policy_topic_entries = 1;</code>
     */
    private $policy_topic_entries;
    /**
     * Where in the review process this asset.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2;</code>
     */
    protected $review_status = 0;
    /**
     * The overall approval status of this asset, which is calculated based on
     * the status of its individual policy topic entries.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3;</code>
     */
    protected $approval_status = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Common\PolicyTopicEntry[] $policy_topic_entries
     *           The list of policy findings for this asset.
     *     @type int $review_status
     *           Where in the review process this asset.
     *     @type int $approval_status
     *           The overall approval status of this asset, which is calculated based on
     *           the status of its individual policy topic entries.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Common\AssetPolicy::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of policy findings for this asset.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.PolicyTopicEntry policy_topic_entries = 1;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\PolicyTopicEntry>
     */
    public function getPolicyTopicEntries()
    {
        return $this->policy_topic_entries;
    }

    /**
     * The list of policy findings for this asset.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.PolicyTopicEntry policy_topic_entries = 1;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\PolicyTopicEntry[] $var
     * @return $this
     */
    public function setPolicyTopicEntries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\PolicyTopicEntry::class);
        $this->policy_topic_entries = $arr;

        return $this;
    }

    /**
     * Where in the review process this asset.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2;</code>
     * @return int
     */
    public function getReviewStatus()
    {
        return $this->review_status;
    }

    /**
     * Where in the review process this asset.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setReviewStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\PolicyReviewStatusEnum\PolicyReviewStatus::class);
        $this->review_status = $var;

        return $this;
    }

    /**
     * The overall approval status of this asset, which is calculated based on
     * the status of its individual policy topic entries.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3;</code>
     * @return int
     */
    public function getApprovalStatus()
    {
        return $this->approval_status;
    }

    /**
     * The overall approval status of this asset, which is calculated based on
     * the status of its individual policy topic entries.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setApprovalStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\PolicyApprovalStatusEnum\PolicyApprovalStatus::class);
        $this->approval_status = $var;

        return $this;
    }

}

