@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, DropPartitionsRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeString(struct.dbName);
      oprot.writeString(struct.tblName);
      struct.parts.write(oprot);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetDeleteData()) {
        optionals.set(0);
      }
      if (struct.isSetIfExists()) {
        optionals.set(1);
      }
      if (struct.isSetIgnoreProtection()) {
        optionals.set(2);
      }
      if (struct.isSetEnvironmentContext()) {
        optionals.set(3);
      }
      if (struct.isSetNeedResult()) {
        optionals.set(4);
      }
      if (struct.isSetCatName()) {
        optionals.set(5);
      }
      if (struct.isSetSkipColumnSchemaForPartition()) {
        optionals.set(6);
      }
      oprot.writeBitSet(optionals, 7);
      if (struct.isSetDeleteData()) {
        oprot.writeBool(struct.deleteData);
      }
      if (struct.isSetIfExists()) {
        oprot.writeBool(struct.ifExists);
      }
      if (struct.isSetIgnoreProtection()) {
        oprot.writeBool(struct.ignoreProtection);
      }
      if (struct.isSetEnvironmentContext()) {
        struct.environmentContext.write(oprot);
      }
      if (struct.isSetNeedResult()) {
        oprot.writeBool(struct.needResult);
      }
      if (struct.isSetCatName()) {
        oprot.writeString(struct.catName);
      }
      if (struct.isSetSkipColumnSchemaForPartition()) {
        oprot.writeBool(struct.skipColumnSchemaForPartition);
      }
    }
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/DropPartitionsRequest.java