@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse)) { return super.equals(obj); } com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse other = (com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse) obj; boolean result = true; result = result && getCryptoKeyVersionsList().equals(other.getCryptoKeyVersionsList()); result = result && getNextPageToken().equals(other.getNextPageToken()); result = result && (getTotalSize() == other.getTotalSize()); 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 (getCryptoKeyVersionsCount() > 0) { hash = (37 * hash) + CRYPTO_KEY_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getCryptoKeyVersionsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; hash = (53 * hash) + getTotalSize(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
onChanged(); if (other.getTotalSize() != 0) { setTotalSize(other.getTotalSize());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse)) { return super.equals(obj); } com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse other = (com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse) obj; boolean result = true; result = result && getCryptoKeyVersionsList().equals(other.getCryptoKeyVersionsList()); result = result && getNextPageToken().equals(other.getNextPageToken()); result = result && (getTotalSize() == other.getTotalSize()); 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 (getCryptoKeyVersionsCount() > 0) { hash = (37 * hash) + CRYPTO_KEY_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getCryptoKeyVersionsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; hash = (53 * hash) + getTotalSize(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
onChanged(); if (other.getTotalSize() != 0) { setTotalSize(other.getTotalSize());