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

com.google.api.ads.admanager.axis.v202308.AudienceSegment Maven / Gradle / Ivy

// 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.

/**
 * AudienceSegment.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.v202308;


/**
 * An {@link AudienceSegment} represents audience segment object.
 */
public class AudienceSegment  implements java.io.Serializable {
    /* Id of the {@link AudienceSegment}. This attribute is readonly
     * and is populated by Google. */
    private java.lang.Long id;

    /* Name of the {@link AudienceSegment}. This attribute is required
     * and has a maximum length of 255
     *                 characters. */
    private java.lang.String name;

    /* The ids of the categories this segment belongs to. This field
     * is optional, it may be empty. */
    private long[] categoryIds;

    /* Description of the {@link AudienceSegment}. This attribute
     * is optional and has a maximum length
     *                 of 8192 characters. */
    private java.lang.String description;

    /* Status of the {@link AudienceSegment}. This controls whether
     * the given segment is available for
     *                 targeting or not. During creation this attribute is
     * optional and defaults to {@code ACTIVE}.
     *                 This attribute is readonly for updates. */
    private com.google.api.ads.admanager.axis.v202308.AudienceSegmentStatus status;

    /* Number of unique identifiers in the {@link AudienceSegment}.
     * This attribute is readonly and is
     *                 populated by Google. */
    private java.lang.Long size;

    /* Number of unique identifiers in the {@link AudienceSegment}
     * for mobile web.
     *                 This attribute is read-only. */
    private java.lang.Long mobileWebSize;

    /* Number of unique IDFA identifiers in the {@link AudienceSegment}.
     * This attribute is read-only. */
    private java.lang.Long idfaSize;

    /* Number of unique AdID identifiers in the {@link AudienceSegment}.
     * This attribute is read-only. */
    private java.lang.Long adIdSize;

    /* Number of unique PPID (publisher provided identifiers) in the
     * {@link AudienceSegment}.
     *                 This attribute is read-only. */
    private java.lang.Long ppidSize;

    /* Owner data provider of this segment. This attribute is readonly
     * and is assigned by Google. */
    private com.google.api.ads.admanager.axis.v202308.AudienceSegmentDataProvider dataProvider;

    /* Type of the segment. This attribute is readonly and is assigned
     * by Google. */
    private com.google.api.ads.admanager.axis.v202308.AudienceSegmentType type;

    public AudienceSegment() {
    }

    public AudienceSegment(
           java.lang.Long id,
           java.lang.String name,
           long[] categoryIds,
           java.lang.String description,
           com.google.api.ads.admanager.axis.v202308.AudienceSegmentStatus status,
           java.lang.Long size,
           java.lang.Long mobileWebSize,
           java.lang.Long idfaSize,
           java.lang.Long adIdSize,
           java.lang.Long ppidSize,
           com.google.api.ads.admanager.axis.v202308.AudienceSegmentDataProvider dataProvider,
           com.google.api.ads.admanager.axis.v202308.AudienceSegmentType type) {
           this.id = id;
           this.name = name;
           this.categoryIds = categoryIds;
           this.description = description;
           this.status = status;
           this.size = size;
           this.mobileWebSize = mobileWebSize;
           this.idfaSize = idfaSize;
           this.adIdSize = adIdSize;
           this.ppidSize = ppidSize;
           this.dataProvider = dataProvider;
           this.type = type;
    }

    @Override
    public String toString() {
        return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
            .omitNullValues()
            .add("adIdSize", getAdIdSize())
            .add("categoryIds", getCategoryIds())
            .add("dataProvider", getDataProvider())
            .add("description", getDescription())
            .add("id", getId())
            .add("idfaSize", getIdfaSize())
            .add("mobileWebSize", getMobileWebSize())
            .add("name", getName())
            .add("ppidSize", getPpidSize())
            .add("size", getSize())
            .add("status", getStatus())
            .add("type", getType())
            .toString();
    }

    /**
     * Gets the id value for this AudienceSegment.
     * 
     * @return id   * Id of the {@link AudienceSegment}. This attribute is readonly
     * and is populated by Google.
     */
    public java.lang.Long getId() {
        return id;
    }


    /**
     * Sets the id value for this AudienceSegment.
     * 
     * @param id   * Id of the {@link AudienceSegment}. This attribute is readonly
     * and is populated by Google.
     */
    public void setId(java.lang.Long id) {
        this.id = id;
    }


    /**
     * Gets the name value for this AudienceSegment.
     * 
     * @return name   * Name of the {@link AudienceSegment}. This attribute is required
     * and has a maximum length of 255
     *                 characters.
     */
    public java.lang.String getName() {
        return name;
    }


    /**
     * Sets the name value for this AudienceSegment.
     * 
     * @param name   * Name of the {@link AudienceSegment}. This attribute is required
     * and has a maximum length of 255
     *                 characters.
     */
    public void setName(java.lang.String name) {
        this.name = name;
    }


    /**
     * Gets the categoryIds value for this AudienceSegment.
     * 
     * @return categoryIds   * The ids of the categories this segment belongs to. This field
     * is optional, it may be empty.
     */
    public long[] getCategoryIds() {
        return categoryIds;
    }


    /**
     * Sets the categoryIds value for this AudienceSegment.
     * 
     * @param categoryIds   * The ids of the categories this segment belongs to. This field
     * is optional, it may be empty.
     */
    public void setCategoryIds(long[] categoryIds) {
        this.categoryIds = categoryIds;
    }

    public long getCategoryIds(int i) {
        return this.categoryIds[i];
    }

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


    /**
     * Gets the description value for this AudienceSegment.
     * 
     * @return description   * Description of the {@link AudienceSegment}. This attribute
     * is optional and has a maximum length
     *                 of 8192 characters.
     */
    public java.lang.String getDescription() {
        return description;
    }


    /**
     * Sets the description value for this AudienceSegment.
     * 
     * @param description   * Description of the {@link AudienceSegment}. This attribute
     * is optional and has a maximum length
     *                 of 8192 characters.
     */
    public void setDescription(java.lang.String description) {
        this.description = description;
    }


    /**
     * Gets the status value for this AudienceSegment.
     * 
     * @return status   * Status of the {@link AudienceSegment}. This controls whether
     * the given segment is available for
     *                 targeting or not. During creation this attribute is
     * optional and defaults to {@code ACTIVE}.
     *                 This attribute is readonly for updates.
     */
    public com.google.api.ads.admanager.axis.v202308.AudienceSegmentStatus getStatus() {
        return status;
    }


    /**
     * Sets the status value for this AudienceSegment.
     * 
     * @param status   * Status of the {@link AudienceSegment}. This controls whether
     * the given segment is available for
     *                 targeting or not. During creation this attribute is
     * optional and defaults to {@code ACTIVE}.
     *                 This attribute is readonly for updates.
     */
    public void setStatus(com.google.api.ads.admanager.axis.v202308.AudienceSegmentStatus status) {
        this.status = status;
    }


    /**
     * Gets the size value for this AudienceSegment.
     * 
     * @return size   * Number of unique identifiers in the {@link AudienceSegment}.
     * This attribute is readonly and is
     *                 populated by Google.
     */
    public java.lang.Long getSize() {
        return size;
    }


    /**
     * Sets the size value for this AudienceSegment.
     * 
     * @param size   * Number of unique identifiers in the {@link AudienceSegment}.
     * This attribute is readonly and is
     *                 populated by Google.
     */
    public void setSize(java.lang.Long size) {
        this.size = size;
    }


    /**
     * Gets the mobileWebSize value for this AudienceSegment.
     * 
     * @return mobileWebSize   * Number of unique identifiers in the {@link AudienceSegment}
     * for mobile web.
     *                 This attribute is read-only.
     */
    public java.lang.Long getMobileWebSize() {
        return mobileWebSize;
    }


    /**
     * Sets the mobileWebSize value for this AudienceSegment.
     * 
     * @param mobileWebSize   * Number of unique identifiers in the {@link AudienceSegment}
     * for mobile web.
     *                 This attribute is read-only.
     */
    public void setMobileWebSize(java.lang.Long mobileWebSize) {
        this.mobileWebSize = mobileWebSize;
    }


    /**
     * Gets the idfaSize value for this AudienceSegment.
     * 
     * @return idfaSize   * Number of unique IDFA identifiers in the {@link AudienceSegment}.
     * This attribute is read-only.
     */
    public java.lang.Long getIdfaSize() {
        return idfaSize;
    }


    /**
     * Sets the idfaSize value for this AudienceSegment.
     * 
     * @param idfaSize   * Number of unique IDFA identifiers in the {@link AudienceSegment}.
     * This attribute is read-only.
     */
    public void setIdfaSize(java.lang.Long idfaSize) {
        this.idfaSize = idfaSize;
    }


    /**
     * Gets the adIdSize value for this AudienceSegment.
     * 
     * @return adIdSize   * Number of unique AdID identifiers in the {@link AudienceSegment}.
     * This attribute is read-only.
     */
    public java.lang.Long getAdIdSize() {
        return adIdSize;
    }


    /**
     * Sets the adIdSize value for this AudienceSegment.
     * 
     * @param adIdSize   * Number of unique AdID identifiers in the {@link AudienceSegment}.
     * This attribute is read-only.
     */
    public void setAdIdSize(java.lang.Long adIdSize) {
        this.adIdSize = adIdSize;
    }


    /**
     * Gets the ppidSize value for this AudienceSegment.
     * 
     * @return ppidSize   * Number of unique PPID (publisher provided identifiers) in the
     * {@link AudienceSegment}.
     *                 This attribute is read-only.
     */
    public java.lang.Long getPpidSize() {
        return ppidSize;
    }


    /**
     * Sets the ppidSize value for this AudienceSegment.
     * 
     * @param ppidSize   * Number of unique PPID (publisher provided identifiers) in the
     * {@link AudienceSegment}.
     *                 This attribute is read-only.
     */
    public void setPpidSize(java.lang.Long ppidSize) {
        this.ppidSize = ppidSize;
    }


    /**
     * Gets the dataProvider value for this AudienceSegment.
     * 
     * @return dataProvider   * Owner data provider of this segment. This attribute is readonly
     * and is assigned by Google.
     */
    public com.google.api.ads.admanager.axis.v202308.AudienceSegmentDataProvider getDataProvider() {
        return dataProvider;
    }


    /**
     * Sets the dataProvider value for this AudienceSegment.
     * 
     * @param dataProvider   * Owner data provider of this segment. This attribute is readonly
     * and is assigned by Google.
     */
    public void setDataProvider(com.google.api.ads.admanager.axis.v202308.AudienceSegmentDataProvider dataProvider) {
        this.dataProvider = dataProvider;
    }


    /**
     * Gets the type value for this AudienceSegment.
     * 
     * @return type   * Type of the segment. This attribute is readonly and is assigned
     * by Google.
     */
    public com.google.api.ads.admanager.axis.v202308.AudienceSegmentType getType() {
        return type;
    }


    /**
     * Sets the type value for this AudienceSegment.
     * 
     * @param type   * Type of the segment. This attribute is readonly and is assigned
     * by Google.
     */
    public void setType(com.google.api.ads.admanager.axis.v202308.AudienceSegmentType type) {
        this.type = type;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof AudienceSegment)) return false;
        AudienceSegment other = (AudienceSegment) 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.categoryIds==null && other.getCategoryIds()==null) || 
             (this.categoryIds!=null &&
              java.util.Arrays.equals(this.categoryIds, other.getCategoryIds()))) &&
            ((this.description==null && other.getDescription()==null) || 
             (this.description!=null &&
              this.description.equals(other.getDescription()))) &&
            ((this.status==null && other.getStatus()==null) || 
             (this.status!=null &&
              this.status.equals(other.getStatus()))) &&
            ((this.size==null && other.getSize()==null) || 
             (this.size!=null &&
              this.size.equals(other.getSize()))) &&
            ((this.mobileWebSize==null && other.getMobileWebSize()==null) || 
             (this.mobileWebSize!=null &&
              this.mobileWebSize.equals(other.getMobileWebSize()))) &&
            ((this.idfaSize==null && other.getIdfaSize()==null) || 
             (this.idfaSize!=null &&
              this.idfaSize.equals(other.getIdfaSize()))) &&
            ((this.adIdSize==null && other.getAdIdSize()==null) || 
             (this.adIdSize!=null &&
              this.adIdSize.equals(other.getAdIdSize()))) &&
            ((this.ppidSize==null && other.getPpidSize()==null) || 
             (this.ppidSize!=null &&
              this.ppidSize.equals(other.getPpidSize()))) &&
            ((this.dataProvider==null && other.getDataProvider()==null) || 
             (this.dataProvider!=null &&
              this.dataProvider.equals(other.getDataProvider()))) &&
            ((this.type==null && other.getType()==null) || 
             (this.type!=null &&
              this.type.equals(other.getType())));
        __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 (getCategoryIds() != null) {
            for (int i=0;
                 i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy