Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class ColumnSchema.
A column within a schema. Columns can be nested inside other columns.
Generated from protobuf message google.cloud.datacatalog.v1.ColumnSchema
Namespace
Google \ Cloud \ DataCatalog \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ column |
string
Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes. |
↳ type |
string
Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes. |
↳ description |
string
Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes. |
↳ mode |
string
Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only |
↳ default_value |
string
Optional. Default value for the column. |
↳ ordinal_position |
int
Optional. Ordinal position |
↳ highest_indexing_type |
int
Optional. Most important inclusion of this column. |
↳ subcolumns |
array<ColumnSchema>
Optional. Schema of sub-columns. A column can have zero or more sub-columns. |
↳ looker_column_spec |
ColumnSchema\LookerColumnSpec
Looker specific column info of this column. |
↳ range_element_type |
ColumnSchema\FieldElementType
Optional. The subtype of the RANGE, if the type of this field is RANGE. If the type is RANGE, this field is required. Possible values for the field element type of a RANGE include: * * DATE * * DATETIME * * TIMESTAMP |
↳ gc_rule |
string
Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable. |
getColumn
Required. Name of the column.
Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.
Returns | |
---|---|
Type | Description |
string |
setColumn
Required. Name of the column.
Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getType
Required. Type of the column.
Must be a UTF-8 string with the maximum size of 128 bytes.
Returns | |
---|---|
Type | Description |
string |
setType
Required. Type of the column.
Must be a UTF-8 string with the maximum size of 128 bytes.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
Optional. Description of the column. Default value is an empty string.
The description must be a UTF-8 string with the maximum size of 2000 bytes.
Returns | |
---|---|
Type | Description |
string |
setDescription
Optional. Description of the column. Default value is an empty string.
The description must be a UTF-8 string with the maximum size of 2000 bytes.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getMode
Optional. A column's mode indicates whether values in this column are required, nullable, or repeated.
Only NULLABLE
, REQUIRED
, and REPEATED
values are supported.
Default mode is NULLABLE
.
Returns | |
---|---|
Type | Description |
string |
setMode
Optional. A column's mode indicates whether values in this column are required, nullable, or repeated.
Only NULLABLE
, REQUIRED
, and REPEATED
values are supported.
Default mode is NULLABLE
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDefaultValue
Optional. Default value for the column.
Returns | |
---|---|
Type | Description |
string |
setDefaultValue
Optional. Default value for the column.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getOrdinalPosition
Optional. Ordinal position
Returns | |
---|---|
Type | Description |
int |
setOrdinalPosition
Optional. Ordinal position
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getHighestIndexingType
Optional. Most important inclusion of this column.
Returns | |
---|---|
Type | Description |
int |
setHighestIndexingType
Optional. Most important inclusion of this column.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getSubcolumns
Optional. Schema of sub-columns. A column can have zero or more sub-columns.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSubcolumns
Optional. Schema of sub-columns. A column can have zero or more sub-columns.
Parameter | |
---|---|
Name | Description |
var |
array<ColumnSchema>
|
Returns | |
---|---|
Type | Description |
$this |
getLookerColumnSpec
Looker specific column info of this column.
Returns | |
---|---|
Type | Description |
ColumnSchema\LookerColumnSpec|null |
hasLookerColumnSpec
setLookerColumnSpec
Looker specific column info of this column.
Parameter | |
---|---|
Name | Description |
var |
ColumnSchema\LookerColumnSpec
|
Returns | |
---|---|
Type | Description |
$this |
getRangeElementType
Optional. The subtype of the RANGE, if the type of this field is RANGE. If the type is RANGE, this field is required. Possible values for the field element type of a RANGE include:
- DATE
- DATETIME
- TIMESTAMP
Returns | |
---|---|
Type | Description |
ColumnSchema\FieldElementType|null |
hasRangeElementType
clearRangeElementType
setRangeElementType
Optional. The subtype of the RANGE, if the type of this field is RANGE. If the type is RANGE, this field is required. Possible values for the field element type of a RANGE include:
- DATE
- DATETIME
- TIMESTAMP
Parameter | |
---|---|
Name | Description |
var |
ColumnSchema\FieldElementType
|
Returns | |
---|---|
Type | Description |
$this |
getGcRule
Optional. Garbage collection policy for the column or column family.
Applies to systems like Cloud Bigtable.
Returns | |
---|---|
Type | Description |
string |
setGcRule
Optional. Garbage collection policy for the column or column family.
Applies to systems like Cloud Bigtable.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSystemSpec
Returns | |
---|---|
Type | Description |
string |