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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * A shareable preview with its identifier.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ShareablePreview</code>
 */
class ShareablePreview extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Asset group of the shareable preview.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.AssetGroupIdentifier asset_group_identifier = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $asset_group_identifier = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Services\AssetGroupIdentifier $asset_group_identifier
     *           Required. Asset group of the shareable preview.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\ShareablePreviewService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Asset group of the shareable preview.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.AssetGroupIdentifier asset_group_identifier = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V23\Services\AssetGroupIdentifier|null
     */
    public function getAssetGroupIdentifier()
    {
        return $this->asset_group_identifier;
    }

    public function hasAssetGroupIdentifier()
    {
        return isset($this->asset_group_identifier);
    }

    public function clearAssetGroupIdentifier()
    {
        unset($this->asset_group_identifier);
    }

    /**
     * Required. Asset group of the shareable preview.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.services.AssetGroupIdentifier asset_group_identifier = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V23\Services\AssetGroupIdentifier $var
     * @return $this
     */
    public function setAssetGroupIdentifier($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Services\AssetGroupIdentifier::class);
        $this->asset_group_identifier = $var;

        return $this;
    }

}

