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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * A Local Services Document with read only accessible data.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.LocalServicesDocumentReadOnly</code>
 */
class LocalServicesDocumentReadOnly extends \Google\Protobuf\Internal\Message
{
    /**
     * URL to access an already uploaded Local Services document.
     *
     * Generated from protobuf field <code>optional string document_url = 1;</code>
     */
    protected $document_url = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $document_url
     *           URL to access an already uploaded Local Services document.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\LocalServices::initOnce();
        parent::__construct($data);
    }

    /**
     * URL to access an already uploaded Local Services document.
     *
     * Generated from protobuf field <code>optional string document_url = 1;</code>
     * @return string
     */
    public function getDocumentUrl()
    {
        return isset($this->document_url) ? $this->document_url : '';
    }

    public function hasDocumentUrl()
    {
        return isset($this->document_url);
    }

    public function clearDocumentUrl()
    {
        unset($this->document_url);
    }

    /**
     * URL to access an already uploaded Local Services document.
     *
     * Generated from protobuf field <code>optional string document_url = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDocumentUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->document_url = $var;

        return $this;
    }

}

