/** * * * <pre> * Query plan and execution statistics for the statement that produced this * streaming result set. These can be requested by setting * [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] and are sent * only once with the last response in the stream. * This field will also be present in the last response for DML * statements. * </pre> * * <code>.google.spanner.v1.ResultSetStats stats = 5;</code> */ public com.google.spanner.v1.ResultSetStatsOrBuilder getStatsOrBuilder() { return getStats(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (metadata_ != null) { output.writeMessage(1, getMetadata()); } for (int i = 0; i < values_.size(); i++) { output.writeMessage(2, values_.get(i)); } if (chunkedValue_ != false) { output.writeBool(3, chunkedValue_); } if (!resumeToken_.isEmpty()) { output.writeBytes(4, resumeToken_); } if (stats_ != null) { output.writeMessage(5, getStats()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); } for (int i = 0; i < values_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, values_.get(i)); } if (chunkedValue_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, chunkedValue_); } if (!resumeToken_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, resumeToken_); } if (stats_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStats()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@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; }
@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; }
mergeStats(other.getStats());
statistics = current.getStats();
statistics = current.getStats();