/**
 * RtnBullInfoResponse.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 RtnBullInfoResponse  implements java.io.Serializable {
    private int rtnCode;

    private java.lang.String rtnMessage;

    private com.izouma.webservice.wsCow.BullInfo rtnBullInfo;

    public RtnBullInfoResponse() {
    }

    public RtnBullInfoResponse(
           int rtnCode,
           java.lang.String rtnMessage,
           com.izouma.webservice.wsCow.BullInfo rtnBullInfo) {
           this.rtnCode = rtnCode;
           this.rtnMessage = rtnMessage;
           this.rtnBullInfo = rtnBullInfo;
    }


    /**
     * Gets the rtnCode value for this RtnBullInfoResponse.
     * 
     * @return rtnCode
     */
    public int getRtnCode() {
        return rtnCode;
    }


    /**
     * Sets the rtnCode value for this RtnBullInfoResponse.
     * 
     * @param rtnCode
     */
    public void setRtnCode(int rtnCode) {
        this.rtnCode = rtnCode;
    }


    /**
     * Gets the rtnMessage value for this RtnBullInfoResponse.
     * 
     * @return rtnMessage
     */
    public java.lang.String getRtnMessage() {
        return rtnMessage;
    }


    /**
     * Sets the rtnMessage value for this RtnBullInfoResponse.
     * 
     * @param rtnMessage
     */
    public void setRtnMessage(java.lang.String rtnMessage) {
        this.rtnMessage = rtnMessage;
    }


    /**
     * Gets the rtnBullInfo value for this RtnBullInfoResponse.
     * 
     * @return rtnBullInfo
     */
    public com.izouma.webservice.wsCow.BullInfo getRtnBullInfo() {
        return rtnBullInfo;
    }


    /**
     * Sets the rtnBullInfo value for this RtnBullInfoResponse.
     * 
     * @param rtnBullInfo
     */
    public void setRtnBullInfo(com.izouma.webservice.wsCow.BullInfo rtnBullInfo) {
        this.rtnBullInfo = rtnBullInfo;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof RtnBullInfoResponse)) return false;
        RtnBullInfoResponse other = (RtnBullInfoResponse) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            this.rtnCode == other.getRtnCode() &&
            ((this.rtnMessage==null && other.getRtnMessage()==null) || 
             (this.rtnMessage!=null &&
              this.rtnMessage.equals(other.getRtnMessage()))) &&
            ((this.rtnBullInfo==null && other.getRtnBullInfo()==null) || 
             (this.rtnBullInfo!=null &&
              this.rtnBullInfo.equals(other.getRtnBullInfo())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        _hashCode += getRtnCode();
        if (getRtnMessage() != null) {
            _hashCode += getRtnMessage().hashCode();
        }
        if (getRtnBullInfo() != null) {
            _hashCode += getRtnBullInfo().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.brightdairy.com/", "rtnBullInfoResponse"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("rtnCode");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "rtnCode"));
        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("rtnMessage");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "rtnMessage"));
        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("rtnBullInfo");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "rtnBullInfo"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.brightdairy.com/", "BullInfo"));
        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);
    }

}
