@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof alluxio.grpc.FileSystemMasterCommonPOptions)) { return super.equals(obj); } alluxio.grpc.FileSystemMasterCommonPOptions other = (alluxio.grpc.FileSystemMasterCommonPOptions) obj; boolean result = true; result = result && (hasSyncIntervalMs() == other.hasSyncIntervalMs()); if (hasSyncIntervalMs()) { result = result && (getSyncIntervalMs() == other.getSyncIntervalMs()); } result = result && (hasTtl() == other.hasTtl()); if (hasTtl()) { result = result && (getTtl() == other.getTtl()); } result = result && (hasTtlAction() == other.hasTtlAction()); if (hasTtlAction()) { result = result && ttlAction_ == other.ttlAction_; } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSyncIntervalMs()) { hash = (37 * hash) + SYNCINTERVALMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSyncIntervalMs()); } if (hasTtl()) { hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); } if (hasTtlAction()) { hash = (37 * hash) + TTLACTION_FIELD_NUMBER; hash = (53 * hash) + ttlAction_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(alluxio.grpc.FileSystemMasterCommonPOptions other) { if (other == alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance()) return this; if (other.hasSyncIntervalMs()) { setSyncIntervalMs(other.getSyncIntervalMs()); } if (other.hasTtl()) { setTtl(other.getTtl()); } if (other.hasTtlAction()) { setTtlAction(other.getTtlAction()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }