@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.v1.ResultSetMetadata)) { return super.equals(obj); } com.google.spanner.v1.ResultSetMetadata other = (com.google.spanner.v1.ResultSetMetadata) obj; boolean result = true; result = result && (hasRowType() == other.hasRowType()); if (hasRowType()) { result = result && getRowType().equals(other.getRowType()); } result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { result = result && getTransaction().equals(other.getTransaction()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.v1.Type)) { return super.equals(obj); } com.google.spanner.v1.Type other = (com.google.spanner.v1.Type) obj; boolean result = true; result = result && code_ == other.code_; result = result && (hasArrayElementType() == other.hasArrayElementType()); if (hasArrayElementType()) { result = result && getArrayElementType().equals(other.getArrayElementType()); } result = result && (hasStructType() == other.hasStructType()); if (hasStructType()) { result = result && getStructType().equals(other.getStructType()); } result = result && unknownFields.equals(other.unknownFields); return result; }