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

namespace Google\Ads\GoogleAds\V23\Resources;

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

/**
 * Represents details of text message in case of email, message or SMS.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.MessageDetails</code>
 */
class MessageDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Textual content of the message.
     *
     * Generated from protobuf field <code>string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $text = '';
    /**
     * Output only. URL to the SMS or email attachments. These URLs can be used to
     * download the contents of the attachment by using the developer token.
     *
     * Generated from protobuf field <code>repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $attachment_urls;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $text
     *           Output only. Textual content of the message.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $attachment_urls
     *           Output only. URL to the SMS or email attachments. These URLs can be used to
     *           download the contents of the attachment by using the developer token.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\LocalServicesLeadConversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Textual content of the message.
     *
     * Generated from protobuf field <code>string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Output only. Textual content of the message.
     *
     * Generated from protobuf field <code>string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkString($var, True);
        $this->text = $var;

        return $this;
    }

    /**
     * Output only. URL to the SMS or email attachments. These URLs can be used to
     * download the contents of the attachment by using the developer token.
     *
     * Generated from protobuf field <code>repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAttachmentUrls()
    {
        return $this->attachment_urls;
    }

    /**
     * Output only. URL to the SMS or email attachments. These URLs can be used to
     * download the contents of the attachment by using the developer token.
     *
     * Generated from protobuf field <code>repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAttachmentUrls($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->attachment_urls = $arr;

        return $this;
    }

}

