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

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

There is a newer version: 5.8.0
Show newest version
/**
 * DropDownCustomField.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 custom field that has the drop-down data type.
 */
public class DropDownCustomField  extends com.google.api.ads.dfp.axis.v201605.CustomField  implements java.io.Serializable {
    /* The options allowed for this custom field. This is read only. */
    private com.google.api.ads.dfp.axis.v201605.CustomFieldOption[] options;

    public DropDownCustomField() {
    }

    public DropDownCustomField(
           java.lang.Long id,
           java.lang.String name,
           java.lang.String description,
           java.lang.Boolean isActive,
           com.google.api.ads.dfp.axis.v201605.CustomFieldEntityType entityType,
           com.google.api.ads.dfp.axis.v201605.CustomFieldDataType dataType,
           com.google.api.ads.dfp.axis.v201605.CustomFieldVisibility visibility,
           com.google.api.ads.dfp.axis.v201605.CustomFieldOption[] options) {
        super(
            id,
            name,
            description,
            isActive,
            entityType,
            dataType,
            visibility);
        this.options = options;
    }


    /**
     * Gets the options value for this DropDownCustomField.
     * 
     * @return options   * The options allowed for this custom field. This is read only.
     */
    public com.google.api.ads.dfp.axis.v201605.CustomFieldOption[] getOptions() {
        return options;
    }


    /**
     * Sets the options value for this DropDownCustomField.
     * 
     * @param options   * The options allowed for this custom field. This is read only.
     */
    public void setOptions(com.google.api.ads.dfp.axis.v201605.CustomFieldOption[] options) {
        this.options = options;
    }

    public com.google.api.ads.dfp.axis.v201605.CustomFieldOption getOptions(int i) {
        return this.options[i];
    }

    public void setOptions(int i, com.google.api.ads.dfp.axis.v201605.CustomFieldOption _value) {
        this.options[i] = _value;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof DropDownCustomField)) return false;
        DropDownCustomField other = (DropDownCustomField) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = super.equals(obj) && 
            ((this.options==null && other.getOptions()==null) || 
             (this.options!=null &&
              java.util.Arrays.equals(this.options, other.getOptions())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = super.hashCode();
        if (getOptions() != null) {
            for (int i=0;
                 i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy