@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      struct.plan.write(oprot);
      {
        oprot.writeI32(struct.pools.size());
        for (WMPool _iter1286 : struct.pools)
        {
          _iter1286.write(oprot);
        }
      }
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetMappings()) {
        optionals.set(0);
      }
      if (struct.isSetTriggers()) {
        optionals.set(1);
      }
      if (struct.isSetPoolTriggers()) {
        optionals.set(2);
      }
      oprot.writeBitSet(optionals, 3);
      if (struct.isSetMappings()) {
        {
          oprot.writeI32(struct.mappings.size());
          for (WMMapping _iter1287 : struct.mappings)
          {
            _iter1287.write(oprot);
          }
        }
      }
      if (struct.isSetTriggers()) {
        {
          oprot.writeI32(struct.triggers.size());
          for (WMTrigger _iter1288 : struct.triggers)
          {
            _iter1288.write(oprot);
          }
        }
      }
      if (struct.isSetPoolTriggers()) {
        {
          oprot.writeI32(struct.poolTriggers.size());
          for (WMPoolTrigger _iter1289 : struct.poolTriggers)
          {
            _iter1289.write(oprot);
          }
        }
      }
    }
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/WMFullResourcePlan.java