NAME

Google::Cloud::Datacatalog::V1::Tags - Compiled Protocol Buffers messages for google/cloud/datacatalog/v1/tags.proto

SYNOPSIS

use Google::Cloud::Datacatalog::V1::Tags;

my $msg = Google::Cloud::Datacatalog::V1::Tags::Tag->new({
    name => $name,
    template => $template,
    template_display_name => $template_display_name,
    column => $column,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Datacatalog::V1::Tags::Tag->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/datacatalog/v1/tags.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Datacatalog::V1::Tags::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](https://cloud.google.com/data-catalog/docs/concepts/iam) for information on the permissions needed to create or view tags.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. 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.

  • $msg->template() / $msg->template($value)

    Type: String

    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.

  • $msg->template_display_name() / $msg->template_display_name($value)

    Type: String

    Output only. The display name of the tag template.

  • $msg->column() / $msg->column($value)

    Type: 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 (`.`). Example: `column.nested_column`.

  • $msg->fields() / $msg->fields($value)

    Type: Message (Google::Cloud::Datacatalog::V1::Tags::Tag::FieldsEntry)

    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.

  • $msg->dataplex_transfer_status() / $msg->dataplex_transfer_status($value)

    Type: Enum (Google::Cloud::Datacatalog::V1::TagTemplate::DataplexTransferStatus)

    Output only. Denotes the transfer status of the Tag Template.

Google::Cloud::Datacatalog::V1::Tags::TagField

Contains the value and additional information on a field within a [Tag][google.cloud.datacatalog.v1.Tag].

Inherits from Protobuf::Message.

Accessors

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Output only. The display name of this field.

  • $msg->double_value() / $msg->double_value($value)

    Type: Double

    The value of a tag field with a double type.

  • $msg->string_value() / $msg->string_value($value)

    Type: String

    The value of a tag field with a string type.

    The maximum length is 2000 UTF-8 characters.

  • $msg->bool_value() / $msg->bool_value($value)

    Type: Bool

    The value of a tag field with a boolean type.

  • $msg->timestamp_value() / $msg->timestamp_value($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The value of a tag field with a timestamp type.

  • $msg->enum_value() / $msg->enum_value($value)

    Type: Message (Google::Cloud::Datacatalog::V1::Tags::TagField::EnumValue)

    The value of a tag field with an enum type.

    This value must be one of the allowed values listed in this enum.

  • $msg->richtext_value() / $msg->richtext_value($value)

    Type: String

    The value of a tag field with a rich text type.

    The maximum length is 10 MiB as this value holds HTML descriptions including encoded images. The maximum length of the text without images is 100 KiB.

  • $msg->order() / $msg->order($value)

    Type: Int32

    Output only. The order of this field with respect to other fields in this tag. Can be set by [Tag][google.cloud.datacatalog.v1.TagTemplateField.order].

    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.

Google::Cloud::Datacatalog::V1::Tags::TagTemplate

A tag template defines a tag that can have one or more typed fields.

The template is used to create tags that are attached to Google Cloud resources. [Tag template roles] (https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles) provide permissions to create, edit, and use the template. For example, see the [TagTemplate User] (https://cloud.google.com/data-catalog/docs/how-to/template-user) role that includes a permission to use the tag template to tag resources.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name of the tag template in URL format.

    Note: The tag template itself and its child resources might not be stored in the location specified in its name.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Display name for this template. 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.

  • $msg->is_publicly_readable() / $msg->is_publicly_readable($value)

    Type: Bool

    Indicates whether tags created with this template are public. Public tags do not require tag template access to appear in [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags] API response.

    Additionally, you can search for a public tag by value with a simple search query in addition to using a ``tag:`` predicate.

  • $msg->fields() / $msg->fields($value)

    Type: Message (Google::Cloud::Datacatalog::V1::Tags::TagTemplate::FieldsEntry)

    Required. Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. The map must contain at least one field and at most 500 fields.

    The keys to this map are tag template field IDs. The IDs have the following limitations:

    * Can contain uppercase and lowercase letters, numbers (0-9) and underscores (_). * Must be at least 1 character and at most 64 characters long. * Must start with a letter or underscore.

  • $msg->dataplex_transfer_status() / $msg->dataplex_transfer_status($value)

    Type: Enum (Google::Cloud::Datacatalog::V1::TagTemplate::DataplexTransferStatus)

    Optional. Transfer status of the TagTemplate

Enum: TagTemplate::DataplexTransferStatus

  • DATAPLEX_TRANSFER_STATUS_UNSPECIFIED => 0

  • MIGRATED => 1

  • TRANSFERRED => 2

Google::Cloud::Datacatalog::V1::Tags::TagTemplateField

The template for an individual field within a tag template.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. 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.

  • $msg->display_name() / $msg->display_name($value)

    Type: 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.

  • $msg->type() / $msg->type($value)

    Type: Message (Google::Cloud::Datacatalog::V1::Tags::FieldType)

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

  • $msg->is_required() / $msg->is_required($value)

    Type: Bool

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

  • $msg->description() / $msg->description($value)

    Type: String

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

  • $msg->order() / $msg->order($value)

    Type: Int32

    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.

Google::Cloud::Datacatalog::V1::Tags::FieldType

Inherits from Protobuf::Message.

Accessors

Enum: FieldType::PrimitiveType

  • PRIMITIVE_TYPE_UNSPECIFIED => 0

  • DOUBLE => 1

  • STRING => 2

  • BOOL => 3

  • TIMESTAMP => 4

  • RICHTEXT => 5

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Datacatalog::V1::Tags::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.