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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Immutable.Immutable.Output only.Input only.Output only.The privacy state of the video.Input only.Output only.Immutable.com.google.protobuf.ByteStringImmutable.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorImmutable.com.google.protobuf.ByteStringImmutable.getState()Output only.intOutput only.Input only.com.google.protobuf.ByteStringInput only.Output only.com.google.protobuf.ByteStringOutput only.The privacy state of the video.intThe privacy state of the video.Input only.com.google.protobuf.ByteStringInput only.longOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(YouTubeVideoUpload other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setChannelId(String value) Immutable.setChannelIdBytes(com.google.protobuf.ByteString value) Immutable.setResourceName(String value) Immutable.setResourceNameBytes(com.google.protobuf.ByteString value) Immutable.Output only.setStateValue(int value) Output only.setVideoDescription(String value) Input only.setVideoDescriptionBytes(com.google.protobuf.ByteString value) Input only.setVideoId(String value) Output only.setVideoIdBytes(com.google.protobuf.ByteString value) Output only.The privacy state of the video.setVideoPrivacyValue(int value) The privacy state of the video.setVideoTitle(String value) Input only.setVideoTitleBytes(com.google.protobuf.ByteString value) Input only.setVideoUploadId(long value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<YouTubeVideoUpload.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<YouTubeVideoUpload.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<YouTubeVideoUpload.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<YouTubeVideoUpload.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<YouTubeVideoUpload.Builder>- Throws:
IOException
-
getResourceName
Immutable. Resource name of the YouTube video upload.
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceYouTubeVideoUploadOrBuilder- 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:
getResourceNameBytesin interfaceYouTubeVideoUploadOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
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
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
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:
getVideoUploadIdin interfaceYouTubeVideoUploadOrBuilder- Returns:
- The videoUploadId.
-
setVideoUploadId
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
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
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:
getChannelIdin interfaceYouTubeVideoUploadOrBuilder- 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:
getChannelIdBytesin interfaceYouTubeVideoUploadOrBuilder- Returns:
- The bytes for channelId.
-
setChannelId
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
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
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
Output only. The YouTube video ID of the uploaded video.
string video_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVideoIdin interfaceYouTubeVideoUploadOrBuilder- 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:
getVideoIdBytesin interfaceYouTubeVideoUploadOrBuilder- Returns:
- The bytes for videoId.
-
setVideoId
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
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
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:
getStateValuein interfaceYouTubeVideoUploadOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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:
getStatein interfaceYouTubeVideoUploadOrBuilder- Returns:
- The state.
-
setState
public YouTubeVideoUpload.Builder setState(YouTubeVideoUploadStateEnum.YouTubeVideoUploadState 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 state to set.- Returns:
- This builder for chaining.
-
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
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:
getVideoTitlein interfaceYouTubeVideoUploadOrBuilder- 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:
getVideoTitleBytesin interfaceYouTubeVideoUploadOrBuilder- Returns:
- The bytes for videoTitle.
-
setVideoTitle
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
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
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
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:
getVideoDescriptionin interfaceYouTubeVideoUploadOrBuilder- 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:
getVideoDescriptionBytesin interfaceYouTubeVideoUploadOrBuilder- Returns:
- The bytes for videoDescription.
-
setVideoDescription
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
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
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:
getVideoPrivacyValuein interfaceYouTubeVideoUploadOrBuilder- Returns:
- The enum numeric value on the wire for videoPrivacy.
-
setVideoPrivacyValue
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:
getVideoPrivacyin interfaceYouTubeVideoUploadOrBuilder- Returns:
- The videoPrivacy.
-
setVideoPrivacy
public YouTubeVideoUpload.Builder setVideoPrivacy(YouTubeVideoPrivacyEnum.YouTubeVideoPrivacy 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 videoPrivacy to set.- Returns:
- This builder for chaining.
-
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.
-