
com.google.api.ads.dfp.axis.v201505.ContentMetadataKeyHierarchyTargeting Maven / Gradle / Ivy
Show all versions of dfp-axis Show documentation
/**
* ContentMetadataKeyHierarchyTargeting.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;
/**
* Represents one or more {@link CustomTargetingValue custom targeting
* values} from different
* {@link CustomTargetingKey custom targeting keys} ANDed
* together.
*/
public class ContentMetadataKeyHierarchyTargeting implements java.io.Serializable {
/* The list of IDs of the targeted {@link CustomTargetingValue}
* objects that are ANDed together.
* Targeting values do not need to be in the order
* of the hierarchy levels. For example,
* if the hierarchy is "show > season > genre" the values
* could be
* "season=3, show=30rock, genre=comedy." */
private long[] customTargetingValueIds;
public ContentMetadataKeyHierarchyTargeting() {
}
public ContentMetadataKeyHierarchyTargeting(
long[] customTargetingValueIds) {
this.customTargetingValueIds = customTargetingValueIds;
}
/**
* Gets the customTargetingValueIds value for this ContentMetadataKeyHierarchyTargeting.
*
* @return customTargetingValueIds * The list of IDs of the targeted {@link CustomTargetingValue}
* objects that are ANDed together.
*
Targeting values do not need to be in the order
* of the hierarchy levels. For example,
* if the hierarchy is "show > season > genre" the values
* could be
* "season=3, show=30rock, genre=comedy."
*/
public long[] getCustomTargetingValueIds() {
return customTargetingValueIds;
}
/**
* Sets the customTargetingValueIds value for this ContentMetadataKeyHierarchyTargeting.
*
* @param customTargetingValueIds * The list of IDs of the targeted {@link CustomTargetingValue}
* objects that are ANDed together.
*
Targeting values do not need to be in the order
* of the hierarchy levels. For example,
* if the hierarchy is "show > season > genre" the values
* could be
* "season=3, show=30rock, genre=comedy."
*/
public void setCustomTargetingValueIds(long[] customTargetingValueIds) {
this.customTargetingValueIds = customTargetingValueIds;
}
public long getCustomTargetingValueIds(int i) {
return this.customTargetingValueIds[i];
}
public void setCustomTargetingValueIds(int i, long _value) {
this.customTargetingValueIds[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ContentMetadataKeyHierarchyTargeting)) return false;
ContentMetadataKeyHierarchyTargeting other = (ContentMetadataKeyHierarchyTargeting) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.customTargetingValueIds==null && other.getCustomTargetingValueIds()==null) ||
(this.customTargetingValueIds!=null &&
java.util.Arrays.equals(this.customTargetingValueIds, other.getCustomTargetingValueIds())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getCustomTargetingValueIds() != null) {
for (int i=0;
i