// Copyright 2016 Google Inc. All Rights Reserved. // // 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. package com.google.api.ads.dfp.jaxws.v201608; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * * A {@code CreativeAsset} is an asset that can be used in creatives. * * * <p>Java class for CreativeAsset complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="CreativeAsset"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="assetId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * <element name="assetByteArray" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/> * <element name="fileName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="fileSize" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * <element name="assetUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="size" type="{https://www.google.com/apis/ads/publisher/v201608}Size" minOccurs="0"/> * <element name="clickTags" type="{https://www.google.com/apis/ads/publisher/v201608}ClickTag" maxOccurs="unbounded" minOccurs="0"/> * <element name="imageDensity" type="{https://www.google.com/apis/ads/publisher/v201608}ImageDensity" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CreativeAsset", propOrder = { "assetId", "assetByteArray", "fileName", "fileSize", "assetUrl", "size", "clickTags", "imageDensity" }) public class CreativeAsset { protected Long assetId; protected byte[] assetByteArray; protected String fileName; protected Long fileSize; protected String assetUrl; protected Size size; protected List<ClickTag> clickTags; @XmlSchemaType(name = "string") protected ImageDensity imageDensity; /** * Gets the value of the assetId property. * * @return * possible object is * {@link Long } * */ public Long getAssetId() { return assetId; } /** * Sets the value of the assetId property. * * @param value * allowed object is * {@link Long } * */ public void setAssetId(Long value) { this.assetId = value; } /** * Gets the value of the assetByteArray property. * * @return * possible object is * byte[] */ public byte[] getAssetByteArray() { return assetByteArray; } /** * Sets the value of the assetByteArray property. * * @param value * allowed object is * byte[] */ public void setAssetByteArray(byte[] value) { this.assetByteArray = value; } /** * Gets the value of the fileName property. * * @return * possible object is * {@link String } * */ public String getFileName() { return fileName; } /** * Sets the value of the fileName property. * * @param value * allowed object is * {@link String } * */ public void setFileName(String value) { this.fileName = value; } /** * Gets the value of the fileSize property. * * @return * possible object is * {@link Long } * */ public Long getFileSize() { return fileSize; } /** * Sets the value of the fileSize property. * * @param value * allowed object is * {@link Long } * */ public void setFileSize(Long value) { this.fileSize = value; } /** * Gets the value of the assetUrl property. * * @return * possible object is * {@link String } * */ public String getAssetUrl() { return assetUrl; } /** * Sets the value of the assetUrl property. * * @param value * allowed object is * {@link String } * */ public void setAssetUrl(String value) { this.assetUrl = value; } /** * Gets the value of the size property. * * @return * possible object is * {@link Size } * */ public Size getSize() { return size; } /** * Sets the value of the size property. * * @param value * allowed object is * {@link Size } * */ public void setSize(Size value) { this.size = value; } /** * Gets the value of the clickTags property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the clickTags property. * * <p> * For example, to add a new item, do as follows: * <pre> * getClickTags().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ClickTag } * * */ public List<ClickTag> getClickTags() { if (clickTags == null) { clickTags = new ArrayList<ClickTag>(); } return this.clickTags; } /** * Gets the value of the imageDensity property. * * @return * possible object is * {@link ImageDensity } * */ public ImageDensity getImageDensity() { return imageDensity; } /** * Sets the value of the imageDensity property. * * @param value * allowed object is * {@link ImageDensity } * */ public void setImageDensity(ImageDensity value) { this.imageDensity = value; } }