public static MutableInodeFile fromProto(InodeOrBuilder inode) {
    return new MutableInodeFile(BlockId.getContainerId(inode.getId()))
        .setCreationTimeMs(inode.getCreationTimeMs())
        .setLastModificationTimeMs(inode.getLastModifiedMs(), true)
        .setTtl(inode.getTtl())
        .setTtlAction(inode.getTtlAction())
        .setName(inode.getName())
        .setParentId(inode.getParentId())
        .setPersistenceState(PersistenceState.valueOf(inode.getPersistenceState()))
        .setPinned(inode.getIsPinned())
        .setInternalAcl(ProtoUtils.fromProto(inode.getAccessAcl()))
        .setUfsFingerprint(inode.getUfsFingerprint())
        .setBlockSizeBytes(inode.getBlockSizeBytes())
        .setBlockIds(inode.getBlocksList())
        .setCacheable(inode.getIsCacheable())
        .setCompleted(inode.getIsCompleted())
        .setLength(inode.getLength())
        .setReplicationDurable(inode.getReplicationDurable())
        .setReplicationMax(inode.getReplicationMax())
        .setReplicationMin(inode.getReplicationMin())
        .setPersistJobId(inode.getPersistJobId())
        .setTempUfsPath(inode.getPersistJobTempUfsPath());
  }
public static MutableInodeFile fromProto ( InodeOrBuilder inode ) { return new MutableInodeFile ( BlockId . getContainerId ( inode . getId ( ) ) ) . setCreationTimeMs ( inode . getCreationTimeMs ( ) ) . setLastModificationTimeMs ( inode . getLastModifiedMs ( ) , true ) . setTtl ( inode . getTtl ( ) ) . setTtlAction ( inode . getTtlAction ( ) ) . setName ( inode . getName ( ) ) . setParentId ( inode . getParentId ( ) ) . setPersistenceState ( PersistenceState . valueOf ( inode . getPersistenceState ( ) ) ) . setPinned ( inode . getIsPinned ( ) ) . setInternalAcl ( ProtoUtils . fromProto ( inode . getAccessAcl ( ) ) ) . setUfsFingerprint ( inode . getUfsFingerprint ( ) ) . setBlockSizeBytes ( inode . getBlockSizeBytes ( ) ) . setBlockIds ( inode . getBlocksList ( ) ) . setCacheable ( inode . getIsCacheable ( ) ) . setCompleted ( inode . getIsCompleted ( ) ) . setLength ( inode . getLength ( ) ) . setReplicationDurable ( inode . getReplicationDurable ( ) ) . setReplicationMax ( inode . getReplicationMax ( ) ) . setReplicationMin ( inode . getReplicationMin ( ) ) . setPersistJobId ( inode . getPersistJobId ( ) ) . setTempUfsPath ( inode . getPersistJobTempUfsPath ( ) ) ; }
@param inode a protocol buffer inode
@return the {@link MutableInodeFile} for the inode