@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.v1.CommitResponse)) { return super.equals(obj); } com.google.spanner.v1.CommitResponse other = (com.google.spanner.v1.CommitResponse) obj; boolean result = true; result = result && (hasCommitTimestamp() == other.hasCommitTimestamp()); if (hasCommitTimestamp()) { result = result && getCommitTimestamp().equals(other.getCommitTimestamp()); } 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 (hasCommitTimestamp()) { hash = (37 * hash) + COMMIT_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getCommitTimestamp().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.spanner.v1.CommitResponse other) { if (other == com.google.spanner.v1.CommitResponse.getDefaultInstance()) return this; if (other.hasCommitTimestamp()) { mergeCommitTimestamp(other.getCommitTimestamp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
if (!commitResponse.hasCommitTimestamp()) { throw newSpannerException( ErrorCode.INTERNAL, "Missing commitTimestamp:\n" + session.getName());
if (!commitResponse.hasCommitTimestamp()) { throw newSpannerException( ErrorCode.INTERNAL, "Missing commitTimestamp:\n" + session.getName());