Class Campaign.TextGuidelines.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Campaign.TextGuidelines.Builder>
com.google.ads.googleads.v23.resources.Campaign.TextGuidelines.Builder
All Implemented Interfaces:
Campaign.TextGuidelinesOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Campaign.TextGuidelines

public static final class Campaign.TextGuidelines.Builder extends com.google.protobuf.GeneratedMessage.Builder<Campaign.TextGuidelines.Builder> implements Campaign.TextGuidelinesOrBuilder
 Settings to control automatically generated text assets.
 
Protobuf type google.ads.googleads.v23.resources.Campaign.TextGuidelines
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Campaign.TextGuidelines.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.GeneratedMessage.Builder<Campaign.TextGuidelines.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.GeneratedMessage.Builder<Campaign.TextGuidelines.Builder>
    • getDefaultInstanceForType

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

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

      public Campaign.TextGuidelines buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public Campaign.TextGuidelines.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<Campaign.TextGuidelines.Builder>
      Throws:
      IOException
    • getTermExclusionsList

      public com.google.protobuf.ProtocolStringList getTermExclusionsList()
       Exact words or phrases that will be excluded from generated text
       assets. At most 25 exclusions may be provided. Valid exclusions may
       contain a maximum of 30 characters.
       
      repeated string term_exclusions = 1;
      Specified by:
      getTermExclusionsList in interface Campaign.TextGuidelinesOrBuilder
      Returns:
      A list containing the termExclusions.
    • getTermExclusionsCount

      public int getTermExclusionsCount()
       Exact words or phrases that will be excluded from generated text
       assets. At most 25 exclusions may be provided. Valid exclusions may
       contain a maximum of 30 characters.
       
      repeated string term_exclusions = 1;
      Specified by:
      getTermExclusionsCount in interface Campaign.TextGuidelinesOrBuilder
      Returns:
      The count of termExclusions.
    • getTermExclusions

      public String getTermExclusions(int index)
       Exact words or phrases that will be excluded from generated text
       assets. At most 25 exclusions may be provided. Valid exclusions may
       contain a maximum of 30 characters.
       
      repeated string term_exclusions = 1;
      Specified by:
      getTermExclusions in interface Campaign.TextGuidelinesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The termExclusions at the given index.
    • getTermExclusionsBytes

      public com.google.protobuf.ByteString getTermExclusionsBytes(int index)
       Exact words or phrases that will be excluded from generated text
       assets. At most 25 exclusions may be provided. Valid exclusions may
       contain a maximum of 30 characters.
       
      repeated string term_exclusions = 1;
      Specified by:
      getTermExclusionsBytes in interface Campaign.TextGuidelinesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the termExclusions at the given index.
    • setTermExclusions

      public Campaign.TextGuidelines.Builder setTermExclusions(int index, String value)
       Exact words or phrases that will be excluded from generated text
       assets. At most 25 exclusions may be provided. Valid exclusions may
       contain a maximum of 30 characters.
       
      repeated string term_exclusions = 1;
      Parameters:
      index - The index to set the value at.
      value - The termExclusions to set.
      Returns:
      This builder for chaining.
    • addTermExclusions

      public Campaign.TextGuidelines.Builder addTermExclusions(String value)
       Exact words or phrases that will be excluded from generated text
       assets. At most 25 exclusions may be provided. Valid exclusions may
       contain a maximum of 30 characters.
       
      repeated string term_exclusions = 1;
      Parameters:
      value - The termExclusions to add.
      Returns:
      This builder for chaining.
    • addAllTermExclusions

      public Campaign.TextGuidelines.Builder addAllTermExclusions(Iterable<String> values)
       Exact words or phrases that will be excluded from generated text
       assets. At most 25 exclusions may be provided. Valid exclusions may
       contain a maximum of 30 characters.
       
      repeated string term_exclusions = 1;
      Parameters:
      values - The termExclusions to add.
      Returns:
      This builder for chaining.
    • clearTermExclusions

      public Campaign.TextGuidelines.Builder clearTermExclusions()
       Exact words or phrases that will be excluded from generated text
       assets. At most 25 exclusions may be provided. Valid exclusions may
       contain a maximum of 30 characters.
       
      repeated string term_exclusions = 1;
      Returns:
      This builder for chaining.
    • addTermExclusionsBytes

      public Campaign.TextGuidelines.Builder addTermExclusionsBytes(com.google.protobuf.ByteString value)
       Exact words or phrases that will be excluded from generated text
       assets. At most 25 exclusions may be provided. Valid exclusions may
       contain a maximum of 30 characters.
       
      repeated string term_exclusions = 1;
      Parameters:
      value - The bytes of the termExclusions to add.
      Returns:
      This builder for chaining.
    • getMessagingRestrictionsList

      public List<Campaign.MessagingRestriction> getMessagingRestrictionsList()
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
      Specified by:
      getMessagingRestrictionsList in interface Campaign.TextGuidelinesOrBuilder
    • getMessagingRestrictionsCount

      public int getMessagingRestrictionsCount()
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
      Specified by:
      getMessagingRestrictionsCount in interface Campaign.TextGuidelinesOrBuilder
    • getMessagingRestrictions

      public Campaign.MessagingRestriction getMessagingRestrictions(int index)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
      Specified by:
      getMessagingRestrictions in interface Campaign.TextGuidelinesOrBuilder
    • setMessagingRestrictions

      public Campaign.TextGuidelines.Builder setMessagingRestrictions(int index, Campaign.MessagingRestriction value)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • setMessagingRestrictions

      public Campaign.TextGuidelines.Builder setMessagingRestrictions(int index, Campaign.MessagingRestriction.Builder builderForValue)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • addMessagingRestrictions

      public Campaign.TextGuidelines.Builder addMessagingRestrictions(Campaign.MessagingRestriction value)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • addMessagingRestrictions

      public Campaign.TextGuidelines.Builder addMessagingRestrictions(int index, Campaign.MessagingRestriction value)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • addMessagingRestrictions

      public Campaign.TextGuidelines.Builder addMessagingRestrictions(Campaign.MessagingRestriction.Builder builderForValue)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • addMessagingRestrictions

      public Campaign.TextGuidelines.Builder addMessagingRestrictions(int index, Campaign.MessagingRestriction.Builder builderForValue)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • addAllMessagingRestrictions

      public Campaign.TextGuidelines.Builder addAllMessagingRestrictions(Iterable<? extends Campaign.MessagingRestriction> values)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • clearMessagingRestrictions

      public Campaign.TextGuidelines.Builder clearMessagingRestrictions()
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • removeMessagingRestrictions

      public Campaign.TextGuidelines.Builder removeMessagingRestrictions(int index)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • getMessagingRestrictionsBuilder

      public Campaign.MessagingRestriction.Builder getMessagingRestrictionsBuilder(int index)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • getMessagingRestrictionsOrBuilder

      public Campaign.MessagingRestrictionOrBuilder getMessagingRestrictionsOrBuilder(int index)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
      Specified by:
      getMessagingRestrictionsOrBuilder in interface Campaign.TextGuidelinesOrBuilder
    • getMessagingRestrictionsOrBuilderList

      public List<? extends Campaign.MessagingRestrictionOrBuilder> getMessagingRestrictionsOrBuilderList()
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
      Specified by:
      getMessagingRestrictionsOrBuilderList in interface Campaign.TextGuidelinesOrBuilder
    • addMessagingRestrictionsBuilder

      public Campaign.MessagingRestriction.Builder addMessagingRestrictionsBuilder()
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • addMessagingRestrictionsBuilder

      public Campaign.MessagingRestriction.Builder addMessagingRestrictionsBuilder(int index)
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;
    • getMessagingRestrictionsBuilderList

      public List<Campaign.MessagingRestriction.Builder> getMessagingRestrictionsBuilderList()
       Freeform instructions that will be used to guide text asset generation
       using LLM inference. At most 40 restrictions may be provided.
       
      repeated .google.ads.googleads.v23.resources.Campaign.MessagingRestriction messaging_restrictions = 2;