@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, WMNullablePool struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeString(struct.resourcePlanName);
      oprot.writeString(struct.poolPath);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetAllocFraction()) {
        optionals.set(0);
      }
      if (struct.isSetQueryParallelism()) {
        optionals.set(1);
      }
      if (struct.isSetSchedulingPolicy()) {
        optionals.set(2);
      }
      if (struct.isSetIsSetSchedulingPolicy()) {
        optionals.set(3);
      }
      if (struct.isSetNs()) {
        optionals.set(4);
      }
      oprot.writeBitSet(optionals, 5);
      if (struct.isSetAllocFraction()) {
        oprot.writeDouble(struct.allocFraction);
      }
      if (struct.isSetQueryParallelism()) {
        oprot.writeI32(struct.queryParallelism);
      }
      if (struct.isSetSchedulingPolicy()) {
        oprot.writeString(struct.schedulingPolicy);
      }
      if (struct.isSetIsSetSchedulingPolicy()) {
        oprot.writeBool(struct.isSetSchedulingPolicy);
      }
      if (struct.isSetNs()) {
        oprot.writeString(struct.ns);
      }
    }
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/WMNullablePool.java