Class YoutubeLinkMetadata.Builder

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

public static final class YoutubeLinkMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<YoutubeLinkMetadata.Builder> implements YoutubeLinkMetadataOrBuilder
 Metadata specific to YouTube links.
 
Protobuf type google.ads.googleads.v25.resources.YoutubeLinkMetadata
  • 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<YoutubeLinkMetadata.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<YoutubeLinkMetadata.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<YoutubeLinkMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public YoutubeLinkMetadata.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<YoutubeLinkMetadata.Builder>
      Throws:
      IOException
    • hasBrandChannelId

      public boolean hasBrandChannelId()
       Immutable. The ID of a YouTube brand channel to help creators understand
       your brand. The channel must be linked to this account. This is a string
       value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
       
      optional string brand_channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasBrandChannelId in interface YoutubeLinkMetadataOrBuilder
      Returns:
      Whether the brandChannelId field is set.
    • getBrandChannelId

      public String getBrandChannelId()
       Immutable. The ID of a YouTube brand channel to help creators understand
       your brand. The channel must be linked to this account. This is a string
       value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
       
      optional string brand_channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getBrandChannelId in interface YoutubeLinkMetadataOrBuilder
      Returns:
      The brandChannelId.
    • getBrandChannelIdBytes

      public com.google.protobuf.ByteString getBrandChannelIdBytes()
       Immutable. The ID of a YouTube brand channel to help creators understand
       your brand. The channel must be linked to this account. This is a string
       value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
       
      optional string brand_channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getBrandChannelIdBytes in interface YoutubeLinkMetadataOrBuilder
      Returns:
      The bytes for brandChannelId.
    • setBrandChannelId

      public YoutubeLinkMetadata.Builder setBrandChannelId(String value)
       Immutable. The ID of a YouTube brand channel to help creators understand
       your brand. The channel must be linked to this account. This is a string
       value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
       
      optional string brand_channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The brandChannelId to set.
      Returns:
      This builder for chaining.
    • clearBrandChannelId

      public YoutubeLinkMetadata.Builder clearBrandChannelId()
       Immutable. The ID of a YouTube brand channel to help creators understand
       your brand. The channel must be linked to this account. This is a string
       value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
       
      optional string brand_channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setBrandChannelIdBytes

      public YoutubeLinkMetadata.Builder setBrandChannelIdBytes(com.google.protobuf.ByteString value)
       Immutable. The ID of a YouTube brand channel to help creators understand
       your brand. The channel must be linked to this account. This is a string
       value with “UC” prefix. For example, "UCK8sQmJBp8GCxrOtXWBpyEA".
       
      optional string brand_channel_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for brandChannelId to set.
      Returns:
      This builder for chaining.