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

namespace Google\Ads\GoogleAds\V25\Services;

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

/**
 * Response message for
 * [ShareablePreviewService.GenerateShareablePreviews][google.ads.googleads.v25.services.ShareablePreviewService.GenerateShareablePreviews].
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.GenerateShareablePreviewsResponse</code>
 */
class GenerateShareablePreviewsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The result of the generate shareable previews action.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.actions.GenerateShareablePreviewsResult result = 3;</code>
     */
    protected $result = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Actions\GenerateShareablePreviewsResult $result
     *           The result of the generate shareable previews action.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\ShareablePreviewService::initOnce();
        parent::__construct($data);
    }

    /**
     * The result of the generate shareable previews action.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.actions.GenerateShareablePreviewsResult result = 3;</code>
     * @return \Google\Ads\GoogleAds\V25\Actions\GenerateShareablePreviewsResult|null
     */
    public function getResult()
    {
        return $this->result;
    }

    public function hasResult()
    {
        return isset($this->result);
    }

    public function clearResult()
    {
        unset($this->result);
    }

    /**
     * The result of the generate shareable previews action.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.actions.GenerateShareablePreviewsResult result = 3;</code>
     * @param \Google\Ads\GoogleAds\V25\Actions\GenerateShareablePreviewsResult $var
     * @return $this
     */
    public function setResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V25\Actions\GenerateShareablePreviewsResult::class);
        $this->result = $var;

        return $this;
    }

}

