
com.google.api.ads.dfp.axis.v201505.AssetCreativeTemplateVariableValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dfp-axis Show documentation
Show all versions of dfp-axis Show documentation
Ad Manager specific Axis components.
/**
* AssetCreativeTemplateVariableValue.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.v201505;
/**
* Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}.
*/
public class AssetCreativeTemplateVariableValue extends com.google.api.ads.dfp.axis.v201505.BaseCreativeTemplateVariableValue implements java.io.Serializable {
/* The ID of the associated 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
* a new {@code TemplateCreative}.
*
* 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 {@code TemplateCreative} is retrieved. */
private byte[] assetByteArray;
/* The file name of the asset. This attribute is required when
* creating a new asset (e.g. when assetByteArray is not null). */
private java.lang.String fileName;
public AssetCreativeTemplateVariableValue() {
}
public AssetCreativeTemplateVariableValue(
java.lang.String uniqueName,
java.lang.Long assetId,
byte[] assetByteArray,
java.lang.String fileName) {
super(
uniqueName);
this.assetId = assetId;
this.assetByteArray = assetByteArray;
this.fileName = fileName;
}
/**
* Gets the assetId value for this AssetCreativeTemplateVariableValue.
*
* @return assetId * The ID of the associated asset. This attribute is read-only
* and is populated by Google.
*/
public java.lang.Long getAssetId() {
return assetId;
}
/**
* Sets the assetId value for this AssetCreativeTemplateVariableValue.
*
* @param assetId * The ID of the associated 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 AssetCreativeTemplateVariableValue.
*
* @return assetByteArray * The content of the asset as a byte array. This attribute is
* required when creating
* a new {@code TemplateCreative}.
*
* 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 {@code TemplateCreative} is retrieved.
*/
public byte[] getAssetByteArray() {
return assetByteArray;
}
/**
* Sets the assetByteArray value for this AssetCreativeTemplateVariableValue.
*
* @param assetByteArray * The content of the asset as a byte array. This attribute is
* required when creating
* a new {@code TemplateCreative}.
*
* 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 {@code TemplateCreative} is retrieved.
*/
public void setAssetByteArray(byte[] assetByteArray) {
this.assetByteArray = assetByteArray;
}
/**
* Gets the fileName value for this AssetCreativeTemplateVariableValue.
*
* @return fileName * The file name of the asset. This attribute is required when
* creating a new asset (e.g. when assetByteArray is not null).
*/
public java.lang.String getFileName() {
return fileName;
}
/**
* Sets the fileName value for this AssetCreativeTemplateVariableValue.
*
* @param fileName * The file name of the asset. This attribute is required when
* creating a new asset (e.g. when assetByteArray is not null).
*/
public void setFileName(java.lang.String fileName) {
this.fileName = fileName;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof AssetCreativeTemplateVariableValue)) return false;
AssetCreativeTemplateVariableValue other = (AssetCreativeTemplateVariableValue) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((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())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getAssetId() != null) {
_hashCode += getAssetId().hashCode();
}
if (getAssetByteArray() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy