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

com.google.api.ads.admanager.axis.v202305.CreativeAsset Maven / Gradle / Ivy

There is a newer version: 5.6.0
Show newest version
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/**
 * 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.admanager.axis.v202305;


/**
 * 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 generated by Google
     * upon creation. */
    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 if an {@code assetId} is
     * not provided.
     *                 
     *                 

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.admanager.axis.v202305.Size size; /* The click tags of the asset. This field is read-only. */ private com.google.api.ads.admanager.axis.v202305.ClickTag[] clickTags; /* 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.admanager.axis.v202305.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.admanager.axis.v202305.Size size, com.google.api.ads.admanager.axis.v202305.ClickTag[] clickTags, com.google.api.ads.admanager.axis.v202305.ImageDensity imageDensity) { this.assetId = assetId; this.assetByteArray = assetByteArray; this.fileName = fileName; this.fileSize = fileSize; this.assetUrl = assetUrl; this.size = size; this.clickTags = clickTags; this.imageDensity = imageDensity; } @Override public String toString() { return com.google.common.base.MoreObjects.toStringHelper(this.getClass()) .omitNullValues() .add("assetByteArray", getAssetByteArray()) .add("assetId", getAssetId()) .add("assetUrl", getAssetUrl()) .add("clickTags", getClickTags()) .add("fileName", getFileName()) .add("fileSize", getFileSize()) .add("imageDensity", getImageDensity()) .add("size", getSize()) .toString(); } /** * Gets the assetId value for this CreativeAsset. * * @return assetId * The ID of the asset. This attribute is generated by Google * upon creation. */ public java.lang.Long getAssetId() { return assetId; } /** * Sets the assetId value for this CreativeAsset. * * @param assetId * The ID of the asset. This attribute is generated by Google * upon creation. */ 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 if an {@code assetId} is * not provided. * *

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 if an {@code assetId} is * not provided. * *

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.admanager.axis.v202305.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.admanager.axis.v202305.Size size) { this.size = size; } /** * Gets the clickTags value for this CreativeAsset. * * @return clickTags * The click tags of the asset. This field is read-only. */ public com.google.api.ads.admanager.axis.v202305.ClickTag[] getClickTags() { return clickTags; } /** * Sets the clickTags value for this CreativeAsset. * * @param clickTags * The click tags of the asset. This field is read-only. */ public void setClickTags(com.google.api.ads.admanager.axis.v202305.ClickTag[] clickTags) { this.clickTags = clickTags; } public com.google.api.ads.admanager.axis.v202305.ClickTag getClickTags(int i) { return this.clickTags[i]; } public void setClickTags(int i, com.google.api.ads.admanager.axis.v202305.ClickTag _value) { this.clickTags[i] = _value; } /** * 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.admanager.axis.v202305.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.admanager.axis.v202305.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.clickTags==null && other.getClickTags()==null) || (this.clickTags!=null && java.util.Arrays.equals(this.clickTags, other.getClickTags()))) && ((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 - 2024 Weber Informatics LLC | Privacy Policy