Google Cloud Data Catalog V1 Client - Class TagTemplateField (1.10.1)

Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class TagTemplateField.

The template for an individual field within a tag template.

Generated from protobuf message google.cloud.datacatalog.v1.TagTemplateField

Namespace

Google \ Cloud \ DataCatalog \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the tag template field in URL format. Example: projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD} Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.

↳ display_name string

The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with spaces. The maximum length is 200 characters.

↳ type Google\Cloud\DataCatalog\V1\FieldType

Required. The type of value this tag field can contain.

↳ is_required bool

If true, this field is required. Defaults to false.

↳ description string

The description for this field. Defaults to an empty string.

↳ order int

The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don't have to be sequential.

getName

Output only. The resource name of the tag template field in URL format.

Example: projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD} Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.

Returns
Type Description
string

setName

Output only. The resource name of the tag template field in URL format.

Example: projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD} Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

The display name for this field. Defaults to an empty string.

The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with spaces. The maximum length is 200 characters.

Returns
Type Description
string

setDisplayName

The display name for this field. Defaults to an empty string.

The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with spaces. The maximum length is 200 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Required. The type of value this tag field can contain.

Returns
Type Description
Google\Cloud\DataCatalog\V1\FieldType|null

hasType

clearType

setType

Required. The type of value this tag field can contain.

Parameter
Name Description
var Google\Cloud\DataCatalog\V1\FieldType
Returns
Type Description
$this

getIsRequired

If true, this field is required. Defaults to false.

Returns
Type Description
bool

setIsRequired

If true, this field is required. Defaults to false.

Parameter
Name Description
var bool
Returns
Type Description
$this

getDescription

The description for this field. Defaults to an empty string.

Returns
Type Description
string

setDescription

The description for this field. Defaults to an empty string.

Parameter
Name Description
var string
Returns
Type Description
$this

getOrder

The order of this field with respect to other fields in this tag template.

For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don't have to be sequential.

Returns
Type Description
int

setOrder

The order of this field with respect to other fields in this tag template.

For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don't have to be sequential.

Parameter
Name Description
var int
Returns
Type Description
$this