@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 int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRowType()) { hash = (37 * hash) + ROW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getRowType().hashCode(); } if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.spanner.v1.ResultSetMetadata other) { if (other == com.google.spanner.v1.ResultSetMetadata.getDefaultInstance()) return this; if (other.hasRowType()) { mergeRowType(other.getRowType()); } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
if (type == null) { if (!current.hasMetadata() || !current.getMetadata().hasRowType()) { throw newSpannerException(ErrorCode.INTERNAL, "Missing type metadata in first message");
if (type == null) { if (!current.hasMetadata() || !current.getMetadata().hasRowType()) { throw newSpannerException(ErrorCode.INTERNAL, "Missing type metadata in first message");