
com.google.api.ads.dfp.axis.v201505.ProposalLineItemConstraints Maven / Gradle / Ivy
Show all versions of dfp-axis Show documentation
/**
* ProposalLineItemConstraints.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 PropoalLineItemConstraints} represents all the constraints
* set for a
* {@link ProposalLineItem} and is always readonly. It comes
* from the {@link Product},
* based on which the proposal line item is created.
*/
public class ProposalLineItemConstraints implements java.io.Serializable {
/* Allows customization by salespeople of frequency caps when
* creating proposal line items.
*
* This attribute is read-only. */
private java.lang.Boolean allowFrequencyCapsCustomization;
/* The built-in frequency caps for the created {@link ProposalLineItem}.
*
*
This attribute is read-only. */
private com.google.api.ads.dfp.axis.v201505.FrequencyCap[] builtInFrequencyCaps;
/* The built-in targeting for the created {@link ProposalLineItem}.
*
*
This attribute is read-only.
*
Replaced with {@code productBuiltInTargeting} beginning
* in V201508. */
private com.google.api.ads.dfp.axis.v201505.ProductTemplateTargeting builtInTargeting;
public ProposalLineItemConstraints() {
}
public ProposalLineItemConstraints(
java.lang.Boolean allowFrequencyCapsCustomization,
com.google.api.ads.dfp.axis.v201505.FrequencyCap[] builtInFrequencyCaps,
com.google.api.ads.dfp.axis.v201505.ProductTemplateTargeting builtInTargeting) {
this.allowFrequencyCapsCustomization = allowFrequencyCapsCustomization;
this.builtInFrequencyCaps = builtInFrequencyCaps;
this.builtInTargeting = builtInTargeting;
}
/**
* Gets the allowFrequencyCapsCustomization value for this ProposalLineItemConstraints.
*
* @return allowFrequencyCapsCustomization * Allows customization by salespeople of frequency caps when
* creating proposal line items.
*
*
This attribute is read-only.
*/
public java.lang.Boolean getAllowFrequencyCapsCustomization() {
return allowFrequencyCapsCustomization;
}
/**
* Sets the allowFrequencyCapsCustomization value for this ProposalLineItemConstraints.
*
* @param allowFrequencyCapsCustomization * Allows customization by salespeople of frequency caps when
* creating proposal line items.
*
*
This attribute is read-only.
*/
public void setAllowFrequencyCapsCustomization(java.lang.Boolean allowFrequencyCapsCustomization) {
this.allowFrequencyCapsCustomization = allowFrequencyCapsCustomization;
}
/**
* Gets the builtInFrequencyCaps value for this ProposalLineItemConstraints.
*
* @return builtInFrequencyCaps * The built-in frequency caps for the created {@link ProposalLineItem}.
*
*
This attribute is read-only.
*/
public com.google.api.ads.dfp.axis.v201505.FrequencyCap[] getBuiltInFrequencyCaps() {
return builtInFrequencyCaps;
}
/**
* Sets the builtInFrequencyCaps value for this ProposalLineItemConstraints.
*
* @param builtInFrequencyCaps * The built-in frequency caps for the created {@link ProposalLineItem}.
*
*
This attribute is read-only.
*/
public void setBuiltInFrequencyCaps(com.google.api.ads.dfp.axis.v201505.FrequencyCap[] builtInFrequencyCaps) {
this.builtInFrequencyCaps = builtInFrequencyCaps;
}
public com.google.api.ads.dfp.axis.v201505.FrequencyCap getBuiltInFrequencyCaps(int i) {
return this.builtInFrequencyCaps[i];
}
public void setBuiltInFrequencyCaps(int i, com.google.api.ads.dfp.axis.v201505.FrequencyCap _value) {
this.builtInFrequencyCaps[i] = _value;
}
/**
* Gets the builtInTargeting value for this ProposalLineItemConstraints.
*
* @return builtInTargeting * The built-in targeting for the created {@link ProposalLineItem}.
*
*
This attribute is read-only.
*
Replaced with {@code productBuiltInTargeting} beginning
* in V201508.
*/
public com.google.api.ads.dfp.axis.v201505.ProductTemplateTargeting getBuiltInTargeting() {
return builtInTargeting;
}
/**
* Sets the builtInTargeting value for this ProposalLineItemConstraints.
*
* @param builtInTargeting * The built-in targeting for the created {@link ProposalLineItem}.
*
*
This attribute is read-only.
*
Replaced with {@code productBuiltInTargeting} beginning
* in V201508.
*/
public void setBuiltInTargeting(com.google.api.ads.dfp.axis.v201505.ProductTemplateTargeting builtInTargeting) {
this.builtInTargeting = builtInTargeting;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ProposalLineItemConstraints)) return false;
ProposalLineItemConstraints other = (ProposalLineItemConstraints) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.allowFrequencyCapsCustomization==null && other.getAllowFrequencyCapsCustomization()==null) ||
(this.allowFrequencyCapsCustomization!=null &&
this.allowFrequencyCapsCustomization.equals(other.getAllowFrequencyCapsCustomization()))) &&
((this.builtInFrequencyCaps==null && other.getBuiltInFrequencyCaps()==null) ||
(this.builtInFrequencyCaps!=null &&
java.util.Arrays.equals(this.builtInFrequencyCaps, other.getBuiltInFrequencyCaps()))) &&
((this.builtInTargeting==null && other.getBuiltInTargeting()==null) ||
(this.builtInTargeting!=null &&
this.builtInTargeting.equals(other.getBuiltInTargeting())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getAllowFrequencyCapsCustomization() != null) {
_hashCode += getAllowFrequencyCapsCustomization().hashCode();
}
if (getBuiltInFrequencyCaps() != null) {
for (int i=0;
i