@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasDropBehind()) { hash = (37 * hash) + DROPBEHIND_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getDropBehind()); } if (hasReadahead()) { hash = (37 * hash) + READAHEAD_FIELD_NUMBER; hash = (53 * hash) + hashLong(getReadahead()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasDropBehind()) { hash = (37 * hash) + DROPBEHIND_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getDropBehind()); } if (hasReadahead()) { hash = (37 * hash) + READAHEAD_FIELD_NUMBER; hash = (53 * hash) + hashLong(getReadahead()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasDropBehind()) { hash = (37 * hash) + DROPBEHIND_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getDropBehind()); } if (hasReadahead()) { hash = (37 * hash) + READAHEAD_FIELD_NUMBER; hash = (53 * hash) + hashLong(getReadahead()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto other = (org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto) obj; boolean result = true; result = result && (hasDropBehind() == other.hasDropBehind()); if (hasDropBehind()) { result = result && (getDropBehind() == other.getDropBehind()); } result = result && (hasReadahead() == other.hasReadahead()); if (hasReadahead()) { result = result && (getReadahead() == other.getReadahead()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto other = (org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto) obj; boolean result = true; result = result && (hasDropBehind() == other.hasDropBehind()); if (hasDropBehind()) { result = result && (getDropBehind() == other.getDropBehind()); } result = result && (hasReadahead() == other.hasReadahead()); if (hasReadahead()) { result = result && (getReadahead() == other.getReadahead()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto other = (org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto) obj; boolean result = true; result = result && (hasDropBehind() == other.hasDropBehind()); if (hasDropBehind()) { result = result && (getDropBehind() == other.getDropBehind()); } result = result && (hasReadahead() == other.hasReadahead()); if (hasReadahead()) { result = result && (getReadahead() == other.getReadahead()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto other) { if (other == org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto.getDefaultInstance()) return this; if (other.hasDropBehind()) { setDropBehind(other.getDropBehind()); } if (other.hasReadahead()) { setReadahead(other.getReadahead()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
static private CachingStrategy getCachingStrategy(CachingStrategyProto strategy) { Boolean dropBehind = strategy.hasDropBehind() ? strategy.getDropBehind() : null; Long readahead = strategy.hasReadahead() ? strategy.getReadahead() : null; return new CachingStrategy(dropBehind, readahead); }
static private CachingStrategy getCachingStrategy(CachingStrategyProto strategy) { Boolean dropBehind = strategy.hasDropBehind() ? strategy.getDropBehind() : null; Long readahead = strategy.hasReadahead() ? strategy.getReadahead() : null; return new CachingStrategy(dropBehind, readahead); }
public Builder mergeFrom(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto other) { if (other == org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto.getDefaultInstance()) return this; if (other.hasDropBehind()) { setDropBehind(other.getDropBehind()); } if (other.hasReadahead()) { setReadahead(other.getReadahead()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto other) { if (other == org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.CachingStrategyProto.getDefaultInstance()) return this; if (other.hasDropBehind()) { setDropBehind(other.getDropBehind()); } if (other.hasReadahead()) { setReadahead(other.getReadahead()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
static private CachingStrategy getCachingStrategy(CachingStrategyProto strategy) { Boolean dropBehind = strategy.hasDropBehind() ? strategy.getDropBehind() : null; Long readahead = strategy.hasReadahead() ? strategy.getReadahead() : null; return new CachingStrategy(dropBehind, readahead); }