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

namespace Google\Ads\GoogleAds\V25\Actions;

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

/**
 * Result of the GenerateShareablePreviews action.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.actions.GenerateShareablePreviewsResult</code>
 */
class GenerateShareablePreviewsResult extends \Google\Protobuf\Internal\Message
{
    /**
     * List of previews.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.actions.ShareablePreviewResult previews = 1;</code>
     */
    private $previews;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Actions\ShareablePreviewResult[] $previews
     *           List of previews.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Actions\GenerateShareablePreviews::initOnce();
        parent::__construct($data);
    }

    /**
     * List of previews.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.actions.ShareablePreviewResult previews = 1;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Actions\ShareablePreviewResult>
     */
    public function getPreviews()
    {
        return $this->previews;
    }

    /**
     * List of previews.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.actions.ShareablePreviewResult previews = 1;</code>
     * @param \Google\Ads\GoogleAds\V25\Actions\ShareablePreviewResult[] $var
     * @return $this
     */
    public function setPreviews($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Actions\ShareablePreviewResult::class);
        $this->previews = $arr;

        return $this;
    }

}

