Class YoutubeVideoIdentifier.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<YoutubeVideoIdentifier.Builder>
com.google.ads.googleads.v22.resources.YoutubeVideoIdentifier.Builder
- All Implemented Interfaces:
YoutubeVideoIdentifierOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- YoutubeVideoIdentifier
public static final class YoutubeVideoIdentifier.Builder
extends com.google.protobuf.GeneratedMessage.Builder<YoutubeVideoIdentifier.Builder>
implements YoutubeVideoIdentifierOrBuilder
The identifier for YouTube videoProtobuf type
google.ads.googleads.v22.resources.YoutubeVideoIdentifier-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Immutable.Immutable.Immutable.com.google.protobuf.ByteStringImmutable.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorImmutable.com.google.protobuf.ByteStringImmutable.booleanImmutable.booleanImmutable.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(YoutubeVideoIdentifier 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.setVideoId(String value) Immutable.setVideoIdBytes(com.google.protobuf.ByteString value) Immutable.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<YoutubeVideoIdentifier.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<YoutubeVideoIdentifier.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<YoutubeVideoIdentifier.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<YoutubeVideoIdentifier.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<YoutubeVideoIdentifier.Builder>
-
mergeFrom
public YoutubeVideoIdentifier.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<YoutubeVideoIdentifier.Builder>- Throws:
IOException
-
hasChannelId
public boolean hasChannelId()Immutable. The ID of the hosting channel of the video. This is a string value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
optional string channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasChannelIdin interfaceYoutubeVideoIdentifierOrBuilder- Returns:
- Whether the channelId field is set.
-
getChannelId
Immutable. The ID of the hosting channel of the video. This is a string value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
optional string channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getChannelIdin interfaceYoutubeVideoIdentifierOrBuilder- Returns:
- The channelId.
-
getChannelIdBytes
public com.google.protobuf.ByteString getChannelIdBytes()Immutable. The ID of the hosting channel of the video. This is a string value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
optional string channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getChannelIdBytesin interfaceYoutubeVideoIdentifierOrBuilder- Returns:
- The bytes for channelId.
-
setChannelId
Immutable. The ID of the hosting channel of the video. This is a string value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
optional string channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The channelId to set.- Returns:
- This builder for chaining.
-
clearChannelId
Immutable. The ID of the hosting channel of the video. This is a string value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
optional string channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setChannelIdBytes
Immutable. The ID of the hosting channel of the video. This is a string value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
optional string channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for channelId to set.- Returns:
- This builder for chaining.
-
hasVideoId
public boolean hasVideoId()Immutable. The ID of the video associated with the video link. This is the 11 character string value used in the YouTube video URL. For example, video ID is jV1vkHv4zq8 from the YouTube video URL "https://www.youtube.com/watch?v=jV1vkHv4zq8&t=2s".
optional string video_id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasVideoIdin interfaceYoutubeVideoIdentifierOrBuilder- Returns:
- Whether the videoId field is set.
-
getVideoId
Immutable. The ID of the video associated with the video link. This is the 11 character string value used in the YouTube video URL. For example, video ID is jV1vkHv4zq8 from the YouTube video URL "https://www.youtube.com/watch?v=jV1vkHv4zq8&t=2s".
optional string video_id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getVideoIdin interfaceYoutubeVideoIdentifierOrBuilder- Returns:
- The videoId.
-
getVideoIdBytes
public com.google.protobuf.ByteString getVideoIdBytes()Immutable. The ID of the video associated with the video link. This is the 11 character string value used in the YouTube video URL. For example, video ID is jV1vkHv4zq8 from the YouTube video URL "https://www.youtube.com/watch?v=jV1vkHv4zq8&t=2s".
optional string video_id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getVideoIdBytesin interfaceYoutubeVideoIdentifierOrBuilder- Returns:
- The bytes for videoId.
-
setVideoId
Immutable. The ID of the video associated with the video link. This is the 11 character string value used in the YouTube video URL. For example, video ID is jV1vkHv4zq8 from the YouTube video URL "https://www.youtube.com/watch?v=jV1vkHv4zq8&t=2s".
optional string video_id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The videoId to set.- Returns:
- This builder for chaining.
-
clearVideoId
Immutable. The ID of the video associated with the video link. This is the 11 character string value used in the YouTube video URL. For example, video ID is jV1vkHv4zq8 from the YouTube video URL "https://www.youtube.com/watch?v=jV1vkHv4zq8&t=2s".
optional string video_id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setVideoIdBytes
Immutable. The ID of the video associated with the video link. This is the 11 character string value used in the YouTube video URL. For example, video ID is jV1vkHv4zq8 from the YouTube video URL "https://www.youtube.com/watch?v=jV1vkHv4zq8&t=2s".
optional string video_id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for videoId to set.- Returns:
- This builder for chaining.
-