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

com.google.api.ads.dfp.axis.v201508.LineItemActivityAssociation Maven / Gradle / Ivy

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


/**
 * A {@code LineItemActivityAssociation} associates a {@link LineItem}
 * with an {@link Activity} so
 *             that the conversions of the {@link Activity} can be counted
 * against the {@link LineItem}.
 */
public class LineItemActivityAssociation  implements java.io.Serializable {
    /* The ID of the {@link Activity} to which the {@link LineItem}
     * should be
     *                 associated. This attribute is required. */
    private java.lang.Integer activityId;

    /* The amount of money to attribute per click through conversion.
     * This attribute is
     *                 required for creating a {@code LineItemActivityAssociation}.
     * The currency code is readonly
     *                 and should match the {@link LineItem}. */
    private com.google.api.ads.dfp.axis.v201508.Money clickThroughConversionCost;

    /* The amount of money to attribute per view through conversion.
     * This attribute is
     *                 required for creating a {@code LineItemActivityAssociation}.
     * The currency code is readonly
     *                 and should match the {@link LineItem}. */
    private com.google.api.ads.dfp.axis.v201508.Money viewThroughConversionCost;

    public LineItemActivityAssociation() {
    }

    public LineItemActivityAssociation(
           java.lang.Integer activityId,
           com.google.api.ads.dfp.axis.v201508.Money clickThroughConversionCost,
           com.google.api.ads.dfp.axis.v201508.Money viewThroughConversionCost) {
           this.activityId = activityId;
           this.clickThroughConversionCost = clickThroughConversionCost;
           this.viewThroughConversionCost = viewThroughConversionCost;
    }


    /**
     * Gets the activityId value for this LineItemActivityAssociation.
     * 
     * @return activityId   * The ID of the {@link Activity} to which the {@link LineItem}
     * should be
     *                 associated. This attribute is required.
     */
    public java.lang.Integer getActivityId() {
        return activityId;
    }


    /**
     * Sets the activityId value for this LineItemActivityAssociation.
     * 
     * @param activityId   * The ID of the {@link Activity} to which the {@link LineItem}
     * should be
     *                 associated. This attribute is required.
     */
    public void setActivityId(java.lang.Integer activityId) {
        this.activityId = activityId;
    }


    /**
     * Gets the clickThroughConversionCost value for this LineItemActivityAssociation.
     * 
     * @return clickThroughConversionCost   * The amount of money to attribute per click through conversion.
     * This attribute is
     *                 required for creating a {@code LineItemActivityAssociation}.
     * The currency code is readonly
     *                 and should match the {@link LineItem}.
     */
    public com.google.api.ads.dfp.axis.v201508.Money getClickThroughConversionCost() {
        return clickThroughConversionCost;
    }


    /**
     * Sets the clickThroughConversionCost value for this LineItemActivityAssociation.
     * 
     * @param clickThroughConversionCost   * The amount of money to attribute per click through conversion.
     * This attribute is
     *                 required for creating a {@code LineItemActivityAssociation}.
     * The currency code is readonly
     *                 and should match the {@link LineItem}.
     */
    public void setClickThroughConversionCost(com.google.api.ads.dfp.axis.v201508.Money clickThroughConversionCost) {
        this.clickThroughConversionCost = clickThroughConversionCost;
    }


    /**
     * Gets the viewThroughConversionCost value for this LineItemActivityAssociation.
     * 
     * @return viewThroughConversionCost   * The amount of money to attribute per view through conversion.
     * This attribute is
     *                 required for creating a {@code LineItemActivityAssociation}.
     * The currency code is readonly
     *                 and should match the {@link LineItem}.
     */
    public com.google.api.ads.dfp.axis.v201508.Money getViewThroughConversionCost() {
        return viewThroughConversionCost;
    }


    /**
     * Sets the viewThroughConversionCost value for this LineItemActivityAssociation.
     * 
     * @param viewThroughConversionCost   * The amount of money to attribute per view through conversion.
     * This attribute is
     *                 required for creating a {@code LineItemActivityAssociation}.
     * The currency code is readonly
     *                 and should match the {@link LineItem}.
     */
    public void setViewThroughConversionCost(com.google.api.ads.dfp.axis.v201508.Money viewThroughConversionCost) {
        this.viewThroughConversionCost = viewThroughConversionCost;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof LineItemActivityAssociation)) return false;
        LineItemActivityAssociation other = (LineItemActivityAssociation) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.activityId==null && other.getActivityId()==null) || 
             (this.activityId!=null &&
              this.activityId.equals(other.getActivityId()))) &&
            ((this.clickThroughConversionCost==null && other.getClickThroughConversionCost()==null) || 
             (this.clickThroughConversionCost!=null &&
              this.clickThroughConversionCost.equals(other.getClickThroughConversionCost()))) &&
            ((this.viewThroughConversionCost==null && other.getViewThroughConversionCost()==null) || 
             (this.viewThroughConversionCost!=null &&
              this.viewThroughConversionCost.equals(other.getViewThroughConversionCost())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getActivityId() != null) {
            _hashCode += getActivityId().hashCode();
        }
        if (getClickThroughConversionCost() != null) {
            _hashCode += getClickThroughConversionCost().hashCode();
        }
        if (getViewThroughConversionCost() != null) {
            _hashCode += getViewThroughConversionCost().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(LineItemActivityAssociation.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201508", "LineItemActivityAssociation"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("activityId");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201508", "activityId"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("clickThroughConversionCost");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201508", "clickThroughConversionCost"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201508", "Money"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("viewThroughConversionCost");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201508", "viewThroughConversionCost"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201508", "Money"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy