Debugging statistics from the execution of the query. Note that the
debugging stats are subject to change as Firestore evolves. It could
include:
{
"indexes_entries_scanned": "1000",
"documents_scanned": "20",
"billing_details" : {
"documents_billable": "20",
"index_entries_billable": "1000",
"min_query_cost": "0"
}
}
Debugging statistics from the execution of the query. Note that the
debugging stats are subject to change as Firestore evolves. It could
include:
{
"indexes_entries_scanned": "1000",
"documents_scanned": "20",
"billing_details" : {
"documents_billable": "20",
"index_entries_billable": "1000",
"min_query_cost": "0"
}
}
Debugging statistics from the execution of the query. Note that the
debugging stats are subject to change as Firestore evolves. It could
include:
{
"indexes_entries_scanned": "1000",
"documents_scanned": "20",
"billing_details" : {
"documents_billable": "20",
"index_entries_billable": "1000",
"min_query_cost": "0"
}
}
[[["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 ExecutionStatsOrBuilder (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.ExecutionStatsOrBuilder)\n- [2.31.1](/java/docs/reference/google-cloud-datastore/2.31.1/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.30.0](/java/docs/reference/google-cloud-datastore/2.30.0/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.29.1](/java/docs/reference/google-cloud-datastore/2.29.1/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.28.2](/java/docs/reference/google-cloud-datastore/2.28.2/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.27.1](/java/docs/reference/google-cloud-datastore/2.27.1/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.26.4](/java/docs/reference/google-cloud-datastore/2.26.4/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.25.2](/java/docs/reference/google-cloud-datastore/2.25.2/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.24.3](/java/docs/reference/google-cloud-datastore/2.24.3/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.23.0](/java/docs/reference/google-cloud-datastore/2.23.0/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.22.0](/java/docs/reference/google-cloud-datastore/2.22.0/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.21.3](/java/docs/reference/google-cloud-datastore/2.21.3/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.20.2](/java/docs/reference/google-cloud-datastore/2.20.2/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.19.2](/java/docs/reference/google-cloud-datastore/2.19.2/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.18.5](/java/docs/reference/google-cloud-datastore/2.18.5/com.google.datastore.v1.ExecutionStatsOrBuilder)\n- [2.17.6](/java/docs/reference/google-cloud-datastore/2.17.6/com.google.datastore.v1.ExecutionStatsOrBuilder) \n\n public interface ExecutionStatsOrBuilder 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### getDebugStats()\n\n public abstract Struct getDebugStats()\n\nDebugging statistics from the execution of the query. Note that the\ndebugging stats are subject to change as Firestore evolves. It could\ninclude:\n{\n\"indexes_entries_scanned\": \"1000\",\n\"documents_scanned\": \"20\",\n\"billing_details\" : {\n\"documents_billable\": \"20\",\n\"index_entries_billable\": \"1000\",\n\"min_query_cost\": \"0\"\n}\n}\n\n`.google.protobuf.Struct debug_stats = 5;`\n\n### getDebugStatsOrBuilder()\n\n public abstract StructOrBuilder getDebugStatsOrBuilder()\n\nDebugging statistics from the execution of the query. Note that the\ndebugging stats are subject to change as Firestore evolves. It could\ninclude:\n{\n\"indexes_entries_scanned\": \"1000\",\n\"documents_scanned\": \"20\",\n\"billing_details\" : {\n\"documents_billable\": \"20\",\n\"index_entries_billable\": \"1000\",\n\"min_query_cost\": \"0\"\n}\n}\n\n`.google.protobuf.Struct debug_stats = 5;`\n\n### getExecutionDuration()\n\n public abstract Duration getExecutionDuration()\n\nTotal time to execute the query in the backend.\n\n`.google.protobuf.Duration execution_duration = 3;`\n\n### getExecutionDurationOrBuilder()\n\n public abstract DurationOrBuilder getExecutionDurationOrBuilder()\n\nTotal time to execute the query in the backend.\n\n`.google.protobuf.Duration execution_duration = 3;`\n\n### getReadOperations()\n\n public abstract long getReadOperations()\n\nTotal billable read operations.\n\n`int64 read_operations = 4;`\n\n### getResultsReturned()\n\n public abstract long getResultsReturned()\n\nTotal number of results returned, including documents, projections,\naggregation results, keys.\n\n`int64 results_returned = 1;`\n\n### hasDebugStats()\n\n public abstract boolean hasDebugStats()\n\nDebugging statistics from the execution of the query. Note that the\ndebugging stats are subject to change as Firestore evolves. It could\ninclude:\n{\n\"indexes_entries_scanned\": \"1000\",\n\"documents_scanned\": \"20\",\n\"billing_details\" : {\n\"documents_billable\": \"20\",\n\"index_entries_billable\": \"1000\",\n\"min_query_cost\": \"0\"\n}\n}\n\n`.google.protobuf.Struct debug_stats = 5;`\n\n### hasExecutionDuration()\n\n public abstract boolean hasExecutionDuration()\n\nTotal time to execute the query in the backend.\n\n`.google.protobuf.Duration execution_duration = 3;`"]]