Class LegacyResponsiveDisplayAdInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
com.google.ads.googleads.v18.common.LegacyResponsiveDisplayAdInfo.Builder
- All Implemented Interfaces:
LegacyResponsiveDisplayAdInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LegacyResponsiveDisplayAdInfo
public static final class LegacyResponsiveDisplayAdInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
implements LegacyResponsiveDisplayAdInfoOrBuilder
A legacy responsive display ad. Ads of this type are labeled 'Responsive ads' in the Google Ads UI.Protobuf type
google.ads.googleads.v18.common.LegacyResponsiveDisplayAdInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The accent color of the ad in hexadecimal, for example, #ffffff for white.Advertiser's consent to allow flexible color.The business name in the ad.The call-to-action text for the ad.The description of the ad.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Specifies which format the ad will be served in.The MediaFile resource name of the logo image used in the ad.The long version of the ad's headline.The main color of the ad in hexadecimal, for example, #ffffff for white.The MediaFile resource name of the marketing image used in the ad.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Prefix before price.Promotion text used for dynamic formats of responsive ads.The short version of the ad's headline.The MediaFile resource name of the square logo image used in the ad.The MediaFile resource name of the square marketing image used in the ad.clone()The accent color of the ad in hexadecimal, for example, #ffffff for white.com.google.protobuf.ByteStringThe accent color of the ad in hexadecimal, for example, #ffffff for white.booleanAdvertiser's consent to allow flexible color.The business name in the ad.com.google.protobuf.ByteStringThe business name in the ad.The call-to-action text for the ad.com.google.protobuf.ByteStringThe call-to-action text for the ad.The description of the ad.com.google.protobuf.ByteStringThe description of the ad.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies which format the ad will be served in.intSpecifies which format the ad will be served in.The MediaFile resource name of the logo image used in the ad.com.google.protobuf.ByteStringThe MediaFile resource name of the logo image used in the ad.The long version of the ad's headline.com.google.protobuf.ByteStringThe long version of the ad's headline.The main color of the ad in hexadecimal, for example, #ffffff for white.com.google.protobuf.ByteStringThe main color of the ad in hexadecimal, for example, #ffffff for white.The MediaFile resource name of the marketing image used in the ad.com.google.protobuf.ByteStringThe MediaFile resource name of the marketing image used in the ad.Prefix before price.com.google.protobuf.ByteStringPrefix before price.Promotion text used for dynamic formats of responsive ads.com.google.protobuf.ByteStringPromotion text used for dynamic formats of responsive ads.The short version of the ad's headline.com.google.protobuf.ByteStringThe short version of the ad's headline.The MediaFile resource name of the square logo image used in the ad.com.google.protobuf.ByteStringThe MediaFile resource name of the square logo image used in the ad.The MediaFile resource name of the square marketing image used in the ad.com.google.protobuf.ByteStringThe MediaFile resource name of the square marketing image used in the ad.booleanThe accent color of the ad in hexadecimal, for example, #ffffff for white.booleanAdvertiser's consent to allow flexible color.booleanThe business name in the ad.booleanThe call-to-action text for the ad.booleanThe description of the ad.booleanThe MediaFile resource name of the logo image used in the ad.booleanThe long version of the ad's headline.booleanThe main color of the ad in hexadecimal, for example, #ffffff for white.booleanThe MediaFile resource name of the marketing image used in the ad.booleanPrefix before price.booleanPromotion text used for dynamic formats of responsive ads.booleanThe short version of the ad's headline.booleanThe MediaFile resource name of the square logo image used in the ad.booleanThe MediaFile resource name of the square marketing image used in the ad.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAccentColor(String value) The accent color of the ad in hexadecimal, for example, #ffffff for white.setAccentColorBytes(com.google.protobuf.ByteString value) The accent color of the ad in hexadecimal, for example, #ffffff for white.setAllowFlexibleColor(boolean value) Advertiser's consent to allow flexible color.setBusinessName(String value) The business name in the ad.setBusinessNameBytes(com.google.protobuf.ByteString value) The business name in the ad.setCallToActionText(String value) The call-to-action text for the ad.setCallToActionTextBytes(com.google.protobuf.ByteString value) The call-to-action text for the ad.setDescription(String value) The description of the ad.setDescriptionBytes(com.google.protobuf.ByteString value) The description of the ad.Specifies which format the ad will be served in.setFormatSettingValue(int value) Specifies which format the ad will be served in.setLogoImage(String value) The MediaFile resource name of the logo image used in the ad.setLogoImageBytes(com.google.protobuf.ByteString value) The MediaFile resource name of the logo image used in the ad.setLongHeadline(String value) The long version of the ad's headline.setLongHeadlineBytes(com.google.protobuf.ByteString value) The long version of the ad's headline.setMainColor(String value) The main color of the ad in hexadecimal, for example, #ffffff for white.setMainColorBytes(com.google.protobuf.ByteString value) The main color of the ad in hexadecimal, for example, #ffffff for white.setMarketingImage(String value) The MediaFile resource name of the marketing image used in the ad.setMarketingImageBytes(com.google.protobuf.ByteString value) The MediaFile resource name of the marketing image used in the ad.setPricePrefix(String value) Prefix before price.setPricePrefixBytes(com.google.protobuf.ByteString value) Prefix before price.setPromoText(String value) Promotion text used for dynamic formats of responsive ads.setPromoTextBytes(com.google.protobuf.ByteString value) Promotion text used for dynamic formats of responsive ads.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setShortHeadline(String value) The short version of the ad's headline.setShortHeadlineBytes(com.google.protobuf.ByteString value) The short version of the ad's headline.setSquareLogoImage(String value) The MediaFile resource name of the square logo image used in the ad.setSquareLogoImageBytes(com.google.protobuf.ByteString value) The MediaFile resource name of the square logo image used in the ad.setSquareMarketingImage(String value) The MediaFile resource name of the square marketing image used in the ad.setSquareMarketingImageBytes(com.google.protobuf.ByteString value) The MediaFile resource name of the square marketing image used in the ad.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.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.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
setField
public LegacyResponsiveDisplayAdInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
clearField
public LegacyResponsiveDisplayAdInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
clearOneof
public LegacyResponsiveDisplayAdInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
setRepeatedField
public LegacyResponsiveDisplayAdInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
addRepeatedField
public LegacyResponsiveDisplayAdInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
mergeFrom
public LegacyResponsiveDisplayAdInfo.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<LegacyResponsiveDisplayAdInfo.Builder>- Throws:
IOException
-
hasShortHeadline
public boolean hasShortHeadline()The short version of the ad's headline.
optional string short_headline = 16;- Specified by:
hasShortHeadlinein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the shortHeadline field is set.
-
getShortHeadline
The short version of the ad's headline.
optional string short_headline = 16;- Specified by:
getShortHeadlinein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The shortHeadline.
-
getShortHeadlineBytes
public com.google.protobuf.ByteString getShortHeadlineBytes()The short version of the ad's headline.
optional string short_headline = 16;- Specified by:
getShortHeadlineBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for shortHeadline.
-
setShortHeadline
The short version of the ad's headline.
optional string short_headline = 16;- Parameters:
value- The shortHeadline to set.- Returns:
- This builder for chaining.
-
clearShortHeadline
The short version of the ad's headline.
optional string short_headline = 16;- Returns:
- This builder for chaining.
-
setShortHeadlineBytes
public LegacyResponsiveDisplayAdInfo.Builder setShortHeadlineBytes(com.google.protobuf.ByteString value) The short version of the ad's headline.
optional string short_headline = 16;- Parameters:
value- The bytes for shortHeadline to set.- Returns:
- This builder for chaining.
-
hasLongHeadline
public boolean hasLongHeadline()The long version of the ad's headline.
optional string long_headline = 17;- Specified by:
hasLongHeadlinein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the longHeadline field is set.
-
getLongHeadline
The long version of the ad's headline.
optional string long_headline = 17;- Specified by:
getLongHeadlinein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The longHeadline.
-
getLongHeadlineBytes
public com.google.protobuf.ByteString getLongHeadlineBytes()The long version of the ad's headline.
optional string long_headline = 17;- Specified by:
getLongHeadlineBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for longHeadline.
-
setLongHeadline
The long version of the ad's headline.
optional string long_headline = 17;- Parameters:
value- The longHeadline to set.- Returns:
- This builder for chaining.
-
clearLongHeadline
The long version of the ad's headline.
optional string long_headline = 17;- Returns:
- This builder for chaining.
-
setLongHeadlineBytes
public LegacyResponsiveDisplayAdInfo.Builder setLongHeadlineBytes(com.google.protobuf.ByteString value) The long version of the ad's headline.
optional string long_headline = 17;- Parameters:
value- The bytes for longHeadline to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()The description of the ad.
optional string description = 18;- Specified by:
hasDescriptionin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
The description of the ad.
optional string description = 18;- Specified by:
getDescriptionin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()The description of the ad.
optional string description = 18;- Specified by:
getDescriptionBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for description.
-
setDescription
The description of the ad.
optional string description = 18;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
The description of the ad.
optional string description = 18;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public LegacyResponsiveDisplayAdInfo.Builder setDescriptionBytes(com.google.protobuf.ByteString value) The description of the ad.
optional string description = 18;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasBusinessName
public boolean hasBusinessName()The business name in the ad.
optional string business_name = 19;- Specified by:
hasBusinessNamein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the businessName field is set.
-
getBusinessName
The business name in the ad.
optional string business_name = 19;- Specified by:
getBusinessNamein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The businessName.
-
getBusinessNameBytes
public com.google.protobuf.ByteString getBusinessNameBytes()The business name in the ad.
optional string business_name = 19;- Specified by:
getBusinessNameBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for businessName.
-
setBusinessName
The business name in the ad.
optional string business_name = 19;- Parameters:
value- The businessName to set.- Returns:
- This builder for chaining.
-
clearBusinessName
The business name in the ad.
optional string business_name = 19;- Returns:
- This builder for chaining.
-
setBusinessNameBytes
public LegacyResponsiveDisplayAdInfo.Builder setBusinessNameBytes(com.google.protobuf.ByteString value) The business name in the ad.
optional string business_name = 19;- Parameters:
value- The bytes for businessName to set.- Returns:
- This builder for chaining.
-
hasAllowFlexibleColor
public boolean hasAllowFlexibleColor()Advertiser's consent to allow flexible color. When true, the ad may be served with different color if necessary. When false, the ad will be served with the specified colors or a neutral color. The default value is `true`. Must be true if `main_color` and `accent_color` are not set.
optional bool allow_flexible_color = 20;- Specified by:
hasAllowFlexibleColorin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the allowFlexibleColor field is set.
-
getAllowFlexibleColor
public boolean getAllowFlexibleColor()Advertiser's consent to allow flexible color. When true, the ad may be served with different color if necessary. When false, the ad will be served with the specified colors or a neutral color. The default value is `true`. Must be true if `main_color` and `accent_color` are not set.
optional bool allow_flexible_color = 20;- Specified by:
getAllowFlexibleColorin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The allowFlexibleColor.
-
setAllowFlexibleColor
Advertiser's consent to allow flexible color. When true, the ad may be served with different color if necessary. When false, the ad will be served with the specified colors or a neutral color. The default value is `true`. Must be true if `main_color` and `accent_color` are not set.
optional bool allow_flexible_color = 20;- Parameters:
value- The allowFlexibleColor to set.- Returns:
- This builder for chaining.
-
clearAllowFlexibleColor
Advertiser's consent to allow flexible color. When true, the ad may be served with different color if necessary. When false, the ad will be served with the specified colors or a neutral color. The default value is `true`. Must be true if `main_color` and `accent_color` are not set.
optional bool allow_flexible_color = 20;- Returns:
- This builder for chaining.
-
hasAccentColor
public boolean hasAccentColor()The accent color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string accent_color = 21;- Specified by:
hasAccentColorin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the accentColor field is set.
-
getAccentColor
The accent color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string accent_color = 21;- Specified by:
getAccentColorin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The accentColor.
-
getAccentColorBytes
public com.google.protobuf.ByteString getAccentColorBytes()The accent color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string accent_color = 21;- Specified by:
getAccentColorBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for accentColor.
-
setAccentColor
The accent color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string accent_color = 21;- Parameters:
value- The accentColor to set.- Returns:
- This builder for chaining.
-
clearAccentColor
The accent color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string accent_color = 21;- Returns:
- This builder for chaining.
-
setAccentColorBytes
public LegacyResponsiveDisplayAdInfo.Builder setAccentColorBytes(com.google.protobuf.ByteString value) The accent color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string accent_color = 21;- Parameters:
value- The bytes for accentColor to set.- Returns:
- This builder for chaining.
-
hasMainColor
public boolean hasMainColor()The main color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string main_color = 22;- Specified by:
hasMainColorin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the mainColor field is set.
-
getMainColor
The main color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string main_color = 22;- Specified by:
getMainColorin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The mainColor.
-
getMainColorBytes
public com.google.protobuf.ByteString getMainColorBytes()The main color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string main_color = 22;- Specified by:
getMainColorBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for mainColor.
-
setMainColor
The main color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string main_color = 22;- Parameters:
value- The mainColor to set.- Returns:
- This builder for chaining.
-
clearMainColor
The main color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string main_color = 22;- Returns:
- This builder for chaining.
-
setMainColorBytes
public LegacyResponsiveDisplayAdInfo.Builder setMainColorBytes(com.google.protobuf.ByteString value) The main color of the ad in hexadecimal, for example, #ffffff for white. If one of `main_color` and `accent_color` is set, the other is required as well.
optional string main_color = 22;- Parameters:
value- The bytes for mainColor to set.- Returns:
- This builder for chaining.
-
hasCallToActionText
public boolean hasCallToActionText()The call-to-action text for the ad.
optional string call_to_action_text = 23;- Specified by:
hasCallToActionTextin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the callToActionText field is set.
-
getCallToActionText
The call-to-action text for the ad.
optional string call_to_action_text = 23;- Specified by:
getCallToActionTextin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The callToActionText.
-
getCallToActionTextBytes
public com.google.protobuf.ByteString getCallToActionTextBytes()The call-to-action text for the ad.
optional string call_to_action_text = 23;- Specified by:
getCallToActionTextBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for callToActionText.
-
setCallToActionText
The call-to-action text for the ad.
optional string call_to_action_text = 23;- Parameters:
value- The callToActionText to set.- Returns:
- This builder for chaining.
-
clearCallToActionText
The call-to-action text for the ad.
optional string call_to_action_text = 23;- Returns:
- This builder for chaining.
-
setCallToActionTextBytes
public LegacyResponsiveDisplayAdInfo.Builder setCallToActionTextBytes(com.google.protobuf.ByteString value) The call-to-action text for the ad.
optional string call_to_action_text = 23;- Parameters:
value- The bytes for callToActionText to set.- Returns:
- This builder for chaining.
-
hasLogoImage
public boolean hasLogoImage()The MediaFile resource name of the logo image used in the ad.
optional string logo_image = 24;- Specified by:
hasLogoImagein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the logoImage field is set.
-
getLogoImage
The MediaFile resource name of the logo image used in the ad.
optional string logo_image = 24;- Specified by:
getLogoImagein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The logoImage.
-
getLogoImageBytes
public com.google.protobuf.ByteString getLogoImageBytes()The MediaFile resource name of the logo image used in the ad.
optional string logo_image = 24;- Specified by:
getLogoImageBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for logoImage.
-
setLogoImage
The MediaFile resource name of the logo image used in the ad.
optional string logo_image = 24;- Parameters:
value- The logoImage to set.- Returns:
- This builder for chaining.
-
clearLogoImage
The MediaFile resource name of the logo image used in the ad.
optional string logo_image = 24;- Returns:
- This builder for chaining.
-
setLogoImageBytes
public LegacyResponsiveDisplayAdInfo.Builder setLogoImageBytes(com.google.protobuf.ByteString value) The MediaFile resource name of the logo image used in the ad.
optional string logo_image = 24;- Parameters:
value- The bytes for logoImage to set.- Returns:
- This builder for chaining.
-
hasSquareLogoImage
public boolean hasSquareLogoImage()The MediaFile resource name of the square logo image used in the ad.
optional string square_logo_image = 25;- Specified by:
hasSquareLogoImagein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the squareLogoImage field is set.
-
getSquareLogoImage
The MediaFile resource name of the square logo image used in the ad.
optional string square_logo_image = 25;- Specified by:
getSquareLogoImagein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The squareLogoImage.
-
getSquareLogoImageBytes
public com.google.protobuf.ByteString getSquareLogoImageBytes()The MediaFile resource name of the square logo image used in the ad.
optional string square_logo_image = 25;- Specified by:
getSquareLogoImageBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for squareLogoImage.
-
setSquareLogoImage
The MediaFile resource name of the square logo image used in the ad.
optional string square_logo_image = 25;- Parameters:
value- The squareLogoImage to set.- Returns:
- This builder for chaining.
-
clearSquareLogoImage
The MediaFile resource name of the square logo image used in the ad.
optional string square_logo_image = 25;- Returns:
- This builder for chaining.
-
setSquareLogoImageBytes
public LegacyResponsiveDisplayAdInfo.Builder setSquareLogoImageBytes(com.google.protobuf.ByteString value) The MediaFile resource name of the square logo image used in the ad.
optional string square_logo_image = 25;- Parameters:
value- The bytes for squareLogoImage to set.- Returns:
- This builder for chaining.
-
hasMarketingImage
public boolean hasMarketingImage()The MediaFile resource name of the marketing image used in the ad.
optional string marketing_image = 26;- Specified by:
hasMarketingImagein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the marketingImage field is set.
-
getMarketingImage
The MediaFile resource name of the marketing image used in the ad.
optional string marketing_image = 26;- Specified by:
getMarketingImagein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The marketingImage.
-
getMarketingImageBytes
public com.google.protobuf.ByteString getMarketingImageBytes()The MediaFile resource name of the marketing image used in the ad.
optional string marketing_image = 26;- Specified by:
getMarketingImageBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for marketingImage.
-
setMarketingImage
The MediaFile resource name of the marketing image used in the ad.
optional string marketing_image = 26;- Parameters:
value- The marketingImage to set.- Returns:
- This builder for chaining.
-
clearMarketingImage
The MediaFile resource name of the marketing image used in the ad.
optional string marketing_image = 26;- Returns:
- This builder for chaining.
-
setMarketingImageBytes
public LegacyResponsiveDisplayAdInfo.Builder setMarketingImageBytes(com.google.protobuf.ByteString value) The MediaFile resource name of the marketing image used in the ad.
optional string marketing_image = 26;- Parameters:
value- The bytes for marketingImage to set.- Returns:
- This builder for chaining.
-
hasSquareMarketingImage
public boolean hasSquareMarketingImage()The MediaFile resource name of the square marketing image used in the ad.
optional string square_marketing_image = 27;- Specified by:
hasSquareMarketingImagein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the squareMarketingImage field is set.
-
getSquareMarketingImage
The MediaFile resource name of the square marketing image used in the ad.
optional string square_marketing_image = 27;- Specified by:
getSquareMarketingImagein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The squareMarketingImage.
-
getSquareMarketingImageBytes
public com.google.protobuf.ByteString getSquareMarketingImageBytes()The MediaFile resource name of the square marketing image used in the ad.
optional string square_marketing_image = 27;- Specified by:
getSquareMarketingImageBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for squareMarketingImage.
-
setSquareMarketingImage
The MediaFile resource name of the square marketing image used in the ad.
optional string square_marketing_image = 27;- Parameters:
value- The squareMarketingImage to set.- Returns:
- This builder for chaining.
-
clearSquareMarketingImage
The MediaFile resource name of the square marketing image used in the ad.
optional string square_marketing_image = 27;- Returns:
- This builder for chaining.
-
setSquareMarketingImageBytes
public LegacyResponsiveDisplayAdInfo.Builder setSquareMarketingImageBytes(com.google.protobuf.ByteString value) The MediaFile resource name of the square marketing image used in the ad.
optional string square_marketing_image = 27;- Parameters:
value- The bytes for squareMarketingImage to set.- Returns:
- This builder for chaining.
-
getFormatSettingValue
public int getFormatSettingValue()Specifies which format the ad will be served in. Default is ALL_FORMATS.
.google.ads.googleads.v18.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;- Specified by:
getFormatSettingValuein interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The enum numeric value on the wire for formatSetting.
-
setFormatSettingValue
Specifies which format the ad will be served in. Default is ALL_FORMATS.
.google.ads.googleads.v18.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;- Parameters:
value- The enum numeric value on the wire for formatSetting to set.- Returns:
- This builder for chaining.
-
getFormatSetting
Specifies which format the ad will be served in. Default is ALL_FORMATS.
.google.ads.googleads.v18.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;- Specified by:
getFormatSettingin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The formatSetting.
-
setFormatSetting
public LegacyResponsiveDisplayAdInfo.Builder setFormatSetting(DisplayAdFormatSettingEnum.DisplayAdFormatSetting value) Specifies which format the ad will be served in. Default is ALL_FORMATS.
.google.ads.googleads.v18.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;- Parameters:
value- The formatSetting to set.- Returns:
- This builder for chaining.
-
clearFormatSetting
Specifies which format the ad will be served in. Default is ALL_FORMATS.
.google.ads.googleads.v18.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;- Returns:
- This builder for chaining.
-
hasPricePrefix
public boolean hasPricePrefix()Prefix before price. For example, 'as low as'.
optional string price_prefix = 28;- Specified by:
hasPricePrefixin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the pricePrefix field is set.
-
getPricePrefix
Prefix before price. For example, 'as low as'.
optional string price_prefix = 28;- Specified by:
getPricePrefixin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The pricePrefix.
-
getPricePrefixBytes
public com.google.protobuf.ByteString getPricePrefixBytes()Prefix before price. For example, 'as low as'.
optional string price_prefix = 28;- Specified by:
getPricePrefixBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for pricePrefix.
-
setPricePrefix
Prefix before price. For example, 'as low as'.
optional string price_prefix = 28;- Parameters:
value- The pricePrefix to set.- Returns:
- This builder for chaining.
-
clearPricePrefix
Prefix before price. For example, 'as low as'.
optional string price_prefix = 28;- Returns:
- This builder for chaining.
-
setPricePrefixBytes
public LegacyResponsiveDisplayAdInfo.Builder setPricePrefixBytes(com.google.protobuf.ByteString value) Prefix before price. For example, 'as low as'.
optional string price_prefix = 28;- Parameters:
value- The bytes for pricePrefix to set.- Returns:
- This builder for chaining.
-
hasPromoText
public boolean hasPromoText()Promotion text used for dynamic formats of responsive ads. For example 'Free two-day shipping'.
optional string promo_text = 29;- Specified by:
hasPromoTextin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- Whether the promoText field is set.
-
getPromoText
Promotion text used for dynamic formats of responsive ads. For example 'Free two-day shipping'.
optional string promo_text = 29;- Specified by:
getPromoTextin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The promoText.
-
getPromoTextBytes
public com.google.protobuf.ByteString getPromoTextBytes()Promotion text used for dynamic formats of responsive ads. For example 'Free two-day shipping'.
optional string promo_text = 29;- Specified by:
getPromoTextBytesin interfaceLegacyResponsiveDisplayAdInfoOrBuilder- Returns:
- The bytes for promoText.
-
setPromoText
Promotion text used for dynamic formats of responsive ads. For example 'Free two-day shipping'.
optional string promo_text = 29;- Parameters:
value- The promoText to set.- Returns:
- This builder for chaining.
-
clearPromoText
Promotion text used for dynamic formats of responsive ads. For example 'Free two-day shipping'.
optional string promo_text = 29;- Returns:
- This builder for chaining.
-
setPromoTextBytes
public LegacyResponsiveDisplayAdInfo.Builder setPromoTextBytes(com.google.protobuf.ByteString value) Promotion text used for dynamic formats of responsive ads. For example 'Free two-day shipping'.
optional string promo_text = 29;- Parameters:
value- The bytes for promoText to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final LegacyResponsiveDisplayAdInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-
mergeUnknownFields
public final LegacyResponsiveDisplayAdInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LegacyResponsiveDisplayAdInfo.Builder>
-