@java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.hive.ql.io.protobuf.SampleProtos.AllTypes)) {
        return super.equals(obj);
      }
      org.apache.hadoop.hive.ql.io.protobuf.SampleProtos.AllTypes other = (org.apache.hadoop.hive.ql.io.protobuf.SampleProtos.AllTypes) obj;

      if (hasDoubleType() != other.hasDoubleType()) return false;
      if (hasDoubleType()) {
        if (java.lang.Double.doubleToLongBits(getDoubleType())
            != java.lang.Double.doubleToLongBits(
                other.getDoubleType())) return false;
      }
      if (hasFloatType() != other.hasFloatType()) return false;
      if (hasFloatType()) {
        if (java.lang.Float.floatToIntBits(getFloatType())
            != java.lang.Float.floatToIntBits(
                other.getFloatType())) return false;
      }
      if (hasInt32Type() != other.hasInt32Type()) return false;
      if (hasInt32Type()) {
        if (getInt32Type()
            != other.getInt32Type()) return false;
      }
      if (hasInt64Type() != other.hasInt64Type()) return false;
      if (hasInt64Type()) {
        if (getInt64Type()
            != other.getInt64Type()) return false;
      }
      if (hasUint32Type() != other.hasUint32Type()) return false;
      if (hasUint32Type()) {
        if (getUint32Type()
            != other.getUint32Type()) return false;
      }
      if (hasUint64Type() != other.hasUint64Type()) return false;
      if (hasUint64Type()) {
        if (getUint64Type()
            != other.getUint64Type()) return false;
      }
      if (hasSint32Type() != other.hasSint32Type()) return false;
      if (hasSint32Type()) {
        if (getSint32Type()
            != other.getSint32Type()) return false;
      }
      if (hasSint64Type() != other.hasSint64Type()) return false;
      if (hasSint64Type()) {
        if (getSint64Type()
            != other.getSint64Type()) return false;
      }
      if (hasFixed32Type() != other.hasFixed32Type()) return false;
      if (hasFixed32Type()) {
        if (getFixed32Type()
            != other.getFixed32Type()) return false;
      }
      if (hasFixed64Type() != other.hasFixed64Type()) return false;
      if (hasFixed64Type()) {
        if (getFixed64Type()
            != other.getFixed64Type()) return false;
      }
      if (hasSfixed32Type() != other.hasSfixed32Type()) return false;
      if (hasSfixed32Type()) {
        if (getSfixed32Type()
            != other.getSfixed32Type()) return false;
      }
      if (hasSfixed64Type() != other.hasSfixed64Type()) return false;
      if (hasSfixed64Type()) {
        if (getSfixed64Type()
            != other.getSfixed64Type()) return false;
      }
      if (hasBoolType() != other.hasBoolType()) return false;
      if (hasBoolType()) {
        if (getBoolType()
            != other.getBoolType()) return false;
      }
      if (hasStringType() != other.hasStringType()) return false;
      if (hasStringType()) {
        if (!getStringType()
            .equals(other.getStringType())) return false;
      }
      if (hasBytesType() != other.hasBytesType()) return false;
      if (hasBytesType()) {
        if (!getBytesType()
            .equals(other.getBytesType())) return false;
      }
      if (!getMapTypeList()
          .equals(other.getMapTypeList())) return false;
      if (!getStringListTypeList()
          .equals(other.getStringListTypeList())) return false;
      if (hasMessageType() != other.hasMessageType()) return false;
      if (hasMessageType()) {
        if (!getMessageType()
            .equals(other.getMessageType())) return false;
      }
      if (!getMessageListTypeList()
          .equals(other.getMessageListTypeList())) return false;
      if (hasEnumType() != other.hasEnumType()) return false;
      if (hasEnumType()) {
        if (enumType_ != other.enumType_) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<code>optional .AllTypes.Enum1 enumType = 20;</code>
@return The enumType.
ql/src/gen/protobuf/gen-test/org/apache/hadoop/hive/ql/io/protobuf/SampleProtos.java