Class DiscoveryVideoResponsiveAdInfo.Builder

    • 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<DiscoveryVideoResponsiveAdInfo.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<DiscoveryVideoResponsiveAdInfo.Builder>
      • getDefaultInstanceForType

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

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

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

        public DiscoveryVideoResponsiveAdInfo.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<DiscoveryVideoResponsiveAdInfo.Builder>
      • isInitialized

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

        public DiscoveryVideoResponsiveAdInfo.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<DiscoveryVideoResponsiveAdInfo.Builder>
        Throws:
        java.io.IOException
      • addAllHeadlines

        public DiscoveryVideoResponsiveAdInfo.Builder addAllHeadlines​(java.lang.Iterable<? extends AdTextAsset> values)
         List of text assets used for the short headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 1;
      • clearHeadlines

        public DiscoveryVideoResponsiveAdInfo.Builder clearHeadlines()
         List of text assets used for the short headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 1;
      • removeHeadlines

        public DiscoveryVideoResponsiveAdInfo.Builder removeHeadlines​(int index)
         List of text assets used for the short headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 1;
      • getHeadlinesBuilder

        public AdTextAsset.Builder getHeadlinesBuilder​(int index)
         List of text assets used for the short headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 1;
      • addHeadlinesBuilder

        public AdTextAsset.Builder addHeadlinesBuilder()
         List of text assets used for the short headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 1;
      • addHeadlinesBuilder

        public AdTextAsset.Builder addHeadlinesBuilder​(int index)
         List of text assets used for the short headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 1;
      • getHeadlinesBuilderList

        public java.util.List<AdTextAsset.Builder> getHeadlinesBuilderList()
         List of text assets used for the short headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 1;
      • addAllLongHeadlines

        public DiscoveryVideoResponsiveAdInfo.Builder addAllLongHeadlines​(java.lang.Iterable<? extends AdTextAsset> values)
         List of text assets used for the long headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset long_headlines = 2;
      • clearLongHeadlines

        public DiscoveryVideoResponsiveAdInfo.Builder clearLongHeadlines()
         List of text assets used for the long headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset long_headlines = 2;
      • removeLongHeadlines

        public DiscoveryVideoResponsiveAdInfo.Builder removeLongHeadlines​(int index)
         List of text assets used for the long headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset long_headlines = 2;
      • getLongHeadlinesBuilder

        public AdTextAsset.Builder getLongHeadlinesBuilder​(int index)
         List of text assets used for the long headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset long_headlines = 2;
      • addLongHeadlinesBuilder

        public AdTextAsset.Builder addLongHeadlinesBuilder()
         List of text assets used for the long headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset long_headlines = 2;
      • addLongHeadlinesBuilder

        public AdTextAsset.Builder addLongHeadlinesBuilder​(int index)
         List of text assets used for the long headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset long_headlines = 2;
      • getLongHeadlinesBuilderList

        public java.util.List<AdTextAsset.Builder> getLongHeadlinesBuilderList()
         List of text assets used for the long headline.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset long_headlines = 2;
      • addAllDescriptions

        public DiscoveryVideoResponsiveAdInfo.Builder addAllDescriptions​(java.lang.Iterable<? extends AdTextAsset> values)
         List of text assets used for the description.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 3;
      • clearDescriptions

        public DiscoveryVideoResponsiveAdInfo.Builder clearDescriptions()
         List of text assets used for the description.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 3;
      • removeDescriptions

        public DiscoveryVideoResponsiveAdInfo.Builder removeDescriptions​(int index)
         List of text assets used for the description.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 3;
      • getDescriptionsBuilder

        public AdTextAsset.Builder getDescriptionsBuilder​(int index)
         List of text assets used for the description.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 3;
      • addDescriptionsBuilder

        public AdTextAsset.Builder addDescriptionsBuilder()
         List of text assets used for the description.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 3;
      • addDescriptionsBuilder

        public AdTextAsset.Builder addDescriptionsBuilder​(int index)
         List of text assets used for the description.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 3;
      • getDescriptionsBuilderList

        public java.util.List<AdTextAsset.Builder> getDescriptionsBuilderList()
         List of text assets used for the description.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 3;
      • removeVideos

        public DiscoveryVideoResponsiveAdInfo.Builder removeVideos​(int index)
         List of YouTube video assets used for the ad.
         
        repeated .google.ads.googleads.v15.common.AdVideoAsset videos = 4;
      • getVideosBuilder

        public AdVideoAsset.Builder getVideosBuilder​(int index)
         List of YouTube video assets used for the ad.
         
        repeated .google.ads.googleads.v15.common.AdVideoAsset videos = 4;
      • addVideosBuilder

        public AdVideoAsset.Builder addVideosBuilder()
         List of YouTube video assets used for the ad.
         
        repeated .google.ads.googleads.v15.common.AdVideoAsset videos = 4;
      • addVideosBuilder

        public AdVideoAsset.Builder addVideosBuilder​(int index)
         List of YouTube video assets used for the ad.
         
        repeated .google.ads.googleads.v15.common.AdVideoAsset videos = 4;
      • getVideosBuilderList

        public java.util.List<AdVideoAsset.Builder> getVideosBuilderList()
         List of YouTube video assets used for the ad.
         
        repeated .google.ads.googleads.v15.common.AdVideoAsset videos = 4;
      • getLogoImagesList

        public java.util.List<AdImageAsset> getLogoImagesList()
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
        Specified by:
        getLogoImagesList in interface DiscoveryVideoResponsiveAdInfoOrBuilder
      • getLogoImagesCount

        public int getLogoImagesCount()
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
        Specified by:
        getLogoImagesCount in interface DiscoveryVideoResponsiveAdInfoOrBuilder
      • getLogoImages

        public AdImageAsset getLogoImages​(int index)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
        Specified by:
        getLogoImages in interface DiscoveryVideoResponsiveAdInfoOrBuilder
      • setLogoImages

        public DiscoveryVideoResponsiveAdInfo.Builder setLogoImages​(int index,
                                                                    AdImageAsset value)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • setLogoImages

        public DiscoveryVideoResponsiveAdInfo.Builder setLogoImages​(int index,
                                                                    AdImageAsset.Builder builderForValue)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • addLogoImages

        public DiscoveryVideoResponsiveAdInfo.Builder addLogoImages​(AdImageAsset value)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • addLogoImages

        public DiscoveryVideoResponsiveAdInfo.Builder addLogoImages​(int index,
                                                                    AdImageAsset value)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • addLogoImages

        public DiscoveryVideoResponsiveAdInfo.Builder addLogoImages​(AdImageAsset.Builder builderForValue)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • addLogoImages

        public DiscoveryVideoResponsiveAdInfo.Builder addLogoImages​(int index,
                                                                    AdImageAsset.Builder builderForValue)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • addAllLogoImages

        public DiscoveryVideoResponsiveAdInfo.Builder addAllLogoImages​(java.lang.Iterable<? extends AdImageAsset> values)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • clearLogoImages

        public DiscoveryVideoResponsiveAdInfo.Builder clearLogoImages()
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • removeLogoImages

        public DiscoveryVideoResponsiveAdInfo.Builder removeLogoImages​(int index)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • getLogoImagesBuilder

        public AdImageAsset.Builder getLogoImagesBuilder​(int index)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • addLogoImagesBuilder

        public AdImageAsset.Builder addLogoImagesBuilder()
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • addLogoImagesBuilder

        public AdImageAsset.Builder addLogoImagesBuilder​(int index)
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • getLogoImagesBuilderList

        public java.util.List<AdImageAsset.Builder> getLogoImagesBuilderList()
         Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG.
         The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%).
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 5;
      • getBreadcrumb1Bytes

        public com.google.protobuf.ByteString getBreadcrumb1Bytes()
         First part of text that appears in the ad with the displayed URL.
         
        string breadcrumb1 = 6;
        Specified by:
        getBreadcrumb1Bytes in interface DiscoveryVideoResponsiveAdInfoOrBuilder
        Returns:
        The bytes for breadcrumb1.
      • setBreadcrumb1

        public DiscoveryVideoResponsiveAdInfo.Builder setBreadcrumb1​(java.lang.String value)
         First part of text that appears in the ad with the displayed URL.
         
        string breadcrumb1 = 6;
        Parameters:
        value - The breadcrumb1 to set.
        Returns:
        This builder for chaining.
      • clearBreadcrumb1

        public DiscoveryVideoResponsiveAdInfo.Builder clearBreadcrumb1()
         First part of text that appears in the ad with the displayed URL.
         
        string breadcrumb1 = 6;
        Returns:
        This builder for chaining.
      • setBreadcrumb1Bytes

        public DiscoveryVideoResponsiveAdInfo.Builder setBreadcrumb1Bytes​(com.google.protobuf.ByteString value)
         First part of text that appears in the ad with the displayed URL.
         
        string breadcrumb1 = 6;
        Parameters:
        value - The bytes for breadcrumb1 to set.
        Returns:
        This builder for chaining.
      • getBreadcrumb2Bytes

        public com.google.protobuf.ByteString getBreadcrumb2Bytes()
         Second part of text that appears in the ad with the displayed URL.
         
        string breadcrumb2 = 7;
        Specified by:
        getBreadcrumb2Bytes in interface DiscoveryVideoResponsiveAdInfoOrBuilder
        Returns:
        The bytes for breadcrumb2.
      • setBreadcrumb2

        public DiscoveryVideoResponsiveAdInfo.Builder setBreadcrumb2​(java.lang.String value)
         Second part of text that appears in the ad with the displayed URL.
         
        string breadcrumb2 = 7;
        Parameters:
        value - The breadcrumb2 to set.
        Returns:
        This builder for chaining.
      • clearBreadcrumb2

        public DiscoveryVideoResponsiveAdInfo.Builder clearBreadcrumb2()
         Second part of text that appears in the ad with the displayed URL.
         
        string breadcrumb2 = 7;
        Returns:
        This builder for chaining.
      • setBreadcrumb2Bytes

        public DiscoveryVideoResponsiveAdInfo.Builder setBreadcrumb2Bytes​(com.google.protobuf.ByteString value)
         Second part of text that appears in the ad with the displayed URL.
         
        string breadcrumb2 = 7;
        Parameters:
        value - The bytes for breadcrumb2 to set.
        Returns:
        This builder for chaining.
      • hasBusinessName

        public boolean hasBusinessName()
         Required. The advertiser/brand name.
         
        .google.ads.googleads.v15.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasBusinessName in interface DiscoveryVideoResponsiveAdInfoOrBuilder
        Returns:
        Whether the businessName field is set.
      • setBusinessName

        public DiscoveryVideoResponsiveAdInfo.Builder setBusinessName​(AdTextAsset value)
         Required. The advertiser/brand name.
         
        .google.ads.googleads.v15.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
      • mergeBusinessName

        public DiscoveryVideoResponsiveAdInfo.Builder mergeBusinessName​(AdTextAsset value)
         Required. The advertiser/brand name.
         
        .google.ads.googleads.v15.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
      • clearBusinessName

        public DiscoveryVideoResponsiveAdInfo.Builder clearBusinessName()
         Required. The advertiser/brand name.
         
        .google.ads.googleads.v15.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
      • getBusinessNameBuilder

        public AdTextAsset.Builder getBusinessNameBuilder()
         Required. The advertiser/brand name.
         
        .google.ads.googleads.v15.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];
      • getCallToActionsCount

        public int getCallToActionsCount()
         Assets of type CallToActionAsset used for the "Call To Action" button.
         
        repeated .google.ads.googleads.v15.common.AdCallToActionAsset call_to_actions = 9;
        Specified by:
        getCallToActionsCount in interface DiscoveryVideoResponsiveAdInfoOrBuilder
      • addAllCallToActions

        public DiscoveryVideoResponsiveAdInfo.Builder addAllCallToActions​(java.lang.Iterable<? extends AdCallToActionAsset> values)
         Assets of type CallToActionAsset used for the "Call To Action" button.
         
        repeated .google.ads.googleads.v15.common.AdCallToActionAsset call_to_actions = 9;
      • clearCallToActions

        public DiscoveryVideoResponsiveAdInfo.Builder clearCallToActions()
         Assets of type CallToActionAsset used for the "Call To Action" button.
         
        repeated .google.ads.googleads.v15.common.AdCallToActionAsset call_to_actions = 9;
      • removeCallToActions

        public DiscoveryVideoResponsiveAdInfo.Builder removeCallToActions​(int index)
         Assets of type CallToActionAsset used for the "Call To Action" button.
         
        repeated .google.ads.googleads.v15.common.AdCallToActionAsset call_to_actions = 9;
      • getCallToActionsBuilder

        public AdCallToActionAsset.Builder getCallToActionsBuilder​(int index)
         Assets of type CallToActionAsset used for the "Call To Action" button.
         
        repeated .google.ads.googleads.v15.common.AdCallToActionAsset call_to_actions = 9;
      • addCallToActionsBuilder

        public AdCallToActionAsset.Builder addCallToActionsBuilder()
         Assets of type CallToActionAsset used for the "Call To Action" button.
         
        repeated .google.ads.googleads.v15.common.AdCallToActionAsset call_to_actions = 9;
      • addCallToActionsBuilder

        public AdCallToActionAsset.Builder addCallToActionsBuilder​(int index)
         Assets of type CallToActionAsset used for the "Call To Action" button.
         
        repeated .google.ads.googleads.v15.common.AdCallToActionAsset call_to_actions = 9;
      • getCallToActionsBuilderList

        public java.util.List<AdCallToActionAsset.Builder> getCallToActionsBuilderList()
         Assets of type CallToActionAsset used for the "Call To Action" button.
         
        repeated .google.ads.googleads.v15.common.AdCallToActionAsset call_to_actions = 9;