@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); } if (hasMountPoint()) { hash = (37 * hash) + MOUNT_POINT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMountPoint()); } if (hasDirectChildrenLoaded()) { hash = (37 * hash) + DIRECT_CHILDREN_LOADED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDirectChildrenLoaded()); } if (hasDefaultAcl()) { hash = (37 * hash) + DEFAULTACL_FIELD_NUMBER; hash = (53 * hash) + getDefaultAcl().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
== other.getId()); result = result && (hasMountPoint() == other.hasMountPoint()); if (hasMountPoint()) { result = result && (getMountPoint() == other.getMountPoint());
public Builder mergeFrom(alluxio.proto.journal.File.UpdateInodeDirectoryEntry other) { if (other == alluxio.proto.journal.File.UpdateInodeDirectoryEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasMountPoint()) { setMountPoint(other.getMountPoint()); } if (other.hasDirectChildrenLoaded()) { setDirectChildrenLoaded(other.getDirectChildrenLoaded()); } if (other.hasDefaultAcl()) { mergeDefaultAcl(other.getDefaultAcl()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * Updates this inode directory's state from the given entry. * * @param entry the entry */ public void updateFromEntry(UpdateInodeDirectoryEntry entry) { if (entry.hasDefaultAcl()) { setDefaultACL( (DefaultAccessControlList) ProtoUtils.fromProto(entry.getDefaultAcl())); } if (entry.hasDirectChildrenLoaded()) { setDirectChildrenLoaded(entry.getDirectChildrenLoaded()); } if (entry.hasMountPoint()) { setMountPoint(entry.getMountPoint()); } }