Reference documentation and code samples for the Cloud Firestore V1 Client class RunQueryResponse.
The response for
Firestore.RunQuery.
Generated from protobuf message google.firestore.v1.RunQueryResponse
Namespace
Google \ Cloud \ Firestore \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ transaction
string
The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response.
The time at which the document was read. This may be monotonically increasing; in this case, the previous documents in the result stream are guaranteed not to have changed between their read_time and this one. If the query returns no results, a response with read_time and no document will be sent, and this represents the time at which the query was run.
↳ skipped_results
int
The number of results that have been skipped due to an offset between the last response and the current response.
↳ done
bool
If present, Firestore has completely finished the request and no more documents will be returned.
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.
getTransaction
The transaction that was started as part of this request.
Can only be set in the first response, and only if
RunQueryRequest.new_transaction
was set in the request. If set, no other fields will be set in this
response.
Returns
Type
Description
string
setTransaction
The transaction that was started as part of this request.
Can only be set in the first response, and only if
RunQueryRequest.new_transaction
was set in the request. If set, no other fields will be set in this
response.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDocument
A query result, not set when reporting partial progress.
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time and this one.
If the query returns no results, a response with read_time and no
document will be sent, and this represents the time at which the query
was run.
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time and this one.
If the query returns no results, a response with read_time and no
document will be sent, and this represents the time at which the query
was run.
The number of results that have been skipped due to an offset between
the last response and the current response.
Returns
Type
Description
int
setSkippedResults
The number of results that have been skipped due to an offset between
the last response and the current response.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDone
If present, Firestore has completely finished the request and no more
documents will be returned.
Returns
Type
Description
bool
hasDone
setDone
If present, Firestore has completely finished the request and no more
documents will be returned.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getExplainMetrics
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,["# Cloud Firestore V1 Client - Class RunQueryResponse (1.53.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.53.0 (latest)](/php/docs/reference/cloud-firestore/latest/V1.RunQueryResponse)\n- [1.52.0](/php/docs/reference/cloud-firestore/1.52.0/V1.RunQueryResponse)\n- [1.51.0](/php/docs/reference/cloud-firestore/1.51.0/V1.RunQueryResponse)\n- [1.50.0](/php/docs/reference/cloud-firestore/1.50.0/V1.RunQueryResponse)\n- [1.48.1](/php/docs/reference/cloud-firestore/1.48.1/V1.RunQueryResponse)\n- [1.47.3](/php/docs/reference/cloud-firestore/1.47.3/V1.RunQueryResponse)\n- [1.46.0](/php/docs/reference/cloud-firestore/1.46.0/V1.RunQueryResponse)\n- [1.45.2](/php/docs/reference/cloud-firestore/1.45.2/V1.RunQueryResponse)\n- [1.44.1](/php/docs/reference/cloud-firestore/1.44.1/V1.RunQueryResponse)\n- [1.43.3](/php/docs/reference/cloud-firestore/1.43.3/V1.RunQueryResponse)\n- [1.40.0](/php/docs/reference/cloud-firestore/1.40.0/V1.RunQueryResponse)\n- [1.39.0](/php/docs/reference/cloud-firestore/1.39.0/V1.RunQueryResponse)\n- [1.38.0](/php/docs/reference/cloud-firestore/1.38.0/V1.RunQueryResponse)\n- [1.37.7](/php/docs/reference/cloud-firestore/1.37.7/V1.RunQueryResponse)\n- [1.36.1](/php/docs/reference/cloud-firestore/1.36.1/V1.RunQueryResponse)\n- [1.35.0](/php/docs/reference/cloud-firestore/1.35.0/V1.RunQueryResponse)\n- [1.34.0](/php/docs/reference/cloud-firestore/1.34.0/V1.RunQueryResponse)\n- [1.33.0](/php/docs/reference/cloud-firestore/1.33.0/V1.RunQueryResponse)\n- [1.32.0](/php/docs/reference/cloud-firestore/1.32.0/V1.RunQueryResponse)\n- [1.31.0](/php/docs/reference/cloud-firestore/1.31.0/V1.RunQueryResponse)\n- [1.30.0](/php/docs/reference/cloud-firestore/1.30.0/V1.RunQueryResponse)\n- [1.28.0](/php/docs/reference/cloud-firestore/1.28.0/V1.RunQueryResponse)\n- [1.27.3](/php/docs/reference/cloud-firestore/1.27.3/V1.RunQueryResponse) \nReference documentation and code samples for the Cloud Firestore V1 Client class RunQueryResponse.\n\nThe response for\nFirestore.RunQuery.\n\nGenerated from protobuf message `google.firestore.v1.RunQueryResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Firestore \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTransaction\n\nThe transaction that was started as part of this request.\n\nCan only be set in the first response, and only if\n[RunQueryRequest.new_transaction](/php/docs/reference/cloud-firestore/latest/V1.RunQueryRequest#_Google_Cloud_Firestore_V1_RunQueryRequest__getNewTransaction__)\nwas set in the request. If set, no other fields will be set in this\nresponse.\n\n### setTransaction\n\nThe transaction that was started as part of this request.\n\nCan only be set in the first response, and only if\n[RunQueryRequest.new_transaction](/php/docs/reference/cloud-firestore/latest/V1.RunQueryRequest#_Google_Cloud_Firestore_V1_RunQueryRequest__getNewTransaction__)\nwas set in the request. If set, no other fields will be set in this\nresponse.\n\n### getDocument\n\nA query result, not set when reporting partial progress.\n\n### hasDocument\n\n### clearDocument\n\n### setDocument\n\nA query result, not set when reporting partial progress.\n\n### getReadTime\n\nThe time at which the document was read. This may be monotonically\nincreasing; in this case, the previous documents in the result stream are\nguaranteed not to have changed between their `read_time` and this one.\n\nIf the query returns no results, a response with `read_time` and no\n`document` will be sent, and this represents the time at which the query\nwas run.\n\n### hasReadTime\n\n### clearReadTime\n\n### setReadTime\n\nThe time at which the document was read. This may be monotonically\nincreasing; in this case, the previous documents in the result stream are\nguaranteed not to have changed between their `read_time` and this one.\n\nIf the query returns no results, a response with `read_time` and no\n`document` will be sent, and this represents the time at which the query\nwas run.\n\n### getSkippedResults\n\nThe number of results that have been skipped due to an offset between\nthe last response and the current response.\n\n### setSkippedResults\n\nThe number of results that have been skipped due to an offset between\nthe last response and the current response.\n\n### getDone\n\nIf present, Firestore has completely finished the request and no more\ndocuments will be returned.\n\n### hasDone\n\n### setDone\n\nIf present, Firestore has completely finished the request and no more\ndocuments will be returned.\n\n### getExplainMetrics\n\nQuery explain metrics. This is only present when the\n[RunQueryRequest.explain_options](/php/docs/reference/cloud-firestore/latest/V1.RunQueryRequest#_Google_Cloud_Firestore_V1_RunQueryRequest__getExplainOptions__)\nis provided, and it is sent only once with the last response in the stream.\n\n### hasExplainMetrics\n\n### clearExplainMetrics\n\n### setExplainMetrics\n\nQuery explain metrics. This is only present when the\n[RunQueryRequest.explain_options](/php/docs/reference/cloud-firestore/latest/V1.RunQueryRequest#_Google_Cloud_Firestore_V1_RunQueryRequest__getExplainOptions__)\nis provided, and it is sent only once with the last response in the stream.\n\n### getContinuationSelector"]]