Class VideoTrueViewInStreamAdInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<VideoTrueViewInStreamAdInfo.Builder>
com.google.ads.googleads.v18.common.VideoTrueViewInStreamAdInfo.Builder
All Implemented Interfaces:
VideoTrueViewInStreamAdInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VideoTrueViewInStreamAdInfo

public static final class VideoTrueViewInStreamAdInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VideoTrueViewInStreamAdInfo.Builder> implements VideoTrueViewInStreamAdInfoOrBuilder
 Representation of video TrueView in-stream ad format (ad shown during video
 playback, often at beginning, which displays a skip button a few seconds into
 the video).
 
Protobuf type google.ads.googleads.v18.common.VideoTrueViewInStreamAdInfo
  • 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<VideoTrueViewInStreamAdInfo.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<VideoTrueViewInStreamAdInfo.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<VideoTrueViewInStreamAdInfo.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VideoTrueViewInStreamAdInfo 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<VideoTrueViewInStreamAdInfo.Builder>
    • setField

      public VideoTrueViewInStreamAdInfo.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<VideoTrueViewInStreamAdInfo.Builder>
    • clearField

      public VideoTrueViewInStreamAdInfo.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<VideoTrueViewInStreamAdInfo.Builder>
    • clearOneof

      public VideoTrueViewInStreamAdInfo.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<VideoTrueViewInStreamAdInfo.Builder>
    • setRepeatedField

      public VideoTrueViewInStreamAdInfo.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<VideoTrueViewInStreamAdInfo.Builder>
    • addRepeatedField

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

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

      public VideoTrueViewInStreamAdInfo.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<VideoTrueViewInStreamAdInfo.Builder>
      Throws:
      IOException
    • getActionButtonLabel

      public String getActionButtonLabel()
       Label on the CTA (call-to-action) button taking the user to the video ad's
       final URL.
       Required for TrueView for action campaigns, optional otherwise.
       
      string action_button_label = 4;
      Specified by:
      getActionButtonLabel in interface VideoTrueViewInStreamAdInfoOrBuilder
      Returns:
      The actionButtonLabel.
    • getActionButtonLabelBytes

      public com.google.protobuf.ByteString getActionButtonLabelBytes()
       Label on the CTA (call-to-action) button taking the user to the video ad's
       final URL.
       Required for TrueView for action campaigns, optional otherwise.
       
      string action_button_label = 4;
      Specified by:
      getActionButtonLabelBytes in interface VideoTrueViewInStreamAdInfoOrBuilder
      Returns:
      The bytes for actionButtonLabel.
    • setActionButtonLabel

      public VideoTrueViewInStreamAdInfo.Builder setActionButtonLabel(String value)
       Label on the CTA (call-to-action) button taking the user to the video ad's
       final URL.
       Required for TrueView for action campaigns, optional otherwise.
       
      string action_button_label = 4;
      Parameters:
      value - The actionButtonLabel to set.
      Returns:
      This builder for chaining.
    • clearActionButtonLabel

      public VideoTrueViewInStreamAdInfo.Builder clearActionButtonLabel()
       Label on the CTA (call-to-action) button taking the user to the video ad's
       final URL.
       Required for TrueView for action campaigns, optional otherwise.
       
      string action_button_label = 4;
      Returns:
      This builder for chaining.
    • setActionButtonLabelBytes

      public VideoTrueViewInStreamAdInfo.Builder setActionButtonLabelBytes(com.google.protobuf.ByteString value)
       Label on the CTA (call-to-action) button taking the user to the video ad's
       final URL.
       Required for TrueView for action campaigns, optional otherwise.
       
      string action_button_label = 4;
      Parameters:
      value - The bytes for actionButtonLabel to set.
      Returns:
      This builder for chaining.
    • getActionHeadline

      public String getActionHeadline()
       Additional text displayed with the CTA (call-to-action) button to give
       context and encourage clicking on the button.
       
      string action_headline = 5;
      Specified by:
      getActionHeadline in interface VideoTrueViewInStreamAdInfoOrBuilder
      Returns:
      The actionHeadline.
    • getActionHeadlineBytes

      public com.google.protobuf.ByteString getActionHeadlineBytes()
       Additional text displayed with the CTA (call-to-action) button to give
       context and encourage clicking on the button.
       
      string action_headline = 5;
      Specified by:
      getActionHeadlineBytes in interface VideoTrueViewInStreamAdInfoOrBuilder
      Returns:
      The bytes for actionHeadline.
    • setActionHeadline

      public VideoTrueViewInStreamAdInfo.Builder setActionHeadline(String value)
       Additional text displayed with the CTA (call-to-action) button to give
       context and encourage clicking on the button.
       
      string action_headline = 5;
      Parameters:
      value - The actionHeadline to set.
      Returns:
      This builder for chaining.
    • clearActionHeadline

      public VideoTrueViewInStreamAdInfo.Builder clearActionHeadline()
       Additional text displayed with the CTA (call-to-action) button to give
       context and encourage clicking on the button.
       
      string action_headline = 5;
      Returns:
      This builder for chaining.
    • setActionHeadlineBytes

      public VideoTrueViewInStreamAdInfo.Builder setActionHeadlineBytes(com.google.protobuf.ByteString value)
       Additional text displayed with the CTA (call-to-action) button to give
       context and encourage clicking on the button.
       
      string action_headline = 5;
      Parameters:
      value - The bytes for actionHeadline to set.
      Returns:
      This builder for chaining.
    • hasCompanionBanner

      public boolean hasCompanionBanner()
       The image assets of the companion banner used with the ad.
       
      .google.ads.googleads.v18.common.AdImageAsset companion_banner = 7;
      Specified by:
      hasCompanionBanner in interface VideoTrueViewInStreamAdInfoOrBuilder
      Returns:
      Whether the companionBanner field is set.
    • getCompanionBanner

      public AdImageAsset getCompanionBanner()
       The image assets of the companion banner used with the ad.
       
      .google.ads.googleads.v18.common.AdImageAsset companion_banner = 7;
      Specified by:
      getCompanionBanner in interface VideoTrueViewInStreamAdInfoOrBuilder
      Returns:
      The companionBanner.
    • setCompanionBanner

      public VideoTrueViewInStreamAdInfo.Builder setCompanionBanner(AdImageAsset value)
       The image assets of the companion banner used with the ad.
       
      .google.ads.googleads.v18.common.AdImageAsset companion_banner = 7;
    • setCompanionBanner

      public VideoTrueViewInStreamAdInfo.Builder setCompanionBanner(AdImageAsset.Builder builderForValue)
       The image assets of the companion banner used with the ad.
       
      .google.ads.googleads.v18.common.AdImageAsset companion_banner = 7;
    • mergeCompanionBanner

      public VideoTrueViewInStreamAdInfo.Builder mergeCompanionBanner(AdImageAsset value)
       The image assets of the companion banner used with the ad.
       
      .google.ads.googleads.v18.common.AdImageAsset companion_banner = 7;
    • clearCompanionBanner

      public VideoTrueViewInStreamAdInfo.Builder clearCompanionBanner()
       The image assets of the companion banner used with the ad.
       
      .google.ads.googleads.v18.common.AdImageAsset companion_banner = 7;
    • getCompanionBannerBuilder

      public AdImageAsset.Builder getCompanionBannerBuilder()
       The image assets of the companion banner used with the ad.
       
      .google.ads.googleads.v18.common.AdImageAsset companion_banner = 7;
    • getCompanionBannerOrBuilder

      public AdImageAssetOrBuilder getCompanionBannerOrBuilder()
       The image assets of the companion banner used with the ad.
       
      .google.ads.googleads.v18.common.AdImageAsset companion_banner = 7;
      Specified by:
      getCompanionBannerOrBuilder in interface VideoTrueViewInStreamAdInfoOrBuilder
    • setUnknownFields

      public final VideoTrueViewInStreamAdInfo.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<VideoTrueViewInStreamAdInfo.Builder>
    • mergeUnknownFields

      public final VideoTrueViewInStreamAdInfo.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<VideoTrueViewInStreamAdInfo.Builder>