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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Freeform instructions to guide text asset generation using LLM inference.Determines how the guideline is applied.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFreeform instructions to guide text asset generation using LLM inference.com.google.protobuf.ByteStringFreeform instructions to guide text asset generation using LLM inference.Determines how the guideline is applied.intDetermines how the guideline is applied.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setRestrictionText(String value) Freeform instructions to guide text asset generation using LLM inference.setRestrictionTextBytes(com.google.protobuf.ByteString value) Freeform instructions to guide text asset generation using LLM inference.Determines how the guideline is applied.setRestrictionTypeValue(int value) Determines how the guideline is applied.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Campaign.MessagingRestriction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Campaign.MessagingRestriction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Campaign.MessagingRestriction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Campaign.MessagingRestriction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Campaign.MessagingRestriction.Builder>- Throws:
IOException
-
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:
getRestrictionTextin interfaceCampaign.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:
getRestrictionTextBytesin interfaceCampaign.MessagingRestrictionOrBuilder- Returns:
- The bytes for restrictionText.
-
setRestrictionText
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
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:
getRestrictionTypeValuein interfaceCampaign.MessagingRestrictionOrBuilder- Returns:
- The enum numeric value on the wire for restrictionType.
-
setRestrictionTypeValue
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:
getRestrictionTypein interfaceCampaign.MessagingRestrictionOrBuilder- Returns:
- The restrictionType.
-
setRestrictionType
public Campaign.MessagingRestriction.Builder setRestrictionType(MessagingRestrictionTypeEnum.MessagingRestrictionType 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 restrictionType to set.- Returns:
- This builder for chaining.
-
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.
-