@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (37 * hash) + CHUNKED_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChunkedValue()); hash = (37 * hash) + RESUME_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getResumeToken().hashCode(); if (hasStats()) { hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStats().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (other.getChunkedValue() != false) { setChunkedValue(other.getChunkedValue());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.v1.PartialResultSet)) { return super.equals(obj); } com.google.spanner.v1.PartialResultSet other = (com.google.spanner.v1.PartialResultSet) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && getValuesList().equals(other.getValuesList()); result = result && (getChunkedValue() == other.getChunkedValue()); result = result && getResumeToken().equals(other.getResumeToken()); result = result && (hasStats() == other.hasStats()); if (hasStats()) { result = result && getStats().equals(other.getStats()); } result = result && unknownFields.equals(other.unknownFields); return result; }
if (pos == current.getValuesCount() && current.getChunkedValue()) { throw newSpannerException(ErrorCode.INTERNAL, "Unexpected chunked PartialResultSet."); } else { if (!current.getChunkedValue() || pos != current.getValuesCount()) { return value; ? value.getStringValue() : new ArrayList<com.google.protobuf.Value>(value.getListValue().getValuesList()); while (current.getChunkedValue() && pos == current.getValuesCount()) { if (!ensureReady(StreamValue.RESULT)) { throw newSpannerException(
if (pos == current.getValuesCount() && current.getChunkedValue()) { throw newSpannerException(ErrorCode.INTERNAL, "Unexpected chunked PartialResultSet."); } else { if (!current.getChunkedValue() || pos != current.getValuesCount()) { return value; ? value.getStringValue() : new ArrayList<com.google.protobuf.Value>(value.getListValue().getValuesList()); while (current.getChunkedValue() && pos == current.getValuesCount()) { if (!ensureReady(StreamValue.RESULT)) { throw newSpannerException(