<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * 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 string[] $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 RepeatedField<string>
     */
    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  string[] $var
     * @return $this
     */
    public function setAttachmentUrls($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->attachment_urls = $arr;

        return $this;
    }

}

