Class DiscoveryMultiAssetAdInfo

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

    public final class DiscoveryMultiAssetAdInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements DiscoveryMultiAssetAdInfoOrBuilder
     A discovery multi asset ad.
     
    Protobuf type google.ads.googleads.v15.common.DiscoveryMultiAssetAdInfo
    See Also:
    Serialized Form
    • Field Detail

      • MARKETING_IMAGES_FIELD_NUMBER

        public static final int MARKETING_IMAGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SQUARE_MARKETING_IMAGES_FIELD_NUMBER

        public static final int SQUARE_MARKETING_IMAGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PORTRAIT_MARKETING_IMAGES_FIELD_NUMBER

        public static final int PORTRAIT_MARKETING_IMAGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOGO_IMAGES_FIELD_NUMBER

        public static final int LOGO_IMAGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESCRIPTIONS_FIELD_NUMBER

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

        public static final int BUSINESS_NAME_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
      • LEAD_FORM_ONLY_FIELD_NUMBER

        public static final int LEAD_FORM_ONLY_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
      • 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
      • getMarketingImagesList

        public java.util.List<AdImageAsset> getMarketingImagesList()
         Marketing image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
         be 1.91:1 (+-1%). Required if square_marketing_images is
         not present. Combined with `square_marketing_images` and
         `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset marketing_images = 1;
        Specified by:
        getMarketingImagesList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getMarketingImagesOrBuilderList

        public java.util.List<? extends AdImageAssetOrBuilder> getMarketingImagesOrBuilderList()
         Marketing image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
         be 1.91:1 (+-1%). Required if square_marketing_images is
         not present. Combined with `square_marketing_images` and
         `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset marketing_images = 1;
        Specified by:
        getMarketingImagesOrBuilderList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getMarketingImagesCount

        public int getMarketingImagesCount()
         Marketing image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
         be 1.91:1 (+-1%). Required if square_marketing_images is
         not present. Combined with `square_marketing_images` and
         `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset marketing_images = 1;
        Specified by:
        getMarketingImagesCount in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getMarketingImages

        public AdImageAsset getMarketingImages​(int index)
         Marketing image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
         be 1.91:1 (+-1%). Required if square_marketing_images is
         not present. Combined with `square_marketing_images` and
         `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset marketing_images = 1;
        Specified by:
        getMarketingImages in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getMarketingImagesOrBuilder

        public AdImageAssetOrBuilder getMarketingImagesOrBuilder​(int index)
         Marketing image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
         be 1.91:1 (+-1%). Required if square_marketing_images is
         not present. Combined with `square_marketing_images` and
         `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset marketing_images = 1;
        Specified by:
        getMarketingImagesOrBuilder in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getSquareMarketingImagesList

        public java.util.List<AdImageAsset> getSquareMarketingImagesList()
         Square marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
         be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
         `marketing_images` and `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset square_marketing_images = 2;
        Specified by:
        getSquareMarketingImagesList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getSquareMarketingImagesOrBuilderList

        public java.util.List<? extends AdImageAssetOrBuilder> getSquareMarketingImagesOrBuilderList()
         Square marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
         be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
         `marketing_images` and `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset square_marketing_images = 2;
        Specified by:
        getSquareMarketingImagesOrBuilderList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getSquareMarketingImagesCount

        public int getSquareMarketingImagesCount()
         Square marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
         be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
         `marketing_images` and `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset square_marketing_images = 2;
        Specified by:
        getSquareMarketingImagesCount in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getSquareMarketingImages

        public AdImageAsset getSquareMarketingImages​(int index)
         Square marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
         be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
         `marketing_images` and `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset square_marketing_images = 2;
        Specified by:
        getSquareMarketingImages in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getSquareMarketingImagesOrBuilder

        public AdImageAssetOrBuilder getSquareMarketingImagesOrBuilder​(int index)
         Square marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
         be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
         `marketing_images` and `portrait_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset square_marketing_images = 2;
        Specified by:
        getSquareMarketingImagesOrBuilder in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getPortraitMarketingImagesList

        public java.util.List<AdImageAsset> getPortraitMarketingImagesList()
         Portrait marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
         be 4:5 (+-1%).  Combined with `marketing_images` and
         `square_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset portrait_marketing_images = 3;
        Specified by:
        getPortraitMarketingImagesList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getPortraitMarketingImagesOrBuilderList

        public java.util.List<? extends AdImageAssetOrBuilder> getPortraitMarketingImagesOrBuilderList()
         Portrait marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
         be 4:5 (+-1%).  Combined with `marketing_images` and
         `square_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset portrait_marketing_images = 3;
        Specified by:
        getPortraitMarketingImagesOrBuilderList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getPortraitMarketingImagesCount

        public int getPortraitMarketingImagesCount()
         Portrait marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
         be 4:5 (+-1%).  Combined with `marketing_images` and
         `square_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset portrait_marketing_images = 3;
        Specified by:
        getPortraitMarketingImagesCount in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getPortraitMarketingImages

        public AdImageAsset getPortraitMarketingImages​(int index)
         Portrait marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
         be 4:5 (+-1%).  Combined with `marketing_images` and
         `square_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset portrait_marketing_images = 3;
        Specified by:
        getPortraitMarketingImages in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getPortraitMarketingImagesOrBuilder

        public AdImageAssetOrBuilder getPortraitMarketingImagesOrBuilder​(int index)
         Portrait marketing image assets to be used in the ad. Valid image types are
         GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
         be 4:5 (+-1%).  Combined with `marketing_images` and
         `square_marketing_images` the maximum is 20.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset portrait_marketing_images = 3;
        Specified by:
        getPortraitMarketingImagesOrBuilder in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getLogoImagesList

        public java.util.List<AdImageAsset> getLogoImagesList()
         Logo image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
         1:1 (+-1%). At least 1 and max 5 logo images can be specified.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 4;
        Specified by:
        getLogoImagesList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getLogoImagesOrBuilderList

        public java.util.List<? extends AdImageAssetOrBuilder> getLogoImagesOrBuilderList()
         Logo image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
         1:1 (+-1%). At least 1 and max 5 logo images can be specified.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 4;
        Specified by:
        getLogoImagesOrBuilderList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getLogoImagesCount

        public int getLogoImagesCount()
         Logo image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
         1:1 (+-1%). At least 1 and max 5 logo images can be specified.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 4;
        Specified by:
        getLogoImagesCount in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getLogoImages

        public AdImageAsset getLogoImages​(int index)
         Logo image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
         1:1 (+-1%). At least 1 and max 5 logo images can be specified.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 4;
        Specified by:
        getLogoImages in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getLogoImagesOrBuilder

        public AdImageAssetOrBuilder getLogoImagesOrBuilder​(int index)
         Logo image assets to be used in the ad. Valid image types are GIF,
         JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
         1:1 (+-1%). At least 1 and max 5 logo images can be specified.
         
        repeated .google.ads.googleads.v15.common.AdImageAsset logo_images = 4;
        Specified by:
        getLogoImagesOrBuilder in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getHeadlinesList

        public java.util.List<AdTextAsset> getHeadlinesList()
         Headline text asset of the ad. Maximum display width is 30. At least 1 and
         max 5 headlines can be specified.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 5;
        Specified by:
        getHeadlinesList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getHeadlinesCount

        public int getHeadlinesCount()
         Headline text asset of the ad. Maximum display width is 30. At least 1 and
         max 5 headlines can be specified.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 5;
        Specified by:
        getHeadlinesCount in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getHeadlines

        public AdTextAsset getHeadlines​(int index)
         Headline text asset of the ad. Maximum display width is 30. At least 1 and
         max 5 headlines can be specified.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset headlines = 5;
        Specified by:
        getHeadlines in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getDescriptionsList

        public java.util.List<AdTextAsset> getDescriptionsList()
         The descriptive text of the ad. Maximum display width is 90. At least 1 and
         max 5 descriptions can be specified.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 6;
        Specified by:
        getDescriptionsList in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getDescriptionsCount

        public int getDescriptionsCount()
         The descriptive text of the ad. Maximum display width is 90. At least 1 and
         max 5 descriptions can be specified.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 6;
        Specified by:
        getDescriptionsCount in interface DiscoveryMultiAssetAdInfoOrBuilder
      • getDescriptions

        public AdTextAsset getDescriptions​(int index)
         The descriptive text of the ad. Maximum display width is 90. At least 1 and
         max 5 descriptions can be specified.
         
        repeated .google.ads.googleads.v15.common.AdTextAsset descriptions = 6;
        Specified by:
        getDescriptions in interface DiscoveryMultiAssetAdInfoOrBuilder
      • hasBusinessName

        public boolean hasBusinessName()
         The Advertiser/brand name. Maximum display width is 25. Required.
         
        optional string business_name = 7;
        Specified by:
        hasBusinessName in interface DiscoveryMultiAssetAdInfoOrBuilder
        Returns:
        Whether the businessName field is set.
      • getBusinessName

        public java.lang.String getBusinessName()
         The Advertiser/brand name. Maximum display width is 25. Required.
         
        optional string business_name = 7;
        Specified by:
        getBusinessName in interface DiscoveryMultiAssetAdInfoOrBuilder
        Returns:
        The businessName.
      • getBusinessNameBytes

        public com.google.protobuf.ByteString getBusinessNameBytes()
         The Advertiser/brand name. Maximum display width is 25. Required.
         
        optional string business_name = 7;
        Specified by:
        getBusinessNameBytes in interface DiscoveryMultiAssetAdInfoOrBuilder
        Returns:
        The bytes for businessName.
      • hasLeadFormOnly

        public boolean hasLeadFormOnly()
         Boolean option that indicates if this ad must be served with lead form.
         
        optional bool lead_form_only = 9;
        Specified by:
        hasLeadFormOnly in interface DiscoveryMultiAssetAdInfoOrBuilder
        Returns:
        Whether the leadFormOnly field is set.
      • getLeadFormOnly

        public boolean getLeadFormOnly()
         Boolean option that indicates if this ad must be served with lead form.
         
        optional bool lead_form_only = 9;
        Specified by:
        getLeadFormOnly in interface DiscoveryMultiAssetAdInfoOrBuilder
        Returns:
        The leadFormOnly.
      • 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 DiscoveryMultiAssetAdInfo parseFrom​(java.nio.ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<DiscoveryMultiAssetAdInfo> 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 DiscoveryMultiAssetAdInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder