Class LegacyResponsiveDisplayAdInfo

  • All Implemented Interfaces:
    LegacyResponsiveDisplayAdInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class LegacyResponsiveDisplayAdInfo
    extends com.google.protobuf.GeneratedMessageV3
    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.v10.common.LegacyResponsiveDisplayAdInfo
    See Also:
    Serialized Form
    • Field Detail

      • SHORT_HEADLINE_FIELD_NUMBER

        public static final int SHORT_HEADLINE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LONG_HEADLINE_FIELD_NUMBER

        public static final int LONG_HEADLINE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESCRIPTION_FIELD_NUMBER

        public static final int DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUSINESS_NAME_FIELD_NUMBER

        public static final int BUSINESS_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ALLOW_FLEXIBLE_COLOR_FIELD_NUMBER

        public static final int ALLOW_FLEXIBLE_COLOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACCENT_COLOR_FIELD_NUMBER

        public static final int ACCENT_COLOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAIN_COLOR_FIELD_NUMBER

        public static final int MAIN_COLOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CALL_TO_ACTION_TEXT_FIELD_NUMBER

        public static final int CALL_TO_ACTION_TEXT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOGO_IMAGE_FIELD_NUMBER

        public static final int LOGO_IMAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SQUARE_LOGO_IMAGE_FIELD_NUMBER

        public static final int SQUARE_LOGO_IMAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MARKETING_IMAGE_FIELD_NUMBER

        public static final int MARKETING_IMAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SQUARE_MARKETING_IMAGE_FIELD_NUMBER

        public static final int SQUARE_MARKETING_IMAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FORMAT_SETTING_FIELD_NUMBER

        public static final int FORMAT_SETTING_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRICE_PREFIX_FIELD_NUMBER

        public static final int PRICE_PREFIX_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROMO_TEXT_FIELD_NUMBER

        public static final int PROMO_TEXT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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:
        hasAllowFlexibleColor in interface LegacyResponsiveDisplayAdInfoOrBuilder
        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:
        getAllowFlexibleColor in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The allowFlexibleColor.
      • hasAccentColor

        public boolean hasAccentColor()
         The accent color of the ad in hexadecimal, e.g. #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:
        hasAccentColor in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        Whether the accentColor field is set.
      • getAccentColor

        public java.lang.String getAccentColor()
         The accent color of the ad in hexadecimal, e.g. #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:
        getAccentColor in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The accentColor.
      • getAccentColorBytes

        public com.google.protobuf.ByteString getAccentColorBytes()
         The accent color of the ad in hexadecimal, e.g. #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:
        getAccentColorBytes in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The bytes for accentColor.
      • hasMainColor

        public boolean hasMainColor()
         The main color of the ad in hexadecimal, e.g. #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:
        hasMainColor in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        Whether the mainColor field is set.
      • getMainColor

        public java.lang.String getMainColor()
         The main color of the ad in hexadecimal, e.g. #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:
        getMainColor in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The mainColor.
      • getMainColorBytes

        public com.google.protobuf.ByteString getMainColorBytes()
         The main color of the ad in hexadecimal, e.g. #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:
        getMainColorBytes in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The bytes for mainColor.
      • hasLogoImage

        public boolean hasLogoImage()
         The MediaFile resource name of the logo image used in the ad.
         
        optional string logo_image = 24;
        Specified by:
        hasLogoImage in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        Whether the logoImage field is set.
      • getLogoImage

        public java.lang.String getLogoImage()
         The MediaFile resource name of the logo image used in the ad.
         
        optional string logo_image = 24;
        Specified by:
        getLogoImage in interface LegacyResponsiveDisplayAdInfoOrBuilder
        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:
        getLogoImageBytes in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The bytes for logoImage.
      • 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:
        hasSquareLogoImage in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        Whether the squareLogoImage field is set.
      • getSquareLogoImage

        public java.lang.String getSquareLogoImage()
         The MediaFile resource name of the square logo image used in the ad.
         
        optional string square_logo_image = 25;
        Specified by:
        getSquareLogoImage in interface LegacyResponsiveDisplayAdInfoOrBuilder
        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:
        getSquareLogoImageBytes in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The bytes for squareLogoImage.
      • hasMarketingImage

        public boolean hasMarketingImage()
         The MediaFile resource name of the marketing image used in the ad.
         
        optional string marketing_image = 26;
        Specified by:
        hasMarketingImage in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        Whether the marketingImage field is set.
      • getMarketingImage

        public java.lang.String getMarketingImage()
         The MediaFile resource name of the marketing image used in the ad.
         
        optional string marketing_image = 26;
        Specified by:
        getMarketingImage in interface LegacyResponsiveDisplayAdInfoOrBuilder
        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:
        getMarketingImageBytes in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The bytes for marketingImage.
      • 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:
        hasSquareMarketingImage in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        Whether the squareMarketingImage field is set.
      • getSquareMarketingImage

        public java.lang.String getSquareMarketingImage()
         The MediaFile resource name of the square marketing image used in the ad.
         
        optional string square_marketing_image = 27;
        Specified by:
        getSquareMarketingImage in interface LegacyResponsiveDisplayAdInfoOrBuilder
        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:
        getSquareMarketingImageBytes in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The bytes for squareMarketingImage.
      • getFormatSettingValue

        public int getFormatSettingValue()
         Specifies which format the ad will be served in. Default is ALL_FORMATS.
         
        .google.ads.googleads.v10.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13;
        Specified by:
        getFormatSettingValue in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The enum numeric value on the wire for formatSetting.
      • 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:
        hasPromoText in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        Whether the promoText field is set.
      • getPromoText

        public java.lang.String getPromoText()
         Promotion text used for dynamic formats of responsive ads. For example
         'Free two-day shipping'.
         
        optional string promo_text = 29;
        Specified by:
        getPromoText in interface LegacyResponsiveDisplayAdInfoOrBuilder
        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:
        getPromoTextBytes in interface LegacyResponsiveDisplayAdInfoOrBuilder
        Returns:
        The bytes for promoText.
      • isInitialized

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

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

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

        public boolean equals​(java.lang.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 LegacyResponsiveDisplayAdInfo parseFrom​(java.nio.ByteBuffer data)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LegacyResponsiveDisplayAdInfo parseFrom​(java.nio.ByteBuffer data,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

        public static LegacyResponsiveDisplayAdInfo parseFrom​(java.io.InputStream input)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static LegacyResponsiveDisplayAdInfo parseFrom​(java.io.InputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static LegacyResponsiveDisplayAdInfo parseDelimitedFrom​(java.io.InputStream input)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static LegacyResponsiveDisplayAdInfo parseDelimitedFrom​(java.io.InputStream input,
                                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static LegacyResponsiveDisplayAdInfo parseFrom​(com.google.protobuf.CodedInputStream input)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static LegacyResponsiveDisplayAdInfo parseFrom​(com.google.protobuf.CodedInputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

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

        protected LegacyResponsiveDisplayAdInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<LegacyResponsiveDisplayAdInfo> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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