Class StructType.Types.Field (3.10.0)

public sealed class Field : IMessage<StructType.Types.Field>, IEquatable<StructType.Types.Field>, IDeepCloneable<StructType.Types.Field>, IBufferMessage, IMessage

Message representing a single field of a struct.

Inheritance

Object > StructType.Types.Field

Namespace

Google.Cloud.Spanner.V1

Assembly

Google.Cloud.Spanner.V1.dll

Constructors

Field()

public Field()

Field(StructType.Types.Field)

public Field(StructType.Types.Field other)
Parameter
NameDescription
otherStructType.Types.Field

Properties

Name

public string Name { get; set; }

The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., &quot;Word&quot; in the query &quot;SELECT &apos;hello&apos; AS Word&quot;), or the column name (e.g., &quot;ColName&quot; in the query &quot;SELECT ColName FROM Table&quot;). Some columns might have an empty name (e.g., &quot;SELECT UPPER(ColName)&quot;). Note that a query result can contain multiple fields with the same name.

Property Value
TypeDescription
String

Type

public Type Type { get; set; }

The type of the field.

Property Value
TypeDescription
Type