@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.v1.KeySet)) { return super.equals(obj); } com.google.spanner.v1.KeySet other = (com.google.spanner.v1.KeySet) obj; boolean result = true; result = result && getKeysList().equals(other.getKeysList()); result = result && getRangesList().equals(other.getRangesList()); result = result && (getAll() == other.getAll()); 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 (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } if (getRangesCount() > 0) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRangesList().hashCode(); } hash = (37 * hash) + ALL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAll()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }