@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata)) { return super.equals(obj); } com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata other = (com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) obj; boolean result = true; result = result && getDatabase().equals(other.getDatabase()); result = result && getStatementsList().equals(other.getStatementsList()); result = result && getCommitTimestampsList().equals(other.getCommitTimestampsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDatabaseBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); } { int dataSize = 0; for (int i = 0; i < statements_.size(); i++) { dataSize += computeStringSizeNoTag(statements_.getRaw(i)); } size += dataSize; size += 1 * getStatementsList().size(); } for (int i = 0; i < commitTimestamps_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, commitTimestamps_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); if (getStatementsCount() > 0) { hash = (37 * hash) + STATEMENTS_FIELD_NUMBER; hash = (53 * hash) + getStatementsList().hashCode(); } if (getCommitTimestampsCount() > 0) { hash = (37 * hash) + COMMIT_TIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + getCommitTimestampsList().hashCode(); } 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 com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata)) { return super.equals(obj); } com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata other = (com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) obj; boolean result = true; result = result && getDatabase().equals(other.getDatabase()); result = result && getStatementsList().equals(other.getStatementsList()); result = result && getCommitTimestampsList().equals(other.getCommitTimestampsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDatabaseBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); } { int dataSize = 0; for (int i = 0; i < statements_.size(); i++) { dataSize += computeStringSizeNoTag(statements_.getRaw(i)); } size += dataSize; size += 1 * getStatementsList().size(); } for (int i = 0; i < commitTimestamps_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, commitTimestamps_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); if (getStatementsCount() > 0) { hash = (37 * hash) + STATEMENTS_FIELD_NUMBER; hash = (53 * hash) + getStatementsList().hashCode(); } if (getCommitTimestampsCount() > 0) { hash = (37 * hash) + COMMIT_TIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + getCommitTimestampsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }