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.v10.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<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      long getAdIdToCopyImageFrom()
      An ad ID to copy the image from.
      com.google.protobuf.ByteString getData()
      Raw image data as bytes.
      static ImageAdInfo getDefaultInstance()  
      ImageAdInfo getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      ImageAdInfo.ImageCase getImageCase()  
      java.lang.String getImageUrl()
      URL of the full size image.
      com.google.protobuf.ByteString getImageUrlBytes()
      URL of the full size image.
      java.lang.String getMediaFile()
      The MediaFile resource to use for the image.
      com.google.protobuf.ByteString getMediaFileBytes()
      The MediaFile resource to use for the image.
      MimeTypeEnum.MimeType getMimeType()
      The mime type of the image.
      int getMimeTypeValue()
      The mime type of the image.
      java.lang.String getName()
      The name of the image.
      com.google.protobuf.ByteString getNameBytes()
      The name of the image.
      com.google.protobuf.Parser<ImageAdInfo> getParserForType()  
      long getPixelHeight()
      Height in pixels of the full size image.
      long getPixelWidth()
      Width in pixels of the full size image.
      java.lang.String getPreviewImageUrl()
      URL of the preview size image.
      com.google.protobuf.ByteString getPreviewImageUrlBytes()
      URL of the preview size image.
      long getPreviewPixelHeight()
      Height in pixels of the preview size image.
      long getPreviewPixelWidth()
      Width in pixels of the preview size image.
      int getSerializedSize()  
      com.google.protobuf.UnknownFieldSet getUnknownFields()  
      boolean hasAdIdToCopyImageFrom()
      An ad ID to copy the image from.
      boolean hasData()
      Raw image data as bytes.
      int hashCode()  
      boolean hasImageUrl()
      URL of the full size image.
      boolean hasMediaFile()
      The MediaFile resource to use for the image.
      boolean hasName()
      The name of the image.
      boolean hasPixelHeight()
      Height in pixels of the full size image.
      boolean hasPixelWidth()
      Width in pixels of the full size image.
      boolean hasPreviewImageUrl()
      URL of the preview size image.
      boolean hasPreviewPixelHeight()
      Height in pixels of the preview size image.
      boolean hasPreviewPixelWidth()
      Width in pixels of the preview size image.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static ImageAdInfo.Builder newBuilder()  
      static ImageAdInfo.Builder newBuilder​(ImageAdInfo prototype)  
      ImageAdInfo.Builder newBuilderForType()  
      protected ImageAdInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static ImageAdInfo parseDelimitedFrom​(java.io.InputStream input)  
      static ImageAdInfo parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static ImageAdInfo parseFrom​(byte[] data)  
      static ImageAdInfo parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static ImageAdInfo parseFrom​(com.google.protobuf.ByteString data)  
      static ImageAdInfo parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static ImageAdInfo parseFrom​(com.google.protobuf.CodedInputStream input)  
      static ImageAdInfo parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static ImageAdInfo parseFrom​(java.io.InputStream input)  
      static ImageAdInfo parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static ImageAdInfo parseFrom​(java.nio.ByteBuffer data)  
      static ImageAdInfo parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<ImageAdInfo> parser()  
      ImageAdInfo.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
    • 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
      • MEDIA_FILE_FIELD_NUMBER

        public static final int MEDIA_FILE_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
      • 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
      • 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.v10.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.
      • hasMediaFile

        public boolean hasMediaFile()
         The MediaFile resource to use for the image.
         
        string media_file = 12;
        Specified by:
        hasMediaFile in interface ImageAdInfoOrBuilder
        Returns:
        Whether the mediaFile field is set.
      • getMediaFile

        public java.lang.String getMediaFile()
         The MediaFile resource to use for the image.
         
        string media_file = 12;
        Specified by:
        getMediaFile in interface ImageAdInfoOrBuilder
        Returns:
        The mediaFile.
      • getMediaFileBytes

        public com.google.protobuf.ByteString getMediaFileBytes()
         The MediaFile resource to use for the image.
         
        string media_file = 12;
        Specified by:
        getMediaFileBytes in interface ImageAdInfoOrBuilder
        Returns:
        The bytes for mediaFile.
      • 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