Class Campaign.MessagingRestriction.Builder

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

public static final class Campaign.MessagingRestriction.Builder extends com.google.protobuf.GeneratedMessage.Builder<Campaign.MessagingRestriction.Builder> implements Campaign.MessagingRestrictionOrBuilder
 Freeform instructions that will be used to guide text asset generation
 using LLM inference.
 
Protobuf type google.ads.googleads.v23.resources.Campaign.MessagingRestriction
  • 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.MessagingRestriction.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.MessagingRestriction.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.MessagingRestriction.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

      public String getRestrictionText()
       Freeform instructions to guide text asset generation using LLM
       inference. Valid instructions may contain a maximum of 300 characters.
       
      string restriction_text = 1;
      Specified by:
      getRestrictionText in interface Campaign.MessagingRestrictionOrBuilder
      Returns:
      The restrictionText.
    • getRestrictionTextBytes

      public com.google.protobuf.ByteString getRestrictionTextBytes()
       Freeform instructions to guide text asset generation using LLM
       inference. Valid instructions may contain a maximum of 300 characters.
       
      string restriction_text = 1;
      Specified by:
      getRestrictionTextBytes in interface Campaign.MessagingRestrictionOrBuilder
      Returns:
      The bytes for restrictionText.
    • setRestrictionText

      public Campaign.MessagingRestriction.Builder setRestrictionText(String value)
       Freeform instructions to guide text asset generation using LLM
       inference. Valid instructions may contain a maximum of 300 characters.
       
      string restriction_text = 1;
      Parameters:
      value - The restrictionText to set.
      Returns:
      This builder for chaining.
    • clearRestrictionText

      public Campaign.MessagingRestriction.Builder clearRestrictionText()
       Freeform instructions to guide text asset generation using LLM
       inference. Valid instructions may contain a maximum of 300 characters.
       
      string restriction_text = 1;
      Returns:
      This builder for chaining.
    • setRestrictionTextBytes

      public Campaign.MessagingRestriction.Builder setRestrictionTextBytes(com.google.protobuf.ByteString value)
       Freeform instructions to guide text asset generation using LLM
       inference. Valid instructions may contain a maximum of 300 characters.
       
      string restriction_text = 1;
      Parameters:
      value - The bytes for restrictionText to set.
      Returns:
      This builder for chaining.
    • getRestrictionTypeValue

      public int getRestrictionTypeValue()
       Determines how the guideline is applied. Only
       `RESTRICTION_BASED_EXCLUSION` is currently supported.
       
      .google.ads.googleads.v23.enums.MessagingRestrictionTypeEnum.MessagingRestrictionType restriction_type = 2;
      Specified by:
      getRestrictionTypeValue in interface Campaign.MessagingRestrictionOrBuilder
      Returns:
      The enum numeric value on the wire for restrictionType.
    • setRestrictionTypeValue

      public Campaign.MessagingRestriction.Builder setRestrictionTypeValue(int value)
       Determines how the guideline is applied. Only
       `RESTRICTION_BASED_EXCLUSION` is currently supported.
       
      .google.ads.googleads.v23.enums.MessagingRestrictionTypeEnum.MessagingRestrictionType restriction_type = 2;
      Parameters:
      value - The enum numeric value on the wire for restrictionType to set.
      Returns:
      This builder for chaining.
    • getRestrictionType

       Determines how the guideline is applied. Only
       `RESTRICTION_BASED_EXCLUSION` is currently supported.
       
      .google.ads.googleads.v23.enums.MessagingRestrictionTypeEnum.MessagingRestrictionType restriction_type = 2;
      Specified by:
      getRestrictionType in interface Campaign.MessagingRestrictionOrBuilder
      Returns:
      The restrictionType.
    • setRestrictionType

       Determines how the guideline is applied. Only
       `RESTRICTION_BASED_EXCLUSION` is currently supported.
       
      .google.ads.googleads.v23.enums.MessagingRestrictionTypeEnum.MessagingRestrictionType restriction_type = 2;
      Parameters:
      value - The restrictionType to set.
      Returns:
      This builder for chaining.
    • clearRestrictionType

      public Campaign.MessagingRestriction.Builder clearRestrictionType()
       Determines how the guideline is applied. Only
       `RESTRICTION_BASED_EXCLUSION` is currently supported.
       
      .google.ads.googleads.v23.enums.MessagingRestrictionTypeEnum.MessagingRestrictionType restriction_type = 2;
      Returns:
      This builder for chaining.