<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/discoveryengine/v1/site_search_engine_service.proto

namespace Google\Cloud\DiscoveryEngine\V1\FetchSitemapsResponse;

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

/**
 * Contains a [Sitemap][google.cloud.discoveryengine.v1.Sitemap] and its
 * metadata.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1.FetchSitemapsResponse.SitemapMetadata</code>
 */
class SitemapMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The [Sitemap][google.cloud.discoveryengine.v1.Sitemap].
     *
     * Generated from protobuf field <code>.google.cloud.discoveryengine.v1.Sitemap sitemap = 1;</code>
     */
    protected $sitemap = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DiscoveryEngine\V1\Sitemap $sitemap
     *           The [Sitemap][google.cloud.discoveryengine.v1.Sitemap].
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce();
        parent::__construct($data);
    }

    /**
     * The [Sitemap][google.cloud.discoveryengine.v1.Sitemap].
     *
     * Generated from protobuf field <code>.google.cloud.discoveryengine.v1.Sitemap sitemap = 1;</code>
     * @return \Google\Cloud\DiscoveryEngine\V1\Sitemap|null
     */
    public function getSitemap()
    {
        return $this->sitemap;
    }

    public function hasSitemap()
    {
        return isset($this->sitemap);
    }

    public function clearSitemap()
    {
        unset($this->sitemap);
    }

    /**
     * The [Sitemap][google.cloud.discoveryengine.v1.Sitemap].
     *
     * Generated from protobuf field <code>.google.cloud.discoveryengine.v1.Sitemap sitemap = 1;</code>
     * @param \Google\Cloud\DiscoveryEngine\V1\Sitemap $var
     * @return $this
     */
    public function setSitemap($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Sitemap::class);
        $this->sitemap = $var;

        return $this;
    }

}


