Class ImageAdInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v21.common.ImageAdInfo
All Implemented Interfaces:
ImageAdInfoOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, 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.v21.common.ImageAdInfo
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    An image ad.
    static enum 
     

    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.GeneratedMessage.ExtendableMessage

    com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter, com.google.protobuf.GeneratedMessage.ExtendableMessage.FieldEntry

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    long
    An ad ID to copy the image from.
    com.google.protobuf.ByteString
    Raw image data as bytes.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    The image assets used for the ad.
    The image assets used for the ad.
     
    URL of the full size image.
    com.google.protobuf.ByteString
    URL of the full size image.
    The mime type of the image.
    int
    The mime type of the image.
    The name of the image.
    com.google.protobuf.ByteString
    The name of the image.
    com.google.protobuf.Parser<ImageAdInfo>
     
    long
    Height in pixels of the full size image.
    long
    Width in pixels of the full size image.
    URL of the preview size image.
    com.google.protobuf.ByteString
    URL of the preview size image.
    long
    Height in pixels of the preview size image.
    long
    Width in pixels of the preview size image.
    int
     
    boolean
    An ad ID to copy the image from.
    boolean
    Raw image data as bytes.
    int
     
    boolean
    The image assets used for the ad.
    boolean
    URL of the full size image.
    boolean
    The name of the image.
    boolean
    Height in pixels of the full size image.
    boolean
    Width in pixels of the full size image.
    boolean
    URL of the preview size image.
    boolean
    Height in pixels of the preview size image.
    boolean
    Width in pixels of the preview size image.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ImageAdInfo>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList

    Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

    extensionsAreInitialized, extensionsIterator, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriter

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    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.GeneratedMessage.ExtendableMessageOrBuilder

    getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtension

    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, getUnknownFields, hasField, hasOneof
  • 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()
      Overrides:
      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.v21.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.v21.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.v21.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.v21.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.v21.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.GeneratedMessage.ExtendableMessage<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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

      public ImageAdInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder