Query explain metrics. This is only present when the
RunQueryRequest.explain_options
is provided, and it is sent only once with the last response in the stream.
Query explain metrics. This is only present when the
RunQueryRequest.explain_options
is provided, and it is sent only once with the last response in the stream.
Query explain metrics. This is only present when the
RunQueryRequest.explain_options
is provided, and it is sent only once with the last response in the stream.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface RunQueryResponseOrBuilder (2.31.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.31.2 (latest)](/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.31.1](/java/docs/reference/google-cloud-datastore/2.31.1/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.30.0](/java/docs/reference/google-cloud-datastore/2.30.0/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.29.1](/java/docs/reference/google-cloud-datastore/2.29.1/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.28.2](/java/docs/reference/google-cloud-datastore/2.28.2/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.27.1](/java/docs/reference/google-cloud-datastore/2.27.1/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.26.4](/java/docs/reference/google-cloud-datastore/2.26.4/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.25.2](/java/docs/reference/google-cloud-datastore/2.25.2/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.24.3](/java/docs/reference/google-cloud-datastore/2.24.3/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.23.0](/java/docs/reference/google-cloud-datastore/2.23.0/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.22.0](/java/docs/reference/google-cloud-datastore/2.22.0/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.21.3](/java/docs/reference/google-cloud-datastore/2.21.3/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.20.2](/java/docs/reference/google-cloud-datastore/2.20.2/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.19.2](/java/docs/reference/google-cloud-datastore/2.19.2/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.18.5](/java/docs/reference/google-cloud-datastore/2.18.5/com.google.datastore.v1.RunQueryResponseOrBuilder)\n- [2.17.6](/java/docs/reference/google-cloud-datastore/2.17.6/com.google.datastore.v1.RunQueryResponseOrBuilder) \n\n public interface RunQueryResponseOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getBatch()\n\n public abstract QueryResultBatch getBatch()\n\nA batch of query results (always present).\n\n`.google.datastore.v1.QueryResultBatch batch = 1;`\n\n### getBatchOrBuilder()\n\n public abstract QueryResultBatchOrBuilder getBatchOrBuilder()\n\nA batch of query results (always present).\n\n`.google.datastore.v1.QueryResultBatch batch = 1;`\n\n### getExplainMetrics()\n\n public abstract ExplainMetrics getExplainMetrics()\n\nQuery explain metrics. This is only present when the\nRunQueryRequest.explain_options\nis provided, and it is sent only once with the last response in the stream.\n\n`.google.datastore.v1.ExplainMetrics explain_metrics = 9;`\n\n### getExplainMetricsOrBuilder()\n\n public abstract ExplainMetricsOrBuilder getExplainMetricsOrBuilder()\n\nQuery explain metrics. This is only present when the\nRunQueryRequest.explain_options\nis provided, and it is sent only once with the last response in the stream.\n\n`.google.datastore.v1.ExplainMetrics explain_metrics = 9;`\n\n### getQuery()\n\n public abstract Query getQuery()\n\nThe parsed form of the `GqlQuery` from the request, if it was set.\n\n`.google.datastore.v1.Query query = 2;`\n\n### getQueryOrBuilder()\n\n public abstract QueryOrBuilder getQueryOrBuilder()\n\nThe parsed form of the `GqlQuery` from the request, if it was set.\n\n`.google.datastore.v1.Query query = 2;`\n\n### getTransaction()\n\n public abstract ByteString getTransaction()\n\nThe identifier of the transaction that was started as part of this\nRunQuery request.\n\nSet only when\nReadOptions.new_transaction\nwas set in\nRunQueryRequest.read_options.\n\n`bytes transaction = 5;`\n\n### hasBatch()\n\n public abstract boolean hasBatch()\n\nA batch of query results (always present).\n\n`.google.datastore.v1.QueryResultBatch batch = 1;`\n\n### hasExplainMetrics()\n\n public abstract boolean hasExplainMetrics()\n\nQuery explain metrics. This is only present when the\nRunQueryRequest.explain_options\nis provided, and it is sent only once with the last response in the stream.\n\n`.google.datastore.v1.ExplainMetrics explain_metrics = 9;`\n\n### hasQuery()\n\n public abstract boolean hasQuery()\n\nThe parsed form of the `GqlQuery` from the request, if it was set.\n\n`.google.datastore.v1.Query query = 2;`"]]