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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getType

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

Returns
TypeDescription
Google\Cloud\DataCatalog\V1\FieldType|null

hasType

clearType

setType

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

Parameter
NameDescription
var Google\Cloud\DataCatalog\V1\FieldType
Returns
TypeDescription
$this

getIsRequired

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

Returns
TypeDescription
bool

setIsRequired

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDescription

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

Returns
TypeDescription
string

setDescription

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this