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

com.google.api.ads.admanager.axis.v202305.LineItemTemplate 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.

/**
 * LineItemTemplate.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.v202305;


/**
 * Represents the template that populates the fields of a new line
 * item being created.
 */
public class LineItemTemplate  implements java.io.Serializable {
    /* Uniquely identifies the {@code LineItemTemplate}. This attribute
     * is read-only and is assigned
     *                 by Google when a template is created. */
    private java.lang.Long id;

    /* The name of the {@code LineItemTemplate}. This attribute is
     * required. */
    private java.lang.String name;

    /* Whether or not the {@code LineItemTemplate} represents the
     * default choices for creating a
     *                 {@code LineItem}. Only one default {@code LineItemTemplate}
     * is allowed per {@code Network}.
     *                 This attribute is readonly. */
    private java.lang.Boolean isDefault;

    /* The default {@link LineItem#name name} of a new {@code LineItem}.
     * This attribute is optional
     *                 and has a maximum length of 127 characters. */
    private java.lang.String lineItemName;

    /* The default value for the {@link LineItem#enabledForSameAdvertiserException}
     * field of a new
     *                 {@code LineItem}. This attribute is required. */
    private java.lang.Boolean enabledForSameAdvertiserException;

    /* The default {@link LineItem#notes notes} for a new {@code LineItem}.
     * This attribute is optional
     *                 and has a maximum length of 65,535 characters. */
    private java.lang.String notes;

    /* The default {@link LineItem#lineItemType type} of a new {@code
     * LineItem}. This attribute is
     *                 required. */
    private com.google.api.ads.admanager.axis.v202305.LineItemType lineItemType;

    /* The default {@link LineItem#deliveryRateType delivery strategy}
     * for a new {@code LineItem}.
     *                 This attribute is required. */
    private com.google.api.ads.admanager.axis.v202305.DeliveryRateType deliveryRateType;

    /* The default {@link LineItem#roadblockingType roadblocking strategy}
     * for a new {@code LineItem}.
     *                 This attribute is required. */
    private com.google.api.ads.admanager.axis.v202305.RoadblockingType roadblockingType;

    /* The default {@link LineItem#creativeRotationType creative rotation
     * strategy} for a new {@code
     *                 LineItem}. This attribute is required. */
    private com.google.api.ads.admanager.axis.v202305.CreativeRotationType creativeRotationType;

    public LineItemTemplate() {
    }

    public LineItemTemplate(
           java.lang.Long id,
           java.lang.String name,
           java.lang.Boolean isDefault,
           java.lang.String lineItemName,
           java.lang.Boolean enabledForSameAdvertiserException,
           java.lang.String notes,
           com.google.api.ads.admanager.axis.v202305.LineItemType lineItemType,
           com.google.api.ads.admanager.axis.v202305.DeliveryRateType deliveryRateType,
           com.google.api.ads.admanager.axis.v202305.RoadblockingType roadblockingType,
           com.google.api.ads.admanager.axis.v202305.CreativeRotationType creativeRotationType) {
           this.id = id;
           this.name = name;
           this.isDefault = isDefault;
           this.lineItemName = lineItemName;
           this.enabledForSameAdvertiserException = enabledForSameAdvertiserException;
           this.notes = notes;
           this.lineItemType = lineItemType;
           this.deliveryRateType = deliveryRateType;
           this.roadblockingType = roadblockingType;
           this.creativeRotationType = creativeRotationType;
    }

    @Override
    public String toString() {
        return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
            .omitNullValues()
            .add("creativeRotationType", getCreativeRotationType())
            .add("deliveryRateType", getDeliveryRateType())
            .add("enabledForSameAdvertiserException", getEnabledForSameAdvertiserException())
            .add("id", getId())
            .add("isDefault", getIsDefault())
            .add("lineItemName", getLineItemName())
            .add("lineItemType", getLineItemType())
            .add("name", getName())
            .add("notes", getNotes())
            .add("roadblockingType", getRoadblockingType())
            .toString();
    }

    /**
     * Gets the id value for this LineItemTemplate.
     * 
     * @return id   * Uniquely identifies the {@code LineItemTemplate}. This attribute
     * is read-only and is assigned
     *                 by Google when a template is created.
     */
    public java.lang.Long getId() {
        return id;
    }


    /**
     * Sets the id value for this LineItemTemplate.
     * 
     * @param id   * Uniquely identifies the {@code LineItemTemplate}. This attribute
     * is read-only and is assigned
     *                 by Google when a template is created.
     */
    public void setId(java.lang.Long id) {
        this.id = id;
    }


    /**
     * Gets the name value for this LineItemTemplate.
     * 
     * @return name   * The name of the {@code LineItemTemplate}. This attribute is
     * required.
     */
    public java.lang.String getName() {
        return name;
    }


    /**
     * Sets the name value for this LineItemTemplate.
     * 
     * @param name   * The name of the {@code LineItemTemplate}. This attribute is
     * required.
     */
    public void setName(java.lang.String name) {
        this.name = name;
    }


    /**
     * Gets the isDefault value for this LineItemTemplate.
     * 
     * @return isDefault   * Whether or not the {@code LineItemTemplate} represents the
     * default choices for creating a
     *                 {@code LineItem}. Only one default {@code LineItemTemplate}
     * is allowed per {@code Network}.
     *                 This attribute is readonly.
     */
    public java.lang.Boolean getIsDefault() {
        return isDefault;
    }


    /**
     * Sets the isDefault value for this LineItemTemplate.
     * 
     * @param isDefault   * Whether or not the {@code LineItemTemplate} represents the
     * default choices for creating a
     *                 {@code LineItem}. Only one default {@code LineItemTemplate}
     * is allowed per {@code Network}.
     *                 This attribute is readonly.
     */
    public void setIsDefault(java.lang.Boolean isDefault) {
        this.isDefault = isDefault;
    }


    /**
     * Gets the lineItemName value for this LineItemTemplate.
     * 
     * @return lineItemName   * The default {@link LineItem#name name} of a new {@code LineItem}.
     * This attribute is optional
     *                 and has a maximum length of 127 characters.
     */
    public java.lang.String getLineItemName() {
        return lineItemName;
    }


    /**
     * Sets the lineItemName value for this LineItemTemplate.
     * 
     * @param lineItemName   * The default {@link LineItem#name name} of a new {@code LineItem}.
     * This attribute is optional
     *                 and has a maximum length of 127 characters.
     */
    public void setLineItemName(java.lang.String lineItemName) {
        this.lineItemName = lineItemName;
    }


    /**
     * Gets the enabledForSameAdvertiserException value for this LineItemTemplate.
     * 
     * @return enabledForSameAdvertiserException   * The default value for the {@link LineItem#enabledForSameAdvertiserException}
     * field of a new
     *                 {@code LineItem}. This attribute is required.
     */
    public java.lang.Boolean getEnabledForSameAdvertiserException() {
        return enabledForSameAdvertiserException;
    }


    /**
     * Sets the enabledForSameAdvertiserException value for this LineItemTemplate.
     * 
     * @param enabledForSameAdvertiserException   * The default value for the {@link LineItem#enabledForSameAdvertiserException}
     * field of a new
     *                 {@code LineItem}. This attribute is required.
     */
    public void setEnabledForSameAdvertiserException(java.lang.Boolean enabledForSameAdvertiserException) {
        this.enabledForSameAdvertiserException = enabledForSameAdvertiserException;
    }


    /**
     * Gets the notes value for this LineItemTemplate.
     * 
     * @return notes   * The default {@link LineItem#notes notes} for a new {@code LineItem}.
     * This attribute is optional
     *                 and has a maximum length of 65,535 characters.
     */
    public java.lang.String getNotes() {
        return notes;
    }


    /**
     * Sets the notes value for this LineItemTemplate.
     * 
     * @param notes   * The default {@link LineItem#notes notes} for a new {@code LineItem}.
     * This attribute is optional
     *                 and has a maximum length of 65,535 characters.
     */
    public void setNotes(java.lang.String notes) {
        this.notes = notes;
    }


    /**
     * Gets the lineItemType value for this LineItemTemplate.
     * 
     * @return lineItemType   * The default {@link LineItem#lineItemType type} of a new {@code
     * LineItem}. This attribute is
     *                 required.
     */
    public com.google.api.ads.admanager.axis.v202305.LineItemType getLineItemType() {
        return lineItemType;
    }


    /**
     * Sets the lineItemType value for this LineItemTemplate.
     * 
     * @param lineItemType   * The default {@link LineItem#lineItemType type} of a new {@code
     * LineItem}. This attribute is
     *                 required.
     */
    public void setLineItemType(com.google.api.ads.admanager.axis.v202305.LineItemType lineItemType) {
        this.lineItemType = lineItemType;
    }


    /**
     * Gets the deliveryRateType value for this LineItemTemplate.
     * 
     * @return deliveryRateType   * The default {@link LineItem#deliveryRateType delivery strategy}
     * for a new {@code LineItem}.
     *                 This attribute is required.
     */
    public com.google.api.ads.admanager.axis.v202305.DeliveryRateType getDeliveryRateType() {
        return deliveryRateType;
    }


    /**
     * Sets the deliveryRateType value for this LineItemTemplate.
     * 
     * @param deliveryRateType   * The default {@link LineItem#deliveryRateType delivery strategy}
     * for a new {@code LineItem}.
     *                 This attribute is required.
     */
    public void setDeliveryRateType(com.google.api.ads.admanager.axis.v202305.DeliveryRateType deliveryRateType) {
        this.deliveryRateType = deliveryRateType;
    }


    /**
     * Gets the roadblockingType value for this LineItemTemplate.
     * 
     * @return roadblockingType   * The default {@link LineItem#roadblockingType roadblocking strategy}
     * for a new {@code LineItem}.
     *                 This attribute is required.
     */
    public com.google.api.ads.admanager.axis.v202305.RoadblockingType getRoadblockingType() {
        return roadblockingType;
    }


    /**
     * Sets the roadblockingType value for this LineItemTemplate.
     * 
     * @param roadblockingType   * The default {@link LineItem#roadblockingType roadblocking strategy}
     * for a new {@code LineItem}.
     *                 This attribute is required.
     */
    public void setRoadblockingType(com.google.api.ads.admanager.axis.v202305.RoadblockingType roadblockingType) {
        this.roadblockingType = roadblockingType;
    }


    /**
     * Gets the creativeRotationType value for this LineItemTemplate.
     * 
     * @return creativeRotationType   * The default {@link LineItem#creativeRotationType creative rotation
     * strategy} for a new {@code
     *                 LineItem}. This attribute is required.
     */
    public com.google.api.ads.admanager.axis.v202305.CreativeRotationType getCreativeRotationType() {
        return creativeRotationType;
    }


    /**
     * Sets the creativeRotationType value for this LineItemTemplate.
     * 
     * @param creativeRotationType   * The default {@link LineItem#creativeRotationType creative rotation
     * strategy} for a new {@code
     *                 LineItem}. This attribute is required.
     */
    public void setCreativeRotationType(com.google.api.ads.admanager.axis.v202305.CreativeRotationType creativeRotationType) {
        this.creativeRotationType = creativeRotationType;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof LineItemTemplate)) return false;
        LineItemTemplate other = (LineItemTemplate) 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.name==null && other.getName()==null) || 
             (this.name!=null &&
              this.name.equals(other.getName()))) &&
            ((this.isDefault==null && other.getIsDefault()==null) || 
             (this.isDefault!=null &&
              this.isDefault.equals(other.getIsDefault()))) &&
            ((this.lineItemName==null && other.getLineItemName()==null) || 
             (this.lineItemName!=null &&
              this.lineItemName.equals(other.getLineItemName()))) &&
            ((this.enabledForSameAdvertiserException==null && other.getEnabledForSameAdvertiserException()==null) || 
             (this.enabledForSameAdvertiserException!=null &&
              this.enabledForSameAdvertiserException.equals(other.getEnabledForSameAdvertiserException()))) &&
            ((this.notes==null && other.getNotes()==null) || 
             (this.notes!=null &&
              this.notes.equals(other.getNotes()))) &&
            ((this.lineItemType==null && other.getLineItemType()==null) || 
             (this.lineItemType!=null &&
              this.lineItemType.equals(other.getLineItemType()))) &&
            ((this.deliveryRateType==null && other.getDeliveryRateType()==null) || 
             (this.deliveryRateType!=null &&
              this.deliveryRateType.equals(other.getDeliveryRateType()))) &&
            ((this.roadblockingType==null && other.getRoadblockingType()==null) || 
             (this.roadblockingType!=null &&
              this.roadblockingType.equals(other.getRoadblockingType()))) &&
            ((this.creativeRotationType==null && other.getCreativeRotationType()==null) || 
             (this.creativeRotationType!=null &&
              this.creativeRotationType.equals(other.getCreativeRotationType())));
        __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 (getName() != null) {
            _hashCode += getName().hashCode();
        }
        if (getIsDefault() != null) {
            _hashCode += getIsDefault().hashCode();
        }
        if (getLineItemName() != null) {
            _hashCode += getLineItemName().hashCode();
        }
        if (getEnabledForSameAdvertiserException() != null) {
            _hashCode += getEnabledForSameAdvertiserException().hashCode();
        }
        if (getNotes() != null) {
            _hashCode += getNotes().hashCode();
        }
        if (getLineItemType() != null) {
            _hashCode += getLineItemType().hashCode();
        }
        if (getDeliveryRateType() != null) {
            _hashCode += getDeliveryRateType().hashCode();
        }
        if (getRoadblockingType() != null) {
            _hashCode += getRoadblockingType().hashCode();
        }
        if (getCreativeRotationType() != null) {
            _hashCode += getCreativeRotationType().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "LineItemTemplate"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("id");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "id"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("name");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "name"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("isDefault");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "isDefault"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("lineItemName");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "lineItemName"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("enabledForSameAdvertiserException");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "enabledForSameAdvertiserException"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("notes");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "notes"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("lineItemType");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "lineItemType"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "LineItemType"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("deliveryRateType");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "deliveryRateType"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "DeliveryRateType"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("roadblockingType");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "roadblockingType"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "RoadblockingType"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("creativeRotationType");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "creativeRotationType"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202305", "CreativeRotationType"));
        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 - 2024 Weber Informatics LLC | Privacy Policy