Class SmartCampaignAdInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignAdInfo.Builder>
com.google.ads.googleads.v18.common.SmartCampaignAdInfo.Builder
All Implemented Interfaces:
SmartCampaignAdInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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.v18.common.SmartCampaignAdInfo
  • 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<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

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

    • 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 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:
      IOException
    • getHeadlinesList

      public List<AdTextAsset> getHeadlinesList()
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlinesList in interface SmartCampaignAdInfoOrBuilder
    • getHeadlinesCount

      public int getHeadlinesCount()
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlinesCount in interface SmartCampaignAdInfoOrBuilder
    • getHeadlines

      public AdTextAsset getHeadlines(int index)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlines in interface SmartCampaignAdInfoOrBuilder
    • setHeadlines

      public SmartCampaignAdInfo.Builder setHeadlines(int index, AdTextAsset value)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • setHeadlines

      public SmartCampaignAdInfo.Builder setHeadlines(int index, AdTextAsset.Builder builderForValue)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • addHeadlines

      public SmartCampaignAdInfo.Builder addHeadlines(AdTextAsset value)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • addHeadlines

      public SmartCampaignAdInfo.Builder addHeadlines(int index, AdTextAsset value)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • addHeadlines

      public SmartCampaignAdInfo.Builder addHeadlines(AdTextAsset.Builder builderForValue)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • addHeadlines

      public SmartCampaignAdInfo.Builder addHeadlines(int index, AdTextAsset.Builder builderForValue)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • addAllHeadlines

      public SmartCampaignAdInfo.Builder addAllHeadlines(Iterable<? extends AdTextAsset> values)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • clearHeadlines

      public SmartCampaignAdInfo.Builder clearHeadlines()
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • removeHeadlines

      public SmartCampaignAdInfo.Builder removeHeadlines(int index)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • getHeadlinesBuilder

      public AdTextAsset.Builder getHeadlinesBuilder(int index)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • getHeadlinesOrBuilder

      public AdTextAssetOrBuilder getHeadlinesOrBuilder(int index)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlinesOrBuilder in interface SmartCampaignAdInfoOrBuilder
    • getHeadlinesOrBuilderList

      public List<? extends AdTextAssetOrBuilder> getHeadlinesOrBuilderList()
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
      Specified by:
      getHeadlinesOrBuilderList in interface SmartCampaignAdInfoOrBuilder
    • addHeadlinesBuilder

      public AdTextAsset.Builder addHeadlinesBuilder()
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • addHeadlinesBuilder

      public AdTextAsset.Builder addHeadlinesBuilder(int index)
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • getHeadlinesBuilderList

      public List<AdTextAsset.Builder> getHeadlinesBuilderList()
       List of text assets, each of which corresponds to a headline when the ad
       serves. This list consists of a minimum of 3 and up to 15 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;
    • getDescriptionsList

      public List<AdTextAsset> getDescriptionsList()
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptionsList in interface SmartCampaignAdInfoOrBuilder
    • getDescriptionsCount

      public int getDescriptionsCount()
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptionsCount in interface SmartCampaignAdInfoOrBuilder
    • getDescriptions

      public AdTextAsset getDescriptions(int index)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptions in interface SmartCampaignAdInfoOrBuilder
    • setDescriptions

      public SmartCampaignAdInfo.Builder setDescriptions(int index, AdTextAsset value)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • setDescriptions

      public SmartCampaignAdInfo.Builder setDescriptions(int index, AdTextAsset.Builder builderForValue)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • addDescriptions

      public SmartCampaignAdInfo.Builder addDescriptions(AdTextAsset value)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • addDescriptions

      public SmartCampaignAdInfo.Builder addDescriptions(int index, AdTextAsset value)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • addDescriptions

      public SmartCampaignAdInfo.Builder addDescriptions(AdTextAsset.Builder builderForValue)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • addDescriptions

      public SmartCampaignAdInfo.Builder addDescriptions(int index, AdTextAsset.Builder builderForValue)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • addAllDescriptions

      public SmartCampaignAdInfo.Builder addAllDescriptions(Iterable<? extends AdTextAsset> values)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • clearDescriptions

      public SmartCampaignAdInfo.Builder clearDescriptions()
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • removeDescriptions

      public SmartCampaignAdInfo.Builder removeDescriptions(int index)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • getDescriptionsBuilder

      public AdTextAsset.Builder getDescriptionsBuilder(int index)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • getDescriptionsOrBuilder

      public AdTextAssetOrBuilder getDescriptionsOrBuilder(int index)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptionsOrBuilder in interface SmartCampaignAdInfoOrBuilder
    • getDescriptionsOrBuilderList

      public List<? extends AdTextAssetOrBuilder> getDescriptionsOrBuilderList()
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
      Specified by:
      getDescriptionsOrBuilderList in interface SmartCampaignAdInfoOrBuilder
    • addDescriptionsBuilder

      public AdTextAsset.Builder addDescriptionsBuilder()
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • addDescriptionsBuilder

      public AdTextAsset.Builder addDescriptionsBuilder(int index)
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;
    • getDescriptionsBuilderList

      public List<AdTextAsset.Builder> getDescriptionsBuilderList()
       List of text assets, each of which corresponds to a description when the ad
       serves. This list consists of a minimum of 2 and up to 4 text assets.
       
      repeated .google.ads.googleads.v18.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>