public sealed class Field : IMessage<StructType.Types.Field>, IEquatable<StructType.Types.Field>, IDeepCloneable<StructType.Types.Field>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class StructType.Types.Field.
Message representing a single field of a struct.
Implements
IMessage<StructType.Types.Field>, IEquatable<StructType.Types.Field>, IDeepCloneable<StructType.Types.Field>, IBufferMessage, IMessageNamespace
Google.Cloud.Spanner.V1Assembly
Google.Cloud.Spanner.V1.dll
Constructors
Field()
public Field()
Field(StructType.Types.Field)
public Field(StructType.Types.Field other)
Parameter | |
---|---|
Name | Description |
other | StructType.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., "Word"
in the
query "SELECT 'hello' AS Word"
), or the column name (e.g.,
"ColName"
in the query "SELECT ColName FROM Table"
). Some
columns might have an empty name (e.g., "SELECT
UPPER(ColName)"
). Note that a query result can contain
multiple fields with the same name.
Property Value | |
---|---|
Type | Description |
String |
Type
public Type Type { get; set; }
The type of the field.
Property Value | |
---|---|
Type | Description |
Type |