/** * <code>optional .alluxio.proto.journal.InodeFileEntry inode_file = 11;</code> */ public Builder setInodeFile( alluxio.proto.journal.File.InodeFileEntry.Builder builderForValue) { if (inodeFileBuilder_ == null) { inodeFile_ = builderForValue.build(); onChanged(); } else { inodeFileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /**
public Builder mergeFrom(alluxio.proto.journal.File.InodeFileEntry other) { if (other == alluxio.proto.journal.File.InodeFileEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); setParentId(other.getParentId()); onChanged(); onChanged(); setPinned(other.getPinned()); setCreationTimeMs(other.getCreationTimeMs()); setLastModificationTimeMs(other.getLastModificationTimeMs()); setBlockSizeBytes(other.getBlockSizeBytes()); setLength(other.getLength()); setCompleted(other.getCompleted()); setCacheable(other.getCacheable()); bitField0_ = (bitField0_ & ~0x00000800); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_);
@Override public JournalEntry toJournalEntry() { InodeFileEntry inodeFile = InodeFileEntry.newBuilder() .addAllBlocks(getBlockIds()) .setBlockSizeBytes(getBlockSizeBytes()) .setCacheable(isCacheable()) .setCompleted(isCompleted()) .setCreationTimeMs(getCreationTimeMs()) .setGroup(getGroup()) .setId(getId()) .setLastModificationTimeMs(getLastModificationTimeMs()) .setLength(getLength()) .setMode(getMode()) .setName(getName()) .setOwner(getOwner()) .setParentId(getParentId()) .setPersistenceState(getPersistenceState().name()) .setPinned(isPinned()) .setTtl(getTtl()) .setTtlAction(ProtobufUtils.toProtobuf(getTtlAction())) .setUfsFingerprint(getUfsFingerprint()) .build(); return JournalEntry.newBuilder().setInodeFile(inodeFile).build(); }
/** * <code>optional .alluxio.proto.journal.InodeFileEntry inode_file = 11;</code> */ public Builder setInodeFile( alluxio.proto.journal.File.InodeFileEntry.Builder builderForValue) { if (inodeFileBuilder_ == null) { inodeFile_ = builderForValue.build(); onChanged(); } else { inodeFileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; return this; } /**
public Builder mergeFrom(alluxio.proto.journal.File.InodeFileEntry other) { if (other == alluxio.proto.journal.File.InodeFileEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); setParentId(other.getParentId()); onChanged(); onChanged(); setPinned(other.getPinned()); setCreationTimeMs(other.getCreationTimeMs()); setLastModificationTimeMs(other.getLastModificationTimeMs()); setBlockSizeBytes(other.getBlockSizeBytes()); setLength(other.getLength()); setCompleted(other.getCompleted()); setCacheable(other.getCacheable()); bitField0_ = (bitField0_ & ~0x00000800); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_);
@Override public JournalEntry toJournalEntry() { InodeFileEntry inodeFile = InodeFileEntry.newBuilder() .addAllBlocks(getBlockIds()) .setBlockSizeBytes(getBlockSizeBytes()) .setCacheable(isCacheable()) .setCompleted(isCompleted()) .setCreationTimeMs(getCreationTimeMs()) .setId(getId()) .setLastModificationTimeMs(getLastModificationTimeMs()) .setLength(getLength()) .setName(getName()) .setParentId(getParentId()) .setPersistenceState(getPersistenceState().name()) .setPinned(isPinned()) .setReplicationDurable(getReplicationDurable()) .setReplicationMax(getReplicationMax()) .setReplicationMin(getReplicationMin()) .setPersistJobId(getPersistJobId()) .setTempUfsPath(getTempUfsPath()) .setTtl(getTtl()) .setTtlAction(ProtobufUtils.toProtobuf(getTtlAction())) .setUfsFingerprint(getUfsFingerprint()) .setAcl(ProtoUtils.toProto(mAcl)) .build(); return JournalEntry.newBuilder().setInodeFile(inodeFile).build(); }