class StructType_Field extends Message

Message representing a single field of a struct.

Protobuf type Google\Spanner\V1\StructType\Field

Methods

__construct()

No description

string
getName()

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.

setName(string $var)

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.

getType()

The type of the field.

setType(Type $var)

The type of the field.

Details

at line 37
__construct()

at line 54
string getName()

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.

Generated from protobuf field string name = 1;

Return Value

string

at line 71
setName(string $var)

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.

Generated from protobuf field string name = 1;

Parameters

string $var

at line 83
Type getType()

The type of the field.

Generated from protobuf field .google.spanner.v1.Type type = 2;

Return Value

Type

at line 94
setType(Type $var)

The type of the field.

Generated from protobuf field .google.spanner.v1.Type type = 2;

Parameters

Type $var