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

namespace Google\Ads\GoogleAds\V24\Resources;

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

/**
 * Represents a video upload to YouTube using the Google Ads API.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.YouTubeVideoUpload</code>
 */
class YouTubeVideoUpload extends \Google\Protobuf\Internal\Message
{
    /**
     * Immutable. Resource name of the YouTube video upload.
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     */
    protected $resource_name = '';
    /**
     * Output only. The unique ID of the YouTube video upload.
     *
     * Generated from protobuf field <code>int64 video_upload_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $video_upload_id = 0;
    /**
     * Immutable. The destination YouTube channel ID for the video upload.
     * Only mutable on YouTube video upload creation. If omitted, the video
     * will be uploaded to the Google-managed YouTube channel associated with the
     * Ads account.
     *
     * Generated from protobuf field <code>string channel_id = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $channel_id = '';
    /**
     * Output only. The YouTube video ID of the uploaded video.
     *
     * Generated from protobuf field <code>string video_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $video_id = '';
    /**
     * Output only. The current state of the YouTube video upload.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.YouTubeVideoUploadStateEnum.YouTubeVideoUploadState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $state = 0;
    /**
     * Input only. Immutable. The title of the video.
     * Only mutable on YouTube video upload creation. Immutable after creation.
     *
     * Generated from protobuf field <code>string video_title = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $video_title = '';
    /**
     * Input only. Immutable. The description of the video.
     * Only mutable on YouTube video upload creation. Immutable after creation.
     *
     * Generated from protobuf field <code>string video_description = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $video_description = '';
    /**
     * The privacy state of the video.
     * Only mutable for videos uploaded to the advertiser owned (brand) YouTube
     * channel. For videos uploaded to the Google-managed channels only UNLISTED
     * privacy is allowed. Defaults to UNLISTED privacy if not specified.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.YouTubeVideoPrivacyEnum.YouTubeVideoPrivacy video_privacy = 8;</code>
     */
    protected $video_privacy = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $resource_name
     *           Immutable. Resource name of the YouTube video upload.
     * @type int|string $video_upload_id
     *           Output only. The unique ID of the YouTube video upload.
     * @type string $channel_id
     *           Immutable. The destination YouTube channel ID for the video upload.
     *           Only mutable on YouTube video upload creation. If omitted, the video
     *           will be uploaded to the Google-managed YouTube channel associated with the
     *           Ads account.
     * @type string $video_id
     *           Output only. The YouTube video ID of the uploaded video.
     * @type int $state
     *           Output only. The current state of the YouTube video upload.
     * @type string $video_title
     *           Input only. Immutable. The title of the video.
     *           Only mutable on YouTube video upload creation. Immutable after creation.
     * @type string $video_description
     *           Input only. Immutable. The description of the video.
     *           Only mutable on YouTube video upload creation. Immutable after creation.
     * @type int $video_privacy
     *           The privacy state of the video.
     *           Only mutable for videos uploaded to the advertiser owned (brand) YouTube
     *           channel. For videos uploaded to the Google-managed channels only UNLISTED
     *           privacy is allowed. Defaults to UNLISTED privacy if not specified.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\YoutubeVideoUpload::initOnce();
        parent::__construct($data);
    }

    /**
     * Immutable. Resource name of the YouTube video upload.
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     *
     * @return string
     */
    public function getResourceName()
    {
        return $this->resource_name;
    }

    /**
     * Immutable. Resource name of the YouTube video upload.
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setResourceName($var)
    {
        GPBUtil::checkString($var, true);
        $this->resource_name = $var;

        return $this;
    }

    /**
     * Output only. The unique ID of the YouTube video upload.
     *
     * Generated from protobuf field <code>int64 video_upload_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int|string
     */
    public function getVideoUploadId()
    {
        return $this->video_upload_id;
    }

    /**
     * Output only. The unique ID of the YouTube video upload.
     *
     * Generated from protobuf field <code>int64 video_upload_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int|string $var
     * @return $this
     */
    public function setVideoUploadId($var)
    {
        GPBUtil::checkInt64($var);
        $this->video_upload_id = $var;

        return $this;
    }

    /**
     * Immutable. The destination YouTube channel ID for the video upload.
     * Only mutable on YouTube video upload creation. If omitted, the video
     * will be uploaded to the Google-managed YouTube channel associated with the
     * Ads account.
     *
     * Generated from protobuf field <code>string channel_id = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return string
     */
    public function getChannelId()
    {
        return $this->channel_id;
    }

    /**
     * Immutable. The destination YouTube channel ID for the video upload.
     * Only mutable on YouTube video upload creation. If omitted, the video
     * will be uploaded to the Google-managed YouTube channel associated with the
     * Ads account.
     *
     * Generated from protobuf field <code>string channel_id = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setChannelId($var)
    {
        GPBUtil::checkString($var, true);
        $this->channel_id = $var;

        return $this;
    }

    /**
     * Output only. The YouTube video ID of the uploaded video.
     *
     * Generated from protobuf field <code>string video_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getVideoId()
    {
        return $this->video_id;
    }

    /**
     * Output only. The YouTube video ID of the uploaded video.
     *
     * Generated from protobuf field <code>string video_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setVideoId($var)
    {
        GPBUtil::checkString($var, true);
        $this->video_id = $var;

        return $this;
    }

    /**
     * Output only. The current state of the YouTube video upload.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.YouTubeVideoUploadStateEnum.YouTubeVideoUploadState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Output only. The current state of the YouTube video upload.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.YouTubeVideoUploadStateEnum.YouTubeVideoUploadState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\YouTubeVideoUploadStateEnum\YouTubeVideoUploadState::class);
        $this->state = $var;

        return $this;
    }

    /**
     * Input only. Immutable. The title of the video.
     * Only mutable on YouTube video upload creation. Immutable after creation.
     *
     * Generated from protobuf field <code>string video_title = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return string
     */
    public function getVideoTitle()
    {
        return $this->video_title;
    }

    /**
     * Input only. Immutable. The title of the video.
     * Only mutable on YouTube video upload creation. Immutable after creation.
     *
     * Generated from protobuf field <code>string video_title = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setVideoTitle($var)
    {
        GPBUtil::checkString($var, true);
        $this->video_title = $var;

        return $this;
    }

    /**
     * Input only. Immutable. The description of the video.
     * Only mutable on YouTube video upload creation. Immutable after creation.
     *
     * Generated from protobuf field <code>string video_description = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return string
     */
    public function getVideoDescription()
    {
        return $this->video_description;
    }

    /**
     * Input only. Immutable. The description of the video.
     * Only mutable on YouTube video upload creation. Immutable after creation.
     *
     * Generated from protobuf field <code>string video_description = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setVideoDescription($var)
    {
        GPBUtil::checkString($var, true);
        $this->video_description = $var;

        return $this;
    }

    /**
     * The privacy state of the video.
     * Only mutable for videos uploaded to the advertiser owned (brand) YouTube
     * channel. For videos uploaded to the Google-managed channels only UNLISTED
     * privacy is allowed. Defaults to UNLISTED privacy if not specified.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.YouTubeVideoPrivacyEnum.YouTubeVideoPrivacy video_privacy = 8;</code>
     *
     * @return int
     */
    public function getVideoPrivacy()
    {
        return $this->video_privacy;
    }

    /**
     * The privacy state of the video.
     * Only mutable for videos uploaded to the advertiser owned (brand) YouTube
     * channel. For videos uploaded to the Google-managed channels only UNLISTED
     * privacy is allowed. Defaults to UNLISTED privacy if not specified.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.YouTubeVideoPrivacyEnum.YouTubeVideoPrivacy video_privacy = 8;</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setVideoPrivacy($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\YouTubeVideoPrivacyEnum\YouTubeVideoPrivacy::class);
        $this->video_privacy = $var;

        return $this;
    }

}

