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

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

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


/**
 * The {@code ResultSet} represents a table of data obtained from
 * the execution of a PQL {@link
 *             Statement}.
 */
public class ResultSet  implements java.io.Serializable {
    /* A collection of {@link ColumnType} objects. */
    private com.google.api.ads.dfp.axis.v201508.ColumnType[] columnTypes;

    /* A collection of {@link Row} objects. */
    private com.google.api.ads.dfp.axis.v201508.Row[] rows;

    public ResultSet() {
    }

    public ResultSet(
           com.google.api.ads.dfp.axis.v201508.ColumnType[] columnTypes,
           com.google.api.ads.dfp.axis.v201508.Row[] rows) {
           this.columnTypes = columnTypes;
           this.rows = rows;
    }


    /**
     * Gets the columnTypes value for this ResultSet.
     * 
     * @return columnTypes   * A collection of {@link ColumnType} objects.
     */
    public com.google.api.ads.dfp.axis.v201508.ColumnType[] getColumnTypes() {
        return columnTypes;
    }


    /**
     * Sets the columnTypes value for this ResultSet.
     * 
     * @param columnTypes   * A collection of {@link ColumnType} objects.
     */
    public void setColumnTypes(com.google.api.ads.dfp.axis.v201508.ColumnType[] columnTypes) {
        this.columnTypes = columnTypes;
    }

    public com.google.api.ads.dfp.axis.v201508.ColumnType getColumnTypes(int i) {
        return this.columnTypes[i];
    }

    public void setColumnTypes(int i, com.google.api.ads.dfp.axis.v201508.ColumnType _value) {
        this.columnTypes[i] = _value;
    }


    /**
     * Gets the rows value for this ResultSet.
     * 
     * @return rows   * A collection of {@link Row} objects.
     */
    public com.google.api.ads.dfp.axis.v201508.Row[] getRows() {
        return rows;
    }


    /**
     * Sets the rows value for this ResultSet.
     * 
     * @param rows   * A collection of {@link Row} objects.
     */
    public void setRows(com.google.api.ads.dfp.axis.v201508.Row[] rows) {
        this.rows = rows;
    }

    public com.google.api.ads.dfp.axis.v201508.Row getRows(int i) {
        return this.rows[i];
    }

    public void setRows(int i, com.google.api.ads.dfp.axis.v201508.Row _value) {
        this.rows[i] = _value;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof ResultSet)) return false;
        ResultSet other = (ResultSet) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.columnTypes==null && other.getColumnTypes()==null) || 
             (this.columnTypes!=null &&
              java.util.Arrays.equals(this.columnTypes, other.getColumnTypes()))) &&
            ((this.rows==null && other.getRows()==null) || 
             (this.rows!=null &&
              java.util.Arrays.equals(this.rows, other.getRows())));
        __equalsCalc = null;
        return _equals;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy