Class GmailAdInfo

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

    public final class GmailAdInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements GmailAdInfoOrBuilder
     A Gmail ad.
     
    Protobuf type google.ads.googleads.v10.common.GmailAdInfo
    See Also:
    Serialized Form
    • Field Detail

      • HEADER_IMAGE_FIELD_NUMBER

        public static final int HEADER_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
      • MARKETING_IMAGE_HEADLINE_FIELD_NUMBER

        public static final int MARKETING_IMAGE_HEADLINE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MARKETING_IMAGE_DESCRIPTION_FIELD_NUMBER

        public static final int MARKETING_IMAGE_DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MARKETING_IMAGE_DISPLAY_CALL_TO_ACTION_FIELD_NUMBER

        public static final int MARKETING_IMAGE_DISPLAY_CALL_TO_ACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRODUCT_IMAGES_FIELD_NUMBER

        public static final int PRODUCT_IMAGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRODUCT_VIDEOS_FIELD_NUMBER

        public static final int PRODUCT_VIDEOS_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
      • hasTeaser

        public boolean hasTeaser()
         The Gmail teaser.
         
        .google.ads.googleads.v10.common.GmailTeaser teaser = 1;
        Specified by:
        hasTeaser in interface GmailAdInfoOrBuilder
        Returns:
        Whether the teaser field is set.
      • getTeaser

        public GmailTeaser getTeaser()
         The Gmail teaser.
         
        .google.ads.googleads.v10.common.GmailTeaser teaser = 1;
        Specified by:
        getTeaser in interface GmailAdInfoOrBuilder
        Returns:
        The teaser.
      • hasHeaderImage

        public boolean hasHeaderImage()
         The MediaFile resource name of the header image. Valid image types are GIF,
         JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
         be between 3:1 and 5:1 (+-1%).
         
        optional string header_image = 10;
        Specified by:
        hasHeaderImage in interface GmailAdInfoOrBuilder
        Returns:
        Whether the headerImage field is set.
      • getHeaderImage

        public java.lang.String getHeaderImage()
         The MediaFile resource name of the header image. Valid image types are GIF,
         JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
         be between 3:1 and 5:1 (+-1%).
         
        optional string header_image = 10;
        Specified by:
        getHeaderImage in interface GmailAdInfoOrBuilder
        Returns:
        The headerImage.
      • getHeaderImageBytes

        public com.google.protobuf.ByteString getHeaderImageBytes()
         The MediaFile resource name of the header image. Valid image types are GIF,
         JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
         be between 3:1 and 5:1 (+-1%).
         
        optional string header_image = 10;
        Specified by:
        getHeaderImageBytes in interface GmailAdInfoOrBuilder
        Returns:
        The bytes for headerImage.
      • hasMarketingImage

        public boolean hasMarketingImage()
         The MediaFile resource name of the marketing image. Valid image types are
         GIF, JPEG and PNG. The image must either be landscape with a minimum size
         of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
         minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
         
        optional string marketing_image = 11;
        Specified by:
        hasMarketingImage in interface GmailAdInfoOrBuilder
        Returns:
        Whether the marketingImage field is set.
      • getMarketingImage

        public java.lang.String getMarketingImage()
         The MediaFile resource name of the marketing image. Valid image types are
         GIF, JPEG and PNG. The image must either be landscape with a minimum size
         of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
         minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
         
        optional string marketing_image = 11;
        Specified by:
        getMarketingImage in interface GmailAdInfoOrBuilder
        Returns:
        The marketingImage.
      • getMarketingImageBytes

        public com.google.protobuf.ByteString getMarketingImageBytes()
         The MediaFile resource name of the marketing image. Valid image types are
         GIF, JPEG and PNG. The image must either be landscape with a minimum size
         of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
         minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
         
        optional string marketing_image = 11;
        Specified by:
        getMarketingImageBytes in interface GmailAdInfoOrBuilder
        Returns:
        The bytes for marketingImage.
      • hasMarketingImageHeadline

        public boolean hasMarketingImageHeadline()
         Headline of the marketing image.
         
        optional string marketing_image_headline = 12;
        Specified by:
        hasMarketingImageHeadline in interface GmailAdInfoOrBuilder
        Returns:
        Whether the marketingImageHeadline field is set.
      • getMarketingImageHeadline

        public java.lang.String getMarketingImageHeadline()
         Headline of the marketing image.
         
        optional string marketing_image_headline = 12;
        Specified by:
        getMarketingImageHeadline in interface GmailAdInfoOrBuilder
        Returns:
        The marketingImageHeadline.
      • getMarketingImageHeadlineBytes

        public com.google.protobuf.ByteString getMarketingImageHeadlineBytes()
         Headline of the marketing image.
         
        optional string marketing_image_headline = 12;
        Specified by:
        getMarketingImageHeadlineBytes in interface GmailAdInfoOrBuilder
        Returns:
        The bytes for marketingImageHeadline.
      • hasMarketingImageDescription

        public boolean hasMarketingImageDescription()
         Description of the marketing image.
         
        optional string marketing_image_description = 13;
        Specified by:
        hasMarketingImageDescription in interface GmailAdInfoOrBuilder
        Returns:
        Whether the marketingImageDescription field is set.
      • getMarketingImageDescription

        public java.lang.String getMarketingImageDescription()
         Description of the marketing image.
         
        optional string marketing_image_description = 13;
        Specified by:
        getMarketingImageDescription in interface GmailAdInfoOrBuilder
        Returns:
        The marketingImageDescription.
      • getMarketingImageDescriptionBytes

        public com.google.protobuf.ByteString getMarketingImageDescriptionBytes()
         Description of the marketing image.
         
        optional string marketing_image_description = 13;
        Specified by:
        getMarketingImageDescriptionBytes in interface GmailAdInfoOrBuilder
        Returns:
        The bytes for marketingImageDescription.
      • hasMarketingImageDisplayCallToAction

        public boolean hasMarketingImageDisplayCallToAction()
         Display-call-to-action of the marketing image.
         
        .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6;
        Specified by:
        hasMarketingImageDisplayCallToAction in interface GmailAdInfoOrBuilder
        Returns:
        Whether the marketingImageDisplayCallToAction field is set.
      • getMarketingImageDisplayCallToAction

        public DisplayCallToAction getMarketingImageDisplayCallToAction()
         Display-call-to-action of the marketing image.
         
        .google.ads.googleads.v10.common.DisplayCallToAction marketing_image_display_call_to_action = 6;
        Specified by:
        getMarketingImageDisplayCallToAction in interface GmailAdInfoOrBuilder
        Returns:
        The marketingImageDisplayCallToAction.
      • getProductImagesList

        public java.util.List<ProductImage> getProductImagesList()
         Product images. Up to 15 images are supported.
         
        repeated .google.ads.googleads.v10.common.ProductImage product_images = 7;
        Specified by:
        getProductImagesList in interface GmailAdInfoOrBuilder
      • getProductImagesCount

        public int getProductImagesCount()
         Product images. Up to 15 images are supported.
         
        repeated .google.ads.googleads.v10.common.ProductImage product_images = 7;
        Specified by:
        getProductImagesCount in interface GmailAdInfoOrBuilder
      • getProductImages

        public ProductImage getProductImages​(int index)
         Product images. Up to 15 images are supported.
         
        repeated .google.ads.googleads.v10.common.ProductImage product_images = 7;
        Specified by:
        getProductImages in interface GmailAdInfoOrBuilder
      • getProductVideosList

        public java.util.List<ProductVideo> getProductVideosList()
         Product videos. Up to 7 videos are supported. At least one product video
         or a marketing image must be specified.
         
        repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8;
        Specified by:
        getProductVideosList in interface GmailAdInfoOrBuilder
      • getProductVideosOrBuilderList

        public java.util.List<? extends ProductVideoOrBuilder> getProductVideosOrBuilderList()
         Product videos. Up to 7 videos are supported. At least one product video
         or a marketing image must be specified.
         
        repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8;
        Specified by:
        getProductVideosOrBuilderList in interface GmailAdInfoOrBuilder
      • getProductVideosCount

        public int getProductVideosCount()
         Product videos. Up to 7 videos are supported. At least one product video
         or a marketing image must be specified.
         
        repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8;
        Specified by:
        getProductVideosCount in interface GmailAdInfoOrBuilder
      • getProductVideos

        public ProductVideo getProductVideos​(int index)
         Product videos. Up to 7 videos are supported. At least one product video
         or a marketing image must be specified.
         
        repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8;
        Specified by:
        getProductVideos in interface GmailAdInfoOrBuilder
      • getProductVideosOrBuilder

        public ProductVideoOrBuilder getProductVideosOrBuilder​(int index)
         Product videos. Up to 7 videos are supported. At least one product video
         or a marketing image must be specified.
         
        repeated .google.ads.googleads.v10.common.ProductVideo product_videos = 8;
        Specified by:
        getProductVideosOrBuilder in interface GmailAdInfoOrBuilder
      • 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 GmailAdInfo parseFrom​(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static GmailAdInfo getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<GmailAdInfo> parser()
      • getParserForType

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