@Override protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case BOLT: BoltStats bolt = (BoltStats) value_; bolt.write(oprot); return; case SPOUT: SpoutStats spout = (SpoutStats) value_; spout.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }