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

    boolean this_present_dbName = true && this.isSetDbName();
    boolean that_present_dbName = true && that.isSetDbName();
    if (this_present_dbName || that_present_dbName) {
      if (!(this_present_dbName && that_present_dbName))
        return false;
      if (!this.dbName.equals(that.dbName))
        return false;
    }

    boolean this_present_tblName = true && this.isSetTblName();
    boolean that_present_tblName = true && that.isSetTblName();
    if (this_present_tblName || that_present_tblName) {
      if (!(this_present_tblName && that_present_tblName))
        return false;
      if (!this.tblName.equals(that.tblName))
        return false;
    }

    boolean this_present_parts = true && this.isSetParts();
    boolean that_present_parts = true && that.isSetParts();
    if (this_present_parts || that_present_parts) {
      if (!(this_present_parts && that_present_parts))
        return false;
      if (!this.parts.equals(that.parts))
        return false;
    }

    boolean this_present_ifNotExists = true;
    boolean that_present_ifNotExists = true;
    if (this_present_ifNotExists || that_present_ifNotExists) {
      if (!(this_present_ifNotExists && that_present_ifNotExists))
        return false;
      if (this.ifNotExists != that.ifNotExists)
        return false;
    }

    boolean this_present_needResult = true && this.isSetNeedResult();
    boolean that_present_needResult = true && that.isSetNeedResult();
    if (this_present_needResult || that_present_needResult) {
      if (!(this_present_needResult && that_present_needResult))
        return false;
      if (this.needResult != that.needResult)
        return false;
    }

    boolean this_present_catName = true && this.isSetCatName();
    boolean that_present_catName = true && that.isSetCatName();
    if (this_present_catName || that_present_catName) {
      if (!(this_present_catName && that_present_catName))
        return false;
      if (!this.catName.equals(that.catName))
        return false;
    }

    boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList();
    boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList();
    if (this_present_validWriteIdList || that_present_validWriteIdList) {
      if (!(this_present_validWriteIdList && that_present_validWriteIdList))
        return false;
      if (!this.validWriteIdList.equals(that.validWriteIdList))
        return false;
    }

    boolean this_present_skipColumnSchemaForPartition = true && this.isSetSkipColumnSchemaForPartition();
    boolean that_present_skipColumnSchemaForPartition = true && that.isSetSkipColumnSchemaForPartition();
    if (this_present_skipColumnSchemaForPartition || that_present_skipColumnSchemaForPartition) {
      if (!(this_present_skipColumnSchemaForPartition && that_present_skipColumnSchemaForPartition))
        return false;
      if (this.skipColumnSchemaForPartition != that.skipColumnSchemaForPartition)
        return false;
    }

    boolean this_present_partitionColSchema = true && this.isSetPartitionColSchema();
    boolean that_present_partitionColSchema = true && that.isSetPartitionColSchema();
    if (this_present_partitionColSchema || that_present_partitionColSchema) {
      if (!(this_present_partitionColSchema && that_present_partitionColSchema))
        return false;
      if (!this.partitionColSchema.equals(that.partitionColSchema))
        return false;
    }

    boolean this_present_environmentContext = true && this.isSetEnvironmentContext();
    boolean that_present_environmentContext = true && that.isSetEnvironmentContext();
    if (this_present_environmentContext || that_present_environmentContext) {
      if (!(this_present_environmentContext && that_present_environmentContext))
        return false;
      if (!this.environmentContext.equals(that.environmentContext))
        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/AddPartitionsRequest.java