Class SmartCampaignAdInfo.Builder

  • All Implemented Interfaces:
    SmartCampaignAdInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    SmartCampaignAdInfo

    public static final class SmartCampaignAdInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignAdInfo.Builder>
    implements SmartCampaignAdInfoOrBuilder
     A Smart campaign ad.
     
    Protobuf type google.ads.googleads.v10.common.SmartCampaignAdInfo
    • 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<SmartCampaignAdInfo.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.util.List<AdTextAsset> getHeadlinesList()
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
        Specified by:
        getHeadlinesList in interface SmartCampaignAdInfoOrBuilder
      • getHeadlinesCount

        public int getHeadlinesCount()
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
        Specified by:
        getHeadlinesCount in interface SmartCampaignAdInfoOrBuilder
      • getHeadlines

        public AdTextAsset getHeadlines​(int index)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
        Specified by:
        getHeadlines in interface SmartCampaignAdInfoOrBuilder
      • setHeadlines

        public SmartCampaignAdInfo.Builder setHeadlines​(int index,
                                                        AdTextAsset value)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • setHeadlines

        public SmartCampaignAdInfo.Builder setHeadlines​(int index,
                                                        AdTextAsset.Builder builderForValue)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • addHeadlines

        public SmartCampaignAdInfo.Builder addHeadlines​(AdTextAsset value)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • addHeadlines

        public SmartCampaignAdInfo.Builder addHeadlines​(int index,
                                                        AdTextAsset value)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • addHeadlines

        public SmartCampaignAdInfo.Builder addHeadlines​(AdTextAsset.Builder builderForValue)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • addHeadlines

        public SmartCampaignAdInfo.Builder addHeadlines​(int index,
                                                        AdTextAsset.Builder builderForValue)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • addAllHeadlines

        public SmartCampaignAdInfo.Builder addAllHeadlines​(java.lang.Iterable<? extends AdTextAsset> values)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • clearHeadlines

        public SmartCampaignAdInfo.Builder clearHeadlines()
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • removeHeadlines

        public SmartCampaignAdInfo.Builder removeHeadlines​(int index)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • getHeadlinesBuilder

        public AdTextAsset.Builder getHeadlinesBuilder​(int index)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • getHeadlinesOrBuilder

        public AdTextAssetOrBuilder getHeadlinesOrBuilder​(int index)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
        Specified by:
        getHeadlinesOrBuilder in interface SmartCampaignAdInfoOrBuilder
      • getHeadlinesOrBuilderList

        public java.util.List<? extends AdTextAssetOrBuilder> getHeadlinesOrBuilderList()
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
        Specified by:
        getHeadlinesOrBuilderList in interface SmartCampaignAdInfoOrBuilder
      • addHeadlinesBuilder

        public AdTextAsset.Builder addHeadlinesBuilder()
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • addHeadlinesBuilder

        public AdTextAsset.Builder addHeadlinesBuilder​(int index)
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • getHeadlinesBuilderList

        public java.util.List<AdTextAsset.Builder> getHeadlinesBuilderList()
         List of text assets for headlines. When the ad serves the headlines will
         be selected from this list. 3 headlines must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;
      • getDescriptionsList

        public java.util.List<AdTextAsset> getDescriptionsList()
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
        Specified by:
        getDescriptionsList in interface SmartCampaignAdInfoOrBuilder
      • getDescriptionsCount

        public int getDescriptionsCount()
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
        Specified by:
        getDescriptionsCount in interface SmartCampaignAdInfoOrBuilder
      • getDescriptions

        public AdTextAsset getDescriptions​(int index)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
        Specified by:
        getDescriptions in interface SmartCampaignAdInfoOrBuilder
      • setDescriptions

        public SmartCampaignAdInfo.Builder setDescriptions​(int index,
                                                           AdTextAsset value)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • setDescriptions

        public SmartCampaignAdInfo.Builder setDescriptions​(int index,
                                                           AdTextAsset.Builder builderForValue)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • addDescriptions

        public SmartCampaignAdInfo.Builder addDescriptions​(AdTextAsset value)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • addDescriptions

        public SmartCampaignAdInfo.Builder addDescriptions​(int index,
                                                           AdTextAsset value)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • addDescriptions

        public SmartCampaignAdInfo.Builder addDescriptions​(AdTextAsset.Builder builderForValue)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • addDescriptions

        public SmartCampaignAdInfo.Builder addDescriptions​(int index,
                                                           AdTextAsset.Builder builderForValue)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • addAllDescriptions

        public SmartCampaignAdInfo.Builder addAllDescriptions​(java.lang.Iterable<? extends AdTextAsset> values)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • clearDescriptions

        public SmartCampaignAdInfo.Builder clearDescriptions()
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • removeDescriptions

        public SmartCampaignAdInfo.Builder removeDescriptions​(int index)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • getDescriptionsBuilder

        public AdTextAsset.Builder getDescriptionsBuilder​(int index)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • getDescriptionsOrBuilder

        public AdTextAssetOrBuilder getDescriptionsOrBuilder​(int index)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
        Specified by:
        getDescriptionsOrBuilder in interface SmartCampaignAdInfoOrBuilder
      • getDescriptionsOrBuilderList

        public java.util.List<? extends AdTextAssetOrBuilder> getDescriptionsOrBuilderList()
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
        Specified by:
        getDescriptionsOrBuilderList in interface SmartCampaignAdInfoOrBuilder
      • addDescriptionsBuilder

        public AdTextAsset.Builder addDescriptionsBuilder()
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • addDescriptionsBuilder

        public AdTextAsset.Builder addDescriptionsBuilder​(int index)
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • getDescriptionsBuilderList

        public java.util.List<AdTextAsset.Builder> getDescriptionsBuilderList()
         List of text assets for descriptions. When the ad serves the descriptions
         will be selected from this list. 2 descriptions must be specified.
         
        repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;
      • setUnknownFields

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

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