/** * * * <pre> * If this request is resuming a previously interrupted read, * `resume_token` should be copied from the last * [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this * enables the new read to resume where the last read left off. The * rest of the request parameters must exactly match the request * that yielded this token. * </pre> * * <code>bytes resume_token = 9;</code> */ public Builder clearResumeToken() { resumeToken_ = getDefaultInstance().getResumeToken(); onChanged(); return this; }
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); hash = (37 * hash) + RESUME_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getResumeToken().hashCode(); hash = (37 * hash) + PARTITION_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPartitionToken().hashCode();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.v1.ReadRequest)) { return super.equals(obj); } com.google.spanner.v1.ReadRequest other = (com.google.spanner.v1.ReadRequest) obj; boolean result = true; result = result && getSession().equals(other.getSession()); result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { result = result && getTransaction().equals(other.getTransaction()); } result = result && getTable().equals(other.getTable()); result = result && getIndex().equals(other.getIndex()); result = result && getColumnsList().equals(other.getColumnsList()); result = result && (hasKeySet() == other.hasKeySet()); if (hasKeySet()) { result = result && getKeySet().equals(other.getKeySet()); } result = result && (getLimit() == other.getLimit()); result = result && getResumeToken().equals(other.getResumeToken()); result = result && getPartitionToken().equals(other.getPartitionToken()); result = result && unknownFields.equals(other.unknownFields); return result; }
setLimit(other.getLimit()); if (other.getResumeToken() != com.google.protobuf.ByteString.EMPTY) { setResumeToken(other.getResumeToken());