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

com.google.api.ads.dfp.axis.v201505.CreativePlaceholder Maven / Gradle / Ivy

There is a newer version: 5.8.0
Show newest version
/**
 * CreativePlaceholder.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;


/**
 * A {@code CreativePlaceholder} describes a slot that a creative
 * is expected to
 *             fill. This is used primarily to help in forecasting, and
 * also to validate
 *             that the correct creatives are associated with the line
 * item. A
 *             {@code CreativePlaceholder} must contain a size, and it
 * can optionally
 *             contain companions. Companions are only valid if the line
 * item's environment
 *             type is {@link EnvironmentType#VIDEO_PLAYER}.
 */
public class CreativePlaceholder  implements java.io.Serializable {
    /* The dimensions that the creative is expected to have. This
     * attribute is
     *                 required. */
    private com.google.api.ads.dfp.axis.v201505.Size size;

    /* The companions that the creative is expected to have. This
     * attribute can
     *                 only be set if the line item it belongs to has a
     *                 {@link LineItem#environmentType} of {@link EnvironmentType#VIDEO_PLAYER}
     * or
     *                 {@link LineItem#roadblockingType} of {@link RoadblockingType#CREATIVE_SET}. */
    private com.google.api.ads.dfp.axis.v201505.CreativePlaceholder[] companions;

    /* The set of label frequency caps applied directly to this creative
     * placeholder. */
    private com.google.api.ads.dfp.axis.v201505.AppliedLabel[] appliedLabels;

    /* Contains the set of labels applied directly to this creative
     * placeholder
     *                 as well as those inherited from the creative template
     * from which this
     *                 creative placeholder was instantiated.  This field
     * is readonly and is
     *                 assigned by Google. */
    private com.google.api.ads.dfp.axis.v201505.AppliedLabel[] effectiveAppliedLabels;

    /* The ID of this placeholder. This field is generated by the
     * server and is read-only. */
    private java.lang.Long id;

    /* Expected number of creatives that will be uploaded corresponding
     * to this
     *                 creative placeholder.  This estimate is used to improve
     * the accuracy of
     *                 forecasting; for example, if label frequency capping
     * limits the number of
     *                 times a creative may be served. */
    private java.lang.Integer expectedCreativeCount;

    /* Describes the types of sizes a creative can be. By default,
     * the creative's size
     *                 is {@link CreativeSizeType#PIXEL}, which is a dimension
     * based size (width-height pair). */
    private com.google.api.ads.dfp.axis.v201505.CreativeSizeType creativeSizeType;

    public CreativePlaceholder() {
    }

    public CreativePlaceholder(
           com.google.api.ads.dfp.axis.v201505.Size size,
           com.google.api.ads.dfp.axis.v201505.CreativePlaceholder[] companions,
           com.google.api.ads.dfp.axis.v201505.AppliedLabel[] appliedLabels,
           com.google.api.ads.dfp.axis.v201505.AppliedLabel[] effectiveAppliedLabels,
           java.lang.Long id,
           java.lang.Integer expectedCreativeCount,
           com.google.api.ads.dfp.axis.v201505.CreativeSizeType creativeSizeType) {
           this.size = size;
           this.companions = companions;
           this.appliedLabels = appliedLabels;
           this.effectiveAppliedLabels = effectiveAppliedLabels;
           this.id = id;
           this.expectedCreativeCount = expectedCreativeCount;
           this.creativeSizeType = creativeSizeType;
    }


    /**
     * Gets the size value for this CreativePlaceholder.
     * 
     * @return size   * The dimensions that the creative is expected to have. This
     * attribute is
     *                 required.
     */
    public com.google.api.ads.dfp.axis.v201505.Size getSize() {
        return size;
    }


    /**
     * Sets the size value for this CreativePlaceholder.
     * 
     * @param size   * The dimensions that the creative is expected to have. This
     * attribute is
     *                 required.
     */
    public void setSize(com.google.api.ads.dfp.axis.v201505.Size size) {
        this.size = size;
    }


    /**
     * Gets the companions value for this CreativePlaceholder.
     * 
     * @return companions   * The companions that the creative is expected to have. This
     * attribute can
     *                 only be set if the line item it belongs to has a
     *                 {@link LineItem#environmentType} of {@link EnvironmentType#VIDEO_PLAYER}
     * or
     *                 {@link LineItem#roadblockingType} of {@link RoadblockingType#CREATIVE_SET}.
     */
    public com.google.api.ads.dfp.axis.v201505.CreativePlaceholder[] getCompanions() {
        return companions;
    }


    /**
     * Sets the companions value for this CreativePlaceholder.
     * 
     * @param companions   * The companions that the creative is expected to have. This
     * attribute can
     *                 only be set if the line item it belongs to has a
     *                 {@link LineItem#environmentType} of {@link EnvironmentType#VIDEO_PLAYER}
     * or
     *                 {@link LineItem#roadblockingType} of {@link RoadblockingType#CREATIVE_SET}.
     */
    public void setCompanions(com.google.api.ads.dfp.axis.v201505.CreativePlaceholder[] companions) {
        this.companions = companions;
    }

    public com.google.api.ads.dfp.axis.v201505.CreativePlaceholder getCompanions(int i) {
        return this.companions[i];
    }

    public void setCompanions(int i, com.google.api.ads.dfp.axis.v201505.CreativePlaceholder _value) {
        this.companions[i] = _value;
    }


    /**
     * Gets the appliedLabels value for this CreativePlaceholder.
     * 
     * @return appliedLabels   * The set of label frequency caps applied directly to this creative
     * placeholder.
     */
    public com.google.api.ads.dfp.axis.v201505.AppliedLabel[] getAppliedLabels() {
        return appliedLabels;
    }


    /**
     * Sets the appliedLabels value for this CreativePlaceholder.
     * 
     * @param appliedLabels   * The set of label frequency caps applied directly to this creative
     * placeholder.
     */
    public void setAppliedLabels(com.google.api.ads.dfp.axis.v201505.AppliedLabel[] appliedLabels) {
        this.appliedLabels = appliedLabels;
    }

    public com.google.api.ads.dfp.axis.v201505.AppliedLabel getAppliedLabels(int i) {
        return this.appliedLabels[i];
    }

    public void setAppliedLabels(int i, com.google.api.ads.dfp.axis.v201505.AppliedLabel _value) {
        this.appliedLabels[i] = _value;
    }


    /**
     * Gets the effectiveAppliedLabels value for this CreativePlaceholder.
     * 
     * @return effectiveAppliedLabels   * Contains the set of labels applied directly to this creative
     * placeholder
     *                 as well as those inherited from the creative template
     * from which this
     *                 creative placeholder was instantiated.  This field
     * is readonly and is
     *                 assigned by Google.
     */
    public com.google.api.ads.dfp.axis.v201505.AppliedLabel[] getEffectiveAppliedLabels() {
        return effectiveAppliedLabels;
    }


    /**
     * Sets the effectiveAppliedLabels value for this CreativePlaceholder.
     * 
     * @param effectiveAppliedLabels   * Contains the set of labels applied directly to this creative
     * placeholder
     *                 as well as those inherited from the creative template
     * from which this
     *                 creative placeholder was instantiated.  This field
     * is readonly and is
     *                 assigned by Google.
     */
    public void setEffectiveAppliedLabels(com.google.api.ads.dfp.axis.v201505.AppliedLabel[] effectiveAppliedLabels) {
        this.effectiveAppliedLabels = effectiveAppliedLabels;
    }

    public com.google.api.ads.dfp.axis.v201505.AppliedLabel getEffectiveAppliedLabels(int i) {
        return this.effectiveAppliedLabels[i];
    }

    public void setEffectiveAppliedLabels(int i, com.google.api.ads.dfp.axis.v201505.AppliedLabel _value) {
        this.effectiveAppliedLabels[i] = _value;
    }


    /**
     * Gets the id value for this CreativePlaceholder.
     * 
     * @return id   * The ID of this placeholder. This field is generated by the
     * server and is read-only.
     */
    public java.lang.Long getId() {
        return id;
    }


    /**
     * Sets the id value for this CreativePlaceholder.
     * 
     * @param id   * The ID of this placeholder. This field is generated by the
     * server and is read-only.
     */
    public void setId(java.lang.Long id) {
        this.id = id;
    }


    /**
     * Gets the expectedCreativeCount value for this CreativePlaceholder.
     * 
     * @return expectedCreativeCount   * Expected number of creatives that will be uploaded corresponding
     * to this
     *                 creative placeholder.  This estimate is used to improve
     * the accuracy of
     *                 forecasting; for example, if label frequency capping
     * limits the number of
     *                 times a creative may be served.
     */
    public java.lang.Integer getExpectedCreativeCount() {
        return expectedCreativeCount;
    }


    /**
     * Sets the expectedCreativeCount value for this CreativePlaceholder.
     * 
     * @param expectedCreativeCount   * Expected number of creatives that will be uploaded corresponding
     * to this
     *                 creative placeholder.  This estimate is used to improve
     * the accuracy of
     *                 forecasting; for example, if label frequency capping
     * limits the number of
     *                 times a creative may be served.
     */
    public void setExpectedCreativeCount(java.lang.Integer expectedCreativeCount) {
        this.expectedCreativeCount = expectedCreativeCount;
    }


    /**
     * Gets the creativeSizeType value for this CreativePlaceholder.
     * 
     * @return creativeSizeType   * Describes the types of sizes a creative can be. By default,
     * the creative's size
     *                 is {@link CreativeSizeType#PIXEL}, which is a dimension
     * based size (width-height pair).
     */
    public com.google.api.ads.dfp.axis.v201505.CreativeSizeType getCreativeSizeType() {
        return creativeSizeType;
    }


    /**
     * Sets the creativeSizeType value for this CreativePlaceholder.
     * 
     * @param creativeSizeType   * Describes the types of sizes a creative can be. By default,
     * the creative's size
     *                 is {@link CreativeSizeType#PIXEL}, which is a dimension
     * based size (width-height pair).
     */
    public void setCreativeSizeType(com.google.api.ads.dfp.axis.v201505.CreativeSizeType creativeSizeType) {
        this.creativeSizeType = creativeSizeType;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof CreativePlaceholder)) return false;
        CreativePlaceholder other = (CreativePlaceholder) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.size==null && other.getSize()==null) || 
             (this.size!=null &&
              this.size.equals(other.getSize()))) &&
            ((this.companions==null && other.getCompanions()==null) || 
             (this.companions!=null &&
              java.util.Arrays.equals(this.companions, other.getCompanions()))) &&
            ((this.appliedLabels==null && other.getAppliedLabels()==null) || 
             (this.appliedLabels!=null &&
              java.util.Arrays.equals(this.appliedLabels, other.getAppliedLabels()))) &&
            ((this.effectiveAppliedLabels==null && other.getEffectiveAppliedLabels()==null) || 
             (this.effectiveAppliedLabels!=null &&
              java.util.Arrays.equals(this.effectiveAppliedLabels, other.getEffectiveAppliedLabels()))) &&
            ((this.id==null && other.getId()==null) || 
             (this.id!=null &&
              this.id.equals(other.getId()))) &&
            ((this.expectedCreativeCount==null && other.getExpectedCreativeCount()==null) || 
             (this.expectedCreativeCount!=null &&
              this.expectedCreativeCount.equals(other.getExpectedCreativeCount()))) &&
            ((this.creativeSizeType==null && other.getCreativeSizeType()==null) || 
             (this.creativeSizeType!=null &&
              this.creativeSizeType.equals(other.getCreativeSizeType())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getSize() != null) {
            _hashCode += getSize().hashCode();
        }
        if (getCompanions() != null) {
            for (int i=0;
                 i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy