Class ImageAdInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.common.ImageAdInfo
All Implemented Interfaces:
ImageAdInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class ImageAdInfo extends com.google.protobuf.GeneratedMessageV3 implements ImageAdInfoOrBuilder
 An image ad.
 
Protobuf type google.ads.googleads.v18.common.ImageAdInfo
See Also:
  • Field Details

    • PIXEL_WIDTH_FIELD_NUMBER

      public static final int PIXEL_WIDTH_FIELD_NUMBER
      See Also:
    • PIXEL_HEIGHT_FIELD_NUMBER

      public static final int PIXEL_HEIGHT_FIELD_NUMBER
      See Also:
    • IMAGE_URL_FIELD_NUMBER

      public static final int IMAGE_URL_FIELD_NUMBER
      See Also:
    • PREVIEW_PIXEL_WIDTH_FIELD_NUMBER

      public static final int PREVIEW_PIXEL_WIDTH_FIELD_NUMBER
      See Also:
    • PREVIEW_PIXEL_HEIGHT_FIELD_NUMBER

      public static final int PREVIEW_PIXEL_HEIGHT_FIELD_NUMBER
      See Also:
    • PREVIEW_IMAGE_URL_FIELD_NUMBER

      public static final int PREVIEW_IMAGE_URL_FIELD_NUMBER
      See Also:
    • MIME_TYPE_FIELD_NUMBER

      public static final int MIME_TYPE_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • IMAGE_ASSET_FIELD_NUMBER

      public static final int IMAGE_ASSET_FIELD_NUMBER
      See Also:
    • DATA_FIELD_NUMBER

      public static final int DATA_FIELD_NUMBER
      See Also:
    • AD_ID_TO_COPY_IMAGE_FROM_FIELD_NUMBER

      public static final int AD_ID_TO_COPY_IMAGE_FROM_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected 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
    • getImageCase

      public ImageAdInfo.ImageCase getImageCase()
      Specified by:
      getImageCase in interface ImageAdInfoOrBuilder
    • 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 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 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.v18.enums.MimeTypeEnum.MimeType mime_type = 10;
      Specified by:
      getMimeTypeValue in interface ImageAdInfoOrBuilder
      Returns:
      The enum numeric value on the wire for mimeType.
    • getMimeType

      public MimeTypeEnum.MimeType getMimeType()
       The mime type of the image.
       
      .google.ads.googleads.v18.enums.MimeTypeEnum.MimeType mime_type = 10;
      Specified by:
      getMimeType in interface ImageAdInfoOrBuilder
      Returns:
      The 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 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.v18.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.v18.common.AdImageAsset image_asset = 22;
      Specified by:
      getImageAsset in interface ImageAdInfoOrBuilder
      Returns:
      The imageAsset.
    • getImageAssetOrBuilder

      public AdImageAssetOrBuilder getImageAssetOrBuilder()
       The image assets used for the ad.
       
      .google.ads.googleads.v18.common.AdImageAsset image_asset = 22;
      Specified by:
      getImageAssetOrBuilder in interface ImageAdInfoOrBuilder
    • 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 IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      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(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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImageAdInfo parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static ImageAdInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static ImageAdInfo.Builder newBuilder()
    • newBuilder

      public static ImageAdInfo.Builder newBuilder(ImageAdInfo prototype)
    • 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