Class VideoTrueViewInStreamAdInfo.Builder

  • All Implemented Interfaces:
    VideoTrueViewInStreamAdInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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.v10.common.VideoTrueViewInStreamAdInfo
    • Method Detail

      • 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>
      • 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

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

        public VideoTrueViewInStreamAdInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                    int index,
                                                                    java.lang.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,
                                                                    java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoTrueViewInStreamAdInfo.Builder>
      • 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 java.io.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:
        java.io.IOException
      • getActionButtonLabel

        public java.lang.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​(java.lang.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 java.lang.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​(java.lang.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.v10.common.AdImageAsset companion_banner = 7;
        Specified by:
        hasCompanionBanner in interface VideoTrueViewInStreamAdInfoOrBuilder
        Returns:
        Whether the companionBanner field is set.
      • setCompanionBanner

        public VideoTrueViewInStreamAdInfo.Builder setCompanionBanner​(AdImageAsset value)
         The image assets of the companion banner used with the ad.
         
        .google.ads.googleads.v10.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.v10.common.AdImageAsset companion_banner = 7;
      • clearCompanionBanner

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

        public AdImageAsset.Builder getCompanionBannerBuilder()
         The image assets of the companion banner used with the ad.
         
        .google.ads.googleads.v10.common.AdImageAsset companion_banner = 7;
      • 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>