public sealed class ExecuteQueryRequest : IMessage<ExecuteQueryRequest>, IEquatable<ExecuteQueryRequest>, IDeepCloneable<ExecuteQueryRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Bigtable v2 API class ExecuteQueryRequest.
Required. params contains string type keys and Bigtable type values that
bind to placeholders in the query string. In query string, a parameter
placeholder consists of the
@ character followed by the parameter name (for example, @firstName) in
the query string.
For example, if
params["firstName"] = bytes_value: "foo" type {bytes_type {}}
then @firstName will be replaced with googlesql bytes value "foo" in the
query string during query evaluation.
If Value.kind is not set, the value is treated as a NULL value of the
given type. For example, if
params["firstName"] = type {string_type {}}
then @firstName will be replaced with googlesql null string.
If query is set, any empty Value.type in the map will be rejected with
INVALID_ARGUMENT.
If prepared_query is set, any empty Value.type in the map will be
inferred from the param_types in the PrepareQueryRequest. Any non-empty
Value.type must match the corresponding param_types entry, or be
rejected with INVALID_ARGUMENT.
Optional. If this request is resuming a previously interrupted query
execution, resume_token should be copied from the last
PartialResultSet yielded before the interruption. Doing this
enables the query execution to resume where the last one left
off.
The rest of the request parameters must exactly match the
request that yielded this token. Otherwise the request will fail.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[[["\u003cp\u003eThe webpage provides documentation for the \u003ccode\u003eExecuteQueryRequest\u003c/code\u003e class within the Google Bigtable v2 API, detailing its usage and properties.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExecuteQueryRequest\u003c/code\u003e class is used to send requests for Bigtable query execution, supporting both direct queries and prepared queries.\u003c/p\u003e\n"],["\u003cp\u003eIt includes features for specifying the instance to query against, application profile routing, and parameterization of queries with string-keyed values.\u003c/p\u003e\n"],["\u003cp\u003eThe page offers versioned documentation links for \u003ccode\u003eExecuteQueryRequest\u003c/code\u003e, ranging from the latest version, 3.17.0, back to version 2.2.0, to allow users access to previous versions.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines the class's inheritance and implemented interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Bigtable v2 API - Class ExecuteQueryRequest (3.23.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.23.0 (latest)](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.22.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.22.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.21.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.21.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.20.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.20.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.19.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.19.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.18.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.18.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.17.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.16.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.15.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.14.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.13.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.12.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.11.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.10.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.9.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.8.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.7.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.6.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.5.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.4.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.3.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.2.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.1.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/3.0.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.6.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.5.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.4.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.3.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/2.2.0/Google.Cloud.Bigtable.V2.ExecuteQueryRequest) \n\n public sealed class ExecuteQueryRequest : IMessage\u003cExecuteQueryRequest\u003e, IEquatable\u003cExecuteQueryRequest\u003e, IDeepCloneable\u003cExecuteQueryRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Bigtable v2 API class ExecuteQueryRequest.\n\nRequest message for Bigtable.ExecuteQuery \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ExecuteQueryRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ExecuteQueryRequest](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.ExecuteQueryRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExecuteQueryRequest](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.ExecuteQueryRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ExecuteQueryRequest](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.ExecuteQueryRequest), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Bigtable.V2](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Bigtable.V2.dll\n\nConstructors\n------------\n\n### ExecuteQueryRequest()\n\n public ExecuteQueryRequest()\n\n### ExecuteQueryRequest(ExecuteQueryRequest)\n\n public ExecuteQueryRequest(ExecuteQueryRequest other)\n\nProperties\n----------\n\n### AppProfileId\n\n public string AppProfileId { get; set; }\n\nOptional. This value specifies routing for replication. If not specified,\nthe `default` application profile will be used.\n\n### DataFormatCase\n\n public ExecuteQueryRequest.DataFormatOneofCase DataFormatCase { get; }\n\n### InstanceName\n\n public string InstanceName { get; set; }\n\nRequired. The unique name of the instance against which the query should be\nexecuted.\nValues are of the form `projects/\u003cproject\u003e/instances/\u003cinstance\u003e`\n\n### InstanceNameAsInstanceName\n\n public InstanceName InstanceNameAsInstanceName { get; set; }\n\n[InstanceName](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Bigtable.Common.V2/latest/Google.Cloud.Bigtable.Common.V2.InstanceName.html)-typed view over the [InstanceName](/dotnet/docs/reference/Google.Cloud.Bigtable.V2/latest/Google.Cloud.Bigtable.V2.ExecuteQueryRequest#Google_Cloud_Bigtable_V2_ExecuteQueryRequest_InstanceName) resource name property.\n\n### Params\n\n public MapField\u003cstring, Value\u003e Params { get; }\n\nRequired. params contains string type keys and Bigtable type values that\nbind to placeholders in the query string. In query string, a parameter\nplaceholder consists of the\n`@` character followed by the parameter name (for example, `@firstName`) in\nthe query string.\n\nFor example, if\n`params[\"firstName\"] = bytes_value: \"foo\" type {bytes_type {}}`\nthen `@firstName` will be replaced with googlesql bytes value \"foo\" in the\nquery string during query evaluation.\n\nIf `Value.kind` is not set, the value is treated as a NULL value of the\ngiven type. For example, if\n`params[\"firstName\"] = type {string_type {}}`\nthen `@firstName` will be replaced with googlesql null string.\n\nIf `query` is set, any empty `Value.type` in the map will be rejected with\n`INVALID_ARGUMENT`.\n\nIf `prepared_query` is set, any empty `Value.type` in the map will be\ninferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty\n`Value.type` must match the corresponding `param_types` entry, or be\nrejected with `INVALID_ARGUMENT`.\n\n### PreparedQuery\n\n public ByteString PreparedQuery { get; set; }\n\nA prepared query that was returned from `PrepareQueryResponse`.\n\nExactly one of `query` and `prepared_query` is required. Setting both\nor neither is an `INVALID_ARGUMENT`.\n\nSetting this field also places restrictions on several other fields:\n\n- `data_format` must be empty.\n- `validate_only` must be false.\n- `params` must match the `param_types` set in the `PrepareQueryRequest`.\n\n### ProtoFormat\n\n [Obsolete]\n public ProtoFormat ProtoFormat { get; set; }\n\nProtocol buffer format as described by ProtoSchema and ProtoRows\nmessages.\n\n### Query\n\n [Obsolete]\n public string Query { get; set; }\n\nRequired. The query string.\n\nExactly one of `query` and `prepared_query` is required. Setting both\nor neither is an `INVALID_ARGUMENT`.\n\n### ResumeToken\n\n public ByteString ResumeToken { get; set; }\n\nOptional. If this request is resuming a previously interrupted query\nexecution, `resume_token` should be copied from the last\nPartialResultSet yielded before the interruption. Doing this\nenables the query execution to resume where the last one left\noff.\nThe rest of the request parameters must exactly match the\nrequest that yielded this token. Otherwise the request will fail."]]