Google Cloud Spanner v1 API - Class Type (5.0.0-beta03)

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

Reference documentation and code samples for the Google Cloud Spanner v1 API class Type.

Type indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.

Inheritance

object > Type

Namespace

Google.Cloud.Spanner.V1

Assembly

Google.Cloud.Spanner.V1.dll

Constructors

Type()

public Type()

Type(Type)

public Type(Type other)
Parameter
Name Description
other Type

Properties

ArrayElementType

public Type ArrayElementType { get; set; }

If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then array_element_type is the type of the array elements.

Property Value
Type Description
Type

Code

public TypeCode Code { get; set; }

Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.

Property Value
Type Description
TypeCode

ProtoTypeFqn

public string ProtoTypeFqn { get; set; }

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.

Property Value
Type Description
string

StructType

public StructType StructType { get; set; }

If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then struct_type provides type information for the struct's fields.

Property Value
Type Description
StructType

TypeAnnotation

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.

Property Value
Type Description
TypeAnnotationCode