@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.ScaleResponse)) { return super.equals(obj); } io.pravega.controller.stream.api.grpc.v1.Controller.ScaleResponse other = (io.pravega.controller.stream.api.grpc.v1.Controller.ScaleResponse) obj; boolean result = true; result = result && status_ == other.status_; result = result && getSegmentsList() .equals(other.getSegmentsList()); result = result && (getEpoch() == other.getEpoch()); 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(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getSegmentsCount() > 0) { hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; hash = (53 * hash) + getSegmentsList().hashCode(); } hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + getEpoch(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }