Class Campaign.TextGuidelines

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

public static final class Campaign.TextGuidelines extends com.google.protobuf.GeneratedMessage implements Campaign.TextGuidelinesOrBuilder
 Settings to control automatically generated text assets.
 
Protobuf type google.ads.googleads.v23.resources.Campaign.TextGuidelines
See Also:
  • Field Details

    • TERM_EXCLUSIONS_FIELD_NUMBER

      public static final int TERM_EXCLUSIONS_FIELD_NUMBER
      See Also:
    • MESSAGING_RESTRICTIONS_FIELD_NUMBER

      public static final int MESSAGING_RESTRICTIONS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Campaign.TextGuidelines parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Campaign.TextGuidelines parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Campaign.TextGuidelines parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Campaign.TextGuidelines.Builder newBuilder()
    • newBuilder

      public static Campaign.TextGuidelines.Builder newBuilder(Campaign.TextGuidelines prototype)
    • toBuilder

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

      protected Campaign.TextGuidelines.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Campaign.TextGuidelines getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Campaign.TextGuidelines> parser()
    • getParserForType

      public com.google.protobuf.Parser<Campaign.TextGuidelines> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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