@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 (hasLength()) { hash = (37 * hash) + LENGTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLength()); } if (hasOpTimeMs()) { hash = (37 * hash) + OP_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOpTimeMs()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof alluxio.proto.journal.File.PersistFileEntry)) { return super.equals(obj); } alluxio.proto.journal.File.PersistFileEntry other = (alluxio.proto.journal.File.PersistFileEntry) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); } result = result && (hasLength() == other.hasLength()); if (hasLength()) { result = result && (getLength() == other.getLength()); } result = result && (hasOpTimeMs() == other.hasOpTimeMs()); if (hasOpTimeMs()) { result = result && (getOpTimeMs() == other.getOpTimeMs()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(alluxio.proto.journal.File.PersistFileEntry other) { if (other == alluxio.proto.journal.File.PersistFileEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasOpTimeMs()) { setOpTimeMs(other.getOpTimeMs()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(alluxio.proto.journal.File.PersistFileEntry other) { if (other == alluxio.proto.journal.File.PersistFileEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasOpTimeMs()) { setOpTimeMs(other.getOpTimeMs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }