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

com.google.api.ads.admanager.axis.v202311.AdResponse 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.

/**
 * AdResponse.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.v202311;

public class AdResponse  implements java.io.Serializable {
    private java.lang.String requestUrl;

    private java.lang.Boolean isVmapRequest;

    private java.lang.String responseBody;

    private com.google.api.ads.admanager.axis.v202311.AdResponse[] redirectResponses;

    private com.google.api.ads.admanager.axis.v202311.SamError samError;

    private com.google.api.ads.admanager.axis.v202311.SamError[] adErrors;

    public AdResponse() {
    }

    public AdResponse(
           java.lang.String requestUrl,
           java.lang.Boolean isVmapRequest,
           java.lang.String responseBody,
           com.google.api.ads.admanager.axis.v202311.AdResponse[] redirectResponses,
           com.google.api.ads.admanager.axis.v202311.SamError samError,
           com.google.api.ads.admanager.axis.v202311.SamError[] adErrors) {
           this.requestUrl = requestUrl;
           this.isVmapRequest = isVmapRequest;
           this.responseBody = responseBody;
           this.redirectResponses = redirectResponses;
           this.samError = samError;
           this.adErrors = adErrors;
    }

    @Override
    public String toString() {
        return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
            .omitNullValues()
            .add("adErrors", getAdErrors())
            .add("isVmapRequest", getIsVmapRequest())
            .add("redirectResponses", getRedirectResponses())
            .add("requestUrl", getRequestUrl())
            .add("responseBody", getResponseBody())
            .add("samError", getSamError())
            .toString();
    }

    /**
     * Gets the requestUrl value for this AdResponse.
     * 
     * @return requestUrl
     */
    public java.lang.String getRequestUrl() {
        return requestUrl;
    }


    /**
     * Sets the requestUrl value for this AdResponse.
     * 
     * @param requestUrl
     */
    public void setRequestUrl(java.lang.String requestUrl) {
        this.requestUrl = requestUrl;
    }


    /**
     * Gets the isVmapRequest value for this AdResponse.
     * 
     * @return isVmapRequest
     */
    public java.lang.Boolean getIsVmapRequest() {
        return isVmapRequest;
    }


    /**
     * Sets the isVmapRequest value for this AdResponse.
     * 
     * @param isVmapRequest
     */
    public void setIsVmapRequest(java.lang.Boolean isVmapRequest) {
        this.isVmapRequest = isVmapRequest;
    }


    /**
     * Gets the responseBody value for this AdResponse.
     * 
     * @return responseBody
     */
    public java.lang.String getResponseBody() {
        return responseBody;
    }


    /**
     * Sets the responseBody value for this AdResponse.
     * 
     * @param responseBody
     */
    public void setResponseBody(java.lang.String responseBody) {
        this.responseBody = responseBody;
    }


    /**
     * Gets the redirectResponses value for this AdResponse.
     * 
     * @return redirectResponses
     */
    public com.google.api.ads.admanager.axis.v202311.AdResponse[] getRedirectResponses() {
        return redirectResponses;
    }


    /**
     * Sets the redirectResponses value for this AdResponse.
     * 
     * @param redirectResponses
     */
    public void setRedirectResponses(com.google.api.ads.admanager.axis.v202311.AdResponse[] redirectResponses) {
        this.redirectResponses = redirectResponses;
    }

    public com.google.api.ads.admanager.axis.v202311.AdResponse getRedirectResponses(int i) {
        return this.redirectResponses[i];
    }

    public void setRedirectResponses(int i, com.google.api.ads.admanager.axis.v202311.AdResponse _value) {
        this.redirectResponses[i] = _value;
    }


    /**
     * Gets the samError value for this AdResponse.
     * 
     * @return samError
     */
    public com.google.api.ads.admanager.axis.v202311.SamError getSamError() {
        return samError;
    }


    /**
     * Sets the samError value for this AdResponse.
     * 
     * @param samError
     */
    public void setSamError(com.google.api.ads.admanager.axis.v202311.SamError samError) {
        this.samError = samError;
    }


    /**
     * Gets the adErrors value for this AdResponse.
     * 
     * @return adErrors
     */
    public com.google.api.ads.admanager.axis.v202311.SamError[] getAdErrors() {
        return adErrors;
    }


    /**
     * Sets the adErrors value for this AdResponse.
     * 
     * @param adErrors
     */
    public void setAdErrors(com.google.api.ads.admanager.axis.v202311.SamError[] adErrors) {
        this.adErrors = adErrors;
    }

    public com.google.api.ads.admanager.axis.v202311.SamError getAdErrors(int i) {
        return this.adErrors[i];
    }

    public void setAdErrors(int i, com.google.api.ads.admanager.axis.v202311.SamError _value) {
        this.adErrors[i] = _value;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof AdResponse)) return false;
        AdResponse other = (AdResponse) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.requestUrl==null && other.getRequestUrl()==null) || 
             (this.requestUrl!=null &&
              this.requestUrl.equals(other.getRequestUrl()))) &&
            ((this.isVmapRequest==null && other.getIsVmapRequest()==null) || 
             (this.isVmapRequest!=null &&
              this.isVmapRequest.equals(other.getIsVmapRequest()))) &&
            ((this.responseBody==null && other.getResponseBody()==null) || 
             (this.responseBody!=null &&
              this.responseBody.equals(other.getResponseBody()))) &&
            ((this.redirectResponses==null && other.getRedirectResponses()==null) || 
             (this.redirectResponses!=null &&
              java.util.Arrays.equals(this.redirectResponses, other.getRedirectResponses()))) &&
            ((this.samError==null && other.getSamError()==null) || 
             (this.samError!=null &&
              this.samError.equals(other.getSamError()))) &&
            ((this.adErrors==null && other.getAdErrors()==null) || 
             (this.adErrors!=null &&
              java.util.Arrays.equals(this.adErrors, other.getAdErrors())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getRequestUrl() != null) {
            _hashCode += getRequestUrl().hashCode();
        }
        if (getIsVmapRequest() != null) {
            _hashCode += getIsVmapRequest().hashCode();
        }
        if (getResponseBody() != null) {
            _hashCode += getResponseBody().hashCode();
        }
        if (getRedirectResponses() != null) {
            for (int i=0;
                 i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy