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

/**
 * Content.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.v202208;


/**
 * A {@code Content} represents video metadata from a publisher's
 * Content Management System (CMS)
 *             that has been synced to Ad Manager.
 *             
 *             <p>Video line items can be targeted to {@code Content}
 * to indicate what ads should match when the
 *             {@code Content} is being played.
 */
public class Content  implements java.io.Serializable {
    /* Uniquely identifies the {@code Content}. This attribute is
     * read-only and is assigned by Google
     *                 when the content is created. */
    private java.lang.Long id;

    /* The name of the {@code Content}. This attribute is read-only. */
    private java.lang.String name;

    /* The status of this {@code Content}. This attribute is read-only. */
    private com.google.api.ads.admanager.axis.v202208.ContentStatus status;

    /* Whether the content status was defined by the user, or by the
     * source CMS from which the content
     *                 was ingested. This attribute is read-only. */
    private com.google.api.ads.admanager.axis.v202208.ContentStatusDefinedBy statusDefinedBy;

    /* The current DAI ingest status of the HLS media for the {@code
     * content}. This attribute is
     *                 read-only and is null if the content is not eligible
     * for dynamic ad insertion or if the content
     *                 does not have HLS media. */
    private com.google.api.ads.admanager.axis.v202208.DaiIngestStatus hlsIngestStatus;

    /* The list of any errors that occurred during the most recent
     * DAI ingestion process of the HLS
     *                 media. This attribute is read-only and will be null
     * if the {@link #hlsIngestStatus} is {@link
     *                 DaiIngestStatus#STATUS_SUCCESS} or if the content
     * is not eligible for dynamic ad insertion or
     *                 if the content does not have HLS media. */
    private com.google.api.ads.admanager.axis.v202208.DaiIngestError[] hlsIngestErrors;

    /* The date and time at which this content's HLS media was last
     * ingested for DAI. This attribute
     *                 is read-only and will be null if the content is not
     * eligible for dynamic ad insertion or if the
     *                 content does not have HLS media. */
    private com.google.api.ads.admanager.axis.v202208.DateTime lastHlsIngestDateTime;

    /* The current DAI ingest status of the DASH media for the {@code
     * content}. This attribute is
     *                 read-only and is null if the content is not eligible
     * for dynamic ad insertion or if the content
     *                 does not have DASH media. */
    private com.google.api.ads.admanager.axis.v202208.DaiIngestStatus dashIngestStatus;

    /* The list of any errors that occurred during the most recent
     * DAI ingestion process of the DASH
     *                 media. This attribute is read-only and will be null
     * if the {@link #hlsIngestStatus} is {@link
     *                 DaiIngestStatus#STATUS_SUCCESS} or if the content
     * is not eligible for dynamic ad insertion or
     *                 if the content does not have DASH media. */
    private com.google.api.ads.admanager.axis.v202208.DaiIngestError[] dashIngestErrors;

    /* The date and time at which this content's DASH media was last
     * ingested for DAI. This attribute
     *                 is read-only and will be null if the content is not
     * eligible for dynamic ad insertion or if the
     *                 content does not have DASH media. */
    private com.google.api.ads.admanager.axis.v202208.DateTime lastDashIngestDateTime;

    /* The date and time at which this content was published. This
     * attribute is read-only. */
    private com.google.api.ads.admanager.axis.v202208.DateTime importDateTime;

    /* The date and time at which this content was last modified.
     * The last modified date time will
     *                 always be updated when a {@link ContentBundle} association
     * is changed, but will not always be
     *                 updated when a {@link CmsMetadataValue} value is changed.
     * This attribute is read-only. */
    private com.google.api.ads.admanager.axis.v202208.DateTime lastModifiedDateTime;

    /* Information about the content from the CMS it was ingested
     * from. This attribute is read-only. */
    private com.google.api.ads.admanager.axis.v202208.CmsContent[] cmsSources;

    /* IDs of the {@link ContentBundle} of which this content is a
     * member.
     *                 This attribute is read-only. */
    private long[] contentBundleIds;

    /* A collection of {@link CmsMetadataValue} IDs that are associated
     * with this content.
     *                 This attribute is read-only. */
    private long[] cmsMetadataValueIds;

    /* The duration of the content in milliseconds.
     *                 This attribute is read-only. */
    private java.lang.Long duration;

    public Content() {
    }

    public Content(
           java.lang.Long id,
           java.lang.String name,
           com.google.api.ads.admanager.axis.v202208.ContentStatus status,
           com.google.api.ads.admanager.axis.v202208.ContentStatusDefinedBy statusDefinedBy,
           com.google.api.ads.admanager.axis.v202208.DaiIngestStatus hlsIngestStatus,
           com.google.api.ads.admanager.axis.v202208.DaiIngestError[] hlsIngestErrors,
           com.google.api.ads.admanager.axis.v202208.DateTime lastHlsIngestDateTime,
           com.google.api.ads.admanager.axis.v202208.DaiIngestStatus dashIngestStatus,
           com.google.api.ads.admanager.axis.v202208.DaiIngestError[] dashIngestErrors,
           com.google.api.ads.admanager.axis.v202208.DateTime lastDashIngestDateTime,
           com.google.api.ads.admanager.axis.v202208.DateTime importDateTime,
           com.google.api.ads.admanager.axis.v202208.DateTime lastModifiedDateTime,
           com.google.api.ads.admanager.axis.v202208.CmsContent[] cmsSources,
           long[] contentBundleIds,
           long[] cmsMetadataValueIds,
           java.lang.Long duration) {
           this.id = id;
           this.name = name;
           this.status = status;
           this.statusDefinedBy = statusDefinedBy;
           this.hlsIngestStatus = hlsIngestStatus;
           this.hlsIngestErrors = hlsIngestErrors;
           this.lastHlsIngestDateTime = lastHlsIngestDateTime;
           this.dashIngestStatus = dashIngestStatus;
           this.dashIngestErrors = dashIngestErrors;
           this.lastDashIngestDateTime = lastDashIngestDateTime;
           this.importDateTime = importDateTime;
           this.lastModifiedDateTime = lastModifiedDateTime;
           this.cmsSources = cmsSources;
           this.contentBundleIds = contentBundleIds;
           this.cmsMetadataValueIds = cmsMetadataValueIds;
           this.duration = duration;
    }

    @Override
    public String toString() {
        return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
            .omitNullValues()
            .add("cmsMetadataValueIds", getCmsMetadataValueIds())
            .add("cmsSources", getCmsSources())
            .add("contentBundleIds", getContentBundleIds())
            .add("dashIngestErrors", getDashIngestErrors())
            .add("dashIngestStatus", getDashIngestStatus())
            .add("duration", getDuration())
            .add("hlsIngestErrors", getHlsIngestErrors())
            .add("hlsIngestStatus", getHlsIngestStatus())
            .add("id", getId())
            .add("importDateTime", getImportDateTime())
            .add("lastDashIngestDateTime", getLastDashIngestDateTime())
            .add("lastHlsIngestDateTime", getLastHlsIngestDateTime())
            .add("lastModifiedDateTime", getLastModifiedDateTime())
            .add("name", getName())
            .add("status", getStatus())
            .add("statusDefinedBy", getStatusDefinedBy())
            .toString();
    }

    /**
     * Gets the id value for this Content.
     * 
     * @return id   * Uniquely identifies the {@code Content}. This attribute is
     * read-only and is assigned by Google
     *                 when the content is created.
     */
    public java.lang.Long getId() {
        return id;
    }


    /**
     * Sets the id value for this Content.
     * 
     * @param id   * Uniquely identifies the {@code Content}. This attribute is
     * read-only and is assigned by Google
     *                 when the content is created.
     */
    public void setId(java.lang.Long id) {
        this.id = id;
    }


    /**
     * Gets the name value for this Content.
     * 
     * @return name   * The name of the {@code Content}. This attribute is read-only.
     */
    public java.lang.String getName() {
        return name;
    }


    /**
     * Sets the name value for this Content.
     * 
     * @param name   * The name of the {@code Content}. This attribute is read-only.
     */
    public void setName(java.lang.String name) {
        this.name = name;
    }


    /**
     * Gets the status value for this Content.
     * 
     * @return status   * The status of this {@code Content}. This attribute is read-only.
     */
    public com.google.api.ads.admanager.axis.v202208.ContentStatus getStatus() {
        return status;
    }


    /**
     * Sets the status value for this Content.
     * 
     * @param status   * The status of this {@code Content}. This attribute is read-only.
     */
    public void setStatus(com.google.api.ads.admanager.axis.v202208.ContentStatus status) {
        this.status = status;
    }


    /**
     * Gets the statusDefinedBy value for this Content.
     * 
     * @return statusDefinedBy   * Whether the content status was defined by the user, or by the
     * source CMS from which the content
     *                 was ingested. This attribute is read-only.
     */
    public com.google.api.ads.admanager.axis.v202208.ContentStatusDefinedBy getStatusDefinedBy() {
        return statusDefinedBy;
    }


    /**
     * Sets the statusDefinedBy value for this Content.
     * 
     * @param statusDefinedBy   * Whether the content status was defined by the user, or by the
     * source CMS from which the content
     *                 was ingested. This attribute is read-only.
     */
    public void setStatusDefinedBy(com.google.api.ads.admanager.axis.v202208.ContentStatusDefinedBy statusDefinedBy) {
        this.statusDefinedBy = statusDefinedBy;
    }


    /**
     * Gets the hlsIngestStatus value for this Content.
     * 
     * @return hlsIngestStatus   * The current DAI ingest status of the HLS media for the {@code
     * content}. This attribute is
     *                 read-only and is null if the content is not eligible
     * for dynamic ad insertion or if the content
     *                 does not have HLS media.
     */
    public com.google.api.ads.admanager.axis.v202208.DaiIngestStatus getHlsIngestStatus() {
        return hlsIngestStatus;
    }


    /**
     * Sets the hlsIngestStatus value for this Content.
     * 
     * @param hlsIngestStatus   * The current DAI ingest status of the HLS media for the {@code
     * content}. This attribute is
     *                 read-only and is null if the content is not eligible
     * for dynamic ad insertion or if the content
     *                 does not have HLS media.
     */
    public void setHlsIngestStatus(com.google.api.ads.admanager.axis.v202208.DaiIngestStatus hlsIngestStatus) {
        this.hlsIngestStatus = hlsIngestStatus;
    }


    /**
     * Gets the hlsIngestErrors value for this Content.
     * 
     * @return hlsIngestErrors   * The list of any errors that occurred during the most recent
     * DAI ingestion process of the HLS
     *                 media. This attribute is read-only and will be null
     * if the {@link #hlsIngestStatus} is {@link
     *                 DaiIngestStatus#STATUS_SUCCESS} or if the content
     * is not eligible for dynamic ad insertion or
     *                 if the content does not have HLS media.
     */
    public com.google.api.ads.admanager.axis.v202208.DaiIngestError[] getHlsIngestErrors() {
        return hlsIngestErrors;
    }


    /**
     * Sets the hlsIngestErrors value for this Content.
     * 
     * @param hlsIngestErrors   * The list of any errors that occurred during the most recent
     * DAI ingestion process of the HLS
     *                 media. This attribute is read-only and will be null
     * if the {@link #hlsIngestStatus} is {@link
     *                 DaiIngestStatus#STATUS_SUCCESS} or if the content
     * is not eligible for dynamic ad insertion or
     *                 if the content does not have HLS media.
     */
    public void setHlsIngestErrors(com.google.api.ads.admanager.axis.v202208.DaiIngestError[] hlsIngestErrors) {
        this.hlsIngestErrors = hlsIngestErrors;
    }

    public com.google.api.ads.admanager.axis.v202208.DaiIngestError getHlsIngestErrors(int i) {
        return this.hlsIngestErrors[i];
    }

    public void setHlsIngestErrors(int i, com.google.api.ads.admanager.axis.v202208.DaiIngestError _value) {
        this.hlsIngestErrors[i] = _value;
    }


    /**
     * Gets the lastHlsIngestDateTime value for this Content.
     * 
     * @return lastHlsIngestDateTime   * The date and time at which this content's HLS media was last
     * ingested for DAI. This attribute
     *                 is read-only and will be null if the content is not
     * eligible for dynamic ad insertion or if the
     *                 content does not have HLS media.
     */
    public com.google.api.ads.admanager.axis.v202208.DateTime getLastHlsIngestDateTime() {
        return lastHlsIngestDateTime;
    }


    /**
     * Sets the lastHlsIngestDateTime value for this Content.
     * 
     * @param lastHlsIngestDateTime   * The date and time at which this content's HLS media was last
     * ingested for DAI. This attribute
     *                 is read-only and will be null if the content is not
     * eligible for dynamic ad insertion or if the
     *                 content does not have HLS media.
     */
    public void setLastHlsIngestDateTime(com.google.api.ads.admanager.axis.v202208.DateTime lastHlsIngestDateTime) {
        this.lastHlsIngestDateTime = lastHlsIngestDateTime;
    }


    /**
     * Gets the dashIngestStatus value for this Content.
     * 
     * @return dashIngestStatus   * The current DAI ingest status of the DASH media for the {@code
     * content}. This attribute is
     *                 read-only and is null if the content is not eligible
     * for dynamic ad insertion or if the content
     *                 does not have DASH media.
     */
    public com.google.api.ads.admanager.axis.v202208.DaiIngestStatus getDashIngestStatus() {
        return dashIngestStatus;
    }


    /**
     * Sets the dashIngestStatus value for this Content.
     * 
     * @param dashIngestStatus   * The current DAI ingest status of the DASH media for the {@code
     * content}. This attribute is
     *                 read-only and is null if the content is not eligible
     * for dynamic ad insertion or if the content
     *                 does not have DASH media.
     */
    public void setDashIngestStatus(com.google.api.ads.admanager.axis.v202208.DaiIngestStatus dashIngestStatus) {
        this.dashIngestStatus = dashIngestStatus;
    }


    /**
     * Gets the dashIngestErrors value for this Content.
     * 
     * @return dashIngestErrors   * The list of any errors that occurred during the most recent
     * DAI ingestion process of the DASH
     *                 media. This attribute is read-only and will be null
     * if the {@link #hlsIngestStatus} is {@link
     *                 DaiIngestStatus#STATUS_SUCCESS} or if the content
     * is not eligible for dynamic ad insertion or
     *                 if the content does not have DASH media.
     */
    public com.google.api.ads.admanager.axis.v202208.DaiIngestError[] getDashIngestErrors() {
        return dashIngestErrors;
    }


    /**
     * Sets the dashIngestErrors value for this Content.
     * 
     * @param dashIngestErrors   * The list of any errors that occurred during the most recent
     * DAI ingestion process of the DASH
     *                 media. This attribute is read-only and will be null
     * if the {@link #hlsIngestStatus} is {@link
     *                 DaiIngestStatus#STATUS_SUCCESS} or if the content
     * is not eligible for dynamic ad insertion or
     *                 if the content does not have DASH media.
     */
    public void setDashIngestErrors(com.google.api.ads.admanager.axis.v202208.DaiIngestError[] dashIngestErrors) {
        this.dashIngestErrors = dashIngestErrors;
    }

    public com.google.api.ads.admanager.axis.v202208.DaiIngestError getDashIngestErrors(int i) {
        return this.dashIngestErrors[i];
    }

    public void setDashIngestErrors(int i, com.google.api.ads.admanager.axis.v202208.DaiIngestError _value) {
        this.dashIngestErrors[i] = _value;
    }


    /**
     * Gets the lastDashIngestDateTime value for this Content.
     * 
     * @return lastDashIngestDateTime   * The date and time at which this content's DASH media was last
     * ingested for DAI. This attribute
     *                 is read-only and will be null if the content is not
     * eligible for dynamic ad insertion or if the
     *                 content does not have DASH media.
     */
    public com.google.api.ads.admanager.axis.v202208.DateTime getLastDashIngestDateTime() {
        return lastDashIngestDateTime;
    }


    /**
     * Sets the lastDashIngestDateTime value for this Content.
     * 
     * @param lastDashIngestDateTime   * The date and time at which this content's DASH media was last
     * ingested for DAI. This attribute
     *                 is read-only and will be null if the content is not
     * eligible for dynamic ad insertion or if the
     *                 content does not have DASH media.
     */
    public void setLastDashIngestDateTime(com.google.api.ads.admanager.axis.v202208.DateTime lastDashIngestDateTime) {
        this.lastDashIngestDateTime = lastDashIngestDateTime;
    }


    /**
     * Gets the importDateTime value for this Content.
     * 
     * @return importDateTime   * The date and time at which this content was published. This
     * attribute is read-only.
     */
    public com.google.api.ads.admanager.axis.v202208.DateTime getImportDateTime() {
        return importDateTime;
    }


    /**
     * Sets the importDateTime value for this Content.
     * 
     * @param importDateTime   * The date and time at which this content was published. This
     * attribute is read-only.
     */
    public void setImportDateTime(com.google.api.ads.admanager.axis.v202208.DateTime importDateTime) {
        this.importDateTime = importDateTime;
    }


    /**
     * Gets the lastModifiedDateTime value for this Content.
     * 
     * @return lastModifiedDateTime   * The date and time at which this content was last modified.
     * The last modified date time will
     *                 always be updated when a {@link ContentBundle} association
     * is changed, but will not always be
     *                 updated when a {@link CmsMetadataValue} value is changed.
     * This attribute is read-only.
     */
    public com.google.api.ads.admanager.axis.v202208.DateTime getLastModifiedDateTime() {
        return lastModifiedDateTime;
    }


    /**
     * Sets the lastModifiedDateTime value for this Content.
     * 
     * @param lastModifiedDateTime   * The date and time at which this content was last modified.
     * The last modified date time will
     *                 always be updated when a {@link ContentBundle} association
     * is changed, but will not always be
     *                 updated when a {@link CmsMetadataValue} value is changed.
     * This attribute is read-only.
     */
    public void setLastModifiedDateTime(com.google.api.ads.admanager.axis.v202208.DateTime lastModifiedDateTime) {
        this.lastModifiedDateTime = lastModifiedDateTime;
    }


    /**
     * Gets the cmsSources value for this Content.
     * 
     * @return cmsSources   * Information about the content from the CMS it was ingested
     * from. This attribute is read-only.
     */
    public com.google.api.ads.admanager.axis.v202208.CmsContent[] getCmsSources() {
        return cmsSources;
    }


    /**
     * Sets the cmsSources value for this Content.
     * 
     * @param cmsSources   * Information about the content from the CMS it was ingested
     * from. This attribute is read-only.
     */
    public void setCmsSources(com.google.api.ads.admanager.axis.v202208.CmsContent[] cmsSources) {
        this.cmsSources = cmsSources;
    }

    public com.google.api.ads.admanager.axis.v202208.CmsContent getCmsSources(int i) {
        return this.cmsSources[i];
    }

    public void setCmsSources(int i, com.google.api.ads.admanager.axis.v202208.CmsContent _value) {
        this.cmsSources[i] = _value;
    }


    /**
     * Gets the contentBundleIds value for this Content.
     * 
     * @return contentBundleIds   * IDs of the {@link ContentBundle} of which this content is a
     * member.
     *                 This attribute is read-only.
     */
    public long[] getContentBundleIds() {
        return contentBundleIds;
    }


    /**
     * Sets the contentBundleIds value for this Content.
     * 
     * @param contentBundleIds   * IDs of the {@link ContentBundle} of which this content is a
     * member.
     *                 This attribute is read-only.
     */
    public void setContentBundleIds(long[] contentBundleIds) {
        this.contentBundleIds = contentBundleIds;
    }

    public long getContentBundleIds(int i) {
        return this.contentBundleIds[i];
    }

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


    /**
     * Gets the cmsMetadataValueIds value for this Content.
     * 
     * @return cmsMetadataValueIds   * A collection of {@link CmsMetadataValue} IDs that are associated
     * with this content.
     *                 This attribute is read-only.
     */
    public long[] getCmsMetadataValueIds() {
        return cmsMetadataValueIds;
    }


    /**
     * Sets the cmsMetadataValueIds value for this Content.
     * 
     * @param cmsMetadataValueIds   * A collection of {@link CmsMetadataValue} IDs that are associated
     * with this content.
     *                 This attribute is read-only.
     */
    public void setCmsMetadataValueIds(long[] cmsMetadataValueIds) {
        this.cmsMetadataValueIds = cmsMetadataValueIds;
    }

    public long getCmsMetadataValueIds(int i) {
        return this.cmsMetadataValueIds[i];
    }

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


    /**
     * Gets the duration value for this Content.
     * 
     * @return duration   * The duration of the content in milliseconds.
     *                 This attribute is read-only.
     */
    public java.lang.Long getDuration() {
        return duration;
    }


    /**
     * Sets the duration value for this Content.
     * 
     * @param duration   * The duration of the content in milliseconds.
     *                 This attribute is read-only.
     */
    public void setDuration(java.lang.Long duration) {
        this.duration = duration;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Content)) return false;
        Content other = (Content) 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.status==null && other.getStatus()==null) || 
             (this.status!=null &&
              this.status.equals(other.getStatus()))) &&
            ((this.statusDefinedBy==null && other.getStatusDefinedBy()==null) || 
             (this.statusDefinedBy!=null &&
              this.statusDefinedBy.equals(other.getStatusDefinedBy()))) &&
            ((this.hlsIngestStatus==null && other.getHlsIngestStatus()==null) || 
             (this.hlsIngestStatus!=null &&
              this.hlsIngestStatus.equals(other.getHlsIngestStatus()))) &&
            ((this.hlsIngestErrors==null && other.getHlsIngestErrors()==null) || 
             (this.hlsIngestErrors!=null &&
              java.util.Arrays.equals(this.hlsIngestErrors, other.getHlsIngestErrors()))) &&
            ((this.lastHlsIngestDateTime==null && other.getLastHlsIngestDateTime()==null) || 
             (this.lastHlsIngestDateTime!=null &&
              this.lastHlsIngestDateTime.equals(other.getLastHlsIngestDateTime()))) &&
            ((this.dashIngestStatus==null && other.getDashIngestStatus()==null) || 
             (this.dashIngestStatus!=null &&
              this.dashIngestStatus.equals(other.getDashIngestStatus()))) &&
            ((this.dashIngestErrors==null && other.getDashIngestErrors()==null) || 
             (this.dashIngestErrors!=null &&
              java.util.Arrays.equals(this.dashIngestErrors, other.getDashIngestErrors()))) &&
            ((this.lastDashIngestDateTime==null && other.getLastDashIngestDateTime()==null) || 
             (this.lastDashIngestDateTime!=null &&
              this.lastDashIngestDateTime.equals(other.getLastDashIngestDateTime()))) &&
            ((this.importDateTime==null && other.getImportDateTime()==null) || 
             (this.importDateTime!=null &&
              this.importDateTime.equals(other.getImportDateTime()))) &&
            ((this.lastModifiedDateTime==null && other.getLastModifiedDateTime()==null) || 
             (this.lastModifiedDateTime!=null &&
              this.lastModifiedDateTime.equals(other.getLastModifiedDateTime()))) &&
            ((this.cmsSources==null && other.getCmsSources()==null) || 
             (this.cmsSources!=null &&
              java.util.Arrays.equals(this.cmsSources, other.getCmsSources()))) &&
            ((this.contentBundleIds==null && other.getContentBundleIds()==null) || 
             (this.contentBundleIds!=null &&
              java.util.Arrays.equals(this.contentBundleIds, other.getContentBundleIds()))) &&
            ((this.cmsMetadataValueIds==null && other.getCmsMetadataValueIds()==null) || 
             (this.cmsMetadataValueIds!=null &&
              java.util.Arrays.equals(this.cmsMetadataValueIds, other.getCmsMetadataValueIds()))) &&
            ((this.duration==null && other.getDuration()==null) || 
             (this.duration!=null &&
              this.duration.equals(other.getDuration())));
        __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 (getStatus() != null) {
            _hashCode += getStatus().hashCode();
        }
        if (getStatusDefinedBy() != null) {
            _hashCode += getStatusDefinedBy().hashCode();
        }
        if (getHlsIngestStatus() != null) {
            _hashCode += getHlsIngestStatus().hashCode();
        }
        if (getHlsIngestErrors() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getHlsIngestErrors());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getHlsIngestErrors(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getLastHlsIngestDateTime() != null) {
            _hashCode += getLastHlsIngestDateTime().hashCode();
        }
        if (getDashIngestStatus() != null) {
            _hashCode += getDashIngestStatus().hashCode();
        }
        if (getDashIngestErrors() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getDashIngestErrors());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getDashIngestErrors(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getLastDashIngestDateTime() != null) {
            _hashCode += getLastDashIngestDateTime().hashCode();
        }
        if (getImportDateTime() != null) {
            _hashCode += getImportDateTime().hashCode();
        }
        if (getLastModifiedDateTime() != null) {
            _hashCode += getLastModifiedDateTime().hashCode();
        }
        if (getCmsSources() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getCmsSources());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getCmsSources(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getContentBundleIds() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getContentBundleIds());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getContentBundleIds(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getCmsMetadataValueIds() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getCmsMetadataValueIds());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getCmsMetadataValueIds(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getDuration() != null) {
            _hashCode += getDuration().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(Content.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "Content"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("id");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "id"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("name");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "name"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("status");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "status"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "ContentStatus"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("statusDefinedBy");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "statusDefinedBy"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "ContentStatusDefinedBy"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("hlsIngestStatus");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "hlsIngestStatus"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "DaiIngestStatus"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("hlsIngestErrors");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "hlsIngestErrors"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "DaiIngestError"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("lastHlsIngestDateTime");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "lastHlsIngestDateTime"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "DateTime"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("dashIngestStatus");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "dashIngestStatus"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "DaiIngestStatus"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("dashIngestErrors");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "dashIngestErrors"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "DaiIngestError"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("lastDashIngestDateTime");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "lastDashIngestDateTime"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "DateTime"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("importDateTime");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "importDateTime"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "DateTime"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("lastModifiedDateTime");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "lastModifiedDateTime"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "DateTime"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("cmsSources");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "cmsSources"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "CmsContent"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("contentBundleIds");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "contentBundleIds"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("cmsMetadataValueIds");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "cmsMetadataValueIds"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("duration");
        elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202208", "duration"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}
