Class YoutubeVideoIdentifier.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>
com.google.ads.googleads.v18.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.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder> implements YoutubeVideoIdentifierOrBuilder
 The identifier for YouTube video
 
Protobuf type google.ads.googleads.v18.resources.YoutubeVideoIdentifier
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.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.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.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.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>
    • setField

      public YoutubeVideoIdentifier.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>
    • clearField

      public YoutubeVideoIdentifier.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>
    • clearOneof

      public YoutubeVideoIdentifier.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>
    • setRepeatedField

      public YoutubeVideoIdentifier.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>
    • addRepeatedField

      public YoutubeVideoIdentifier.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>
    • mergeFrom

      public YoutubeVideoIdentifier.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<YoutubeVideoIdentifier.Builder>
    • mergeFrom

    • isInitialized

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

      public YoutubeVideoIdentifier.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<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:
      hasChannelId in interface YoutubeVideoIdentifierOrBuilder
      Returns:
      Whether the channelId field is set.
    • getChannelId

      public String 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:
      getChannelId in interface YoutubeVideoIdentifierOrBuilder
      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:
      getChannelIdBytes in interface YoutubeVideoIdentifierOrBuilder
      Returns:
      The bytes for channelId.
    • setChannelId

      public YoutubeVideoIdentifier.Builder setChannelId(String value)
       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

      public YoutubeVideoIdentifier.Builder 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

      public YoutubeVideoIdentifier.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
       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:
      hasVideoId in interface YoutubeVideoIdentifierOrBuilder
      Returns:
      Whether the videoId field is set.
    • getVideoId

      public String 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:
      getVideoId in interface YoutubeVideoIdentifierOrBuilder
      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:
      getVideoIdBytes in interface YoutubeVideoIdentifierOrBuilder
      Returns:
      The bytes for videoId.
    • setVideoId

      public YoutubeVideoIdentifier.Builder setVideoId(String value)
       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

      public YoutubeVideoIdentifier.Builder 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

      public YoutubeVideoIdentifier.Builder setVideoIdBytes(com.google.protobuf.ByteString value)
       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.
    • setUnknownFields

      public final YoutubeVideoIdentifier.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>
    • mergeUnknownFields

      public final YoutubeVideoIdentifier.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<YoutubeVideoIdentifier.Builder>