5.2.0 (latest) 5.1.0 5.0.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.5.0 3.4.0 3.3.0 3.2.0

    public sealed class RunQueryResponse : IMessage<RunQueryResponse>, IEquatable<RunQueryResponse>, IDeepCloneable<RunQueryResponse>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Datastore v1 API class RunQueryResponse.

The response for
\[Datastore.RunQuery\]\[google.datastore.v1.Datastore.RunQuery\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RunQueryResponse

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RunQueryResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.RunQueryResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RunQueryResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.RunQueryResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RunQueryResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.RunQueryResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Datastore.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1)

## Assembly

Google.Cloud.Datastore.V1.dll

## Constructors

### RunQueryResponse()

    public RunQueryResponse()

### RunQueryResponse(RunQueryResponse)

    public RunQueryResponse(RunQueryResponse other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.RunQueryResponse` |

## Properties

### Batch

    public QueryResultBatch Batch { get; set; }

A batch of query results. This is always present unless running a
query under explain-only
mode:
\[RunQueryRequest.explain_options\]\[google.datastore.v1.RunQueryRequest.explain_options\]
was provided and
\[ExplainOptions.analyze\]\[google.datastore.v1.ExplainOptions.analyze\] was
set to false.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.QueryResultBatch` |   |

### ExplainMetrics

    public ExplainMetrics ExplainMetrics { get; set; }

Query explain metrics. This is only present when the
\[RunQueryRequest.explain_options\]\[google.datastore.v1.RunQueryRequest.explain_options\]
is provided, and it is sent only once with the last response in the stream.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.ExplainMetrics` |   |

### Query

    public Query Query { get; set; }

The parsed form of the `GqlQuery` from the request, if it was set.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.Query` |   |

### Transaction

    public ByteString Transaction { get; set; }

The identifier of the transaction that was started as part of this
RunQuery request.

Set only when
\[ReadOptions.new_transaction\]\[google.datastore.v1.ReadOptions.new_transaction\]
was set in
\[RunQueryRequest.read_options\]\[google.datastore.v1.RunQueryRequest.read_options\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` |   |