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

com.google.api.ads.admanager.axis.v202402.SegmentPopulationRequest Maven / Gradle / Ivy

There is a newer version: 5.6.0
Show newest version
// Copyright 2024 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.

/**
 * SegmentPopulationRequest.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.v202402;

public class SegmentPopulationRequest  implements java.io.Serializable {
    private java.lang.Long batchUploadId;

    private java.lang.Long segmentId;

    private java.lang.Boolean isDeletion;

    private com.google.api.ads.admanager.axis.v202402.IdentifierType identifierType;

    private java.lang.String[] ids;

    private com.google.api.ads.admanager.axis.v202402.ConsentType consentType;

    public SegmentPopulationRequest() {
    }

    public SegmentPopulationRequest(
           java.lang.Long batchUploadId,
           java.lang.Long segmentId,
           java.lang.Boolean isDeletion,
           com.google.api.ads.admanager.axis.v202402.IdentifierType identifierType,
           java.lang.String[] ids,
           com.google.api.ads.admanager.axis.v202402.ConsentType consentType) {
           this.batchUploadId = batchUploadId;
           this.segmentId = segmentId;
           this.isDeletion = isDeletion;
           this.identifierType = identifierType;
           this.ids = ids;
           this.consentType = consentType;
    }

    @Override
    public String toString() {
        return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
            .omitNullValues()
            .add("batchUploadId", getBatchUploadId())
            .add("consentType", getConsentType())
            .add("identifierType", getIdentifierType())
            .add("ids", getIds())
            .add("isDeletion", getIsDeletion())
            .add("segmentId", getSegmentId())
            .toString();
    }

    /**
     * Gets the batchUploadId value for this SegmentPopulationRequest.
     * 
     * @return batchUploadId
     */
    public java.lang.Long getBatchUploadId() {
        return batchUploadId;
    }


    /**
     * Sets the batchUploadId value for this SegmentPopulationRequest.
     * 
     * @param batchUploadId
     */
    public void setBatchUploadId(java.lang.Long batchUploadId) {
        this.batchUploadId = batchUploadId;
    }


    /**
     * Gets the segmentId value for this SegmentPopulationRequest.
     * 
     * @return segmentId
     */
    public java.lang.Long getSegmentId() {
        return segmentId;
    }


    /**
     * Sets the segmentId value for this SegmentPopulationRequest.
     * 
     * @param segmentId
     */
    public void setSegmentId(java.lang.Long segmentId) {
        this.segmentId = segmentId;
    }


    /**
     * Gets the isDeletion value for this SegmentPopulationRequest.
     * 
     * @return isDeletion
     */
    public java.lang.Boolean getIsDeletion() {
        return isDeletion;
    }


    /**
     * Sets the isDeletion value for this SegmentPopulationRequest.
     * 
     * @param isDeletion
     */
    public void setIsDeletion(java.lang.Boolean isDeletion) {
        this.isDeletion = isDeletion;
    }


    /**
     * Gets the identifierType value for this SegmentPopulationRequest.
     * 
     * @return identifierType
     */
    public com.google.api.ads.admanager.axis.v202402.IdentifierType getIdentifierType() {
        return identifierType;
    }


    /**
     * Sets the identifierType value for this SegmentPopulationRequest.
     * 
     * @param identifierType
     */
    public void setIdentifierType(com.google.api.ads.admanager.axis.v202402.IdentifierType identifierType) {
        this.identifierType = identifierType;
    }


    /**
     * Gets the ids value for this SegmentPopulationRequest.
     * 
     * @return ids
     */
    public java.lang.String[] getIds() {
        return ids;
    }


    /**
     * Sets the ids value for this SegmentPopulationRequest.
     * 
     * @param ids
     */
    public void setIds(java.lang.String[] ids) {
        this.ids = ids;
    }

    public java.lang.String getIds(int i) {
        return this.ids[i];
    }

    public void setIds(int i, java.lang.String _value) {
        this.ids[i] = _value;
    }


    /**
     * Gets the consentType value for this SegmentPopulationRequest.
     * 
     * @return consentType
     */
    public com.google.api.ads.admanager.axis.v202402.ConsentType getConsentType() {
        return consentType;
    }


    /**
     * Sets the consentType value for this SegmentPopulationRequest.
     * 
     * @param consentType
     */
    public void setConsentType(com.google.api.ads.admanager.axis.v202402.ConsentType consentType) {
        this.consentType = consentType;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof SegmentPopulationRequest)) return false;
        SegmentPopulationRequest other = (SegmentPopulationRequest) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.batchUploadId==null && other.getBatchUploadId()==null) || 
             (this.batchUploadId!=null &&
              this.batchUploadId.equals(other.getBatchUploadId()))) &&
            ((this.segmentId==null && other.getSegmentId()==null) || 
             (this.segmentId!=null &&
              this.segmentId.equals(other.getSegmentId()))) &&
            ((this.isDeletion==null && other.getIsDeletion()==null) || 
             (this.isDeletion!=null &&
              this.isDeletion.equals(other.getIsDeletion()))) &&
            ((this.identifierType==null && other.getIdentifierType()==null) || 
             (this.identifierType!=null &&
              this.identifierType.equals(other.getIdentifierType()))) &&
            ((this.ids==null && other.getIds()==null) || 
             (this.ids!=null &&
              java.util.Arrays.equals(this.ids, other.getIds()))) &&
            ((this.consentType==null && other.getConsentType()==null) || 
             (this.consentType!=null &&
              this.consentType.equals(other.getConsentType())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getBatchUploadId() != null) {
            _hashCode += getBatchUploadId().hashCode();
        }
        if (getSegmentId() != null) {
            _hashCode += getSegmentId().hashCode();
        }
        if (getIsDeletion() != null) {
            _hashCode += getIsDeletion().hashCode();
        }
        if (getIdentifierType() != null) {
            _hashCode += getIdentifierType().hashCode();
        }
        if (getIds() != null) {
            for (int i=0;
                 i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy