// Copyright 2016 Google Inc. All Rights Reserved. // // 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. /** * CampaignChangeData.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.adwords.axis.v201607.ch; /** * Holds information about a changed campaign and any ad groups under * that have changed. */ public class CampaignChangeData implements java.io.Serializable { /* The campaign ID. */ private java.lang.Long campaignId; /* Whether or not the fields of this campaign have changed. Changes * to campaign level criteria and * ad extensions are enumerated in their respective lists * and will not be reflected in this * status. */ private com.google.api.ads.adwords.axis.v201607.ch.ChangeStatus campaignChangeStatus; /* A list of change information for all changed adgroups belonging * to the campaign. */ private com.google.api.ads.adwords.axis.v201607.ch.AdGroupChangeData[] changedAdGroups; /* A list of criteria IDs that have been added as campaign criteria. * This list includes any * criteria that can be downloaded using CampaignCriterionService. */ private long[] addedCampaignCriteria; /* A list of criteria IDs that have been deleted as campaign criteria. * This list includes any * criteria that can be downloaded using CampaignCriterionService. */ private long[] removedCampaignCriteria; /* A list of feed IDs for CampaignFeeds that have been changed * in this campaign. If a CampaignFeed * is deleted after a modification, it will not be included * in this list. */ private long[] changedFeeds; /* A list of feed IDs for CampaignFeeds that have been removed * from the campaign. */ private long[] removedFeeds; public CampaignChangeData() { } public CampaignChangeData( java.lang.Long campaignId, com.google.api.ads.adwords.axis.v201607.ch.ChangeStatus campaignChangeStatus, com.google.api.ads.adwords.axis.v201607.ch.AdGroupChangeData[] changedAdGroups, long[] addedCampaignCriteria, long[] removedCampaignCriteria, long[] changedFeeds, long[] removedFeeds) { this.campaignId = campaignId; this.campaignChangeStatus = campaignChangeStatus; this.changedAdGroups = changedAdGroups; this.addedCampaignCriteria = addedCampaignCriteria; this.removedCampaignCriteria = removedCampaignCriteria; this.changedFeeds = changedFeeds; this.removedFeeds = removedFeeds; } /** * Gets the campaignId value for this CampaignChangeData. * * @return campaignId * The campaign ID. */ public java.lang.Long getCampaignId() { return campaignId; } /** * Sets the campaignId value for this CampaignChangeData. * * @param campaignId * The campaign ID. */ public void setCampaignId(java.lang.Long campaignId) { this.campaignId = campaignId; } /** * Gets the campaignChangeStatus value for this CampaignChangeData. * * @return campaignChangeStatus * Whether or not the fields of this campaign have changed. Changes * to campaign level criteria and * ad extensions are enumerated in their respective lists * and will not be reflected in this * status. */ public com.google.api.ads.adwords.axis.v201607.ch.ChangeStatus getCampaignChangeStatus() { return campaignChangeStatus; } /** * Sets the campaignChangeStatus value for this CampaignChangeData. * * @param campaignChangeStatus * Whether or not the fields of this campaign have changed. Changes * to campaign level criteria and * ad extensions are enumerated in their respective lists * and will not be reflected in this * status. */ public void setCampaignChangeStatus(com.google.api.ads.adwords.axis.v201607.ch.ChangeStatus campaignChangeStatus) { this.campaignChangeStatus = campaignChangeStatus; } /** * Gets the changedAdGroups value for this CampaignChangeData. * * @return changedAdGroups * A list of change information for all changed adgroups belonging * to the campaign. */ public com.google.api.ads.adwords.axis.v201607.ch.AdGroupChangeData[] getChangedAdGroups() { return changedAdGroups; } /** * Sets the changedAdGroups value for this CampaignChangeData. * * @param changedAdGroups * A list of change information for all changed adgroups belonging * to the campaign. */ public void setChangedAdGroups(com.google.api.ads.adwords.axis.v201607.ch.AdGroupChangeData[] changedAdGroups) { this.changedAdGroups = changedAdGroups; } public com.google.api.ads.adwords.axis.v201607.ch.AdGroupChangeData getChangedAdGroups(int i) { return this.changedAdGroups[i]; } public void setChangedAdGroups(int i, com.google.api.ads.adwords.axis.v201607.ch.AdGroupChangeData _value) { this.changedAdGroups[i] = _value; } /** * Gets the addedCampaignCriteria value for this CampaignChangeData. * * @return addedCampaignCriteria * A list of criteria IDs that have been added as campaign criteria. * This list includes any * criteria that can be downloaded using CampaignCriterionService. */ public long[] getAddedCampaignCriteria() { return addedCampaignCriteria; } /** * Sets the addedCampaignCriteria value for this CampaignChangeData. * * @param addedCampaignCriteria * A list of criteria IDs that have been added as campaign criteria. * This list includes any * criteria that can be downloaded using CampaignCriterionService. */ public void setAddedCampaignCriteria(long[] addedCampaignCriteria) { this.addedCampaignCriteria = addedCampaignCriteria; } public long getAddedCampaignCriteria(int i) { return this.addedCampaignCriteria[i]; } public void setAddedCampaignCriteria(int i, long _value) { this.addedCampaignCriteria[i] = _value; } /** * Gets the removedCampaignCriteria value for this CampaignChangeData. * * @return removedCampaignCriteria * A list of criteria IDs that have been deleted as campaign criteria. * This list includes any * criteria that can be downloaded using CampaignCriterionService. */ public long[] getRemovedCampaignCriteria() { return removedCampaignCriteria; } /** * Sets the removedCampaignCriteria value for this CampaignChangeData. * * @param removedCampaignCriteria * A list of criteria IDs that have been deleted as campaign criteria. * This list includes any * criteria that can be downloaded using CampaignCriterionService. */ public void setRemovedCampaignCriteria(long[] removedCampaignCriteria) { this.removedCampaignCriteria = removedCampaignCriteria; } public long getRemovedCampaignCriteria(int i) { return this.removedCampaignCriteria[i]; } public void setRemovedCampaignCriteria(int i, long _value) { this.removedCampaignCriteria[i] = _value; } /** * Gets the changedFeeds value for this CampaignChangeData. * * @return changedFeeds * A list of feed IDs for CampaignFeeds that have been changed * in this campaign. If a CampaignFeed * is deleted after a modification, it will not be included * in this list. */ public long[] getChangedFeeds() { return changedFeeds; } /** * Sets the changedFeeds value for this CampaignChangeData. * * @param changedFeeds * A list of feed IDs for CampaignFeeds that have been changed * in this campaign. If a CampaignFeed * is deleted after a modification, it will not be included * in this list. */ public void setChangedFeeds(long[] changedFeeds) { this.changedFeeds = changedFeeds; } public long getChangedFeeds(int i) { return this.changedFeeds[i]; } public void setChangedFeeds(int i, long _value) { this.changedFeeds[i] = _value; } /** * Gets the removedFeeds value for this CampaignChangeData. * * @return removedFeeds * A list of feed IDs for CampaignFeeds that have been removed * from the campaign. */ public long[] getRemovedFeeds() { return removedFeeds; } /** * Sets the removedFeeds value for this CampaignChangeData. * * @param removedFeeds * A list of feed IDs for CampaignFeeds that have been removed * from the campaign. */ public void setRemovedFeeds(long[] removedFeeds) { this.removedFeeds = removedFeeds; } public long getRemovedFeeds(int i) { return this.removedFeeds[i]; } public void setRemovedFeeds(int i, long _value) { this.removedFeeds[i] = _value; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof CampaignChangeData)) return false; CampaignChangeData other = (CampaignChangeData) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.campaignId==null && other.getCampaignId()==null) || (this.campaignId!=null && this.campaignId.equals(other.getCampaignId()))) && ((this.campaignChangeStatus==null && other.getCampaignChangeStatus()==null) || (this.campaignChangeStatus!=null && this.campaignChangeStatus.equals(other.getCampaignChangeStatus()))) && ((this.changedAdGroups==null && other.getChangedAdGroups()==null) || (this.changedAdGroups!=null && java.util.Arrays.equals(this.changedAdGroups, other.getChangedAdGroups()))) && ((this.addedCampaignCriteria==null && other.getAddedCampaignCriteria()==null) || (this.addedCampaignCriteria!=null && java.util.Arrays.equals(this.addedCampaignCriteria, other.getAddedCampaignCriteria()))) && ((this.removedCampaignCriteria==null && other.getRemovedCampaignCriteria()==null) || (this.removedCampaignCriteria!=null && java.util.Arrays.equals(this.removedCampaignCriteria, other.getRemovedCampaignCriteria()))) && ((this.changedFeeds==null && other.getChangedFeeds()==null) || (this.changedFeeds!=null && java.util.Arrays.equals(this.changedFeeds, other.getChangedFeeds()))) && ((this.removedFeeds==null && other.getRemovedFeeds()==null) || (this.removedFeeds!=null && java.util.Arrays.equals(this.removedFeeds, other.getRemovedFeeds()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getCampaignId() != null) { _hashCode += getCampaignId().hashCode(); } if (getCampaignChangeStatus() != null) { _hashCode += getCampaignChangeStatus().hashCode(); } if (getChangedAdGroups() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getChangedAdGroups()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getChangedAdGroups(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } if (getAddedCampaignCriteria() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getAddedCampaignCriteria()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getAddedCampaignCriteria(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } if (getRemovedCampaignCriteria() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getRemovedCampaignCriteria()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getRemovedCampaignCriteria(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } if (getChangedFeeds() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getChangedFeeds()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getChangedFeeds(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } if (getRemovedFeeds() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getRemovedFeeds()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getRemovedFeeds(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(CampaignChangeData.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "CampaignChangeData")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("campaignId"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "campaignId")); 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("campaignChangeStatus"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "campaignChangeStatus")); elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "ChangeStatus")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("changedAdGroups"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "changedAdGroups")); elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "AdGroupChangeData")); elemField.setMinOccurs(0); elemField.setNillable(false); elemField.setMaxOccursUnbounded(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("addedCampaignCriteria"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "addedCampaignCriteria")); 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("removedCampaignCriteria"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "removedCampaignCriteria")); 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("changedFeeds"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "changedFeeds")); 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("removedFeeds"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/ch/v201607", "removedFeeds")); 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); } /** * 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); } }