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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Details of the conversation that needs to be appended.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.Conversation</code>
 */
class Conversation extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The resource name of the local services lead that the
     * conversation should be applied to.
     *
     * Generated from protobuf field <code>string local_services_lead = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $local_services_lead = '';
    /**
     * Required. Text message that user wanted to append to lead.
     *
     * Generated from protobuf field <code>string text = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $text = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $local_services_lead
     *           Required. The resource name of the local services lead that the
     *           conversation should be applied to.
     *     @type string $text
     *           Required. Text message that user wanted to append to lead.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\LocalServicesLeadService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The resource name of the local services lead that the
     * conversation should be applied to.
     *
     * Generated from protobuf field <code>string local_services_lead = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getLocalServicesLead()
    {
        return $this->local_services_lead;
    }

    /**
     * Required. The resource name of the local services lead that the
     * conversation should be applied to.
     *
     * Generated from protobuf field <code>string local_services_lead = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setLocalServicesLead($var)
    {
        GPBUtil::checkString($var, True);
        $this->local_services_lead = $var;

        return $this;
    }

    /**
     * Required. Text message that user wanted to append to lead.
     *
     * Generated from protobuf field <code>string text = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Required. Text message that user wanted to append to lead.
     *
     * Generated from protobuf field <code>string text = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkString($var, True);
        $this->text = $var;

        return $this;
    }

}

