(::String) — Optional. Description of this taxonomy. If not set, defaults to empty.
The description must contain only Unicode characters, tabs, newlines,
carriage returns, and page breaks, and be at most 2000 bytes long when
encoded in UTF-8.
#description=
defdescription=(value)->::String
Parameter
value (::String) — Optional. Description of this taxonomy. If not set, defaults to empty.
The description must contain only Unicode characters, tabs, newlines,
carriage returns, and page breaks, and be at most 2000 bytes long when
encoded in UTF-8.
Returns
(::String) — Optional. Description of this taxonomy. If not set, defaults to empty.
The description must contain only Unicode characters, tabs, newlines,
carriage returns, and page breaks, and be at most 2000 bytes long when
encoded in UTF-8.
#display_name
defdisplay_name()->::String
Returns
(::String) — Required. User-defined name of this taxonomy.
The name can't start or end with spaces, must contain only Unicode letters,
numbers, underscores, dashes, and spaces, and be at most 200 bytes long
when encoded in UTF-8.
The taxonomy display name must be unique within an organization.
#display_name=
defdisplay_name=(value)->::String
Parameter
value (::String) — Required. User-defined name of this taxonomy.
The name can't start or end with spaces, must contain only Unicode letters,
numbers, underscores, dashes, and spaces, and be at most 200 bytes long
when encoded in UTF-8.
The taxonomy display name must be unique within an organization.
Returns
(::String) — Required. User-defined name of this taxonomy.
The name can't start or end with spaces, must contain only Unicode letters,
numbers, underscores, dashes, and spaces, and be at most 200 bytes long
when encoded in UTF-8.
The taxonomy display name must be unique within an organization.
#name
defname()->::String
Returns
(::String) — Identifier. Resource name of this taxonomy in URL format.
Note: Policy tag manager generates unique taxonomy IDs.
#name=
defname=(value)->::String
Parameter
value (::String) — Identifier. Resource name of this taxonomy in URL format.
Note: Policy tag manager generates unique taxonomy IDs.
Returns
(::String) — Identifier. Resource name of this taxonomy in URL format.
Note: Policy tag manager generates unique taxonomy IDs.
#policy_tag_count
defpolicy_tag_count()->::Integer
Returns
(::Integer) — Output only. Number of policy tags in this taxonomy.
(::Google::Cloud::DataCatalog::V1::Taxonomy::Service) — Output only. Identity of the service which owns the Taxonomy. This field is
only populated when the taxonomy is created by a Google Cloud service.
Currently only 'DATAPLEX' is supported.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Catalog V1 API - Class Google::Cloud::DataCatalog::V1::Taxonomy (v2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [2.3.0](/ruby/docs/reference/google-cloud-data_catalog-v1/2.3.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [2.2.2](/ruby/docs/reference/google-cloud-data_catalog-v1/2.2.2/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [2.1.1](/ruby/docs/reference/google-cloud-data_catalog-v1/2.1.1/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [2.0.0](/ruby/docs/reference/google-cloud-data_catalog-v1/2.0.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [1.4.0](/ruby/docs/reference/google-cloud-data_catalog-v1/1.4.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [1.3.1](/ruby/docs/reference/google-cloud-data_catalog-v1/1.3.1/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [1.2.0](/ruby/docs/reference/google-cloud-data_catalog-v1/1.2.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [1.1.0](/ruby/docs/reference/google-cloud-data_catalog-v1/1.1.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [1.0.1](/ruby/docs/reference/google-cloud-data_catalog-v1/1.0.1/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.23.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.23.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.22.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.22.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.21.2](/ruby/docs/reference/google-cloud-data_catalog-v1/0.21.2/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.20.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.20.1/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.19.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.19.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.18.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.18.1/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.17.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.17.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.16.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.16.1/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.15.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.15.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.14.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.14.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.13.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.13.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.12.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.12.1/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.11.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.11.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.10.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.10.0/Google-Cloud-DataCatalog-V1-Taxonomy)\n- [0.9.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.9.1/Google-Cloud-DataCatalog-V1-Taxonomy) \nReference documentation and code samples for the Data Catalog V1 API class Google::Cloud::DataCatalog::V1::Taxonomy.\n\nA taxonomy is a collection of hierarchical policy tags that classify data\nalong a common axis.\n\nFor example, a \"data sensitivity\" taxonomy might contain the following policy\ntags:\n\n\\`\\`\\`\n\n- PII\n - Account number\n - Age\n - SSN\n - Zipcode\n- Financials\n - Revenue \\`\\`\\`\n\nA \"data origin\" taxonomy might contain the following policy tags:\n\n\\`\\`\\`\n\n- User data\n- Employee data\n- Partner data\n- Public data \\`\\`\\` \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #activated_policy_types\n\n def activated_policy_types() -\u003e ::Array\u003c::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType](./Google-Cloud-DataCatalog-V1-Taxonomy-PolicyType)\\\u003e) --- Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.\n\n### #activated_policy_types=\n\n def activated_policy_types=(value) -\u003e ::Array\u003c::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType](./Google-Cloud-DataCatalog-V1-Taxonomy-PolicyType)\\\u003e) --- Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType](./Google-Cloud-DataCatalog-V1-Taxonomy-PolicyType)\\\u003e) --- Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.\n\n### #description\n\n def description() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Description of this taxonomy. If not set, defaults to empty.\n\n The description must contain only Unicode characters, tabs, newlines,\n carriage returns, and page breaks, and be at most 2000 bytes long when\n encoded in UTF-8.\n\n### #description=\n\n def description=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Description of this taxonomy. If not set, defaults to empty.\n\n\n The description must contain only Unicode characters, tabs, newlines,\n carriage returns, and page breaks, and be at most 2000 bytes long when\nencoded in UTF-8. \n**Returns**\n\n- (::String) --- Optional. Description of this taxonomy. If not set, defaults to empty.\n\n The description must contain only Unicode characters, tabs, newlines,\n carriage returns, and page breaks, and be at most 2000 bytes long when\n encoded in UTF-8.\n\n### #display_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. User-defined name of this taxonomy.\n\n The name can't start or end with spaces, must contain only Unicode letters,\n numbers, underscores, dashes, and spaces, and be at most 200 bytes long\n when encoded in UTF-8.\n\n The taxonomy display name must be unique within an organization.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. User-defined name of this taxonomy.\n\n\n The name can't start or end with spaces, must contain only Unicode letters,\n numbers, underscores, dashes, and spaces, and be at most 200 bytes long\n when encoded in UTF-8.\n\nThe taxonomy display name must be unique within an organization. \n**Returns**\n\n- (::String) --- Required. User-defined name of this taxonomy.\n\n The name can't start or end with spaces, must contain only Unicode letters,\n numbers, underscores, dashes, and spaces, and be at most 200 bytes long\n when encoded in UTF-8.\n\n The taxonomy display name must be unique within an organization.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Identifier. Resource name of this taxonomy in URL format.\n\n Note: Policy tag manager generates unique taxonomy IDs.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Identifier. Resource name of this taxonomy in URL format.\n\n\nNote: Policy tag manager generates unique taxonomy IDs. \n**Returns**\n\n- (::String) --- Identifier. Resource name of this taxonomy in URL format.\n\n Note: Policy tag manager generates unique taxonomy IDs.\n\n### #policy_tag_count\n\n def policy_tag_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. Number of policy tags in this taxonomy.\n\n### #service\n\n def service() -\u003e ::Google::Cloud::DataCatalog::V1::Taxonomy::Service\n\n**Returns**\n\n- ([::Google::Cloud::DataCatalog::V1::Taxonomy::Service](./Google-Cloud-DataCatalog-V1-Taxonomy-Service)) --- Output only. Identity of the service which owns the Taxonomy. This field is only populated when the taxonomy is created by a Google Cloud service. Currently only 'DATAPLEX' is supported.\n\n### #taxonomy_timestamps\n\n def taxonomy_timestamps() -\u003e ::Google::Cloud::DataCatalog::V1::SystemTimestamps\n\n**Returns**\n\n- ([::Google::Cloud::DataCatalog::V1::SystemTimestamps](./Google-Cloud-DataCatalog-V1-SystemTimestamps)) --- Output only. Creation and modification timestamps of this taxonomy."]]