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

namespace Google\Ads\GoogleAds\V21\Services;

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

/**
 * Response message for
 * [LocalServicesLeadService.AppendLeadConversation][google.ads.googleads.v21.services.LocalServicesLeadService.AppendLeadConversation].
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.services.AppendLeadConversationResponse</code>
 */
class AppendLeadConversationResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. List of append conversation operation results.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v21.services.ConversationOrError responses = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $responses;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V21\Services\ConversationOrError>|\Google\Protobuf\Internal\RepeatedField $responses
     *           Required. List of append conversation operation results.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V21\Services\LocalServicesLeadService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. List of append conversation operation results.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v21.services.ConversationOrError responses = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getResponses()
    {
        return $this->responses;
    }

    /**
     * Required. List of append conversation operation results.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v21.services.ConversationOrError responses = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Ads\GoogleAds\V21\Services\ConversationOrError>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setResponses($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V21\Services\ConversationOrError::class);
        $this->responses = $arr;

        return $this;
    }

}

