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

com.google.api.ads.dfp.axis.v201511.UserDomainTargeting Maven / Gradle / Ivy

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


/**
 * Provides line items the ability to target or exclude users visiting
 * their
 *             websites from a list of domains or subdomains.
 */
public class UserDomainTargeting  implements java.io.Serializable {
    /* The domains or subdomains that are being targeted or excluded
     * by the
     *                 {@link LineItem}. This attribute is required and the
     * maximum length of each
     *                 domain is 67 characters. */
    private java.lang.String[] domains;

    /* Indicates whether domains should be targeted or excluded. This
     * attribute is
     *                 optional and defaults to {@code true}. */
    private java.lang.Boolean targeted;

    public UserDomainTargeting() {
    }

    public UserDomainTargeting(
           java.lang.String[] domains,
           java.lang.Boolean targeted) {
           this.domains = domains;
           this.targeted = targeted;
    }


    /**
     * Gets the domains value for this UserDomainTargeting.
     * 
     * @return domains   * The domains or subdomains that are being targeted or excluded
     * by the
     *                 {@link LineItem}. This attribute is required and the
     * maximum length of each
     *                 domain is 67 characters.
     */
    public java.lang.String[] getDomains() {
        return domains;
    }


    /**
     * Sets the domains value for this UserDomainTargeting.
     * 
     * @param domains   * The domains or subdomains that are being targeted or excluded
     * by the
     *                 {@link LineItem}. This attribute is required and the
     * maximum length of each
     *                 domain is 67 characters.
     */
    public void setDomains(java.lang.String[] domains) {
        this.domains = domains;
    }

    public java.lang.String getDomains(int i) {
        return this.domains[i];
    }

    public void setDomains(int i, java.lang.String _value) {
        this.domains[i] = _value;
    }


    /**
     * Gets the targeted value for this UserDomainTargeting.
     * 
     * @return targeted   * Indicates whether domains should be targeted or excluded. This
     * attribute is
     *                 optional and defaults to {@code true}.
     */
    public java.lang.Boolean getTargeted() {
        return targeted;
    }


    /**
     * Sets the targeted value for this UserDomainTargeting.
     * 
     * @param targeted   * Indicates whether domains should be targeted or excluded. This
     * attribute is
     *                 optional and defaults to {@code true}.
     */
    public void setTargeted(java.lang.Boolean targeted) {
        this.targeted = targeted;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof UserDomainTargeting)) return false;
        UserDomainTargeting other = (UserDomainTargeting) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.domains==null && other.getDomains()==null) || 
             (this.domains!=null &&
              java.util.Arrays.equals(this.domains, other.getDomains()))) &&
            ((this.targeted==null && other.getTargeted()==null) || 
             (this.targeted!=null &&
              this.targeted.equals(other.getTargeted())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy