<?php
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v24/actions/quote_campaigns.proto

namespace Google\Ads\GoogleAds\V24\Actions;

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

/**
 * The response of the QuoteCampaigns action, when the action is successful.
 * Note that if the response contains errors, the action response will not be
 * returned, but a quote may still be returned in the
 * ErrorDetails.reservation_error_details field.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.actions.QuoteCampaignsResult</code>
 */
class QuoteCampaignsResult extends \Google\Protobuf\Internal\Message
{
    /**
     * The quotes for the requested campaigns.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.CampaignReservationQuote quotes = 1;</code>
     */
    private $quotes;
    /**
     * The signature of the quote. This signature should be used when booking the
     * quote.
     *
     * Generated from protobuf field <code>string quote_signature = 2;</code>
     */
    protected $quote_signature = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V24\Common\CampaignReservationQuote[] $quotes
     *           The quotes for the requested campaigns.
     * @type string $quote_signature
     *           The signature of the quote. This signature should be used when booking the
     *           quote.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Actions\QuoteCampaigns::initOnce();
        parent::__construct($data);
    }

    /**
     * The quotes for the requested campaigns.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.CampaignReservationQuote quotes = 1;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\CampaignReservationQuote>
     */
    public function getQuotes()
    {
        return $this->quotes;
    }

    /**
     * The quotes for the requested campaigns.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.CampaignReservationQuote quotes = 1;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\CampaignReservationQuote[] $var
     * @return $this
     */
    public function setQuotes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Common\CampaignReservationQuote::class);
        $this->quotes = $arr;

        return $this;
    }

    /**
     * The signature of the quote. This signature should be used when booking the
     * quote.
     *
     * Generated from protobuf field <code>string quote_signature = 2;</code>
     *
     * @return string
     */
    public function getQuoteSignature()
    {
        return $this->quote_signature;
    }

    /**
     * The signature of the quote. This signature should be used when booking the
     * quote.
     *
     * Generated from protobuf field <code>string quote_signature = 2;</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setQuoteSignature($var)
    {
        GPBUtil::checkString($var, true);
        $this->quote_signature = $var;

        return $this;
    }

}

