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

com.google.api.ads.dfp.axis.v201605.Order Maven / Gradle / Ivy

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


/**
 * An {@code Order} represents a grouping of individual {@link LineItem}
 * objects, each of which fulfill an ad request from a particular advertiser.
 */
public class Order  implements java.io.Serializable {
    /* The unique ID of the {@code Order}. This value is readonly
     * and is assigned
     *                 by Google. */
    private java.lang.Long id;

    /* The name of the {@code Order}. This value is required to create
     * an order
     *                 and has a maximum length of 128 characters. */
    private java.lang.String name;

    /* The date and time at which the {@code Order} and its associated
     * line items
     *                 are eligible to begin serving. This attribute is readonly
     * and is derived
     *                 from the line item of the order which has the earliest
     * {@link LineItem#startDateTime}. */
    private com.google.api.ads.dfp.axis.v201605.DateTime startDateTime;

    /* The date and time at which the {@code Order} and its associated
     * line items
     *                 stop being served. This attribute is readonly and
     * is derived from the line
     *                 item of the order which has the latest {@link LineItem#endDateTime}. */
    private com.google.api.ads.dfp.axis.v201605.DateTime endDateTime;

    /* Specifies whether or not the {@code Order} has an unlimited
     * end date. This
     *                 attribute is readonly and is {@code true} if any of
     * the order's line items
     *                 has {@link LineItem#unlimitedEndDateTime} set to {@code
     * true}. */
    private java.lang.Boolean unlimitedEndDateTime;

    /* The status of the {@code Order}. This attribute is read-only. */
    private com.google.api.ads.dfp.axis.v201605.OrderStatus status;

    /* The archival status of the {@code Order}. This attribute is
     * readonly. */
    private java.lang.Boolean isArchived;

    /* Provides any additional notes that may annotate the {@code
     * Order}. This
     *                 attribute is optional and has a maximum length of
     * 65,535 characters. */
    private java.lang.String notes;

    /* An arbitrary ID to associate to the {@code Order}, which can
     * be used as a
     *                 key to an external system. This value is optional. */
    private java.lang.Integer externalOrderId;

    /* The purchase order number for the {@code Order}. This value
     * is optional
     *                 and has a maximum length of 63 characters. */
    private java.lang.String poNumber;

    /* The ISO currency code for the currency used by the {@code Order}.
     * This
     *                 value is read-only and is the network's currency code. */
    private java.lang.String currencyCode;

    /* The unique ID of the {@link Company}, which is of type
     *                 {@link Company.Type#ADVERTISER}, to which this order
     * belongs. This
     *                 attribute is required. */
    private java.lang.Long advertiserId;

    /* List of IDs for advertiser contacts of the order. */
    private long[] advertiserContactIds;

    /* The unique ID of the {@link Company}, which is of type
     *                 {@link Company.Type#AGENCY}, with which this order
     * is associated. This
     *                 attribute is optional. */
    private java.lang.Long agencyId;

    /* List of IDs for agency contacts of the order. */
    private long[] agencyContactIds;

    /* The unique ID of the {@link User} who created the {@code Order}
     * on behalf
     *                 of the advertiser. This value is readonly and is assigned
     * by Google. */
    private java.lang.Long creatorId;

    /* The unique ID of the {@link User} responsible for trafficking
     * the {@code
     *                 Order}. This value is required for creating an order. */
    private java.lang.Long traffickerId;

    /* The IDs of the secondary traffickers associated with the order.
     * This value
     *                 is optional. */
    private long[] secondaryTraffickerIds;

    /* The unique ID of the {@link User} responsible for the sales
     * of the {@code
     *                 Order}. This value is optional. */
    private java.lang.Long salespersonId;

    /* The IDs of the secondary salespeople associated with the order.
     * This value
     *                 is optional. */
    private long[] secondarySalespersonIds;

    /* Total impressions delivered for all line items of this {@code
     * Order}. This
     *                 value is read-only and is assigned by Google. */
    private java.lang.Long totalImpressionsDelivered;

    /* Total clicks delivered for all line items of this {@code Order}.
     * This value
     *                 is read-only and is assigned by Google. */
    private java.lang.Long totalClicksDelivered;

    /* Total viewable impressions delivered for all line items of
     * this {@code Order}.
     *                 This value is read-only and is assigned by Google. */
    private java.lang.Long totalViewableImpressionsDelivered;

    /* Total budget for all line items of this {@code Order}. This
     * value is a
     *                 readonly field assigned by Google and is calculated
     * from the associated
     *                 {@link LineItem#costPerUnit} values. */
    private com.google.api.ads.dfp.axis.v201605.Money totalBudget;

    /* The set of labels applied directly to this order. */
    private com.google.api.ads.dfp.axis.v201605.AppliedLabel[] appliedLabels;

    /* Contains the set of labels applied directly to the order as
     * well as those
     *                 inherited from the company that owns the order. If
     * a label has been
     *                 negated, only the negated label is returned. This
     * field is readonly and is
     *                 assigned by Google. */
    private com.google.api.ads.dfp.axis.v201605.AppliedLabel[] effectiveAppliedLabels;

    /* The application which modified this order. This attribute is
     * read only and
     *                 is assigned by Google. */
    private java.lang.String lastModifiedByApp;

    /* Specifies whether or not the {@code Order} is a programmatic
     * order. This
     *                 value is optional and defaults to false. */
    private java.lang.Boolean isProgrammatic;

    /* The programmatic settings associated with this order. */
    private com.google.api.ads.dfp.axis.v201605.ProgrammaticSettings programmaticSettings;

    /* The IDs of all teams that this order is on directly. */
    private long[] appliedTeamIds;

    /* The date and time this order was last modified. */
    private com.google.api.ads.dfp.axis.v201605.DateTime lastModifiedDateTime;

    /* The values of the custom fields associated with this order. */
    private com.google.api.ads.dfp.axis.v201605.BaseCustomFieldValue[] customFieldValues;

    public Order() {
    }

    public Order(
           java.lang.Long id,
           java.lang.String name,
           com.google.api.ads.dfp.axis.v201605.DateTime startDateTime,
           com.google.api.ads.dfp.axis.v201605.DateTime endDateTime,
           java.lang.Boolean unlimitedEndDateTime,
           com.google.api.ads.dfp.axis.v201605.OrderStatus status,
           java.lang.Boolean isArchived,
           java.lang.String notes,
           java.lang.Integer externalOrderId,
           java.lang.String poNumber,
           java.lang.String currencyCode,
           java.lang.Long advertiserId,
           long[] advertiserContactIds,
           java.lang.Long agencyId,
           long[] agencyContactIds,
           java.lang.Long creatorId,
           java.lang.Long traffickerId,
           long[] secondaryTraffickerIds,
           java.lang.Long salespersonId,
           long[] secondarySalespersonIds,
           java.lang.Long totalImpressionsDelivered,
           java.lang.Long totalClicksDelivered,
           java.lang.Long totalViewableImpressionsDelivered,
           com.google.api.ads.dfp.axis.v201605.Money totalBudget,
           com.google.api.ads.dfp.axis.v201605.AppliedLabel[] appliedLabels,
           com.google.api.ads.dfp.axis.v201605.AppliedLabel[] effectiveAppliedLabels,
           java.lang.String lastModifiedByApp,
           java.lang.Boolean isProgrammatic,
           com.google.api.ads.dfp.axis.v201605.ProgrammaticSettings programmaticSettings,
           long[] appliedTeamIds,
           com.google.api.ads.dfp.axis.v201605.DateTime lastModifiedDateTime,
           com.google.api.ads.dfp.axis.v201605.BaseCustomFieldValue[] customFieldValues) {
           this.id = id;
           this.name = name;
           this.startDateTime = startDateTime;
           this.endDateTime = endDateTime;
           this.unlimitedEndDateTime = unlimitedEndDateTime;
           this.status = status;
           this.isArchived = isArchived;
           this.notes = notes;
           this.externalOrderId = externalOrderId;
           this.poNumber = poNumber;
           this.currencyCode = currencyCode;
           this.advertiserId = advertiserId;
           this.advertiserContactIds = advertiserContactIds;
           this.agencyId = agencyId;
           this.agencyContactIds = agencyContactIds;
           this.creatorId = creatorId;
           this.traffickerId = traffickerId;
           this.secondaryTraffickerIds = secondaryTraffickerIds;
           this.salespersonId = salespersonId;
           this.secondarySalespersonIds = secondarySalespersonIds;
           this.totalImpressionsDelivered = totalImpressionsDelivered;
           this.totalClicksDelivered = totalClicksDelivered;
           this.totalViewableImpressionsDelivered = totalViewableImpressionsDelivered;
           this.totalBudget = totalBudget;
           this.appliedLabels = appliedLabels;
           this.effectiveAppliedLabels = effectiveAppliedLabels;
           this.lastModifiedByApp = lastModifiedByApp;
           this.isProgrammatic = isProgrammatic;
           this.programmaticSettings = programmaticSettings;
           this.appliedTeamIds = appliedTeamIds;
           this.lastModifiedDateTime = lastModifiedDateTime;
           this.customFieldValues = customFieldValues;
    }


    /**
     * Gets the id value for this Order.
     * 
     * @return id   * The unique ID of the {@code Order}. This value is readonly
     * and is assigned
     *                 by Google.
     */
    public java.lang.Long getId() {
        return id;
    }


    /**
     * Sets the id value for this Order.
     * 
     * @param id   * The unique ID of the {@code Order}. This value is readonly
     * and is assigned
     *                 by Google.
     */
    public void setId(java.lang.Long id) {
        this.id = id;
    }


    /**
     * Gets the name value for this Order.
     * 
     * @return name   * The name of the {@code Order}. This value is required to create
     * an order
     *                 and has a maximum length of 128 characters.
     */
    public java.lang.String getName() {
        return name;
    }


    /**
     * Sets the name value for this Order.
     * 
     * @param name   * The name of the {@code Order}. This value is required to create
     * an order
     *                 and has a maximum length of 128 characters.
     */
    public void setName(java.lang.String name) {
        this.name = name;
    }


    /**
     * Gets the startDateTime value for this Order.
     * 
     * @return startDateTime   * The date and time at which the {@code Order} and its associated
     * line items
     *                 are eligible to begin serving. This attribute is readonly
     * and is derived
     *                 from the line item of the order which has the earliest
     * {@link LineItem#startDateTime}.
     */
    public com.google.api.ads.dfp.axis.v201605.DateTime getStartDateTime() {
        return startDateTime;
    }


    /**
     * Sets the startDateTime value for this Order.
     * 
     * @param startDateTime   * The date and time at which the {@code Order} and its associated
     * line items
     *                 are eligible to begin serving. This attribute is readonly
     * and is derived
     *                 from the line item of the order which has the earliest
     * {@link LineItem#startDateTime}.
     */
    public void setStartDateTime(com.google.api.ads.dfp.axis.v201605.DateTime startDateTime) {
        this.startDateTime = startDateTime;
    }


    /**
     * Gets the endDateTime value for this Order.
     * 
     * @return endDateTime   * The date and time at which the {@code Order} and its associated
     * line items
     *                 stop being served. This attribute is readonly and
     * is derived from the line
     *                 item of the order which has the latest {@link LineItem#endDateTime}.
     */
    public com.google.api.ads.dfp.axis.v201605.DateTime getEndDateTime() {
        return endDateTime;
    }


    /**
     * Sets the endDateTime value for this Order.
     * 
     * @param endDateTime   * The date and time at which the {@code Order} and its associated
     * line items
     *                 stop being served. This attribute is readonly and
     * is derived from the line
     *                 item of the order which has the latest {@link LineItem#endDateTime}.
     */
    public void setEndDateTime(com.google.api.ads.dfp.axis.v201605.DateTime endDateTime) {
        this.endDateTime = endDateTime;
    }


    /**
     * Gets the unlimitedEndDateTime value for this Order.
     * 
     * @return unlimitedEndDateTime   * Specifies whether or not the {@code Order} has an unlimited
     * end date. This
     *                 attribute is readonly and is {@code true} if any of
     * the order's line items
     *                 has {@link LineItem#unlimitedEndDateTime} set to {@code
     * true}.
     */
    public java.lang.Boolean getUnlimitedEndDateTime() {
        return unlimitedEndDateTime;
    }


    /**
     * Sets the unlimitedEndDateTime value for this Order.
     * 
     * @param unlimitedEndDateTime   * Specifies whether or not the {@code Order} has an unlimited
     * end date. This
     *                 attribute is readonly and is {@code true} if any of
     * the order's line items
     *                 has {@link LineItem#unlimitedEndDateTime} set to {@code
     * true}.
     */
    public void setUnlimitedEndDateTime(java.lang.Boolean unlimitedEndDateTime) {
        this.unlimitedEndDateTime = unlimitedEndDateTime;
    }


    /**
     * Gets the status value for this Order.
     * 
     * @return status   * The status of the {@code Order}. This attribute is read-only.
     */
    public com.google.api.ads.dfp.axis.v201605.OrderStatus getStatus() {
        return status;
    }


    /**
     * Sets the status value for this Order.
     * 
     * @param status   * The status of the {@code Order}. This attribute is read-only.
     */
    public void setStatus(com.google.api.ads.dfp.axis.v201605.OrderStatus status) {
        this.status = status;
    }


    /**
     * Gets the isArchived value for this Order.
     * 
     * @return isArchived   * The archival status of the {@code Order}. This attribute is
     * readonly.
     */
    public java.lang.Boolean getIsArchived() {
        return isArchived;
    }


    /**
     * Sets the isArchived value for this Order.
     * 
     * @param isArchived   * The archival status of the {@code Order}. This attribute is
     * readonly.
     */
    public void setIsArchived(java.lang.Boolean isArchived) {
        this.isArchived = isArchived;
    }


    /**
     * Gets the notes value for this Order.
     * 
     * @return notes   * Provides any additional notes that may annotate the {@code
     * Order}. 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 Order.
     * 
     * @param notes   * Provides any additional notes that may annotate the {@code
     * Order}. 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 externalOrderId value for this Order.
     * 
     * @return externalOrderId   * An arbitrary ID to associate to the {@code Order}, which can
     * be used as a
     *                 key to an external system. This value is optional.
     */
    public java.lang.Integer getExternalOrderId() {
        return externalOrderId;
    }


    /**
     * Sets the externalOrderId value for this Order.
     * 
     * @param externalOrderId   * An arbitrary ID to associate to the {@code Order}, which can
     * be used as a
     *                 key to an external system. This value is optional.
     */
    public void setExternalOrderId(java.lang.Integer externalOrderId) {
        this.externalOrderId = externalOrderId;
    }


    /**
     * Gets the poNumber value for this Order.
     * 
     * @return poNumber   * The purchase order number for the {@code Order}. This value
     * is optional
     *                 and has a maximum length of 63 characters.
     */
    public java.lang.String getPoNumber() {
        return poNumber;
    }


    /**
     * Sets the poNumber value for this Order.
     * 
     * @param poNumber   * The purchase order number for the {@code Order}. This value
     * is optional
     *                 and has a maximum length of 63 characters.
     */
    public void setPoNumber(java.lang.String poNumber) {
        this.poNumber = poNumber;
    }


    /**
     * Gets the currencyCode value for this Order.
     * 
     * @return currencyCode   * The ISO currency code for the currency used by the {@code Order}.
     * This
     *                 value is read-only and is the network's currency code.
     */
    public java.lang.String getCurrencyCode() {
        return currencyCode;
    }


    /**
     * Sets the currencyCode value for this Order.
     * 
     * @param currencyCode   * The ISO currency code for the currency used by the {@code Order}.
     * This
     *                 value is read-only and is the network's currency code.
     */
    public void setCurrencyCode(java.lang.String currencyCode) {
        this.currencyCode = currencyCode;
    }


    /**
     * Gets the advertiserId value for this Order.
     * 
     * @return advertiserId   * The unique ID of the {@link Company}, which is of type
     *                 {@link Company.Type#ADVERTISER}, to which this order
     * belongs. This
     *                 attribute is required.
     */
    public java.lang.Long getAdvertiserId() {
        return advertiserId;
    }


    /**
     * Sets the advertiserId value for this Order.
     * 
     * @param advertiserId   * The unique ID of the {@link Company}, which is of type
     *                 {@link Company.Type#ADVERTISER}, to which this order
     * belongs. This
     *                 attribute is required.
     */
    public void setAdvertiserId(java.lang.Long advertiserId) {
        this.advertiserId = advertiserId;
    }


    /**
     * Gets the advertiserContactIds value for this Order.
     * 
     * @return advertiserContactIds   * List of IDs for advertiser contacts of the order.
     */
    public long[] getAdvertiserContactIds() {
        return advertiserContactIds;
    }


    /**
     * Sets the advertiserContactIds value for this Order.
     * 
     * @param advertiserContactIds   * List of IDs for advertiser contacts of the order.
     */
    public void setAdvertiserContactIds(long[] advertiserContactIds) {
        this.advertiserContactIds = advertiserContactIds;
    }

    public long getAdvertiserContactIds(int i) {
        return this.advertiserContactIds[i];
    }

    public void setAdvertiserContactIds(int i, long _value) {
        this.advertiserContactIds[i] = _value;
    }


    /**
     * Gets the agencyId value for this Order.
     * 
     * @return agencyId   * The unique ID of the {@link Company}, which is of type
     *                 {@link Company.Type#AGENCY}, with which this order
     * is associated. This
     *                 attribute is optional.
     */
    public java.lang.Long getAgencyId() {
        return agencyId;
    }


    /**
     * Sets the agencyId value for this Order.
     * 
     * @param agencyId   * The unique ID of the {@link Company}, which is of type
     *                 {@link Company.Type#AGENCY}, with which this order
     * is associated. This
     *                 attribute is optional.
     */
    public void setAgencyId(java.lang.Long agencyId) {
        this.agencyId = agencyId;
    }


    /**
     * Gets the agencyContactIds value for this Order.
     * 
     * @return agencyContactIds   * List of IDs for agency contacts of the order.
     */
    public long[] getAgencyContactIds() {
        return agencyContactIds;
    }


    /**
     * Sets the agencyContactIds value for this Order.
     * 
     * @param agencyContactIds   * List of IDs for agency contacts of the order.
     */
    public void setAgencyContactIds(long[] agencyContactIds) {
        this.agencyContactIds = agencyContactIds;
    }

    public long getAgencyContactIds(int i) {
        return this.agencyContactIds[i];
    }

    public void setAgencyContactIds(int i, long _value) {
        this.agencyContactIds[i] = _value;
    }


    /**
     * Gets the creatorId value for this Order.
     * 
     * @return creatorId   * The unique ID of the {@link User} who created the {@code Order}
     * on behalf
     *                 of the advertiser. This value is readonly and is assigned
     * by Google.
     */
    public java.lang.Long getCreatorId() {
        return creatorId;
    }


    /**
     * Sets the creatorId value for this Order.
     * 
     * @param creatorId   * The unique ID of the {@link User} who created the {@code Order}
     * on behalf
     *                 of the advertiser. This value is readonly and is assigned
     * by Google.
     */
    public void setCreatorId(java.lang.Long creatorId) {
        this.creatorId = creatorId;
    }


    /**
     * Gets the traffickerId value for this Order.
     * 
     * @return traffickerId   * The unique ID of the {@link User} responsible for trafficking
     * the {@code
     *                 Order}. This value is required for creating an order.
     */
    public java.lang.Long getTraffickerId() {
        return traffickerId;
    }


    /**
     * Sets the traffickerId value for this Order.
     * 
     * @param traffickerId   * The unique ID of the {@link User} responsible for trafficking
     * the {@code
     *                 Order}. This value is required for creating an order.
     */
    public void setTraffickerId(java.lang.Long traffickerId) {
        this.traffickerId = traffickerId;
    }


    /**
     * Gets the secondaryTraffickerIds value for this Order.
     * 
     * @return secondaryTraffickerIds   * The IDs of the secondary traffickers associated with the order.
     * This value
     *                 is optional.
     */
    public long[] getSecondaryTraffickerIds() {
        return secondaryTraffickerIds;
    }


    /**
     * Sets the secondaryTraffickerIds value for this Order.
     * 
     * @param secondaryTraffickerIds   * The IDs of the secondary traffickers associated with the order.
     * This value
     *                 is optional.
     */
    public void setSecondaryTraffickerIds(long[] secondaryTraffickerIds) {
        this.secondaryTraffickerIds = secondaryTraffickerIds;
    }

    public long getSecondaryTraffickerIds(int i) {
        return this.secondaryTraffickerIds[i];
    }

    public void setSecondaryTraffickerIds(int i, long _value) {
        this.secondaryTraffickerIds[i] = _value;
    }


    /**
     * Gets the salespersonId value for this Order.
     * 
     * @return salespersonId   * The unique ID of the {@link User} responsible for the sales
     * of the {@code
     *                 Order}. This value is optional.
     */
    public java.lang.Long getSalespersonId() {
        return salespersonId;
    }


    /**
     * Sets the salespersonId value for this Order.
     * 
     * @param salespersonId   * The unique ID of the {@link User} responsible for the sales
     * of the {@code
     *                 Order}. This value is optional.
     */
    public void setSalespersonId(java.lang.Long salespersonId) {
        this.salespersonId = salespersonId;
    }


    /**
     * Gets the secondarySalespersonIds value for this Order.
     * 
     * @return secondarySalespersonIds   * The IDs of the secondary salespeople associated with the order.
     * This value
     *                 is optional.
     */
    public long[] getSecondarySalespersonIds() {
        return secondarySalespersonIds;
    }


    /**
     * Sets the secondarySalespersonIds value for this Order.
     * 
     * @param secondarySalespersonIds   * The IDs of the secondary salespeople associated with the order.
     * This value
     *                 is optional.
     */
    public void setSecondarySalespersonIds(long[] secondarySalespersonIds) {
        this.secondarySalespersonIds = secondarySalespersonIds;
    }

    public long getSecondarySalespersonIds(int i) {
        return this.secondarySalespersonIds[i];
    }

    public void setSecondarySalespersonIds(int i, long _value) {
        this.secondarySalespersonIds[i] = _value;
    }


    /**
     * Gets the totalImpressionsDelivered value for this Order.
     * 
     * @return totalImpressionsDelivered   * Total impressions delivered for all line items of this {@code
     * Order}. This
     *                 value is read-only and is assigned by Google.
     */
    public java.lang.Long getTotalImpressionsDelivered() {
        return totalImpressionsDelivered;
    }


    /**
     * Sets the totalImpressionsDelivered value for this Order.
     * 
     * @param totalImpressionsDelivered   * Total impressions delivered for all line items of this {@code
     * Order}. This
     *                 value is read-only and is assigned by Google.
     */
    public void setTotalImpressionsDelivered(java.lang.Long totalImpressionsDelivered) {
        this.totalImpressionsDelivered = totalImpressionsDelivered;
    }


    /**
     * Gets the totalClicksDelivered value for this Order.
     * 
     * @return totalClicksDelivered   * Total clicks delivered for all line items of this {@code Order}.
     * This value
     *                 is read-only and is assigned by Google.
     */
    public java.lang.Long getTotalClicksDelivered() {
        return totalClicksDelivered;
    }


    /**
     * Sets the totalClicksDelivered value for this Order.
     * 
     * @param totalClicksDelivered   * Total clicks delivered for all line items of this {@code Order}.
     * This value
     *                 is read-only and is assigned by Google.
     */
    public void setTotalClicksDelivered(java.lang.Long totalClicksDelivered) {
        this.totalClicksDelivered = totalClicksDelivered;
    }


    /**
     * Gets the totalViewableImpressionsDelivered value for this Order.
     * 
     * @return totalViewableImpressionsDelivered   * Total viewable impressions delivered for all line items of
     * this {@code Order}.
     *                 This value is read-only and is assigned by Google.
     */
    public java.lang.Long getTotalViewableImpressionsDelivered() {
        return totalViewableImpressionsDelivered;
    }


    /**
     * Sets the totalViewableImpressionsDelivered value for this Order.
     * 
     * @param totalViewableImpressionsDelivered   * Total viewable impressions delivered for all line items of
     * this {@code Order}.
     *                 This value is read-only and is assigned by Google.
     */
    public void setTotalViewableImpressionsDelivered(java.lang.Long totalViewableImpressionsDelivered) {
        this.totalViewableImpressionsDelivered = totalViewableImpressionsDelivered;
    }


    /**
     * Gets the totalBudget value for this Order.
     * 
     * @return totalBudget   * Total budget for all line items of this {@code Order}. This
     * value is a
     *                 readonly field assigned by Google and is calculated
     * from the associated
     *                 {@link LineItem#costPerUnit} values.
     */
    public com.google.api.ads.dfp.axis.v201605.Money getTotalBudget() {
        return totalBudget;
    }


    /**
     * Sets the totalBudget value for this Order.
     * 
     * @param totalBudget   * Total budget for all line items of this {@code Order}. This
     * value is a
     *                 readonly field assigned by Google and is calculated
     * from the associated
     *                 {@link LineItem#costPerUnit} values.
     */
    public void setTotalBudget(com.google.api.ads.dfp.axis.v201605.Money totalBudget) {
        this.totalBudget = totalBudget;
    }


    /**
     * Gets the appliedLabels value for this Order.
     * 
     * @return appliedLabels   * The set of labels applied directly to this order.
     */
    public com.google.api.ads.dfp.axis.v201605.AppliedLabel[] getAppliedLabels() {
        return appliedLabels;
    }


    /**
     * Sets the appliedLabels value for this Order.
     * 
     * @param appliedLabels   * The set of labels applied directly to this order.
     */
    public void setAppliedLabels(com.google.api.ads.dfp.axis.v201605.AppliedLabel[] appliedLabels) {
        this.appliedLabels = appliedLabels;
    }

    public com.google.api.ads.dfp.axis.v201605.AppliedLabel getAppliedLabels(int i) {
        return this.appliedLabels[i];
    }

    public void setAppliedLabels(int i, com.google.api.ads.dfp.axis.v201605.AppliedLabel _value) {
        this.appliedLabels[i] = _value;
    }


    /**
     * Gets the effectiveAppliedLabels value for this Order.
     * 
     * @return effectiveAppliedLabels   * Contains the set of labels applied directly to the order as
     * well as those
     *                 inherited from the company that owns the order. If
     * a label has been
     *                 negated, only the negated label is returned. This
     * field is readonly and is
     *                 assigned by Google.
     */
    public com.google.api.ads.dfp.axis.v201605.AppliedLabel[] getEffectiveAppliedLabels() {
        return effectiveAppliedLabels;
    }


    /**
     * Sets the effectiveAppliedLabels value for this Order.
     * 
     * @param effectiveAppliedLabels   * Contains the set of labels applied directly to the order as
     * well as those
     *                 inherited from the company that owns the order. If
     * a label has been
     *                 negated, only the negated label is returned. This
     * field is readonly and is
     *                 assigned by Google.
     */
    public void setEffectiveAppliedLabels(com.google.api.ads.dfp.axis.v201605.AppliedLabel[] effectiveAppliedLabels) {
        this.effectiveAppliedLabels = effectiveAppliedLabels;
    }

    public com.google.api.ads.dfp.axis.v201605.AppliedLabel getEffectiveAppliedLabels(int i) {
        return this.effectiveAppliedLabels[i];
    }

    public void setEffectiveAppliedLabels(int i, com.google.api.ads.dfp.axis.v201605.AppliedLabel _value) {
        this.effectiveAppliedLabels[i] = _value;
    }


    /**
     * Gets the lastModifiedByApp value for this Order.
     * 
     * @return lastModifiedByApp   * The application which modified this order. This attribute is
     * read only and
     *                 is assigned by Google.
     */
    public java.lang.String getLastModifiedByApp() {
        return lastModifiedByApp;
    }


    /**
     * Sets the lastModifiedByApp value for this Order.
     * 
     * @param lastModifiedByApp   * The application which modified this order. This attribute is
     * read only and
     *                 is assigned by Google.
     */
    public void setLastModifiedByApp(java.lang.String lastModifiedByApp) {
        this.lastModifiedByApp = lastModifiedByApp;
    }


    /**
     * Gets the isProgrammatic value for this Order.
     * 
     * @return isProgrammatic   * Specifies whether or not the {@code Order} is a programmatic
     * order. This
     *                 value is optional and defaults to false.
     */
    public java.lang.Boolean getIsProgrammatic() {
        return isProgrammatic;
    }


    /**
     * Sets the isProgrammatic value for this Order.
     * 
     * @param isProgrammatic   * Specifies whether or not the {@code Order} is a programmatic
     * order. This
     *                 value is optional and defaults to false.
     */
    public void setIsProgrammatic(java.lang.Boolean isProgrammatic) {
        this.isProgrammatic = isProgrammatic;
    }


    /**
     * Gets the programmaticSettings value for this Order.
     * 
     * @return programmaticSettings   * The programmatic settings associated with this order.
     */
    public com.google.api.ads.dfp.axis.v201605.ProgrammaticSettings getProgrammaticSettings() {
        return programmaticSettings;
    }


    /**
     * Sets the programmaticSettings value for this Order.
     * 
     * @param programmaticSettings   * The programmatic settings associated with this order.
     */
    public void setProgrammaticSettings(com.google.api.ads.dfp.axis.v201605.ProgrammaticSettings programmaticSettings) {
        this.programmaticSettings = programmaticSettings;
    }


    /**
     * Gets the appliedTeamIds value for this Order.
     * 
     * @return appliedTeamIds   * The IDs of all teams that this order is on directly.
     */
    public long[] getAppliedTeamIds() {
        return appliedTeamIds;
    }


    /**
     * Sets the appliedTeamIds value for this Order.
     * 
     * @param appliedTeamIds   * The IDs of all teams that this order is on directly.
     */
    public void setAppliedTeamIds(long[] appliedTeamIds) {
        this.appliedTeamIds = appliedTeamIds;
    }

    public long getAppliedTeamIds(int i) {
        return this.appliedTeamIds[i];
    }

    public void setAppliedTeamIds(int i, long _value) {
        this.appliedTeamIds[i] = _value;
    }


    /**
     * Gets the lastModifiedDateTime value for this Order.
     * 
     * @return lastModifiedDateTime   * The date and time this order was last modified.
     */
    public com.google.api.ads.dfp.axis.v201605.DateTime getLastModifiedDateTime() {
        return lastModifiedDateTime;
    }


    /**
     * Sets the lastModifiedDateTime value for this Order.
     * 
     * @param lastModifiedDateTime   * The date and time this order was last modified.
     */
    public void setLastModifiedDateTime(com.google.api.ads.dfp.axis.v201605.DateTime lastModifiedDateTime) {
        this.lastModifiedDateTime = lastModifiedDateTime;
    }


    /**
     * Gets the customFieldValues value for this Order.
     * 
     * @return customFieldValues   * The values of the custom fields associated with this order.
     */
    public com.google.api.ads.dfp.axis.v201605.BaseCustomFieldValue[] getCustomFieldValues() {
        return customFieldValues;
    }


    /**
     * Sets the customFieldValues value for this Order.
     * 
     * @param customFieldValues   * The values of the custom fields associated with this order.
     */
    public void setCustomFieldValues(com.google.api.ads.dfp.axis.v201605.BaseCustomFieldValue[] customFieldValues) {
        this.customFieldValues = customFieldValues;
    }

    public com.google.api.ads.dfp.axis.v201605.BaseCustomFieldValue getCustomFieldValues(int i) {
        return this.customFieldValues[i];
    }

    public void setCustomFieldValues(int i, com.google.api.ads.dfp.axis.v201605.BaseCustomFieldValue _value) {
        this.customFieldValues[i] = _value;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Order)) return false;
        Order other = (Order) 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.startDateTime==null && other.getStartDateTime()==null) || 
             (this.startDateTime!=null &&
              this.startDateTime.equals(other.getStartDateTime()))) &&
            ((this.endDateTime==null && other.getEndDateTime()==null) || 
             (this.endDateTime!=null &&
              this.endDateTime.equals(other.getEndDateTime()))) &&
            ((this.unlimitedEndDateTime==null && other.getUnlimitedEndDateTime()==null) || 
             (this.unlimitedEndDateTime!=null &&
              this.unlimitedEndDateTime.equals(other.getUnlimitedEndDateTime()))) &&
            ((this.status==null && other.getStatus()==null) || 
             (this.status!=null &&
              this.status.equals(other.getStatus()))) &&
            ((this.isArchived==null && other.getIsArchived()==null) || 
             (this.isArchived!=null &&
              this.isArchived.equals(other.getIsArchived()))) &&
            ((this.notes==null && other.getNotes()==null) || 
             (this.notes!=null &&
              this.notes.equals(other.getNotes()))) &&
            ((this.externalOrderId==null && other.getExternalOrderId()==null) || 
             (this.externalOrderId!=null &&
              this.externalOrderId.equals(other.getExternalOrderId()))) &&
            ((this.poNumber==null && other.getPoNumber()==null) || 
             (this.poNumber!=null &&
              this.poNumber.equals(other.getPoNumber()))) &&
            ((this.currencyCode==null && other.getCurrencyCode()==null) || 
             (this.currencyCode!=null &&
              this.currencyCode.equals(other.getCurrencyCode()))) &&
            ((this.advertiserId==null && other.getAdvertiserId()==null) || 
             (this.advertiserId!=null &&
              this.advertiserId.equals(other.getAdvertiserId()))) &&
            ((this.advertiserContactIds==null && other.getAdvertiserContactIds()==null) || 
             (this.advertiserContactIds!=null &&
              java.util.Arrays.equals(this.advertiserContactIds, other.getAdvertiserContactIds()))) &&
            ((this.agencyId==null && other.getAgencyId()==null) || 
             (this.agencyId!=null &&
              this.agencyId.equals(other.getAgencyId()))) &&
            ((this.agencyContactIds==null && other.getAgencyContactIds()==null) || 
             (this.agencyContactIds!=null &&
              java.util.Arrays.equals(this.agencyContactIds, other.getAgencyContactIds()))) &&
            ((this.creatorId==null && other.getCreatorId()==null) || 
             (this.creatorId!=null &&
              this.creatorId.equals(other.getCreatorId()))) &&
            ((this.traffickerId==null && other.getTraffickerId()==null) || 
             (this.traffickerId!=null &&
              this.traffickerId.equals(other.getTraffickerId()))) &&
            ((this.secondaryTraffickerIds==null && other.getSecondaryTraffickerIds()==null) || 
             (this.secondaryTraffickerIds!=null &&
              java.util.Arrays.equals(this.secondaryTraffickerIds, other.getSecondaryTraffickerIds()))) &&
            ((this.salespersonId==null && other.getSalespersonId()==null) || 
             (this.salespersonId!=null &&
              this.salespersonId.equals(other.getSalespersonId()))) &&
            ((this.secondarySalespersonIds==null && other.getSecondarySalespersonIds()==null) || 
             (this.secondarySalespersonIds!=null &&
              java.util.Arrays.equals(this.secondarySalespersonIds, other.getSecondarySalespersonIds()))) &&
            ((this.totalImpressionsDelivered==null && other.getTotalImpressionsDelivered()==null) || 
             (this.totalImpressionsDelivered!=null &&
              this.totalImpressionsDelivered.equals(other.getTotalImpressionsDelivered()))) &&
            ((this.totalClicksDelivered==null && other.getTotalClicksDelivered()==null) || 
             (this.totalClicksDelivered!=null &&
              this.totalClicksDelivered.equals(other.getTotalClicksDelivered()))) &&
            ((this.totalViewableImpressionsDelivered==null && other.getTotalViewableImpressionsDelivered()==null) || 
             (this.totalViewableImpressionsDelivered!=null &&
              this.totalViewableImpressionsDelivered.equals(other.getTotalViewableImpressionsDelivered()))) &&
            ((this.totalBudget==null && other.getTotalBudget()==null) || 
             (this.totalBudget!=null &&
              this.totalBudget.equals(other.getTotalBudget()))) &&
            ((this.appliedLabels==null && other.getAppliedLabels()==null) || 
             (this.appliedLabels!=null &&
              java.util.Arrays.equals(this.appliedLabels, other.getAppliedLabels()))) &&
            ((this.effectiveAppliedLabels==null && other.getEffectiveAppliedLabels()==null) || 
             (this.effectiveAppliedLabels!=null &&
              java.util.Arrays.equals(this.effectiveAppliedLabels, other.getEffectiveAppliedLabels()))) &&
            ((this.lastModifiedByApp==null && other.getLastModifiedByApp()==null) || 
             (this.lastModifiedByApp!=null &&
              this.lastModifiedByApp.equals(other.getLastModifiedByApp()))) &&
            ((this.isProgrammatic==null && other.getIsProgrammatic()==null) || 
             (this.isProgrammatic!=null &&
              this.isProgrammatic.equals(other.getIsProgrammatic()))) &&
            ((this.programmaticSettings==null && other.getProgrammaticSettings()==null) || 
             (this.programmaticSettings!=null &&
              this.programmaticSettings.equals(other.getProgrammaticSettings()))) &&
            ((this.appliedTeamIds==null && other.getAppliedTeamIds()==null) || 
             (this.appliedTeamIds!=null &&
              java.util.Arrays.equals(this.appliedTeamIds, other.getAppliedTeamIds()))) &&
            ((this.lastModifiedDateTime==null && other.getLastModifiedDateTime()==null) || 
             (this.lastModifiedDateTime!=null &&
              this.lastModifiedDateTime.equals(other.getLastModifiedDateTime()))) &&
            ((this.customFieldValues==null && other.getCustomFieldValues()==null) || 
             (this.customFieldValues!=null &&
              java.util.Arrays.equals(this.customFieldValues, other.getCustomFieldValues())));
        __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 (getStartDateTime() != null) {
            _hashCode += getStartDateTime().hashCode();
        }
        if (getEndDateTime() != null) {
            _hashCode += getEndDateTime().hashCode();
        }
        if (getUnlimitedEndDateTime() != null) {
            _hashCode += getUnlimitedEndDateTime().hashCode();
        }
        if (getStatus() != null) {
            _hashCode += getStatus().hashCode();
        }
        if (getIsArchived() != null) {
            _hashCode += getIsArchived().hashCode();
        }
        if (getNotes() != null) {
            _hashCode += getNotes().hashCode();
        }
        if (getExternalOrderId() != null) {
            _hashCode += getExternalOrderId().hashCode();
        }
        if (getPoNumber() != null) {
            _hashCode += getPoNumber().hashCode();
        }
        if (getCurrencyCode() != null) {
            _hashCode += getCurrencyCode().hashCode();
        }
        if (getAdvertiserId() != null) {
            _hashCode += getAdvertiserId().hashCode();
        }
        if (getAdvertiserContactIds() != null) {
            for (int i=0;
                 i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy