If [code][google.spanner.v1.Type.code] ==
[PROTO][google.spanner.v1.TypeCode.PROTO] or
[code][google.spanner.v1.Type.code] ==
[ENUM][google.spanner.v1.TypeCode.ENUM], then proto_type_fqn is the fully
qualified name of the proto type representing the proto/enum definition.
If [code][google.spanner.v1.Type.code] ==
[STRUCT][google.spanner.v1.TypeCode.STRUCT], then struct_type provides
type information for the struct's fields.
public TypeAnnotationCode TypeAnnotation { get; set; }
The [TypeAnnotationCode][google.spanner.v1.TypeAnnotationCode] that
disambiguates SQL type that Spanner will use to represent values of this
type during query processing. This is necessary for some type codes because
a single [TypeCode][google.spanner.v1.TypeCode] can be mapped to different
SQL types depending on the SQL dialect.
[type_annotation][google.spanner.v1.Type.type_annotation] typically is not
needed to process the content of a value (it doesn't affect serialization)
and clients can ignore it on the read path.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eType\u003c/code\u003e class within the Google Cloud Spanner v1 API for .NET, detailing its properties and constructors.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eType\u003c/code\u003e class represents the type of a Cloud Spanner value, such as those stored in table cells or returned by SQL queries, and it implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists multiple versions of the \u003ccode\u003eType\u003c/code\u003e class, ranging from version 3.5.0 to the latest beta version, 5.0.0-beta05, for the Google.Cloud.Spanner.V1 namespace.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eType\u003c/code\u003e class include \u003ccode\u003eCode\u003c/code\u003e, which specifies the \u003ccode\u003eTypeCode\u003c/code\u003e for the type, and \u003ccode\u003eArrayElementType\u003c/code\u003e, \u003ccode\u003eStructType\u003c/code\u003e, \u003ccode\u003eProtoTypeFqn\u003c/code\u003e and \u003ccode\u003eTypeAnnotation\u003c/code\u003e, which provide further details depending on the specific \u003ccode\u003eTypeCode\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eType\u003c/code\u003e can be instantiated using the no argument constructor \u003ccode\u003eType()\u003c/code\u003e or the single argument constructor \u003ccode\u003eType(Type other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner v1 API - Class Type (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.Type)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/5.0.0/Google.Cloud.Spanner.V1.Type)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.6.0/Google.Cloud.Spanner.V1.Type)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.5.0/Google.Cloud.Spanner.V1.Type)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.4.0/Google.Cloud.Spanner.V1.Type)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.3.0/Google.Cloud.Spanner.V1.Type)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.2.0/Google.Cloud.Spanner.V1.Type)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.1.0/Google.Cloud.Spanner.V1.Type)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.0.0/Google.Cloud.Spanner.V1.Type)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.15.1/Google.Cloud.Spanner.V1.Type)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.14.0/Google.Cloud.Spanner.V1.Type)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.13.0/Google.Cloud.Spanner.V1.Type)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.12.0/Google.Cloud.Spanner.V1.Type)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.11.0/Google.Cloud.Spanner.V1.Type)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.10.0/Google.Cloud.Spanner.V1.Type)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.9.0/Google.Cloud.Spanner.V1.Type)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.8.0/Google.Cloud.Spanner.V1.Type)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.7.0/Google.Cloud.Spanner.V1.Type)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.6.0/Google.Cloud.Spanner.V1.Type)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.5.0/Google.Cloud.Spanner.V1.Type) \n\n public sealed class Type : IMessage\u003cType\u003e, IEquatable\u003cType\u003e, IDeepCloneable\u003cType\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner v1 API class Type.\n\n`Type` indicates the type of a Cloud Spanner value, as might be stored in a\ntable cell or returned from an SQL query. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Type \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Type](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.Type), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Type](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.Type), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Type](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.Type), [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### Type()\n\n public Type()\n\n### Type(Type)\n\n public Type(Type other)\n\nProperties\n----------\n\n### ArrayElementType\n\n public Type ArrayElementType { get; set; }\n\nIf \\[code\\]\\[google.spanner.v1.Type.code\\] ==\n\\[ARRAY\\]\\[google.spanner.v1.TypeCode.ARRAY\\], then `array_element_type` is the\ntype of the array elements.\n\n### Code\n\n public TypeCode Code { get; set; }\n\nRequired. The \\[TypeCode\\]\\[google.spanner.v1.TypeCode\\] for this type.\n\n### ProtoTypeFqn\n\n public string ProtoTypeFqn { get; set; }\n\nIf \\[code\\]\\[google.spanner.v1.Type.code\\] ==\n\\[PROTO\\]\\[google.spanner.v1.TypeCode.PROTO\\] or\n\\[code\\]\\[google.spanner.v1.Type.code\\] ==\n\\[ENUM\\]\\[google.spanner.v1.TypeCode.ENUM\\], then `proto_type_fqn` is the fully\nqualified name of the proto type representing the proto/enum definition.\n\n### StructType\n\n public StructType StructType { get; set; }\n\nIf \\[code\\]\\[google.spanner.v1.Type.code\\] ==\n\\[STRUCT\\]\\[google.spanner.v1.TypeCode.STRUCT\\], then `struct_type` provides\ntype information for the struct's fields.\n\n### TypeAnnotation\n\n public TypeAnnotationCode TypeAnnotation { get; set; }\n\nThe \\[TypeAnnotationCode\\]\\[google.spanner.v1.TypeAnnotationCode\\] that\ndisambiguates SQL type that Spanner will use to represent values of this\ntype during query processing. This is necessary for some type codes because\na single \\[TypeCode\\]\\[google.spanner.v1.TypeCode\\] can be mapped to different\nSQL types depending on the SQL dialect.\n\\[type_annotation\\]\\[google.spanner.v1.Type.type_annotation\\] typically is not\nneeded to process the content of a value (it doesn't affect serialization)\nand clients can ignore it on the read path."]]