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

namespace Google\Ads\GoogleAds\V24\Services;

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

/**
 * Request message for
 * [ReservationService.BookCampaigns][google.ads.googleads.v24.services.ReservationService.BookCampaigns].
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.services.BookCampaignsRequest</code>
 */
class BookCampaignsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The ID of the customer making the request.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $customer_id = '';
    /**
     * The operation to book the campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.actions.BookCampaignsOperation operation = 2;</code>
     */
    protected $operation = null;

    /**
     * @param string $customerId Required. The ID of the customer making the request.
     *
     * @return \Google\Ads\GoogleAds\V24\Services\BookCampaignsRequest
     *
     * @experimental
     */
    public static function build(string $customerId): self
    {
        return (new self())
            ->setCustomerId($customerId);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $customer_id
     *           Required. The ID of the customer making the request.
     * @type \Google\Ads\GoogleAds\V24\Actions\BookCampaignsOperation $operation
     *           The operation to book the campaigns.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Services\ReservationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The ID of the customer making the request.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return string
     */
    public function getCustomerId()
    {
        return $this->customer_id;
    }

    /**
     * Required. The ID of the customer making the request.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setCustomerId($var)
    {
        GPBUtil::checkString($var, true);
        $this->customer_id = $var;

        return $this;
    }

    /**
     * The operation to book the campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.actions.BookCampaignsOperation operation = 2;</code>
     *
     * @return \Google\Ads\GoogleAds\V24\Actions\BookCampaignsOperation|null
     */
    public function getOperation()
    {
        return $this->operation;
    }

    public function hasOperation()
    {
        return isset($this->operation);
    }

    public function clearOperation()
    {
        unset($this->operation);
    }

    /**
     * The operation to book the campaigns.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.actions.BookCampaignsOperation operation = 2;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Actions\BookCampaignsOperation $var
     * @return $this
     */
    public function setOperation($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V24\Actions\BookCampaignsOperation::class);
        $this->operation = $var;

        return $this;
    }

}

