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

com.google.api.ads.dfp.axis.v201605.ContentTargeting Maven / Gradle / Ivy

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


/**
 * Used to target {@link LineItem}s to specific videos on a publisher's
 * site.
 */
public class ContentTargeting  implements java.io.Serializable {
    /* The IDs of content being targeted by the {@code LineItem}. */
    private long[] targetedContentIds;

    /* The IDs of content being excluded by the {@code LineItem}. */
    private long[] excludedContentIds;

    /* A list of video content bundles, represented by {@link ContentBundle}
     * IDs, that are being targeted by the {@code LineItem}. */
    private long[] targetedVideoContentBundleIds;

    /* A list of video content bundles, represented by {@link ContentBundle}
     * IDs, that are being excluded by the {@code LineItem}. */
    private long[] excludedVideoContentBundleIds;

    /* A list of content metadata within hierarchies that are being
     * targeted by the {@code LineItem}. */
    private com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting[] targetedContentMetadata;

    /* A list of content metadata within hierarchies that are being
     * excluded by the {@code LineItem}. */
    private com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting[] excludedContentMetadata;

    public ContentTargeting() {
    }

    public ContentTargeting(
           long[] targetedContentIds,
           long[] excludedContentIds,
           long[] targetedVideoContentBundleIds,
           long[] excludedVideoContentBundleIds,
           com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting[] targetedContentMetadata,
           com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting[] excludedContentMetadata) {
           this.targetedContentIds = targetedContentIds;
           this.excludedContentIds = excludedContentIds;
           this.targetedVideoContentBundleIds = targetedVideoContentBundleIds;
           this.excludedVideoContentBundleIds = excludedVideoContentBundleIds;
           this.targetedContentMetadata = targetedContentMetadata;
           this.excludedContentMetadata = excludedContentMetadata;
    }


    /**
     * Gets the targetedContentIds value for this ContentTargeting.
     * 
     * @return targetedContentIds   * The IDs of content being targeted by the {@code LineItem}.
     */
    public long[] getTargetedContentIds() {
        return targetedContentIds;
    }


    /**
     * Sets the targetedContentIds value for this ContentTargeting.
     * 
     * @param targetedContentIds   * The IDs of content being targeted by the {@code LineItem}.
     */
    public void setTargetedContentIds(long[] targetedContentIds) {
        this.targetedContentIds = targetedContentIds;
    }

    public long getTargetedContentIds(int i) {
        return this.targetedContentIds[i];
    }

    public void setTargetedContentIds(int i, long _value) {
        this.targetedContentIds[i] = _value;
    }


    /**
     * Gets the excludedContentIds value for this ContentTargeting.
     * 
     * @return excludedContentIds   * The IDs of content being excluded by the {@code LineItem}.
     */
    public long[] getExcludedContentIds() {
        return excludedContentIds;
    }


    /**
     * Sets the excludedContentIds value for this ContentTargeting.
     * 
     * @param excludedContentIds   * The IDs of content being excluded by the {@code LineItem}.
     */
    public void setExcludedContentIds(long[] excludedContentIds) {
        this.excludedContentIds = excludedContentIds;
    }

    public long getExcludedContentIds(int i) {
        return this.excludedContentIds[i];
    }

    public void setExcludedContentIds(int i, long _value) {
        this.excludedContentIds[i] = _value;
    }


    /**
     * Gets the targetedVideoContentBundleIds value for this ContentTargeting.
     * 
     * @return targetedVideoContentBundleIds   * A list of video content bundles, represented by {@link ContentBundle}
     * IDs, that are being targeted by the {@code LineItem}.
     */
    public long[] getTargetedVideoContentBundleIds() {
        return targetedVideoContentBundleIds;
    }


    /**
     * Sets the targetedVideoContentBundleIds value for this ContentTargeting.
     * 
     * @param targetedVideoContentBundleIds   * A list of video content bundles, represented by {@link ContentBundle}
     * IDs, that are being targeted by the {@code LineItem}.
     */
    public void setTargetedVideoContentBundleIds(long[] targetedVideoContentBundleIds) {
        this.targetedVideoContentBundleIds = targetedVideoContentBundleIds;
    }

    public long getTargetedVideoContentBundleIds(int i) {
        return this.targetedVideoContentBundleIds[i];
    }

    public void setTargetedVideoContentBundleIds(int i, long _value) {
        this.targetedVideoContentBundleIds[i] = _value;
    }


    /**
     * Gets the excludedVideoContentBundleIds value for this ContentTargeting.
     * 
     * @return excludedVideoContentBundleIds   * A list of video content bundles, represented by {@link ContentBundle}
     * IDs, that are being excluded by the {@code LineItem}.
     */
    public long[] getExcludedVideoContentBundleIds() {
        return excludedVideoContentBundleIds;
    }


    /**
     * Sets the excludedVideoContentBundleIds value for this ContentTargeting.
     * 
     * @param excludedVideoContentBundleIds   * A list of video content bundles, represented by {@link ContentBundle}
     * IDs, that are being excluded by the {@code LineItem}.
     */
    public void setExcludedVideoContentBundleIds(long[] excludedVideoContentBundleIds) {
        this.excludedVideoContentBundleIds = excludedVideoContentBundleIds;
    }

    public long getExcludedVideoContentBundleIds(int i) {
        return this.excludedVideoContentBundleIds[i];
    }

    public void setExcludedVideoContentBundleIds(int i, long _value) {
        this.excludedVideoContentBundleIds[i] = _value;
    }


    /**
     * Gets the targetedContentMetadata value for this ContentTargeting.
     * 
     * @return targetedContentMetadata   * A list of content metadata within hierarchies that are being
     * targeted by the {@code LineItem}.
     */
    public com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting[] getTargetedContentMetadata() {
        return targetedContentMetadata;
    }


    /**
     * Sets the targetedContentMetadata value for this ContentTargeting.
     * 
     * @param targetedContentMetadata   * A list of content metadata within hierarchies that are being
     * targeted by the {@code LineItem}.
     */
    public void setTargetedContentMetadata(com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting[] targetedContentMetadata) {
        this.targetedContentMetadata = targetedContentMetadata;
    }

    public com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting getTargetedContentMetadata(int i) {
        return this.targetedContentMetadata[i];
    }

    public void setTargetedContentMetadata(int i, com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting _value) {
        this.targetedContentMetadata[i] = _value;
    }


    /**
     * Gets the excludedContentMetadata value for this ContentTargeting.
     * 
     * @return excludedContentMetadata   * A list of content metadata within hierarchies that are being
     * excluded by the {@code LineItem}.
     */
    public com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting[] getExcludedContentMetadata() {
        return excludedContentMetadata;
    }


    /**
     * Sets the excludedContentMetadata value for this ContentTargeting.
     * 
     * @param excludedContentMetadata   * A list of content metadata within hierarchies that are being
     * excluded by the {@code LineItem}.
     */
    public void setExcludedContentMetadata(com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting[] excludedContentMetadata) {
        this.excludedContentMetadata = excludedContentMetadata;
    }

    public com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting getExcludedContentMetadata(int i) {
        return this.excludedContentMetadata[i];
    }

    public void setExcludedContentMetadata(int i, com.google.api.ads.dfp.axis.v201605.ContentMetadataKeyHierarchyTargeting _value) {
        this.excludedContentMetadata[i] = _value;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof ContentTargeting)) return false;
        ContentTargeting other = (ContentTargeting) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.targetedContentIds==null && other.getTargetedContentIds()==null) || 
             (this.targetedContentIds!=null &&
              java.util.Arrays.equals(this.targetedContentIds, other.getTargetedContentIds()))) &&
            ((this.excludedContentIds==null && other.getExcludedContentIds()==null) || 
             (this.excludedContentIds!=null &&
              java.util.Arrays.equals(this.excludedContentIds, other.getExcludedContentIds()))) &&
            ((this.targetedVideoContentBundleIds==null && other.getTargetedVideoContentBundleIds()==null) || 
             (this.targetedVideoContentBundleIds!=null &&
              java.util.Arrays.equals(this.targetedVideoContentBundleIds, other.getTargetedVideoContentBundleIds()))) &&
            ((this.excludedVideoContentBundleIds==null && other.getExcludedVideoContentBundleIds()==null) || 
             (this.excludedVideoContentBundleIds!=null &&
              java.util.Arrays.equals(this.excludedVideoContentBundleIds, other.getExcludedVideoContentBundleIds()))) &&
            ((this.targetedContentMetadata==null && other.getTargetedContentMetadata()==null) || 
             (this.targetedContentMetadata!=null &&
              java.util.Arrays.equals(this.targetedContentMetadata, other.getTargetedContentMetadata()))) &&
            ((this.excludedContentMetadata==null && other.getExcludedContentMetadata()==null) || 
             (this.excludedContentMetadata!=null &&
              java.util.Arrays.equals(this.excludedContentMetadata, other.getExcludedContentMetadata())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy