/**
 * AddPhotoInfoType0.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.izouma.webservice.wsCow;

public class AddPhotoInfoType0  implements java.io.Serializable {
    private java.lang.String cowID;

    private java.util.Calendar photoDate;

    private java.lang.String description;

    private java.lang.String photoUrl;

    private java.lang.String thumbUrl;

    private int flag;

    private java.lang.String operators;

    public AddPhotoInfoType0() {
    }

    public AddPhotoInfoType0(
           java.lang.String cowID,
           java.util.Calendar photoDate,
           java.lang.String description,
           java.lang.String photoUrl,
           java.lang.String thumbUrl,
           int flag,
           java.lang.String operators) {
           this.cowID = cowID;
           this.photoDate = photoDate;
           this.description = description;
           this.photoUrl = photoUrl;
           this.thumbUrl = thumbUrl;
           this.flag = flag;
           this.operators = operators;
    }


    /**
     * Gets the cowID value for this AddPhotoInfoType0.
     * 
     * @return cowID
     */
    public java.lang.String getCowID() {
        return cowID;
    }


    /**
     * Sets the cowID value for this AddPhotoInfoType0.
     * 
     * @param cowID
     */
    public void setCowID(java.lang.String cowID) {
        this.cowID = cowID;
    }


    /**
     * Gets the photoDate value for this AddPhotoInfoType0.
     * 
     * @return photoDate
     */
    public java.util.Calendar getPhotoDate() {
        return photoDate;
    }


    /**
     * Sets the photoDate value for this AddPhotoInfoType0.
     * 
     * @param photoDate
     */
    public void setPhotoDate(java.util.Calendar photoDate) {
        this.photoDate = photoDate;
    }


    /**
     * Gets the description value for this AddPhotoInfoType0.
     * 
     * @return description
     */
    public java.lang.String getDescription() {
        return description;
    }


    /**
     * Sets the description value for this AddPhotoInfoType0.
     * 
     * @param description
     */
    public void setDescription(java.lang.String description) {
        this.description = description;
    }


    /**
     * Gets the photoUrl value for this AddPhotoInfoType0.
     * 
     * @return photoUrl
     */
    public java.lang.String getPhotoUrl() {
        return photoUrl;
    }


    /**
     * Sets the photoUrl value for this AddPhotoInfoType0.
     * 
     * @param photoUrl
     */
    public void setPhotoUrl(java.lang.String photoUrl) {
        this.photoUrl = photoUrl;
    }


    /**
     * Gets the thumbUrl value for this AddPhotoInfoType0.
     * 
     * @return thumbUrl
     */
    public java.lang.String getThumbUrl() {
        return thumbUrl;
    }


    /**
     * Sets the thumbUrl value for this AddPhotoInfoType0.
     * 
     * @param thumbUrl
     */
    public void setThumbUrl(java.lang.String thumbUrl) {
        this.thumbUrl = thumbUrl;
    }


    /**
     * Gets the flag value for this AddPhotoInfoType0.
     * 
     * @return flag
     */
    public int getFlag() {
        return flag;
    }


    /**
     * Sets the flag value for this AddPhotoInfoType0.
     * 
     * @param flag
     */
    public void setFlag(int flag) {
        this.flag = flag;
    }


    /**
     * Gets the operators value for this AddPhotoInfoType0.
     * 
     * @return operators
     */
    public java.lang.String getOperators() {
        return operators;
    }


    /**
     * Sets the operators value for this AddPhotoInfoType0.
     * 
     * @param operators
     */
    public void setOperators(java.lang.String operators) {
        this.operators = operators;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof AddPhotoInfoType0)) return false;
        AddPhotoInfoType0 other = (AddPhotoInfoType0) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.cowID==null && other.getCowID()==null) || 
             (this.cowID!=null &&
              this.cowID.equals(other.getCowID()))) &&
            ((this.photoDate==null && other.getPhotoDate()==null) || 
             (this.photoDate!=null &&
              this.photoDate.equals(other.getPhotoDate()))) &&
            ((this.description==null && other.getDescription()==null) || 
             (this.description!=null &&
              this.description.equals(other.getDescription()))) &&
            ((this.photoUrl==null && other.getPhotoUrl()==null) || 
             (this.photoUrl!=null &&
              this.photoUrl.equals(other.getPhotoUrl()))) &&
            ((this.thumbUrl==null && other.getThumbUrl()==null) || 
             (this.thumbUrl!=null &&
              this.thumbUrl.equals(other.getThumbUrl()))) &&
            this.flag == other.getFlag() &&
            ((this.operators==null && other.getOperators()==null) || 
             (this.operators!=null &&
              this.operators.equals(other.getOperators())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getCowID() != null) {
            _hashCode += getCowID().hashCode();
        }
        if (getPhotoDate() != null) {
            _hashCode += getPhotoDate().hashCode();
        }
        if (getDescription() != null) {
            _hashCode += getDescription().hashCode();
        }
        if (getPhotoUrl() != null) {
            _hashCode += getPhotoUrl().hashCode();
        }
        if (getThumbUrl() != null) {
            _hashCode += getThumbUrl().hashCode();
        }
        _hashCode += getFlag();
        if (getOperators() != null) {
            _hashCode += getOperators().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.brightdairy.com/", ">AddPhotoInfo"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("cowID");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "cowID"));
        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("photoDate");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "photoDate"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("description");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "description"));
        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("photoUrl");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "photoUrl"));
        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("thumbUrl");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "thumbUrl"));
        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("flag");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "flag"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("operators");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "operators"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        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);
    }

}
