@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSegmentId()) { hash = (37 * hash) + SEGMENTID_FIELD_NUMBER; hash = (53 * hash) + getSegmentId().hashCode(); } hash = (37 * hash) + MINKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMinKey())); hash = (37 * hash) + MAXKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaxKey())); 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 io.pravega.controller.stream.api.grpc.v1.Controller.SegmentRange)) { return super.equals(obj); } io.pravega.controller.stream.api.grpc.v1.Controller.SegmentRange other = (io.pravega.controller.stream.api.grpc.v1.Controller.SegmentRange) obj; boolean result = true; result = result && (hasSegmentId() == other.hasSegmentId()); if (hasSegmentId()) { result = result && getSegmentId() .equals(other.getSegmentId()); } result = result && ( java.lang.Double.doubleToLongBits(getMinKey()) == java.lang.Double.doubleToLongBits( other.getMinKey())); result = result && ( java.lang.Double.doubleToLongBits(getMaxKey()) == java.lang.Double.doubleToLongBits( other.getMaxKey())); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.pravega.controller.stream.api.grpc.v1.Controller.SegmentRange other) { if (other == io.pravega.controller.stream.api.grpc.v1.Controller.SegmentRange.getDefaultInstance()) return this; if (other.hasSegmentId()) { mergeSegmentId(other.getSegmentId()); } if (other.getMinKey() != 0D) { setMinKey(other.getMinKey()); } if (other.getMaxKey() != 0D) { setMaxKey(other.getMaxKey()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }