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

com.google.api.ads.admanager.axis.v202311.InventoryTargeting Maven / Gradle / Ivy

There is a newer version: 5.6.0
Show newest version
// Copyright 2023 Google LLC
//
// 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.

/**
 * InventoryTargeting.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.admanager.axis.v202311;

public class InventoryTargeting  implements java.io.Serializable {
    private com.google.api.ads.admanager.axis.v202311.AdUnitTargeting[] targetedAdUnits;

    private com.google.api.ads.admanager.axis.v202311.AdUnitTargeting[] excludedAdUnits;

    private long[] targetedPlacementIds;

    public InventoryTargeting() {
    }

    public InventoryTargeting(
           com.google.api.ads.admanager.axis.v202311.AdUnitTargeting[] targetedAdUnits,
           com.google.api.ads.admanager.axis.v202311.AdUnitTargeting[] excludedAdUnits,
           long[] targetedPlacementIds) {
           this.targetedAdUnits = targetedAdUnits;
           this.excludedAdUnits = excludedAdUnits;
           this.targetedPlacementIds = targetedPlacementIds;
    }

    @Override
    public String toString() {
        return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
            .omitNullValues()
            .add("excludedAdUnits", getExcludedAdUnits())
            .add("targetedAdUnits", getTargetedAdUnits())
            .add("targetedPlacementIds", getTargetedPlacementIds())
            .toString();
    }

    /**
     * Gets the targetedAdUnits value for this InventoryTargeting.
     * 
     * @return targetedAdUnits
     */
    public com.google.api.ads.admanager.axis.v202311.AdUnitTargeting[] getTargetedAdUnits() {
        return targetedAdUnits;
    }


    /**
     * Sets the targetedAdUnits value for this InventoryTargeting.
     * 
     * @param targetedAdUnits
     */
    public void setTargetedAdUnits(com.google.api.ads.admanager.axis.v202311.AdUnitTargeting[] targetedAdUnits) {
        this.targetedAdUnits = targetedAdUnits;
    }

    public com.google.api.ads.admanager.axis.v202311.AdUnitTargeting getTargetedAdUnits(int i) {
        return this.targetedAdUnits[i];
    }

    public void setTargetedAdUnits(int i, com.google.api.ads.admanager.axis.v202311.AdUnitTargeting _value) {
        this.targetedAdUnits[i] = _value;
    }


    /**
     * Gets the excludedAdUnits value for this InventoryTargeting.
     * 
     * @return excludedAdUnits
     */
    public com.google.api.ads.admanager.axis.v202311.AdUnitTargeting[] getExcludedAdUnits() {
        return excludedAdUnits;
    }


    /**
     * Sets the excludedAdUnits value for this InventoryTargeting.
     * 
     * @param excludedAdUnits
     */
    public void setExcludedAdUnits(com.google.api.ads.admanager.axis.v202311.AdUnitTargeting[] excludedAdUnits) {
        this.excludedAdUnits = excludedAdUnits;
    }

    public com.google.api.ads.admanager.axis.v202311.AdUnitTargeting getExcludedAdUnits(int i) {
        return this.excludedAdUnits[i];
    }

    public void setExcludedAdUnits(int i, com.google.api.ads.admanager.axis.v202311.AdUnitTargeting _value) {
        this.excludedAdUnits[i] = _value;
    }


    /**
     * Gets the targetedPlacementIds value for this InventoryTargeting.
     * 
     * @return targetedPlacementIds
     */
    public long[] getTargetedPlacementIds() {
        return targetedPlacementIds;
    }


    /**
     * Sets the targetedPlacementIds value for this InventoryTargeting.
     * 
     * @param targetedPlacementIds
     */
    public void setTargetedPlacementIds(long[] targetedPlacementIds) {
        this.targetedPlacementIds = targetedPlacementIds;
    }

    public long getTargetedPlacementIds(int i) {
        return this.targetedPlacementIds[i];
    }

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

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof InventoryTargeting)) return false;
        InventoryTargeting other = (InventoryTargeting) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.targetedAdUnits==null && other.getTargetedAdUnits()==null) || 
             (this.targetedAdUnits!=null &&
              java.util.Arrays.equals(this.targetedAdUnits, other.getTargetedAdUnits()))) &&
            ((this.excludedAdUnits==null && other.getExcludedAdUnits()==null) || 
             (this.excludedAdUnits!=null &&
              java.util.Arrays.equals(this.excludedAdUnits, other.getExcludedAdUnits()))) &&
            ((this.targetedPlacementIds==null && other.getTargetedPlacementIds()==null) || 
             (this.targetedPlacementIds!=null &&
              java.util.Arrays.equals(this.targetedPlacementIds, other.getTargetedPlacementIds())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy