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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Request message for
 * [YouTubeVideoUploadService.UpdateYouTubeVideoUpload][google.ads.googleads.v23.services.YouTubeVideoUploadService.UpdateYouTubeVideoUpload].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.UpdateYouTubeVideoUploadRequest</code>
 */
class UpdateYouTubeVideoUploadRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The customer ID requesting the YouTube video upload update.
     * Required.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $customer_id = '';
    /**
     * Required. The YouTube video upload resource to be updated. It's expected to
     * have a valid resource name. Required.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.YouTubeVideoUpload you_tube_video_upload = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $you_tube_video_upload = null;
    /**
     * Required. FieldMask that determines which resource fields are modified in
     * an update.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $update_mask = null;

    /**
     * @param string                                                 $customerId         Required. The customer ID requesting the YouTube video upload update.
     *                                                                                   Required.
     * @param \Google\Ads\GoogleAds\V23\Resources\YouTubeVideoUpload $youTubeVideoUpload Required. The YouTube video upload resource to be updated. It's expected to
     *                                                                                   have a valid resource name. Required.
     * @param \Google\Protobuf\FieldMask                             $updateMask         Required. FieldMask that determines which resource fields are modified in
     *                                                                                   an update.
     *
     * @return \Google\Ads\GoogleAds\V23\Services\UpdateYouTubeVideoUploadRequest
     *
     * @experimental
     */
    public static function build(string $customerId, \Google\Ads\GoogleAds\V23\Resources\YouTubeVideoUpload $youTubeVideoUpload, \Google\Protobuf\FieldMask $updateMask): self
    {
        return (new self())
            ->setCustomerId($customerId)
            ->setYouTubeVideoUpload($youTubeVideoUpload)
            ->setUpdateMask($updateMask);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $customer_id
     *           Required. The customer ID requesting the YouTube video upload update.
     *           Required.
     * @type \Google\Ads\GoogleAds\V23\Resources\YouTubeVideoUpload $you_tube_video_upload
     *           Required. The YouTube video upload resource to be updated. It's expected to
     *           have a valid resource name. Required.
     * @type \Google\Protobuf\FieldMask $update_mask
     *           Required. FieldMask that determines which resource fields are modified in
     *           an update.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\YoutubeVideoUploadService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The customer ID requesting the YouTube video upload update.
     * Required.
     *
     * 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 customer ID requesting the YouTube video upload update.
     * Required.
     *
     * 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;
    }

    /**
     * Required. The YouTube video upload resource to be updated. It's expected to
     * have a valid resource name. Required.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.YouTubeVideoUpload you_tube_video_upload = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return \Google\Ads\GoogleAds\V23\Resources\YouTubeVideoUpload|null
     */
    public function getYouTubeVideoUpload()
    {
        return $this->you_tube_video_upload;
    }

    public function hasYouTubeVideoUpload()
    {
        return isset($this->you_tube_video_upload);
    }

    public function clearYouTubeVideoUpload()
    {
        unset($this->you_tube_video_upload);
    }

    /**
     * Required. The YouTube video upload resource to be updated. It's expected to
     * have a valid resource name. Required.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.YouTubeVideoUpload you_tube_video_upload = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  \Google\Ads\GoogleAds\V23\Resources\YouTubeVideoUpload $var
     * @return $this
     */
    public function setYouTubeVideoUpload($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Resources\YouTubeVideoUpload::class);
        $this->you_tube_video_upload = $var;

        return $this;
    }

    /**
     * Required. FieldMask that determines which resource fields are modified in
     * an update.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return \Google\Protobuf\FieldMask|null
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    public function hasUpdateMask()
    {
        return isset($this->update_mask);
    }

    public function clearUpdateMask()
    {
        unset($this->update_mask);
    }

    /**
     * Required. FieldMask that determines which resource fields are modified in
     * an update.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  \Google\Protobuf\FieldMask $var
     * @return $this
     */
    public function setUpdateMask($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
        $this->update_mask = $var;

        return $this;
    }

}

