public sealed class ResultSetMetadata : IMessage<ResultSetMetadata>, IEquatable<ResultSetMetadata>, IDeepCloneable<ResultSetMetadata>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class ResultSetMetadata.
Metadata about a [ResultSet][google.spanner.v1.ResultSet] or
[PartialResultSet][google.spanner.v1.PartialResultSet].
Indicates the field names and types for the rows in the result
set. For example, a SQL query like "SELECT UserId, UserName FROM
Users" could return a row_type value like:
public StructType UndeclaredParameters { get; set; }
A SQL query can be parameterized. In PLAN mode, these parameters can be
undeclared. This indicates the field names and types for those undeclared
parameters in the SQL query. For example, a SQL query like "SELECT * FROM
Users where UserId = @userId and UserName = @userName " could return a
undeclared_parameters value like:
[[["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-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eResultSetMetadata\u003c/code\u003e class for the Google Cloud Spanner v1 API is 5.0.0-beta05, and there are several previous versions also available, ranging from 5.0.0-beta04 down to 3.5.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResultSetMetadata\u003c/code\u003e is a class in the \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e namespace that provides metadata about a \u003ccode\u003eResultSet\u003c/code\u003e or \u003ccode\u003ePartialResultSet\u003c/code\u003e, and it implements several interfaces, including \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"],["\u003cp\u003eThis class includes properties such as \u003ccode\u003eRowType\u003c/code\u003e, which describes the field names and types for rows, \u003ccode\u003eTransaction\u003c/code\u003e, which provides information about any new transactions initiated, and \u003ccode\u003eUndeclaredParameters\u003c/code\u003e, which defines the field names and types for any undeclared parameters in SQL queries.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eResultSetMetadata\u003c/code\u003e has two constructors, one default and another which takes in another \u003ccode\u003eResultSetMetadata\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner v1 API - Class ResultSetMetadata (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/5.0.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.6.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.5.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.4.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.3.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.2.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.1.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.0.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.15.1/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.14.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.13.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.12.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.11.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.10.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.9.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.8.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.7.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.6.0/Google.Cloud.Spanner.V1.ResultSetMetadata)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.5.0/Google.Cloud.Spanner.V1.ResultSetMetadata) \n\n public sealed class ResultSetMetadata : IMessage\u003cResultSetMetadata\u003e, IEquatable\u003cResultSetMetadata\u003e, IDeepCloneable\u003cResultSetMetadata\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner v1 API class ResultSetMetadata.\n\nMetadata about a \\[ResultSet\\]\\[google.spanner.v1.ResultSet\\] or\n\\[PartialResultSet\\]\\[google.spanner.v1.PartialResultSet\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ResultSetMetadata \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ResultSetMetadata](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ResultSetMetadata), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResultSetMetadata](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ResultSetMetadata), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ResultSetMetadata](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ResultSetMetadata), [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.Spanner.V1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.V1.dll\n\nConstructors\n------------\n\n### ResultSetMetadata()\n\n public ResultSetMetadata()\n\n### ResultSetMetadata(ResultSetMetadata)\n\n public ResultSetMetadata(ResultSetMetadata other)\n\nProperties\n----------\n\n### RowType\n\n public StructType RowType { get; set; }\n\nIndicates the field names and types for the rows in the result\nset. For example, a SQL query like `\"SELECT UserId, UserName FROM\nUsers\"` could return a `row_type` value like: \n\n \"fields\": [\n { \"name\": \"UserId\", \"type\": { \"code\": \"INT64\" } },\n { \"name\": \"UserName\", \"type\": { \"code\": \"STRING\" } },\n ]\n\n### Transaction\n\n public Transaction Transaction { get; set; }\n\nIf the read or SQL query began a transaction as a side-effect, the\ninformation about the new transaction is yielded here.\n\n### UndeclaredParameters\n\n public StructType UndeclaredParameters { get; set; }\n\nA SQL query can be parameterized. In PLAN mode, these parameters can be\nundeclared. This indicates the field names and types for those undeclared\nparameters in the SQL query. For example, a SQL query like `\"SELECT * FROM\nUsers where UserId = @userId and UserName = @userName \"` could return a\n`undeclared_parameters` value like: \n\n \"fields\": [\n { \"name\": \"UserId\", \"type\": { \"code\": \"INT64\" } },\n { \"name\": \"UserName\", \"type\": { \"code\": \"STRING\" } },\n ]"]]