Show / Hide Table of Contents

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
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Spanner.v1.Data
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class Type : IDirectResponseSchema

Properties

ArrayElementType

If code == ARRAY, then array_element_type is the type of the array elements.

Declaration
[JsonProperty("arrayElementType")]
public virtual Type ArrayElementType { get; set; }
Property Value
Type Description
Type

Code

Required. The TypeCode for this type.

Declaration
[JsonProperty("code")]
public virtual string Code { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

ProtoTypeFqn

If code == PROTO or code == ENUM, then proto_type_fqn is the fully qualified name of the proto type representing the proto/enum definition.

Declaration
[JsonProperty("protoTypeFqn")]
public virtual string ProtoTypeFqn { get; set; }
Property Value
Type Description
string

StructType

If code == STRUCT, then struct_type provides type information for the struct's fields.

Declaration
[JsonProperty("structType")]
public virtual StructType StructType { get; set; }
Property Value
Type Description
StructType

TypeAnnotation

The 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 can be mapped to different SQL types depending on the SQL dialect. 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.

Declaration
[JsonProperty("typeAnnotation")]
public virtual string TypeAnnotation { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX