All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.ads.dfp.axis.v201508.CreativeAsset Maven / Gradle / Ivy

There is a newer version: 5.8.0
Show newest version
/**
 * CreativeAsset.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
 */

package com.google.api.ads.dfp.axis.v201508;


/**
 * A {@code CreativeAsset} is an asset that can be used in creatives.
 */
public class CreativeAsset  implements java.io.Serializable {
    /* The ID of the asset. This attribute is read-only and is populated
     * by Google. */
    private java.lang.Long assetId;

    /* The content of the asset as a byte array. This attribute is
     * required when
     *                 creating the creative that contains this asset.
     *                 

* When updating the content, pass a new byte array, * and set {@code assetId} to null. * Otherwise, this field can be null. *

* The {@code assetByteArray} will be {@code null} when * the creative is * retrieved. */ private byte[] assetByteArray; /* The file name of the asset. This attribute is required when * creating a new asset (e.g. when {@link #assetByteArray} is not null). */ private java.lang.String fileName; /* The file size of the asset in bytes. This attribute is read-only. */ private java.lang.Long fileSize; /* A URL where the asset can be previewed at. This field is read-only * and * set by Google. */ private java.lang.String assetUrl; /* The size of the asset. Note that this may not always reflect * the actual physical * size of the asset, but may reflect the expected size. * This attribute is read-only and is * populated by Google. */ private com.google.api.ads.dfp.axis.v201508.Size size; /* The display density of the image. This is the ratio between * a dimension in pixels * of the image and the dimension in pixels that it should * occupy in device-independent pixels * when displayed. This attribute is optional and defaults * to ONE_TO_ONE. */ private com.google.api.ads.dfp.axis.v201508.ImageDensity imageDensity; public CreativeAsset() { } public CreativeAsset( java.lang.Long assetId, byte[] assetByteArray, java.lang.String fileName, java.lang.Long fileSize, java.lang.String assetUrl, com.google.api.ads.dfp.axis.v201508.Size size, com.google.api.ads.dfp.axis.v201508.ImageDensity imageDensity) { this.assetId = assetId; this.assetByteArray = assetByteArray; this.fileName = fileName; this.fileSize = fileSize; this.assetUrl = assetUrl; this.size = size; this.imageDensity = imageDensity; } /** * Gets the assetId value for this CreativeAsset. * * @return assetId * The ID of the asset. This attribute is read-only and is populated * by Google. */ public java.lang.Long getAssetId() { return assetId; } /** * Sets the assetId value for this CreativeAsset. * * @param assetId * The ID of the asset. This attribute is read-only and is populated * by Google. */ public void setAssetId(java.lang.Long assetId) { this.assetId = assetId; } /** * Gets the assetByteArray value for this CreativeAsset. * * @return assetByteArray * The content of the asset as a byte array. This attribute is * required when * creating the creative that contains this asset. *

* When updating the content, pass a new byte array, * and set {@code assetId} to null. * Otherwise, this field can be null. *

* The {@code assetByteArray} will be {@code null} when * the creative is * retrieved. */ public byte[] getAssetByteArray() { return assetByteArray; } /** * Sets the assetByteArray value for this CreativeAsset. * * @param assetByteArray * The content of the asset as a byte array. This attribute is * required when * creating the creative that contains this asset. *

* When updating the content, pass a new byte array, * and set {@code assetId} to null. * Otherwise, this field can be null. *

* The {@code assetByteArray} will be {@code null} when * the creative is * retrieved. */ public void setAssetByteArray(byte[] assetByteArray) { this.assetByteArray = assetByteArray; } /** * Gets the fileName value for this CreativeAsset. * * @return fileName * The file name of the asset. This attribute is required when * creating a new asset (e.g. when {@link #assetByteArray} is not null). */ public java.lang.String getFileName() { return fileName; } /** * Sets the fileName value for this CreativeAsset. * * @param fileName * The file name of the asset. This attribute is required when * creating a new asset (e.g. when {@link #assetByteArray} is not null). */ public void setFileName(java.lang.String fileName) { this.fileName = fileName; } /** * Gets the fileSize value for this CreativeAsset. * * @return fileSize * The file size of the asset in bytes. This attribute is read-only. */ public java.lang.Long getFileSize() { return fileSize; } /** * Sets the fileSize value for this CreativeAsset. * * @param fileSize * The file size of the asset in bytes. This attribute is read-only. */ public void setFileSize(java.lang.Long fileSize) { this.fileSize = fileSize; } /** * Gets the assetUrl value for this CreativeAsset. * * @return assetUrl * A URL where the asset can be previewed at. This field is read-only * and * set by Google. */ public java.lang.String getAssetUrl() { return assetUrl; } /** * Sets the assetUrl value for this CreativeAsset. * * @param assetUrl * A URL where the asset can be previewed at. This field is read-only * and * set by Google. */ public void setAssetUrl(java.lang.String assetUrl) { this.assetUrl = assetUrl; } /** * Gets the size value for this CreativeAsset. * * @return size * The size of the asset. Note that this may not always reflect * the actual physical * size of the asset, but may reflect the expected size. * This attribute is read-only and is * populated by Google. */ public com.google.api.ads.dfp.axis.v201508.Size getSize() { return size; } /** * Sets the size value for this CreativeAsset. * * @param size * The size of the asset. Note that this may not always reflect * the actual physical * size of the asset, but may reflect the expected size. * This attribute is read-only and is * populated by Google. */ public void setSize(com.google.api.ads.dfp.axis.v201508.Size size) { this.size = size; } /** * Gets the imageDensity value for this CreativeAsset. * * @return imageDensity * The display density of the image. This is the ratio between * a dimension in pixels * of the image and the dimension in pixels that it should * occupy in device-independent pixels * when displayed. This attribute is optional and defaults * to ONE_TO_ONE. */ public com.google.api.ads.dfp.axis.v201508.ImageDensity getImageDensity() { return imageDensity; } /** * Sets the imageDensity value for this CreativeAsset. * * @param imageDensity * The display density of the image. This is the ratio between * a dimension in pixels * of the image and the dimension in pixels that it should * occupy in device-independent pixels * when displayed. This attribute is optional and defaults * to ONE_TO_ONE. */ public void setImageDensity(com.google.api.ads.dfp.axis.v201508.ImageDensity imageDensity) { this.imageDensity = imageDensity; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof CreativeAsset)) return false; CreativeAsset other = (CreativeAsset) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.assetId==null && other.getAssetId()==null) || (this.assetId!=null && this.assetId.equals(other.getAssetId()))) && ((this.assetByteArray==null && other.getAssetByteArray()==null) || (this.assetByteArray!=null && java.util.Arrays.equals(this.assetByteArray, other.getAssetByteArray()))) && ((this.fileName==null && other.getFileName()==null) || (this.fileName!=null && this.fileName.equals(other.getFileName()))) && ((this.fileSize==null && other.getFileSize()==null) || (this.fileSize!=null && this.fileSize.equals(other.getFileSize()))) && ((this.assetUrl==null && other.getAssetUrl()==null) || (this.assetUrl!=null && this.assetUrl.equals(other.getAssetUrl()))) && ((this.size==null && other.getSize()==null) || (this.size!=null && this.size.equals(other.getSize()))) && ((this.imageDensity==null && other.getImageDensity()==null) || (this.imageDensity!=null && this.imageDensity.equals(other.getImageDensity()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getAssetId() != null) { _hashCode += getAssetId().hashCode(); } if (getAssetByteArray() != null) { for (int i=0; i





© 2015 - 2025 Weber Informatics LLC | Privacy Policy