StructType_Field
class StructType_Field extends Message
Message representing a single field of a struct.
Protobuf type Google\Spanner\V1\StructType\Field
Methods
No description
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.
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.
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;
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;
at line 83
Type
getType()
The type of the field.
Generated from protobuf field .google.spanner.v1.Type type = 2;
at line 94
setType(Type $var)
The type of the field.
Generated from protobuf field .google.spanner.v1.Type type = 2;