public boolean equals(Type that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_name = true && this.isSetName();
    boolean that_present_name = true && that.isSetName();
    if (this_present_name || that_present_name) {
      if (!(this_present_name && that_present_name))
        return false;
      if (!this.name.equals(that.name))
        return false;
    }

    boolean this_present_type1 = true && this.isSetType1();
    boolean that_present_type1 = true && that.isSetType1();
    if (this_present_type1 || that_present_type1) {
      if (!(this_present_type1 && that_present_type1))
        return false;
      if (!this.type1.equals(that.type1))
        return false;
    }

    boolean this_present_type2 = true && this.isSetType2();
    boolean that_present_type2 = true && that.isSetType2();
    if (this_present_type2 || that_present_type2) {
      if (!(this_present_type2 && that_present_type2))
        return false;
      if (!this.type2.equals(that.type2))
        return false;
    }

    boolean this_present_fields = true && this.isSetFields();
    boolean that_present_fields = true && that.isSetFields();
    if (this_present_fields || that_present_fields) {
      if (!(this_present_fields && that_present_fields))
        return false;
      if (!this.fields.equals(that.fields))
        return false;
    }

    return true;
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java