Class YouTubeVideoUpload.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<YouTubeVideoUpload.Builder>
com.google.ads.googleads.v23.resources.YouTubeVideoUpload.Builder
All Implemented Interfaces:
YouTubeVideoUploadOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
YouTubeVideoUpload

public static final class YouTubeVideoUpload.Builder extends com.google.protobuf.GeneratedMessage.Builder<YouTubeVideoUpload.Builder> implements YouTubeVideoUploadOrBuilder
 Represents a video upload to YouTube using the Google Ads API.
 
Protobuf type google.ads.googleads.v23.resources.YouTubeVideoUpload
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<YouTubeVideoUpload.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<YouTubeVideoUpload.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<YouTubeVideoUpload.Builder>
    • getDefaultInstanceForType

      public YouTubeVideoUpload getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public YouTubeVideoUpload build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public YouTubeVideoUpload buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public YouTubeVideoUpload.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<YouTubeVideoUpload.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<YouTubeVideoUpload.Builder>
    • mergeFrom

      public YouTubeVideoUpload.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<YouTubeVideoUpload.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Immutable. Resource name of the YouTube video upload.
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface YouTubeVideoUploadOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. Resource name of the YouTube video upload.
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface YouTubeVideoUploadOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public YouTubeVideoUpload.Builder setResourceName(String value)
       Immutable. Resource name of the YouTube video upload.
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public YouTubeVideoUpload.Builder clearResourceName()
       Immutable. Resource name of the YouTube video upload.
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public YouTubeVideoUpload.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Immutable. Resource name of the YouTube video upload.
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getVideoUploadId

      public long getVideoUploadId()
       Output only. The unique ID of the YouTube video upload.
       
      int64 video_upload_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoUploadId in interface YouTubeVideoUploadOrBuilder
      Returns:
      The videoUploadId.
    • setVideoUploadId

      public YouTubeVideoUpload.Builder setVideoUploadId(long value)
       Output only. The unique ID of the YouTube video upload.
       
      int64 video_upload_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The videoUploadId to set.
      Returns:
      This builder for chaining.
    • clearVideoUploadId

      public YouTubeVideoUpload.Builder clearVideoUploadId()
       Output only. The unique ID of the YouTube video upload.
       
      int64 video_upload_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getChannelId

      public String getChannelId()
       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.
       
      string channel_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getChannelId in interface YouTubeVideoUploadOrBuilder
      Returns:
      The channelId.
    • getChannelIdBytes

      public com.google.protobuf.ByteString getChannelIdBytes()
       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.
       
      string channel_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getChannelIdBytes in interface YouTubeVideoUploadOrBuilder
      Returns:
      The bytes for channelId.
    • setChannelId

      public YouTubeVideoUpload.Builder setChannelId(String value)
       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.
       
      string channel_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The channelId to set.
      Returns:
      This builder for chaining.
    • clearChannelId

      public YouTubeVideoUpload.Builder clearChannelId()
       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.
       
      string channel_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setChannelIdBytes

      public YouTubeVideoUpload.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
       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.
       
      string channel_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for channelId to set.
      Returns:
      This builder for chaining.
    • getVideoId

      public String getVideoId()
       Output only. The YouTube video ID of the uploaded video.
       
      string video_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoId in interface YouTubeVideoUploadOrBuilder
      Returns:
      The videoId.
    • getVideoIdBytes

      public com.google.protobuf.ByteString getVideoIdBytes()
       Output only. The YouTube video ID of the uploaded video.
       
      string video_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoIdBytes in interface YouTubeVideoUploadOrBuilder
      Returns:
      The bytes for videoId.
    • setVideoId

      public YouTubeVideoUpload.Builder setVideoId(String value)
       Output only. The YouTube video ID of the uploaded video.
       
      string video_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The videoId to set.
      Returns:
      This builder for chaining.
    • clearVideoId

      public YouTubeVideoUpload.Builder clearVideoId()
       Output only. The YouTube video ID of the uploaded video.
       
      string video_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setVideoIdBytes

      public YouTubeVideoUpload.Builder setVideoIdBytes(com.google.protobuf.ByteString value)
       Output only. The YouTube video ID of the uploaded video.
       
      string video_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for videoId to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The current state of the YouTube video upload.
       
      .google.ads.googleads.v23.enums.YouTubeVideoUploadStateEnum.YouTubeVideoUploadState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface YouTubeVideoUploadOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public YouTubeVideoUpload.Builder setStateValue(int value)
       Output only. The current state of the YouTube video upload.
       
      .google.ads.googleads.v23.enums.YouTubeVideoUploadStateEnum.YouTubeVideoUploadState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

       Output only. The current state of the YouTube video upload.
       
      .google.ads.googleads.v23.enums.YouTubeVideoUploadStateEnum.YouTubeVideoUploadState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface YouTubeVideoUploadOrBuilder
      Returns:
      The state.
    • setState

       Output only. The current state of the YouTube video upload.
       
      .google.ads.googleads.v23.enums.YouTubeVideoUploadStateEnum.YouTubeVideoUploadState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public YouTubeVideoUpload.Builder clearState()
       Output only. The current state of the YouTube video upload.
       
      .google.ads.googleads.v23.enums.YouTubeVideoUploadStateEnum.YouTubeVideoUploadState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getVideoTitle

      public String getVideoTitle()
       Input only. Immutable. The title of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_title = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVideoTitle in interface YouTubeVideoUploadOrBuilder
      Returns:
      The videoTitle.
    • getVideoTitleBytes

      public com.google.protobuf.ByteString getVideoTitleBytes()
       Input only. Immutable. The title of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_title = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVideoTitleBytes in interface YouTubeVideoUploadOrBuilder
      Returns:
      The bytes for videoTitle.
    • setVideoTitle

      public YouTubeVideoUpload.Builder setVideoTitle(String value)
       Input only. Immutable. The title of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_title = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The videoTitle to set.
      Returns:
      This builder for chaining.
    • clearVideoTitle

      public YouTubeVideoUpload.Builder clearVideoTitle()
       Input only. Immutable. The title of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_title = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setVideoTitleBytes

      public YouTubeVideoUpload.Builder setVideoTitleBytes(com.google.protobuf.ByteString value)
       Input only. Immutable. The title of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_title = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for videoTitle to set.
      Returns:
      This builder for chaining.
    • getVideoDescription

      public String getVideoDescription()
       Input only. Immutable. The description of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_description = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVideoDescription in interface YouTubeVideoUploadOrBuilder
      Returns:
      The videoDescription.
    • getVideoDescriptionBytes

      public com.google.protobuf.ByteString getVideoDescriptionBytes()
       Input only. Immutable. The description of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_description = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVideoDescriptionBytes in interface YouTubeVideoUploadOrBuilder
      Returns:
      The bytes for videoDescription.
    • setVideoDescription

      public YouTubeVideoUpload.Builder setVideoDescription(String value)
       Input only. Immutable. The description of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_description = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The videoDescription to set.
      Returns:
      This builder for chaining.
    • clearVideoDescription

      public YouTubeVideoUpload.Builder clearVideoDescription()
       Input only. Immutable. The description of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_description = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setVideoDescriptionBytes

      public YouTubeVideoUpload.Builder setVideoDescriptionBytes(com.google.protobuf.ByteString value)
       Input only. Immutable. The description of the video.
      
       Only mutable on YouTube video upload creation. Immutable after creation.
       
      string video_description = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for videoDescription to set.
      Returns:
      This builder for chaining.
    • getVideoPrivacyValue

      public int getVideoPrivacyValue()
       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.
       
      .google.ads.googleads.v23.enums.YouTubeVideoPrivacyEnum.YouTubeVideoPrivacy video_privacy = 8;
      Specified by:
      getVideoPrivacyValue in interface YouTubeVideoUploadOrBuilder
      Returns:
      The enum numeric value on the wire for videoPrivacy.
    • setVideoPrivacyValue

      public YouTubeVideoUpload.Builder setVideoPrivacyValue(int value)
       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.
       
      .google.ads.googleads.v23.enums.YouTubeVideoPrivacyEnum.YouTubeVideoPrivacy video_privacy = 8;
      Parameters:
      value - The enum numeric value on the wire for videoPrivacy to set.
      Returns:
      This builder for chaining.
    • getVideoPrivacy

       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.
       
      .google.ads.googleads.v23.enums.YouTubeVideoPrivacyEnum.YouTubeVideoPrivacy video_privacy = 8;
      Specified by:
      getVideoPrivacy in interface YouTubeVideoUploadOrBuilder
      Returns:
      The videoPrivacy.
    • setVideoPrivacy

       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.
       
      .google.ads.googleads.v23.enums.YouTubeVideoPrivacyEnum.YouTubeVideoPrivacy video_privacy = 8;
      Parameters:
      value - The videoPrivacy to set.
      Returns:
      This builder for chaining.
    • clearVideoPrivacy

      public YouTubeVideoUpload.Builder clearVideoPrivacy()
       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.
       
      .google.ads.googleads.v23.enums.YouTubeVideoPrivacyEnum.YouTubeVideoPrivacy video_privacy = 8;
      Returns:
      This builder for chaining.