
com.google.api.ads.dfp.axis.v201605.PremiumRate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dfp-axis Show documentation
Show all versions of dfp-axis Show documentation
Ad Manager specific Axis components.
/**
* PremiumRate.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;
/**
* A premium rate holding a set of {@link PremiumRateValue} objects
* with the
* same {@link PremiumFeature}.
*/
public class PremiumRate implements java.io.Serializable {
/* Uniquely identifies the {@code PremiumRate} object.
*
* This attribute is read-only and is assigned by Google
* when a premium rate
* is created. */
private java.lang.Long id;
/* The ID of the {@link RateCard} object to which this premium
* rate belongs.
*
* This attribute is required and cannot be changed after
* creation. */
private java.lang.Long rateCardId;
/* The method of deciding which {@link PremiumRateValue} objects
* from this
* {@code PremiumRate} to apply to a {@link ProposalLineItem}.
*
* This attribute is required. */
private com.google.api.ads.dfp.axis.v201605.PricingMethod pricingMethod;
/* The feature type of this premium rate.
*
* This attribute is required and cannot be changed after
* creation. */
private com.google.api.ads.dfp.axis.v201605.PremiumFeature premiumFeature;
/* The premiums rate values in this rate. */
private com.google.api.ads.dfp.axis.v201605.PremiumRateValue[] premiumRateValues;
public PremiumRate() {
}
public PremiumRate(
java.lang.Long id,
java.lang.Long rateCardId,
com.google.api.ads.dfp.axis.v201605.PricingMethod pricingMethod,
com.google.api.ads.dfp.axis.v201605.PremiumFeature premiumFeature,
com.google.api.ads.dfp.axis.v201605.PremiumRateValue[] premiumRateValues) {
this.id = id;
this.rateCardId = rateCardId;
this.pricingMethod = pricingMethod;
this.premiumFeature = premiumFeature;
this.premiumRateValues = premiumRateValues;
}
/**
* Gets the id value for this PremiumRate.
*
* @return id * Uniquely identifies the {@code PremiumRate} object.
*
* This attribute is read-only and is assigned by Google
* when a premium rate
* is created.
*/
public java.lang.Long getId() {
return id;
}
/**
* Sets the id value for this PremiumRate.
*
* @param id * Uniquely identifies the {@code PremiumRate} object.
*
* This attribute is read-only and is assigned by Google
* when a premium rate
* is created.
*/
public void setId(java.lang.Long id) {
this.id = id;
}
/**
* Gets the rateCardId value for this PremiumRate.
*
* @return rateCardId * The ID of the {@link RateCard} object to which this premium
* rate belongs.
*
* This attribute is required and cannot be changed after
* creation.
*/
public java.lang.Long getRateCardId() {
return rateCardId;
}
/**
* Sets the rateCardId value for this PremiumRate.
*
* @param rateCardId * The ID of the {@link RateCard} object to which this premium
* rate belongs.
*
* This attribute is required and cannot be changed after
* creation.
*/
public void setRateCardId(java.lang.Long rateCardId) {
this.rateCardId = rateCardId;
}
/**
* Gets the pricingMethod value for this PremiumRate.
*
* @return pricingMethod * The method of deciding which {@link PremiumRateValue} objects
* from this
* {@code PremiumRate} to apply to a {@link ProposalLineItem}.
*
* This attribute is required.
*/
public com.google.api.ads.dfp.axis.v201605.PricingMethod getPricingMethod() {
return pricingMethod;
}
/**
* Sets the pricingMethod value for this PremiumRate.
*
* @param pricingMethod * The method of deciding which {@link PremiumRateValue} objects
* from this
* {@code PremiumRate} to apply to a {@link ProposalLineItem}.
*
* This attribute is required.
*/
public void setPricingMethod(com.google.api.ads.dfp.axis.v201605.PricingMethod pricingMethod) {
this.pricingMethod = pricingMethod;
}
/**
* Gets the premiumFeature value for this PremiumRate.
*
* @return premiumFeature * The feature type of this premium rate.
*
* This attribute is required and cannot be changed after
* creation.
*/
public com.google.api.ads.dfp.axis.v201605.PremiumFeature getPremiumFeature() {
return premiumFeature;
}
/**
* Sets the premiumFeature value for this PremiumRate.
*
* @param premiumFeature * The feature type of this premium rate.
*
* This attribute is required and cannot be changed after
* creation.
*/
public void setPremiumFeature(com.google.api.ads.dfp.axis.v201605.PremiumFeature premiumFeature) {
this.premiumFeature = premiumFeature;
}
/**
* Gets the premiumRateValues value for this PremiumRate.
*
* @return premiumRateValues * The premiums rate values in this rate.
*/
public com.google.api.ads.dfp.axis.v201605.PremiumRateValue[] getPremiumRateValues() {
return premiumRateValues;
}
/**
* Sets the premiumRateValues value for this PremiumRate.
*
* @param premiumRateValues * The premiums rate values in this rate.
*/
public void setPremiumRateValues(com.google.api.ads.dfp.axis.v201605.PremiumRateValue[] premiumRateValues) {
this.premiumRateValues = premiumRateValues;
}
public com.google.api.ads.dfp.axis.v201605.PremiumRateValue getPremiumRateValues(int i) {
return this.premiumRateValues[i];
}
public void setPremiumRateValues(int i, com.google.api.ads.dfp.axis.v201605.PremiumRateValue _value) {
this.premiumRateValues[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof PremiumRate)) return false;
PremiumRate other = (PremiumRate) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.id==null && other.getId()==null) ||
(this.id!=null &&
this.id.equals(other.getId()))) &&
((this.rateCardId==null && other.getRateCardId()==null) ||
(this.rateCardId!=null &&
this.rateCardId.equals(other.getRateCardId()))) &&
((this.pricingMethod==null && other.getPricingMethod()==null) ||
(this.pricingMethod!=null &&
this.pricingMethod.equals(other.getPricingMethod()))) &&
((this.premiumFeature==null && other.getPremiumFeature()==null) ||
(this.premiumFeature!=null &&
this.premiumFeature.equals(other.getPremiumFeature()))) &&
((this.premiumRateValues==null && other.getPremiumRateValues()==null) ||
(this.premiumRateValues!=null &&
java.util.Arrays.equals(this.premiumRateValues, other.getPremiumRateValues())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getId() != null) {
_hashCode += getId().hashCode();
}
if (getRateCardId() != null) {
_hashCode += getRateCardId().hashCode();
}
if (getPricingMethod() != null) {
_hashCode += getPricingMethod().hashCode();
}
if (getPremiumFeature() != null) {
_hashCode += getPremiumFeature().hashCode();
}
if (getPremiumRateValues() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy