Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class Tag.
Tags contain custom metadata and are attached to Data Catalog resources. Tags conform with the specification of their tag template.
See Data Catalog IAM for information on the permissions needed to create or view tags.
Generated from protobuf message google.cloud.datacatalog.v1.Tag
Namespace
Google \ Cloud \ DataCatalog \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name. |
↳ template |
string
Required. The resource name of the tag template this tag uses. Example: |
↳ template_display_name |
string
Output only. The display name of the tag template. |
↳ column |
string
Resources like entry can have schemas associated with them. This scope allows you to attach tags to an individual column based on that schema. To attach a tag to a nested column, separate column names with a dot ( |
↳ fields |
array|Google\Protobuf\Internal\MapField
Required. Maps the ID of a tag field to its value and additional information about that field. Tag template defines valid field IDs. A tag must have at least 1 field and at most 500 fields. |
getName
The resource name of the tag in URL format where tag ID is a system-generated identifier.
Note: The tag itself might not be stored in the location specified in its name.
Returns | |
---|---|
Type | Description |
string |
setName
The resource name of the tag in URL format where tag ID is a system-generated identifier.
Note: The tag itself might not be stored in the location specified in its name.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTemplate
Required. The resource name of the tag template this tag uses. Example:
projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}
This field cannot be modified after creation.
Returns | |
---|---|
Type | Description |
string |
setTemplate
Required. The resource name of the tag template this tag uses. Example:
projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}
This field cannot be modified after creation.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTemplateDisplayName
Output only. The display name of the tag template.
Returns | |
---|---|
Type | Description |
string |
setTemplateDisplayName
Output only. The display name of the tag template.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getColumn
Resources like entry can have schemas associated with them. This scope allows you to attach tags to an individual column based on that schema.
To attach a tag to a nested column, separate column names with a dot
(.
). Example: column.nested_column
.
Returns | |
---|---|
Type | Description |
string |
hasColumn
setColumn
Resources like entry can have schemas associated with them. This scope allows you to attach tags to an individual column based on that schema.
To attach a tag to a nested column, separate column names with a dot
(.
). Example: column.nested_column
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getFields
Required. Maps the ID of a tag field to its value and additional information about that field.
Tag template defines valid field IDs. A tag must have at least 1 field and at most 500 fields.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setFields
Required. Maps the ID of a tag field to its value and additional information about that field.
Tag template defines valid field IDs. A tag must have at least 1 field and at most 500 fields.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getScope
Returns | |
---|---|
Type | Description |
string |