Class ImageAdInfo

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

    public final class ImageAdInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements ImageAdInfoOrBuilder
     An image ad.
     
    Protobuf type google.ads.googleads.v15.common.ImageAdInfo
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ImageAdInfo.Builder
      An image ad.
      static class  ImageAdInfo.ImageCase  
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • PIXEL_WIDTH_FIELD_NUMBER

        public static final int PIXEL_WIDTH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PIXEL_HEIGHT_FIELD_NUMBER

        public static final int PIXEL_HEIGHT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREVIEW_PIXEL_WIDTH_FIELD_NUMBER

        public static final int PREVIEW_PIXEL_WIDTH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREVIEW_PIXEL_HEIGHT_FIELD_NUMBER

        public static final int PREVIEW_PIXEL_HEIGHT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREVIEW_IMAGE_URL_FIELD_NUMBER

        public static final int PREVIEW_IMAGE_URL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IMAGE_ASSET_FIELD_NUMBER

        public static final int IMAGE_ASSET_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AD_ID_TO_COPY_IMAGE_FROM_FIELD_NUMBER

        public static final int AD_ID_TO_COPY_IMAGE_FROM_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
      • hasPixelWidth

        public boolean hasPixelWidth()
         Width in pixels of the full size image.
         
        optional int64 pixel_width = 15;
        Specified by:
        hasPixelWidth in interface ImageAdInfoOrBuilder
        Returns:
        Whether the pixelWidth field is set.
      • getPixelWidth

        public long getPixelWidth()
         Width in pixels of the full size image.
         
        optional int64 pixel_width = 15;
        Specified by:
        getPixelWidth in interface ImageAdInfoOrBuilder
        Returns:
        The pixelWidth.
      • hasPixelHeight

        public boolean hasPixelHeight()
         Height in pixels of the full size image.
         
        optional int64 pixel_height = 16;
        Specified by:
        hasPixelHeight in interface ImageAdInfoOrBuilder
        Returns:
        Whether the pixelHeight field is set.
      • getPixelHeight

        public long getPixelHeight()
         Height in pixels of the full size image.
         
        optional int64 pixel_height = 16;
        Specified by:
        getPixelHeight in interface ImageAdInfoOrBuilder
        Returns:
        The pixelHeight.
      • hasImageUrl

        public boolean hasImageUrl()
         URL of the full size image.
         
        optional string image_url = 17;
        Specified by:
        hasImageUrl in interface ImageAdInfoOrBuilder
        Returns:
        Whether the imageUrl field is set.
      • getImageUrl

        public java.lang.String getImageUrl()
         URL of the full size image.
         
        optional string image_url = 17;
        Specified by:
        getImageUrl in interface ImageAdInfoOrBuilder
        Returns:
        The imageUrl.
      • getImageUrlBytes

        public com.google.protobuf.ByteString getImageUrlBytes()
         URL of the full size image.
         
        optional string image_url = 17;
        Specified by:
        getImageUrlBytes in interface ImageAdInfoOrBuilder
        Returns:
        The bytes for imageUrl.
      • hasPreviewPixelWidth

        public boolean hasPreviewPixelWidth()
         Width in pixels of the preview size image.
         
        optional int64 preview_pixel_width = 18;
        Specified by:
        hasPreviewPixelWidth in interface ImageAdInfoOrBuilder
        Returns:
        Whether the previewPixelWidth field is set.
      • getPreviewPixelWidth

        public long getPreviewPixelWidth()
         Width in pixels of the preview size image.
         
        optional int64 preview_pixel_width = 18;
        Specified by:
        getPreviewPixelWidth in interface ImageAdInfoOrBuilder
        Returns:
        The previewPixelWidth.
      • hasPreviewPixelHeight

        public boolean hasPreviewPixelHeight()
         Height in pixels of the preview size image.
         
        optional int64 preview_pixel_height = 19;
        Specified by:
        hasPreviewPixelHeight in interface ImageAdInfoOrBuilder
        Returns:
        Whether the previewPixelHeight field is set.
      • getPreviewPixelHeight

        public long getPreviewPixelHeight()
         Height in pixels of the preview size image.
         
        optional int64 preview_pixel_height = 19;
        Specified by:
        getPreviewPixelHeight in interface ImageAdInfoOrBuilder
        Returns:
        The previewPixelHeight.
      • hasPreviewImageUrl

        public boolean hasPreviewImageUrl()
         URL of the preview size image.
         
        optional string preview_image_url = 20;
        Specified by:
        hasPreviewImageUrl in interface ImageAdInfoOrBuilder
        Returns:
        Whether the previewImageUrl field is set.
      • getPreviewImageUrl

        public java.lang.String getPreviewImageUrl()
         URL of the preview size image.
         
        optional string preview_image_url = 20;
        Specified by:
        getPreviewImageUrl in interface ImageAdInfoOrBuilder
        Returns:
        The previewImageUrl.
      • getPreviewImageUrlBytes

        public com.google.protobuf.ByteString getPreviewImageUrlBytes()
         URL of the preview size image.
         
        optional string preview_image_url = 20;
        Specified by:
        getPreviewImageUrlBytes in interface ImageAdInfoOrBuilder
        Returns:
        The bytes for previewImageUrl.
      • getMimeTypeValue

        public int getMimeTypeValue()
         The mime type of the image.
         
        .google.ads.googleads.v15.enums.MimeTypeEnum.MimeType mime_type = 10;
        Specified by:
        getMimeTypeValue in interface ImageAdInfoOrBuilder
        Returns:
        The enum numeric value on the wire for mimeType.
      • hasName

        public boolean hasName()
         The name of the image. If the image was created from a MediaFile, this is
         the MediaFile's name. If the image was created from bytes, this is empty.
         
        optional string name = 21;
        Specified by:
        hasName in interface ImageAdInfoOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
         The name of the image. If the image was created from a MediaFile, this is
         the MediaFile's name. If the image was created from bytes, this is empty.
         
        optional string name = 21;
        Specified by:
        getName in interface ImageAdInfoOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the image. If the image was created from a MediaFile, this is
         the MediaFile's name. If the image was created from bytes, this is empty.
         
        optional string name = 21;
        Specified by:
        getNameBytes in interface ImageAdInfoOrBuilder
        Returns:
        The bytes for name.
      • hasImageAsset

        public boolean hasImageAsset()
         The image assets used for the ad.
         
        .google.ads.googleads.v15.common.AdImageAsset image_asset = 22;
        Specified by:
        hasImageAsset in interface ImageAdInfoOrBuilder
        Returns:
        Whether the imageAsset field is set.
      • getImageAsset

        public AdImageAsset getImageAsset()
         The image assets used for the ad.
         
        .google.ads.googleads.v15.common.AdImageAsset image_asset = 22;
        Specified by:
        getImageAsset in interface ImageAdInfoOrBuilder
        Returns:
        The imageAsset.
      • hasData

        public boolean hasData()
         Raw image data as bytes.
         
        bytes data = 13;
        Specified by:
        hasData in interface ImageAdInfoOrBuilder
        Returns:
        Whether the data field is set.
      • getData

        public com.google.protobuf.ByteString getData()
         Raw image data as bytes.
         
        bytes data = 13;
        Specified by:
        getData in interface ImageAdInfoOrBuilder
        Returns:
        The data.
      • hasAdIdToCopyImageFrom

        public boolean hasAdIdToCopyImageFrom()
         An ad ID to copy the image from.
         
        int64 ad_id_to_copy_image_from = 14;
        Specified by:
        hasAdIdToCopyImageFrom in interface ImageAdInfoOrBuilder
        Returns:
        Whether the adIdToCopyImageFrom field is set.
      • getAdIdToCopyImageFrom

        public long getAdIdToCopyImageFrom()
         An ad ID to copy the image from.
         
        int64 ad_id_to_copy_image_from = 14;
        Specified by:
        getAdIdToCopyImageFrom in interface ImageAdInfoOrBuilder
        Returns:
        The adIdToCopyImageFrom.
      • 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 ImageAdInfo parseFrom​(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static ImageAdInfo getDefaultInstance()
      • parser

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

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