hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); if (hasParentId()) { hash = (37 * hash) + PARENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getParentId()); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasPersistenceState()) { hash = (37 * hash) + PERSISTENCE_STATE_FIELD_NUMBER; hash = (53 * hash) + getPersistenceState().hashCode(); if (hasPinned()) { hash = (37 * hash) + PINNED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPinned()); if (hasCreationTimeMs()) { hash = (37 * hash) + CREATION_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreationTimeMs());
.computeBytesSize(3, getNameBytes()); .computeBytesSize(4, getPersistenceStateBytes()); size += 1 * getBlocksList().size(); .computeBytesSize(14, getOwnerBytes()); .computeBytesSize(15, getGroupBytes()); .computeBytesSize(18, getUfsFingerprintBytes()); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
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()); if (other.hasParentId()) { setParentId(other.getParentId()); if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); if (other.hasPersistenceState()) { bitField0_ |= 0x00000008; persistenceState_ = other.persistenceState_; onChanged(); if (other.hasPinned()) { setPinned(other.getPinned()); if (other.hasCreationTimeMs()) { setCreationTimeMs(other.getCreationTimeMs()); if (other.hasLastModificationTimeMs()) { setLastModificationTimeMs(other.getLastModificationTimeMs()); if (other.hasBlockSizeBytes()) { setBlockSizeBytes(other.getBlockSizeBytes());
/** * Converts the entry to an {@link InodeFile}. * * @param entry the entry to convert * @return the {@link InodeFile} representation */ public static InodeFile fromJournalEntry(InodeFileEntry entry) { // If journal entry has no mode set, set default mode for backwards-compatibility. short mode = entry.hasMode() ? (short) entry.getMode() : Constants.DEFAULT_FILE_SYSTEM_MODE; return new InodeFile(BlockId.getContainerId(entry.getId())) .setName(entry.getName()) .setBlockIds(entry.getBlocksList()) .setBlockSizeBytes(entry.getBlockSizeBytes()) .setCacheable(entry.getCacheable()) .setCompleted(entry.getCompleted()) .setCreationTimeMs(entry.getCreationTimeMs()) .setLastModificationTimeMs(entry.getLastModificationTimeMs(), true) .setLength(entry.getLength()) .setParentId(entry.getParentId()) .setPersistenceState(PersistenceState.valueOf(entry.getPersistenceState())) .setPinned(entry.getPinned()) .setTtl(entry.getTtl()) .setTtlAction((ProtobufUtils.fromProtobuf(entry.getTtlAction()))) .setOwner(entry.getOwner()) .setGroup(entry.getGroup()) .setMode(mode) .setUfsFingerprint(entry.hasUfsFingerprint() ? entry.getUfsFingerprint() : Constants.INVALID_UFS_FINGERPRINT); }
/** * <code>optional string group = 15;</code> */ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00004000); group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /**
size += 1 * getBlocksList().size(); .computeMessageSize(19, getAcl());
result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); result = result && (hasParentId() == other.hasParentId()); if (hasParentId()) { result = result && (getParentId() == other.getParentId()); result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); result = result && (hasPersistenceState() == other.hasPersistenceState()); if (hasPersistenceState()) { result = result && getPersistenceState() .equals(other.getPersistenceState()); result = result && (hasPinned() == other.hasPinned()); if (hasPinned()) { result = result && (getPinned() == other.getPinned()); result = result && (hasCreationTimeMs() == other.hasCreationTimeMs()); if (hasCreationTimeMs()) { result = result && (getCreationTimeMs() == other.getCreationTimeMs());
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()); if (other.hasParentId()) { setParentId(other.getParentId()); if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); if (other.hasPersistenceState()) { bitField0_ |= 0x00000008; persistenceState_ = other.persistenceState_; onChanged(); if (other.hasPinned()) { setPinned(other.getPinned()); if (other.hasCreationTimeMs()) { setCreationTimeMs(other.getCreationTimeMs()); if (other.hasLastModificationTimeMs()) { setLastModificationTimeMs(other.getLastModificationTimeMs()); if (other.hasBlockSizeBytes()) { setBlockSizeBytes(other.getBlockSizeBytes());
MutableInodeFile ret = new MutableInodeFile(BlockId.getContainerId(entry.getId())) .setName(entry.getName()) .setBlockIds(entry.getBlocksList()) .setBlockSizeBytes(entry.getBlockSizeBytes()) .setCacheable(entry.getCacheable()) .setCompleted(entry.getCompleted()) .setCreationTimeMs(entry.getCreationTimeMs()) .setLastModificationTimeMs(entry.getLastModificationTimeMs(), true) .setLength(entry.getLength()) .setParentId(entry.getParentId()) .setPersistenceState(PersistenceState.valueOf(entry.getPersistenceState())) .setPinned(entry.getPinned()) .setPersistJobId(entry.getPersistJobId()) .setReplicationDurable(entry.getReplicationDurable()) .setReplicationMax(entry.getReplicationMax()) .setReplicationMin(entry.getReplicationMin()) .setTempUfsPath(entry.getTempUfsPath()) .setTtl(entry.getTtl()) .setTtlAction((ProtobufUtils.fromProtobuf(entry.getTtlAction()))) .setUfsFingerprint(entry.hasUfsFingerprint() ? entry.getUfsFingerprint() : Constants.INVALID_UFS_FINGERPRINT); if (entry.hasAcl()) { ret.mAcl = ProtoUtils.fromProto(entry.getAcl()); } else { acl.setOwningUser(entry.getOwner()); acl.setOwningGroup(entry.getGroup()); short mode = entry.hasMode() ? (short) entry.getMode() : Constants.DEFAULT_FILE_SYSTEM_MODE; acl.setMode(mode);
/** * <code>optional string group = 15;</code> */ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00004000); group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /**